Okay. I'm stumped.
open proc fname:ptr byte, mode:word ;Open the file with name 'fname'. ;The access is defined by 'mode': ; 0 = _read ; 1 = _write ; 2 = _read/_write call ClearDosError
; mov dx, fname ; mov al, byte ptr mode ; dos dosOpen
mov ax, 6C00h ; DOS 4.0 Extended Open/Create mov bx, mode xor cx, cx ; attribs for new file (none) mov dx, 1 ; action (fail if missing, open if not) lea si, fname int 21h
.if carry? mov ax, NO_HANDLE .endif
ret open endp
The commented three lines are SCI's original open implementation. The next block is my attempt to update it from DOS 2.0 to 4.0, in preparation for LFN support because Win95's LFN version of AX 6C00h uses basically the same semantics as DOS 4.0. Then the ".if carry?" block is original SCI again.
Can't find configuration file: RESOURCE.CFG Please run the Install program.
Script #: 0, IP: 0
So clearly it failed to open and I don't know enough to correct whatever mistake is in here.










