68 lines
1.6 KiB
NASM
68 lines
1.6 KiB
NASM
; ==================================================
|
|
; MSX BASIC for Orion-128 computer
|
|
;
|
|
; Main file
|
|
; Disassembled by Romychs @ 2026-10-08
|
|
; ==================================================
|
|
|
|
DEVICE NOSLOT64K
|
|
SLDOPT COMMENT WPMEM, ASSERTION, LOGPOINT
|
|
|
|
INCLUDE "equates.inc"
|
|
INCLUDE "monitor.inc"
|
|
INCLUDE "ordos.inc"
|
|
INCLUDE "ioports.inc"
|
|
INCLUDE "resident.inc"
|
|
|
|
|
|
; --------------------------------------------------
|
|
; .BRU file header
|
|
; --------------------------------------------------
|
|
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
|
|
|
|
; --------------------------------------------------
|
|
; Entry point
|
|
; --------------------------------------------------
|
|
OUTPUT "mzbas.bru",a
|
|
|
|
ORG 0x0000
|
|
|
|
START:
|
|
|
|
INCLUDE "orion.asm"
|
|
|
|
INCLUDE "math.asm"
|
|
|
|
INCLUDE "dispatch.asm"
|
|
|
|
INCLUDE "errors.asm"
|
|
|
|
INCLUDE "main1.asm"
|
|
|
|
INCLUDE "graphics.asm"
|
|
|
|
INCLUDE "main2.asm"
|
|
|
|
INCLUDE "deviceio.asm"
|
|
|
|
INCLUDE "main3.asm"
|
|
|
|
INCLUDE "inidata.asm"
|
|
|
|
OUTEND
|
|
|
|
INCLUDE "data.asm"
|
|
|
|
; --------------------------------------------------
|
|
|
|
; Include this for test offsets of uninitialized variables
|
|
; INCLUDE "chk_offs.inc"
|