diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-03-20 18:01:34 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-03-20 18:01:34 +0100 |
| commit | b21e3d2588749568c777a84435905bef110f3479 (patch) | |
| tree | 957615ee80680a21abcbe67427455f946fdf9486 /scroll | |
| parent | 49842414e2c570c511ef5c3c9e1860ee8d2fd504 (diff) | |
| download | code.nes-b21e3d2588749568c777a84435905bef110f3479.tar.gz code.nes-b21e3d2588749568c777a84435905bef110f3479.zip | |
Clear VBlank on reset on all examples
This was an oversight from the very first example that has propagated
into the other ones.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'scroll')
| -rw-r--r-- | scroll/include/reset.s | 1 | ||||
| -rw-r--r-- | scroll/roulette.s | 1 | ||||
| -rw-r--r-- | scroll/toggle.s | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/scroll/include/reset.s b/scroll/include/reset.s index 2402795..efe477e 100644 --- a/scroll/include/reset.s +++ b/scroll/include/reset.s @@ -14,6 +14,7 @@ stx PPU::MASK stx APU::DMC + bit PPU::STATUS @vblankwait1: bit PPU::STATUS bpl @vblankwait1 diff --git a/scroll/roulette.s b/scroll/roulette.s index b0c2a61..037b8b6 100644 --- a/scroll/roulette.s +++ b/scroll/roulette.s @@ -155,6 +155,7 @@ BANK_REGISTER_SET 6, 0 BANK_REGISTER_SET 7, 1 + bit $2002 @vblankwait1: bit $2002 bpl @vblankwait1 diff --git a/scroll/toggle.s b/scroll/toggle.s index 32fc39f..57f403f 100644 --- a/scroll/toggle.s +++ b/scroll/toggle.s @@ -223,6 +223,7 @@ stx PPU::MASK stx APU::DMC + bit PPU::STATUS @vblankwait1: bit PPU::STATUS bpl @vblankwait1 |
