Skip to content

Commit f3a88cf

Browse files
committed
Enable interrupts. Cycle through all the patterns.
1 parent d2a0d39 commit f3a88cf

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

main.s

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
.include 'monitor.s'
88

99
irq:
10+
pha
11+
12+
lda VDP_REG ; read VDP status to clear 'F', the interrupt flag.
13+
14+
vdp_write_vram (VDP_NAME_TABLE_BASE + VDP_COLS + 1)
15+
16+
pla
17+
sta VDP_VRAM
18+
inc
19+
1020
rti
1121

1222
reset:

vdp.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ vdp_enable_display:
116116

117117
vdp_register_inits:
118118
vdp_register_0: .byte %00000000 ; 0 0 0 0 0 0 M3 EXTVDP
119-
vdp_register_1: .byte %10010000 ;16k Bl IE M1 M2 0 Siz MAG
119+
vdp_register_1: .byte %10110000 ;16k Bl IE M1 M2 0 Siz MAG
120120
vdp_register_2: .byte $00 ; Name table base / $400. $00 = $0000
121121
vdp_register_3: .byte $00 ; Color table base (currently unused)
122122
vdp_register_4: .byte $01 ; Pattern table base / $800. $01 = $0800

0 commit comments

Comments
 (0)