ReC98/libs/BorlandC/__abort.asm

28 lines
394 B
NASM
Raw Normal View History

public __abort
__abort proc DIST
push si
push di
if LDATA
push ds
mov ax, offset aAbnormalProgra
push ax ; buf
nopcall ___ErrorMessage
mov ax, 3
push ax ; status
nopcall __exit
add sp, 6
else
mov ax, offset aAbnormalProgra
push ax ; buf
call ___ErrorMessage
mov ax, 3
push ax ; status
call __exit
pop cx
pop cx
endif
pop di
pop si
ret
__abort endp