From 357f49cb6e060b8f0034b1d745349fabefb13eb7 Mon Sep 17 00:00:00 2001 From: Martin Haye Date: Thu, 29 Aug 2013 09:52:43 -0700 Subject: [PATCH] Hooked up drawing code to ray casting. Not beautiful yet, but recognizably 3D. --- Platform/Apple/virtual/src/raycast/expand.s | 5179 +++++++++-------- .../Apple/virtual/src/raycast/genExpand.py | 30 +- Platform/Apple/virtual/src/raycast/render.s | 316 +- 3 files changed, 2872 insertions(+), 2653 deletions(-) diff --git a/Platform/Apple/virtual/src/raycast/expand.s b/Platform/Apple/virtual/src/raycast/expand.s index 98318bfd..7ddfc32d 100644 --- a/Platform/Apple/virtual/src/raycast/expand.s +++ b/Platform/Apple/virtual/src/raycast/expand.s @@ -1,6 +1,14 @@ + .org $800 .pc02 -pshape = 6 -rowblit = $6000 +pTex = $A +selectMip0 = $6003 +selectMip1 = selectMip0+3 +selectMip2 = selectMip1+3 +selectMip3 = selectMip2+3 +selectMip4 = selectMip3+3 +selectMip5 = selectMip4+3 +rowBlit = $B000 +ROW_STRIDE = 29 expand_vec1: .addr expand_0 @@ -135,153 +143,153 @@ expand_vec2: .addr expand_248 e_45roooto: - sta 45*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x lsr - sta 46*15+rowblit,x - sta 47*15+rowblit,x + sta 46*ROW_STRIDE + rowBlit,x + sta 47*ROW_STRIDE + rowBlit,x bra e_48to e_45tooroto: - sta 45*15+rowblit,x - lda (pshape),y + sta 45*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 46*15+rowblit,x + sta 46*ROW_STRIDE + rowBlit,x bra e_47roto e_45torooto: - sta 45*15+rowblit,x - lda (pshape),y + sta 45*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 46*15+rowblit,x + sta 46*ROW_STRIDE + rowBlit,x lsr - sta 47*15+rowblit,x + sta 47*ROW_STRIDE + rowBlit,x bra e_48to e_45rotoroto: - sta 45*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x lsr e_46toroto: - sta 46*15+rowblit,x - lda (pshape),y + sta 46*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_47roto: - sta 47*15+rowblit,x + sta 47*ROW_STRIDE + rowBlit,x lsr e_48to: - sta 48*15+rowblit,x - lda (pshape),y + sta 48*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 49*15+rowblit,x + sta 49*ROW_STRIDE + rowBlit,x rts e_r45tooroto: lsr - sta 45*15+rowblit,x - lda (pshape),y + sta 45*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 46*15+rowblit,x + sta 46*ROW_STRIDE + rowBlit,x bra e_47roto e_r45torooto: lsr - sta 45*15+rowblit,x - lda (pshape),y + sta 45*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 46*15+rowblit,x + sta 46*ROW_STRIDE + rowBlit,x lsr - sta 47*15+rowblit,x + sta 47*ROW_STRIDE + rowBlit,x bra e_48to e_t45orooto: - lda (pshape),y + lda (pTex),y iny - sta 45*15+rowblit,x - sta 46*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x + sta 46*ROW_STRIDE + rowBlit,x lsr - sta 47*15+rowblit,x + sta 47*ROW_STRIDE + rowBlit,x bra e_48to e_60roooto: - sta 60*15+rowblit,x + sta 60*ROW_STRIDE + rowBlit,x lsr - sta 61*15+rowblit,x - sta 62*15+rowblit,x + sta 61*ROW_STRIDE + rowBlit,x + sta 62*ROW_STRIDE + rowBlit,x bra e_63to e_60tooroto: - sta 60*15+rowblit,x - lda (pshape),y + sta 60*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 61*15+rowblit,x + sta 61*ROW_STRIDE + rowBlit,x bra e_62roto e_r60otoroto: lsr - sta 60*15+rowblit,x + sta 60*ROW_STRIDE + rowBlit,x bra e_61toroto e_r60tooroto: lsr - sta 60*15+rowblit,x - lda (pshape),y + sta 60*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 61*15+rowblit,x + sta 61*ROW_STRIDE + rowBlit,x bra e_62roto e_60rotoroto: - sta 60*15+rowblit,x + sta 60*ROW_STRIDE + rowBlit,x lsr e_61toroto: - sta 61*15+rowblit,x + sta 61*ROW_STRIDE + rowBlit,x e_t62roto: - lda (pshape),y + lda (pTex),y iny e_62roto: - sta 62*15+rowblit,x + sta 62*ROW_STRIDE + rowBlit,x lsr e_63to: - sta 63*15+rowblit,x - lda (pshape),y + sta 63*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 64*15+rowblit,x + sta 64*ROW_STRIDE + rowBlit,x rts e_t60orooto: - lda (pshape),y + lda (pTex),y iny - sta 60*15+rowblit,x - sta 61*15+rowblit,x + sta 60*ROW_STRIDE + rowBlit,x + sta 61*ROW_STRIDE + rowBlit,x lsr - sta 62*15+rowblit,x + sta 62*ROW_STRIDE + rowBlit,x bra e_63to e_t60rotoroto: - lda (pshape),y + lda (pTex),y iny bra e_60rotoroto e_30roooto: - sta 30*15+rowblit,x + sta 30*ROW_STRIDE + rowBlit,x lsr - sta 31*15+rowblit,x - sta 32*15+rowblit,x + sta 31*ROW_STRIDE + rowBlit,x + sta 32*ROW_STRIDE + rowBlit,x bra e_33to e_30rotoroto: - sta 30*15+rowblit,x + sta 30*ROW_STRIDE + rowBlit,x lsr - sta 31*15+rowblit,x - lda (pshape),y + sta 31*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_32roto e_30torooto: - sta 30*15+rowblit,x - lda (pshape),y + sta 30*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 31*15+rowblit,x + sta 31*ROW_STRIDE + rowBlit,x lsr - sta 32*15+rowblit,x + sta 32*ROW_STRIDE + rowBlit,x bra e_33to e_r30tooroto: @@ -289,337 +297,337 @@ e_r30tooroto: bra e_30tooroto e_30tooroto: - sta 30*15+rowblit,x + sta 30*ROW_STRIDE + rowBlit,x e_t31oroto: - lda (pshape),y + lda (pTex),y iny - sta 31*15+rowblit,x + sta 31*ROW_STRIDE + rowBlit,x e_32roto: - sta 32*15+rowblit,x + sta 32*ROW_STRIDE + rowBlit,x lsr e_33to: - sta 33*15+rowblit,x - lda (pshape),y + sta 33*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 34*15+rowblit,x + sta 34*ROW_STRIDE + rowBlit,x rts e_r30torooto: lsr - sta 30*15+rowblit,x - lda (pshape),y + sta 30*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 31*15+rowblit,x + sta 31*ROW_STRIDE + rowBlit,x lsr - sta 32*15+rowblit,x + sta 32*ROW_STRIDE + rowBlit,x bra e_33to e_t30orooto: - lda (pshape),y + lda (pTex),y iny - sta 30*15+rowblit,x - sta 31*15+rowblit,x + sta 30*ROW_STRIDE + rowBlit,x + sta 31*ROW_STRIDE + rowBlit,x lsr - sta 32*15+rowblit,x + sta 32*ROW_STRIDE + rowBlit,x bra e_33to e_45otooro: - sta 45*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x bra e_46tooro e_45rootoro: - sta 45*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x lsr - sta 46*15+rowblit,x - sta 47*15+rowblit,x - lda (pshape),y + sta 46*ROW_STRIDE + rowBlit,x + sta 47*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_48ro e_45toooro: - sta 45*15+rowblit,x - lda (pshape),y + sta 45*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 46*15+rowblit,x + sta 46*ROW_STRIDE + rowBlit,x bra e_47oro e_r45otooro: lsr - sta 45*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x bra e_46tooro e_r45torotoro: lsr - sta 45*15+rowblit,x - lda (pshape),y + sta 45*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 46*15+rowblit,x + sta 46*ROW_STRIDE + rowBlit,x lsr - sta 47*15+rowblit,x - lda (pshape),y + sta 47*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_48ro e_45rotooro: - sta 45*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x lsr e_46tooro: - sta 46*15+rowblit,x + sta 46*ROW_STRIDE + rowBlit,x e_t47oro: - lda (pshape),y + lda (pTex),y iny e_47oro: - sta 47*15+rowblit,x + sta 47*ROW_STRIDE + rowBlit,x e_48ro: - sta 48*15+rowblit,x + sta 48*ROW_STRIDE + rowBlit,x lsr - sta 49*15+rowblit,x + sta 49*ROW_STRIDE + rowBlit,x rts e_t45orotoro: - lda (pshape),y + lda (pTex),y iny - sta 45*15+rowblit,x - sta 46*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x + sta 46*ROW_STRIDE + rowBlit,x lsr - sta 47*15+rowblit,x - lda (pshape),y + sta 47*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_48ro e_t45rotooro: - lda (pshape),y + lda (pTex),y iny bra e_45rotooro e_50orooto: - sta 50*15+rowblit,x - sta 51*15+rowblit,x + sta 50*ROW_STRIDE + rowBlit,x + sta 51*ROW_STRIDE + rowBlit,x lsr - sta 52*15+rowblit,x + sta 52*ROW_STRIDE + rowBlit,x bra e_53to e_50roooto: - sta 50*15+rowblit,x + sta 50*ROW_STRIDE + rowBlit,x lsr - sta 51*15+rowblit,x - sta 52*15+rowblit,x + sta 51*ROW_STRIDE + rowBlit,x + sta 52*ROW_STRIDE + rowBlit,x bra e_53to e_50tooroto: - sta 50*15+rowblit,x - lda (pshape),y + sta 50*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 51*15+rowblit,x + sta 51*ROW_STRIDE + rowBlit,x bra e_52roto e_50rotoroto: - sta 50*15+rowblit,x + sta 50*ROW_STRIDE + rowBlit,x lsr e_51toroto: - sta 51*15+rowblit,x - lda (pshape),y + sta 51*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_52roto: - sta 52*15+rowblit,x + sta 52*ROW_STRIDE + rowBlit,x lsr e_53to: - sta 53*15+rowblit,x - lda (pshape),y + sta 53*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 54*15+rowblit,x + sta 54*ROW_STRIDE + rowBlit,x rts e_r50tooroto: lsr - sta 50*15+rowblit,x - lda (pshape),y + sta 50*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 51*15+rowblit,x + sta 51*ROW_STRIDE + rowBlit,x bra e_52roto e_r50torooto: lsr - sta 50*15+rowblit,x - lda (pshape),y + sta 50*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 51*15+rowblit,x + sta 51*ROW_STRIDE + rowBlit,x lsr - sta 52*15+rowblit,x + sta 52*ROW_STRIDE + rowBlit,x bra e_53to e_t50orooto: - lda (pshape),y + lda (pTex),y iny - sta 50*15+rowblit,x - sta 51*15+rowblit,x + sta 50*ROW_STRIDE + rowBlit,x + sta 51*ROW_STRIDE + rowBlit,x lsr - sta 52*15+rowblit,x + sta 52*ROW_STRIDE + rowBlit,x bra e_53to e_t50rotoroto: - lda (pshape),y + lda (pTex),y iny bra e_50rotoroto e_75orooto: - sta 75*15+rowblit,x - sta 76*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x + sta 76*ROW_STRIDE + rowBlit,x lsr - sta 77*15+rowblit,x + sta 77*ROW_STRIDE + rowBlit,x bra e_78to e_75tooroto: - sta 75*15+rowblit,x - lda (pshape),y + sta 75*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 76*15+rowblit,x + sta 76*ROW_STRIDE + rowBlit,x bra e_77roto e_75torooto: - sta 75*15+rowblit,x - lda (pshape),y + sta 75*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 76*15+rowblit,x + sta 76*ROW_STRIDE + rowBlit,x lsr - sta 77*15+rowblit,x + sta 77*ROW_STRIDE + rowBlit,x bra e_78to e_75rotoroto: - sta 75*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x lsr e_76toroto: - sta 76*15+rowblit,x - lda (pshape),y + sta 76*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_77roto: - sta 77*15+rowblit,x + sta 77*ROW_STRIDE + rowBlit,x lsr e_78to: - sta 78*15+rowblit,x - lda (pshape),y + sta 78*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 79*15+rowblit,x + sta 79*ROW_STRIDE + rowBlit,x rts e_r75tooroto: lsr - sta 75*15+rowblit,x - lda (pshape),y + sta 75*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 76*15+rowblit,x + sta 76*ROW_STRIDE + rowBlit,x bra e_77roto e_r75torooto: lsr - sta 75*15+rowblit,x - lda (pshape),y + sta 75*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 76*15+rowblit,x + sta 76*ROW_STRIDE + rowBlit,x lsr - sta 77*15+rowblit,x + sta 77*ROW_STRIDE + rowBlit,x bra e_78to e_t75orooto: - lda (pshape),y + lda (pTex),y iny - sta 75*15+rowblit,x - sta 76*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x + sta 76*ROW_STRIDE + rowBlit,x lsr - sta 77*15+rowblit,x + sta 77*ROW_STRIDE + rowBlit,x bra e_78to e_t75rotoroto: - lda (pshape),y + lda (pTex),y iny bra e_75rotoroto e_80roooto: - sta 80*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x lsr - sta 81*15+rowblit,x - sta 82*15+rowblit,x + sta 81*ROW_STRIDE + rowBlit,x + sta 82*ROW_STRIDE + rowBlit,x bra e_83to e_80torooto: - sta 80*15+rowblit,x - lda (pshape),y + sta 80*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 81*15+rowblit,x + sta 81*ROW_STRIDE + rowBlit,x lsr - sta 82*15+rowblit,x + sta 82*ROW_STRIDE + rowBlit,x bra e_83to e_80rotoroto: - sta 80*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x lsr e_81toroto: - sta 81*15+rowblit,x - lda (pshape),y + sta 81*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_82roto: - sta 82*15+rowblit,x + sta 82*ROW_STRIDE + rowBlit,x lsr e_83to: - sta 83*15+rowblit,x - lda (pshape),y + sta 83*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 84*15+rowblit,x + sta 84*ROW_STRIDE + rowBlit,x rts e_r80tooroto: lsr - sta 80*15+rowblit,x - lda (pshape),y + sta 80*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 81*15+rowblit,x + sta 81*ROW_STRIDE + rowBlit,x bra e_82roto e_r80torooto: lsr - sta 80*15+rowblit,x - lda (pshape),y + sta 80*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 81*15+rowblit,x + sta 81*ROW_STRIDE + rowBlit,x lsr - sta 82*15+rowblit,x + sta 82*ROW_STRIDE + rowBlit,x bra e_83to e_t80orooto: - lda (pshape),y + lda (pTex),y iny - sta 80*15+rowblit,x - sta 81*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x + sta 81*ROW_STRIDE + rowBlit,x lsr - sta 82*15+rowblit,x + sta 82*ROW_STRIDE + rowBlit,x bra e_83to e_t80rotoroto: - lda (pshape),y + lda (pTex),y iny bra e_80rotoroto e_40orooto: - sta 40*15+rowblit,x - sta 41*15+rowblit,x + sta 40*ROW_STRIDE + rowBlit,x + sta 41*ROW_STRIDE + rowBlit,x lsr - sta 42*15+rowblit,x + sta 42*ROW_STRIDE + rowBlit,x bra e_43to e_40tooroto: - sta 40*15+rowblit,x + sta 40*ROW_STRIDE + rowBlit,x e_t41oroto: - lda (pshape),y + lda (pTex),y iny - sta 41*15+rowblit,x + sta 41*ROW_STRIDE + rowBlit,x e_42roto: - sta 42*15+rowblit,x + sta 42*ROW_STRIDE + rowBlit,x lsr e_43to: - sta 43*15+rowblit,x - lda (pshape),y + sta 43*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 44*15+rowblit,x + sta 44*ROW_STRIDE + rowBlit,x rts e_r40tooroto: @@ -627,285 +635,285 @@ e_r40tooroto: bra e_40tooroto e_t40orooto: - lda (pshape),y + lda (pTex),y iny - sta 40*15+rowblit,x - sta 41*15+rowblit,x + sta 40*ROW_STRIDE + rowBlit,x + sta 41*ROW_STRIDE + rowBlit,x lsr - sta 42*15+rowblit,x + sta 42*ROW_STRIDE + rowBlit,x bra e_43to e_t40rotoroto: - lda (pshape),y + lda (pTex),y iny - sta 40*15+rowblit,x + sta 40*ROW_STRIDE + rowBlit,x lsr - sta 41*15+rowblit,x - lda (pshape),y + sta 41*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_42roto e_50toooro: - sta 50*15+rowblit,x - lda (pshape),y + sta 50*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 51*15+rowblit,x + sta 51*ROW_STRIDE + rowBlit,x bra e_52oro e_r50otooro: lsr - sta 50*15+rowblit,x + sta 50*ROW_STRIDE + rowBlit,x bra e_51tooro e_r50torotoro: lsr - sta 50*15+rowblit,x - lda (pshape),y + sta 50*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 51*15+rowblit,x + sta 51*ROW_STRIDE + rowBlit,x lsr - sta 52*15+rowblit,x - lda (pshape),y + sta 52*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_53ro e_50rotooro: - sta 50*15+rowblit,x + sta 50*ROW_STRIDE + rowBlit,x lsr e_51tooro: - sta 51*15+rowblit,x + sta 51*ROW_STRIDE + rowBlit,x e_t52oro: - lda (pshape),y + lda (pTex),y iny e_52oro: - sta 52*15+rowblit,x + sta 52*ROW_STRIDE + rowBlit,x e_53ro: - sta 53*15+rowblit,x + sta 53*ROW_STRIDE + rowBlit,x lsr - sta 54*15+rowblit,x + sta 54*ROW_STRIDE + rowBlit,x rts e_t50orotoro: - lda (pshape),y + lda (pTex),y iny - sta 50*15+rowblit,x - sta 51*15+rowblit,x + sta 50*ROW_STRIDE + rowBlit,x + sta 51*ROW_STRIDE + rowBlit,x lsr - sta 52*15+rowblit,x - lda (pshape),y + sta 52*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_53ro e_t50rootoro: - lda (pshape),y + lda (pTex),y iny - sta 50*15+rowblit,x + sta 50*ROW_STRIDE + rowBlit,x lsr - sta 51*15+rowblit,x - sta 52*15+rowblit,x - lda (pshape),y + sta 51*ROW_STRIDE + rowBlit,x + sta 52*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_53ro e_55rootoro: - sta 55*15+rowblit,x + sta 55*ROW_STRIDE + rowBlit,x lsr - sta 56*15+rowblit,x - sta 57*15+rowblit,x - lda (pshape),y + sta 56*ROW_STRIDE + rowBlit,x + sta 57*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_58ro e_r55otooro: lsr - sta 55*15+rowblit,x + sta 55*ROW_STRIDE + rowBlit,x bra e_56tooro e_r55torotoro: lsr - sta 55*15+rowblit,x - lda (pshape),y + sta 55*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 56*15+rowblit,x + sta 56*ROW_STRIDE + rowBlit,x lsr - sta 57*15+rowblit,x - lda (pshape),y + sta 57*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_58ro e_55rotooro: - sta 55*15+rowblit,x + sta 55*ROW_STRIDE + rowBlit,x lsr e_56tooro: - sta 56*15+rowblit,x + sta 56*ROW_STRIDE + rowBlit,x e_t57oro: - lda (pshape),y + lda (pTex),y iny e_57oro: - sta 57*15+rowblit,x + sta 57*ROW_STRIDE + rowBlit,x e_58ro: - sta 58*15+rowblit,x + sta 58*ROW_STRIDE + rowBlit,x lsr - sta 59*15+rowblit,x + sta 59*ROW_STRIDE + rowBlit,x rts e_t55orotoro: - lda (pshape),y + lda (pTex),y iny - sta 55*15+rowblit,x - sta 56*15+rowblit,x + sta 55*ROW_STRIDE + rowBlit,x + sta 56*ROW_STRIDE + rowBlit,x lsr - sta 57*15+rowblit,x - lda (pshape),y + sta 57*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_58ro e_t55rotooro: - lda (pshape),y + lda (pTex),y iny bra e_55rotooro e_95rotoroto: - sta 95*15+rowblit,x + sta 95*ROW_STRIDE + rowBlit,x lsr e_96toroto: - sta 96*15+rowblit,x - lda (pshape),y + sta 96*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_97roto: - sta 97*15+rowblit,x + sta 97*ROW_STRIDE + rowBlit,x lsr e_98to: - sta 98*15+rowblit,x - lda (pshape),y + sta 98*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 99*15+rowblit,x + sta 99*ROW_STRIDE + rowBlit,x rts e_r95torooto: lsr - sta 95*15+rowblit,x - lda (pshape),y + sta 95*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 96*15+rowblit,x + sta 96*ROW_STRIDE + rowBlit,x lsr - sta 97*15+rowblit,x + sta 97*ROW_STRIDE + rowBlit,x bra e_98to e_t95orooto: - lda (pshape),y + lda (pTex),y iny - sta 95*15+rowblit,x - sta 96*15+rowblit,x + sta 95*ROW_STRIDE + rowBlit,x + sta 96*ROW_STRIDE + rowBlit,x lsr - sta 97*15+rowblit,x + sta 97*ROW_STRIDE + rowBlit,x bra e_98to e_35rootoo: - sta 35*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x lsr - sta 36*15+rowblit,x + sta 36*ROW_STRIDE + rowBlit,x bra e_37too e_r35ootoo: lsr - sta 35*15+rowblit,x - sta 36*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x + sta 36*ROW_STRIDE + rowBlit,x bra e_37too e_35torotoo: - sta 35*15+rowblit,x - lda (pshape),y + sta 35*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_36rotoo: - sta 36*15+rowblit,x + sta 36*ROW_STRIDE + rowBlit,x lsr e_37too: - sta 37*15+rowblit,x + sta 37*ROW_STRIDE + rowBlit,x e_t38o: - lda (pshape),y + lda (pTex),y iny - sta 38*15+rowblit,x - sta 39*15+rowblit,x + sta 38*ROW_STRIDE + rowBlit,x + sta 39*ROW_STRIDE + rowBlit,x rts e_t35orotoo: - lda (pshape),y + lda (pTex),y iny - sta 35*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x bra e_36rotoo e_70roooto: - sta 70*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x lsr - sta 71*15+rowblit,x - sta 72*15+rowblit,x + sta 71*ROW_STRIDE + rowBlit,x + sta 72*ROW_STRIDE + rowBlit,x bra e_73to e_70tooroto: - sta 70*15+rowblit,x - lda (pshape),y + sta 70*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 71*15+rowblit,x + sta 71*ROW_STRIDE + rowBlit,x bra e_72roto e_70torooto: - sta 70*15+rowblit,x - lda (pshape),y + sta 70*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 71*15+rowblit,x + sta 71*ROW_STRIDE + rowBlit,x lsr - sta 72*15+rowblit,x + sta 72*ROW_STRIDE + rowBlit,x bra e_73to e_70rotoroto: - sta 70*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x lsr e_71toroto: - sta 71*15+rowblit,x - lda (pshape),y + sta 71*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_72roto: - sta 72*15+rowblit,x + sta 72*ROW_STRIDE + rowBlit,x lsr e_73to: - sta 73*15+rowblit,x - lda (pshape),y + sta 73*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 74*15+rowblit,x + sta 74*ROW_STRIDE + rowBlit,x rts e_r70otoroto: lsr - sta 70*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x bra e_71toroto e_t70rotoroto: - lda (pshape),y + lda (pTex),y iny bra e_70rotoroto e_25roooto: - sta 25*15+rowblit,x + sta 25*ROW_STRIDE + rowBlit,x lsr - sta 26*15+rowblit,x - sta 27*15+rowblit,x + sta 26*ROW_STRIDE + rowBlit,x + sta 27*ROW_STRIDE + rowBlit,x bra e_28to e_25tooroto: - sta 25*15+rowblit,x + sta 25*ROW_STRIDE + rowBlit,x e_t26oroto: - lda (pshape),y + lda (pTex),y iny - sta 26*15+rowblit,x + sta 26*ROW_STRIDE + rowBlit,x e_27roto: - sta 27*15+rowblit,x + sta 27*ROW_STRIDE + rowBlit,x lsr e_28to: - sta 28*15+rowblit,x - lda (pshape),y + sta 28*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 29*15+rowblit,x + sta 29*ROW_STRIDE + rowBlit,x rts e_r25tooroto: @@ -914,25 +922,25 @@ e_r25tooroto: e_r25torooto: lsr - sta 25*15+rowblit,x - lda (pshape),y + sta 25*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 26*15+rowblit,x + sta 26*ROW_STRIDE + rowBlit,x lsr - sta 27*15+rowblit,x + sta 27*ROW_STRIDE + rowBlit,x bra e_28to e_t25orooto: - lda (pshape),y + lda (pTex),y iny - sta 25*15+rowblit,x - sta 26*15+rowblit,x + sta 25*ROW_STRIDE + rowBlit,x + sta 26*ROW_STRIDE + rowBlit,x lsr - sta 27*15+rowblit,x + sta 27*ROW_STRIDE + rowBlit,x bra e_28to e_25rotooro: - sta 25*15+rowblit,x + sta 25*ROW_STRIDE + rowBlit,x lsr bra e_26tooro @@ -941,116 +949,116 @@ e_r25otooro: bra e_25otooro e_25otooro: - sta 25*15+rowblit,x + sta 25*ROW_STRIDE + rowBlit,x e_26tooro: - sta 26*15+rowblit,x + sta 26*ROW_STRIDE + rowBlit,x e_t27oro: - lda (pshape),y + lda (pTex),y iny e_27oro: - sta 27*15+rowblit,x + sta 27*ROW_STRIDE + rowBlit,x e_28ro: - sta 28*15+rowblit,x + sta 28*ROW_STRIDE + rowBlit,x lsr - sta 29*15+rowblit,x + sta 29*ROW_STRIDE + rowBlit,x rts e_t25orotoro: - lda (pshape),y + lda (pTex),y iny - sta 25*15+rowblit,x - sta 26*15+rowblit,x + sta 25*ROW_STRIDE + rowBlit,x + sta 26*ROW_STRIDE + rowBlit,x lsr - sta 27*15+rowblit,x - lda (pshape),y + sta 27*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_28ro e_t25rootoro: - lda (pshape),y + lda (pTex),y iny - sta 25*15+rowblit,x + sta 25*ROW_STRIDE + rowBlit,x lsr - sta 26*15+rowblit,x - sta 27*15+rowblit,x - lda (pshape),y + sta 26*ROW_STRIDE + rowBlit,x + sta 27*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_28ro e_35roooto: - sta 35*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x lsr - sta 36*15+rowblit,x + sta 36*ROW_STRIDE + rowBlit,x bra e_37oto e_35rotoroto: - sta 35*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x lsr - sta 36*15+rowblit,x - lda (pshape),y + sta 36*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 37*15+rowblit,x + sta 37*ROW_STRIDE + rowBlit,x lsr bra e_38to e_35torooto: - sta 35*15+rowblit,x - lda (pshape),y + sta 35*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_36rooto e_35orooto: - sta 35*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x e_36rooto: - sta 36*15+rowblit,x + sta 36*ROW_STRIDE + rowBlit,x lsr e_37oto: - sta 37*15+rowblit,x + sta 37*ROW_STRIDE + rowBlit,x e_38to: - sta 38*15+rowblit,x - lda (pshape),y + sta 38*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 39*15+rowblit,x + sta 39*ROW_STRIDE + rowBlit,x rts e_r35tooroto: lsr - sta 35*15+rowblit,x - lda (pshape),y + sta 35*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 36*15+rowblit,x - sta 37*15+rowblit,x + sta 36*ROW_STRIDE + rowBlit,x + sta 37*ROW_STRIDE + rowBlit,x lsr bra e_38to e_t35orooto: - lda (pshape),y + lda (pTex),y iny bra e_35orooto e_85torooto: - sta 85*15+rowblit,x - lda (pshape),y + sta 85*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_86rooto: - sta 86*15+rowblit,x + sta 86*ROW_STRIDE + rowBlit,x lsr e_87oto: - sta 87*15+rowblit,x + sta 87*ROW_STRIDE + rowBlit,x e_88to: - sta 88*15+rowblit,x - lda (pshape),y + sta 88*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 89*15+rowblit,x + sta 89*ROW_STRIDE + rowBlit,x rts e_r85tooroto: lsr - sta 85*15+rowblit,x - lda (pshape),y + sta 85*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 86*15+rowblit,x - sta 87*15+rowblit,x + sta 86*ROW_STRIDE + rowBlit,x + sta 87*ROW_STRIDE + rowBlit,x lsr bra e_88to @@ -1059,500 +1067,500 @@ e_r85torooto: bra e_85torooto e_t85orooto: - lda (pshape),y + lda (pTex),y iny - sta 85*15+rowblit,x + sta 85*ROW_STRIDE + rowBlit,x bra e_86rooto e_t85rotoroto: - lda (pshape),y + lda (pTex),y iny - sta 85*15+rowblit,x + sta 85*ROW_STRIDE + rowBlit,x lsr - sta 86*15+rowblit,x - lda (pshape),y + sta 86*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 87*15+rowblit,x + sta 87*ROW_STRIDE + rowBlit,x lsr bra e_88to e_40rootoro: - sta 40*15+rowblit,x + sta 40*ROW_STRIDE + rowBlit,x lsr - sta 41*15+rowblit,x - sta 42*15+rowblit,x - lda (pshape),y + sta 41*ROW_STRIDE + rowBlit,x + sta 42*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_43ro e_40toooro: - sta 40*15+rowblit,x - lda (pshape),y + sta 40*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 41*15+rowblit,x + sta 41*ROW_STRIDE + rowBlit,x bra e_42oro e_r40otooro: lsr - sta 40*15+rowblit,x + sta 40*ROW_STRIDE + rowBlit,x bra e_41tooro e_r40torotoro: lsr - sta 40*15+rowblit,x - lda (pshape),y + sta 40*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 41*15+rowblit,x + sta 41*ROW_STRIDE + rowBlit,x lsr - sta 42*15+rowblit,x - lda (pshape),y + sta 42*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_43ro e_40rotooro: - sta 40*15+rowblit,x + sta 40*ROW_STRIDE + rowBlit,x lsr e_41tooro: - sta 41*15+rowblit,x + sta 41*ROW_STRIDE + rowBlit,x e_t42oro: - lda (pshape),y + lda (pTex),y iny e_42oro: - sta 42*15+rowblit,x + sta 42*ROW_STRIDE + rowBlit,x e_43ro: - sta 43*15+rowblit,x + sta 43*ROW_STRIDE + rowBlit,x lsr - sta 44*15+rowblit,x + sta 44*ROW_STRIDE + rowBlit,x rts e_t40orotoro: - lda (pshape),y + lda (pTex),y iny - sta 40*15+rowblit,x - sta 41*15+rowblit,x + sta 40*ROW_STRIDE + rowBlit,x + sta 41*ROW_STRIDE + rowBlit,x lsr - sta 42*15+rowblit,x - lda (pshape),y + sta 42*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_43ro e_90roooto: - sta 90*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x lsr - sta 91*15+rowblit,x - sta 92*15+rowblit,x + sta 91*ROW_STRIDE + rowBlit,x + sta 92*ROW_STRIDE + rowBlit,x bra e_93to e_90tooroto: - sta 90*15+rowblit,x - lda (pshape),y + sta 90*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 91*15+rowblit,x + sta 91*ROW_STRIDE + rowBlit,x bra e_92roto e_90rotoroto: - sta 90*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x lsr - sta 91*15+rowblit,x - lda (pshape),y + sta 91*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_92roto: - sta 92*15+rowblit,x + sta 92*ROW_STRIDE + rowBlit,x lsr e_93to: - sta 93*15+rowblit,x - lda (pshape),y + sta 93*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 94*15+rowblit,x + sta 94*ROW_STRIDE + rowBlit,x rts e_r90tooroto: lsr - sta 90*15+rowblit,x - lda (pshape),y + sta 90*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 91*15+rowblit,x + sta 91*ROW_STRIDE + rowBlit,x bra e_92roto e_t90orooto: - lda (pshape),y + lda (pTex),y iny - sta 90*15+rowblit,x - sta 91*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x + sta 91*ROW_STRIDE + rowBlit,x lsr - sta 92*15+rowblit,x + sta 92*ROW_STRIDE + rowBlit,x bra e_93to e_t90rotoroto: - lda (pshape),y + lda (pTex),y iny bra e_90rotoroto e_35toooro: - sta 35*15+rowblit,x - lda (pshape),y + sta 35*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 36*15+rowblit,x + sta 36*ROW_STRIDE + rowBlit,x bra e_37oro e_r35otooro: lsr - sta 35*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x bra e_36tooro e_r35torotoro: lsr - sta 35*15+rowblit,x - lda (pshape),y + sta 35*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 36*15+rowblit,x + sta 36*ROW_STRIDE + rowBlit,x lsr - sta 37*15+rowblit,x - lda (pshape),y + sta 37*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_38ro e_35rotooro: - sta 35*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x lsr e_36tooro: - sta 36*15+rowblit,x + sta 36*ROW_STRIDE + rowBlit,x e_t37oro: - lda (pshape),y + lda (pTex),y iny e_37oro: - sta 37*15+rowblit,x + sta 37*ROW_STRIDE + rowBlit,x e_38ro: - sta 38*15+rowblit,x + sta 38*ROW_STRIDE + rowBlit,x lsr - sta 39*15+rowblit,x + sta 39*ROW_STRIDE + rowBlit,x rts e_t35rootoro: - lda (pshape),y + lda (pTex),y iny - sta 35*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x lsr - sta 36*15+rowblit,x - sta 37*15+rowblit,x - lda (pshape),y + sta 36*ROW_STRIDE + rowBlit,x + sta 37*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_38ro e_35tooroo: - sta 35*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x e_t36oroo: - lda (pshape),y + lda (pTex),y iny e_36oroo: - sta 36*15+rowblit,x + sta 36*ROW_STRIDE + rowBlit,x e_37roo: - sta 37*15+rowblit,x + sta 37*ROW_STRIDE + rowBlit,x lsr - sta 38*15+rowblit,x - sta 39*15+rowblit,x + sta 38*ROW_STRIDE + rowBlit,x + sta 39*ROW_STRIDE + rowBlit,x rts e_t35ooroo: - lda (pshape),y + lda (pTex),y iny - sta 35*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x bra e_36oroo e_r30otooro: lsr - sta 30*15+rowblit,x + sta 30*ROW_STRIDE + rowBlit,x bra e_31tooro e_30rotooro: - sta 30*15+rowblit,x + sta 30*ROW_STRIDE + rowBlit,x lsr e_31tooro: - sta 31*15+rowblit,x - lda (pshape),y + sta 31*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_32oro: - sta 32*15+rowblit,x + sta 32*ROW_STRIDE + rowBlit,x e_33ro: - sta 33*15+rowblit,x + sta 33*ROW_STRIDE + rowBlit,x lsr - sta 34*15+rowblit,x + sta 34*ROW_STRIDE + rowBlit,x rts e_t30orotoro: - lda (pshape),y + lda (pTex),y iny - sta 30*15+rowblit,x - sta 31*15+rowblit,x + sta 30*ROW_STRIDE + rowBlit,x + sta 31*ROW_STRIDE + rowBlit,x lsr - sta 32*15+rowblit,x - lda (pshape),y + sta 32*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_33ro e_r75otooro: lsr - sta 75*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x bra e_76tooro e_r75torotoro: lsr - sta 75*15+rowblit,x - lda (pshape),y + sta 75*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 76*15+rowblit,x + sta 76*ROW_STRIDE + rowBlit,x lsr - sta 77*15+rowblit,x - lda (pshape),y + sta 77*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_78ro e_75rotooro: - sta 75*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x lsr e_76tooro: - sta 76*15+rowblit,x - lda (pshape),y + sta 76*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_77oro: - sta 77*15+rowblit,x + sta 77*ROW_STRIDE + rowBlit,x e_78ro: - sta 78*15+rowblit,x + sta 78*ROW_STRIDE + rowBlit,x lsr - sta 79*15+rowblit,x + sta 79*ROW_STRIDE + rowBlit,x rts e_t75oooro: - lda (pshape),y + lda (pTex),y iny - sta 75*15+rowblit,x - sta 76*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x + sta 76*ROW_STRIDE + rowBlit,x bra e_77oro e_t75orotoro: - lda (pshape),y + lda (pTex),y iny - sta 75*15+rowblit,x - sta 76*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x + sta 76*ROW_STRIDE + rowBlit,x lsr - sta 77*15+rowblit,x - lda (pshape),y + sta 77*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_78ro e_t75rootoro: - lda (pshape),y + lda (pTex),y iny - sta 75*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x lsr - sta 76*15+rowblit,x - sta 77*15+rowblit,x - lda (pshape),y + sta 76*ROW_STRIDE + rowBlit,x + sta 77*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_78ro e_80rootoro: - sta 80*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x lsr - sta 81*15+rowblit,x - sta 82*15+rowblit,x - lda (pshape),y + sta 81*ROW_STRIDE + rowBlit,x + sta 82*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_83ro e_80toooro: - sta 80*15+rowblit,x - lda (pshape),y + sta 80*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 81*15+rowblit,x + sta 81*ROW_STRIDE + rowBlit,x bra e_82oro e_r80otooro: lsr - sta 80*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x bra e_81tooro e_r80torotoro: lsr - sta 80*15+rowblit,x - lda (pshape),y + sta 80*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 81*15+rowblit,x + sta 81*ROW_STRIDE + rowBlit,x lsr - sta 82*15+rowblit,x - lda (pshape),y + sta 82*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_83ro e_80rotooro: - sta 80*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x lsr e_81tooro: - sta 81*15+rowblit,x - lda (pshape),y + sta 81*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_82oro: - sta 82*15+rowblit,x + sta 82*ROW_STRIDE + rowBlit,x e_83ro: - sta 83*15+rowblit,x + sta 83*ROW_STRIDE + rowBlit,x lsr - sta 84*15+rowblit,x + sta 84*ROW_STRIDE + rowBlit,x rts e_t80orotoro: - lda (pshape),y + lda (pTex),y iny - sta 80*15+rowblit,x - sta 81*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x + sta 81*ROW_STRIDE + rowBlit,x lsr - sta 82*15+rowblit,x - lda (pshape),y + sta 82*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_83ro e_t80rotooro: - lda (pshape),y + lda (pTex),y iny bra e_80rotooro e_20roooto: - sta 20*15+rowblit,x + sta 20*ROW_STRIDE + rowBlit,x lsr - sta 21*15+rowblit,x + sta 21*ROW_STRIDE + rowBlit,x bra e_22oto e_20torooto: - sta 20*15+rowblit,x - lda (pshape),y + sta 20*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_21rooto e_20orooto: - sta 20*15+rowblit,x + sta 20*ROW_STRIDE + rowBlit,x e_21rooto: - sta 21*15+rowblit,x + sta 21*ROW_STRIDE + rowBlit,x lsr e_22oto: - sta 22*15+rowblit,x + sta 22*ROW_STRIDE + rowBlit,x e_23to: - sta 23*15+rowblit,x - lda (pshape),y + sta 23*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 24*15+rowblit,x + sta 24*ROW_STRIDE + rowBlit,x rts e_t20orooto: - lda (pshape),y + lda (pTex),y iny bra e_20orooto e_55orooto: - sta 55*15+rowblit,x + sta 55*ROW_STRIDE + rowBlit,x bra e_56rooto e_55roooto: - sta 55*15+rowblit,x + sta 55*ROW_STRIDE + rowBlit,x lsr - sta 56*15+rowblit,x + sta 56*ROW_STRIDE + rowBlit,x bra e_57oto e_55rotoroto: - sta 55*15+rowblit,x + sta 55*ROW_STRIDE + rowBlit,x lsr - sta 56*15+rowblit,x - lda (pshape),y + sta 56*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 57*15+rowblit,x + sta 57*ROW_STRIDE + rowBlit,x lsr bra e_58to e_55torooto: - sta 55*15+rowblit,x - lda (pshape),y + sta 55*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_56rooto: - sta 56*15+rowblit,x + sta 56*ROW_STRIDE + rowBlit,x lsr e_57oto: - sta 57*15+rowblit,x + sta 57*ROW_STRIDE + rowBlit,x e_58to: - sta 58*15+rowblit,x - lda (pshape),y + sta 58*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 59*15+rowblit,x + sta 59*ROW_STRIDE + rowBlit,x rts e_r55otoroto: lsr - sta 55*15+rowblit,x - sta 56*15+rowblit,x - lda (pshape),y + sta 55*ROW_STRIDE + rowBlit,x + sta 56*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 57*15+rowblit,x + sta 57*ROW_STRIDE + rowBlit,x lsr bra e_58to e_r55tooroto: lsr - sta 55*15+rowblit,x - lda (pshape),y + sta 55*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 56*15+rowblit,x - sta 57*15+rowblit,x + sta 56*ROW_STRIDE + rowBlit,x + sta 57*ROW_STRIDE + rowBlit,x lsr bra e_58to e_80rootoo: - sta 80*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x lsr - sta 81*15+rowblit,x + sta 81*ROW_STRIDE + rowBlit,x bra e_82too e_80torotoo: - sta 80*15+rowblit,x - lda (pshape),y + sta 80*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_81rotoo: - sta 81*15+rowblit,x + sta 81*ROW_STRIDE + rowBlit,x lsr e_82too: - sta 82*15+rowblit,x - lda (pshape),y + sta 82*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 83*15+rowblit,x - sta 84*15+rowblit,x + sta 83*ROW_STRIDE + rowBlit,x + sta 84*ROW_STRIDE + rowBlit,x rts e_r80ootoo: lsr - sta 80*15+rowblit,x - sta 81*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x + sta 81*ROW_STRIDE + rowBlit,x bra e_82too e_t80orotoo: - lda (pshape),y + lda (pTex),y iny - sta 80*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x bra e_81rotoo e_15rotooro: - sta 15*15+rowblit,x + sta 15*ROW_STRIDE + rowBlit,x lsr bra e_16tooro e_15otooro: - sta 15*15+rowblit,x + sta 15*ROW_STRIDE + rowBlit,x e_16tooro: - sta 16*15+rowblit,x + sta 16*ROW_STRIDE + rowBlit,x e_t17oro: - lda (pshape),y + lda (pTex),y iny e_17oro: - sta 17*15+rowblit,x + sta 17*ROW_STRIDE + rowBlit,x e_18ro: - sta 18*15+rowblit,x + sta 18*ROW_STRIDE + rowBlit,x lsr - sta 19*15+rowblit,x + sta 19*ROW_STRIDE + rowBlit,x rts e_r15otooro: @@ -1560,66 +1568,66 @@ e_r15otooro: bra e_15otooro e_t15oooro: - lda (pshape),y + lda (pTex),y iny - sta 15*15+rowblit,x - sta 16*15+rowblit,x + sta 15*ROW_STRIDE + rowBlit,x + sta 16*ROW_STRIDE + rowBlit,x bra e_17oro e_45rootoo: - sta 45*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x lsr e_46otoo: - sta 46*15+rowblit,x + sta 46*ROW_STRIDE + rowBlit,x e_47too: - sta 47*15+rowblit,x - lda (pshape),y + sta 47*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 48*15+rowblit,x - sta 49*15+rowblit,x + sta 48*ROW_STRIDE + rowBlit,x + sta 49*ROW_STRIDE + rowBlit,x rts e_r45ootoo: lsr - sta 45*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x bra e_46otoo e_t45orotoo: - lda (pshape),y + lda (pTex),y iny - sta 45*15+rowblit,x - sta 46*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x + sta 46*ROW_STRIDE + rowBlit,x lsr bra e_47too e_r75ootoo: lsr - sta 75*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x bra e_76otoo e_75rootoo: - sta 75*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x lsr e_76otoo: - sta 76*15+rowblit,x + sta 76*ROW_STRIDE + rowBlit,x e_77too: - sta 77*15+rowblit,x - lda (pshape),y + sta 77*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 78*15+rowblit,x - sta 79*15+rowblit,x + sta 78*ROW_STRIDE + rowBlit,x + sta 79*ROW_STRIDE + rowBlit,x rts e_t75orotoo: - lda (pshape),y + lda (pTex),y iny - sta 75*15+rowblit,x - sta 76*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x + sta 76*ROW_STRIDE + rowBlit,x lsr bra e_77too e_t75rootoo: - lda (pshape),y + lda (pTex),y iny bra e_75rootoo @@ -1629,163 +1637,163 @@ e_r70otooro: e_r70torotoro: lsr - sta 70*15+rowblit,x - lda (pshape),y + sta 70*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 71*15+rowblit,x + sta 71*ROW_STRIDE + rowBlit,x lsr - sta 72*15+rowblit,x - lda (pshape),y + sta 72*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_73ro e_70otooro: - sta 70*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x e_71tooro: - sta 71*15+rowblit,x - lda (pshape),y + sta 71*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_72oro: - sta 72*15+rowblit,x + sta 72*ROW_STRIDE + rowBlit,x e_73ro: - sta 73*15+rowblit,x + sta 73*ROW_STRIDE + rowBlit,x lsr - sta 74*15+rowblit,x + sta 74*ROW_STRIDE + rowBlit,x rts e_t70oooro: - lda (pshape),y + lda (pTex),y iny - sta 70*15+rowblit,x - sta 71*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x + sta 71*ROW_STRIDE + rowBlit,x bra e_72oro e_t70rootoro: - lda (pshape),y + lda (pTex),y iny - sta 70*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x lsr - sta 71*15+rowblit,x - sta 72*15+rowblit,x - lda (pshape),y + sta 71*ROW_STRIDE + rowBlit,x + sta 72*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_73ro e_t70rotooro: - lda (pshape),y + lda (pTex),y iny - sta 70*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x lsr bra e_71tooro e_20rootoo: - sta 20*15+rowblit,x + sta 20*ROW_STRIDE + rowBlit,x lsr e_21otoo: - sta 21*15+rowblit,x + sta 21*ROW_STRIDE + rowBlit,x e_22too: - sta 22*15+rowblit,x + sta 22*ROW_STRIDE + rowBlit,x e_t23o: - lda (pshape),y + lda (pTex),y iny - sta 23*15+rowblit,x - sta 24*15+rowblit,x + sta 23*ROW_STRIDE + rowBlit,x + sta 24*ROW_STRIDE + rowBlit,x rts e_t20orotoo: - lda (pshape),y + lda (pTex),y iny - sta 20*15+rowblit,x - sta 21*15+rowblit,x + sta 20*ROW_STRIDE + rowBlit,x + sta 21*ROW_STRIDE + rowBlit,x lsr bra e_22too e_85rotooro: - sta 85*15+rowblit,x + sta 85*ROW_STRIDE + rowBlit,x lsr - sta 86*15+rowblit,x - lda (pshape),y + sta 86*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 87*15+rowblit,x + sta 87*ROW_STRIDE + rowBlit,x bra e_88ro e_r85otooro: lsr - sta 85*15+rowblit,x - sta 86*15+rowblit,x - lda (pshape),y + sta 85*ROW_STRIDE + rowBlit,x + sta 86*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 87*15+rowblit,x + sta 87*ROW_STRIDE + rowBlit,x bra e_88ro e_85rootoro: - sta 85*15+rowblit,x + sta 85*ROW_STRIDE + rowBlit,x lsr - sta 86*15+rowblit,x + sta 86*ROW_STRIDE + rowBlit,x e_87toro: - sta 87*15+rowblit,x - lda (pshape),y + sta 87*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_88ro: - sta 88*15+rowblit,x + sta 88*ROW_STRIDE + rowBlit,x lsr - sta 89*15+rowblit,x + sta 89*ROW_STRIDE + rowBlit,x rts e_r85torotoro: lsr - sta 85*15+rowblit,x - lda (pshape),y + sta 85*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 86*15+rowblit,x + sta 86*ROW_STRIDE + rowBlit,x lsr bra e_87toro e_t85orotoro: - lda (pshape),y + lda (pTex),y iny - sta 85*15+rowblit,x - sta 86*15+rowblit,x + sta 85*ROW_STRIDE + rowBlit,x + sta 86*ROW_STRIDE + rowBlit,x lsr bra e_87toro e_t85rootoro: - lda (pshape),y + lda (pTex),y iny bra e_85rootoro e_90rotooro: - sta 90*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x lsr - sta 91*15+rowblit,x - lda (pshape),y + sta 91*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 92*15+rowblit,x + sta 92*ROW_STRIDE + rowBlit,x bra e_93ro e_r90otooro: lsr - sta 90*15+rowblit,x - sta 91*15+rowblit,x - lda (pshape),y + sta 90*ROW_STRIDE + rowBlit,x + sta 91*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 92*15+rowblit,x + sta 92*ROW_STRIDE + rowBlit,x bra e_93ro e_90torotoro: - sta 90*15+rowblit,x - lda (pshape),y + sta 90*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 91*15+rowblit,x + sta 91*ROW_STRIDE + rowBlit,x lsr e_92toro: - sta 92*15+rowblit,x - lda (pshape),y + sta 92*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_93ro: - sta 93*15+rowblit,x + sta 93*ROW_STRIDE + rowBlit,x lsr - sta 94*15+rowblit,x + sta 94*ROW_STRIDE + rowBlit,x rts e_r90torotoro: @@ -1793,37 +1801,37 @@ e_r90torotoro: bra e_90torotoro e_t90rootoro: - lda (pshape),y + lda (pTex),y iny - sta 90*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x lsr - sta 91*15+rowblit,x + sta 91*ROW_STRIDE + rowBlit,x bra e_92toro e_50rootoo: - sta 50*15+rowblit,x + sta 50*ROW_STRIDE + rowBlit,x lsr bra e_51otoo e_50torotoo: - sta 50*15+rowblit,x - lda (pshape),y + sta 50*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 51*15+rowblit,x + sta 51*ROW_STRIDE + rowBlit,x lsr bra e_52too e_50ootoo: - sta 50*15+rowblit,x + sta 50*ROW_STRIDE + rowBlit,x e_51otoo: - sta 51*15+rowblit,x + sta 51*ROW_STRIDE + rowBlit,x e_52too: - sta 52*15+rowblit,x + sta 52*ROW_STRIDE + rowBlit,x e_t53o: - lda (pshape),y + lda (pTex),y iny - sta 53*15+rowblit,x - sta 54*15+rowblit,x + sta 53*ROW_STRIDE + rowBlit,x + sta 54*ROW_STRIDE + rowBlit,x rts e_r50ootoo: @@ -1831,238 +1839,238 @@ e_r50ootoo: bra e_50ootoo e_t50orotoo: - lda (pshape),y + lda (pTex),y iny - sta 50*15+rowblit,x - sta 51*15+rowblit,x + sta 50*ROW_STRIDE + rowBlit,x + sta 51*ROW_STRIDE + rowBlit,x lsr bra e_52too e_100roooto: - sta 100*15+rowblit,x + sta 100*ROW_STRIDE + rowBlit,x lsr - sta 101*15+rowblit,x + sta 101*ROW_STRIDE + rowBlit,x bra e_102oto e_100tooroto: - sta 100*15+rowblit,x - lda (pshape),y + sta 100*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 101*15+rowblit,x - sta 102*15+rowblit,x + sta 101*ROW_STRIDE + rowBlit,x + sta 102*ROW_STRIDE + rowBlit,x lsr bra e_103to e_100orooto: - sta 100*15+rowblit,x + sta 100*ROW_STRIDE + rowBlit,x e_101rooto: - sta 101*15+rowblit,x + sta 101*ROW_STRIDE + rowBlit,x lsr e_102oto: - sta 102*15+rowblit,x + sta 102*ROW_STRIDE + rowBlit,x e_103to: - sta 103*15+rowblit,x - lda (pshape),y + sta 103*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 104*15+rowblit,x + sta 104*ROW_STRIDE + rowBlit,x rts e_r100tooroto: lsr - sta 100*15+rowblit,x - lda (pshape),y + sta 100*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 101*15+rowblit,x - sta 102*15+rowblit,x + sta 101*ROW_STRIDE + rowBlit,x + sta 102*ROW_STRIDE + rowBlit,x lsr bra e_103to e_t100orooto: - lda (pshape),y + lda (pTex),y iny bra e_100orooto e_15orooto: - sta 15*15+rowblit,x + sta 15*ROW_STRIDE + rowBlit,x e_16rooto: - sta 16*15+rowblit,x + sta 16*ROW_STRIDE + rowBlit,x lsr e_17oto: - sta 17*15+rowblit,x + sta 17*ROW_STRIDE + rowBlit,x e_18to: - sta 18*15+rowblit,x - lda (pshape),y + sta 18*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 19*15+rowblit,x + sta 19*ROW_STRIDE + rowBlit,x rts e_t15orooto: - lda (pshape),y + lda (pTex),y iny bra e_15orooto e_40ooroo: - sta 40*15+rowblit,x + sta 40*ROW_STRIDE + rowBlit,x bra e_41oroo e_40tooroo: - sta 40*15+rowblit,x - lda (pshape),y + sta 40*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_41oroo: - sta 41*15+rowblit,x + sta 41*ROW_STRIDE + rowBlit,x e_42roo: - sta 42*15+rowblit,x + sta 42*ROW_STRIDE + rowBlit,x lsr - sta 43*15+rowblit,x - sta 44*15+rowblit,x + sta 43*ROW_STRIDE + rowBlit,x + sta 44*ROW_STRIDE + rowBlit,x rts e_r40otoroo: lsr - sta 40*15+rowblit,x - sta 41*15+rowblit,x - lda (pshape),y + sta 40*ROW_STRIDE + rowBlit,x + sta 41*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_42roo e_t40ooroo: - lda (pshape),y + lda (pTex),y iny - sta 40*15+rowblit,x + sta 40*ROW_STRIDE + rowBlit,x bra e_41oroo e_95toooro: - sta 95*15+rowblit,x - lda (pshape),y + sta 95*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 96*15+rowblit,x + sta 96*ROW_STRIDE + rowBlit,x bra e_97oro e_r95otooro: lsr - sta 95*15+rowblit,x + sta 95*ROW_STRIDE + rowBlit,x bra e_96tooro e_95rotooro: - sta 95*15+rowblit,x + sta 95*ROW_STRIDE + rowBlit,x lsr e_96tooro: - sta 96*15+rowblit,x - lda (pshape),y + sta 96*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_97oro: - sta 97*15+rowblit,x + sta 97*ROW_STRIDE + rowBlit,x e_98ro: - sta 98*15+rowblit,x + sta 98*ROW_STRIDE + rowBlit,x lsr - sta 99*15+rowblit,x + sta 99*ROW_STRIDE + rowBlit,x rts e_t95orotoro: - lda (pshape),y + lda (pTex),y iny - sta 95*15+rowblit,x - sta 96*15+rowblit,x + sta 95*ROW_STRIDE + rowBlit,x + sta 96*ROW_STRIDE + rowBlit,x lsr - sta 97*15+rowblit,x - lda (pshape),y + sta 97*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_98ro e_105torooto: - sta 105*15+rowblit,x - lda (pshape),y + sta 105*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 106*15+rowblit,x + sta 106*ROW_STRIDE + rowBlit,x lsr - sta 107*15+rowblit,x + sta 107*ROW_STRIDE + rowBlit,x bra e_108to e_105tooroto: - sta 105*15+rowblit,x - lda (pshape),y + sta 105*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 106*15+rowblit,x - sta 107*15+rowblit,x + sta 106*ROW_STRIDE + rowBlit,x + sta 107*ROW_STRIDE + rowBlit,x lsr e_108to: - sta 108*15+rowblit,x - lda (pshape),y + sta 108*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 109*15+rowblit,x + sta 109*ROW_STRIDE + rowBlit,x rts e_r15otoroo: lsr - sta 15*15+rowblit,x - sta 16*15+rowblit,x - lda (pshape),y + sta 15*ROW_STRIDE + rowBlit,x + sta 16*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_17roo e_15tooroo: - sta 15*15+rowblit,x - lda (pshape),y + sta 15*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_16oroo: - sta 16*15+rowblit,x + sta 16*ROW_STRIDE + rowBlit,x e_17roo: - sta 17*15+rowblit,x + sta 17*ROW_STRIDE + rowBlit,x lsr - sta 18*15+rowblit,x - sta 19*15+rowblit,x + sta 18*ROW_STRIDE + rowBlit,x + sta 19*ROW_STRIDE + rowBlit,x rts e_t15ooroo: - lda (pshape),y + lda (pTex),y iny - sta 15*15+rowblit,x + sta 15*ROW_STRIDE + rowBlit,x bra e_16oroo e_r25ootoo: lsr - sta 25*15+rowblit,x + sta 25*ROW_STRIDE + rowBlit,x bra e_26otoo e_25rootoo: - sta 25*15+rowblit,x + sta 25*ROW_STRIDE + rowBlit,x lsr e_26otoo: - sta 26*15+rowblit,x + sta 26*ROW_STRIDE + rowBlit,x e_27too: - sta 27*15+rowblit,x + sta 27*ROW_STRIDE + rowBlit,x e_t28o: - lda (pshape),y + lda (pTex),y iny - sta 28*15+rowblit,x - sta 29*15+rowblit,x + sta 28*ROW_STRIDE + rowBlit,x + sta 29*ROW_STRIDE + rowBlit,x rts e_t25rootoo: - lda (pshape),y + lda (pTex),y iny bra e_25rootoo e_r45otoroo: lsr - sta 45*15+rowblit,x - sta 46*15+rowblit,x - lda (pshape),y + sta 45*ROW_STRIDE + rowBlit,x + sta 46*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_47roo e_45tooroo: - sta 45*15+rowblit,x - lda (pshape),y + sta 45*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_46oroo: - sta 46*15+rowblit,x + sta 46*ROW_STRIDE + rowBlit,x e_47roo: - sta 47*15+rowblit,x + sta 47*ROW_STRIDE + rowBlit,x lsr - sta 48*15+rowblit,x - sta 49*15+rowblit,x + sta 48*ROW_STRIDE + rowBlit,x + sta 49*ROW_STRIDE + rowBlit,x rts e_r45tooroo: @@ -2070,111 +2078,111 @@ e_r45tooroo: bra e_45tooroo e_t45ooroo: - lda (pshape),y + lda (pTex),y iny - sta 45*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x bra e_46oroo e_r55ootoo: lsr - sta 55*15+rowblit,x + sta 55*ROW_STRIDE + rowBlit,x bra e_56otoo e_t55orotoo: - lda (pshape),y + lda (pTex),y iny - sta 55*15+rowblit,x - sta 56*15+rowblit,x + sta 55*ROW_STRIDE + rowBlit,x + sta 56*ROW_STRIDE + rowBlit,x lsr bra e_57too e_55rootoo: - sta 55*15+rowblit,x + sta 55*ROW_STRIDE + rowBlit,x lsr e_56otoo: - sta 56*15+rowblit,x + sta 56*ROW_STRIDE + rowBlit,x e_57too: - sta 57*15+rowblit,x + sta 57*ROW_STRIDE + rowBlit,x e_t58o: - lda (pshape),y + lda (pTex),y iny - sta 58*15+rowblit,x - sta 59*15+rowblit,x + sta 58*ROW_STRIDE + rowBlit,x + sta 59*ROW_STRIDE + rowBlit,x rts e_t55rootoo: - lda (pshape),y + lda (pTex),y iny bra e_55rootoo e_r100otoroo: lsr - sta 100*15+rowblit,x - sta 101*15+rowblit,x - lda (pshape),y + sta 100*ROW_STRIDE + rowBlit,x + sta 101*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_102roo e_100tooroo: - sta 100*15+rowblit,x - lda (pshape),y + sta 100*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_101oroo: - sta 101*15+rowblit,x + sta 101*ROW_STRIDE + rowBlit,x e_102roo: - sta 102*15+rowblit,x + sta 102*ROW_STRIDE + rowBlit,x lsr - sta 103*15+rowblit,x - sta 104*15+rowblit,x + sta 103*ROW_STRIDE + rowBlit,x + sta 104*ROW_STRIDE + rowBlit,x rts e_t100ooroo: - lda (pshape),y + lda (pTex),y iny - sta 100*15+rowblit,x + sta 100*ROW_STRIDE + rowBlit,x bra e_101oroo e_t40orotoo: - lda (pshape),y + lda (pTex),y iny - sta 40*15+rowblit,x - sta 41*15+rowblit,x + sta 40*ROW_STRIDE + rowBlit,x + sta 41*ROW_STRIDE + rowBlit,x lsr bra e_42too e_40rootoo: - sta 40*15+rowblit,x + sta 40*ROW_STRIDE + rowBlit,x lsr - sta 41*15+rowblit,x + sta 41*ROW_STRIDE + rowBlit,x e_42too: - sta 42*15+rowblit,x + sta 42*ROW_STRIDE + rowBlit,x e_t43o: - lda (pshape),y + lda (pTex),y iny - sta 43*15+rowblit,x - sta 44*15+rowblit,x + sta 43*ROW_STRIDE + rowBlit,x + sta 44*ROW_STRIDE + rowBlit,x rts e_r50tooroo: lsr - sta 50*15+rowblit,x - lda (pshape),y + sta 50*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_51oroo e_50ooroo: - sta 50*15+rowblit,x + sta 50*ROW_STRIDE + rowBlit,x e_51oroo: - sta 51*15+rowblit,x + sta 51*ROW_STRIDE + rowBlit,x e_52roo: - sta 52*15+rowblit,x + sta 52*ROW_STRIDE + rowBlit,x lsr - sta 53*15+rowblit,x - sta 54*15+rowblit,x + sta 53*ROW_STRIDE + rowBlit,x + sta 54*ROW_STRIDE + rowBlit,x rts e_t50ooroo: - lda (pshape),y + lda (pTex),y iny bra e_50ooroo @@ -2183,40 +2191,40 @@ e_r70tooroo: bra e_70tooroo e_70tooroo: - sta 70*15+rowblit,x - lda (pshape),y + sta 70*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_71oroo: - sta 71*15+rowblit,x + sta 71*ROW_STRIDE + rowBlit,x e_72roo: - sta 72*15+rowblit,x + sta 72*ROW_STRIDE + rowBlit,x lsr - sta 73*15+rowblit,x - sta 74*15+rowblit,x + sta 73*ROW_STRIDE + rowBlit,x + sta 74*ROW_STRIDE + rowBlit,x rts e_t70ooroo: - lda (pshape),y + lda (pTex),y iny - sta 70*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x bra e_71oroo e_90otooo: - sta 90*15+rowblit,x - sta 91*15+rowblit,x - lda (pshape),y + sta 90*ROW_STRIDE + rowBlit,x + sta 91*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_92oo: - sta 92*15+rowblit,x - sta 93*15+rowblit,x - sta 94*15+rowblit,x + sta 92*ROW_STRIDE + rowBlit,x + sta 93*ROW_STRIDE + rowBlit,x + sta 94*ROW_STRIDE + rowBlit,x rts e_90toooo: - sta 90*15+rowblit,x - lda (pshape),y + sta 90*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 91*15+rowblit,x + sta 91*ROW_STRIDE + rowBlit,x bra e_92oo e_r90otooo: @@ -2224,179 +2232,179 @@ e_r90otooo: bra e_90otooo e_90tooroo: - sta 90*15+rowblit,x - lda (pshape),y + sta 90*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_91oroo: - sta 91*15+rowblit,x + sta 91*ROW_STRIDE + rowBlit,x e_92roo: - sta 92*15+rowblit,x + sta 92*ROW_STRIDE + rowBlit,x lsr - sta 93*15+rowblit,x - sta 94*15+rowblit,x + sta 93*ROW_STRIDE + rowBlit,x + sta 94*ROW_STRIDE + rowBlit,x rts e_t90ooroo: - lda (pshape),y + lda (pTex),y iny - sta 90*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x bra e_91oroo e_25tooroo: - sta 25*15+rowblit,x - lda (pshape),y + sta 25*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_26oroo e_25ooroo: - sta 25*15+rowblit,x + sta 25*ROW_STRIDE + rowBlit,x e_26oroo: - sta 26*15+rowblit,x + sta 26*ROW_STRIDE + rowBlit,x e_27roo: - sta 27*15+rowblit,x + sta 27*ROW_STRIDE + rowBlit,x lsr - sta 28*15+rowblit,x - sta 29*15+rowblit,x + sta 28*ROW_STRIDE + rowBlit,x + sta 29*ROW_STRIDE + rowBlit,x rts e_85tooroo: - sta 85*15+rowblit,x - lda (pshape),y + sta 85*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_86oroo e_85ooroo: - sta 85*15+rowblit,x + sta 85*ROW_STRIDE + rowBlit,x e_86oroo: - sta 86*15+rowblit,x + sta 86*ROW_STRIDE + rowBlit,x e_87roo: - sta 87*15+rowblit,x + sta 87*ROW_STRIDE + rowBlit,x lsr - sta 88*15+rowblit,x - sta 89*15+rowblit,x + sta 88*ROW_STRIDE + rowBlit,x + sta 89*ROW_STRIDE + rowBlit,x rts e_r85otoroo: lsr - sta 85*15+rowblit,x - sta 86*15+rowblit,x - lda (pshape),y + sta 85*ROW_STRIDE + rowBlit,x + sta 86*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_87roo e_t85ooroo: - lda (pshape),y + lda (pTex),y iny bra e_85ooroo e_105rotooro: - sta 105*15+rowblit,x + sta 105*ROW_STRIDE + rowBlit,x lsr e_106tooro: - sta 106*15+rowblit,x - lda (pshape),y + sta 106*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_107oro: - sta 107*15+rowblit,x + sta 107*ROW_STRIDE + rowBlit,x e_108ro: - sta 108*15+rowblit,x + sta 108*ROW_STRIDE + rowBlit,x lsr - sta 109*15+rowblit,x + sta 109*ROW_STRIDE + rowBlit,x rts e_r105otooro: lsr - sta 105*15+rowblit,x + sta 105*ROW_STRIDE + rowBlit,x bra e_106tooro e_t105oooro: - lda (pshape),y + lda (pTex),y iny - sta 105*15+rowblit,x - sta 106*15+rowblit,x + sta 105*ROW_STRIDE + rowBlit,x + sta 106*ROW_STRIDE + rowBlit,x bra e_107oro e_65rootoro: - sta 65*15+rowblit,x + sta 65*ROW_STRIDE + rowBlit,x lsr - sta 66*15+rowblit,x - sta 67*15+rowblit,x - lda (pshape),y + sta 66*ROW_STRIDE + rowBlit,x + sta 67*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_68ro e_65toooro: - sta 65*15+rowblit,x - lda (pshape),y + sta 65*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 66*15+rowblit,x + sta 66*ROW_STRIDE + rowBlit,x bra e_67oro e_65rotooro: - sta 65*15+rowblit,x + sta 65*ROW_STRIDE + rowBlit,x lsr e_66tooro: - sta 66*15+rowblit,x - lda (pshape),y + sta 66*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_67oro: - sta 67*15+rowblit,x + sta 67*ROW_STRIDE + rowBlit,x e_68ro: - sta 68*15+rowblit,x + sta 68*ROW_STRIDE + rowBlit,x lsr - sta 69*15+rowblit,x + sta 69*ROW_STRIDE + rowBlit,x rts e_r65torotoro: lsr - sta 65*15+rowblit,x - lda (pshape),y + sta 65*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 66*15+rowblit,x + sta 66*ROW_STRIDE + rowBlit,x lsr - sta 67*15+rowblit,x - lda (pshape),y + sta 67*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_68ro e_r85ootoo: lsr - sta 85*15+rowblit,x + sta 85*ROW_STRIDE + rowBlit,x bra e_86otoo e_85rootoo: - sta 85*15+rowblit,x + sta 85*ROW_STRIDE + rowBlit,x lsr e_86otoo: - sta 86*15+rowblit,x + sta 86*ROW_STRIDE + rowBlit,x e_87too: - sta 87*15+rowblit,x - lda (pshape),y + sta 87*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 88*15+rowblit,x - sta 89*15+rowblit,x + sta 88*ROW_STRIDE + rowBlit,x + sta 89*ROW_STRIDE + rowBlit,x rts e_t85rootoo: - lda (pshape),y + lda (pTex),y iny bra e_85rootoo e_110rootoo: - sta 110*15+rowblit,x + sta 110*ROW_STRIDE + rowBlit,x lsr bra e_111otoo e_110ootoo: - sta 110*15+rowblit,x + sta 110*ROW_STRIDE + rowBlit,x e_111otoo: - sta 111*15+rowblit,x + sta 111*ROW_STRIDE + rowBlit,x e_112too: - sta 112*15+rowblit,x - lda (pshape),y + sta 112*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 113*15+rowblit,x - sta 114*15+rowblit,x + sta 113*ROW_STRIDE + rowBlit,x + sta 114*ROW_STRIDE + rowBlit,x rts e_r110ootoo: @@ -2404,46 +2412,46 @@ e_r110ootoo: bra e_110ootoo e_t110orotoo: - lda (pshape),y + lda (pTex),y iny - sta 110*15+rowblit,x - sta 111*15+rowblit,x + sta 110*ROW_STRIDE + rowBlit,x + sta 111*ROW_STRIDE + rowBlit,x lsr bra e_112too e_30tooroo: - sta 30*15+rowblit,x - lda (pshape),y + sta 30*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_31oroo: - sta 31*15+rowblit,x - sta 32*15+rowblit,x + sta 31*ROW_STRIDE + rowBlit,x + sta 32*ROW_STRIDE + rowBlit,x lsr - sta 33*15+rowblit,x - sta 34*15+rowblit,x + sta 33*ROW_STRIDE + rowBlit,x + sta 34*ROW_STRIDE + rowBlit,x rts e_t30ooroo: - lda (pshape),y + lda (pTex),y iny - sta 30*15+rowblit,x + sta 30*ROW_STRIDE + rowBlit,x bra e_31oroo e_95rootoo: - sta 95*15+rowblit,x + sta 95*ROW_STRIDE + rowBlit,x lsr bra e_96otoo e_95ootoo: - sta 95*15+rowblit,x + sta 95*ROW_STRIDE + rowBlit,x e_96otoo: - sta 96*15+rowblit,x + sta 96*ROW_STRIDE + rowBlit,x e_97too: - sta 97*15+rowblit,x - lda (pshape),y + sta 97*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 98*15+rowblit,x - sta 99*15+rowblit,x + sta 98*ROW_STRIDE + rowBlit,x + sta 99*ROW_STRIDE + rowBlit,x rts e_r95ootoo: @@ -2451,79 +2459,79 @@ e_r95ootoo: bra e_95ootoo e_t95orotoo: - lda (pshape),y + lda (pTex),y iny - sta 95*15+rowblit,x - sta 96*15+rowblit,x + sta 95*ROW_STRIDE + rowBlit,x + sta 96*ROW_STRIDE + rowBlit,x lsr bra e_97too e_20toooro: - sta 20*15+rowblit,x - lda (pshape),y + sta 20*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 21*15+rowblit,x + sta 21*ROW_STRIDE + rowBlit,x bra e_22oro e_20rotooro: - sta 20*15+rowblit,x + sta 20*ROW_STRIDE + rowBlit,x lsr e_21tooro: - sta 21*15+rowblit,x + sta 21*ROW_STRIDE + rowBlit,x e_t22oro: - lda (pshape),y + lda (pTex),y iny e_22oro: - sta 22*15+rowblit,x + sta 22*ROW_STRIDE + rowBlit,x e_23ro: - sta 23*15+rowblit,x + sta 23*ROW_STRIDE + rowBlit,x lsr - sta 24*15+rowblit,x + sta 24*ROW_STRIDE + rowBlit,x rts e_r20otooro: lsr - sta 20*15+rowblit,x + sta 20*ROW_STRIDE + rowBlit,x bra e_21tooro e_120roooto: - sta 120*15+rowblit,x + sta 120*ROW_STRIDE + rowBlit,x lsr - sta 121*15+rowblit,x + sta 121*ROW_STRIDE + rowBlit,x bra e_122oto e_120orooto: - sta 120*15+rowblit,x - sta 121*15+rowblit,x + sta 120*ROW_STRIDE + rowBlit,x + sta 121*ROW_STRIDE + rowBlit,x lsr e_122oto: - sta 122*15+rowblit,x - sta 123*15+rowblit,x - lda (pshape),y + sta 122*ROW_STRIDE + rowBlit,x + sta 123*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 124*15+rowblit,x + sta 124*ROW_STRIDE + rowBlit,x rts e_t120orooto: - lda (pshape),y + lda (pTex),y iny bra e_120orooto e_130orooo: - sta 130*15+rowblit,x - sta 131*15+rowblit,x + sta 130*ROW_STRIDE + rowBlit,x + sta 131*ROW_STRIDE + rowBlit,x lsr bra e_132oo e_130otooo: - sta 130*15+rowblit,x - sta 131*15+rowblit,x - lda (pshape),y + sta 130*ROW_STRIDE + rowBlit,x + sta 131*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_132oo: - sta 132*15+rowblit,x - sta 133*15+rowblit,x - sta 134*15+rowblit,x + sta 132*ROW_STRIDE + rowBlit,x + sta 133*ROW_STRIDE + rowBlit,x + sta 134*ROW_STRIDE + rowBlit,x rts e_r130otooo: @@ -2532,36 +2540,36 @@ e_r130otooo: e_r15ootoo: lsr - sta 15*15+rowblit,x + sta 15*ROW_STRIDE + rowBlit,x bra e_16otoo e_15rootoo: - sta 15*15+rowblit,x + sta 15*ROW_STRIDE + rowBlit,x lsr e_16otoo: - sta 16*15+rowblit,x - sta 17*15+rowblit,x + sta 16*ROW_STRIDE + rowBlit,x + sta 17*ROW_STRIDE + rowBlit,x e_t18o: - lda (pshape),y + lda (pTex),y iny - sta 18*15+rowblit,x - sta 19*15+rowblit,x + sta 18*ROW_STRIDE + rowBlit,x + sta 19*ROW_STRIDE + rowBlit,x rts e_t15rootoo: - lda (pshape),y + lda (pTex),y iny bra e_15rootoo e_20otooo: - sta 20*15+rowblit,x - sta 21*15+rowblit,x - lda (pshape),y + sta 20*ROW_STRIDE + rowBlit,x + sta 21*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_22oo: - sta 22*15+rowblit,x - sta 23*15+rowblit,x - sta 24*15+rowblit,x + sta 22*ROW_STRIDE + rowBlit,x + sta 23*ROW_STRIDE + rowBlit,x + sta 24*ROW_STRIDE + rowBlit,x rts e_r20otooo: @@ -2569,20 +2577,20 @@ e_r20otooo: bra e_20otooo e_25orooo: - sta 25*15+rowblit,x - sta 26*15+rowblit,x + sta 25*ROW_STRIDE + rowBlit,x + sta 26*ROW_STRIDE + rowBlit,x lsr bra e_27oo e_25otooo: - sta 25*15+rowblit,x - sta 26*15+rowblit,x - lda (pshape),y + sta 25*ROW_STRIDE + rowBlit,x + sta 26*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_27oo: - sta 27*15+rowblit,x - sta 28*15+rowblit,x - sta 29*15+rowblit,x + sta 27*ROW_STRIDE + rowBlit,x + sta 28*ROW_STRIDE + rowBlit,x + sta 29*ROW_STRIDE + rowBlit,x rts e_r25otooo: @@ -2590,20 +2598,20 @@ e_r25otooo: bra e_25otooo e_60orooo: - sta 60*15+rowblit,x - sta 61*15+rowblit,x + sta 60*ROW_STRIDE + rowBlit,x + sta 61*ROW_STRIDE + rowBlit,x lsr bra e_62oo e_60otooo: - sta 60*15+rowblit,x - sta 61*15+rowblit,x - lda (pshape),y + sta 60*ROW_STRIDE + rowBlit,x + sta 61*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_62oo: - sta 62*15+rowblit,x - sta 63*15+rowblit,x - sta 64*15+rowblit,x + sta 62*ROW_STRIDE + rowBlit,x + sta 63*ROW_STRIDE + rowBlit,x + sta 64*ROW_STRIDE + rowBlit,x rts e_r60otooo: @@ -2611,43 +2619,43 @@ e_r60otooo: bra e_60otooo e_20tooroo: - sta 20*15+rowblit,x - lda (pshape),y + sta 20*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_21oroo: - sta 21*15+rowblit,x + sta 21*ROW_STRIDE + rowBlit,x e_22roo: - sta 22*15+rowblit,x + sta 22*ROW_STRIDE + rowBlit,x lsr - sta 23*15+rowblit,x - sta 24*15+rowblit,x + sta 23*ROW_STRIDE + rowBlit,x + sta 24*ROW_STRIDE + rowBlit,x rts e_t20ooroo: - lda (pshape),y + lda (pTex),y iny - sta 20*15+rowblit,x + sta 20*ROW_STRIDE + rowBlit,x bra e_21oroo e_r80otoroo: lsr - sta 80*15+rowblit,x - sta 81*15+rowblit,x - lda (pshape),y + sta 80*ROW_STRIDE + rowBlit,x + sta 81*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_82roo e_80tooroo: - sta 80*15+rowblit,x - lda (pshape),y + sta 80*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_81oroo: - sta 81*15+rowblit,x + sta 81*ROW_STRIDE + rowBlit,x e_82roo: - sta 82*15+rowblit,x + sta 82*ROW_STRIDE + rowBlit,x lsr - sta 83*15+rowblit,x - sta 84*15+rowblit,x + sta 83*ROW_STRIDE + rowBlit,x + sta 84*ROW_STRIDE + rowBlit,x rts e_r80tooroo: @@ -2656,218 +2664,218 @@ e_r80tooroo: e_r95otoroo: lsr - sta 95*15+rowblit,x - sta 96*15+rowblit,x - lda (pshape),y + sta 95*ROW_STRIDE + rowBlit,x + sta 96*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_97roo e_95tooroo: - sta 95*15+rowblit,x - lda (pshape),y + sta 95*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_96oroo: - sta 96*15+rowblit,x + sta 96*ROW_STRIDE + rowBlit,x e_97roo: - sta 97*15+rowblit,x + sta 97*ROW_STRIDE + rowBlit,x lsr - sta 98*15+rowblit,x - sta 99*15+rowblit,x + sta 98*ROW_STRIDE + rowBlit,x + sta 99*ROW_STRIDE + rowBlit,x rts e_t95ooroo: - lda (pshape),y + lda (pTex),y iny - sta 95*15+rowblit,x + sta 95*ROW_STRIDE + rowBlit,x bra e_96oroo e_90rootoo: - sta 90*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x lsr - sta 91*15+rowblit,x + sta 91*ROW_STRIDE + rowBlit,x bra e_92too e_90torotoo: - sta 90*15+rowblit,x - lda (pshape),y + sta 90*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_91rotoo: - sta 91*15+rowblit,x + sta 91*ROW_STRIDE + rowBlit,x lsr e_92too: - sta 92*15+rowblit,x - lda (pshape),y + sta 92*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 93*15+rowblit,x - sta 94*15+rowblit,x + sta 93*ROW_STRIDE + rowBlit,x + sta 94*ROW_STRIDE + rowBlit,x rts e_r90ootoo: lsr - sta 90*15+rowblit,x - sta 91*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x + sta 91*ROW_STRIDE + rowBlit,x bra e_92too e_t90orotoo: - lda (pshape),y + lda (pTex),y iny - sta 90*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x bra e_91rotoo e_r70torotoo: lsr - sta 70*15+rowblit,x - lda (pshape),y + sta 70*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_71rotoo: - sta 71*15+rowblit,x + sta 71*ROW_STRIDE + rowBlit,x lsr e_72too: - sta 72*15+rowblit,x - lda (pshape),y + sta 72*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 73*15+rowblit,x - sta 74*15+rowblit,x + sta 73*ROW_STRIDE + rowBlit,x + sta 74*ROW_STRIDE + rowBlit,x rts e_t70orotoo: - lda (pshape),y + lda (pTex),y iny - sta 70*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x bra e_71rotoo e_105ooroo: - sta 105*15+rowblit,x + sta 105*ROW_STRIDE + rowBlit,x e_106oroo: - sta 106*15+rowblit,x + sta 106*ROW_STRIDE + rowBlit,x e_107roo: - sta 107*15+rowblit,x + sta 107*ROW_STRIDE + rowBlit,x lsr - sta 108*15+rowblit,x - sta 109*15+rowblit,x + sta 108*ROW_STRIDE + rowBlit,x + sta 109*ROW_STRIDE + rowBlit,x rts e_r105tooroo: lsr - sta 105*15+rowblit,x - lda (pshape),y + sta 105*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_106oroo e_t105ooroo: - lda (pshape),y + lda (pTex),y iny bra e_105ooroo e_110tooroo: - sta 110*15+rowblit,x - lda (pshape),y + sta 110*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_111oroo e_110ooroo: - sta 110*15+rowblit,x + sta 110*ROW_STRIDE + rowBlit,x e_111oroo: - sta 111*15+rowblit,x + sta 111*ROW_STRIDE + rowBlit,x e_112roo: - sta 112*15+rowblit,x + sta 112*ROW_STRIDE + rowBlit,x lsr - sta 113*15+rowblit,x - sta 114*15+rowblit,x + sta 113*ROW_STRIDE + rowBlit,x + sta 114*ROW_STRIDE + rowBlit,x rts e_r110otoroo: lsr - sta 110*15+rowblit,x - sta 111*15+rowblit,x - lda (pshape),y + sta 110*ROW_STRIDE + rowBlit,x + sta 111*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_112roo e_t110ooroo: - lda (pshape),y + lda (pTex),y iny bra e_110ooroo e_55tooroo: - sta 55*15+rowblit,x - lda (pshape),y + sta 55*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_56oroo e_55ooroo: - sta 55*15+rowblit,x + sta 55*ROW_STRIDE + rowBlit,x e_56oroo: - sta 56*15+rowblit,x + sta 56*ROW_STRIDE + rowBlit,x e_57roo: - sta 57*15+rowblit,x + sta 57*ROW_STRIDE + rowBlit,x lsr - sta 58*15+rowblit,x - sta 59*15+rowblit,x + sta 58*ROW_STRIDE + rowBlit,x + sta 59*ROW_STRIDE + rowBlit,x rts e_t55ooroo: - lda (pshape),y + lda (pTex),y iny bra e_55ooroo e_r100otooro: lsr - sta 100*15+rowblit,x + sta 100*ROW_STRIDE + rowBlit,x bra e_101tooro e_100rotooro: - sta 100*15+rowblit,x + sta 100*ROW_STRIDE + rowBlit,x lsr e_101tooro: - sta 101*15+rowblit,x - lda (pshape),y + sta 101*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_102oro: - sta 102*15+rowblit,x + sta 102*ROW_STRIDE + rowBlit,x e_103ro: - sta 103*15+rowblit,x + sta 103*ROW_STRIDE + rowBlit,x lsr - sta 104*15+rowblit,x + sta 104*ROW_STRIDE + rowBlit,x rts e_t100orotoro: - lda (pshape),y + lda (pTex),y iny - sta 100*15+rowblit,x - sta 101*15+rowblit,x + sta 100*ROW_STRIDE + rowBlit,x + sta 101*ROW_STRIDE + rowBlit,x lsr - sta 102*15+rowblit,x - lda (pshape),y + sta 102*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_103ro e_t100rootoro: - lda (pshape),y + lda (pTex),y iny - sta 100*15+rowblit,x + sta 100*ROW_STRIDE + rowBlit,x lsr - sta 101*15+rowblit,x - sta 102*15+rowblit,x - lda (pshape),y + sta 101*ROW_STRIDE + rowBlit,x + sta 102*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_103ro e_100orooo: - sta 100*15+rowblit,x - sta 101*15+rowblit,x + sta 100*ROW_STRIDE + rowBlit,x + sta 101*ROW_STRIDE + rowBlit,x lsr bra e_102oo e_100otooo: - sta 100*15+rowblit,x - sta 101*15+rowblit,x - lda (pshape),y + sta 100*ROW_STRIDE + rowBlit,x + sta 101*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_102oo: - sta 102*15+rowblit,x - sta 103*15+rowblit,x - sta 104*15+rowblit,x + sta 102*ROW_STRIDE + rowBlit,x + sta 103*ROW_STRIDE + rowBlit,x + sta 104*ROW_STRIDE + rowBlit,x rts e_r100otooo: @@ -2875,31 +2883,31 @@ e_r100otooo: bra e_100otooo e_105otooo: - sta 105*15+rowblit,x - sta 106*15+rowblit,x - lda (pshape),y + sta 105*ROW_STRIDE + rowBlit,x + sta 106*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_107oo: - sta 107*15+rowblit,x - sta 108*15+rowblit,x - sta 109*15+rowblit,x + sta 107*ROW_STRIDE + rowBlit,x + sta 108*ROW_STRIDE + rowBlit,x + sta 109*ROW_STRIDE + rowBlit,x rts e_115orooo: - sta 115*15+rowblit,x - sta 116*15+rowblit,x + sta 115*ROW_STRIDE + rowBlit,x + sta 116*ROW_STRIDE + rowBlit,x lsr bra e_117oo e_115otooo: - sta 115*15+rowblit,x - sta 116*15+rowblit,x - lda (pshape),y + sta 115*ROW_STRIDE + rowBlit,x + sta 116*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_117oo: - sta 117*15+rowblit,x - sta 118*15+rowblit,x - sta 119*15+rowblit,x + sta 117*ROW_STRIDE + rowBlit,x + sta 118*ROW_STRIDE + rowBlit,x + sta 119*ROW_STRIDE + rowBlit,x rts e_r115otooo: @@ -2907,20 +2915,20 @@ e_r115otooo: bra e_115otooo e_125orooo: - sta 125*15+rowblit,x - sta 126*15+rowblit,x + sta 125*ROW_STRIDE + rowBlit,x + sta 126*ROW_STRIDE + rowBlit,x lsr bra e_127oo e_125otooo: - sta 125*15+rowblit,x - sta 126*15+rowblit,x - lda (pshape),y + sta 125*ROW_STRIDE + rowBlit,x + sta 126*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_127oo: - sta 127*15+rowblit,x - sta 128*15+rowblit,x - sta 129*15+rowblit,x + sta 127*ROW_STRIDE + rowBlit,x + sta 128*ROW_STRIDE + rowBlit,x + sta 129*ROW_STRIDE + rowBlit,x rts e_r125otooo: @@ -2928,20 +2936,20 @@ e_r125otooo: bra e_125otooo e_15orooo: - sta 15*15+rowblit,x - sta 16*15+rowblit,x + sta 15*ROW_STRIDE + rowBlit,x + sta 16*ROW_STRIDE + rowBlit,x lsr bra e_17oo e_15otooo: - sta 15*15+rowblit,x - sta 16*15+rowblit,x - lda (pshape),y + sta 15*ROW_STRIDE + rowBlit,x + sta 16*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_17oo: - sta 17*15+rowblit,x - sta 18*15+rowblit,x - sta 19*15+rowblit,x + sta 17*ROW_STRIDE + rowBlit,x + sta 18*ROW_STRIDE + rowBlit,x + sta 19*ROW_STRIDE + rowBlit,x rts e_r15otooo: @@ -2950,46 +2958,46 @@ e_r15otooo: e_r30ootoo: lsr - sta 30*15+rowblit,x + sta 30*ROW_STRIDE + rowBlit,x bra e_31otoo e_30rootoo: - sta 30*15+rowblit,x + sta 30*ROW_STRIDE + rowBlit,x lsr e_31otoo: - sta 31*15+rowblit,x + sta 31*ROW_STRIDE + rowBlit,x e_32too: - sta 32*15+rowblit,x + sta 32*ROW_STRIDE + rowBlit,x e_t33o: - lda (pshape),y + lda (pTex),y iny - sta 33*15+rowblit,x - sta 34*15+rowblit,x + sta 33*ROW_STRIDE + rowBlit,x + sta 34*ROW_STRIDE + rowBlit,x rts e_t30orotoo: - lda (pshape),y + lda (pTex),y iny - sta 30*15+rowblit,x - sta 31*15+rowblit,x + sta 30*ROW_STRIDE + rowBlit,x + sta 31*ROW_STRIDE + rowBlit,x lsr bra e_32too e_55orooo: - sta 55*15+rowblit,x - sta 56*15+rowblit,x + sta 55*ROW_STRIDE + rowBlit,x + sta 56*ROW_STRIDE + rowBlit,x lsr bra e_57oo e_55otooo: - sta 55*15+rowblit,x - sta 56*15+rowblit,x - lda (pshape),y + sta 55*ROW_STRIDE + rowBlit,x + sta 56*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_57oo: - sta 57*15+rowblit,x - sta 58*15+rowblit,x - sta 59*15+rowblit,x + sta 57*ROW_STRIDE + rowBlit,x + sta 58*ROW_STRIDE + rowBlit,x + sta 59*ROW_STRIDE + rowBlit,x rts e_r55otooo: @@ -2997,20 +3005,20 @@ e_r55otooo: bra e_55otooo e_70orooo: - sta 70*15+rowblit,x - sta 71*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x + sta 71*ROW_STRIDE + rowBlit,x lsr bra e_72oo e_70otooo: - sta 70*15+rowblit,x - sta 71*15+rowblit,x - lda (pshape),y + sta 70*ROW_STRIDE + rowBlit,x + sta 71*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_72oo: - sta 72*15+rowblit,x - sta 73*15+rowblit,x - sta 74*15+rowblit,x + sta 72*ROW_STRIDE + rowBlit,x + sta 73*ROW_STRIDE + rowBlit,x + sta 74*ROW_STRIDE + rowBlit,x rts e_r70otooo: @@ -3018,47 +3026,47 @@ e_r70otooo: bra e_70otooo e_80orooo: - sta 80*15+rowblit,x - sta 81*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x + sta 81*ROW_STRIDE + rowBlit,x lsr bra e_82oo e_80otooo: - sta 80*15+rowblit,x - sta 81*15+rowblit,x - lda (pshape),y + sta 80*ROW_STRIDE + rowBlit,x + sta 81*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_82oo: - sta 82*15+rowblit,x - sta 83*15+rowblit,x - sta 84*15+rowblit,x + sta 82*ROW_STRIDE + rowBlit,x + sta 83*ROW_STRIDE + rowBlit,x + sta 84*ROW_STRIDE + rowBlit,x rts e_140ootoo: - sta 140*15+rowblit,x + sta 140*ROW_STRIDE + rowBlit,x e_141otoo: - sta 141*15+rowblit,x - sta 142*15+rowblit,x - lda (pshape),y + sta 141*ROW_STRIDE + rowBlit,x + sta 142*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 143*15+rowblit,x - sta 144*15+rowblit,x + sta 143*ROW_STRIDE + rowBlit,x + sta 144*ROW_STRIDE + rowBlit,x rts e_65rootoo: - sta 65*15+rowblit,x + sta 65*ROW_STRIDE + rowBlit,x lsr bra e_66otoo e_65ootoo: - sta 65*15+rowblit,x + sta 65*ROW_STRIDE + rowBlit,x e_66otoo: - sta 66*15+rowblit,x - sta 67*15+rowblit,x - lda (pshape),y + sta 66*ROW_STRIDE + rowBlit,x + sta 67*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 68*15+rowblit,x - sta 69*15+rowblit,x + sta 68*ROW_STRIDE + rowBlit,x + sta 69*ROW_STRIDE + rowBlit,x rts e_r65ootoo: @@ -3066,283 +3074,283 @@ e_r65ootoo: bra e_65ootoo e_10otooo: - sta 10*15+rowblit,x - sta 11*15+rowblit,x - lda (pshape),y + sta 10*ROW_STRIDE + rowBlit,x + sta 11*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_12oo e_10orooo: - sta 10*15+rowblit,x - sta 11*15+rowblit,x + sta 10*ROW_STRIDE + rowBlit,x + sta 11*ROW_STRIDE + rowBlit,x lsr e_12oo: - sta 12*15+rowblit,x - sta 13*15+rowblit,x - sta 14*15+rowblit,x + sta 12*ROW_STRIDE + rowBlit,x + sta 13*ROW_STRIDE + rowBlit,x + sta 14*ROW_STRIDE + rowBlit,x rts e_30otooo: - sta 30*15+rowblit,x - sta 31*15+rowblit,x - lda (pshape),y + sta 30*ROW_STRIDE + rowBlit,x + sta 31*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_32oo e_30orooo: - sta 30*15+rowblit,x - sta 31*15+rowblit,x + sta 30*ROW_STRIDE + rowBlit,x + sta 31*ROW_STRIDE + rowBlit,x lsr e_32oo: - sta 32*15+rowblit,x - sta 33*15+rowblit,x - sta 34*15+rowblit,x + sta 32*ROW_STRIDE + rowBlit,x + sta 33*ROW_STRIDE + rowBlit,x + sta 34*ROW_STRIDE + rowBlit,x rts e_10roooto: - sta 10*15+rowblit,x + sta 10*ROW_STRIDE + rowBlit,x lsr - sta 11*15+rowblit,x + sta 11*ROW_STRIDE + rowBlit,x bra e_12oto e_10orooto: - sta 10*15+rowblit,x - sta 11*15+rowblit,x + sta 10*ROW_STRIDE + rowBlit,x + sta 11*ROW_STRIDE + rowBlit,x lsr e_12oto: - sta 12*15+rowblit,x - sta 13*15+rowblit,x - lda (pshape),y + sta 12*ROW_STRIDE + rowBlit,x + sta 13*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 14*15+rowblit,x + sta 14*ROW_STRIDE + rowBlit,x rts e_t10orooto: - lda (pshape),y + lda (pTex),y iny bra e_10orooto e_110rotooro: - sta 110*15+rowblit,x + sta 110*ROW_STRIDE + rowBlit,x lsr e_111tooro: - sta 111*15+rowblit,x - lda (pshape),y + sta 111*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_112oro: - sta 112*15+rowblit,x + sta 112*ROW_STRIDE + rowBlit,x e_113ro: - sta 113*15+rowblit,x + sta 113*ROW_STRIDE + rowBlit,x lsr - sta 114*15+rowblit,x + sta 114*ROW_STRIDE + rowBlit,x rts e_110toooro: - sta 110*15+rowblit,x - lda (pshape),y + sta 110*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 111*15+rowblit,x + sta 111*ROW_STRIDE + rowBlit,x bra e_112oro e_r110otooro: lsr - sta 110*15+rowblit,x + sta 110*ROW_STRIDE + rowBlit,x bra e_111tooro e_115roooto: - sta 115*15+rowblit,x + sta 115*ROW_STRIDE + rowBlit,x lsr - sta 116*15+rowblit,x + sta 116*ROW_STRIDE + rowBlit,x bra e_117oto e_115orooto: - sta 115*15+rowblit,x - sta 116*15+rowblit,x + sta 115*ROW_STRIDE + rowBlit,x + sta 116*ROW_STRIDE + rowBlit,x lsr e_117oto: - sta 117*15+rowblit,x - sta 118*15+rowblit,x - lda (pshape),y + sta 117*ROW_STRIDE + rowBlit,x + sta 118*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 119*15+rowblit,x + sta 119*ROW_STRIDE + rowBlit,x rts e_t115orooto: - lda (pshape),y + lda (pTex),y iny bra e_115orooto e_t10ooroo: - lda (pshape),y + lda (pTex),y iny - sta 10*15+rowblit,x + sta 10*ROW_STRIDE + rowBlit,x bra e_11oroo e_10tooroo: - sta 10*15+rowblit,x + sta 10*ROW_STRIDE + rowBlit,x e_t11oroo: - lda (pshape),y + lda (pTex),y iny e_11oroo: - sta 11*15+rowblit,x - sta 12*15+rowblit,x + sta 11*ROW_STRIDE + rowBlit,x + sta 12*ROW_STRIDE + rowBlit,x lsr - sta 13*15+rowblit,x - sta 14*15+rowblit,x + sta 13*ROW_STRIDE + rowBlit,x + sta 14*ROW_STRIDE + rowBlit,x rts e_120ooroo: - sta 120*15+rowblit,x + sta 120*ROW_STRIDE + rowBlit,x e_121oroo: - sta 121*15+rowblit,x - sta 122*15+rowblit,x + sta 121*ROW_STRIDE + rowBlit,x + sta 122*ROW_STRIDE + rowBlit,x lsr - sta 123*15+rowblit,x - sta 124*15+rowblit,x + sta 123*ROW_STRIDE + rowBlit,x + sta 124*ROW_STRIDE + rowBlit,x rts e_t120ooroo: - lda (pshape),y + lda (pTex),y iny bra e_120ooroo e_t5ooroo: - lda (pshape),y + lda (pTex),y iny - sta 5*15+rowblit,x + sta 5*ROW_STRIDE + rowBlit,x bra e_6oroo e_5tooroo: - sta 5*15+rowblit,x + sta 5*ROW_STRIDE + rowBlit,x e_t6oroo: - lda (pshape),y + lda (pTex),y iny e_6oroo: - sta 6*15+rowblit,x - sta 7*15+rowblit,x + sta 6*ROW_STRIDE + rowBlit,x + sta 7*ROW_STRIDE + rowBlit,x lsr - sta 8*15+rowblit,x - sta 9*15+rowblit,x + sta 8*ROW_STRIDE + rowBlit,x + sta 9*ROW_STRIDE + rowBlit,x rts e_r60otooro: lsr - sta 60*15+rowblit,x - sta 61*15+rowblit,x - lda (pshape),y + sta 60*ROW_STRIDE + rowBlit,x + sta 61*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_62oro e_60toooro: - sta 60*15+rowblit,x - lda (pshape),y + sta 60*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_61ooro: - sta 61*15+rowblit,x + sta 61*ROW_STRIDE + rowBlit,x e_62oro: - sta 62*15+rowblit,x + sta 62*ROW_STRIDE + rowBlit,x e_63ro: - sta 63*15+rowblit,x + sta 63*ROW_STRIDE + rowBlit,x lsr - sta 64*15+rowblit,x + sta 64*ROW_STRIDE + rowBlit,x rts e_r100ootoo: lsr - sta 100*15+rowblit,x + sta 100*ROW_STRIDE + rowBlit,x bra e_101otoo e_100rootoo: - sta 100*15+rowblit,x + sta 100*ROW_STRIDE + rowBlit,x lsr e_101otoo: - sta 101*15+rowblit,x + sta 101*ROW_STRIDE + rowBlit,x e_102too: - sta 102*15+rowblit,x - lda (pshape),y + sta 102*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 103*15+rowblit,x - sta 104*15+rowblit,x + sta 103*ROW_STRIDE + rowBlit,x + sta 104*ROW_STRIDE + rowBlit,x rts e_t100orotoo: - lda (pshape),y + lda (pTex),y iny - sta 100*15+rowblit,x - sta 101*15+rowblit,x + sta 100*ROW_STRIDE + rowBlit,x + sta 101*ROW_STRIDE + rowBlit,x lsr bra e_102too e_r105ootoo: lsr - sta 105*15+rowblit,x + sta 105*ROW_STRIDE + rowBlit,x bra e_106otoo e_105rootoo: - sta 105*15+rowblit,x + sta 105*ROW_STRIDE + rowBlit,x lsr e_106otoo: - sta 106*15+rowblit,x + sta 106*ROW_STRIDE + rowBlit,x e_107too: - sta 107*15+rowblit,x - lda (pshape),y + sta 107*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 108*15+rowblit,x - sta 109*15+rowblit,x + sta 108*ROW_STRIDE + rowBlit,x + sta 109*ROW_STRIDE + rowBlit,x rts e_t105orotoo: - lda (pshape),y + lda (pTex),y iny - sta 105*15+rowblit,x - sta 106*15+rowblit,x + sta 105*ROW_STRIDE + rowBlit,x + sta 106*ROW_STRIDE + rowBlit,x lsr bra e_107too e_120otooo: - sta 120*15+rowblit,x - sta 121*15+rowblit,x - lda (pshape),y + sta 120*ROW_STRIDE + rowBlit,x + sta 121*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_122oo: - sta 122*15+rowblit,x - sta 123*15+rowblit,x - sta 124*15+rowblit,x + sta 122*ROW_STRIDE + rowBlit,x + sta 123*ROW_STRIDE + rowBlit,x + sta 124*ROW_STRIDE + rowBlit,x rts e_125roooto: - sta 125*15+rowblit,x + sta 125*ROW_STRIDE + rowBlit,x lsr e_126ooto: - sta 126*15+rowblit,x + sta 126*ROW_STRIDE + rowBlit,x e_127oto: - sta 127*15+rowblit,x - sta 128*15+rowblit,x - lda (pshape),y + sta 127*ROW_STRIDE + rowBlit,x + sta 128*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 129*15+rowblit,x + sta 129*ROW_STRIDE + rowBlit,x rts e_140otooo: - sta 140*15+rowblit,x - sta 141*15+rowblit,x - lda (pshape),y + sta 140*ROW_STRIDE + rowBlit,x + sta 141*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_142oo: - sta 142*15+rowblit,x - sta 143*15+rowblit,x - sta 144*15+rowblit,x + sta 142*ROW_STRIDE + rowBlit,x + sta 143*ROW_STRIDE + rowBlit,x + sta 144*ROW_STRIDE + rowBlit,x rts e_35otooo: - sta 35*15+rowblit,x - sta 36*15+rowblit,x - lda (pshape),y + sta 35*ROW_STRIDE + rowBlit,x + sta 36*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_37oo: - sta 37*15+rowblit,x - sta 38*15+rowblit,x - sta 39*15+rowblit,x + sta 37*ROW_STRIDE + rowBlit,x + sta 38*ROW_STRIDE + rowBlit,x + sta 39*ROW_STRIDE + rowBlit,x rts e_r35otooo: @@ -3350,42 +3358,42 @@ e_r35otooo: bra e_35otooo e_40otooo: - sta 40*15+rowblit,x - sta 41*15+rowblit,x - lda (pshape),y + sta 40*ROW_STRIDE + rowBlit,x + sta 41*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_42oo: - sta 42*15+rowblit,x - sta 43*15+rowblit,x - sta 44*15+rowblit,x + sta 42*ROW_STRIDE + rowBlit,x + sta 43*ROW_STRIDE + rowBlit,x + sta 44*ROW_STRIDE + rowBlit,x rts e_45orooo: - sta 45*15+rowblit,x - sta 46*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x + sta 46*ROW_STRIDE + rowBlit,x lsr bra e_47oo e_45otooo: - sta 45*15+rowblit,x - sta 46*15+rowblit,x - lda (pshape),y + sta 45*ROW_STRIDE + rowBlit,x + sta 46*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_47oo: - sta 47*15+rowblit,x - sta 48*15+rowblit,x - sta 49*15+rowblit,x + sta 47*ROW_STRIDE + rowBlit,x + sta 48*ROW_STRIDE + rowBlit,x + sta 49*ROW_STRIDE + rowBlit,x rts e_75otooo: - sta 75*15+rowblit,x - sta 76*15+rowblit,x - lda (pshape),y + sta 75*ROW_STRIDE + rowBlit,x + sta 76*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_77oo: - sta 77*15+rowblit,x - sta 78*15+rowblit,x - sta 79*15+rowblit,x + sta 77*ROW_STRIDE + rowBlit,x + sta 78*ROW_STRIDE + rowBlit,x + sta 79*ROW_STRIDE + rowBlit,x rts e_r75otooo: @@ -3394,654 +3402,654 @@ e_r75otooo: e_r10ootoo: lsr - sta 10*15+rowblit,x + sta 10*ROW_STRIDE + rowBlit,x bra e_11otoo e_10rootoo: - sta 10*15+rowblit,x + sta 10*ROW_STRIDE + rowBlit,x lsr e_11otoo: - sta 11*15+rowblit,x - sta 12*15+rowblit,x + sta 11*ROW_STRIDE + rowBlit,x + sta 12*ROW_STRIDE + rowBlit,x e_t13o: - lda (pshape),y + lda (pTex),y iny - sta 13*15+rowblit,x - sta 14*15+rowblit,x + sta 13*ROW_STRIDE + rowBlit,x + sta 14*ROW_STRIDE + rowBlit,x rts e_5rootoo: - sta 5*15+rowblit,x + sta 5*ROW_STRIDE + rowBlit,x lsr bra e_6otoo e_5ootoo: - sta 5*15+rowblit,x + sta 5*ROW_STRIDE + rowBlit,x e_6otoo: - sta 6*15+rowblit,x - sta 7*15+rowblit,x + sta 6*ROW_STRIDE + rowBlit,x + sta 7*ROW_STRIDE + rowBlit,x e_t8o: - lda (pshape),y + lda (pTex),y iny - sta 8*15+rowblit,x - sta 9*15+rowblit,x + sta 8*ROW_STRIDE + rowBlit,x + sta 9*ROW_STRIDE + rowBlit,x rts e_r115otooro: lsr - sta 115*15+rowblit,x - sta 116*15+rowblit,x - lda (pshape),y + sta 115*ROW_STRIDE + rowBlit,x + sta 116*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_117oro e_115toooro: - sta 115*15+rowblit,x - lda (pshape),y + sta 115*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_116ooro: - sta 116*15+rowblit,x + sta 116*ROW_STRIDE + rowBlit,x e_117oro: - sta 117*15+rowblit,x - sta 118*15+rowblit,x + sta 117*ROW_STRIDE + rowBlit,x + sta 118*ROW_STRIDE + rowBlit,x lsr - sta 119*15+rowblit,x + sta 119*ROW_STRIDE + rowBlit,x rts e_r120otooro: lsr - sta 120*15+rowblit,x - sta 121*15+rowblit,x - lda (pshape),y + sta 120*ROW_STRIDE + rowBlit,x + sta 121*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_122oro e_120toooro: - sta 120*15+rowblit,x - lda (pshape),y + sta 120*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_121ooro: - sta 121*15+rowblit,x + sta 121*ROW_STRIDE + rowBlit,x e_122oro: - sta 122*15+rowblit,x - sta 123*15+rowblit,x + sta 122*ROW_STRIDE + rowBlit,x + sta 123*ROW_STRIDE + rowBlit,x lsr - sta 124*15+rowblit,x + sta 124*ROW_STRIDE + rowBlit,x rts e_135toooro: - sta 135*15+rowblit,x - lda (pshape),y + sta 135*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_136ooro: - sta 136*15+rowblit,x + sta 136*ROW_STRIDE + rowBlit,x e_137oro: - sta 137*15+rowblit,x - sta 138*15+rowblit,x + sta 137*ROW_STRIDE + rowBlit,x + sta 138*ROW_STRIDE + rowBlit,x lsr - sta 139*15+rowblit,x + sta 139*ROW_STRIDE + rowBlit,x rts e_t135oooro: - lda (pshape),y + lda (pTex),y iny - sta 135*15+rowblit,x + sta 135*ROW_STRIDE + rowBlit,x bra e_136ooro e_65rotoroo: - sta 65*15+rowblit,x + sta 65*ROW_STRIDE + rowBlit,x lsr - sta 66*15+rowblit,x - lda (pshape),y + sta 66*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_67roo e_65tooroo: - sta 65*15+rowblit,x - lda (pshape),y + sta 65*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_66oroo: - sta 66*15+rowblit,x + sta 66*ROW_STRIDE + rowBlit,x e_67roo: - sta 67*15+rowblit,x + sta 67*ROW_STRIDE + rowBlit,x lsr - sta 68*15+rowblit,x - sta 69*15+rowblit,x + sta 68*ROW_STRIDE + rowBlit,x + sta 69*ROW_STRIDE + rowBlit,x rts e_t65ooroo: - lda (pshape),y + lda (pTex),y iny - sta 65*15+rowblit,x + sta 65*ROW_STRIDE + rowBlit,x bra e_66oroo e_75tooroo: - sta 75*15+rowblit,x - lda (pshape),y + sta 75*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_76oroo: - sta 76*15+rowblit,x + sta 76*ROW_STRIDE + rowBlit,x e_77roo: - sta 77*15+rowblit,x + sta 77*ROW_STRIDE + rowBlit,x lsr - sta 78*15+rowblit,x - sta 79*15+rowblit,x + sta 78*ROW_STRIDE + rowBlit,x + sta 79*ROW_STRIDE + rowBlit,x rts e_t75ooroo: - lda (pshape),y + lda (pTex),y iny - sta 75*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x bra e_76oroo e_10toooro: - sta 10*15+rowblit,x - lda (pshape),y + sta 10*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 11*15+rowblit,x + sta 11*ROW_STRIDE + rowBlit,x bra e_12oro e_r10otooro: lsr - sta 10*15+rowblit,x - sta 11*15+rowblit,x + sta 10*ROW_STRIDE + rowBlit,x + sta 11*ROW_STRIDE + rowBlit,x e_t12oro: - lda (pshape),y + lda (pTex),y iny e_12oro: - sta 12*15+rowblit,x - sta 13*15+rowblit,x + sta 12*ROW_STRIDE + rowBlit,x + sta 13*ROW_STRIDE + rowBlit,x lsr - sta 14*15+rowblit,x + sta 14*ROW_STRIDE + rowBlit,x rts e_5toooro: - sta 5*15+rowblit,x - lda (pshape),y + sta 5*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 6*15+rowblit,x + sta 6*ROW_STRIDE + rowBlit,x bra e_7oro e_r5otooro: lsr - sta 5*15+rowblit,x - sta 6*15+rowblit,x + sta 5*ROW_STRIDE + rowBlit,x + sta 6*ROW_STRIDE + rowBlit,x e_t7oro: - lda (pshape),y + lda (pTex),y iny e_7oro: - sta 7*15+rowblit,x - sta 8*15+rowblit,x + sta 7*ROW_STRIDE + rowBlit,x + sta 8*ROW_STRIDE + rowBlit,x lsr - sta 9*15+rowblit,x + sta 9*ROW_STRIDE + rowBlit,x rts e_110tooroto: - sta 110*15+rowblit,x - lda (pshape),y + sta 110*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 111*15+rowblit,x - sta 112*15+rowblit,x + sta 111*ROW_STRIDE + rowBlit,x + sta 112*ROW_STRIDE + rowBlit,x lsr bra e_113to e_110roooto: - sta 110*15+rowblit,x + sta 110*ROW_STRIDE + rowBlit,x lsr - sta 111*15+rowblit,x + sta 111*ROW_STRIDE + rowBlit,x e_112oto: - sta 112*15+rowblit,x + sta 112*ROW_STRIDE + rowBlit,x e_113to: - sta 113*15+rowblit,x - lda (pshape),y + sta 113*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 114*15+rowblit,x + sta 114*ROW_STRIDE + rowBlit,x rts e_t110orooto: - lda (pshape),y + lda (pTex),y iny - sta 110*15+rowblit,x - sta 111*15+rowblit,x + sta 110*ROW_STRIDE + rowBlit,x + sta 111*ROW_STRIDE + rowBlit,x lsr bra e_112oto e_155roooo: - sta 155*15+rowblit,x + sta 155*ROW_STRIDE + rowBlit,x lsr e_156ooo: - sta 156*15+rowblit,x + sta 156*ROW_STRIDE + rowBlit,x e_157oo: - sta 157*15+rowblit,x - sta 158*15+rowblit,x - sta 159*15+rowblit,x + sta 157*ROW_STRIDE + rowBlit,x + sta 158*ROW_STRIDE + rowBlit,x + sta 159*ROW_STRIDE + rowBlit,x rts e_50otooo: - sta 50*15+rowblit,x - sta 51*15+rowblit,x - lda (pshape),y + sta 50*ROW_STRIDE + rowBlit,x + sta 51*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_52oo e_50roooo: - sta 50*15+rowblit,x + sta 50*ROW_STRIDE + rowBlit,x lsr e_51ooo: - sta 51*15+rowblit,x + sta 51*ROW_STRIDE + rowBlit,x e_52oo: - sta 52*15+rowblit,x - sta 53*15+rowblit,x - sta 54*15+rowblit,x + sta 52*ROW_STRIDE + rowBlit,x + sta 53*ROW_STRIDE + rowBlit,x + sta 54*ROW_STRIDE + rowBlit,x rts e_65roooto: - sta 65*15+rowblit,x + sta 65*ROW_STRIDE + rowBlit,x lsr - sta 66*15+rowblit,x + sta 66*ROW_STRIDE + rowBlit,x bra e_67oto e_65orooto: - sta 65*15+rowblit,x - sta 66*15+rowblit,x + sta 65*ROW_STRIDE + rowBlit,x + sta 66*ROW_STRIDE + rowBlit,x lsr e_67oto: - sta 67*15+rowblit,x + sta 67*ROW_STRIDE + rowBlit,x e_68to: - sta 68*15+rowblit,x - lda (pshape),y + sta 68*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 69*15+rowblit,x + sta 69*ROW_STRIDE + rowBlit,x rts e_65rotoroto: - sta 65*15+rowblit,x + sta 65*ROW_STRIDE + rowBlit,x lsr - sta 66*15+rowblit,x - lda (pshape),y + sta 66*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 67*15+rowblit,x + sta 67*ROW_STRIDE + rowBlit,x lsr bra e_68to e_150ootoo: - sta 150*15+rowblit,x - sta 151*15+rowblit,x - sta 152*15+rowblit,x - lda (pshape),y + sta 150*ROW_STRIDE + rowBlit,x + sta 151*ROW_STRIDE + rowBlit,x + sta 152*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 153*15+rowblit,x - sta 154*15+rowblit,x + sta 153*ROW_STRIDE + rowBlit,x + sta 154*ROW_STRIDE + rowBlit,x rts e_160ootoo: - sta 160*15+rowblit,x - sta 161*15+rowblit,x - sta 162*15+rowblit,x - lda (pshape),y + sta 160*ROW_STRIDE + rowBlit,x + sta 161*ROW_STRIDE + rowBlit,x + sta 162*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 163*15+rowblit,x - sta 164*15+rowblit,x + sta 163*ROW_STRIDE + rowBlit,x + sta 164*ROW_STRIDE + rowBlit,x rts e_125ooroo: - sta 125*15+rowblit,x - sta 126*15+rowblit,x - sta 127*15+rowblit,x + sta 125*ROW_STRIDE + rowBlit,x + sta 126*ROW_STRIDE + rowBlit,x + sta 127*ROW_STRIDE + rowBlit,x lsr - sta 128*15+rowblit,x - sta 129*15+rowblit,x + sta 128*ROW_STRIDE + rowBlit,x + sta 129*ROW_STRIDE + rowBlit,x rts e_t125ooroo: - lda (pshape),y + lda (pTex),y iny bra e_125ooroo e_135otooo: - sta 135*15+rowblit,x - sta 136*15+rowblit,x - lda (pshape),y + sta 135*ROW_STRIDE + rowBlit,x + sta 136*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_137oo e_135orooo: - sta 135*15+rowblit,x - sta 136*15+rowblit,x + sta 135*ROW_STRIDE + rowBlit,x + sta 136*ROW_STRIDE + rowBlit,x lsr e_137oo: - sta 137*15+rowblit,x - sta 138*15+rowblit,x - sta 139*15+rowblit,x + sta 137*ROW_STRIDE + rowBlit,x + sta 138*ROW_STRIDE + rowBlit,x + sta 139*ROW_STRIDE + rowBlit,x rts e_160orooo: - sta 160*15+rowblit,x - sta 161*15+rowblit,x + sta 160*ROW_STRIDE + rowBlit,x + sta 161*ROW_STRIDE + rowBlit,x lsr e_162oo: - sta 162*15+rowblit,x - sta 163*15+rowblit,x - sta 164*15+rowblit,x + sta 162*ROW_STRIDE + rowBlit,x + sta 163*ROW_STRIDE + rowBlit,x + sta 164*ROW_STRIDE + rowBlit,x rts e_65orooo: - sta 65*15+rowblit,x - sta 66*15+rowblit,x + sta 65*ROW_STRIDE + rowBlit,x + sta 66*ROW_STRIDE + rowBlit,x lsr e_67oo: - sta 67*15+rowblit,x - sta 68*15+rowblit,x - sta 69*15+rowblit,x + sta 67*ROW_STRIDE + rowBlit,x + sta 68*ROW_STRIDE + rowBlit,x + sta 69*ROW_STRIDE + rowBlit,x rts e_85otooo: - sta 85*15+rowblit,x - sta 86*15+rowblit,x - lda (pshape),y + sta 85*ROW_STRIDE + rowBlit,x + sta 86*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_87oo e_85orooo: - sta 85*15+rowblit,x - sta 86*15+rowblit,x + sta 85*ROW_STRIDE + rowBlit,x + sta 86*ROW_STRIDE + rowBlit,x lsr e_87oo: - sta 87*15+rowblit,x - sta 88*15+rowblit,x - sta 89*15+rowblit,x + sta 87*ROW_STRIDE + rowBlit,x + sta 88*ROW_STRIDE + rowBlit,x + sta 89*ROW_STRIDE + rowBlit,x rts e_115rootoo: - sta 115*15+rowblit,x + sta 115*ROW_STRIDE + rowBlit,x lsr e_116otoo: - sta 116*15+rowblit,x - sta 117*15+rowblit,x - lda (pshape),y + sta 116*ROW_STRIDE + rowBlit,x + sta 117*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 118*15+rowblit,x - sta 119*15+rowblit,x + sta 118*ROW_STRIDE + rowBlit,x + sta 119*ROW_STRIDE + rowBlit,x rts e_125ootoo: - sta 125*15+rowblit,x + sta 125*ROW_STRIDE + rowBlit,x e_126otoo: - sta 126*15+rowblit,x - sta 127*15+rowblit,x - lda (pshape),y + sta 126*ROW_STRIDE + rowBlit,x + sta 127*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 128*15+rowblit,x - sta 129*15+rowblit,x + sta 128*ROW_STRIDE + rowBlit,x + sta 129*ROW_STRIDE + rowBlit,x rts e_125rootoo: - sta 125*15+rowblit,x + sta 125*ROW_STRIDE + rowBlit,x lsr bra e_126otoo e_130rootoo: - sta 130*15+rowblit,x + sta 130*ROW_STRIDE + rowBlit,x lsr e_131otoo: - sta 131*15+rowblit,x - sta 132*15+rowblit,x - lda (pshape),y + sta 131*ROW_STRIDE + rowBlit,x + sta 132*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 133*15+rowblit,x - sta 134*15+rowblit,x + sta 133*ROW_STRIDE + rowBlit,x + sta 134*ROW_STRIDE + rowBlit,x rts e_r130ootoo: lsr - sta 130*15+rowblit,x + sta 130*ROW_STRIDE + rowBlit,x bra e_131otoo e_135rootoo: - sta 135*15+rowblit,x + sta 135*ROW_STRIDE + rowBlit,x lsr e_136otoo: - sta 136*15+rowblit,x - sta 137*15+rowblit,x - lda (pshape),y + sta 136*ROW_STRIDE + rowBlit,x + sta 137*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 138*15+rowblit,x - sta 139*15+rowblit,x + sta 138*ROW_STRIDE + rowBlit,x + sta 139*ROW_STRIDE + rowBlit,x rts e_r135ootoo: lsr - sta 135*15+rowblit,x + sta 135*ROW_STRIDE + rowBlit,x bra e_136otoo e_60rootoo: - sta 60*15+rowblit,x + sta 60*ROW_STRIDE + rowBlit,x lsr e_61otoo: - sta 61*15+rowblit,x - sta 62*15+rowblit,x - lda (pshape),y + sta 61*ROW_STRIDE + rowBlit,x + sta 62*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 63*15+rowblit,x - sta 64*15+rowblit,x + sta 63*ROW_STRIDE + rowBlit,x + sta 64*ROW_STRIDE + rowBlit,x rts e_r60ootoo: lsr - sta 60*15+rowblit,x + sta 60*ROW_STRIDE + rowBlit,x bra e_61otoo e_115tooroo: - sta 115*15+rowblit,x - lda (pshape),y + sta 115*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_116oroo: - sta 116*15+rowblit,x - sta 117*15+rowblit,x + sta 116*ROW_STRIDE + rowBlit,x + sta 117*ROW_STRIDE + rowBlit,x lsr - sta 118*15+rowblit,x - sta 119*15+rowblit,x + sta 118*ROW_STRIDE + rowBlit,x + sta 119*ROW_STRIDE + rowBlit,x rts e_t115ooroo: - lda (pshape),y + lda (pTex),y iny - sta 115*15+rowblit,x + sta 115*ROW_STRIDE + rowBlit,x bra e_116oroo e_125toooro: - sta 125*15+rowblit,x - lda (pshape),y + sta 125*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_126ooro: - sta 126*15+rowblit,x - sta 127*15+rowblit,x - sta 128*15+rowblit,x + sta 126*ROW_STRIDE + rowBlit,x + sta 127*ROW_STRIDE + rowBlit,x + sta 128*ROW_STRIDE + rowBlit,x lsr - sta 129*15+rowblit,x + sta 129*ROW_STRIDE + rowBlit,x rts e_130tooroo: - sta 130*15+rowblit,x - lda (pshape),y + sta 130*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_131oroo: - sta 131*15+rowblit,x - sta 132*15+rowblit,x + sta 131*ROW_STRIDE + rowBlit,x + sta 132*ROW_STRIDE + rowBlit,x lsr - sta 133*15+rowblit,x - sta 134*15+rowblit,x + sta 133*ROW_STRIDE + rowBlit,x + sta 134*ROW_STRIDE + rowBlit,x rts e_t130ooroo: - lda (pshape),y + lda (pTex),y iny - sta 130*15+rowblit,x + sta 130*ROW_STRIDE + rowBlit,x bra e_131oroo e_140toooro: - sta 140*15+rowblit,x - lda (pshape),y + sta 140*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_141ooro: - sta 141*15+rowblit,x - sta 142*15+rowblit,x - sta 143*15+rowblit,x + sta 141*ROW_STRIDE + rowBlit,x + sta 142*ROW_STRIDE + rowBlit,x + sta 143*ROW_STRIDE + rowBlit,x lsr - sta 144*15+rowblit,x + sta 144*ROW_STRIDE + rowBlit,x rts e_t140oooro: - lda (pshape),y + lda (pTex),y iny - sta 140*15+rowblit,x + sta 140*ROW_STRIDE + rowBlit,x bra e_141ooro e_155toooro: - sta 155*15+rowblit,x - lda (pshape),y + sta 155*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_156ooro: - sta 156*15+rowblit,x - sta 157*15+rowblit,x - sta 158*15+rowblit,x + sta 156*ROW_STRIDE + rowBlit,x + sta 157*ROW_STRIDE + rowBlit,x + sta 158*ROW_STRIDE + rowBlit,x lsr - sta 159*15+rowblit,x + sta 159*ROW_STRIDE + rowBlit,x rts e_60tooroo: - sta 60*15+rowblit,x - lda (pshape),y + sta 60*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_61oroo: - sta 61*15+rowblit,x - sta 62*15+rowblit,x + sta 61*ROW_STRIDE + rowBlit,x + sta 62*ROW_STRIDE + rowBlit,x lsr - sta 63*15+rowblit,x - sta 64*15+rowblit,x + sta 63*ROW_STRIDE + rowBlit,x + sta 64*ROW_STRIDE + rowBlit,x rts e_t60ooroo: - lda (pshape),y + lda (pTex),y iny - sta 60*15+rowblit,x + sta 60*ROW_STRIDE + rowBlit,x bra e_61oroo e_t0ooroo: - lda (pshape),y + lda (pTex),y iny - sta 0*15+rowblit,x + sta 0*ROW_STRIDE + rowBlit,x e_1oroo: - sta 1*15+rowblit,x - sta 2*15+rowblit,x + sta 1*ROW_STRIDE + rowBlit,x + sta 2*ROW_STRIDE + rowBlit,x lsr - sta 3*15+rowblit,x - sta 4*15+rowblit,x + sta 3*ROW_STRIDE + rowBlit,x + sta 4*ROW_STRIDE + rowBlit,x rts e_130otooro: - sta 130*15+rowblit,x - sta 131*15+rowblit,x - lda (pshape),y + sta 130*ROW_STRIDE + rowBlit,x + sta 131*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_132oro: - sta 132*15+rowblit,x - sta 133*15+rowblit,x + sta 132*ROW_STRIDE + rowBlit,x + sta 133*ROW_STRIDE + rowBlit,x lsr - sta 134*15+rowblit,x + sta 134*ROW_STRIDE + rowBlit,x rts e_t0oooro: - lda (pshape),y + lda (pTex),y iny - sta 0*15+rowblit,x - sta 1*15+rowblit,x + sta 0*ROW_STRIDE + rowBlit,x + sta 1*ROW_STRIDE + rowBlit,x e_2oro: - sta 2*15+rowblit,x - sta 3*15+rowblit,x + sta 2*ROW_STRIDE + rowBlit,x + sta 3*ROW_STRIDE + rowBlit,x lsr - sta 4*15+rowblit,x + sta 4*ROW_STRIDE + rowBlit,x rts e_110orooo: - sta 110*15+rowblit,x - sta 111*15+rowblit,x + sta 110*ROW_STRIDE + rowBlit,x + sta 111*ROW_STRIDE + rowBlit,x lsr e_112oo: - sta 112*15+rowblit,x - sta 113*15+rowblit,x - sta 114*15+rowblit,x + sta 112*ROW_STRIDE + rowBlit,x + sta 113*ROW_STRIDE + rowBlit,x + sta 114*ROW_STRIDE + rowBlit,x rts e_110otooo: - sta 110*15+rowblit,x - sta 111*15+rowblit,x - lda (pshape),y + sta 110*ROW_STRIDE + rowBlit,x + sta 111*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_112oo e_145orooo: - sta 145*15+rowblit,x - sta 146*15+rowblit,x + sta 145*ROW_STRIDE + rowBlit,x + sta 146*ROW_STRIDE + rowBlit,x lsr e_147oo: - sta 147*15+rowblit,x - sta 148*15+rowblit,x - sta 149*15+rowblit,x + sta 147*ROW_STRIDE + rowBlit,x + sta 148*ROW_STRIDE + rowBlit,x + sta 149*ROW_STRIDE + rowBlit,x rts e_145otooo: - sta 145*15+rowblit,x - sta 146*15+rowblit,x - lda (pshape),y + sta 145*ROW_STRIDE + rowBlit,x + sta 146*ROW_STRIDE + rowBlit,x + lda (pTex),y iny bra e_147oo e_165orooo: - sta 165*15+rowblit,x - sta 166*15+rowblit,x + sta 165*ROW_STRIDE + rowBlit,x + sta 166*ROW_STRIDE + rowBlit,x lsr e_167oo: - sta 167*15+rowblit,x - sta 168*15+rowblit,x - sta 169*15+rowblit,x + sta 167*ROW_STRIDE + rowBlit,x + sta 168*ROW_STRIDE + rowBlit,x + sta 169*ROW_STRIDE + rowBlit,x rts e_170orooo: - sta 170*15+rowblit,x - sta 171*15+rowblit,x + sta 170*ROW_STRIDE + rowBlit,x + sta 171*ROW_STRIDE + rowBlit,x lsr e_172oo: - sta 172*15+rowblit,x - sta 173*15+rowblit,x - sta 174*15+rowblit,x + sta 172*ROW_STRIDE + rowBlit,x + sta 173*ROW_STRIDE + rowBlit,x + sta 174*ROW_STRIDE + rowBlit,x rts e_5otooo: - sta 5*15+rowblit,x - sta 6*15+rowblit,x - lda (pshape),y + sta 5*ROW_STRIDE + rowBlit,x + sta 6*ROW_STRIDE + rowBlit,x + lda (pTex),y iny e_7oo: - sta 7*15+rowblit,x - sta 8*15+rowblit,x - sta 9*15+rowblit,x + sta 7*ROW_STRIDE + rowBlit,x + sta 8*ROW_STRIDE + rowBlit,x + sta 9*ROW_STRIDE + rowBlit,x rts e_95orooo: - sta 95*15+rowblit,x - sta 96*15+rowblit,x + sta 95*ROW_STRIDE + rowBlit,x + sta 96*ROW_STRIDE + rowBlit,x lsr e_97oo: - sta 97*15+rowblit,x - sta 98*15+rowblit,x - sta 99*15+rowblit,x + sta 97*ROW_STRIDE + rowBlit,x + sta 98*ROW_STRIDE + rowBlit,x + sta 99*ROW_STRIDE + rowBlit,x rts ; Produce 2 rows from 2 rows expand_2: - ldy #0 - lda (pshape),y + jsr selectMip5 + lda (pTex),y iny jsr e_63ro expand_0: @@ -4049,128 +4057,128 @@ expand_0: ; Produce 4 rows from 4 rows expand_4: - ldy #2 + jsr selectMip4 jsr e_t62roto lsr - sta 65*15+rowblit,x + sta 65*ROW_STRIDE + rowBlit,x rts ; Produce 6 rows from 4 rows expand_6: - ldy #2 - lda (pshape),y + jsr selectMip4 + lda (pTex),y iny - sta 61*15+rowblit,x + sta 61*ROW_STRIDE + rowBlit,x jsr e_62roto - sta 65*15+rowblit,x + sta 65*ROW_STRIDE + rowBlit,x lsr - sta 66*15+rowblit,x + sta 66*ROW_STRIDE + rowBlit,x rts ; Produce 8 rows from 8 rows expand_8: - ldy #6 + jsr selectMip3 jsr e_t60rotoroto lsr - sta 65*15+rowblit,x - lda (pshape),y + sta 65*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 66*15+rowblit,x + sta 66*ROW_STRIDE + rowBlit,x lsr - sta 67*15+rowblit,x + sta 67*ROW_STRIDE + rowBlit,x rts ; Produce 10 rows from 8 rows expand_10: - ldy #6 - lda (pshape),y + jsr selectMip3 + lda (pTex),y iny - sta 59*15+rowblit,x + sta 59*ROW_STRIDE + rowBlit,x jsr e_60rotoroto - sta 65*15+rowblit,x + sta 65*ROW_STRIDE + rowBlit,x lsr - sta 66*15+rowblit,x - lda (pshape),y + sta 66*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 67*15+rowblit,x + sta 67*ROW_STRIDE + rowBlit,x lsr - sta 68*15+rowblit,x + sta 68*ROW_STRIDE + rowBlit,x rts ; Produce 12 rows from 8 rows expand_12: - ldy #6 + jsr selectMip3 jsr e_t58o jsr e_r60tooroto jmp e_65rotooro ; Produce 14 rows from 8 rows expand_14: - ldy #6 + jsr selectMip3 jsr e_t57oro jsr e_60tooroto jsr e_65rootoo lsr - sta 70*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x rts ; Produce 16 rows from 16 rows expand_16: - ldy #14 - lda (pshape),y + jsr selectMip2 + lda (pTex),y iny - sta 56*15+rowblit,x + sta 56*ROW_STRIDE + rowBlit,x lsr - sta 57*15+rowblit,x - lda (pshape),y + sta 57*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_58ro jsr e_t60rotoroto jsr e_r65torotoro - lda (pshape),y + lda (pTex),y iny - sta 70*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x lsr - sta 71*15+rowblit,x + sta 71*ROW_STRIDE + rowBlit,x rts ; Produce 18 rows from 16 rows expand_18: - ldy #14 + jsr selectMip2 jsr e_t55orotoro jsr e_t60rotoroto jsr e_65rotoroto lsr - sta 70*15+rowblit,x - lda (pshape),y + sta 70*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 71*15+rowblit,x + sta 71*ROW_STRIDE + rowBlit,x lsr - sta 72*15+rowblit,x + sta 72*ROW_STRIDE + rowBlit,x rts ; Produce 20 rows from 16 rows expand_20: - ldy #14 - lda (pshape),y + jsr selectMip2 + lda (pTex),y iny - sta 54*15+rowblit,x + sta 54*ROW_STRIDE + rowBlit,x jsr e_55rotoroto jsr e_60rotoroto jsr e_65rotoroto - sta 70*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x lsr - sta 71*15+rowblit,x - lda (pshape),y + sta 71*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 72*15+rowblit,x + sta 72*ROW_STRIDE + rowBlit,x lsr - sta 73*15+rowblit,x + sta 73*ROW_STRIDE + rowBlit,x rts ; Produce 22 rows from 16 rows expand_22: - ldy #14 + jsr selectMip2 jsr e_t53o jsr e_r55tooroto jsr e_r60otoroto @@ -4179,71 +4187,71 @@ expand_22: ; Produce 24 rows from 16 rows expand_24: - ldy #14 + jsr selectMip2 jsr e_t52oro jsr e_t55orotoo jsr e_r60tooroto jsr e_65rotooro jsr e_t70orotoo lsr - sta 75*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x rts ; Produce 26 rows from 16 rows expand_26: - ldy #14 - lda (pshape),y + jsr selectMip2 + lda (pTex),y iny jsr e_51oroo jsr e_t55rootoo jsr e_r60tooroto jsr e_65rootoro jsr e_70tooroto - sta 75*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x lsr - sta 76*15+rowblit,x + sta 76*ROW_STRIDE + rowBlit,x rts ; Produce 28 rows from 16 rows expand_28: - ldy #14 + jsr selectMip2 jsr e_t50orooto jsr e_55rotooro jsr e_60tooroto jsr e_65rootoo jsr e_r70tooroo - lda (pshape),y + lda (pTex),y iny - sta 75*15+rowblit,x - sta 76*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x + sta 76*ROW_STRIDE + rowBlit,x lsr - sta 77*15+rowblit,x + sta 77*ROW_STRIDE + rowBlit,x rts ; Produce 30 rows from 16 rows expand_30: - ldy #14 - lda (pshape),y + jsr selectMip2 + lda (pTex),y iny - sta 49*15+rowblit,x + sta 49*ROW_STRIDE + rowBlit,x jsr e_50rootoo jsr e_r55otooro jsr e_60tooroto jsr e_65rootoo jsr e_r70otooro - sta 75*15+rowblit,x - lda (pshape),y + sta 75*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 76*15+rowblit,x - sta 77*15+rowblit,x + sta 76*ROW_STRIDE + rowBlit,x + sta 77*ROW_STRIDE + rowBlit,x lsr - sta 78*15+rowblit,x + sta 78*ROW_STRIDE + rowBlit,x rts ; Produce 32 rows from 32 rows expand_32: - ldy #30 - lda (pshape),y + jsr selectMip1 + lda (pTex),y iny jsr e_48ro jsr e_t50rotoroto @@ -4255,7 +4263,7 @@ expand_32: ; Produce 34 rows from 32 rows expand_34: - ldy #30 + jsr selectMip1 jsr e_t47oro jsr e_t50rotoroto jsr e_r55torotoro @@ -4264,15 +4272,15 @@ expand_34: jsr e_r70torotoro jsr e_t75rotoroto lsr - sta 80*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x rts ; Produce 36 rows from 32 rows expand_36: - ldy #30 - lda (pshape),y + jsr selectMip1 + lda (pTex),y iny - sta 46*15+rowblit,x + sta 46*ROW_STRIDE + rowBlit,x jsr e_47roto jsr e_r50torotoro jsr e_t55orotoro @@ -4280,16 +4288,16 @@ expand_36: jsr e_65rotoroto jsr e_r70torotoo jsr e_r75torotoro - lda (pshape),y + lda (pTex),y iny - sta 80*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x lsr - sta 81*15+rowblit,x + sta 81*ROW_STRIDE + rowBlit,x rts ; Produce 38 rows from 32 rows expand_38: - ldy #30 + jsr selectMip1 jsr e_t45orotoro jsr e_t50rootoro jsr e_t55rotooro @@ -4298,20 +4306,20 @@ expand_38: jsr e_r70otoroto jsr e_r75tooroto lsr - sta 80*15+rowblit,x - lda (pshape),y + sta 80*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 81*15+rowblit,x + sta 81*ROW_STRIDE + rowBlit,x lsr - sta 82*15+rowblit,x + sta 82*ROW_STRIDE + rowBlit,x rts ; Produce 40 rows from 32 rows expand_40: - ldy #30 - lda (pshape),y + jsr selectMip1 + lda (pTex),y iny - sta 44*15+rowblit,x + sta 44*ROW_STRIDE + rowBlit,x jsr e_45rotoroto jsr e_50rotoroto jsr e_55rotoroto @@ -4319,19 +4327,19 @@ expand_40: jsr e_65rotoroto jsr e_70rotoroto jsr e_75rotoroto - sta 80*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x lsr - sta 81*15+rowblit,x - lda (pshape),y + sta 81*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 82*15+rowblit,x + sta 82*ROW_STRIDE + rowBlit,x lsr - sta 83*15+rowblit,x + sta 83*ROW_STRIDE + rowBlit,x rts ; Produce 42 rows from 32 rows expand_42: - ldy #30 + jsr selectMip1 jsr e_t43o jsr e_r45torooto jsr e_r50tooroto @@ -4344,7 +4352,7 @@ expand_42: ; Produce 44 rows from 32 rows expand_44: - ldy #30 + jsr selectMip1 jsr e_t42oro jsr e_t45orotoro jsr e_50torotoo @@ -4355,12 +4363,12 @@ expand_44: jsr e_t75orotoo jsr e_r80torooto lsr - sta 85*15+rowblit,x + sta 85*ROW_STRIDE + rowBlit,x rts ; Produce 46 rows from 32 rows expand_46: - ldy #30 + jsr selectMip1 jsr e_t41oroto jsr e_45rotooro jsr e_t50orotoro @@ -4370,16 +4378,16 @@ expand_46: jsr e_t70orotoo jsr e_r75torooto jsr e_r80otoroo - lda (pshape),y + lda (pTex),y iny - sta 85*15+rowblit,x + sta 85*ROW_STRIDE + rowBlit,x lsr - sta 86*15+rowblit,x + sta 86*ROW_STRIDE + rowBlit,x rts ; Produce 48 rows from 32 rows expand_48: - ldy #30 + jsr selectMip1 jsr e_t40orotoo jsr e_r45tooroto jsr e_50rotooro @@ -4389,20 +4397,20 @@ expand_48: jsr e_t70orotoo jsr e_r75tooroto jsr e_80rotooro - lda (pshape),y + lda (pTex),y iny - sta 85*15+rowblit,x - sta 86*15+rowblit,x + sta 85*ROW_STRIDE + rowBlit,x + sta 86*ROW_STRIDE + rowBlit,x lsr - sta 87*15+rowblit,x + sta 87*ROW_STRIDE + rowBlit,x rts ; Produce 50 rows from 32 rows expand_50: - ldy #30 - lda (pshape),y + jsr selectMip1 + lda (pTex),y iny - sta 39*15+rowblit,x + sta 39*ROW_STRIDE + rowBlit,x jsr e_40rootoro jsr e_45torooto jsr e_r50otooro @@ -4413,18 +4421,18 @@ expand_50: jsr e_r75otooro jsr e_t80orotoo lsr - sta 85*15+rowblit,x - lda (pshape),y + sta 85*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 86*15+rowblit,x - sta 87*15+rowblit,x + sta 86*ROW_STRIDE + rowBlit,x + sta 87*ROW_STRIDE + rowBlit,x lsr - sta 88*15+rowblit,x + sta 88*ROW_STRIDE + rowBlit,x rts ; Produce 52 rows from 32 rows expand_52: - ldy #30 + jsr selectMip1 jsr e_t38o jsr e_r40otoroo jsr e_t45orotoo @@ -4439,7 +4447,7 @@ expand_52: ; Produce 54 rows from 32 rows expand_54: - ldy #30 + jsr selectMip1 jsr e_t37oro jsr e_40tooroto jsr e_45rootoro @@ -4452,12 +4460,12 @@ expand_54: jsr e_r80tooroo jsr e_t85rootoo lsr - sta 90*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x rts ; Produce 56 rows from 32 rows expand_56: - ldy #30 + jsr selectMip1 jsr e_t36oroo jsr e_t40orotoo jsr e_r45otooro @@ -4469,14 +4477,14 @@ expand_56: jsr e_t75orotoo jsr e_r80otooro jsr e_t85orooto - sta 90*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x lsr - sta 91*15+rowblit,x + sta 91*ROW_STRIDE + rowBlit,x rts ; Produce 58 rows from 32 rows expand_58: - ldy #30 + jsr selectMip1 jsr e_t35orooto jsr e_40rootoo jsr e_r45tooroo @@ -4488,20 +4496,20 @@ expand_58: jsr e_t75orooto jsr e_80rootoro jsr e_85tooroo - lda (pshape),y + lda (pTex),y iny - sta 90*15+rowblit,x - sta 91*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x + sta 91*ROW_STRIDE + rowBlit,x lsr - sta 92*15+rowblit,x + sta 92*ROW_STRIDE + rowBlit,x rts ; Produce 60 rows from 32 rows expand_60: - ldy #30 - lda (pshape),y + jsr selectMip1 + lda (pTex),y iny - sta 34*15+rowblit,x + sta 34*ROW_STRIDE + rowBlit,x jsr e_35rootoo jsr e_r40otooro jsr e_45tooroto @@ -4513,18 +4521,18 @@ expand_60: jsr e_75tooroto jsr e_80rootoo jsr e_r85otooro - sta 90*15+rowblit,x - lda (pshape),y + sta 90*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 91*15+rowblit,x - sta 92*15+rowblit,x + sta 91*ROW_STRIDE + rowBlit,x + sta 92*ROW_STRIDE + rowBlit,x lsr - sta 93*15+rowblit,x + sta 93*ROW_STRIDE + rowBlit,x rts ; Produce 62 rows from 32 rows expand_62: - ldy #30 + jsr selectMip1 jsr e_t33o jsr e_r35otooro jsr e_40tooroo @@ -4541,8 +4549,8 @@ expand_62: ; Produce 64 rows from 64 rows expand_64: - ldy #62 - lda (pshape),y + jsr selectMip0 + lda (pTex),y iny jsr e_32roto jsr e_r35torotoro @@ -4558,12 +4566,12 @@ expand_64: jsr e_r85torotoro jsr e_t90rotoroto lsr - sta 95*15+rowblit,x + sta 95*ROW_STRIDE + rowBlit,x rts ; Produce 66 rows from 64 rows expand_66: - ldy #62 + jsr selectMip0 jsr e_t31oroto jsr e_r35torotoro jsr e_t40rotoroto @@ -4577,25 +4585,25 @@ expand_66: jsr e_r80torotoro jsr e_t85rotoroto jsr e_r90torotoro - lda (pshape),y + lda (pTex),y iny - sta 95*15+rowblit,x + sta 95*ROW_STRIDE + rowBlit,x lsr - sta 96*15+rowblit,x + sta 96*ROW_STRIDE + rowBlit,x rts ; Produce 68 rows from 64 rows expand_68: - ldy #62 + jsr selectMip0 jsr e_t30orotoro - lda (pshape),y + lda (pTex),y iny - sta 35*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x lsr - sta 36*15+rowblit,x - lda (pshape),y + sta 36*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 37*15+rowblit,x + sta 37*ROW_STRIDE + rowBlit,x lsr jsr e_38to jsr e_r40torotoro @@ -4610,24 +4618,24 @@ expand_68: jsr e_r85torotoro jsr e_t90rotoroto lsr - sta 95*15+rowblit,x - lda (pshape),y + sta 95*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 96*15+rowblit,x + sta 96*ROW_STRIDE + rowBlit,x lsr - sta 97*15+rowblit,x + sta 97*ROW_STRIDE + rowBlit,x rts ; Produce 70 rows from 64 rows expand_70: - ldy #62 - lda (pshape),y + jsr selectMip0 + lda (pTex),y iny - sta 29*15+rowblit,x + sta 29*ROW_STRIDE + rowBlit,x jsr e_30rotoroto jsr e_r35torotoro jsr e_t40orotoro - lda (pshape),y + lda (pTex),y iny jsr e_45rotoroto jsr e_r50torooto @@ -4639,33 +4647,33 @@ expand_70: jsr e_t80rotoroto jsr e_r85torooto jsr e_r90torotoro - lda (pshape),y + lda (pTex),y iny - sta 95*15+rowblit,x + sta 95*ROW_STRIDE + rowBlit,x lsr - sta 96*15+rowblit,x - lda (pshape),y + sta 96*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 97*15+rowblit,x + sta 97*ROW_STRIDE + rowBlit,x lsr - sta 98*15+rowblit,x + sta 98*ROW_STRIDE + rowBlit,x rts ; Produce 72 rows from 64 rows expand_72: - ldy #62 + jsr selectMip0 jsr e_t28o lsr - sta 30*15+rowblit,x - lda (pshape),y + sta 30*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 31*15+rowblit,x + sta 31*ROW_STRIDE + rowBlit,x lsr - sta 32*15+rowblit,x - lda (pshape),y + sta 32*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_33ro - lda (pshape),y + lda (pTex),y iny jsr e_35rotooro jsr e_t40rotoroto @@ -4680,85 +4688,85 @@ expand_72: jsr e_t85rotoroto jsr e_r90tooroto lsr - sta 95*15+rowblit,x - lda (pshape),y + sta 95*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 96*15+rowblit,x + sta 96*ROW_STRIDE + rowBlit,x lsr - sta 97*15+rowblit,x - lda (pshape),y + sta 97*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_98ro rts ; Produce 74 rows from 64 rows expand_74: - ldy #62 + jsr selectMip0 jsr e_t27oro - lda (pshape),y + lda (pTex),y iny - sta 30*15+rowblit,x + sta 30*ROW_STRIDE + rowBlit,x lsr - sta 31*15+rowblit,x - lda (pshape),y + sta 31*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_32roto jsr e_35rotoroto jsr e_r40tooroto jsr e_r45torotoro - sta 50*15+rowblit,x - lda (pshape),y + sta 50*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 51*15+rowblit,x + sta 51*ROW_STRIDE + rowBlit,x lsr - sta 52*15+rowblit,x - lda (pshape),y + sta 52*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_53ro - lda (pshape),y + lda (pTex),y iny - sta 55*15+rowblit,x + sta 55*ROW_STRIDE + rowBlit,x lsr - sta 56*15+rowblit,x - sta 57*15+rowblit,x - lda (pshape),y + sta 56*ROW_STRIDE + rowBlit,x + sta 57*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_58ro jsr e_t60rotoroto jsr e_65rotoroto lsr - sta 70*15+rowblit,x - lda (pshape),y + sta 70*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 71*15+rowblit,x + sta 71*ROW_STRIDE + rowBlit,x jsr e_72roto lsr - sta 75*15+rowblit,x - lda (pshape),y + sta 75*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 76*15+rowblit,x + sta 76*ROW_STRIDE + rowBlit,x lsr jsr e_77too jsr e_r80torotoro jsr e_t85rootoro - lda (pshape),y + lda (pTex),y iny - sta 90*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x lsr - sta 91*15+rowblit,x - lda (pshape),y + sta 91*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_92roo - lda (pshape),y + lda (pTex),y iny jsr e_95rotoroto lsr - sta 100*15+rowblit,x + sta 100*ROW_STRIDE + rowBlit,x rts ; Produce 76 rows from 64 rows expand_76: - ldy #62 + jsr selectMip0 jsr e_t26oroto jsr e_r30torooto lsr @@ -4776,79 +4784,79 @@ expand_76: jsr e_r85torotoro jsr e_90torotoro jsr e_t95orotoro - lda (pshape),y + lda (pTex),y iny - sta 100*15+rowblit,x + sta 100*ROW_STRIDE + rowBlit,x lsr - sta 101*15+rowblit,x + sta 101*ROW_STRIDE + rowBlit,x rts ; Produce 78 rows from 64 rows expand_78: - ldy #62 + jsr selectMip0 jsr e_t25orotoro jsr e_t30orotoro jsr e_t35rootoro - lda (pshape),y + lda (pTex),y iny - sta 40*15+rowblit,x + sta 40*ROW_STRIDE + rowBlit,x lsr - sta 41*15+rowblit,x - sta 42*15+rowblit,x - lda (pshape),y + sta 41*ROW_STRIDE + rowBlit,x + sta 42*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_43ro jsr e_t45rotooro - lda (pshape),y + lda (pTex),y iny jsr e_50rotooro - lda (pshape),y + lda (pTex),y iny - sta 55*15+rowblit,x + sta 55*ROW_STRIDE + rowBlit,x lsr - sta 56*15+rowblit,x - lda (pshape),y + sta 56*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_57roo jsr e_t60rotoroto jsr e_65rotoroto jsr e_70rotoroto lsr - sta 75*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x jsr e_76toroto lsr - sta 80*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x jsr e_81toroto jsr e_r85tooroto jsr e_r90tooroto jsr e_r95torooto lsr - sta 100*15+rowblit,x - lda (pshape),y + sta 100*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 101*15+rowblit,x + sta 101*ROW_STRIDE + rowBlit,x lsr - sta 102*15+rowblit,x + sta 102*ROW_STRIDE + rowBlit,x rts ; Produce 80 rows from 64 rows expand_80: - ldy #62 - lda (pshape),y + jsr selectMip0 + lda (pTex),y iny - sta 24*15+rowblit,x - sta 25*15+rowblit,x + sta 24*ROW_STRIDE + rowBlit,x + sta 25*ROW_STRIDE + rowBlit,x lsr - sta 26*15+rowblit,x - lda (pshape),y + sta 26*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_27roto jsr e_30rotoroto jsr e_35rotoroto - sta 40*15+rowblit,x + sta 40*ROW_STRIDE + rowBlit,x lsr - sta 41*15+rowblit,x - lda (pshape),y + sta 41*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_42roto jsr e_45rotoroto @@ -4859,52 +4867,52 @@ expand_80: jsr e_70rotoroto jsr e_75rotoroto jsr e_80rotoroto - sta 85*15+rowblit,x + sta 85*ROW_STRIDE + rowBlit,x lsr - sta 86*15+rowblit,x - lda (pshape),y + sta 86*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 87*15+rowblit,x + sta 87*ROW_STRIDE + rowBlit,x lsr jsr e_88to jsr e_90rotoroto jsr e_95rotoroto - sta 100*15+rowblit,x + sta 100*ROW_STRIDE + rowBlit,x lsr - sta 101*15+rowblit,x - lda (pshape),y + sta 101*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 102*15+rowblit,x + sta 102*ROW_STRIDE + rowBlit,x lsr - sta 103*15+rowblit,x + sta 103*ROW_STRIDE + rowBlit,x rts ; Produce 82 rows from 64 rows expand_82: - ldy #62 + jsr selectMip0 jsr e_t23o jsr e_r25torooto jsr e_r30torooto jsr e_r35tooroto jsr e_r40tooroto lsr - sta 45*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x jsr e_46toroto lsr - sta 50*15+rowblit,x + sta 50*ROW_STRIDE + rowBlit,x jsr e_51toroto jsr e_55rotoroto jsr e_60rotoroto jsr e_65rotoroo - lda (pshape),y + lda (pTex),y iny - sta 70*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x lsr - sta 71*15+rowblit,x - lda (pshape),y + sta 71*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_72roo - lda (pshape),y + lda (pTex),y iny jsr e_75rotooro jsr e_t80rotooro @@ -4915,16 +4923,16 @@ expand_82: ; Produce 84 rows from 64 rows expand_84: - ldy #62 + jsr selectMip0 jsr e_t22oro jsr e_t25rootoro jsr e_t30orotoro jsr e_35torotoo lsr - sta 40*15+rowblit,x - lda (pshape),y + sta 40*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 41*15+rowblit,x + sta 41*ROW_STRIDE + rowBlit,x lsr jsr e_42too jsr e_r45torooto @@ -4940,33 +4948,33 @@ expand_84: jsr e_r95torooto jsr e_r100tooroto lsr - sta 105*15+rowblit,x + sta 105*ROW_STRIDE + rowBlit,x rts ; Produce 86 rows from 64 rows expand_86: - ldy #62 - lda (pshape),y + jsr selectMip0 + lda (pTex),y iny - sta 21*15+rowblit,x - sta 22*15+rowblit,x + sta 21*ROW_STRIDE + rowBlit,x + sta 22*ROW_STRIDE + rowBlit,x lsr jsr e_23to - sta 25*15+rowblit,x + sta 25*ROW_STRIDE + rowBlit,x lsr - sta 26*15+rowblit,x - lda (pshape),y + sta 26*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_27roo - lda (pshape),y + lda (pTex),y iny jsr e_30rotooro jsr e_t35rootoro jsr e_t40orotoro - sta 45*15+rowblit,x - lda (pshape),y + sta 45*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 46*15+rowblit,x + sta 46*ROW_STRIDE + rowBlit,x lsr jsr e_47too jsr e_r50torooto @@ -4979,34 +4987,34 @@ expand_86: jsr e_r85torooto jsr e_r90tooroto lsr - sta 95*15+rowblit,x + sta 95*ROW_STRIDE + rowBlit,x jsr e_96toroto - sta 100*15+rowblit,x + sta 100*ROW_STRIDE + rowBlit,x lsr - sta 101*15+rowblit,x - lda (pshape),y + sta 101*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_102roo - lda (pshape),y + lda (pTex),y iny - sta 105*15+rowblit,x + sta 105*ROW_STRIDE + rowBlit,x lsr - sta 106*15+rowblit,x + sta 106*ROW_STRIDE + rowBlit,x rts ; Produce 88 rows from 64 rows expand_88: - ldy #62 + jsr selectMip0 jsr e_t20orotoo jsr e_r25torooto jsr e_r30tooroto - sta 35*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x lsr - sta 36*15+rowblit,x - lda (pshape),y + sta 36*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_37roo - lda (pshape),y + lda (pTex),y iny jsr e_40rotooro jsr e_t45orotoro @@ -5018,47 +5026,47 @@ expand_88: jsr e_t75orotoo jsr e_r80torooto jsr e_r85tooroto - sta 90*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x lsr - sta 91*15+rowblit,x - lda (pshape),y + sta 91*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_92roo - lda (pshape),y + lda (pTex),y iny jsr e_95rotooro jsr e_t100orotoro - sta 105*15+rowblit,x - lda (pshape),y + sta 105*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 106*15+rowblit,x + sta 106*ROW_STRIDE + rowBlit,x lsr - sta 107*15+rowblit,x + sta 107*ROW_STRIDE + rowBlit,x rts ; Produce 90 rows from 64 rows expand_90: - ldy #62 - lda (pshape),y + jsr selectMip0 + lda (pTex),y iny - sta 19*15+rowblit,x + sta 19*ROW_STRIDE + rowBlit,x jsr e_20rotooro jsr e_t25orotoro jsr e_30torooto jsr e_r35tooroto - sta 40*15+rowblit,x + sta 40*ROW_STRIDE + rowBlit,x lsr - sta 41*15+rowblit,x - lda (pshape),y + sta 41*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_42roo - lda (pshape),y + lda (pTex),y iny - sta 45*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x lsr - sta 46*15+rowblit,x - sta 47*15+rowblit,x - lda (pshape),y + sta 46*ROW_STRIDE + rowBlit,x + sta 47*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_48ro jsr e_t50orotoo @@ -5066,60 +5074,60 @@ expand_90: jsr e_55torooto jsr e_r60otoroto jsr e_65rotooro - lda (pshape),y + lda (pTex),y iny - sta 70*15+rowblit,x - sta 71*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x + sta 71*ROW_STRIDE + rowBlit,x lsr - sta 72*15+rowblit,x - lda (pshape),y + sta 72*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_73ro jsr e_75torooto jsr e_r80tooroto - sta 85*15+rowblit,x + sta 85*ROW_STRIDE + rowBlit,x lsr - sta 86*15+rowblit,x - lda (pshape),y + sta 86*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_87roo jsr e_t90rootoro jsr e_t95orotoo lsr - sta 100*15+rowblit,x - lda (pshape),y + sta 100*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_101rooto lsr - sta 105*15+rowblit,x - sta 106*15+rowblit,x - lda (pshape),y + sta 105*ROW_STRIDE + rowBlit,x + sta 106*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 107*15+rowblit,x + sta 107*ROW_STRIDE + rowBlit,x lsr - sta 108*15+rowblit,x + sta 108*ROW_STRIDE + rowBlit,x rts ; Produce 92 rows from 64 rows expand_92: - ldy #62 + jsr selectMip0 jsr e_t18o lsr - sta 20*15+rowblit,x - lda (pshape),y + sta 20*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 21*15+rowblit,x - sta 22*15+rowblit,x + sta 21*ROW_STRIDE + rowBlit,x + sta 22*ROW_STRIDE + rowBlit,x lsr jsr e_23to jsr e_25rotooro - lda (pshape),y + lda (pTex),y iny - sta 30*15+rowblit,x + sta 30*ROW_STRIDE + rowBlit,x lsr - sta 31*15+rowblit,x - sta 32*15+rowblit,x - lda (pshape),y + sta 31*ROW_STRIDE + rowBlit,x + sta 32*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_33ro jsr e_35torooto @@ -5132,49 +5140,49 @@ expand_92: jsr e_t70orotoo jsr e_r75torooto jsr e_r80otoroo - lda (pshape),y + lda (pTex),y iny - sta 85*15+rowblit,x + sta 85*ROW_STRIDE + rowBlit,x lsr - sta 86*15+rowblit,x - lda (pshape),y + sta 86*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 87*15+rowblit,x + sta 87*ROW_STRIDE + rowBlit,x jsr e_88ro jsr e_t90orotoo lsr - sta 95*15+rowblit,x - lda (pshape),y + sta 95*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 96*15+rowblit,x + sta 96*ROW_STRIDE + rowBlit,x jsr e_97roto jsr e_r100otoroo - lda (pshape),y + lda (pTex),y iny - sta 105*15+rowblit,x + sta 105*ROW_STRIDE + rowBlit,x lsr - sta 106*15+rowblit,x - sta 107*15+rowblit,x - lda (pshape),y + sta 106*ROW_STRIDE + rowBlit,x + sta 107*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_108ro rts ; Produce 94 rows from 64 rows expand_94: - ldy #62 + jsr selectMip0 jsr e_t17oro jsr e_t20orotoo jsr e_r25tooroto jsr e_30rotooro jsr e_t35orotoo lsr - sta 40*15+rowblit,x - lda (pshape),y + sta 40*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 41*15+rowblit,x + sta 41*ROW_STRIDE + rowBlit,x lsr - sta 42*15+rowblit,x + sta 42*ROW_STRIDE + rowBlit,x jsr e_43to jsr e_r45otoroo jsr e_t50rootoro @@ -5185,34 +5193,34 @@ expand_94: jsr e_r75tooroto jsr e_80rotooro jsr e_t85orotoro - sta 90*15+rowblit,x - lda (pshape),y + sta 90*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 91*15+rowblit,x + sta 91*ROW_STRIDE + rowBlit,x lsr - sta 92*15+rowblit,x + sta 92*ROW_STRIDE + rowBlit,x jsr e_93to jsr e_r95otoroo jsr e_t100rootoro jsr e_105torooto lsr - sta 110*15+rowblit,x + sta 110*ROW_STRIDE + rowBlit,x rts ; Produce 96 rows from 64 rows expand_96: - ldy #62 - lda (pshape),y + jsr selectMip0 + lda (pTex),y iny - sta 16*15+rowblit,x - sta 17*15+rowblit,x + sta 16*ROW_STRIDE + rowBlit,x + sta 17*ROW_STRIDE + rowBlit,x lsr jsr e_18to jsr e_20rotooro - lda (pshape),y + lda (pTex),y iny - sta 25*15+rowblit,x - sta 26*15+rowblit,x + sta 25*ROW_STRIDE + rowBlit,x + sta 26*ROW_STRIDE + rowBlit,x lsr jsr e_27too jsr e_r30tooroto @@ -5226,10 +5234,10 @@ expand_96: jsr e_t70orotoo jsr e_r75tooroto jsr e_80rotooro - lda (pshape),y + lda (pTex),y iny - sta 85*15+rowblit,x - sta 86*15+rowblit,x + sta 85*ROW_STRIDE + rowBlit,x + sta 86*ROW_STRIDE + rowBlit,x lsr jsr e_87too jsr e_r90tooroto @@ -5237,27 +5245,27 @@ expand_96: jsr e_t100orotoo lsr jsr e_105tooroto - sta 110*15+rowblit,x + sta 110*ROW_STRIDE + rowBlit,x lsr - sta 111*15+rowblit,x + sta 111*ROW_STRIDE + rowBlit,x rts ; Produce 98 rows from 64 rows expand_98: - ldy #62 + jsr selectMip0 jsr e_t15orooto lsr - sta 20*15+rowblit,x - sta 21*15+rowblit,x - lda (pshape),y + sta 20*ROW_STRIDE + rowBlit,x + sta 21*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_22roo jsr e_t25rootoro jsr e_30torooto lsr - sta 35*15+rowblit,x - sta 36*15+rowblit,x - lda (pshape),y + sta 35*ROW_STRIDE + rowBlit,x + sta 36*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_37roo jsr e_t40orotoo @@ -5268,18 +5276,18 @@ expand_98: jsr e_65rootoro jsr e_70torooto lsr - sta 75*15+rowblit,x - sta 76*15+rowblit,x - lda (pshape),y + sta 75*ROW_STRIDE + rowBlit,x + sta 76*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_77roo - lda (pshape),y + lda (pTex),y iny - sta 80*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x lsr - sta 81*15+rowblit,x - sta 82*15+rowblit,x - lda (pshape),y + sta 81*ROW_STRIDE + rowBlit,x + sta 82*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_83ro jsr e_85torooto @@ -5287,25 +5295,25 @@ expand_98: jsr e_t95orotoo jsr e_r100tooroto jsr e_105rotooro - lda (pshape),y + lda (pTex),y iny - sta 110*15+rowblit,x - sta 111*15+rowblit,x + sta 110*ROW_STRIDE + rowBlit,x + sta 111*ROW_STRIDE + rowBlit,x lsr - sta 112*15+rowblit,x + sta 112*ROW_STRIDE + rowBlit,x rts ; Produce 100 rows from 64 rows expand_100: - ldy #62 - lda (pshape),y + jsr selectMip0 + lda (pTex),y iny - sta 14*15+rowblit,x - sta 15*15+rowblit,x + sta 14*ROW_STRIDE + rowBlit,x + sta 15*ROW_STRIDE + rowBlit,x lsr - sta 16*15+rowblit,x - sta 17*15+rowblit,x - lda (pshape),y + sta 16*ROW_STRIDE + rowBlit,x + sta 17*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_18ro jsr e_20torooto @@ -5322,52 +5330,52 @@ expand_100: jsr e_r75otooro jsr e_t80orotoo jsr e_r85tooroto - sta 90*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x lsr - sta 91*15+rowblit,x + sta 91*ROW_STRIDE + rowBlit,x jsr e_92toro - sta 95*15+rowblit,x - lda (pshape),y + sta 95*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 96*15+rowblit,x + sta 96*ROW_STRIDE + rowBlit,x lsr - sta 97*15+rowblit,x + sta 97*ROW_STRIDE + rowBlit,x jsr e_98to jsr e_r100otooro jsr e_t105orotoo lsr - sta 110*15+rowblit,x - lda (pshape),y + sta 110*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 111*15+rowblit,x - sta 112*15+rowblit,x + sta 111*ROW_STRIDE + rowBlit,x + sta 112*ROW_STRIDE + rowBlit,x lsr - sta 113*15+rowblit,x + sta 113*ROW_STRIDE + rowBlit,x rts ; Produce 102 rows from 64 rows expand_102: - ldy #62 + jsr selectMip0 jsr e_t13o jsr e_r15otoroo - lda (pshape),y + lda (pTex),y iny jsr e_20rootoo jsr e_r25tooroto - sta 30*15+rowblit,x + sta 30*ROW_STRIDE + rowBlit,x lsr - sta 31*15+rowblit,x - sta 32*15+rowblit,x - lda (pshape),y + sta 31*ROW_STRIDE + rowBlit,x + sta 32*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_33ro jsr e_35torooto jsr e_40rotooro jsr e_t45orooto lsr - sta 50*15+rowblit,x - sta 51*15+rowblit,x - lda (pshape),y + sta 50*ROW_STRIDE + rowBlit,x + sta 51*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_52roo jsr e_t55orotoo @@ -5386,10 +5394,10 @@ expand_102: ; Produce 104 rows from 64 rows expand_104: - ldy #62 + jsr selectMip0 jsr e_t12oro - sta 15*15+rowblit,x - lda (pshape),y + sta 15*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_16rooto jsr e_20rotooro @@ -5410,19 +5418,19 @@ expand_104: jsr e_r95otooro jsr e_t100orotoo lsr - sta 105*15+rowblit,x - sta 106*15+rowblit,x - lda (pshape),y + sta 105*ROW_STRIDE + rowBlit,x + sta 106*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_107roo jsr e_t110orotoo lsr - sta 115*15+rowblit,x + sta 115*ROW_STRIDE + rowBlit,x rts ; Produce 106 rows from 64 rows expand_106: - ldy #62 + jsr selectMip0 jsr e_t11oroo jsr e_t15rootoo lsr @@ -5430,15 +5438,15 @@ expand_106: jsr e_t25rootoo lsr jsr e_30tooroo - lda (pshape),y + lda (pTex),y iny - sta 35*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x lsr - sta 36*15+rowblit,x + sta 36*ROW_STRIDE + rowBlit,x jsr e_37too lsr jsr e_40tooroo - lda (pshape),y + lda (pTex),y iny jsr e_45rootoo jsr e_r50tooroo @@ -5446,44 +5454,44 @@ expand_106: jsr e_r60tooroto jsr e_65rootoro jsr e_70tooroto - sta 75*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x lsr - sta 76*15+rowblit,x - sta 77*15+rowblit,x - lda (pshape),y + sta 76*ROW_STRIDE + rowBlit,x + sta 77*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_78ro - sta 80*15+rowblit,x - lda (pshape),y + sta 80*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 81*15+rowblit,x + sta 81*ROW_STRIDE + rowBlit,x jsr e_82roto jsr e_85rootoro jsr e_90tooroto - sta 95*15+rowblit,x + sta 95*ROW_STRIDE + rowBlit,x lsr - sta 96*15+rowblit,x - sta 97*15+rowblit,x - lda (pshape),y + sta 96*ROW_STRIDE + rowBlit,x + sta 97*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_98ro jsr e_100tooroto - sta 105*15+rowblit,x + sta 105*ROW_STRIDE + rowBlit,x lsr - sta 106*15+rowblit,x - sta 107*15+rowblit,x - lda (pshape),y + sta 106*ROW_STRIDE + rowBlit,x + sta 107*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_108ro jsr e_110tooroto - sta 115*15+rowblit,x + sta 115*ROW_STRIDE + rowBlit,x lsr - sta 116*15+rowblit,x + sta 116*ROW_STRIDE + rowBlit,x rts ; Produce 108 rows from 64 rows expand_108: - ldy #62 + jsr selectMip0 jsr e_t10orooto jsr e_15rotooro jsr e_20torooto @@ -5506,40 +5514,40 @@ expand_108: jsr e_r100otoroo jsr e_t105orotoo jsr e_r110otoroo - lda (pshape),y + lda (pTex),y iny - sta 115*15+rowblit,x - sta 116*15+rowblit,x + sta 115*ROW_STRIDE + rowBlit,x + sta 116*ROW_STRIDE + rowBlit,x lsr - sta 117*15+rowblit,x + sta 117*ROW_STRIDE + rowBlit,x rts ; Produce 110 rows from 64 rows expand_110: - ldy #62 - lda (pshape),y + jsr selectMip0 + lda (pTex),y iny - sta 9*15+rowblit,x + sta 9*ROW_STRIDE + rowBlit,x jsr e_10rootoo lsr jsr e_15tooroo jsr e_t20orotoo lsr - sta 25*15+rowblit,x - sta 26*15+rowblit,x - lda (pshape),y + sta 25*ROW_STRIDE + rowBlit,x + sta 26*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_27roo jsr e_t30orooto jsr e_r35otooro jsr e_t40orooto jsr e_45rotooro - sta 50*15+rowblit,x - lda (pshape),y + sta 50*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 51*15+rowblit,x + sta 51*ROW_STRIDE + rowBlit,x lsr - sta 52*15+rowblit,x + sta 52*ROW_STRIDE + rowBlit,x jsr e_53to jsr e_55rootoro jsr e_60tooroto @@ -5552,25 +5560,25 @@ expand_110: jsr e_t95orooto jsr e_100rotooro jsr e_105torooto - sta 110*15+rowblit,x + sta 110*ROW_STRIDE + rowBlit,x lsr - sta 111*15+rowblit,x - sta 112*15+rowblit,x - lda (pshape),y + sta 111*ROW_STRIDE + rowBlit,x + sta 112*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_113ro - sta 115*15+rowblit,x - lda (pshape),y + sta 115*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 116*15+rowblit,x - sta 117*15+rowblit,x + sta 116*ROW_STRIDE + rowBlit,x + sta 117*ROW_STRIDE + rowBlit,x lsr - sta 118*15+rowblit,x + sta 118*ROW_STRIDE + rowBlit,x rts ; Produce 112 rows from 64 rows expand_112: - ldy #62 + jsr selectMip0 jsr e_t8o jsr e_r10otooro jsr e_t15orooto @@ -5590,10 +5598,10 @@ expand_112: jsr e_r80otooro jsr e_t85orooto jsr e_90rotooro - sta 95*15+rowblit,x - lda (pshape),y + sta 95*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 96*15+rowblit,x + sta 96*ROW_STRIDE + rowBlit,x jsr e_97roto jsr e_100rootoo jsr e_r105tooroo @@ -5602,7 +5610,7 @@ expand_112: ; Produce 114 rows from 64 rows expand_114: - ldy #62 + jsr selectMip0 jsr e_t7oro jsr e_10tooroo jsr e_t15rootoo @@ -5610,7 +5618,7 @@ expand_114: jsr e_t25orooto jsr e_30rotooro jsr e_35tooroo - lda (pshape),y + lda (pTex),y iny jsr e_40rootoo jsr e_r45otoroo @@ -5619,18 +5627,18 @@ expand_114: jsr e_60tooroto jsr e_65rootoo lsr - sta 70*15+rowblit,x - sta 71*15+rowblit,x - lda (pshape),y + sta 70*ROW_STRIDE + rowBlit,x + sta 71*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_72roo jsr e_t75orooto jsr e_80rotooro - sta 85*15+rowblit,x - lda (pshape),y + sta 85*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 86*15+rowblit,x - sta 87*15+rowblit,x + sta 86*ROW_STRIDE + rowBlit,x + sta 87*ROW_STRIDE + rowBlit,x lsr jsr e_88to jsr e_90rootoo @@ -5640,12 +5648,12 @@ expand_114: jsr e_110tooroto jsr e_115rootoo lsr - sta 120*15+rowblit,x + sta 120*ROW_STRIDE + rowBlit,x rts ; Produce 116 rows from 64 rows expand_116: - ldy #62 + jsr selectMip0 jsr e_t6oroo jsr e_t10orooto jsr e_15rotooro @@ -5669,23 +5677,23 @@ expand_116: jsr e_105rootoo jsr e_r110otoroo jsr e_t115orooto - sta 120*15+rowblit,x + sta 120*ROW_STRIDE + rowBlit,x lsr - sta 121*15+rowblit,x + sta 121*ROW_STRIDE + rowBlit,x rts ; Produce 118 rows from 64 rows expand_118: - ldy #62 + jsr selectMip0 jsr e_t5orooto jsr e_10rootoo jsr e_r15otoroo jsr e_t20orooto - sta 25*15+rowblit,x + sta 25*ROW_STRIDE + rowBlit,x lsr - sta 26*15+rowblit,x - sta 27*15+rowblit,x - lda (pshape),y + sta 26*ROW_STRIDE + rowBlit,x + sta 27*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_28ro jsr e_30tooroo @@ -5704,36 +5712,36 @@ expand_118: jsr e_95rootoo lsr jsr e_100tooroo - lda (pshape),y + lda (pTex),y iny - sta 105*15+rowblit,x - sta 106*15+rowblit,x + sta 105*ROW_STRIDE + rowBlit,x + sta 106*ROW_STRIDE + rowBlit,x lsr - sta 107*15+rowblit,x + sta 107*ROW_STRIDE + rowBlit,x jsr e_108to jsr e_110rotooro jsr e_115tooroo - lda (pshape),y + lda (pTex),y iny - sta 120*15+rowblit,x - sta 121*15+rowblit,x + sta 120*ROW_STRIDE + rowBlit,x + sta 121*ROW_STRIDE + rowBlit,x lsr - sta 122*15+rowblit,x + sta 122*ROW_STRIDE + rowBlit,x rts ; Produce 120 rows from 64 rows expand_120: - ldy #62 - lda (pshape),y + jsr selectMip0 + lda (pTex),y iny - sta 4*15+rowblit,x + sta 4*ROW_STRIDE + rowBlit,x jsr e_5rootoo jsr e_r10otooro - sta 15*15+rowblit,x - lda (pshape),y + sta 15*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 16*15+rowblit,x - sta 17*15+rowblit,x + sta 16*ROW_STRIDE + rowBlit,x + sta 17*ROW_STRIDE + rowBlit,x lsr jsr e_18to jsr e_20rootoo @@ -5756,30 +5764,30 @@ expand_120: jsr e_105tooroto jsr e_110rootoo jsr e_r115otooro - sta 120*15+rowblit,x - lda (pshape),y + sta 120*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 121*15+rowblit,x - sta 122*15+rowblit,x + sta 121*ROW_STRIDE + rowBlit,x + sta 122*ROW_STRIDE + rowBlit,x lsr - sta 123*15+rowblit,x + sta 123*ROW_STRIDE + rowBlit,x rts ; Produce 122 rows from 64 rows expand_122: - ldy #62 - lda (pshape),y + jsr selectMip0 + lda (pTex),y iny - sta 3*15+rowblit,x - sta 4*15+rowblit,x + sta 3*ROW_STRIDE + rowBlit,x + sta 4*ROW_STRIDE + rowBlit,x jsr e_r5otooro jsr e_10tooroo jsr e_t15orooto - sta 20*15+rowblit,x + sta 20*ROW_STRIDE + rowBlit,x lsr - sta 21*15+rowblit,x - sta 22*15+rowblit,x - lda (pshape),y + sta 21*ROW_STRIDE + rowBlit,x + sta 22*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_23ro jsr e_25tooroo @@ -5805,8 +5813,8 @@ expand_122: ; Produce 124 rows from 64 rows expand_124: - ldy #62 - lda (pshape),y + jsr selectMip0 + lda (pTex),y iny jsr e_2oro jsr e_5tooroo @@ -5834,13 +5842,13 @@ expand_124: jsr e_t115orooto jsr e_120rootoo lsr - sta 125*15+rowblit,x + sta 125*ROW_STRIDE + rowBlit,x rts ; Produce 126 rows from 64 rows expand_126: - ldy #62 - lda (pshape),y + jsr selectMip0 + lda (pTex),y iny jsr e_1oroo jsr e_t5orooto @@ -5867,24 +5875,24 @@ expand_126: jsr e_r110otooro jsr e_115tooroo jsr e_t120orooto - sta 125*15+rowblit,x + sta 125*ROW_STRIDE + rowBlit,x lsr - sta 126*15+rowblit,x + sta 126*ROW_STRIDE + rowBlit,x rts ; Produce 128 rows from 64 rows expand_128: - ldy #62 - lda (pshape),y + jsr selectMip0 + lda (pTex),y iny - sta 0*15+rowblit,x - sta 1*15+rowblit,x + sta 0*ROW_STRIDE + rowBlit,x + sta 1*ROW_STRIDE + rowBlit,x lsr - sta 2*15+rowblit,x - sta 3*15+rowblit,x - lda (pshape),y + sta 2*ROW_STRIDE + rowBlit,x + sta 3*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 4*15+rowblit,x + sta 4*ROW_STRIDE + rowBlit,x jsr e_5rootoo jsr e_r10otooro jsr e_15tooroo @@ -5909,15 +5917,15 @@ expand_128: jsr e_r110otooro jsr e_115tooroo jsr e_t120orooto - sta 125*15+rowblit,x + sta 125*ROW_STRIDE + rowBlit,x lsr - sta 126*15+rowblit,x - sta 127*15+rowblit,x + sta 126*ROW_STRIDE + rowBlit,x + sta 127*ROW_STRIDE + rowBlit,x rts ; Produce 132 rows from 64 rows expand_132: - ldy #62 + jsr selectMip0 jsr e_t0ooroo jsr e_t5orooto jsr e_10rootoo @@ -5947,7 +5955,7 @@ expand_132: ; Produce 136 rows from 64 rows expand_136: - ldy #62 + jsr selectMip0 jsr e_t0ooroo jsr e_t5orooto jsr e_10rootoo @@ -5962,9 +5970,9 @@ expand_136: jsr e_55tooroo jsr e_t60orooto jsr e_65rootoo - sta 70*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x lsr - sta 71*15+rowblit,x + sta 71*ROW_STRIDE + rowBlit,x jsr e_72too jsr e_r75otooro jsr e_80tooroo @@ -5978,13 +5986,14 @@ expand_136: jsr e_120orooto jsr e_125rootoo lsr - sta 130*15+rowblit,x - sta 131*15+rowblit,x + sta 130*ROW_STRIDE + rowBlit,x + sta 131*ROW_STRIDE + rowBlit,x rts ; Produce 140 rows from 64 rows expand_140: - ldy #63 + jsr selectMip0 + ldy #1 jsr e_t0ooroo jsr e_t5orooto jsr e_10roooto @@ -6012,17 +6021,18 @@ expand_140: jsr e_120rootoo jsr e_r125otooo lsr - sta 130*15+rowblit,x - sta 131*15+rowblit,x - lda (pshape),y + sta 130*ROW_STRIDE + rowBlit,x + sta 131*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 132*15+rowblit,x - sta 133*15+rowblit,x + sta 132*ROW_STRIDE + rowBlit,x + sta 133*ROW_STRIDE + rowBlit,x rts ; Produce 144 rows from 64 rows expand_144: - ldy #63 + jsr selectMip0 + ldy #1 jsr e_t0ooroo jsr e_t5orooto jsr e_10orooto @@ -6050,19 +6060,20 @@ expand_144: jsr e_r120otooro jsr e_125toooro jsr e_130tooroo - lda (pshape),y + lda (pTex),y iny - sta 135*15+rowblit,x + sta 135*ROW_STRIDE + rowBlit,x rts ; Produce 148 rows from 64 rows expand_148: - ldy #64 + jsr selectMip0 + ldy #2 jsr e_t0ooroo - lda (pshape),y + lda (pTex),y iny - sta 5*15+rowblit,x - sta 6*15+rowblit,x + sta 5*ROW_STRIDE + rowBlit,x + sta 6*ROW_STRIDE + rowBlit,x lsr jsr e_7oo jsr e_t10orooto @@ -6077,12 +6088,12 @@ expand_148: jsr e_55tooroo jsr e_60tooroo jsr e_t65ooroo - lda (pshape),y + lda (pTex),y iny - sta 70*15+rowblit,x - sta 71*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x + sta 71*ROW_STRIDE + rowBlit,x lsr - sta 72*15+rowblit,x + sta 72*ROW_STRIDE + rowBlit,x jsr e_73to jsr e_75orooto jsr e_80roooto @@ -6093,39 +6104,40 @@ expand_148: jsr e_r105otooro jsr e_110toooro jsr e_115tooroo - sta 120*15+rowblit,x - lda (pshape),y + sta 120*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_121oroo jsr e_t125ooroo - lda (pshape),y + lda (pTex),y iny - sta 130*15+rowblit,x - sta 131*15+rowblit,x + sta 130*ROW_STRIDE + rowBlit,x + sta 131*ROW_STRIDE + rowBlit,x lsr jsr e_132oo - lda (pshape),y + lda (pTex),y iny - sta 135*15+rowblit,x - sta 136*15+rowblit,x + sta 135*ROW_STRIDE + rowBlit,x + sta 136*ROW_STRIDE + rowBlit,x lsr - sta 137*15+rowblit,x + sta 137*ROW_STRIDE + rowBlit,x rts ; Produce 152 rows from 64 rows expand_152: - ldy #64 + jsr selectMip0 + ldy #2 jsr e_t0ooroo jsr e_t5ooroo - lda (pshape),y + lda (pTex),y iny jsr e_10orooo jsr e_t15orooto jsr e_20orooto - sta 25*15+rowblit,x - sta 26*15+rowblit,x + sta 25*ROW_STRIDE + rowBlit,x + sta 26*ROW_STRIDE + rowBlit,x lsr - sta 27*15+rowblit,x + sta 27*ROW_STRIDE + rowBlit,x jsr e_28to jsr e_30roooto jsr e_35rootoo @@ -6135,23 +6147,23 @@ expand_152: jsr e_r55otooo jsr e_r60otooo lsr - sta 65*15+rowblit,x + sta 65*ROW_STRIDE + rowBlit,x jsr e_66tooro jsr e_70otooro - sta 75*15+rowblit,x - lda (pshape),y + sta 75*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 76*15+rowblit,x + sta 76*ROW_STRIDE + rowBlit,x jsr e_77oro jsr e_80toooro jsr e_85tooroo jsr e_90tooroo jsr e_t95ooroo jsr e_t100ooroo - lda (pshape),y + lda (pTex),y iny - sta 105*15+rowblit,x - sta 106*15+rowblit,x + sta 105*ROW_STRIDE + rowBlit,x + sta 106*ROW_STRIDE + rowBlit,x lsr jsr e_107oo jsr e_t110orooto @@ -6163,32 +6175,33 @@ expand_152: ; Produce 156 rows from 64 rows expand_156: - ldy #64 + jsr selectMip0 + ldy #2 jsr e_t0ooroo jsr e_t5ooroo jsr e_t10ooroo jsr e_t15ooroo - lda (pshape),y + lda (pTex),y iny - sta 20*15+rowblit,x - sta 21*15+rowblit,x + sta 20*ROW_STRIDE + rowBlit,x + sta 21*ROW_STRIDE + rowBlit,x lsr jsr e_22oo - lda (pshape),y + lda (pTex),y iny - sta 25*15+rowblit,x - sta 26*15+rowblit,x + sta 25*ROW_STRIDE + rowBlit,x + sta 26*ROW_STRIDE + rowBlit,x lsr jsr e_27oo - lda (pshape),y + lda (pTex),y iny jsr e_30orooo jsr e_t35orooto jsr e_40orooto - sta 45*15+rowblit,x - sta 46*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x + sta 46*ROW_STRIDE + rowBlit,x lsr - sta 47*15+rowblit,x + sta 47*ROW_STRIDE + rowBlit,x jsr e_48to jsr e_50orooto jsr e_55orooto @@ -6209,24 +6222,25 @@ expand_156: jsr e_r125otooo jsr e_r130otooo lsr - sta 135*15+rowblit,x - sta 136*15+rowblit,x - lda (pshape),y + sta 135*ROW_STRIDE + rowBlit,x + sta 136*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_137oro - sta 140*15+rowblit,x - sta 141*15+rowblit,x + sta 140*ROW_STRIDE + rowBlit,x + sta 141*ROW_STRIDE + rowBlit,x rts ; Produce 160 rows from 64 rows expand_160: - ldy #65 + jsr selectMip0 + ldy #3 jsr e_t0ooroo jsr e_t5ooroo jsr e_t10ooroo jsr e_t15ooroo jsr e_t20ooroo - lda (pshape),y + lda (pTex),y iny jsr e_25ooroo jsr e_t30ooroo @@ -6239,9 +6253,9 @@ expand_160: jsr e_t65ooroo jsr e_t70ooroo jsr e_t75ooroo - lda (pshape),y + lda (pTex),y iny - sta 80*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x jsr e_81oroo jsr e_t85ooroo jsr e_t90ooroo @@ -6254,45 +6268,46 @@ expand_160: jsr e_t125ooroo jsr e_t130ooroo jsr e_t135ooroo - lda (pshape),y + lda (pTex),y iny - sta 140*15+rowblit,x - sta 141*15+rowblit,x - sta 142*15+rowblit,x + sta 140*ROW_STRIDE + rowBlit,x + sta 141*ROW_STRIDE + rowBlit,x + sta 142*ROW_STRIDE + rowBlit,x lsr - sta 143*15+rowblit,x + sta 143*ROW_STRIDE + rowBlit,x rts ; Produce 164 rows from 64 rows expand_164: - ldy #65 + jsr selectMip0 + ldy #3 jsr e_t0ooroo jsr e_5tooroo jsr e_10tooroo jsr e_15tooroo jsr e_20toooro - sta 25*15+rowblit,x - lda (pshape),y + sta 25*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 26*15+rowblit,x + sta 26*ROW_STRIDE + rowBlit,x jsr e_27oro - sta 30*15+rowblit,x - lda (pshape),y + sta 30*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 31*15+rowblit,x + sta 31*ROW_STRIDE + rowBlit,x jsr e_32oro jsr e_35toooro jsr e_40toooro jsr e_45otooro - sta 50*15+rowblit,x + sta 50*ROW_STRIDE + rowBlit,x jsr e_51tooro - sta 55*15+rowblit,x + sta 55*ROW_STRIDE + rowBlit,x jsr e_56tooro jsr e_60otooo lsr - sta 65*15+rowblit,x - sta 66*15+rowblit,x - lda (pshape),y + sta 65*ROW_STRIDE + rowBlit,x + sta 66*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_67oo jsr e_r70otooo @@ -6308,36 +6323,37 @@ expand_164: jsr e_115rootoo jsr e_120rootoo jsr e_125roooto - sta 130*15+rowblit,x + sta 130*ROW_STRIDE + rowBlit,x lsr - sta 131*15+rowblit,x - sta 132*15+rowblit,x - sta 133*15+rowblit,x - lda (pshape),y + sta 131*ROW_STRIDE + rowBlit,x + sta 132*ROW_STRIDE + rowBlit,x + sta 133*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 134*15+rowblit,x - sta 135*15+rowblit,x + sta 134*ROW_STRIDE + rowBlit,x + sta 135*ROW_STRIDE + rowBlit,x lsr - sta 136*15+rowblit,x - sta 137*15+rowblit,x - sta 138*15+rowblit,x - lda (pshape),y + sta 136*ROW_STRIDE + rowBlit,x + sta 137*ROW_STRIDE + rowBlit,x + sta 138*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 139*15+rowblit,x + sta 139*ROW_STRIDE + rowBlit,x jsr e_140roooto - sta 145*15+rowblit,x + sta 145*ROW_STRIDE + rowBlit,x rts ; Produce 168 rows from 64 rows expand_168: - ldy #65 + jsr selectMip0 + ldy #3 jsr e_t0ooroo jsr e_5tooroo jsr e_10toooro - sta 15*15+rowblit,x - lda (pshape),y + sta 15*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 16*15+rowblit,x + sta 16*ROW_STRIDE + rowBlit,x jsr e_17oro jsr e_20toooro jsr e_25otooro @@ -6352,16 +6368,16 @@ expand_168: jsr e_65roooto jsr e_70roooto jsr e_75orooto - sta 80*15+rowblit,x - sta 81*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x + sta 81*ROW_STRIDE + rowBlit,x lsr - sta 82*15+rowblit,x + sta 82*ROW_STRIDE + rowBlit,x jsr e_83to jsr e_85orooo - lda (pshape),y + lda (pTex),y iny - sta 90*15+rowblit,x - sta 91*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x + sta 91*ROW_STRIDE + rowBlit,x lsr jsr e_92oo jsr e_t95ooroo @@ -6376,16 +6392,17 @@ expand_168: lsr jsr e_140otooo lsr - sta 145*15+rowblit,x - sta 146*15+rowblit,x - lda (pshape),y + sta 145*ROW_STRIDE + rowBlit,x + sta 146*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 147*15+rowblit,x + sta 147*ROW_STRIDE + rowBlit,x rts ; Produce 172 rows from 64 rows expand_172: - ldy #66 + jsr selectMip0 + ldy #4 jsr e_t0ooroo jsr e_5toooro jsr e_10toooro @@ -6398,27 +6415,27 @@ expand_172: jsr e_45roooto jsr e_50orooto jsr e_55orooo - lda (pshape),y + lda (pTex),y iny - sta 60*15+rowblit,x - sta 61*15+rowblit,x + sta 60*ROW_STRIDE + rowBlit,x + sta 61*ROW_STRIDE + rowBlit,x lsr jsr e_62oo jsr e_t65ooroo jsr e_t70ooroo jsr e_75tooroo jsr e_80toooro - sta 85*15+rowblit,x - lda (pshape),y + sta 85*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 86*15+rowblit,x - sta 87*15+rowblit,x + sta 86*ROW_STRIDE + rowBlit,x + sta 87*ROW_STRIDE + rowBlit,x jsr e_88ro jsr e_90otooo lsr - sta 95*15+rowblit,x - sta 96*15+rowblit,x - lda (pshape),y + sta 95*ROW_STRIDE + rowBlit,x + sta 96*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_97oo jsr e_r100ootoo @@ -6426,33 +6443,34 @@ expand_172: jsr e_110rootoo jsr e_115roooto jsr e_120roooto - sta 125*15+rowblit,x - sta 126*15+rowblit,x + sta 125*ROW_STRIDE + rowBlit,x + sta 126*ROW_STRIDE + rowBlit,x lsr jsr e_127oto jsr e_130orooo jsr e_t135ooroo - lda (pshape),y + lda (pTex),y iny - sta 140*15+rowblit,x - sta 141*15+rowblit,x - sta 142*15+rowblit,x + sta 140*ROW_STRIDE + rowBlit,x + sta 141*ROW_STRIDE + rowBlit,x + sta 142*ROW_STRIDE + rowBlit,x lsr - sta 143*15+rowblit,x - sta 144*15+rowblit,x - sta 145*15+rowblit,x - lda (pshape),y + sta 143*ROW_STRIDE + rowBlit,x + sta 144*ROW_STRIDE + rowBlit,x + sta 145*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 146*15+rowblit,x - sta 147*15+rowblit,x + sta 146*ROW_STRIDE + rowBlit,x + sta 147*ROW_STRIDE + rowBlit,x lsr - sta 148*15+rowblit,x - sta 149*15+rowblit,x + sta 148*ROW_STRIDE + rowBlit,x + sta 149*ROW_STRIDE + rowBlit,x rts ; Produce 176 rows from 64 rows expand_176: - ldy #66 + jsr selectMip0 + ldy #4 jsr e_t0ooroo jsr e_5toooro jsr e_10toooro @@ -6472,10 +6490,10 @@ expand_176: jsr e_r80ootoo jsr e_85rootoo jsr e_90roooto - sta 95*15+rowblit,x - sta 96*15+rowblit,x + sta 95*ROW_STRIDE + rowBlit,x + sta 96*ROW_STRIDE + rowBlit,x lsr - sta 97*15+rowblit,x + sta 97*ROW_STRIDE + rowBlit,x jsr e_98to jsr e_100orooo jsr e_t105ooroo @@ -6485,28 +6503,29 @@ expand_176: jsr e_125otooo jsr e_r130otooo jsr e_r135ootoo - sta 140*15+rowblit,x + sta 140*ROW_STRIDE + rowBlit,x lsr jsr e_141otoo jsr e_145roooto - sta 150*15+rowblit,x - sta 151*15+rowblit,x + sta 150*ROW_STRIDE + rowBlit,x + sta 151*ROW_STRIDE + rowBlit,x rts ; Produce 180 rows from 64 rows expand_180: - ldy #66 + jsr selectMip0 + ldy #4 jsr e_t0ooroo jsr e_5toooro jsr e_10otooo jsr e_r15otooo lsr - sta 20*15+rowblit,x + sta 20*ROW_STRIDE + rowBlit,x jsr e_21otoo jsr e_25roooto jsr e_30roooto - sta 35*15+rowblit,x - sta 36*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x + sta 36*ROW_STRIDE + rowBlit,x lsr jsr e_37oo jsr e_t40ooroo @@ -6516,10 +6535,10 @@ expand_180: jsr e_r60otooo jsr e_r65ootoo jsr e_70roooto - sta 75*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x lsr - sta 76*15+rowblit,x - sta 77*15+rowblit,x + sta 76*ROW_STRIDE + rowBlit,x + sta 77*ROW_STRIDE + rowBlit,x jsr e_78to jsr e_80orooo jsr e_t85ooroo @@ -6537,17 +6556,18 @@ expand_180: jsr e_140toooro jsr e_145otooo lsr - sta 150*15+rowblit,x - sta 151*15+rowblit,x - lda (pshape),y + sta 150*ROW_STRIDE + rowBlit,x + sta 151*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 152*15+rowblit,x - sta 153*15+rowblit,x + sta 152*ROW_STRIDE + rowBlit,x + sta 153*ROW_STRIDE + rowBlit,x rts ; Produce 184 rows from 64 rows expand_184: - ldy #66 + jsr selectMip0 + ldy #4 jsr e_t0ooroo jsr e_5toooro jsr e_10otooo @@ -6569,8 +6589,8 @@ expand_184: jsr e_r90otooo jsr e_r95ootoo jsr e_100roooto - sta 105*15+rowblit,x - sta 106*15+rowblit,x + sta 105*ROW_STRIDE + rowBlit,x + sta 106*ROW_STRIDE + rowBlit,x lsr jsr e_107oo jsr e_t110ooroo @@ -6582,12 +6602,13 @@ expand_184: jsr e_140roooto jsr e_145orooo jsr e_t150ooroo - sta 155*15+rowblit,x + sta 155*ROW_STRIDE + rowBlit,x rts ; Produce 188 rows from 64 rows expand_188: - ldy #67 + jsr selectMip0 + ldy #5 jsr e_t0ooroo jsr e_5toooro jsr e_10otooo @@ -6603,32 +6624,32 @@ expand_188: jsr e_55roooto jsr e_60orooo jsr e_t65ooroo - sta 70*15+rowblit,x - lda (pshape),y + sta 70*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 71*15+rowblit,x + sta 71*ROW_STRIDE + rowBlit,x jsr e_72oro jsr e_75otooo jsr e_r80ootoo - sta 85*15+rowblit,x + sta 85*ROW_STRIDE + rowBlit,x lsr - sta 86*15+rowblit,x + sta 86*ROW_STRIDE + rowBlit,x jsr e_87oto - sta 90*15+rowblit,x - sta 91*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x + sta 91*ROW_STRIDE + rowBlit,x lsr - sta 92*15+rowblit,x + sta 92*ROW_STRIDE + rowBlit,x jsr e_93to jsr e_95orooo jsr e_t100ooroo - sta 105*15+rowblit,x - lda (pshape),y + sta 105*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 106*15+rowblit,x + sta 106*ROW_STRIDE + rowBlit,x jsr e_107oro jsr e_110otooo lsr - sta 115*15+rowblit,x + sta 115*ROW_STRIDE + rowBlit,x jsr e_116otoo jsr e_120roooto jsr e_125orooo @@ -6638,15 +6659,16 @@ expand_188: jsr e_145otooo lsr jsr e_150ootoo - sta 155*15+rowblit,x + sta 155*ROW_STRIDE + rowBlit,x lsr - sta 156*15+rowblit,x - sta 157*15+rowblit,x + sta 156*ROW_STRIDE + rowBlit,x + sta 157*ROW_STRIDE + rowBlit,x rts ; Produce 192 rows from 64 rows expand_192: - ldy #67 + jsr selectMip0 + ldy #5 jsr e_t0ooroo jsr e_5toooro jsr e_10otooo @@ -6682,35 +6704,36 @@ expand_192: ; Produce 200 rows from 64 rows expand_200: - ldy #67 + jsr selectMip0 + ldy #5 jsr e_t0oooro jsr e_5otooo jsr e_r10ootoo - sta 15*15+rowblit,x + sta 15*ROW_STRIDE + rowBlit,x lsr - sta 16*15+rowblit,x + sta 16*ROW_STRIDE + rowBlit,x jsr e_17oto - sta 20*15+rowblit,x - sta 21*15+rowblit,x + sta 20*ROW_STRIDE + rowBlit,x + sta 21*ROW_STRIDE + rowBlit,x lsr jsr e_22oo - lda (pshape),y + lda (pTex),y iny - sta 25*15+rowblit,x - sta 26*15+rowblit,x + sta 25*ROW_STRIDE + rowBlit,x + sta 26*ROW_STRIDE + rowBlit,x jsr e_27oro jsr e_30otooo jsr e_r35ootoo - sta 40*15+rowblit,x + sta 40*ROW_STRIDE + rowBlit,x lsr - sta 41*15+rowblit,x - sta 42*15+rowblit,x + sta 41*ROW_STRIDE + rowBlit,x + sta 42*ROW_STRIDE + rowBlit,x jsr e_43to jsr e_45orooo - lda (pshape),y + lda (pTex),y iny - sta 50*15+rowblit,x - sta 51*15+rowblit,x + sta 50*ROW_STRIDE + rowBlit,x + sta 51*ROW_STRIDE + rowBlit,x jsr e_52oro jsr e_55otooo jsr e_r60ootoo @@ -6721,53 +6744,54 @@ expand_200: jsr e_r85ootoo jsr e_90roooto jsr e_95orooo - lda (pshape),y + lda (pTex),y iny - sta 100*15+rowblit,x - sta 101*15+rowblit,x + sta 100*ROW_STRIDE + rowBlit,x + sta 101*ROW_STRIDE + rowBlit,x jsr e_102oro jsr e_105otooo jsr e_r110ootoo jsr e_115roooto - sta 120*15+rowblit,x - sta 121*15+rowblit,x + sta 120*ROW_STRIDE + rowBlit,x + sta 121*ROW_STRIDE + rowBlit,x lsr jsr e_122oo - lda (pshape),y + lda (pTex),y iny - sta 125*15+rowblit,x + sta 125*ROW_STRIDE + rowBlit,x jsr e_126ooro jsr e_130otooo jsr e_r135ootoo jsr e_140roooto jsr e_145orooo jsr e_t150oooro - sta 155*15+rowblit,x - sta 156*15+rowblit,x - lda (pshape),y + sta 155*ROW_STRIDE + rowBlit,x + sta 156*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_157oo lsr - sta 160*15+rowblit,x - sta 161*15+rowblit,x - sta 162*15+rowblit,x - lda (pshape),y + sta 160*ROW_STRIDE + rowBlit,x + sta 161*ROW_STRIDE + rowBlit,x + sta 162*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 163*15+rowblit,x + sta 163*ROW_STRIDE + rowBlit,x rts ; Produce 208 rows from 64 rows expand_208: - ldy #68 + jsr selectMip0 + ldy #6 jsr e_t0oooro jsr e_5otooo jsr e_r10ootoo jsr e_15orooo jsr e_t20ooroo - sta 25*15+rowblit,x - lda (pshape),y + sta 25*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 26*15+rowblit,x + sta 26*ROW_STRIDE + rowBlit,x jsr e_27oo jsr e_r30ootoo jsr e_35roooto @@ -6776,10 +6800,10 @@ expand_208: jsr e_50otooo jsr e_55roooto jsr e_60orooo - lda (pshape),y + lda (pTex),y iny - sta 65*15+rowblit,x - sta 66*15+rowblit,x + sta 65*ROW_STRIDE + rowBlit,x + sta 66*ROW_STRIDE + rowBlit,x jsr e_67oro jsr e_70otooo jsr e_r75ootoo @@ -6793,31 +6817,32 @@ expand_208: jsr e_115otooo jsr e_120roooto jsr e_125orooo - lda (pshape),y + lda (pTex),y iny - sta 130*15+rowblit,x - sta 131*15+rowblit,x + sta 130*ROW_STRIDE + rowBlit,x + sta 131*ROW_STRIDE + rowBlit,x jsr e_132oro jsr e_135otooo lsr jsr e_140ootoo jsr e_145orooo jsr e_t150ooroo - sta 155*15+rowblit,x - lda (pshape),y + sta 155*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_156ooo lsr jsr e_160ootoo - sta 165*15+rowblit,x + sta 165*ROW_STRIDE + rowBlit,x lsr - sta 166*15+rowblit,x - sta 167*15+rowblit,x + sta 166*ROW_STRIDE + rowBlit,x + sta 167*ROW_STRIDE + rowBlit,x rts ; Produce 216 rows from 64 rows expand_216: - ldy #68 + jsr selectMip0 + ldy #6 jsr e_t0oooro jsr e_5otooo jsr e_10roooto @@ -6825,45 +6850,45 @@ expand_216: jsr e_20toooro jsr e_25otooo jsr e_30roooto - sta 35*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x jsr e_36oroo jsr e_40toooro - sta 45*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x jsr e_46otoo jsr e_50roooto jsr e_55ooroo - sta 60*15+rowblit,x - lda (pshape),y + sta 60*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 61*15+rowblit,x + sta 61*ROW_STRIDE + rowBlit,x jsr e_62oo jsr e_r65ootoo - sta 70*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x lsr - sta 71*15+rowblit,x + sta 71*ROW_STRIDE + rowBlit,x jsr e_72oo jsr e_t75ooroo - sta 80*15+rowblit,x - lda (pshape),y + sta 80*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 81*15+rowblit,x + sta 81*ROW_STRIDE + rowBlit,x jsr e_82oo jsr e_r85ootoo - sta 90*15+rowblit,x - sta 91*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x + sta 91*ROW_STRIDE + rowBlit,x lsr jsr e_92oo jsr e_t95ooroo jsr e_100otooo jsr e_r105ootoo jsr e_110orooo - lda (pshape),y + lda (pTex),y iny - sta 115*15+rowblit,x + sta 115*ROW_STRIDE + rowBlit,x jsr e_116ooro jsr e_120otooo lsr - sta 125*15+rowblit,x + sta 125*ROW_STRIDE + rowBlit,x jsr e_126ooto jsr e_130orooo jsr e_t135oooro @@ -6871,50 +6896,51 @@ expand_216: jsr e_145roooto jsr e_150orooo jsr e_155toooro - sta 160*15+rowblit,x - sta 161*15+rowblit,x - lda (pshape),y + sta 160*ROW_STRIDE + rowBlit,x + sta 161*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_162oo - sta 165*15+rowblit,x + sta 165*ROW_STRIDE + rowBlit,x lsr - sta 166*15+rowblit,x - sta 167*15+rowblit,x - sta 168*15+rowblit,x - lda (pshape),y + sta 166*ROW_STRIDE + rowBlit,x + sta 167*ROW_STRIDE + rowBlit,x + sta 168*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 169*15+rowblit,x - sta 170*15+rowblit,x - sta 171*15+rowblit,x + sta 169*ROW_STRIDE + rowBlit,x + sta 170*ROW_STRIDE + rowBlit,x + sta 171*ROW_STRIDE + rowBlit,x rts ; Produce 224 rows from 64 rows expand_224: - ldy #68 + jsr selectMip0 + ldy #6 jsr e_t0oooro jsr e_5otooo jsr e_10roooto - sta 15*15+rowblit,x + sta 15*ROW_STRIDE + rowBlit,x jsr e_16oroo - sta 20*15+rowblit,x - lda (pshape),y + sta 20*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 21*15+rowblit,x + sta 21*ROW_STRIDE + rowBlit,x jsr e_22oo jsr e_r25ootoo jsr e_30orooo - lda (pshape),y + lda (pTex),y iny - sta 35*15+rowblit,x - sta 36*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x + sta 36*ROW_STRIDE + rowBlit,x jsr e_37oro jsr e_40otooo jsr e_45roooto jsr e_50ooroo - sta 55*15+rowblit,x - lda (pshape),y + sta 55*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 56*15+rowblit,x + sta 56*ROW_STRIDE + rowBlit,x jsr e_57oo jsr e_r60ootoo jsr e_65orooo @@ -6929,215 +6955,217 @@ expand_224: jsr e_110otooo jsr e_115roooto jsr e_120ooroo - sta 125*15+rowblit,x - lda (pshape),y + sta 125*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 126*15+rowblit,x + sta 126*ROW_STRIDE + rowBlit,x jsr e_127oo jsr e_r130ootoo jsr e_135orooo jsr e_t140oooro jsr e_145otooo - sta 150*15+rowblit,x + sta 150*ROW_STRIDE + rowBlit,x lsr - sta 151*15+rowblit,x - sta 152*15+rowblit,x - sta 153*15+rowblit,x - lda (pshape),y + sta 151*ROW_STRIDE + rowBlit,x + sta 152*ROW_STRIDE + rowBlit,x + sta 153*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 154*15+rowblit,x - sta 155*15+rowblit,x - sta 156*15+rowblit,x - sta 157*15+rowblit,x + sta 154*ROW_STRIDE + rowBlit,x + sta 155*ROW_STRIDE + rowBlit,x + sta 156*ROW_STRIDE + rowBlit,x + sta 157*ROW_STRIDE + rowBlit,x lsr - sta 158*15+rowblit,x - sta 159*15+rowblit,x - sta 160*15+rowblit,x - lda (pshape),y + sta 158*ROW_STRIDE + rowBlit,x + sta 159*ROW_STRIDE + rowBlit,x + sta 160*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 161*15+rowblit,x + sta 161*ROW_STRIDE + rowBlit,x jsr e_162oo lsr - sta 165*15+rowblit,x - sta 166*15+rowblit,x - sta 167*15+rowblit,x - lda (pshape),y + sta 165*ROW_STRIDE + rowBlit,x + sta 166*ROW_STRIDE + rowBlit,x + sta 167*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 168*15+rowblit,x - sta 169*15+rowblit,x + sta 168*ROW_STRIDE + rowBlit,x + sta 169*ROW_STRIDE + rowBlit,x jsr e_170orooo - lda (pshape),y + lda (pTex),y iny - sta 175*15+rowblit,x + sta 175*ROW_STRIDE + rowBlit,x rts ; Produce 232 rows from 64 rows expand_232: - ldy #69 + jsr selectMip0 + ldy #7 jsr e_t0oooro jsr e_5ootoo - sta 10*15+rowblit,x + sta 10*ROW_STRIDE + rowBlit,x lsr - sta 11*15+rowblit,x + sta 11*ROW_STRIDE + rowBlit,x jsr e_12oo jsr e_t15oooro jsr e_20otooo jsr e_25roooto - sta 30*15+rowblit,x + sta 30*ROW_STRIDE + rowBlit,x jsr e_31oroo jsr e_35otooo lsr - sta 40*15+rowblit,x - sta 41*15+rowblit,x - sta 42*15+rowblit,x + sta 40*ROW_STRIDE + rowBlit,x + sta 41*ROW_STRIDE + rowBlit,x + sta 42*ROW_STRIDE + rowBlit,x jsr e_43to - sta 45*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x jsr e_46oroo - sta 50*15+rowblit,x - lda (pshape),y + sta 50*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_51ooo jsr e_r55ootoo jsr e_60orooo jsr e_65toooro - sta 70*15+rowblit,x - sta 71*15+rowblit,x + sta 70*ROW_STRIDE + rowBlit,x + sta 71*ROW_STRIDE + rowBlit,x jsr e_72too - sta 75*15+rowblit,x - sta 76*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x + sta 76*ROW_STRIDE + rowBlit,x lsr jsr e_77oo - lda (pshape),y + lda (pTex),y iny - sta 80*15+rowblit,x - sta 81*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x + sta 81*ROW_STRIDE + rowBlit,x jsr e_82oro jsr e_85otooo - sta 90*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x lsr - sta 91*15+rowblit,x + sta 91*ROW_STRIDE + rowBlit,x jsr e_92oo jsr e_t95ooroo jsr e_100otooo - sta 105*15+rowblit,x + sta 105*ROW_STRIDE + rowBlit,x lsr - sta 106*15+rowblit,x - sta 107*15+rowblit,x + sta 106*ROW_STRIDE + rowBlit,x + sta 107*ROW_STRIDE + rowBlit,x jsr e_108to jsr e_110ooroo - sta 115*15+rowblit,x - lda (pshape),y + sta 115*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 116*15+rowblit,x + sta 116*ROW_STRIDE + rowBlit,x jsr e_117oo lsr - sta 120*15+rowblit,x - sta 121*15+rowblit,x + sta 120*ROW_STRIDE + rowBlit,x + sta 121*ROW_STRIDE + rowBlit,x jsr e_122oto jsr e_125orooo - sta 130*15+rowblit,x - lda (pshape),y + sta 130*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 131*15+rowblit,x + sta 131*ROW_STRIDE + rowBlit,x jsr e_132oo jsr e_r135ootoo - sta 140*15+rowblit,x - sta 141*15+rowblit,x + sta 140*ROW_STRIDE + rowBlit,x + sta 141*ROW_STRIDE + rowBlit,x lsr jsr e_142oo - lda (pshape),y + lda (pTex),y iny - sta 145*15+rowblit,x - sta 146*15+rowblit,x - sta 147*15+rowblit,x - sta 148*15+rowblit,x + sta 145*ROW_STRIDE + rowBlit,x + sta 146*ROW_STRIDE + rowBlit,x + sta 147*ROW_STRIDE + rowBlit,x + sta 148*ROW_STRIDE + rowBlit,x lsr - sta 149*15+rowblit,x + sta 149*ROW_STRIDE + rowBlit,x jsr e_150ootoo jsr e_155roooo - lda (pshape),y + lda (pTex),y iny - sta 160*15+rowblit,x - sta 161*15+rowblit,x - sta 162*15+rowblit,x - sta 163*15+rowblit,x + sta 160*ROW_STRIDE + rowBlit,x + sta 161*ROW_STRIDE + rowBlit,x + sta 162*ROW_STRIDE + rowBlit,x + sta 163*ROW_STRIDE + rowBlit,x lsr - sta 164*15+rowblit,x - sta 165*15+rowblit,x - sta 166*15+rowblit,x - lda (pshape),y + sta 164*ROW_STRIDE + rowBlit,x + sta 165*ROW_STRIDE + rowBlit,x + sta 166*ROW_STRIDE + rowBlit,x + lda (pTex),y iny jsr e_167oo - sta 170*15+rowblit,x + sta 170*ROW_STRIDE + rowBlit,x lsr - sta 171*15+rowblit,x - sta 172*15+rowblit,x - sta 173*15+rowblit,x - lda (pshape),y + sta 171*ROW_STRIDE + rowBlit,x + sta 172*ROW_STRIDE + rowBlit,x + sta 173*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 174*15+rowblit,x - sta 175*15+rowblit,x - sta 176*15+rowblit,x - sta 177*15+rowblit,x + sta 174*ROW_STRIDE + rowBlit,x + sta 175*ROW_STRIDE + rowBlit,x + sta 176*ROW_STRIDE + rowBlit,x + sta 177*ROW_STRIDE + rowBlit,x lsr - sta 178*15+rowblit,x - sta 179*15+rowblit,x + sta 178*ROW_STRIDE + rowBlit,x + sta 179*ROW_STRIDE + rowBlit,x rts ; Produce 240 rows from 64 rows expand_240: - ldy #69 + jsr selectMip0 + ldy #7 jsr e_t0oooro jsr e_5ootoo jsr e_10orooo jsr e_t15oooro - sta 20*15+rowblit,x + sta 20*ROW_STRIDE + rowBlit,x jsr e_21otoo jsr e_25orooo - lda (pshape),y + lda (pTex),y iny - sta 30*15+rowblit,x - sta 31*15+rowblit,x + sta 30*ROW_STRIDE + rowBlit,x + sta 31*ROW_STRIDE + rowBlit,x jsr e_32oro - sta 35*15+rowblit,x - sta 36*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x + sta 36*ROW_STRIDE + rowBlit,x jsr e_37too - sta 40*15+rowblit,x - sta 41*15+rowblit,x + sta 40*ROW_STRIDE + rowBlit,x + sta 41*ROW_STRIDE + rowBlit,x lsr jsr e_42oo - lda (pshape),y + lda (pTex),y iny - sta 45*15+rowblit,x - sta 46*15+rowblit,x + sta 45*ROW_STRIDE + rowBlit,x + sta 46*ROW_STRIDE + rowBlit,x jsr e_47oro jsr e_50ootoo jsr e_55orooo - lda (pshape),y + lda (pTex),y iny - sta 60*15+rowblit,x + sta 60*ROW_STRIDE + rowBlit,x jsr e_61ooro jsr e_65ootoo jsr e_70orooo jsr e_t75oooro - sta 80*15+rowblit,x - sta 81*15+rowblit,x + sta 80*ROW_STRIDE + rowBlit,x + sta 81*ROW_STRIDE + rowBlit,x jsr e_82too jsr e_85orooo - lda (pshape),y + lda (pTex),y iny - sta 90*15+rowblit,x - sta 91*15+rowblit,x - sta 92*15+rowblit,x + sta 90*ROW_STRIDE + rowBlit,x + sta 91*ROW_STRIDE + rowBlit,x + sta 92*ROW_STRIDE + rowBlit,x jsr e_93ro jsr e_95ootoo jsr e_100orooo jsr e_t105oooro jsr e_110ootoo jsr e_115orooo - lda (pshape),y + lda (pTex),y iny - sta 120*15+rowblit,x + sta 120*ROW_STRIDE + rowBlit,x jsr e_121ooro jsr e_125ootoo jsr e_130orooo @@ -7145,237 +7173,238 @@ expand_240: jsr e_140ootoo jsr e_145orooo jsr e_t150oooro - sta 155*15+rowblit,x - sta 156*15+rowblit,x - sta 157*15+rowblit,x - lda (pshape),y + sta 155*ROW_STRIDE + rowBlit,x + sta 156*ROW_STRIDE + rowBlit,x + sta 157*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 158*15+rowblit,x - sta 159*15+rowblit,x + sta 158*ROW_STRIDE + rowBlit,x + sta 159*ROW_STRIDE + rowBlit,x jsr e_160orooo - lda (pshape),y + lda (pTex),y iny - sta 165*15+rowblit,x - sta 166*15+rowblit,x - sta 167*15+rowblit,x - sta 168*15+rowblit,x + sta 165*ROW_STRIDE + rowBlit,x + sta 166*ROW_STRIDE + rowBlit,x + sta 167*ROW_STRIDE + rowBlit,x + sta 168*ROW_STRIDE + rowBlit,x lsr - sta 169*15+rowblit,x - sta 170*15+rowblit,x - sta 171*15+rowblit,x - sta 172*15+rowblit,x - lda (pshape),y + sta 169*ROW_STRIDE + rowBlit,x + sta 170*ROW_STRIDE + rowBlit,x + sta 171*ROW_STRIDE + rowBlit,x + sta 172*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 173*15+rowblit,x - sta 174*15+rowblit,x - sta 175*15+rowblit,x - sta 176*15+rowblit,x + sta 173*ROW_STRIDE + rowBlit,x + sta 174*ROW_STRIDE + rowBlit,x + sta 175*ROW_STRIDE + rowBlit,x + sta 176*ROW_STRIDE + rowBlit,x lsr - sta 177*15+rowblit,x - sta 178*15+rowblit,x - sta 179*15+rowblit,x - lda (pshape),y + sta 177*ROW_STRIDE + rowBlit,x + sta 178*ROW_STRIDE + rowBlit,x + sta 179*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 180*15+rowblit,x - sta 181*15+rowblit,x - sta 182*15+rowblit,x - sta 183*15+rowblit,x + sta 180*ROW_STRIDE + rowBlit,x + sta 181*ROW_STRIDE + rowBlit,x + sta 182*ROW_STRIDE + rowBlit,x + sta 183*ROW_STRIDE + rowBlit,x rts ; Produce 248 rows from 64 rows expand_248: - ldy #69 + jsr selectMip0 + ldy #7 jsr e_t0oooro jsr e_5ootoo jsr e_10orooo - sta 15*15+rowblit,x - lda (pshape),y + sta 15*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 16*15+rowblit,x + sta 16*ROW_STRIDE + rowBlit,x jsr e_17oo lsr - sta 20*15+rowblit,x - sta 21*15+rowblit,x + sta 20*ROW_STRIDE + rowBlit,x + sta 21*ROW_STRIDE + rowBlit,x jsr e_22oto jsr e_25ooroo - sta 30*15+rowblit,x - lda (pshape),y + sta 30*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 31*15+rowblit,x + sta 31*ROW_STRIDE + rowBlit,x jsr e_32oo lsr - sta 35*15+rowblit,x - sta 36*15+rowblit,x + sta 35*ROW_STRIDE + rowBlit,x + sta 36*ROW_STRIDE + rowBlit,x jsr e_37oto jsr e_40ooroo jsr e_45otooo jsr e_50roooo - lda (pshape),y + lda (pTex),y iny - sta 55*15+rowblit,x - sta 56*15+rowblit,x + sta 55*ROW_STRIDE + rowBlit,x + sta 56*ROW_STRIDE + rowBlit,x jsr e_57oro jsr e_60otooo - sta 65*15+rowblit,x + sta 65*ROW_STRIDE + rowBlit,x lsr - sta 66*15+rowblit,x + sta 66*ROW_STRIDE + rowBlit,x jsr e_67oo jsr e_t70oooro - sta 75*15+rowblit,x + sta 75*ROW_STRIDE + rowBlit,x jsr e_76otoo jsr e_80orooo - sta 85*15+rowblit,x - lda (pshape),y + sta 85*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 86*15+rowblit,x + sta 86*ROW_STRIDE + rowBlit,x jsr e_87oo jsr e_r90ootoo jsr e_95orooo - sta 100*15+rowblit,x - lda (pshape),y + sta 100*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 101*15+rowblit,x + sta 101*ROW_STRIDE + rowBlit,x jsr e_102oo lsr - sta 105*15+rowblit,x - sta 106*15+rowblit,x - sta 107*15+rowblit,x + sta 105*ROW_STRIDE + rowBlit,x + sta 106*ROW_STRIDE + rowBlit,x + sta 107*ROW_STRIDE + rowBlit,x jsr e_108to jsr e_110ooroo jsr e_115otooo jsr e_120roooto jsr e_125ooroo jsr e_130otooo - sta 135*15+rowblit,x + sta 135*ROW_STRIDE + rowBlit,x lsr - sta 136*15+rowblit,x + sta 136*ROW_STRIDE + rowBlit,x jsr e_137oo jsr e_t140oooro - sta 145*15+rowblit,x - sta 146*15+rowblit,x - sta 147*15+rowblit,x - lda (pshape),y + sta 145*ROW_STRIDE + rowBlit,x + sta 146*ROW_STRIDE + rowBlit,x + sta 147*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 148*15+rowblit,x - sta 149*15+rowblit,x + sta 148*ROW_STRIDE + rowBlit,x + sta 149*ROW_STRIDE + rowBlit,x jsr e_150orooo - lda (pshape),y + lda (pTex),y iny - sta 155*15+rowblit,x + sta 155*ROW_STRIDE + rowBlit,x jsr e_156ooro jsr e_160ootoo jsr e_165orooo - sta 170*15+rowblit,x - lda (pshape),y + sta 170*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 171*15+rowblit,x + sta 171*ROW_STRIDE + rowBlit,x jsr e_172oo lsr - sta 175*15+rowblit,x - sta 176*15+rowblit,x - sta 177*15+rowblit,x - sta 178*15+rowblit,x - lda (pshape),y + sta 175*ROW_STRIDE + rowBlit,x + sta 176*ROW_STRIDE + rowBlit,x + sta 177*ROW_STRIDE + rowBlit,x + sta 178*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 179*15+rowblit,x - sta 180*15+rowblit,x - sta 181*15+rowblit,x - sta 182*15+rowblit,x + sta 179*ROW_STRIDE + rowBlit,x + sta 180*ROW_STRIDE + rowBlit,x + sta 181*ROW_STRIDE + rowBlit,x + sta 182*ROW_STRIDE + rowBlit,x lsr - sta 183*15+rowblit,x - sta 184*15+rowblit,x - sta 185*15+rowblit,x - lda (pshape),y + sta 183*ROW_STRIDE + rowBlit,x + sta 184*ROW_STRIDE + rowBlit,x + sta 185*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 186*15+rowblit,x - sta 187*15+rowblit,x + sta 186*ROW_STRIDE + rowBlit,x + sta 187*ROW_STRIDE + rowBlit,x rts e_t150ooroo: - lda (pshape),y + lda (pTex),y iny - sta 150*15+rowblit,x - sta 151*15+rowblit,x - sta 152*15+rowblit,x + sta 150*ROW_STRIDE + rowBlit,x + sta 151*ROW_STRIDE + rowBlit,x + sta 152*ROW_STRIDE + rowBlit,x lsr - sta 153*15+rowblit,x - sta 154*15+rowblit,x + sta 153*ROW_STRIDE + rowBlit,x + sta 154*ROW_STRIDE + rowBlit,x rts e_140roooto: - sta 140*15+rowblit,x + sta 140*ROW_STRIDE + rowBlit,x lsr - sta 141*15+rowblit,x - sta 142*15+rowblit,x - sta 143*15+rowblit,x - lda (pshape),y + sta 141*ROW_STRIDE + rowBlit,x + sta 142*ROW_STRIDE + rowBlit,x + sta 143*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 144*15+rowblit,x + sta 144*ROW_STRIDE + rowBlit,x rts e_t135ooroo: - lda (pshape),y + lda (pTex),y iny - sta 135*15+rowblit,x - sta 136*15+rowblit,x - sta 137*15+rowblit,x + sta 135*ROW_STRIDE + rowBlit,x + sta 136*ROW_STRIDE + rowBlit,x + sta 137*ROW_STRIDE + rowBlit,x lsr - sta 138*15+rowblit,x - sta 139*15+rowblit,x + sta 138*ROW_STRIDE + rowBlit,x + sta 139*ROW_STRIDE + rowBlit,x rts e_120rootoo: - sta 120*15+rowblit,x + sta 120*ROW_STRIDE + rowBlit,x lsr - sta 121*15+rowblit,x - sta 122*15+rowblit,x - lda (pshape),y + sta 121*ROW_STRIDE + rowBlit,x + sta 122*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 123*15+rowblit,x - sta 124*15+rowblit,x + sta 123*ROW_STRIDE + rowBlit,x + sta 124*ROW_STRIDE + rowBlit,x rts e_145roooto: - sta 145*15+rowblit,x + sta 145*ROW_STRIDE + rowBlit,x lsr - sta 146*15+rowblit,x - sta 147*15+rowblit,x - sta 148*15+rowblit,x - lda (pshape),y + sta 146*ROW_STRIDE + rowBlit,x + sta 147*ROW_STRIDE + rowBlit,x + sta 148*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 149*15+rowblit,x + sta 149*ROW_STRIDE + rowBlit,x rts e_t5orooto: - lda (pshape),y + lda (pTex),y iny - sta 5*15+rowblit,x - sta 6*15+rowblit,x + sta 5*ROW_STRIDE + rowBlit,x + sta 6*ROW_STRIDE + rowBlit,x lsr - sta 7*15+rowblit,x - sta 8*15+rowblit,x - lda (pshape),y + sta 7*ROW_STRIDE + rowBlit,x + sta 8*ROW_STRIDE + rowBlit,x + lda (pTex),y iny - sta 9*15+rowblit,x + sta 9*ROW_STRIDE + rowBlit,x rts e_t150oooro: - lda (pshape),y + lda (pTex),y iny - sta 150*15+rowblit,x - sta 151*15+rowblit,x - sta 152*15+rowblit,x - sta 153*15+rowblit,x + sta 150*ROW_STRIDE + rowBlit,x + sta 151*ROW_STRIDE + rowBlit,x + sta 152*ROW_STRIDE + rowBlit,x + sta 153*ROW_STRIDE + rowBlit,x lsr - sta 154*15+rowblit,x + sta 154*ROW_STRIDE + rowBlit,x rts e_150orooo: - sta 150*15+rowblit,x - sta 151*15+rowblit,x + sta 150*ROW_STRIDE + rowBlit,x + sta 151*ROW_STRIDE + rowBlit,x lsr - sta 152*15+rowblit,x - sta 153*15+rowblit,x - sta 154*15+rowblit,x + sta 152*ROW_STRIDE + rowBlit,x + sta 153*ROW_STRIDE + rowBlit,x + sta 154*ROW_STRIDE + rowBlit,x rts diff --git a/Platform/Apple/virtual/src/raycast/genExpand.py b/Platform/Apple/virtual/src/raycast/genExpand.py index 8687a3b6..3b984c13 100755 --- a/Platform/Apple/virtual/src/raycast/genExpand.py +++ b/Platform/Apple/virtual/src/raycast/genExpand.py @@ -20,9 +20,17 @@ finalSuffixMap = {} dstHeights = set() outFile = open("expand.s", "w") +outFile.write(" .org $800\n") outFile.write(" .pc02\n") -outFile.write("pshape = 6\n") -outFile.write("rowblit = $6000\n") +outFile.write("pTex = $A\n") +outFile.write("selectMip0 = $6003\n") +outFile.write("selectMip1 = selectMip0+3\n") +outFile.write("selectMip2 = selectMip1+3\n") +outFile.write("selectMip3 = selectMip2+3\n") +outFile.write("selectMip4 = selectMip3+3\n") +outFile.write("selectMip5 = selectMip4+3\n") +outFile.write("rowBlit = $B000\n") +outFile.write("ROW_STRIDE = 29\n") outFile.write("\n") def calcKey(cmds): @@ -113,12 +121,12 @@ class Segment: first = False c = s.cmds[i] if c == 'L': - outFile.write(" lda (pshape),y\n") + outFile.write(" lda (pTex),y\n") outFile.write(" iny\n") elif c == '<': outFile.write(" lsr\n") else: - outFile.write(" sta %s*15+rowblit,x\n" % c) + outFile.write(" sta %s*ROW_STRIDE + rowBlit,x\n" % c) else: if grouped: outFile.write(" rts\n") @@ -134,9 +142,9 @@ def makeCmds(dstHeight): # Figure out which texture mip-map level to use srcHeight = 2 - texBase = 0 + mipLevel = 5 while srcHeight < textureHeight and srcHeight*2 <= dstHeight: - texBase += srcHeight + mipLevel -= 1 srcHeight *= 2 y0 = (screenHeight/2) - (dstHeight/2) @@ -145,7 +153,7 @@ def makeCmds(dstHeight): r = 0 cmds = [] - texOff = texBase + texOff = 0 if y0 < 0: texOff += int((-y0/2) * srcHeight / dstHeight) y0 = max(0, y0) @@ -168,7 +176,7 @@ def makeCmds(dstHeight): assert r < dstHeight, "wrapped twice?" print("%d ->\t%d:\t%s" % (srcHeight, dstHeight, calcKey(cmds))) - allHeights.append((srcHeight, dstHeight, texOff, segment(cmds))) + allHeights.append((srcHeight, dstHeight, mipLevel, texOff, segment(cmds))) def flushSeg(seg): global allSegs @@ -274,10 +282,12 @@ while len(segsToOpt) > 0: del segsToOpt[dep] # Now generate the controlling code -for (srcHeight, dstHeight, texOff, segs) in allHeights: +for (srcHeight, dstHeight, mipLevel, texOff, segs) in allHeights: outFile.write("; Produce %d rows from %d rows\n" % (dstHeight, srcHeight)) outFile.write("expand_%d:\n" % dstHeight) - outFile.write(" ldy #%d\n" % texOff) + outFile.write(" jsr selectMip%d\n" % mipLevel) + if (texOff != 0): + outFile.write(" ldy #%d\n" % texOff) for i in range(len(segs)): seg = allSegs[segs[i]] if seg.refs == 1 and not(seg.generated): diff --git a/Platform/Apple/virtual/src/raycast/render.s b/Platform/Apple/virtual/src/raycast/render.s index bc4192d1..a206f9e8 100644 --- a/Platform/Apple/virtual/src/raycast/render.s +++ b/Platform/Apple/virtual/src/raycast/render.s @@ -10,6 +10,14 @@ codeBeg = * ; code is at the very end. We jump to it now. jmp test +; Vectors for mip-map level selection, called by expansion code. + jmp selectMip0 + jmp selectMip1 + jmp selectMip2 + jmp selectMip3 + jmp selectMip4 + jmp selectMip5 + ; Conditional assembly flags DOUBLE_BUFFER = 0 ; whether to double-buffer DEBUG = 1 ; turn on verbose logging @@ -19,12 +27,12 @@ TOP_LINE = $2180 ; 24 lines down from top NLINES = 128 SKY_COLOR = $11 ; blue GROUND_COLOR = $2 ; orange / black -TEX_SIZE = $800 ; 32 columns x 64 bytes per column +TEX_SIZE = $555 ; 32x32 + 16x16 + 8x8 + 4x4 + 2x2 + 1x1 ; My zero page lineCt = $3 ; len 1 txNum = $4 ; len 1 -txColNum = $5 ; len 1 +txColumn = $5 ; len 1 pLine = $6 ; len 2 pDst = $8 ; len 2 pTex = $A ; len 2 @@ -72,9 +80,8 @@ screen = $2000 ;--------------------------------- ; The following are all in aux mem... -expandVec1 = $800 -expandVec2 = $900 -expandCode = $A00 ; occupies $34 pages +expandVec = $800 +expandCode = $900 ; occupies $35 pages textures = $3E00 ; in aux mem tex0 = textures tex1 = tex0+TEX_SIZE @@ -124,12 +131,20 @@ blitOffsets: .byte 5,8,11,1,17,20,24 texAddrLo: .byte tex0,>tex1,>tex2,>tex3 +; mipmap level offsets +MIP_OFFSET_0 = 0 +MIP_OFFSET_1 = $400 ; 32*32 +MIP_OFFSET_2 = $500 ; 32*32 + 16*16 +MIP_OFFSET_3 = $540 ; 32*32 + 16*16 + 8*8 +MIP_OFFSET_4 = $550 ; 32*32 + 16*16 + 8*8 + 4*4 +MIP_OFFSET_5 = $554 ; 32*32 + 16*16 + 8*8 + 4*4 + 2*2 + ; Debug macros .macro DEBUG_STR str .if DEBUG php pha - jsr pstr + jsr _debugStr .byte str,0 pla plp @@ -174,9 +189,11 @@ texAddrHi: .byte >tex0,>tex1,>tex2,>tex3 .endif .endmacro -; Print a string following the JSR, in high or low bit ASCII, terminated by zero. -; If the string has a period "." it will be followed automatically by a CR. -pstr: +; Debug support to print a string following the JSR, in high or low bit ASCII, +; terminated by zero. If the string has a period "." it will be followed +; automatically by the next address and a CR. +.if DEBUG +_debugStr: pla clc adc #1 @@ -191,6 +208,19 @@ pstr: jsr cout cmp #$AE bne :+ + lda #$DB ; [ + jsr cout + lda @ld+1 + clc + adc #4 + pha + lda @ld+2 + adc #0 + jsr prbyte + pla + jsr prbyte + lda #$DD ; ] + jsr cout jsr crout : inc @ld+1 bne @ld @@ -202,6 +232,7 @@ pstr: lda @ld+1 pha rts + .endif ;------------------------------------------------------------------------------- ; Multiply two bytes, quickly but somewhat inaccurately, using logarithms. @@ -333,7 +364,7 @@ pow2_w_w: ; Input: pRayData, plus Y reg: precalculated ray data (4 bytes) ; playerX, playerY (integral and fractional bytes of course) ; Output: lineCt - height to draw in double-lines -; txColNum - column in the texture to draw +; txColumn - column in the texture to draw castRay: ; First, grab the precalculated ray data from the table. ldx #1 ; default X step: forward one column of the map @@ -459,11 +490,11 @@ castRay: ; adjust wall X lda playerY ; fractional player pos clc - adc txColNum + adc txColumn bit stepY ; if stepping forward in X... bmi :+ eor #$FF ; ...invert the texture coord -: sta txColNum +: sta txColumn .if DEBUG jmp @debugFinal .else @@ -518,11 +549,11 @@ castRay: ; adjust wall X lda playerX ; fractional player pos clc - adc txColNum + adc txColumn bit stepY ; if stepping backward in Y bpl :+ eor #$FF ; ...invert the texture coord -: sta txColNum +: sta txColumn .if DEBUG jmp @debugFinal .else @@ -587,7 +618,7 @@ castRay: ply ; retrieve the step direction bpl :+ ; if positive, don't flip the texture coord eor #$FF ; negative, flip the coord -: sta txColNum +: sta txColumn ; Calculate line height ; we need to subtract diff from log2(64) which is $0600 lda #0 @@ -597,7 +628,7 @@ castRay: lda #6 sbc diff+1 tax - jsr pow2_w_w ; calculate 2 ^ (log(64) - diff) + jsr pow2_w_w ; calculate 2 ^ (log(64) - diff) =~ 64.0 / dist cpx #0 beq :+ lda #$FF ; clamp large line heights to 255 @@ -621,8 +652,8 @@ castRay: DEBUG_STR "txNum=" DEBUG_BYTE txNum DEBUG_STR "txCol=" - DEBUG_BYTE txColNum - brk + DEBUG_BYTE txColumn + DEBUG_LN .endif ; Advance pLine to the next line on the hi-res screen @@ -660,21 +691,157 @@ nextLine: stx pLine+1 rts -; Template for blitting code +; Select mipmap level 0 (64x64 pixels = 32x32 bytes) +selectMip0: + ; pTex is already pointing at level 0, no need to adjust its level. + ; However, we do need to move it to the correct column. Currently txColumn + ; is 0..255 pixels, which we need to translate to 0..31 columns; that's + ; a divide by 8. But then we need to multiply by 32 bytes per column, + ; so (1/8)*32 = 4, so we need to multiply by 4 after masking. + lda txColumn + and #$F8 ; retain upper 5 bits + stz tmp + asl + rol tmp ; multiplied by 2 + asl + rol tmp ; multiplied by 4 + adc pTex ; adjust pTex by that much + sta pTex + lda tmp + adc pTex+1 + sta pTex+1 +mipReady: + ldy pixNum ; get offset into the blit roll for this column + ldx blitOffsets,y + ldy #0 ; default to copying from top of column + rts +; Select mipmap level 0 (32x32 pixels = 16x16 bytes) +selectMip1: + ; pTex is pointing at level 0, so we need to move it to level 1. + ; Then we need to move it to the correct column. Currently txColumn + ; is 0..255 pixels, which we need to translate to 0..15 columns; that's + ; a divide by 16. But then we need to multiply by 16 bytes per column, + ; so (1/16)*16 = 1 ==> no multiply needed. + lda txColumn + and #$F0 ; retain upper 4 bits + clc + adc pTex + sta pTex ; no need to add #MIP_OFFSET_1 ; adjust to mip level 1 + sta pTex+1 + jmp mipReady + +; Select mipmap level 2 (16x16 pixels = 8x8 bytes) +selectMip2: + ; pTex is pointing at level 0, so we need to move it to level 2. + ; Then we need to move it to the correct column. Currently txColumn + ; is 0..255 pixels, which we need to translate to 0..8 columns; that's + ; a divide by 32. But then we need to multiply by 8 bytes per column, + ; so (1/32)*8 = 1/4 ==> overall we need to divide by 4. + lda txColumn + and #$E0 ; retain upper 3 bits + lsr ; div by 2 + lsr ; div by 4 + clc + adc pTex + sta pTex ; no need to add #MIP_OFFSET_2 ; adjust to mip level 2 + sta pTex+1 + jmp mipReady + +; Select mipmap level 3 (8x8 pixels = 4x4 bytes) +selectMip3: + ; pTex is pointing at level 0, so we need to move it to level 3. + ; Then we need to move it to the correct column. Currently txColumn + ; is 0..255 pixels, which we need to translate to 0..3 columns; that's + ; a divide by 64. But then we need to multiply by 4 bytes per column, + ; so (1/64)*4 = 1/16 ==> overall we need to divide by 16. + lda txColumn + and #$C0 ; retain upper 2 bits + lsr ; div by 2 + lsr ; div by 4 + lsr ; div by 8 + lsr ; div by 16 + clc + adc #MIP_OFFSET_3 ; adjust to mip level 3 + sta pTex+1 + jmp mipReady + +; Select mipmap level 4 (4x4 pixels = 2x2 bytes) +selectMip4: + ; pTex is pointing at level 0, so we need to move it to level 4. + ; Then we need to move it to the correct column. Currently txColumn + ; is 0..255 pixels, which we need to translate to 0..1 columns; that's + ; a divide by 128. But then we need to multiply by 2 bytes per column, + ; so (1/128)*2 = 1/64 ==> overall we need to divide by 64 + lda txColumn + and #$80 ; retain the high bit + beq :+ ; if not set, result should be zero + lda #64 ; else result should be 64 +: clc + adc #MIP_OFFSET_4 ; adjust to mip level 4 + sta pTex+1 + jmp mipReady + +; Select mipmap level 5 (2x2 pixels = 1x1 bytes) +selectMip5: + ; Mip level 5 is super-easy: it's one byte. Not much choice there. + lda pTex + clc + adc #MIP_OFFSET_5 + sta pTex+1 + jmp mipReady + +; Draw a ray that was traversed by calcRay +drawRay: + ; Make a pointer to the selected texture + ldx txNum + lda texAddrLo,x + sta pTex + lda texAddrHi,x + sta pTex+1 + ; jump to the unrolled expansion code for the selected height + lda lineCt + asl + bcc :+ + lda #254 ; clamp max height +: tax + DEBUG_STR "Calling expansion code." + sta setAuxRd ; switch to aux mem where textures and expansion code live + jsr @callit ; call the unrolled code + sta clrAuxRd ; back to main mem + rts ; and we're done. +@callit: + jmp (expandVec,x) ; use vector to get to the right code + +; Template for blitting code blitTemplate: ; comments show byte offset lda decodeTo57 ; 0: pixel 3 asl ; 3: save half of pix 3 in carry ora decodeTo01 ; 4: pixel 0 ora decodeTo23 ; 7: pixel 1 ora decodeTo45 ; 10: pixel 2 - sta (0),Y ; 13: even column + sta (0),y ; 13: even column iny ; 15: prep for odd lda decodeTo01 ; 16: pixel 4 ora decodeTo23 ; 19: pixel 5 rol ; 22: recover half of pix 3 ora decodeTo56 ; 23: pixel 6 - after rol to ensure right hi bit - sta (0),Y ; 26: odd column + sta (0),y ; 26: odd column dey ; 28: prep for even ; 29 bytes total @@ -694,8 +861,8 @@ makeBlit: ; Copy the template ldy #29 @copy: - lda blitTemplate,Y - sta (pDst),Y + lda blitTemplate,y + sta (pDst),y dey bpl @copy ; Record the address for the line @@ -716,14 +883,14 @@ makeBlit: @storeLine: ; Subroutine to store pLine to pDst lda lineCt asl - sta (pDst),Y + sta (pDst),y rts @storeIndex: ; Subroutine to store tbl ptr to index ldy lineCt lda pDst - sta blitIndexLo,Y + sta blitIndexLo,y lda pDst+1 - sta blitIndexHi,Y + sta blitIndexHi,y rts @advance: ; Subroutine to go to next unroll lda #29 @@ -745,7 +912,7 @@ advPDst: storeRTS: lda #$60 ldy #0 - sta (pDst),Y + sta (pDst),y rts ; Create code to clear the blit @@ -754,27 +921,27 @@ makeClrBlit: ldy #0 @lup: lda @st - sta clrBlitRoll,X + sta clrBlitRoll,x inx - lda blitIndexLo,Y - sta clrBlitRoll,X + lda blitIndexLo,y + sta clrBlitRoll,x inx - lda blitIndexHi,Y + lda blitIndexHi,y @st: - sta clrBlitRoll,X + sta clrBlitRoll,x inx iny iny cpy #64 bne @noSwitch lda @tya ; switch from sky color to ground color - sta clrBlitRoll,X + sta clrBlitRoll,x inx @noSwitch: cpy #NLINES bne @lup lda @rts - sta clrBlitRoll,X + sta clrBlitRoll,x @rts: rts @tya: @@ -819,20 +986,20 @@ makeDecodeTbls: and #1 ora tmp @decodeTo01: - sta decodeTo01,X + sta decodeTo01,x @decodeTo23: asl asl - sta decodeTo23,X + sta decodeTo23,x @decodeTo45: asl asl ora #$80 - sta decodeTo45,X + sta decodeTo45,x @decodeTo56: asl ora #$80 - sta decodeTo56,X + sta decodeTo56,x @decodeTo57: asl asl @@ -840,7 +1007,7 @@ makeDecodeTbls: lsr plp ror - sta decodeTo57,X + sta decodeTo57,x @next: inx bne @shiftA @@ -868,7 +1035,7 @@ clearScreen2: @outer: stx pDst+1 @inner: - sta (pDst),Y + sta (pDst),y iny bne @inner inx @@ -893,8 +1060,8 @@ makeLines: lda pLine ldy pLine+1 sta setAuxZP - sta 0,X - sty 1,X + sta 0,x + sty 1,x sta clrAuxZP jsr nextLine inc lineCt @@ -918,10 +1085,10 @@ setBackBuf: sta $FF ldx #0 @lup: - lda 1,X + lda 1,x and #$1F ora $FF - sta 1,X + sta 1,x inx inx bne @lup @@ -982,8 +1149,8 @@ copyToAux: ldy #0 sty pDst @lup: - lda (pDst),Y - sta (pDst),Y + lda (pDst),y + sta (pDst),y iny bne @lup inc pDst+1 @@ -994,12 +1161,12 @@ copyToAux: ; Test code to see if things really work test: - DEBUG_STR "Clearing memory." + DEBUG_STR "Clearing memory map." ; Clear ProDOS mem map so it lets us load stuff anywhere we want ldx #$18 lda #1 @memLup: - sta memMap-1,X + sta memMap-1,x lda #0 dex bne @memLup @@ -1030,11 +1197,10 @@ test: jsr copyToAux ; Load the texture expansion code - DEBUG_STR "Skipping expansion code and textures because of mip problem." - .if 0 - lda #>expandVec1 + DEBUG_STR "Loading files." + lda #>expandVec pha - lda #@expandName @@ -1074,14 +1240,13 @@ test: jsr bload ; copy all the expansion code and textures to aux mem - ldy #>expandVec1 - ldx #>texEnd - expandVec1 + 1 + DEBUG_STR "Copying to aux mem." + ldy #>expandVec + ldx #>texEnd - expandVec + 1 jsr copyToAux - ; clear out memory - jsr clearMem - ; load the fancy frame + DEBUG_STR "Loading frame." lda #>$2000 pha lda #<$2000 @@ -1090,9 +1255,8 @@ test: lda #>@frameName jsr bload - .endif - ; Build all the unrolls and tables + DEBUG_STR "Making tables." jsr makeBlit jsr makeClrBlit jsr makeDecodeTbls @@ -1106,11 +1270,11 @@ test: .endif sta bacKBuf - DEBUG_STR "Staying in text mode." - .if 0 + ;DEBUG_STR "Staying in text mode." + ;.if 0 bit clrText bit setHires - .endif + ;.endif lda #63 sta lineCt @@ -1134,21 +1298,35 @@ test: lda #0 + ; Calculate the height, texture number, and texture column for one ray @oneCol: - pha + pha ; save tay - jsr castRay - inc pixNum + jsr castRay ; cast the ray across the map + jsr drawRay ; and draw it + .if DEBUG + DEBUG_STR "Done drawing ray " + pla + pha + lsr + lsr + jsr prbyte + DEBUG_LN + .endif + inc pixNum ; do we need to flush the pixel buffer? lda pixNum cmp #7 - bne @nextCol + bne @nextCol ; not yet @flush: + ; flush the blit + DEBUG_STR "Flushing." ldy byteNum iny ; move to right 2 bytes to preserve frame border iny sta setAuxZP jsr blitRoll sta clrAuxZP + DEBUG_STR "Clearing blit." jsr clearBlit lda #0 sta pixNum @@ -1160,7 +1338,8 @@ test: adc #4 ; advance to next ray ldx byteNum cpx #18 - bne @oneCol + beq @nextLevel + jmp @oneCol @nextLevel: ; flip onto the screen @@ -1169,9 +1348,10 @@ test: lda frontBuf sta bacKBuf stx frontBuf - lda page1,X + lda page1,x .endif @pauseLup: + DEBUG_STR "Done rendering, waiting for key." lda kbd bpl @pauseLup @done: