fixed draft code, no compilation errors

This commit is contained in:
romych committed 2026-10-15 13:51:04 +03:00
1 parent f13d1d889b
commit 2558e64a34
11 files changed
+336 -271

No files matched your search

+21 -2
View File
@@ -46,18 +46,37 @@ LD_BC_nn EQU 0x01 ; skip next 2-byte op
LD_DE_nn EQU 0x11 ; skip next 2-byte op
LD_HL_nn EQU 0x21
JP_NZ_nn EQU 0xC2 ;
JP_nn EQU 0xC3
JP_Z_nn EQU 0xCA ; skip next 2-byte op
CALL_nn EQU 0xCD
OUT_n_A EQU 0xD3
IN_A_n EQU 0xDB
OR_n EQU 0xF6 ; skip next byte op, set flags
CP_n EQU 0xFE ; skip next byte op, set flags
FORSIZ EQU 0x16
BOTCON EQU 0x0c ; 12
INT2CON EQU 0x0f
NMLO.C EQU 0x08
CLMWID EQU 0x0e
LSTOPK EQU 0x0c
NMREL EQU 0x03
ARG EQU 4
PRMSIZ EQU 100 ; 0x64
CSTRNG EQU 0x5C ; 92
KBFLEN EQU 0x13E ; 318
KBFLEN EQU 0x13E ; 318
SCREEN_HEIGHT EQU 256
SCREEN_WIDTH EQU 384
; Device types
DMEM EQU 0xfb ; 251
DGRP EQU 0xfc ; 252
DCRT EQU 0xfd ; 253
DLPT EQU 0xfe ; 254
DCAS EQU 0xff ; 255