1
0
mirror of https://github.com/stid/woz64.git synced 2024-06-06 06:29:27 +00:00
woz64/hardware/vic.asm

40 lines
1019 B
NASM
Raw Normal View History

2020-01-20 07:32:37 +00:00
#importonce
.filenamespace Vic
// https://www.c64-wiki.com/wiki/VIC
// https://www.c64-wiki.com/wiki/Page_208-211
// ========================================================
// ////// CONSTANTS ///////////////////////////////////////
// ========================================================
.label VICREG = $D000
2020-01-21 02:09:18 +00:00
.label CR2 = $D016 // Control register 2
.label INTE = $D01A // Interrupt enabled
.label RCNT = $D012 // Raster counter
2020-01-20 07:32:37 +00:00
* = * "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