Shift instructions are shift man...
This commit is contained in:
parent
16e8d6e884
commit
ef7b2b2b6d
BIN
DMGTRIS.GBC
BIN
DMGTRIS.GBC
Binary file not shown.
|
@ -224,8 +224,8 @@ SetPieceData:
|
||||||
|
|
||||||
SetPieceDataOffset:
|
SetPieceDataOffset:
|
||||||
ldh a, [hCurrentPieceRotationState]
|
ldh a, [hCurrentPieceRotationState]
|
||||||
rlc a
|
sla a
|
||||||
rlc a
|
sla a
|
||||||
ldh [hPieceDataOffset], a
|
ldh [hPieceDataOffset], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -796,8 +796,8 @@ FieldProcess::
|
||||||
ldh a, [hPieceDataBase+1]
|
ldh a, [hPieceDataBase+1]
|
||||||
ld h, a
|
ld h, a
|
||||||
ldh a, [hWantRotation]
|
ldh a, [hWantRotation]
|
||||||
rlc a
|
sla a
|
||||||
rlc a
|
sla a
|
||||||
push bc
|
push bc
|
||||||
ld c, a
|
ld c, a
|
||||||
xor a, a
|
xor a, a
|
||||||
|
@ -865,8 +865,8 @@ FieldProcess::
|
||||||
ldh a, [hPieceDataBaseFast+1]
|
ldh a, [hPieceDataBaseFast+1]
|
||||||
ld h, a
|
ld h, a
|
||||||
ldh a, [hWantRotation]
|
ldh a, [hWantRotation]
|
||||||
rlc a
|
sla a
|
||||||
rlc a
|
sla a
|
||||||
push bc
|
push bc
|
||||||
ld c, a
|
ld c, a
|
||||||
xor a, a
|
xor a, a
|
||||||
|
@ -903,8 +903,8 @@ FieldProcess::
|
||||||
ldh a, [hPieceDataBaseFast+1]
|
ldh a, [hPieceDataBaseFast+1]
|
||||||
ld h, a
|
ld h, a
|
||||||
ldh a, [hWantRotation]
|
ldh a, [hWantRotation]
|
||||||
rlc a
|
sla a
|
||||||
rlc a
|
sla a
|
||||||
push bc
|
push bc
|
||||||
ld c, a
|
ld c, a
|
||||||
xor a, a
|
xor a, a
|
||||||
|
@ -951,8 +951,8 @@ FieldProcess::
|
||||||
ldh a, [hPieceDataBaseFast+1]
|
ldh a, [hPieceDataBaseFast+1]
|
||||||
ld h, a
|
ld h, a
|
||||||
ldh a, [hWantRotation]
|
ldh a, [hWantRotation]
|
||||||
rlc a
|
sla a
|
||||||
rlc a
|
sla a
|
||||||
push bc
|
push bc
|
||||||
ld c, a
|
ld c, a
|
||||||
xor a, a
|
xor a, a
|
||||||
|
@ -1011,8 +1011,8 @@ FieldProcess::
|
||||||
ldh a, [hPieceDataBaseFast+1]
|
ldh a, [hPieceDataBaseFast+1]
|
||||||
ld h, a
|
ld h, a
|
||||||
ldh a, [hWantRotation]
|
ldh a, [hWantRotation]
|
||||||
rlc a
|
sla a
|
||||||
rlc a
|
sla a
|
||||||
push bc
|
push bc
|
||||||
ld c, a
|
ld c, a
|
||||||
xor a, a
|
xor a, a
|
||||||
|
@ -1055,8 +1055,8 @@ FieldProcess::
|
||||||
ldh a, [hPieceDataBaseFast+1]
|
ldh a, [hPieceDataBaseFast+1]
|
||||||
ld h, a
|
ld h, a
|
||||||
ldh a, [hWantRotation]
|
ldh a, [hWantRotation]
|
||||||
rlc a
|
sla a
|
||||||
rlc a
|
sla a
|
||||||
push bc
|
push bc
|
||||||
ld c, a
|
ld c, a
|
||||||
xor a, a
|
xor a, a
|
||||||
|
@ -1100,8 +1100,8 @@ FieldProcess::
|
||||||
ldh a, [hPieceDataBaseFast+1]
|
ldh a, [hPieceDataBaseFast+1]
|
||||||
ld h, a
|
ld h, a
|
||||||
ldh a, [hWantRotation]
|
ldh a, [hWantRotation]
|
||||||
rlc a
|
sla a
|
||||||
rlc a
|
sla a
|
||||||
push bc
|
push bc
|
||||||
ld c, a
|
ld c, a
|
||||||
xor a, a
|
xor a, a
|
||||||
|
@ -1808,9 +1808,9 @@ FieldDelay::
|
||||||
ld h, a
|
ld h, a
|
||||||
|
|
||||||
; Divide by 4.
|
; Divide by 4.
|
||||||
sra h
|
srl h
|
||||||
rr l
|
rr l
|
||||||
sra h
|
srl h
|
||||||
rr l
|
rr l
|
||||||
|
|
||||||
; Add 1.
|
; Add 1.
|
||||||
|
|
|
@ -575,8 +575,8 @@ TitleVBlankHandler::
|
||||||
xor a, a
|
xor a, a
|
||||||
ld b, a
|
ld b, a
|
||||||
ld a, [wSwapABState]
|
ld a, [wSwapABState]
|
||||||
rlc a
|
sla a
|
||||||
rlc a
|
sla a
|
||||||
ld c, a
|
ld c, a
|
||||||
ld hl, sOption0
|
ld hl, sOption0
|
||||||
add hl, bc
|
add hl, bc
|
||||||
|
@ -590,8 +590,8 @@ TitleVBlankHandler::
|
||||||
xor a, a
|
xor a, a
|
||||||
ld b, a
|
ld b, a
|
||||||
ld a, [wRNGModeState]
|
ld a, [wRNGModeState]
|
||||||
rlc a
|
sla a
|
||||||
rlc a
|
sla a
|
||||||
ld c, a
|
ld c, a
|
||||||
ld hl, sOption1
|
ld hl, sOption1
|
||||||
add hl, bc
|
add hl, bc
|
||||||
|
@ -605,8 +605,8 @@ TitleVBlankHandler::
|
||||||
xor a, a
|
xor a, a
|
||||||
ld b, a
|
ld b, a
|
||||||
ld a, [rRotModeState]
|
ld a, [rRotModeState]
|
||||||
rlc a
|
sla a
|
||||||
rlc a
|
sla a
|
||||||
ld c, a
|
ld c, a
|
||||||
ld hl, sOption2
|
ld hl, sOption2
|
||||||
add hl, bc
|
add hl, bc
|
||||||
|
@ -620,8 +620,8 @@ TitleVBlankHandler::
|
||||||
xor a, a
|
xor a, a
|
||||||
ld b, a
|
ld b, a
|
||||||
ld a, [rDropModeState]
|
ld a, [rDropModeState]
|
||||||
rlc a
|
sla a
|
||||||
rlc a
|
sla a
|
||||||
ld c, a
|
ld c, a
|
||||||
ld hl, sOption3
|
ld hl, sOption3
|
||||||
add hl, bc
|
add hl, bc
|
||||||
|
@ -635,8 +635,8 @@ TitleVBlankHandler::
|
||||||
xor a, a
|
xor a, a
|
||||||
ld b, a
|
ld b, a
|
||||||
ld a, [wSpeedCurveState]
|
ld a, [wSpeedCurveState]
|
||||||
rlc a
|
sla a
|
||||||
rlc a
|
sla a
|
||||||
ld c, a
|
ld c, a
|
||||||
ld hl, sOption4
|
ld hl, sOption4
|
||||||
add hl, bc
|
add hl, bc
|
||||||
|
@ -650,8 +650,8 @@ TitleVBlankHandler::
|
||||||
xor a, a
|
xor a, a
|
||||||
ld b, a
|
ld b, a
|
||||||
ld a, [wAlways20GState]
|
ld a, [wAlways20GState]
|
||||||
rlc a
|
sla a
|
||||||
rlc a
|
sla a
|
||||||
ld c, a
|
ld c, a
|
||||||
ld hl, sOption5
|
ld hl, sOption5
|
||||||
add hl, bc
|
add hl, bc
|
||||||
|
|
Loading…
Reference in New Issue