flat assembler
Message board for the users of flat assembler.
Index
> DOS > problem with double buffering |
Author |
|
revolution 07 May 2008, 16:48
Does your video card support placing it's memory at 0xb0000? Or do you have some of the main SDRAM there? Remember there is a 'hole' in the 0xa0000-0xfffff memory area that is generally filled by external devices like video cards and network cards etc.
If you are running something like EMM386 then you might have some of your SDRAM mapped there but from what your results would indicate I think you don't have that turned on. |
|||
07 May 2008, 16:48 |
|
rain_storm 07 May 2008, 16:57
Well that buggers that idea I would prefer that others could run it, Unless there is another 64k segment that I could use btw this is intended for a 256 byte demo so thats why I dont want to include the buffer in the com file. I'll have a poke around and see what I can do about it. Thanks for the quick reply revolution.
Edit: yup using segment 7100h works perfectly since its shares with the 64k reserved for the com file but leaves me 1000h bytes for the executable which is more than enough for a 256 byte demo thanks again revolution |
|||
07 May 2008, 16:57 |
|
revolution 07 May 2008, 17:11
I think it might be safer to just take the value of CS at entry and add 0x100 (i.e. 0x1000 bytes) and use that for your buffer.
Code: mov ax,cs add ax,0x100 mov ds,ax |
|||
07 May 2008, 17:11 |
|
DJ Mauretto 07 May 2008, 17:45
Hello Here there is a little example of Double buffer
|
|||
07 May 2008, 17:45 |
|
rain_storm 07 May 2008, 17:59
Thanks DJ thats a preatty good example looking through it now
|
|||
07 May 2008, 17:59 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.