>>Does anybody know why a M/C program that uses Dos to load files will
>>work in

>What do you mean by 4B something ?? is that hex and if so is the $B high
>byte or low byte ?

Thats    &4b50 (Hex)

to load the header of a file put its file type at &4b00 and the 10 char
filename at &4b01
then use hook code 129 to load the 48 byte header at &4B50

now you can load the file at page B offset  HL (location C, &8000-BFFF). C
is pages  and
DE modulo 16384 bytes to load. Use hook code 130 in location B (&4000-&7FFF)
to load the file
Also HMPTR (port 251) is not restored.

To set DOS error trapping set the address of your error code at &5BC0. Make
sure
you set  &5BC3 to 0 after a error has occured and &5BC0 to 0 (word) when
error trapping is no longer needed.

Hope that helps

Edwin Blink

[EMAIL PROTECTED]
http://www.designing.myweb.nl/samcoupe/index.htm


Reply via email to