diff options
| author | SatoMew <SatoMew@users.noreply.github.com> | 2024-06-27 02:19:06 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-26 21:19:06 -0500 |
| commit | 57bec62508c6ae3424977c9db55ad66fc1eb0a42 (patch) | |
| tree | e7b3b81c68c901a6b2b1811c8a6e1c57b479dd44 /engine/battle | |
| parent | Merge branch 'master' of https://github.com/pret/pokered (diff) | |
| download | pokeyellow-57bec62508c6ae3424977c9db55ad66fc1eb0a42.tar.gz pokeyellow-57bec62508c6ae3424977c9db55ad66fc1eb0a42.tar.xz pokeyellow-57bec62508c6ae3424977c9db55ad66fc1eb0a42.zip | |
Improve documentation of some SRAM routines (#114)
Diffstat (limited to 'engine/battle')
| -rw-r--r-- | engine/battle/core.asm | 4 | ||||
| -rw-r--r-- | engine/battle/scale_sprites.asm | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/engine/battle/core.asm b/engine/battle/core.asm index b7b10d06..b0f4f13f 100644 --- a/engine/battle/core.asm +++ b/engine/battle/core.asm @@ -6555,14 +6555,14 @@ LoadPlayerBackPic: ld de, vBackPic call InterlaceMergeSpriteBuffers ld a, $0 - call SwitchSRAMBankAndLatchClockData + call OpenSRAM ld hl, vSprites ld de, sSpriteBuffer1 ldh a, [hLoadedROMBank] ld b, a ld c, 7 * 7 call CopyVideoData - call PrepareRTCDataAndDisableSRAM + call CloseSRAM ld a, $31 ldh [hStartTileID], a hlcoord 1, 5 diff --git a/engine/battle/scale_sprites.asm b/engine/battle/scale_sprites.asm index 2e33f536..eedd2e1d 100644 --- a/engine/battle/scale_sprites.asm +++ b/engine/battle/scale_sprites.asm @@ -3,9 +3,9 @@ ; resulting in a 7*7 tile output sprite chunk ScaleSpriteByTwo: ld a, $0 - call SwitchSRAMBankAndLatchClockData + call OpenSRAM call .ScaleSpriteByTwo - call PrepareRTCDataAndDisableSRAM + call CloseSRAM ret .ScaleSpriteByTwo: |
