Added EXIT, WRITE and BRK entry point
This commit is contained in:
parent
ea624f82de
commit
8e4ee3ec1a
3 changed files with 72 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
.define .limhp
|
.define .limhp
|
||||||
.define .trppc
|
.define .trppc
|
||||||
.define .trpim
|
.define .trpim
|
||||||
|
.define EXIT, BRK, WRITE
|
||||||
|
|
||||||
! run time startoff
|
! run time startoff
|
||||||
.data2 0
|
.data2 0
|
||||||
|
@ -29,11 +30,36 @@
|
||||||
pushl r2
|
pushl r2
|
||||||
pushl r1
|
pushl r1
|
||||||
calls $3,__m_a_i_n
|
calls $3,__m_a_i_n
|
||||||
|
EXIT:
|
||||||
movl $Im2,ap
|
movl $Im2,ap
|
||||||
movl r0,6(ap)
|
movl r0,6(ap)
|
||||||
chmk (ap)+
|
chmk (ap)+
|
||||||
halt
|
halt
|
||||||
|
|
||||||
|
break = 17
|
||||||
|
|
||||||
|
.align 1
|
||||||
|
BRK:
|
||||||
|
.data2 0x0000
|
||||||
|
chmk $break
|
||||||
|
bcc 1f
|
||||||
|
jmp errmon
|
||||||
|
1:
|
||||||
|
movl 4(ap),.limhp
|
||||||
|
clrl r0
|
||||||
|
ret
|
||||||
|
|
||||||
|
write = 4
|
||||||
|
|
||||||
|
.align 1
|
||||||
|
WRITE:
|
||||||
|
.data2 0x0000
|
||||||
|
chmk $write
|
||||||
|
bcc 1f
|
||||||
|
jmp errmon
|
||||||
|
1:
|
||||||
|
ret
|
||||||
|
|
||||||
.sect .data
|
.sect .data
|
||||||
Im2:
|
Im2:
|
||||||
.data2 1
|
.data2 1
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
.define .limhp
|
.define .limhp
|
||||||
.define .trppc
|
.define .trppc
|
||||||
.define .trpim
|
.define .trpim
|
||||||
|
.define EXIT,WRITE,BRK
|
||||||
|
|
||||||
! run time startoff
|
! run time startoff
|
||||||
.data2 0
|
.data2 0
|
||||||
|
@ -29,11 +30,32 @@
|
||||||
pushl r2
|
pushl r2
|
||||||
pushl r1
|
pushl r1
|
||||||
calls $3,__m_a_i_n
|
calls $3,__m_a_i_n
|
||||||
|
EXIT:
|
||||||
movl $Im2,ap
|
movl $Im2,ap
|
||||||
movl r0,6(ap)
|
movl r0,6(ap)
|
||||||
chmk (ap)+
|
chmk (ap)+
|
||||||
halt
|
halt
|
||||||
|
|
||||||
|
DEFINE(WRITE)
|
||||||
|
chmk $SYS_write
|
||||||
|
bcs 1f
|
||||||
|
ret
|
||||||
|
1:
|
||||||
|
jmp cerror
|
||||||
|
|
||||||
|
DEFINE(BRK)
|
||||||
|
cmpl 4(ap),$endbss
|
||||||
|
bgeq 1f
|
||||||
|
movl $endbss,4(ap)
|
||||||
|
1:
|
||||||
|
chmk $17
|
||||||
|
bcs 1f
|
||||||
|
movl 4(ap),.limhp
|
||||||
|
clrl r0
|
||||||
|
ret
|
||||||
|
1:
|
||||||
|
jmp cerror
|
||||||
|
|
||||||
.sect .data
|
.sect .data
|
||||||
Im2:
|
Im2:
|
||||||
.data2 1
|
.data2 1
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
.define .limhp
|
.define .limhp
|
||||||
.define .trppc
|
.define .trppc
|
||||||
.define .trpim
|
.define .trpim
|
||||||
|
.define EXIT,WRITE,BRK
|
||||||
|
|
||||||
! run time startoff
|
! run time startoff
|
||||||
.data2 0
|
.data2 0
|
||||||
|
@ -29,11 +30,34 @@
|
||||||
pushl r2
|
pushl r2
|
||||||
pushl r1
|
pushl r1
|
||||||
calls $3,__m_a_i_n
|
calls $3,__m_a_i_n
|
||||||
|
EXIT:
|
||||||
movl $Im2,ap
|
movl $Im2,ap
|
||||||
movl r0,6(ap)
|
movl r0,6(ap)
|
||||||
chmk (ap)+
|
chmk (ap)+
|
||||||
halt
|
halt
|
||||||
|
|
||||||
|
write = 4
|
||||||
|
WRITE:
|
||||||
|
.data2 0x0000
|
||||||
|
chmk $write
|
||||||
|
bcc 1f
|
||||||
|
jmp cerror
|
||||||
|
1:
|
||||||
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
break = 17
|
||||||
|
|
||||||
|
BRK:
|
||||||
|
.data2 0x0000
|
||||||
|
chmk $break
|
||||||
|
bcc 1f
|
||||||
|
jmp cerror
|
||||||
|
1:
|
||||||
|
movl 4(ap),.limhp
|
||||||
|
clrl r0
|
||||||
|
ret
|
||||||
|
|
||||||
.sect .data
|
.sect .data
|
||||||
Im2:
|
Im2:
|
||||||
.data2 1
|
.data2 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue