Added BRK and EXIT entry points

This commit is contained in:
ceriel 1992-06-30 15:51:31 +00:00
parent 3f3af2e01f
commit 4ef108f93e

View file

@ -3,6 +3,7 @@
.define begtext,begdata,begbss,syscal .define begtext,begdata,begbss,syscal
.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
.extern endbss .extern endbss
ERANGE = 1 ERANGE = 1
@ -55,8 +56,13 @@ begtext:
mov (.reghp),ax ! on Xenix, heap begins above stack! mov (.reghp),ax ! on Xenix, heap begins above stack!
pop ax pop ax
call __m_a_i_n call __m_a_i_n
EXIT:
push ax push ax
call __exit call __exit
BRK:
jmp __brk
.sect .data .sect .data
begdata: begdata:
hol0: hol0: