diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2023-11-13 23:12:05 +0200 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2023-11-13 23:12:05 +0200 |
| commit | 14d8401c721fae8367fa24db20af4e344faafdd4 (patch) | |
| tree | 58931d22d9c903a15bbe137c571dd76c7a98799b /asm/test_py_src.py | |
| parent | e2b7385b03a6dc9c8c39dde5c049cd74b0768bd1 (diff) | |
Fix calling issues
Diffstat (limited to 'asm/test_py_src.py')
| -rw-r--r-- | asm/test_py_src.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/asm/test_py_src.py b/asm/test_py_src.py index 74ea60d..ec17ddc 100644 --- a/asm/test_py_src.py +++ b/asm/test_py_src.py @@ -1,6 +1,5 @@ import atk16 - TEXT_MODE: atk16.ConstInt = 1 GRAPHICS_MODE_ADDR_P: atk16.ConstInt = 0x17 TEXT_MEM_ADDR_P: atk16.ConstInt = 0x19 @@ -10,18 +9,12 @@ text_mem_addr = atk16.load(TEXT_MEM_ADDR_P) atk16.store(graphics_mode_addr, TEXT_MODE) - def nth_letter(n: int) -> int: - return n + 65 + return atk16.ord('A') + n i = 0 -atk16.asm("ldi 0b111111111 RG") while i < 26: - # bug: stack frame offset for nth_letter is calculated - # one off because text_mem_addr + i takes up one - # stack slot atk16.store(text_mem_addr + i, nth_letter(i)) - #atk16.store(text_mem_addr + i, i + 65) i = i + 1 while True: |
