assembly - Call 5 interface on MS-DOS -
i have hello, world program ms-dos uses int 21h make system calls.
mov dx,hello mov ah,9 int 0x21 mov ah,0 int 0x21
"hello" address of string 'hello, world',13,10,'$'.
the program works.
however, when replace (the first) "int 0x21" "call 5", program crashes computer (i.e. virtualbox virtual machine running pts-dos). on dosbox terminates , returns command prompt.
i tried using different registers address , call number got same result.
now wondering...
- do later versions of dos not support cp/m compatibility call 5 interface more?
- do pts-dos , dos in dosbox not support call 5?
- am using interface wrong?
- do have configure segment registers first? (i tried setting segment registers zero.)
any ideas?
update: accepted answer because correct per documentation. still doesn't work might due version of dos or other problem.
is there version of dos you've seen cp/m "call 5" work? started dos 2.1, did write code 1.1 , cp/m compatibility saw in fcbs. of course, wasn't explicitly looking it, don't recall "call 5" being reported supported anybody...
followup:
the latest psp definition (as listed on web, ymmv) indeed have "call 5" interface supported. true dos compatible environment should support it.
Comments
Post a Comment