gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 9efcb69e38c22ae08bb570e604ad41c8b2c48c35 parent 5563572f2916c3244344413283c4334561bb9433 Author: Toxa <untoxa@mail.ru> Date: Wed, 20 Jan 2021 17:15:41 +0300 minor optimizations Diffstat:
| M | gbdk-lib/libc/gb/input.s | 11 | ++++++----- |
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/gbdk-lib/libc/gb/input.s b/gbdk-lib/libc/gb/input.s @@ -98,18 +98,19 @@ LD HL,#(0x20 * 2 + 2) ; X=2, Y=2 CALL set_recoded_win_tiles - XOR A LD A,#.MINWNDPOSX LDH (.WX),A LD A,#.MAXWNDPOSY ; Hide window LDH (.WY),A + XOR A ;; Initialize sprite - LD C,#0x00 ; Sprite 0x00 - LD D,#0x00 ; Default sprite properties + LD C,A ; Sprite 0x00 + LD D,A ; Default sprite properties CALL .set_sprite_prop - LD C,#0x00 ; Sprite 0x00 - LD D,#0x00 ; Tile 0x00 + XOR A + LD C,A ; Sprite 0x00 + LD D,A ; Tile 0x00 CALL .set_sprite_tile LD A,#0b00101100 LDH (.OBP0),A
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.