Skip to content

Commit aeb0d0c

Browse files
committed
new initMagic signature
1 parent 03ae5e7 commit aeb0d0c

File tree

2 files changed

+12
-20
lines changed

2 files changed

+12
-20
lines changed

build.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
11
make
22
./tools/flips-linux --create clean.nes tetris.nes tetris.bps
33
stat -c %s tetris.bps
4-
5-
if [ "$1" == "fceux" ]; then
6-
fceux ./tetris.nes
7-
fi
8-
if [ "$1" == "mesen" ]; then
9-
mesen ./tetris.nes
10-
fi

main.asm

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -390,19 +390,19 @@ initRamContinued:
390390
dec tmp2
391391
bpl @zeroOutPages
392392
lda initMagic
393-
cmp #$12
393+
cmp #$54
394394
bne @initHighScoreTable
395395
lda initMagic+1
396-
cmp #$34
396+
cmp #$2D
397397
bne @initHighScoreTable
398398
lda initMagic+2
399-
cmp #$56
399+
cmp #$47
400400
bne @initHighScoreTable
401401
lda initMagic+3
402-
cmp #$78
402+
cmp #$59
403403
bne @initHighScoreTable
404404
lda initMagic+4
405-
cmp #$9A
405+
cmp #$4D
406406
bne @initHighScoreTable
407407
jmp @continueWarmBootInit
408408

@@ -417,15 +417,15 @@ initRamContinued:
417417
jmp @initHighScoreTable
418418

419419
@continueColdBootInit:
420-
lda #$12
420+
lda #$54
421421
sta initMagic
422-
lda #$34
422+
lda #$2D
423423
sta initMagic+1
424-
lda #$56
424+
lda #$47
425425
sta initMagic+2
426-
lda #$78
426+
lda #$59
427427
sta initMagic+3
428-
lda #$9A
428+
lda #$4D
429429
sta initMagic+4
430430
@continueWarmBootInit:
431431
ldx #$89
@@ -1499,7 +1499,7 @@ gameModeState_initGameState:
14991499
sta saveStateDirty
15001500
sta completedLines ; reset during tetris bugfix
15011501

1502-
; OEM continues
1502+
; OEM stuff
15031503
sta tetriminoY
15041504
sta vramRow
15051505
sta fallTimer
@@ -3078,9 +3078,8 @@ incrementLines:
30783078
L9BC7: lda lines
30793079
and #$0F
30803080
bne L9BFB
3081-
jmp L9BD0
30823081

3083-
L9BD0: lda lines+1
3082+
lda lines+1
30843083
sta generalCounter2
30853084
lda lines
30863085
sta generalCounter

0 commit comments

Comments
 (0)