diff options
Diffstat (limited to 'asm')
| -rw-r--r-- | asm/atk16.py | 4 | ||||
| -rw-r--r-- | asm/test_py_src.py | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/asm/atk16.py b/asm/atk16.py index cdd9f64..2a1c0a1 100644 --- a/asm/atk16.py +++ b/asm/atk16.py @@ -23,3 +23,7 @@ def asm(asm: str): def ord(char: Char) -> int: """Convert char to int""" raise NotImplementedError + +def const(word: Word16) -> ConstWord16: + """When used in an assignment such as `A = const(0xFF)`, stores the value as a globally accessible constant.""" + raise NotImplementedError
\ No newline at end of file diff --git a/asm/test_py_src.py b/asm/test_py_src.py index 676f8cd..619d22e 100644 --- a/asm/test_py_src.py +++ b/asm/test_py_src.py @@ -8,6 +8,8 @@ GRAPHICS_SPRITE_MODE: ConstWord16 = 2 GRAPHICS_MODE_PP: ConstWord16 = 0x17 TEXT_MEM_PP: ConstWord16 = 0x19 +TEXT_MEM_PP: ConstWord16 = 0x19 + # asm( # "@label keyboard_isr" # " spu RA" |
