From 9d4c6fc299294ac36f7082599edce19286fa0f99 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 13 Apr 2023 14:48:34 +0300 Subject: Add @let directive, start pondering interrupt control --- asm/ext_std.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'asm/ext_std.py') diff --git a/asm/ext_std.py b/asm/ext_std.py index 11da8aa..de7cd43 100644 --- a/asm/ext_std.py +++ b/asm/ext_std.py @@ -48,6 +48,9 @@ def expand_dec(reg: str) -> ExpandResult: def expand_mov(from_reg: str, to_reg: str) -> ExpandResult: return [["ali", "al_plus", from_reg, "0", to_reg]] +def expand_nop() -> ExpandResult: + return [["ali", "al_plus", "RA", "0", "RA"]] + def expand_spu(reg: str) -> ExpandResult: return [["str", reg, "__STACK_POINTER"]] + expand_inc("__STACK_POINTER") @@ -89,6 +92,7 @@ expansions: OpExpansionDict = { "inc": expand_inc, "dec": expand_dec, "mov": expand_mov, + "nop": expand_nop, "spu": expand_spu, "spo": expand_spo, "csr": expand_csr, -- cgit v1.3