Reading files bigger than64k in real mode
Hello!
I'm currently working mod player using my own assembler :-). My assembler
works only in real mode (V86mode). I have problem how to read mod files
which are bigger than 65536 bytes. With files which are less than 65536
bytes I have no problem. I simply read them using dos interrupt 21h, but I
have no idea how to read files that are bigger than limit of page boundary
(0xFFFF). Per example I have mod file that is 131072 (65536+65536) bytes
long and I would like to read first half starting at: 0x2000:0x0000 and
second half starting at: 0x3000:0x0000. Any help will be appreciated.
Regards
Davor
|