gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 5e8c980222fa22f96b6d78dee07ce5c7b722f707 parent 5ffa0548a6e8d0f1922acde64f3b63121ebd0711 Author: Toxa <untoxa@mail.ru> Date: Sun, 19 May 2024 19:38:03 +0300 SMS/GG/MSX: improve VDP_WRITE_DATA macro, no need to protect it with di/ei Diffstat:
| M | gbdk-lib/libc/targets/z80/gg/global.s | 4 | ++-- |
| M | gbdk-lib/libc/targets/z80/msxdos/global.s | 4 | ++-- |
| M | gbdk-lib/libc/targets/z80/sms/global.s | 4 | ++-- |
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/gbdk-lib/libc/targets/z80/gg/global.s b/gbdk-lib/libc/targets/z80/gg/global.s @@ -281,10 +281,10 @@ .macro VDP_WRITE_DATA regH regL ld a, regL - di out (#.VDP_DATA), a ld a, regH - ei + inc hl + dec hl out (#.VDP_DATA), a .endm diff --git a/gbdk-lib/libc/targets/z80/msxdos/global.s b/gbdk-lib/libc/targets/z80/msxdos/global.s @@ -344,10 +344,10 @@ .macro VDP_WRITE_DATA regH regL ld a, regL - di out (#.VDP_DATA), a ld a, regH - ei + inc hl + dec hl out (#.VDP_DATA), a .endm diff --git a/gbdk-lib/libc/targets/z80/sms/global.s b/gbdk-lib/libc/targets/z80/sms/global.s @@ -283,10 +283,10 @@ .macro VDP_WRITE_DATA regH regL ld a, regL - di out (#.VDP_DATA), a ld a, regH - ei + inc hl + dec hl out (#.VDP_DATA), a .endm
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.