diff --git a/mode7_demo/credits.s b/mode7_demo/credits.s index 4c438cf2..8ab0ef79 100644 --- a/mode7_demo/credits.s +++ b/mode7_demo/credits.s @@ -297,6 +297,7 @@ credits: .asciiz "CORNELL GCF" .byte 8 ; 21 .asciiz "ALL MSTIES EVERYWHERE" +;.asciiz "AAAAAAAAAAAAAAAAAAAAA" .byte 17 ; 3 .asciiz "..." diff --git a/mode7_demo/interrupt_handler.s b/mode7_demo/interrupt_handler.s index 96fe928e..f930b55e 100644 --- a/mode7_demo/interrupt_handler.s +++ b/mode7_demo/interrupt_handler.s @@ -127,6 +127,8 @@ mb_no_write_right: ;===================================== ; Copy registers to old ;===================================== + ; 11 coming in + ldx #10 ; 2 mb_reg_copy: lda REGISTER_DUMP,X ; load register value ; 4 @@ -231,10 +233,14 @@ mb_load_values: ;========================================= ; if NOISE is $ff then we are done - lda NOISE ; 3 + lda NOISE ; 3 bpl mb_not_done ; 3/2nt - jmp quiet_exit ; 3 +; lda #1 + sta DONE_PLAYING + jsr clear_ay_both + + jmp done_interrupt ; 3 ;=========== ; typ 6 mb_not_done: @@ -246,7 +252,7 @@ mb_not_done: increment_offset: inc MB_CHUNK_OFFSET ; increment offset ; 5 - bne increment_done ; if not zero, done ; 3/2nt + bne increment_done ; if not zero, done ; 3/2nt inc WHICH_CHUNK lda WHICH_CHUNK @@ -268,12 +274,7 @@ increment_done: ;================================= done_interrupt: - jmp exit_interrupt -quiet_exit: - lda #1 - sta DONE_PLAYING - jsr clear_ay_both exit_interrupt: diff --git a/mode7_demo/mode7.s b/mode7_demo/mode7.s index 0e7f1b86..f4bfa772 100644 --- a/mode7_demo/mode7.s +++ b/mode7_demo/mode7.s @@ -1214,7 +1214,7 @@ fixed_sin_scale: .byte $ff,$f4 ; we can guarantee 4 cycle indexed reads if we page-aligned this -;.align 256 +.align 256 horizontal_lookup: .byte $0C,$0B,$0A,$09,$09,$08,$08,$07,$07,$06,$06,$06,$05,$05,$05,$05 .byte $04,$04,$04,$04,$04,$04,$04,$03,$03,$03,$03,$03,$03,$03,$03,$03 diff --git a/mode7_demo/mode7_decompress.s b/mode7_demo/mode7_decompress.s index 64313ec9..7c902cbb 100644 --- a/mode7_demo/mode7_decompress.s +++ b/mode7_demo/mode7_decompress.s @@ -60,11 +60,6 @@ start: lda #>(data) sta LZ4_SRC+1 -; lda #<(data_end-data+LZ4_DATA_BEGIN) -; sta LZ4_END -; lda #>(data_end-data+LZ4_DATA_BEGIN) -; sta LZ4_END+1 - lda #<(data_end) sta LZ4_END lda #>(data_end) @@ -74,12 +69,14 @@ lz4_decode: lda #>UNPACK_BUFFER ; original unpacked data offset sta LZ4_DST+1 - lda #