1
0
mirror of https://github.com/stid/woz64.git synced 2024-11-28 21:49:28 +00:00
woz64/hardware/vic.asm
2020-01-20 18:09:18 -08:00

40 lines
1019 B
NASM

#importonce
.filenamespace Vic
// https://www.c64-wiki.com/wiki/VIC
// https://www.c64-wiki.com/wiki/Page_208-211
// ========================================================
// ////// CONSTANTS ///////////////////////////////////////
// ========================================================
.label VICREG = $D000
.label CR2 = $D016 // Control register 2
.label INTE = $D01A // Interrupt enabled
.label RCNT = $D012 // Raster counter
* = * "VIC Functions"
init: {
ldx #47
px4:
lda tvic-1, x
sta VICREG-1, x
dex
bne px4
rts
}
* = * "VIC Init Data"
tvic:
.byte $00, $00, $00, $00, $00, $00, $00, $00
.byte $00, $00, $00, $00, $00, $00, $00, $00
.byte $00, $9B, $37, $00, $00, $00, $08, $00
.byte $14, $0F, $00, $00 ,$00, $00, $00, $00
.byte $0E, $06, $01, $02, $03, $04, $00, $01
.byte $02, $03, $04, $05, $06, $07, $4C