We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3f7971 commit aa3a26eCopy full SHA for aa3a26e
1 file changed
src/graphx/graphx.asm
@@ -3994,13 +3994,17 @@ gfx_SetCharData:
3994
; arg0 : Pointer to character data; if null returns current data
3995
; Returns:
3996
; Pointer to character data if null, otherwise pointer to next character
3997
- ld iy, 0
3998
- add iy, sp
+ ld hl, 6
+ add hl, sp
3999
+ ld de, (hl) ; de -> custom_character_data
4000
+ dec hl
4001
4002
4003
+ ld a, (hl)
4004
sbc hl, hl ; ld hl, 0
- ld de, (iy + 6) ; de -> custom_character_data
4005
sbc hl, de ; sets z flag if NULL
4006
add hl, de
- ld l, (iy + 3) ; hl = index
4007
+ ld l, a ; hl = index
4008
add hl, hl
4009
4010
0 commit comments