Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to copy memory blocks?
#1
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!
ingCheetah, the Running Cheetah Software programmer

http://rcs.fateback.com/
Reply
#2
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.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#3
What is it / where is it?
ingCheetah, the Running Cheetah Software programmer

http://rcs.fateback.com/
Reply
#4
http://qbnz.com/pages/downloads/utilities/memory.zip
Reply
#5
Check out Interrupt 67h, should say 'LIM EMS' somewhere. It has EMS functions there Smile
Reply
#6
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.
ingCheetah, the Running Cheetah Software programmer

http://rcs.fateback.com/
Reply
#7
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
Reply
#8
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 Smile )
ingCheetah, the Running Cheetah Software programmer

http://rcs.fateback.com/
Reply
#9
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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)