1985-02-07 17:43:43 +00:00
|
|
|
.define CERASE,CKILL,CSTOP,CSTART
|
|
|
|
.define .lino,.filn
|
|
|
|
|
|
|
|
.define F_DUM,EXIT
|
|
|
|
|
|
|
|
.define begtext,begdata,begbss
|
|
|
|
.define EARRAY,ERANGE,ESET,EIDIVZ,EHEAP,EILLINS,ECASE
|
|
|
|
.define hol0,.reghp,.limhp,.trpim,.trppc
|
|
|
|
.define LINO_AD,FILN_AD
|
|
|
|
|
|
|
|
|
|
|
|
CERASE = 010
|
|
|
|
CKILL = 030
|
|
|
|
CSTART = 021
|
|
|
|
CSTOP = 023
|
|
|
|
F_DUM = 0
|
|
|
|
|
|
|
|
|
|
|
|
LINO_AD = 0
|
|
|
|
FILN_AD = 4
|
|
|
|
|
|
|
|
EARRAY = 0
|
|
|
|
ERANGE = 1
|
|
|
|
ESET = 2
|
|
|
|
EIDIVZ = 6
|
|
|
|
EHEAP = 17
|
|
|
|
EILLINS = 18
|
|
|
|
ECASE = 20
|
|
|
|
|
|
|
|
.text
|
|
|
|
begtext:
|
|
|
|
pea endbss
|
|
|
|
jsr _brk
|
|
|
|
add.l #4,sp
|
|
|
|
jsr _m_a_i_n
|
|
|
|
add #012,sp
|
|
|
|
EXIT:
|
|
|
|
|
|
|
|
jsr __exit
|
1985-03-04 15:37:38 +00:00
|
|
|
! As a temporary measure
|
|
|
|
jsr .trp
|
1985-02-07 17:43:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
.data
|
|
|
|
begdata:
|
|
|
|
hol0:
|
|
|
|
.lino:
|
|
|
|
.long 0 ! lino
|
|
|
|
.filn:
|
|
|
|
.long 0 ! filn
|
|
|
|
.reghp:
|
|
|
|
.long endbss
|
|
|
|
.limhp:
|
|
|
|
.long endbss
|
|
|
|
.trppc:
|
|
|
|
.long 0
|
|
|
|
.trpim:
|
|
|
|
.long 0 ! was short
|
|
|
|
|
|
|
|
|
|
|
|
.bss
|
|
|
|
begbss:
|