Added EXIT and BRK entry point
This commit is contained in:
parent
2ae29707d2
commit
6823ce7c96
|
@ -3,6 +3,7 @@
|
||||||
.define begtext,begdata,begbss
|
.define begtext,begdata,begbss
|
||||||
.define hol0,.reghp,.limhp,.trppc,.ignmask
|
.define hol0,.reghp,.limhp,.trppc,.ignmask
|
||||||
.define ERANGE,ESET,EHEAP,ECASE,EILLINS,EIDIVZ,EODDZ
|
.define ERANGE,ESET,EHEAP,ECASE,EILLINS,EIDIVZ,EODDZ
|
||||||
|
.define EXIT, BRK
|
||||||
|
|
||||||
ERANGE = 1
|
ERANGE = 1
|
||||||
ESET = 2
|
ESET = 2
|
||||||
|
@ -36,7 +37,12 @@ begtext:
|
||||||
push cx
|
push cx
|
||||||
call __m_a_i_n
|
call __m_a_i_n
|
||||||
push ax
|
push ax
|
||||||
|
EXIT:
|
||||||
call __exit
|
call __exit
|
||||||
|
|
||||||
|
BRK:
|
||||||
|
jmp __brk
|
||||||
|
|
||||||
.sect .data
|
.sect .data
|
||||||
begdata:
|
begdata:
|
||||||
hol0:
|
hol0:
|
||||||
|
|
Loading…
Reference in a new issue