Compare commits

...

2 Commits

Author SHA1 Message Date
mebibytedraco
3af135e1d9 Allow using constant as size argument to data.fill 2024-02-22 20:23:27 +01:00
e15991af44 run workflow on all branches 2024-02-22 20:23:15 +01:00
2 changed files with 3 additions and 2 deletions

View File

@ -2,8 +2,7 @@ on:
workflow_dispatch:
push:
branches:
- main
- github-actions
- '*'
name: fox32asm Unstable - Linux

View File

@ -695,6 +695,8 @@ fn parse_data(pair: pest::iterators::Pair<Rule>) -> AstNode {
let ast = parse_operand(pair.into_inner().nth(1).unwrap(), false);
if let AstNode::Immediate32(word) = ast {
word
} else if let AstNode::Constant {name: _, address} = ast {
address
} else {
unreachable!()
}