git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit 6630f99c0afc7bf9cc7248df733ec2ce9b1dd7ca
parent 681f0bb5491b533d449fa5ff51bac412dad10222
Author: toxa <untoxa@mail.ru>
Date:   Fri,  6 Nov 2020 01:33:52 +0300

minor code style changes

Diffstat:
Mgbdk-lib/libc/gb/arand.s2+-
Mgbdk-lib/libc/gb/fill_rect.s4++--
Mgbdk-lib/libc/gb/get_xy_t.s4++--
Mgbdk-lib/libc/gb/global.s6+++---
Mgbdk-lib/libc/gb/set_1bit_data.s2+-
Mgbdk-lib/libc/gb/set_data.s2+-
Mgbdk-lib/libc/gb/set_xy_t.s4++--
7 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/gbdk-lib/libc/gb/arand.s b/gbdk-lib/libc/gb/arand.s @@ -77,7 +77,7 @@ _arand:: ; Banked ADD HL,DE LD A,(HL) - ADD A,B + ADD B LD (HL),A ; Store new value POP BC diff --git a/gbdk-lib/libc/gb/fill_rect.s b/gbdk-lib/libc/gb/fill_rect.s @@ -72,9 +72,9 @@ LD A,#0x20 - ADD A, C + ADD C LD C, A - ADC A, B + ADC B SUB C AND #0x03 OR E ; restore high bits diff --git a/gbdk-lib/libc/gb/get_xy_t.s b/gbdk-lib/libc/gb/get_xy_t.s @@ -74,9 +74,9 @@ LD A,#0x20 - ADD A, C + ADD C LD C, A - ADC A, B + ADC B SUB C AND #0x03 OR E ; restore high bits diff --git a/gbdk-lib/libc/gb/global.s b/gbdk-lib/libc/gb/global.s @@ -160,9 +160,9 @@ lbl: LDH A, (.STAT) .endm .macro ADD_A_REG16 regH regL - ADD A, regL + ADD regL LD regL, A - ADC A, regH + ADC regH SUB regL LD regH, A .endm @@ -187,7 +187,7 @@ lbl: ; Multiply DE by A, return result in HL; preserves: BC LD HL, #0 lbl1: - SRL A + SRL A JR NC, lbl2 ADD HL, DE lbl2: diff --git a/gbdk-lib/libc/gb/set_1bit_data.s b/gbdk-lib/libc/gb/set_1bit_data.s @@ -27,7 +27,7 @@ _set_sprite_1bit_data:: swap e ; *16 (size of a tile) ld a, e and #0x0F ; Get high bits - add a, d ; Add base offset of target tile "block" + add d ; Add base offset of target tile "block" ld d, a ld a, e and #0xF0 ; Get low bits only diff --git a/gbdk-lib/libc/gb/set_data.s b/gbdk-lib/libc/gb/set_data.s @@ -28,7 +28,7 @@ _set_sprite_data:: swap e ; *16 (size of a tile) ld a, e and #0x0F ; Get high bits - add a, d ; Add base offset of target tile "block" + add d ; Add base offset of target tile "block" ld d, a ld a, e and #0xF0 ; Get low bits only diff --git a/gbdk-lib/libc/gb/set_xy_t.s b/gbdk-lib/libc/gb/set_xy_t.s @@ -72,9 +72,9 @@ LD A,#0x20 - ADD A, C + ADD C LD C, A - ADC A, B + ADC B SUB C AND #0x03 OR E ; restore high bits

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.