mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-01-24 05:33:50 +00:00
Can't forget the assembly include helper files
This commit is contained in:
parent
b3d1dfed7d
commit
7527a5a7d3
11
src/inc/extdefseg.inc
Normal file
11
src/inc/extdefseg.inc
Normal file
@ -0,0 +1,11 @@
|
||||
;
|
||||
; BYTECODE DEFS SEGMENT
|
||||
;
|
||||
DB 0 ; PAD BYE
|
||||
DEFSEG EQU *
|
||||
;
|
||||
; INIT CODE RUNS WHEN MODULE LOADED
|
||||
;
|
||||
MODINIT DB $54 ; CALL ASM INIT
|
||||
DW INIT
|
||||
DB $5C ; RET
|
5
src/inc/extheader.inc
Normal file
5
src/inc/extheader.inc
Normal file
@ -0,0 +1,5 @@
|
||||
DW $6502
|
||||
DW 0 ; SYSFLAGS
|
||||
DW DEFSEG ; DEF OFFSET
|
||||
DW 1 ; DEF COUNT (INCLUDING INIT)
|
||||
DW MODINIT ; MOD INIT
|
23
src/inc/plasma.inc
Normal file
23
src/inc/plasma.inc
Normal file
@ -0,0 +1,23 @@
|
||||
REL
|
||||
ORG $1000
|
||||
;
|
||||
; USEFUL ZERO PAGE LOCATIONS
|
||||
;
|
||||
SRC EQU $06
|
||||
SRCL EQU SRC
|
||||
SRCH EQU SRC+1
|
||||
DST EQU SRC+2
|
||||
DSTL EQU DST
|
||||
DSTH EQU DST+1
|
||||
TMP EQU $E7
|
||||
TMPL EQU TMP
|
||||
TMPH EQU TMP+1
|
||||
ESTKH EQU $C0
|
||||
ESTKL EQU $D0
|
||||
DROPOP EQU $EF
|
||||
NEXTOP EQU $F0
|
||||
FETCHOP EQU NEXTOP+1
|
||||
;
|
||||
; JUMP TO BYTECODE INTERPRETER ADDRESS
|
||||
;
|
||||
INTERP EQU $03D0
|
Loading…
x
Reference in New Issue
Block a user