File tree Expand file tree Collapse file tree 1 file changed +11
-18
lines changed Expand file tree Collapse file tree 1 file changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -4156,29 +4156,22 @@ gfx_RotateSpriteHalf:
4156
4156
; arg1 : Pointer to sprite struct output
4157
4157
ld iy , 0
4158
4158
add iy , sp
4159
- push ix
4160
- ld ix , (iy + 3 )
4161
- ld c , (ix + 0 ) ; c = width
4162
- ld b , (ix + 1 ) ; b = height
4163
- lea de , ix + 2
4164
- ld ix , (iy + 6 )
4165
- ld (ix + 0 ) , c
4166
- ld (ix + 1 ) , b
4159
+ ld hl , (iy + 3 )
4160
+ ld c , (hl) ; c = width
4161
+ inc hl
4162
+ ld b , (hl) ; b = height
4163
+ ld iy , (iy + 6 )
4164
+ ld (iy + 0 ) , bc
4167
4165
mlt bc
4168
- lea hl , ix + 1
4169
4166
add hl , bc
4170
- push ix
4167
+ lea de , iy
4168
+ push de
4171
4169
. loop :
4172
- ld a , (de)
4173
- ld (hl) , a
4174
4170
inc de
4175
- dec hl
4176
- dec bc
4177
- ld a , b
4178
- or a , c
4179
- jr nz , . loop
4171
+ inc de
4172
+ ldd
4173
+ jp pe , . loop
4180
4174
pop hl
4181
- pop ix
4182
4175
ret
4183
4176
4184
4177
;-------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments