aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--.nasm/memory.txt54
-rw-r--r--.nasm/segments.txt4
-rw-r--r--Makefile10
4 files changed, 61 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore
index 90204e5..895aecf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,4 @@
out/
config/generated.s
-.nasm/
TODO
*.patch
diff --git a/.nasm/memory.txt b/.nasm/memory.txt
new file mode 100644
index 0000000..1370006
--- /dev/null
+++ b/.nasm/memory.txt
@@ -0,0 +1,54 @@
+$00: zp_arg0
+$01: zp_arg1
+$05: zp_tmp0
+$06: zp_tmp1
+$07: zp_tmp2
+$08: zp_tmp3
+$09: zp_idx
+$0A: zp_rand
+$20: zp_flags
+$22: zp_buttons1
+$23: zp_buttons2
+$24: zp_level
+$25: zp_level_kind
+$30: zp_title_timer
+$32: zp_pause_timer
+$33: zp_next_bullet_cycle
+$34: zp_first_bullet
+$35: zp_bullet_timer
+$36: zp_first_enemy
+$37: zp_next_enemy_cycle
+$40: zp_screen_y
+$41-$42: zp_position_y
+$44: zp_velocity_y
+$45: zp_screen_x
+$46-$47: zp_position_x
+$49: zp_velocity_x
+$50: zp_state
+$51: zp_walk_counter
+$60-$68: zp_enemies_pool_base
+$80: zp_control
+$81: zp_mask
+$A0-$BD: zp_bullets_pool_base
+$D0: zp_enemies_pool_size
+$D1: zp_enemy_tiles
+$D2-$D3: zp_enemy_movement_fn
+$E0: zp_bullets_pool_size
+$E1: zp_last_allocated_index
+$E2: zp_current_bullet_y
+$E3: zp_current_bullet_x
+$0200-$02FF: m_sprites
+$2000: m_control
+$2001: m_mask
+$2002: m_status
+$2003: m_address
+$2005: m_scroll
+$2006: m_address
+$2007: m_data
+$4010: m_dmc
+$4014: m_dma
+$4016: m_joypad1
+$4017: m_frame_counter
+
+--- Summary (in bytes) ---
+- Internal RAM: 335/2048 (16.36%)
diff --git a/.nasm/segments.txt b/.nasm/segments.txt
new file mode 100644
index 0000000..d7be9b6
--- /dev/null
+++ b/.nasm/segments.txt
@@ -0,0 +1,4 @@
+- HEADER: 16/16 (100%)
+- ROM0: 4687/32762 (14.31%)
+- ROMV: 6/6 (100%)
+- ROM2: 8192/8192 (100%)
diff --git a/Makefile b/Makefile
index 640cd02..668dab8 100644
--- a/Makefile
+++ b/Makefile
@@ -21,12 +21,8 @@ CCOPTS ?= --target nes
# Be strict when using xa65, and extra verbose if V=1.
ifeq ($(CC65),xa65)
-ifeq ($(strip $(V)),)
- CCOPTS += --strict
-else
CCOPTS += --strict --stats
endif
-endif
# Ruby is used to generate the files on `config/values/`. If it can't be found,
# a warning will be echo'ed.
@@ -74,7 +70,7 @@ build-full:
$(Q) echo "LEVEL = $(LEVEL)" >> config/generated.s
$(E) " CC jetpac (NTSC)"
- $(Q) $(CC65) $(CCOPTS) src/jetpac.s -C config/nrom.cfg -o "out/Jetpac (NTSC).nes"
+ $(Q) $(CC65) $(CCOPTS) src/jetpac.s -C config/nrom.cfg -o "out/Jetpac (NTSC).nes" 1>/dev/null
.PHONY: build-partial
build-partial:
@@ -84,7 +80,7 @@ build-partial:
$(Q) echo "LEVEL = $(LEVEL)" >> config/generated.s
$(E) " CC jetpac (partial)"
- $(Q) $(CC65) $(CCOPTS) src/jetpac.s -C config/nrom.cfg -o "out/Jetpac (DEV).nes"
+ $(Q) $(CC65) $(CCOPTS) src/jetpac.s -C config/nrom.cfg -o "out/Jetpac (DEV).nes" 1>/dev/null
.PHONY: build-pal
build-pal:
@@ -94,4 +90,4 @@ build-pal:
$(Q) echo "LEVEL = $(LEVEL)" >> config/generated.s
$(E) " CC jetpac (PAL)"
- $(Q) $(CC65) $(CCOPTS) src/jetpac.s -C config/nrom.cfg -o "out/Jetpac (PAL).nes"
+ $(Q) $(CC65) $(CCOPTS) src/jetpac.s -C config/nrom.cfg -o "out/Jetpac (PAL).nes" 1>/dev/null