73 lines
1.1 KiB
ArmAsm
Raw Normal View History

2023-05-15 15:36:45 -04:00
; just a static effect for near-beginning
2023-05-14 01:24:36 -04:00
2023-05-15 15:36:45 -04:00
; note comes in with 6 (jsr) + 6 (rts) + vblank jitter
; wait 24 scanlines lines
; (24*65) = 1560 cycles
; ??-8 = 1560-8 = 1552
effect_static:
2023-05-14 01:24:36 -04:00
; 3 LINES 80-COL TEXT AN3=0 PAGE=2
; intentionally a few cycles short as vblank returns+ a few cycles
2023-05-15 15:36:45 -04:00
; bit SET_TEXT ; 4
; bit PAGE2 ; 4
2023-05-14 01:24:36 -04:00
2023-05-15 15:36:45 -04:00
jsr delay_1544
2023-05-14 01:24:36 -04:00
; 3 LINES 40-COL TEXT AN3=0 PAGE=2
sta CLR80COL ; 4
bit SET_TEXT ; 4
2023-05-15 15:36:45 -04:00
jsr delay_1552 ; 1560 total
2023-05-14 01:24:36 -04:00
; 3 LINES 40-col LORES AN3=0 PAGE=1
bit PAGE1 ; 4
bit SET_GR ; 4
2023-05-15 15:36:45 -04:00
jsr delay_1552 ; 1560 total
2023-05-14 01:24:36 -04:00
; 3 LINES 80-col DLORES AN3=0 PAGE=1
2023-05-15 15:36:45 -04:00
sta LORES ; 4
2023-05-14 01:24:36 -04:00
sta SET80COL ; 4
sta CLRAN3 ; 4
2023-05-15 15:36:45 -04:00
jsr delay_1548 ; 1560 total
2023-05-14 01:24:36 -04:00
; 3 LINES 80-col DLORES AN3=0 PAGE=1
2023-05-15 15:36:45 -04:00
jsr delay_1560
2023-05-14 01:24:36 -04:00
; 3 lines HIRES 40-COL AN3=1 PAGE=2
2023-05-15 15:36:45 -04:00
sta CLR80COL ; 4
2023-05-14 01:24:36 -04:00
sta HIRES ; 4
sta PAGE2 ; 4
2023-05-15 15:36:45 -04:00
sta SETAN3 ; 4
2023-05-14 01:24:36 -04:00
2023-05-15 15:36:45 -04:00
jsr delay_1544
2023-05-14 01:24:36 -04:00
; 3 lines Double-hires AN3=0 PAGE=1
2023-05-15 15:36:45 -04:00
sta PAGE1 ; 4
bit HIRES ; 4
2023-05-14 01:24:36 -04:00
sta SET80COL ; 4 ; set 80 column mode
sta CLRAN3 ; 4 ; doublehireson
2023-05-15 15:36:45 -04:00
jsr delay_1544
2023-05-14 01:24:36 -04:00
; 3 line Double-HIRES
2023-05-15 15:36:45 -04:00
jsr delay_1560
2023-05-14 01:24:36 -04:00
2023-05-15 15:36:45 -04:00
; set 80-column text for next iteration
2023-05-14 01:24:36 -04:00
2023-05-15 15:36:45 -04:00
sta SET_TEXT ; 4
bit PAGE2 ; 4
2023-05-14 01:24:36 -04:00
2023-05-15 15:36:45 -04:00
rts