diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-04-03 19:02:10 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-04-03 19:02:10 +0200 |
| commit | b7c591c930ae74998463435e6f05d3312cfd1c8f (patch) | |
| tree | 8a2ff0ceceae81001ac28697be44fb9e68911af5 /src/vectors.s | |
| parent | cd7e197eeb22f6e8407759c93e686debc23c550c (diff) | |
| download | jetpac.nes-b7c591c930ae74998463435e6f05d3312cfd1c8f.tar.gz jetpac.nes-b7c591c930ae74998463435e6f05d3312cfd1c8f.zip | |
Add the ability to pause the game
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'src/vectors.s')
| -rw-r--r-- | src/vectors.s | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/vectors.s b/src/vectors.s index f9aa31d..559a59d 100644 --- a/src/vectors.s +++ b/src/vectors.s @@ -85,6 +85,11 @@ lda #$02 sta OAM::DMA + ;; Are we paused? If so skip timers, PAL handler and the likes. + lda #%00001000 + and Globals::zp_flags + bne @ppu_registers + ;; PAL-specific code .ifdef PAL jsr Driver::pal_handler @@ -94,10 +99,10 @@ ;; Decrease title timer. lda Title::zp_title_timer - beq :+ + beq @ppu_registers dec Title::zp_title_timer -: +@ppu_registers: ;; Should we update PPU registers? bit Globals::zp_flags bvc @scroll |
