Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > Reading files bigger than64k in real mode
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 19th October 09:38
davor grguric
External User
 
Posts: 1
Default 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
  Reply With Quote


 


2 19th October 09:39
bx. c
External User
 
Posts: 1
Default Reading files bigger than64k in real mode



actually.. you've answered yourself... basically, read the two chunks
separately..
  Reply With Quote
Reply


Thread Tools
Display Modes




666