diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-03-10 22:52:15 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-03-10 22:52:15 +0100 |
| commit | 1a74e6a1856673072a61abd0861759901bc2d939 (patch) | |
| tree | bb1b54a7c27280d7d9e83c031233dd8402f1e721 /basics/persist.s | |
| parent | ff22231f8a2f3714df701fd7c12b07915adc15e9 (diff) | |
| download | code.nes-1a74e6a1856673072a61abd0861759901bc2d939.tar.gz code.nes-1a74e6a1856673072a61abd0861759901bc2d939.zip | |
Bring code style to better standards
Be more careful on everything and try to follow along style.nes from my
repository. This might change in the future, but it's in a much better
state now.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'basics/persist.s')
| -rw-r--r-- | basics/persist.s | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/basics/persist.s b/basics/persist.s index 3e7c439..e7dfb07 100644 --- a/basics/persist.s +++ b/basics/persist.s @@ -43,19 +43,24 @@ .segment "BANK1" ;; Unused -nmi: -irq: - rti +.proc nmi + rti +.endproc + +;; Unused +.proc irq + rti +.endproc ;; Check `basics/sprite.s` for a deeper look on the logic below. I have only ;; added comments to MMC1-specific stuff. -reset: +.proc reset sei cld ldx #$40 stx $4017 - ldx #$ff + ldx #$FF txs inx @@ -165,6 +170,7 @@ reset_mmc1: ;; Loop forever, there's nothing to be done here. @loop: jmp @loop +.endproc ;; Unused .segment "CHR0" |
