From 7f0614990a6485dccf24e160b491c93c56771b1e Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 1 Dec 2023 15:10:41 +0200 Subject: WIP --- asm/atk16.py | 4 ++++ asm/test_py_src.py | 2 ++ 2 files changed, 6 insertions(+) (limited to 'asm') 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" -- cgit v1.3