diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-21 19:46:12 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-21 19:46:12 -0400 |
commit | 204bf74a7f7330e4993138629dffc6304ce1f183 (patch) | |
tree | 528ecdd70f19ece0ad07695e65b2a9485312b976 | |
parent | 3e554e1d5206f0ede60f7e99e68637b7f13bc683 (diff) |
Use LOAD/ENDL for OAM DMA code in HRAM (requires rgbds 0.4.1)
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | INSTALL.md | 10 | ||||
-rw-r--r-- | engine/gfx/oam_dma.asm | 4 | ||||
-rw-r--r-- | hram.asm | 2 | ||||
-rw-r--r-- | layout.link | 1 |
5 files changed, 10 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml index f3dd29a9..03d6eab0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ os: install: - |- ( cd - git clone -b v0.4.0 --depth=1 https://github.com/rednex/rgbds + git clone -b v0.4.1 --depth=1 https://github.com/rednex/rgbds sudo make -C rgbds install rm -rf rgbds ) @@ -38,7 +38,7 @@ Double click on the text that says "**Skip**" next to each package to select the Then download [**rgbds**](https://github.com/rednex/rgbds/releases/): the latest **win64.zip** or **win32.zip** release. Extract it and put all the `exe` and `dll` files individually in **C:\cygwin64\usr\local\bin**. -**Note: If you already have an older rgbds, you will need to update to 0.4.0.** Ignore this if you have never installed rgbds before. If a version newer than 0.4.0 does not work, try downloading 0.4.0. +**Note: If you already have an older rgbds, you will need to update to 0.4.1.** Ignore this if you have never installed rgbds before. If a version newer than 0.4.1 does not work, try downloading 0.4.1. Now open the **Cygwin terminal** and enter the following commands. @@ -86,7 +86,7 @@ To install **rgbds**: ```bash sudo apt-get install pkg-config flex bison libpng-dev -git clone -b v0.4.0 --depth=1 https://github.com/rednex/rgbds +git clone -b v0.4.1 --depth=1 https://github.com/rednex/rgbds sudo make -C rgbds install ``` @@ -102,7 +102,7 @@ To install **rgbds**: ```bash sudo zypper install pkg-config flex bison libpng16-devel -git clone -b v0.4.0 --depth=1 https://github.com/rednex/rgbds +git clone -b v0.4.1 --depth=1 https://github.com/rednex/rgbds sudo make -C rgbds install ``` @@ -120,7 +120,7 @@ Alternatively, to install **rgbds** manually: ```bash sudo pacman -S pkg-config flex bison libpng -git clone -b v0.4.0 --depth=1 https://github.com/rednex/rgbds +git clone -b v0.4.1 --depth=1 https://github.com/rednex/rgbds sudo make -C rgbds install ``` @@ -157,7 +157,7 @@ If `rgbds` is not available, you'll also need these: To install **rgbds**: ```bash -git clone -b v0.4.0 --depth=1 https://github.com/rednex/rgbds +git clone -b v0.4.1 --depth=1 https://github.com/rednex/rgbds sudo make -C rgbds install ``` diff --git a/engine/gfx/oam_dma.asm b/engine/gfx/oam_dma.asm index 84bb4b5c..fe93e90d 100644 --- a/engine/gfx/oam_dma.asm +++ b/engine/gfx/oam_dma.asm @@ -13,14 +13,16 @@ WriteDMACodeToHRAM:: ret DMARoutine: +LOAD "OAM DMA", HRAM +hDMARoutine:: ; initiate DMA ld a, HIGH(wOAMBuffer) ldh [rDMA], a - ; wait for DMA to finish ld a, $28 .wait dec a jr nz, .wait ret +ENDL DMARoutineEnd: @@ -1,7 +1,5 @@ SECTION "HRAM", HRAM -hDMARoutine:: ds 10 - ; Initialized to 16. ; Decremented each input iteration if the player ; presses the reset sequence (A+B+SEL+START). diff --git a/layout.link b/layout.link index 5ea3558f..87ab7e0e 100644 --- a/layout.link +++ b/layout.link @@ -195,4 +195,5 @@ SRAM $2 SRAM $3 "Saved Boxes 2" HRAM + "OAM DMA" "HRAM" |