Printed Amstrad Addict magazine announced, check it out here!
Started by ervin, 06:11, 11 December 09
0 Members and 1 Guest are viewing this topic.
Quote from: ervin on 00:05, 14 December 09redbox - what sort of graphical glitches are you getting?
Quote from: ervin on 00:05, 14 December 09The double-buffering was very tricky, as this is my first machine code game, so I kind of stumbled around and tried lots of things by trial and error.Here's a rough summary of how it works:
Quote from: ervin on 01:38, 14 December 09This technique would need some way of storing the old frame's lit pixels for each row, and the new frame's lit pixels for each row.
Quote from: ervin on 01:38, 14 December 09Incidentally, I'd like to change the way the program works.I'd love to remove the need for double-buffering, so that I can reclaim 16K and add all sorts of ideas into the game.
Quote from: ervin on 07:23, 15 December 09Thanks Axelay - some great ideas there.Can bank switching be used for a double-buffered display?would there be a speed hit when switching banks?
Quote from: ervin on 23:55, 15 December 09Ah, I see. Thanks.A few more annoying questions if I may...I'm trying to figure out how to switch banks and then map the contents of a bank back to &c000.How would I do this?Would I use the z80 OUT command?I don't understand this command at all - I've been trying to research it but I just don't get it.Or would I use the firmware jumpblock KL BANK SWITCH?If so, what would I set register A to?It all sounds like the ideal solution, but I just can't get my head around it.Even just storing (in the extra 64k) the addresses of the pixels to plot would be really helpful, but even that is beyond me at this stage.
; do bank switch ld bc,&7fc5 ; this swaps extended memory into &4000 out (c),c; get something from the extended memory; for example ... ld hl,&4000 ld de,&1b40 ld bc,2304 ldir; return to base 64k config ld bc,&7fc0 out (c),c
Quote from: ervin on 02:25, 17 December 09Another question about ram paging...If I switch 16k from the extra 64k into &4000, will any current contents of &4000 to &7fff be swapped to that bank in the extra 64k?
Quote from: ervin on 02:25, 17 December 09If so, how do I then refer to what was initially at &4000, without swapping back?In other words, can the current contents at &4000 be used at the same time as stuff in one of the extra banks?
Quote from: ervin on 05:26, 16 December 09Excellent, thanks very much for that info.I'll see how I can incorporate it.Did you use that technique in the fabulous Star Sabre?
Page created in 0.161 seconds with 20 queries.