diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2020-10-23 18:39:37 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2020-10-23 18:39:37 +0300 |
commit | acb577b1308f56f2f9e1cb6afaf2565aec1f4329 (patch) | |
tree | ee1037a241f783621532da947d6528b475d54462 /flash.asm | |
parent | 4afa858522d8e200ce3a0ff5a866e65142ddb7db (diff) |
Fixes
Diffstat (limited to 'flash.asm')
-rw-r--r-- | flash.asm | 18 |
1 files changed, 4 insertions, 14 deletions
@@ -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 |