#120720 - GPFerror - Mon Mar 05, 2007 8:02 pm
I am trying to make my Frodo c64 emulator port look a little better and was hoping for some suggestions or sample code.
and using DMA to copy it into VRAM
where DISPLAY_X=384, and DISPLAY_Y=272, since the Frodo C64 port has borders on the left and right of 32-37 pixels and top and bottom borders of 51-55 pixels, I am shifting the screen and chopping off most of the borders so that more of the screen is displayed.
Someone was telling me about using jitter to make the display look a little better, I was told something about using the scroll registers to either move the screen up and left a couple pixels(or down and right) and reset it every other vblank, for the above code how would I do that?
Thanks,
Troy(GPF)
http://gpf.dcemu.co.uk
Code: |
BG3_CR = BG_BMP8_512x512;
BG3_XDX = DISPLAY_X-54; BG3_XDY = 0; BG3_YDX = 0; BG3_YDY = DISPLAY_X-108; BG3_CX = 28<<8; BG3_CY = 32<<8 ; frontBuffer = (uint8*)(0x06000000); bufmem = (uint8*)malloc(512*512); |
and using DMA to copy it into VRAM
Code: |
DC_FlushRange(bufmem, 512*512);
dmaCopy(bufmem,frontBuffer, (512*512)/2); |
where DISPLAY_X=384, and DISPLAY_Y=272, since the Frodo C64 port has borders on the left and right of 32-37 pixels and top and bottom borders of 51-55 pixels, I am shifting the screen and chopping off most of the borders so that more of the screen is displayed.
Someone was telling me about using jitter to make the display look a little better, I was told something about using the scroll registers to either move the screen up and left a couple pixels(or down and right) and reset it every other vblank, for the above code how would I do that?
Thanks,
Troy(GPF)
http://gpf.dcemu.co.uk