Skip to content

Commit d3ac516

Browse files
committed
ram_B3 is interesting...
1 parent 8fc4a10 commit d3ac516

4 files changed

Lines changed: 20 additions & 20 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
*.bin
33
*.o
44
# compiling
5-
Makefile
5+
Makefile
6+
# symbols
7+
*.sym

Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ SRC =
77
all: $(BIN)
88

99
LILLY.bin:
10-
$(ASM) $(SRC)/asm/LILLY.asm -f3 -oLILLY.bin
10+
$(ASM) $(SRC)/asm/LILLY.asm -f3 -oLILLY.bin -sLILLY.sym
1111

1212
PlayLilly.bin:
13-
$(ASM) $(SRC)/asm/PlayLilly.asm -f3 -oPlayLilly.bin
13+
$(ASM) $(SRC)/asm/PlayLilly.asm -f3 -oPlayLilly.bin -sPlayLilly.sym
1414

1515
clean:
1616
rm $(BIN)

asm/LILLY.asm

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ ram_AF = $af
148148
; $b0 (i)
149149
ram_B1 = $b1
150150
; $b2 (i)
151-
ram_B3 = $b3
151+
ram_B3 = $b3 ; DECOMP: Controls player drawing, in some way. Find out more later
152152
; $b4 (i)
153153
ram_B5 = $b5
154154
; $b6 (i)
@@ -163,7 +163,7 @@ ram_BE = $be
163163
ram_BF = $bf
164164
ram_C0 = $c0
165165
swimming_X = $c1
166-
ghost_X = $c2
166+
ghost_X = $c2
167167
ram_C3 = $c3
168168
ram_C4 = $c4
169169
ram_C5 = $c5
@@ -198,7 +198,7 @@ ram_E1 = $e1
198198

199199
ram_E3 = $e3
200200
ram_E4 = $e4
201-
audc_ctrl = $e5 ; ex. audc_ctrl = fa, then audc0/audc1 = a
201+
audc_ctrl = $e5 ; DECOMP: ex. audc_ctrl = fa, then audc0/audc1 = a
202202
ram_E6 = $e6
203203
ram_E7 = $e7
204204
ram_E8 = $e8
@@ -871,8 +871,9 @@ Lf446
871871
lda #$0f ;2 *
872872
sta ram_D2 ;3 = 5 *
873873
set_player_dead
874+
; This `ora` statement will always be true because `#$80` is always true.
874875
lda #$80 ;2 *
875-
ora player_is_dead ; If you replace this with `and`, player will not die.
876+
ora player_is_dead ; DECOMP: If you replace this with `and`, player will not die.
876877
sta player_is_dead ;3 = 8 *
877878
Lf450
878879
bit player_is_dead ;3
@@ -1461,7 +1462,7 @@ Lf818
14611462
Lf81b
14621463
.byte $c3 ; $f81b (D)
14631464
.byte $d3 ; $f81c (*)
1464-
Lf81d
1465+
Lf81d ; DECOMP: Related to Jump sound.
14651466
.byte $11,$11,$11,$0e,$0e,$13,$17,$1d ; $f81d (*)
14661467
.byte $1d ; $f825 (*)
14671468

asm/PlayLilly.asm

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
; Disassembly of LILLY.bin
2-
; Disassembled Thu Jun 19 20:32:06 2025
3-
; Using Stella 7.0
4-
;
5-
; ROM properties name : Wilma Wanderer (1983) (ITT Family Games) (PAL)
6-
; ROM properties MD5 : ab10f2974dee73dab4579f0cab35fca6
7-
; Bankswitch type : 4K* (4K)
1+
; SPDX-License-Identifier: CC0-1.0
2+
; Disassembly of LILLY.bin, with comments.
83
;
94
; Legend: * = CODE not yet run (tentative code)
105
; D = DATA directive (referenced in some way)
@@ -230,6 +225,7 @@ ram_EE = $ee
230225

231226
Start = $f1dc
232227
set_player_dead = $f44a
228+
store_ghost_X = $f604
233229

234230

235231
;***********************************************************
@@ -875,8 +871,9 @@ Lf446
875871
lda #$0f ;2 *
876872
sta ram_D2 ;3 = 5 *
877873
set_player_dead
874+
; This `ora` statement will always be true because `#$80` is always true.
878875
lda #$80 ;2 *
879-
ora player_is_dead ; If you replace this with `and`, player will not die.
876+
and player_is_dead ; DECOMP: If you replace this with `and`, player will not die.
880877
sta player_is_dead ;3 = 8 *
881878
Lf450
882879
bit player_is_dead ;3
@@ -1140,9 +1137,9 @@ Lf5ea
11401137
lda ghost_X ;3 *
11411138
sec ;2 *
11421139
sbc #$01 ;2 *
1143-
bcs Lf604 ;2/3 *
1140+
bcs store_ghost_X ;2/3 *
11441141
lda #$9f ;2 = 34 *
1145-
Lf604 ; Stores data into the ghost X position. If you override this, the ghosts will not move.
1142+
store_ghost_X
11461143
sta ghost_X ;3 = 3 *
11471144
Lf606
11481145
jmp Lf62b ;3 = 3 *
@@ -1431,7 +1428,7 @@ Lf7db
14311428
ldy #$1f ;2 *
14321429
bne Lf7f4 ;2/3 = 16 *
14331430
Lf7e9
1434-
ldy Lf81d,x ;4 *
1431+
ldy Lf9b6,x ;4 *
14351432
ldx #$04 ;2 *
14361433
lda ram_E8 ;3 *
14371434
and #$03 ;2 *
@@ -1465,7 +1462,7 @@ Lf818
14651462
Lf81b
14661463
.byte $c3 ; $f81b (D)
14671464
.byte $d3 ; $f81c (*)
1468-
Lf81d
1465+
Lf81d ; DECOMP: Maybe jump SFX?
14691466
.byte $11,$11,$11,$0e,$0e,$13,$17,$1d ; $f81d (*)
14701467
.byte $1d ; $f825 (*)
14711468

0 commit comments

Comments
 (0)