中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-15 00:41
47,812 topics / 349,917 posts / today 0 new / 48,268 members
DOS开发编程 & 发展交流 (开发室) » Help me, a small question about EMS
Printable Version  1,320 / 0
Floor1 阿龙 Posted 2003-02-06 00:00
初级用户 Posts 27 Credits 201
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!
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023