Posts: 32
Threads: 9
Joined: Feb 2003
Iâm new hereâ¦
Is there a way to use pages in mode 13h (QB SCREEN 13) in assembly language?
By the way: I changed my nickname from ASM_Newbie to rCX
Thanks 8)
Posts: 704
Threads: 0
Joined: Dec 2002
one such page is a function of the video board. It's not a Basic vs ASM issue. If you just mean to use a separate area of memory and then transfer the contents of that memory area to the video buffer, well of course it's possible. I'm not sure what it would mean for something to be possible in Basic that isn't possible in ASM.
ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
Posts: 32
Threads: 9
Joined: Feb 2003
Do you have any ASM source code that could do this?
Posts: 6,419
Threads: 74
Joined: Mar 2002
Well, it is just a copy mem from somewhere to the screen memory (A000:0000)... A "REP MOVSW" should be enough, with CX=32000 and stuff. You should have to write routines to plot in the buffer and not on screen.
Posts: 32
Threads: 9
Joined: Feb 2003
Thanks
Posts: 32
Threads: 9
Joined: Feb 2003
One more thing.....
Which segments can I use to put the page memory in? I can't use the Code Segment because my code takes up alot of 64k of mem in the CS and the A000h segment contains the page that is being displayed.
Posts: 530
Threads: 17
Joined: May 2002
Uh, i dont know how your doing it, but all you have to do is malloc an unsigned char so it holds as many pixels as the screen, and then you just copy it to the screen,
mode 13h does not support pages per say, its more double buffering, you cant access the rest of the vga memory in that mode, you want pages? use modex
Posts: 32
Threads: 9
Joined: Feb 2003
Thanks again!