Added EXIT, WRITE and BRK entry point
This commit is contained in:
parent
d2ee282845
commit
d0e54a11e5
1 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
.define hol0,argv,.reghp,.limhp,envp,begbss
|
.define hol0,argv,.reghp,.limhp,envp,begbss
|
||||||
.define .ignmask, .trpreg
|
.define .ignmask, .trpreg
|
||||||
.define .stop
|
.define .stop, BRK
|
||||||
.define ERANGE,EILLINS,ECASE
|
.define ERANGE,EILLINS,ECASE
|
||||||
.sect .text
|
.sect .text
|
||||||
.sect .rom
|
.sect .rom
|
||||||
|
@ -33,6 +33,12 @@ ECASE = 20
|
||||||
jsr @.putchar
|
jsr @.putchar
|
||||||
bpt
|
bpt
|
||||||
|
|
||||||
|
BRK:
|
||||||
|
movd 0,r0
|
||||||
|
ret 0
|
||||||
|
|
||||||
|
WRITE: jump @__write
|
||||||
|
|
||||||
.sect .bss
|
.sect .bss
|
||||||
begbss:
|
begbss:
|
||||||
.sect .data
|
.sect .data
|
||||||
|
|
Loading…
Reference in a new issue