This commit is contained in:
Mario Fetka
2026-05-23 16:56:04 +02:00
parent 0d466ce30a
commit a080dfaa56
3 changed files with 124 additions and 3 deletions

View File

@@ -6,7 +6,7 @@
; Keep kern.asm as the historical TASM source and use this file for the
; reproducible Open Watcom build.
.286
.386
.model large
.data
@@ -20,6 +20,7 @@ public _IPXclose_socket
public _IPXlisten
public _xmemmove
public _Net_Call
public _C32_LoadNios_Probe
public _Net_Call_VLM_Raw
_IPXinit proc far
@@ -287,4 +288,61 @@ vlm_raw_done:
_Net_Call_VLM_Raw endp
; int C32_LoadNios_Probe(UI axfunc, void *outbuf)
;
; Probe the Client32/NIOS INT 2F entry used by DeveloperNet dninit.asm:
; AX = axfunc, normally D8C1h
; INT 2Fh
; AX = 0000 on success
; ESI and ECX contain Client32/NIOS function pointers/data
;
; outbuf layout, little endian:
; +00 word AX after int 2F
; +02 dword ESI after int 2F
; +06 dword ECX after int 2F
; +0A word BX
; +0C word CX low
; +0E word DX
; +10 word SI low
; +12 word DI low
_C32_LoadNios_Probe proc far
push bp
mov bp, sp
push ds
push es
push si
push di
xor ecx, ecx
xor esi, esi
xor ebx, ebx
xor edx, edx
xor edi, edi
mov ax, [bp+6]
int 2Fh
les di, dword ptr [bp+8]
mov es:[di+0], ax
mov dword ptr es:[di+2], esi
mov dword ptr es:[di+6], ecx
mov es:[di+10], bx
mov es:[di+12], cx
mov es:[di+14], dx
mov es:[di+16], si
; DI currently points at outbuf, so store caller-visible DI is not useful.
mov word ptr es:[di+18], 0
pop di
pop si
pop es
pop ds
pop bp
xor ah, ah
ret
_C32_LoadNios_Probe endp
end