Started by ervin, 16:42, 20 April 10
0 Members and 1 Guest are viewing this topic.
Quote from: ervin on 16:42, 20 April 10Hi all. I'm gonna try something a bit nutty for my 3d-maze game, but I need to know how to define a page-aligned lookup table. Is it as simple as: .lookup EQU &4000defb 0,0,0,0,0,0defb 0,0,0,0,0,0 etc? I've been googling for z80 "page align" and all sorts of other related stuff, but a definitive answer has been hard to come by.Thanks for any help.
org &4000.lookup ....
scr_table equ &100ld ix,scr_tableld b,200st1:ld (ix+0),lld (ix+1),hinc ixinc ixcall scr_next_linedjnz st1
ld h,scr_table/256ld l,aadd hl,hl
.temp equ $ and #ffds 256 - temp
.temp equ $ and #fforg $ + 256 - temp
Page created in 0.049 seconds with 29 queries.