Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/coolgirl-multicart/coolgirl-multirom-builder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2020-10-23 18:39:37 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2020-10-23 18:39:37 +0300
commitacb577b1308f56f2f9e1cb6afaf2565aec1f4329 (patch)
treeee1037a241f783621532da947d6528b475d54462 /flash.asm
parent4afa858522d8e200ce3a0ff5a866e65142ddb7db (diff)
Fixes
Diffstat (limited to 'flash.asm')
-rw-r--r--flash.asm18
1 files changed, 4 insertions, 14 deletions
diff --git a/flash.asm b/flash.asm
index 1a9bac3..eb40969 100644
--- a/flash.asm
+++ b/flash.asm
@@ -148,6 +148,7 @@ crc_calc:
tax
rts
+ ; calculate CRC of $8000-$BFFF
crc_calc_16k:
txa
pha
@@ -173,7 +174,7 @@ crc_calc_16k:
tax
rts
- ; calculcate CRC for 128K superbank
+ ; calculcate CRC for current 128K superbank
crc_calc_128k:
txa
pha
@@ -196,8 +197,6 @@ crc_calc_128k:
sta <PRG_SUPERBANK+1
dex
bne .loop
- ; beep sound
- jsr beep_ram
pla
tay
pla
@@ -227,8 +226,8 @@ crc_calc_128m:
inc <COPY_DEST_ADDR
bne .loop
inc <COPY_DEST_ADDR+1
- lda <COPY_DEST_ADDR
- cmp #$64
+ lda <COPY_DEST_ADDR+1
+ cmp #$68
bne .loop
jsr disable_prg_ram
lda #0
@@ -237,12 +236,3 @@ crc_calc_128m:
sta <PRG_SUPERBANK+1
jsr sync_banks
rts
-
- ; beep sound
-beep_ram:
- lda #%00010100
- sta $4015
- sta $4008
- sta $400A
- sta $400B
- rts