ack/mach/pmds/libsys/head_em.s

59 lines
711 B
ArmAsm
Raw Normal View History

1985-01-07 15:43:50 +00:00
.define .lino,.filn
1992-06-30 16:04:38 +00:00
.define EXIT,WRITE,BRK
1985-01-07 15:43:50 +00:00
.define begtext,begdata,begbss
.define EARRAY,ERANGE,ESET,EIDIVZ,EHEAP,EILLINS,ECASE
.define hol0,.reghp,.limhp,.trpim,.trppc
.define LINO_AD,FILN_AD
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
1985-01-07 15:43:50 +00:00
LINO_AD = 0
FILN_AD = 4
EARRAY = 0
ERANGE = 1
ESET = 2
EIDIVZ = 6
EHEAP = 17
EILLINS = 18
ECASE = 20
.sect .text
1985-01-07 15:43:50 +00:00
begtext:
add.l #2,sp !convert argc from 4-byte to 2-byte
1991-03-06 14:26:16 +00:00
jsr __m_a_i_n
1985-01-07 15:43:50 +00:00
add #010,sp
EXIT:
1987-03-03 11:11:39 +00:00
move.w d0,-(sp)
1987-03-03 11:22:29 +00:00
jsr __exit
1985-01-07 15:43:50 +00:00
1992-06-30 16:04:38 +00:00
WRITE: jmp __write
BRK: jmp __brk
.sect .data
1985-01-07 15:43:50 +00:00
begdata:
hol0:
.lino:
.data2 0,0 ! lino
1985-01-07 15:43:50 +00:00
.filn:
.data4 0 ! filn
1985-01-07 15:43:50 +00:00
.reghp:
.data4 endbss
1985-01-07 15:43:50 +00:00
.limhp:
.data4 endbss
1985-01-07 15:43:50 +00:00
.trppc:
.data4 0
1985-01-07 15:43:50 +00:00
.trpim:
.data2 0
1985-01-07 15:43:50 +00:00
.sect .bss
1985-01-07 15:43:50 +00:00
begbss: