VOGONS


First post, by trepan

User metadata
Rank Newbie
Rank
Newbie

I made a program in NASM.
It crashes.
Code :

BITS 16
ORG 0x100
SECTION .text
; Lets do DTA
mov ah,0x1a
mov dx,buf
int 0x21
; Find a COM file
mov ah,0x4f
xor cx,cx
mov dx,fname
int 0x21 ** we crash here
; Did we find it ...
cmp ax,0x0
je end
fname	db	'c:\*.com',0
buf db ' '

DosBOX 0.63 [Core:simple and full] Running FreeBSD/4.10 XFree 4.x ; Sound disabled; RAM : 256MB [system] 4;8;16;32 [Dosbox]

Reply 1 of 2, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

yes
you must use 4e first to initilase the dta. (and get the first result)

while this crash has actually been fixed in the cvs. you will not find a file.
if you only use 4f

Water flows down the stream
How to ask questions the smart way!