Posts: 134
Threads: 13
Joined: Jun 2003
I would like to know how to do this on HIGH SPEED. An other way would fit me as well: moving an array over the needed memory block. I need it for EMS management: to copy the memory from the pages in the arrays, or to create an array over the EMS page memory area. You can write ASM, if needed, but it would be better if it's fully QB. For example figuring out where is the array descriptor in the memory, and modifiing it to point to the EMS page area. Help please!
Posts: 6,419
Threads: 74
Joined: Mar 2002
Pure QB will be very slow for such things. Why don't you use LooseCaboose sollution using DirectQB? I think it is exactly what you are looking for, and it works great.
Posts: 134
Threads: 13
Joined: Jun 2003
What is it / where is it?
Posts: 3,343
Threads: 83
Joined: Mar 2003
Posts: 1,845
Threads: 44
Joined: Aug 2002
Check out Interrupt 67h, should say 'LIM EMS' somewhere. It has EMS functions there
Posts: 134
Threads: 13
Joined: Jun 2003
I know how to use EMS. I would like to make it storing images can be used with GET, and PUT. So I will need a QB array storing those, not the D000 area.
Posts: 1,407
Threads: 117
Joined: Dec 2002
Check EMS functions. One of them allows you to copy from QB memory to an EMS handle, and it does'nt use the page frame area.
Antoni
Posts: 134
Threads: 13
Joined: Jun 2003
I looked around, and I found it. But it uses LIM-EMS 4.0, and Win95 reports only 3.2. But I can live with that, from now, I don't need fast memory copying. I can store those images in the normal DOS memory, and only use EMS for other purposes.
(I want to write a very good 100% QB code game, I only let using the standard library. And FFIX of course
)
Posts: 691
Threads: 5
Joined: Apr 2002
My routines could be apadted to work with pure QB if you want. You would just need to replace the calls to DQBpeek and DQBpoke with equivalent QB code to read and write from EMS/XMS.
esus saves.... Passes to Moses, shoots, he scores!