| 1 |
;ACME 0.96.4 |
| 2 |
|
| 3 |
!ifdef lib_cbm_c128_vic_a !eof |
| 4 |
lib_cbm_c128_vic_a = 1 |
| 5 |
|
| 6 |
!source <cbm/c64/vic.a> ; registers 0..2e |
| 7 |
|
| 8 |
; registers only present in the C128 variant of this chip: |
| 9 |
vic_keyboard = vic_base + $2f |
| 10 |
; %76543... always set |
| 11 |
; %.....210 output pins for extended keyboard layout |
| 12 |
vic_clock = vic_base + $30 |
| 13 |
; %765432.. always set |
| 14 |
; %......1. "test" bit: 0 = normal, 1 = system clock changes raster line |
| 15 |
; %.......0 system clock: 0 = 1 MHz, 1 = 2 MHz (VIC bus cycles will be given to CPU instead) |
| 16 |
|
| 17 |
; the c128 ROMs contain two copies of a look-up table to convert vic color |
| 18 |
; values to their corresponding petscii color codes: |
| 19 |
; rom4_* needs "low rom area" enabled ($4000..$7fff) |
| 20 |
; romc_* needs "high rom area" enabled ($c000..$ffff) |
| 21 |
!addr rom4_vic_to_petscii_color_table = $76b5 ; 90 05 1c 9f 9c 1e 1f 9e 81 95 96 97 98 99 9a 9b |
| 22 |
!addr romc_vic_to_petscii_color_table = $ce4c ; 90 05 1c 9f 9c 1e 1f 9e 81 95 96 97 98 99 9a 9b |