aboutsummaryrefslogtreecommitdiffstats
path: root/asm
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2023-12-01 15:10:41 +0200
committerJan Tuomi <jans.tuomi@gmail.com>2023-12-01 15:10:41 +0200
commit7f0614990a6485dccf24e160b491c93c56771b1e (patch)
tree79826befff2f7843c63686e84bc276593ad4d52e /asm
parente2fd1c7ee759ac8870f21afe5fc4e36c8b808d25 (diff)
WIP
Diffstat (limited to 'asm')
-rw-r--r--asm/atk16.py4
-rw-r--r--asm/test_py_src.py2
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"