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 /space/src/states/game.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 'space/src/states/game.s')
| -rw-r--r-- | space/src/states/game.s | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/space/src/states/game.s b/space/src/states/game.s index ca8a49b..ef5b6ef 100644 --- a/space/src/states/game.s +++ b/space/src/states/game.s @@ -3,19 +3,19 @@ ;; - 7: set to 1 whenever the game logic is over and we can start ;; rendering; set to 0 when rendering is done. ;; - 6-0: unused. - flags = $20 + zp_flags = $20 .endscope ;; SET_RENDER_FLAG sets the render bit on Game::flags to 1. .macro SET_RENDER_FLAG lda #%10000000 - ora Game::flags - sta Game::flags + ora Game::zp_flags + sta Game::zp_flags .endmacro ;; UNSET_RENDER_FLAG sets the render bit on Game::flags to 0. .macro UNSET_RENDER_FLAG lda #%01111111 - and Game::flags - sta Game::flags + and Game::zp_flags + sta Game::zp_flags .endmacro |
