fixed: send ended up in data segment!

This commit is contained in:
ceriel 1989-11-06 11:35:52 +00:00
parent 6d39055193
commit 1546ac1235
2 changed files with 3 additions and 7 deletions

View file

@ -3,7 +3,6 @@
.define begtext,begdata,begbss
.define hol0,.reghp,.limhp,.trppc,.ignmask
.define ERANGE,ESET,EHEAP,ECASE,EILLINS,EIDIVZ,EODDZ
.extern _end
ERANGE = 1
ESET = 2
@ -26,6 +25,7 @@ begtext:
push bx
push cx
xor bp,bp
add sp,6
call _m_a_i_n
call _exit
.sect .data
@ -33,12 +33,6 @@ begdata:
hol0:
.data2 0,0
.data2 0,0
argv:
.data2 3f
envp:
.data2 0
3:
.asciz "PROGRAM"
.reghp:
.data2 endbss
.limhp:

View file

@ -12,6 +12,8 @@ SYSVEC = 32
!*========================================================================*
! send(), receive(), sendrec() all save bp, but destroy ax, bx, and cx.
.sect .text
_send: mov cx,SEND ! send(dest, ptr)
jmp L0