From 5e5a540ce9a32fc45ba30f86b9410522bce11258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sun, 19 Mar 2023 21:06:12 +0200 Subject: [PATCH] Add memory allocation map --- extract_symbols.py | 1 + ponydos.asm | 2 ++ 2 files changed, 3 insertions(+) diff --git a/extract_symbols.py b/extract_symbols.py index ecd1e5e..1768712 100644 --- a/extract_symbols.py +++ b/extract_symbols.py @@ -12,6 +12,7 @@ variables = { 'mouse_buttons': None, 'window_chain_head': None, 'redraw': None, + 'memory_allocation_map': None, } if len(sys.argv) != 3: diff --git a/ponydos.asm b/ponydos.asm index d008b44..8a1cb8e 100644 --- a/ponydos.asm +++ b/ponydos.asm @@ -466,6 +466,7 @@ mouse_handler: times 510-($-$$) db 0 %endif +memory_allocation_map: db 0x55 db 0xaa @@ -475,6 +476,7 @@ db 0xaa section .bss _bss_start: +resb 8 ; Rest of the memory allocation map mouse_x resw 1 mouse_y resw 1 ; mouse_x + 2, do not touch