fixes for byte-to-byte compilation

This commit is contained in:
romych committed 2026-10-15 15:13:08 +03:00
1 parent 2558e64a34
commit 51d8b772dc
12 files changed
+449 -402

No files matched your search

+17 -8
View File
@@ -14,22 +14,25 @@
INCLUDE "ioports.inc"
INCLUDE "resident.inc"
OUTPUT "mzbas.bru"
; --------------------------------------------------
; .BRU file header
; --------------------------------------------------
DB 'MZBAS$ '
DB 0x00, 0x00, 0x00, 0x83 , 0x00, 0x49, 0x53, 0xD4
DB 0xC3, 0xA2, 0x24, 0x00 , 0x4D, 0x12, 0x98, 0x98
DB 0xC3, 0xC6, 0x24, 0x00 , 0x00, 0x00, 0x00, 0x00
DB 0xC3, 0xC9, 0x24, 0x00 , 0x00, 0x00, 0x00, 0x00
OUTPUT "mzbas.bru"
DB 'MZBAS$ ' ; file name
DW 0x0000 ; address to place code in RAM
DW 0x8300 ; file size - size of header (16b)
DB 0x00 ; flags (bit 7 - protected from delete if set)
DB 0x49, 0x53, 0xD4 ; padding the header to a length of 16 bytes, typically values 0xff
OUTEND
OUTPUT "mzbas.bru",a
; --------------------------------------------------
; Entry point
; --------------------------------------------------
OUTPUT "mzbas.bru",a
ORG 0x0000
START:
@@ -52,7 +55,13 @@ START:
INCLUDE "main3.asm"
INCLUDE "inidata.asm"
OUTEND
INCLUDE "data.asm"
; --------------------------------------------------
OUTEND
; Include this for test offsets of uninitialized variables
; INCLUDE "chk_offs.inc"