git.y1.nz

gbdk-2020

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

commit d6eb0d001c6dd61a54f367b960a26a1f6683965e
parent 11210e7e936a5c3e349a2b9dfd94454f44796fd2
Author: bbbbbr <bbbbbr@users.noreply.github.com>
Date:   Mon,  7 Aug 2023 20:59:18 -0700

Merge pull request #566 from bbbbbr/example_space_vramcopy

Fix Space example: update params for calling copy_vram
Diffstat:
Mgbdk-lib/examples/ap/space/space.s30+++++++++++++++---------------
Mgbdk-lib/examples/gb/space/space.s30+++++++++++++++---------------
2 files changed, 30 insertions(+), 30 deletions(-)

diff --git a/gbdk-lib/examples/ap/space/space.s b/gbdk-lib/examples/ap/space/space.s @@ -116,30 +116,30 @@ _main:: CALL .init_btt ; Init the tiles tables with 0xFF CALL .init_wtt - LD BC,#.tp0 ; Move tiles (standard tiles) - LD HL,#0x9000-(.endtp0-.tp0) - LD DE,#.endtp0-.tp0 + LD HL,#.tp0 ; Move tiles (standard tiles) + LD DE,#0x9000-(.endtp0-.tp0) + LD BC,#.endtp0-.tp0 CALL .copy_vram - LD BC,#.tp1 ; Move tiles (earth) - LD HL,#0x8000 - LD DE,#.endtp1-.tp1 + LD HL,#.tp1 ; Move tiles (earth) + LD DE,#0x8000 + LD BC,#.endtp1-.tp1 CALL .copy_vram - LD BC,#.tp2 ; Move tiles (door) - LD HL,#0x8800 - LD DE,#.endtp2-.tp2 + LD HL,#.tp2 ; Move tiles (door) + LD DE,#0x8800 + LD BC,#.endtp2-.tp2 CALL .copy_vram - LD BC,#.tp3 ; Move tiles (background) - LD HL,#0x9000 - LD DE,#.endtp3-.tp3 + LD HL,#.tp3 ; Move tiles (background) + LD DE,#0x9000 + LD BC,#.endtp3-.tp3 CALL .copy_vram ;; Draw the background - LD BC,#.bkg_tiles - LD HL,#0x9800 - LD DE,#0x0400 ; One whole GB Screen + LD HL,#.bkg_tiles + LD DE,#0x9800 + LD BC,#0x0400 ; One whole GB Screen CALL .copy_vram ;; Draw the frame in the window diff --git a/gbdk-lib/examples/gb/space/space.s b/gbdk-lib/examples/gb/space/space.s @@ -116,30 +116,30 @@ _main:: CALL .init_btt ; Init the tiles tables with 0xFF CALL .init_wtt - LD BC,#.tp0 ; Move tiles (standard tiles) - LD HL,#0x9000-(.endtp0-.tp0) - LD DE,#.endtp0-.tp0 + LD HL,#.tp0 ; Move tiles (standard tiles) + LD DE,#0x9000-(.endtp0-.tp0) + LD BC,#.endtp0-.tp0 CALL .copy_vram - LD BC,#.tp1 ; Move tiles (earth) - LD HL,#0x8000 - LD DE,#.endtp1-.tp1 + LD HL,#.tp1 ; Move tiles (earth) + LD DE,#0x8000 + LD BC,#.endtp1-.tp1 CALL .copy_vram - LD BC,#.tp2 ; Move tiles (door) - LD HL,#0x8800 - LD DE,#.endtp2-.tp2 + LD HL,#.tp2 ; Move tiles (door) + LD DE,#0x8800 + LD BC,#.endtp2-.tp2 CALL .copy_vram - LD BC,#.tp3 ; Move tiles (background) - LD HL,#0x9000 - LD DE,#.endtp3-.tp3 + LD HL,#.tp3 ; Move tiles (background) + LD DE,#0x9000 + LD BC,#.endtp3-.tp3 CALL .copy_vram ;; Draw the background - LD BC,#.bkg_tiles - LD HL,#0x9800 - LD DE,#0x0400 ; One whole GB Screen + LD HL,#.bkg_tiles + LD DE,#0x9800 + LD BC,#0x0400 ; One whole GB Screen CALL .copy_vram ;; Draw the frame in the window

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