Fixed syntax and missed definitions
This commit is contained in:
1 parent
778a18e84b
commit
986e663aaf
7 files changed
+755
-736
No files matched your search
@@ -12,7 +12,6 @@
|
|||||||
INCLUDE "monitor.inc"
|
INCLUDE "monitor.inc"
|
||||||
INCLUDE "ordos.inc"
|
INCLUDE "ordos.inc"
|
||||||
INCLUDE "ioports.inc"
|
INCLUDE "ioports.inc"
|
||||||
; INCLUDE "resident.inc"
|
|
||||||
|
|
||||||
|
|
||||||
; --------------------------------------------------
|
; --------------------------------------------------
|
||||||
@@ -37,11 +36,12 @@
|
|||||||
|
|
||||||
START:
|
START:
|
||||||
|
|
||||||
; INCLUDE "main.asm"
|
INCLUDE "main.asm"
|
||||||
|
|
||||||
OUTEND
|
OUTEND
|
||||||
|
|
||||||
; INCLUDE "data.asm"
|
INCLUDE "variables.inc"
|
||||||
|
INCLUDE "safe.inc"
|
||||||
|
|
||||||
; --------------------------------------------------
|
; --------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -189,6 +189,11 @@ STRSIZ EQU 4
|
|||||||
NUMTMP EQU 3
|
NUMTMP EQU 3
|
||||||
BUFLEN EQU 37 ; but 130 = 0x82 can be used
|
BUFLEN EQU 37 ; but 130 = 0x82 can be used
|
||||||
|
|
||||||
|
|
||||||
|
SCR_ADDR EQU 0xC000
|
||||||
|
SCR_WIDTH EQU 384
|
||||||
|
SCR_HEIGHT EQU 256
|
||||||
|
|
||||||
; --------------------------------------------------
|
; --------------------------------------------------
|
||||||
; Error codes
|
; Error codes
|
||||||
; --------------------------------------------------
|
; --------------------------------------------------
|
||||||
|
|||||||
+1
-1
@@ -74,7 +74,7 @@ FDC_F708_SIDE EQU 0xf708
|
|||||||
; bit 1 - color count 0 - 16 colors, 1 - 4 colors;
|
; bit 1 - color count 0 - 16 colors, 1 - 4 colors;
|
||||||
; bit 2 - 0-mono, 1-color;
|
; bit 2 - 0-mono, 1-color;
|
||||||
; --------------------------------------------------
|
; --------------------------------------------------
|
||||||
PORT_SYS1 EQU 0xF800
|
PORT_SYS1 EQU 0xF8
|
||||||
|
|
||||||
|
|
||||||
; Write only system port mapped to RAM address.
|
; Write only system port mapped to RAM address.
|
||||||
|
|||||||
@@ -79,5 +79,8 @@ ORD_WFILE EQU 0xbff7
|
|||||||
; SP+2 -> return to OS address
|
; SP+2 -> return to OS address
|
||||||
ORD_RFILE EQU 0xbffa
|
ORD_RFILE EQU 0xbffa
|
||||||
|
|
||||||
; ORDOS Start. Entry point to ORDOS
|
; ORDOS Start. Entry point to ORDOS (JP)
|
||||||
ORD_START EQU 0xbffd
|
ORD_START EQU 0xBFFD
|
||||||
|
|
||||||
|
; Start sddress of ORDOS
|
||||||
|
ORD_STADR EQU 0xBFFE
|
||||||
@@ -21,6 +21,7 @@ ORI_SAFE_SET_ATTR EQU 0xF300
|
|||||||
; --------------------------------------------------
|
; --------------------------------------------------
|
||||||
ORI_SCR_ANDOR EQU 0xF310
|
ORI_SCR_ANDOR EQU 0xF310
|
||||||
|
|
||||||
|
ORI_SCR_OP2_1 EQU 0xF319
|
||||||
|
|
||||||
; --------------------------------------------------
|
; --------------------------------------------------
|
||||||
; Mask by OR hi 4 bit of extended RAM byte:
|
; Mask by OR hi 4 bit of extended RAM byte:
|
||||||
@@ -31,6 +32,10 @@ ORI_SCR_ANDOR EQU 0xF310
|
|||||||
; --------------------------------------------------
|
; --------------------------------------------------
|
||||||
ORI_MSK_HI_OR EQU 0xF31F
|
ORI_MSK_HI_OR EQU 0xF31F
|
||||||
|
|
||||||
|
CLRCLNXT EQU 0xF32C
|
||||||
|
CURCATR EQU 0xF32F
|
||||||
|
CLRCLUP EQU 0xF330
|
||||||
|
|
||||||
; --------------------------------------------------
|
; --------------------------------------------------
|
||||||
; Fill screen attributes
|
; Fill screen attributes
|
||||||
; Inp: A - memory page
|
; Inp: A - memory page
|
||||||
@@ -39,6 +44,8 @@ ORI_MSK_HI_OR EQU 0xF31F
|
|||||||
; --------------------------------------------------
|
; --------------------------------------------------
|
||||||
ORI_SCR_FA EQU 0xF32A
|
ORI_SCR_FA EQU 0xF32A
|
||||||
|
|
||||||
|
CLRCLRT EQU 0xF341
|
||||||
|
|
||||||
; Variable
|
; Variable
|
||||||
SAF_CURATR EQU 0xF349
|
SAF_CURATR EQU 0xF349
|
||||||
|
|
||||||
@@ -55,4 +62,10 @@ ORI_MON_TV2 EQU 0xF34B
|
|||||||
; --------------------------------------------------
|
; --------------------------------------------------
|
||||||
; Buffer for filename (12 bytes)
|
; Buffer for filename (12 bytes)
|
||||||
; --------------------------------------------------
|
; --------------------------------------------------
|
||||||
FNAMBUF EQU 0xF354
|
FNAMBUF EQU 0xF354
|
||||||
|
|
||||||
|
; --------------------------------------------------
|
||||||
|
; Stack for safe call MONITOR subroutines
|
||||||
|
; when one of extended RAM-page active
|
||||||
|
; --------------------------------------------------
|
||||||
|
SAFESTK EQU 0xF3C0
|
||||||
+32
-34
@@ -1,68 +1,66 @@
|
|||||||
; ==================================================
|
; ==================================================
|
||||||
; Orion BASIC v2.4 for Orion-128 computer
|
; Orion BASIC v2.4 for Orion-128 computer
|
||||||
;
|
;
|
||||||
; Uninitialized variables
|
; Uninitialized variables
|
||||||
; Disassembled by Romychs @ 2026-10-23
|
; Disassembled by Romychs @ 2026-10-23
|
||||||
; ==================================================
|
; ==================================================
|
||||||
|
|
||||||
ORG 0x27C2
|
ORG 0x27C2
|
||||||
|
|
||||||
DIMFLG:
|
DIMFLG:
|
||||||
DS 1 ; DIM flag
|
DS 1 ; DIM flag
|
||||||
VALTYP:
|
VALTYP:
|
||||||
DS 1 ; Value type indicator 0-numeric, 1-string
|
DS 1 ; Value type indicator 0-numeric, 1-string
|
||||||
TEMPPT:
|
TEMPPT:
|
||||||
DS 2 ; Pointer to first free temp descriptor
|
DS 2 ; Pointer to first free temp descriptor
|
||||||
TEMPST:
|
TEMPST:
|
||||||
DS STRSIZ*NUMTMP ; Storage for NUMTMP temp descriptors
|
DS STRSIZ*NUMTMP ; Storage for NUMTMP temp descriptors
|
||||||
DSCTMP:
|
DSCTMP:
|
||||||
DS 4 ; String function result descriptor
|
DS 4 ; String function result descriptor
|
||||||
STREND:
|
STREND:
|
||||||
DS 2
|
DS 2
|
||||||
TEMP3:
|
TEMP3:
|
||||||
DS 2
|
DS 2
|
||||||
DATLIN:
|
DATLIN:
|
||||||
DS 2 ; Data line number, remember for error
|
DS 2 ; Data line number, remember for error
|
||||||
SUBFLG:
|
SUBFLG:
|
||||||
DS 1 ; Flag for subscribted variable allowed
|
DS 1 ; Flag for subscribted variable allowed
|
||||||
FLGINP:
|
FLGINP:
|
||||||
DS 1 ; Flag, we doing input
|
DS 1 ; Flag, we doing input
|
||||||
TEMP:
|
TEMP:
|
||||||
DS 2
|
DS 2
|
||||||
TEMP2:
|
TEMP2:
|
||||||
DS 2
|
DS 2
|
||||||
CURLIN:
|
CURLIN:
|
||||||
DS 2 ; Current line number
|
DS 2 ; Current line number
|
||||||
OLDLIN:
|
OLDLIN:
|
||||||
DS 2 ; Old line number
|
DS 2 ; Old line number
|
||||||
OLDTXT:
|
OLDTXT:
|
||||||
DS 2 ; Old text pointer
|
DS 2 ; Old text pointer
|
||||||
ARYTAB:
|
ARYTAB:
|
||||||
DS 2 ; Pointer to beginning of array table
|
DS 2 ; Pointer to beginning of array table
|
||||||
DATPTR:
|
DATPTR:
|
||||||
DS 2
|
DS 2
|
||||||
FACLO:
|
FACLO:
|
||||||
DS 3 ; Mantissa
|
DS 3 ; Mantissa
|
||||||
FAC:
|
FAC:
|
||||||
DS 2 ; Exponent
|
DS 2 ; Exponent
|
||||||
FBUFFR:
|
FBUFFR:
|
||||||
DS 13
|
DS 13
|
||||||
|
|
||||||
; ---------------------------------------------------
|
; ---------------------------------------------------
|
||||||
; Text of BASIC program
|
; Text of BASIC program
|
||||||
; ---------------------------------------------------
|
; ---------------------------------------------------
|
||||||
ORG 0x2801
|
ORG 0x2801
|
||||||
TEXT
|
TEXT
|
||||||
DS 22523
|
DS 22523
|
||||||
|
|
||||||
; ---------------------------------------------------
|
; ---------------------------------------------------
|
||||||
; Sprite operation temp area
|
; Sprite operation temp area
|
||||||
; ---------------------------------------------------
|
; ---------------------------------------------------
|
||||||
ORG 0x7FFC
|
ORG 0x7FFC
|
||||||
SPR_HEIGHT DS 1
|
SPR_HEIGHT DS 1
|
||||||
SPR_WIDTH DS 1
|
SPR_WIDTH DS 1
|
||||||
SPR_BUFADR DS 2
|
SPR_BUFADR DS 2
|
||||||
DS 16
|
DS 16
|
||||||
SPR_TOP $
|
SPR_TOP EQU $
|
||||||
|
|
||||||
|
|
||||||
Reference in new issue
Block a user