China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-31 21:02
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Help me, a small question about EMS View 1,245 Replies 0
Original Poster Posted 2003-02-06 00:00 ·  中国 广东 深圳 宝安区 电信
初级用户
Credits 201
Posts 27
Joined 2003-01-11 00:00
23-year member
UID 726
Gender Male
Status Offline
When I call extended memory in DOS 6.22, I used EMS. There doesn't seem to be any problem using those BIOS interrupts. I'm programming with Visual C, but in actual use, suppose I map 10 logical pages one by one through physical pages. Suppose the contents of those 10 logical pages are each just one letter, namely a,b,c,d,e,f,g,h,i,j, and they correspond one by one to the 10 logical pages.
For the physical pages I only use the first page. Right now I first map logical page 1, then use printf to print the contents of logical page 1: the letter a. Then I map page 2 and use printf to print the contents of logical page 1: the letter b. Then I map page 3 and print the letter c. But when I implement it in a program, I can never get the result above that I want. Is this idea feasible in C? How can it be done with BIOS interrupts? It would be best if you could provide source code!! Thank you!!! If you can provide other EMS program source examples using BIOS interrupts, that would also be fine. I would be extremely grateful!!!
My EMAIL: xiefeilong2003@yahoo.com.cn
I have only one purpose in doing this: when writing programs under DOS, not to be limited by memory
If any expert has other methods, I would be very glad to hear them!!!! Thank you!!
Please save me, God!
Forum Jump: