summaryrefslogtreecommitdiff
path: root/src/tile16_t.h
diff options
context:
space:
mode:
authorToad King2012-06-14 03:23:47 -0400
committerToad King2012-06-14 03:23:47 -0400
commite8bad8c3ca33d6dfa672f2e570eddc3ab4b3a7e6 (patch)
tree3b5ee797171edafe59bc22ec1523554d81bc448e /src/tile16_t.h
parent6fb0c7a7a53e1eba7a0f5dc5b1ade312a0d76119 (diff)
downloadsnes9x2002-e8bad8c3ca33d6dfa672f2e570eddc3ab4b3a7e6.tar.gz
snes9x2002-e8bad8c3ca33d6dfa672f2e570eddc3ab4b3a7e6.tar.bz2
snes9x2002-e8bad8c3ca33d6dfa672f2e570eddc3ab4b3a7e6.zip
initial libretro changes
Diffstat (limited to 'src/tile16_t.h')
-rw-r--r--src/tile16_t.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/tile16_t.h b/src/tile16_t.h
index db1916e..f4a0a57 100644
--- a/src/tile16_t.h
+++ b/src/tile16_t.h
@@ -210,7 +210,8 @@ DEC_DRAWNOZ(ROPNAME)
\
" cmp r8, #1 \n"\
" blo 4f \n"\
- " ldrneh r8, [%[screen], %[delta]] \n"\
+ " mov r8, #0x200000 \n"\
+ " ldrneh r8, [%[screen], r8] \n"\
" moveq r8, %[fixedcolour] \n"\
\
ROP \
@@ -243,7 +244,8 @@ DEC_DRAWNOZ(ROPNAME)
\
" cmp r8, #1 \n"\
" blo 4f \n"\
- " ldrneh r8, [%[screen], %[delta]] \n"\
+ " mov r8, #0x200000 \n"\
+ " ldrneh r8, [%[screen], r8] \n"\
" moveq r8, %[fixedcolour] \n"\
\
ROP \
@@ -282,7 +284,7 @@ DEC_DRAW(ROPNAME)
: [gfx_z1] "r" (GFX.Z1),
[gfx_z2] "r" (GFX.Z2),
[colors] "r" (GFX.ScreenColors),
- [delta] "r" (GFX.Delta << 1),
+ //[delta] "r" (GFX.Delta << 1),
[fixedcolour] "r" (GFX.FixedColour),
[screen] "r" ((uint16 *) GFX.S + Offset),
[depth] "r" (GFX.ZBuffer + Offset),
@@ -306,7 +308,7 @@ DEC_DRAW(ROPNAME)
: [gfx_z1] "r" (GFX.Z1),
[gfx_z2] "r" (GFX.Z2),
[colors] "r" (GFX.ScreenColors),
- [delta] "r" (GFX.Delta << 1),
+ //[delta] "r" (GFX.Delta << 1),
[fixedcolour] "r" (GFX.FixedColour),
[screen] "r" ((uint16 *) GFX.S + Offset),
[depth] "r" (GFX.ZBuffer + Offset),
@@ -332,7 +334,7 @@ DEC_DRAW(ROPNAME)
: [gfx_z1] "r" (GFX.Z1),
[gfx_z2] "r" (GFX.Z2),
[colors] "r" (GFX.ScreenColors),
- [delta] "r" (GFX.Delta << 1),
+ //[delta] "r" (GFX.Delta << 1),
[fixedcolour] "r" (GFX.FixedColour),
[screen] "r" ((uint16 *) GFX.S + Offset),
[depth] "r" (GFX.ZBuffer + Offset),
@@ -358,7 +360,7 @@ DEC_DRAW(ROPNAME)
: [gfx_z1] "r" (GFX.Z1),
[gfx_z2] "r" (GFX.Z2),
[colors] "r" (GFX.ScreenColors),
- [delta] "r" (GFX.Delta << 1),
+ //[delta] "r" (GFX.Delta << 1),
[fixedcolour] "r" (GFX.FixedColour),
[screen] "r" ((uint16 *) GFX.S + Offset),
[depth] "r" (GFX.ZBuffer + Offset),
@@ -405,7 +407,7 @@ if (Tile & V_FLIP){
: [gfx_z1] "r" (GFX.Z1),
[gfx_z2] "r" (GFX.Z2),
[colors] "r" (GFX.ScreenColors),
- [delta] "r" (GFX.Delta << 1),
+ //[delta] "r" (GFX.Delta << 1),
[fixedcolour] "r" (GFX.FixedColour),
[width] "r" (Width),
[screen] "r" ((uint16 *) GFX.S + Offset),
@@ -437,7 +439,7 @@ if (Tile & V_FLIP){
: [gfx_z1] "r" (GFX.Z1),
[gfx_z2] "r" (GFX.Z2),
[colors] "r" (GFX.ScreenColors),
- [delta] "r" (GFX.Delta << 1),
+ //[delta] "r" (GFX.Delta << 1),
[fixedcolour] "r" (GFX.FixedColour),
[width] "r" (Width),
[screen] "r" ((uint16 *) GFX.S + Offset),
@@ -471,7 +473,7 @@ if (Tile & V_FLIP){
: [gfx_z1] "r" (GFX.Z1),
[gfx_z2] "r" (GFX.Z2),
[colors] "r" (GFX.ScreenColors),
- [delta] "r" (GFX.Delta << 1),
+ //[delta] "r" (GFX.Delta << 1),
[fixedcolour] "r" (GFX.FixedColour),
[width] "r" (Width),
[screen] "r" ((uint16 *) GFX.S + Offset),
@@ -503,7 +505,7 @@ if (Tile & V_FLIP){
: [gfx_z1] "r" (GFX.Z1),
[gfx_z2] "r" (GFX.Z2),
[colors] "r" (GFX.ScreenColors),
- [delta] "r" (GFX.Delta << 1),
+ //[delta] "r" (GFX.Delta << 1),
[fixedcolour] "r" (GFX.FixedColour),
[width] "r" (Width),
[screen] "r" ((uint16 *) GFX.S + Offset),
@@ -517,3 +519,4 @@ if (Tile & V_FLIP){
}
}
}
+