diff options
author | Marcus Huderle <huderlem@gmail.com> | 2017-11-25 14:40:48 -0800 |
---|---|---|
committer | Marcus Huderle <huderlem@gmail.com> | 2017-11-26 12:57:30 -0800 |
commit | 00f85341a6d769cc23c4dfbf5fca8ad02835956c (patch) | |
tree | a8ad81e66a27a6c0e2919dffd66a9663203af08a /include/gba/macro.h | |
parent | 5a8cd94046983f15eaf6d414d5f431cb296abdc3 (diff) |
Mostly done decompiling pokemon_summary_screen
Diffstat (limited to 'include/gba/macro.h')
-rw-r--r-- | include/gba/macro.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/gba/macro.h b/include/gba/macro.h index 1e0254806..a0edf2a49 100644 --- a/include/gba/macro.h +++ b/include/gba/macro.h @@ -103,6 +103,22 @@ } \ } +#define DmaClearLarge(dmaNum, dest, size, block, bit) \ +{ \ + u32 _size = size; \ + while (1) \ + { \ + DmaFill##bit(dmaNum, 0, dest, (block)); \ + dest += (block); \ + _size -= (block); \ + if (_size <= (block)) \ + { \ + DmaFill##bit(dmaNum, 0, dest, _size); \ + break; \ + } \ + } \ +} + #define DmaCopyLarge16(dmaNum, src, dest, size, block) DmaCopyLarge(dmaNum, src, dest, size, block, 16) #define DmaCopyLarge32(dmaNum, src, dest, size, block) DmaCopyLarge(dmaNum, src, dest, size, block, 32) |