aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.nasm/segments.txt2
-rw-r--r--src/bullets.s5
2 files changed, 3 insertions, 4 deletions
diff --git a/.nasm/segments.txt b/.nasm/segments.txt
index 65a60f3..63a1a29 100644
--- a/.nasm/segments.txt
+++ b/.nasm/segments.txt
@@ -1,4 +1,4 @@
- HEADER: 16/16 (100%)
-- ROM0: 5463/32762 (16.67%)
+- ROM0: 5461/32762 (16.67%)
- ROMV: 6/6 (100%)
- ROM2: 8192/8192 (100%)
diff --git a/src/bullets.s b/src/bullets.s
index 335e478..93ff8c5 100644
--- a/src/bullets.s
+++ b/src/bullets.s
@@ -64,7 +64,7 @@
;; Initializing the pool is a matter of setting to $FF the state byte
;; for each bullet object.
ldx #0
- ldy #0
+ ldy #BULLETS_POOL_CAPACITY
lda #$FF
@pool_init_loop:
sta zp_bullets_pool_base, x
@@ -72,8 +72,7 @@
inx
inx
- iny
- cpy #BULLETS_POOL_CAPACITY
+ dey
bne @pool_init_loop
rts