fox32asm: Ensure consts are always Immediate32

This commit is contained in:
Ry 2022-04-17 17:03:20 -07:00
parent 9fb445f688
commit 74b080994a

View File

@ -462,6 +462,7 @@ fn build_ast_from_expression(pair: pest::iterators::Pair<Rule>) -> AstNode {
} }
fn parse_constant(pairs: pest::iterators::Pairs<Rule>) -> AstNode { fn parse_constant(pairs: pest::iterators::Pairs<Rule>) -> AstNode {
*CURRENT_SIZE.lock().unwrap() = Size::Word;
let mut pairs = pairs; let mut pairs = pairs;
let constant_name = pairs.next().unwrap().into_inner().next().unwrap().as_str(); let constant_name = pairs.next().unwrap().into_inner().next().unwrap().as_str();
let operand_pair = pairs.next().unwrap(); let operand_pair = pairs.next().unwrap();