c128lib Chipset
Various chipset functionalities.
Loading...
Searching...
No Matches
Cia Namespace Reference

Variables

label CIA1 = $DC00
 
label CIA1_DATA_PORT_A = CIA1 + $00
 
label CIA1_DATA_PORT_B = CIA1 + $01
 
label CIA1_DATA_DIR_A = CIA1 + $02
 
label CIA1_DATA_DIR_B = CIA1 + $03
 
label CIA1_TIMER_A_LO = CIA1 + $04
 
label CIA1_TIMER_A_HI = CIA1 + $05
 
label CIA1_TIMER_B_LO = CIA1 + $06
 
label CIA1_TIMER_B_HI = CIA1 + $07
 
label CIA1_TOD_SEC10 = CIA1 + $08
 
label CIA1_TOD_SEC = CIA1 + $09
 
label CIA1_TOD_MIN = CIA1 + $0A
 
label CIA1_TOD_HOUR = CIA1 + $0B
 
label CIA1_IO_BUFFER = CIA1 + $0C
 
label CIA1_IRQ_CONTROL = CIA1 + $0D
 
label CIA1_CONTROL_A = CIA1 + $0E
 
label CIA1_CONTROL_B = CIA1 + $0F
 
label CIA2 = $DD00
 
label CIA2_DATA_PORT_A = CIA2 + $00
 
label CIA2_DATA_PORT_B = CIA2 + $01
 
label CIA2_DATA_DIR_A = CIA2 + $02
 
label CIA2_DATA_DIR_B = CIA2 + $03
 
label CIA2_TIMER_A_LO = CIA2 + $04
 
label CIA2_TIMER_A_HI = CIA2 + $05
 
label CIA2_TIMER_B_LO = CIA2 + $06
 
label CIA2_TIMER_B_HI = CIA2 + $07
 
label CIA2_TOD_SEC10 = CIA2 + $08
 
label CIA2_TOD_SEC = CIA2 + $09
 
label CIA2_TOD_MIN = CIA2 + $0A
 
label CIA2_TOD_HOUR = CIA2 + $0B
 
label CIA2_IO_BUFFER = CIA2 + $0C
 
label CIA2_IRQ_CONTROL = CIA2 + $0D
 
label CIA2_CONTROL_A = CIA2 + $0E
 
label CIA2_CONTROL_B = CIA2 + $0F
 
label JOY_UP = %00001
 
label JOY_DOWN = %00010
 
label JOY_LEFT = %00100
 
label JOY_RIGHT = %01000
 
label JOY_FIRE = %10000
 
label BANK_0 = %00000011
 
label BANK_1 = %00000010
 
label BANK_2 = %00000001
 
label BANK_3 = %00000000
 

Variable Documentation

◆ CIA1

label CIA1 = $DC00

I/O port data registers D1PRA https://c128lib.github.io/Reference/DC00

◆ CIA1_DATA_PORT_A

label CIA1_DATA_PORT_A = CIA1 + $00

I/O port data registers D1PRA https://c128lib.github.io/Reference/DC00#DC00

◆ CIA1_DATA_PORT_B

label CIA1_DATA_PORT_B = CIA1 + $01

I/O port data registers D1PRB https://c128lib.github.io/Reference/DC00#DC01

◆ CIA1_DATA_DIR_A

label CIA1_DATA_DIR_A = CIA1 + $02

Data direction registers D1DDRA https://c128lib.github.io/Reference/DC00#DC02

◆ CIA1_DATA_DIR_B

label CIA1_DATA_DIR_B = CIA1 + $03

Data direction registers D1DDRB https://c128lib.github.io/Reference/DC00#DC03

◆ CIA1_TIMER_A_LO

label CIA1_TIMER_A_LO = CIA1 + $04

Timer A latch/counter registers D1T1L https://c128lib.github.io/Reference/DC00#DC04

◆ CIA1_TIMER_A_HI

label CIA1_TIMER_A_HI = CIA1 + $05

Timer A latch/counter registers D1T1H https://c128lib.github.io/Reference/DC00#DC05

◆ CIA1_TIMER_B_LO

label CIA1_TIMER_B_LO = CIA1 + $06

Timer B latch/counter registers D1T2L https://c128lib.github.io/Reference/DC00#DC06

◆ CIA1_TIMER_B_HI

label CIA1_TIMER_B_HI = CIA1 + $07

Timer B latch/counter registers D1T2H https://c128lib.github.io/Reference/DC00#DC07

◆ CIA1_TOD_SEC10

label CIA1_TOD_SEC10 = CIA1 + $08

Time-of-day clock registers D1TOD1 https://c128lib.github.io/Reference/DC00#DC08

◆ CIA1_TOD_SEC

label CIA1_TOD_SEC = CIA1 + $09

Time-of-day clock registers D1TODS https://c128lib.github.io/Reference/DC00#DC09

◆ CIA1_TOD_MIN

label CIA1_TOD_MIN = CIA1 + $0A

Time-of-day clock registers D1TODM https://c128lib.github.io/Reference/DC00#DC0A

◆ CIA1_TOD_HOUR

label CIA1_TOD_HOUR = CIA1 + $0B

Time-of-day clock registers D1TODH *https://c128lib.github.io/Reference/DC00#DC0B

◆ CIA1_IO_BUFFER

label CIA1_IO_BUFFER = CIA1 + $0C

◆ CIA1_IRQ_CONTROL

label CIA1_IRQ_CONTROL = CIA1 + $0D

Interrupt control register D1ICR https://c128lib.github.io/Reference/DC00#DC0D

◆ CIA1_CONTROL_A

label CIA1_CONTROL_A = CIA1 + $0E

◆ CIA1_CONTROL_B

label CIA1_CONTROL_B = CIA1 + $0F

◆ CIA2

label CIA2 = $DD00

I/O port data registers D2PRA https://c128lib.github.io/Reference/DD00

◆ CIA2_DATA_PORT_A

label CIA2_DATA_PORT_A = CIA2 + $00

I/O port data registers D2PRA https://c128lib.github.io/Reference/DD00#DD00

◆ CIA2_DATA_PORT_B

label CIA2_DATA_PORT_B = CIA2 + $01

I/O port data registers D2PRB https://c128lib.github.io/Reference/DD00#DD01

◆ CIA2_DATA_DIR_A

label CIA2_DATA_DIR_A = CIA2 + $02

Data direction registers D2DDRA https://c128lib.github.io/Reference/DD00#DD02

◆ CIA2_DATA_DIR_B

label CIA2_DATA_DIR_B = CIA2 + $03

Data direction registers D2DDRA https://c128lib.github.io/Reference/DD00#DD03

◆ CIA2_TIMER_A_LO

label CIA2_TIMER_A_LO = CIA2 + $04

Timer A latch/counter registers D2T1L https://c128lib.github.io/Reference/DD00#DD04

◆ CIA2_TIMER_A_HI

label CIA2_TIMER_A_HI = CIA2 + $05

Timer A latch/counter registers D2T1H https://c128lib.github.io/Reference/DD00#DD05

◆ CIA2_TIMER_B_LO

label CIA2_TIMER_B_LO = CIA2 + $06

Timer B latch/counter registers D2T2L https://c128lib.github.io/Reference/DD00#DD06

◆ CIA2_TIMER_B_HI

label CIA2_TIMER_B_HI = CIA2 + $07

Timer B latch/counter registers D2T2H https://c128lib.github.io/Reference/DD00#DD07

◆ CIA2_TOD_SEC10

label CIA2_TOD_SEC10 = CIA2 + $08

Time-of-day clock registers D2TOD1 https://c128lib.github.io/Reference/DD00#DD08

◆ CIA2_TOD_SEC

label CIA2_TOD_SEC = CIA2 + $09

Time-of-day clock registers D2TODS https://c128lib.github.io/Reference/DD00#DD09

◆ CIA2_TOD_MIN

label CIA2_TOD_MIN = CIA2 + $0A

Time-of-day clock registers D2TODM https://c128lib.github.io/Reference/DD00#DD0A

◆ CIA2_TOD_HOUR

label CIA2_TOD_HOUR = CIA2 + $0B

Time-of-day clock registers D2TODH https://c128lib.github.io/Reference/DD00#DD0B

◆ CIA2_IO_BUFFER

label CIA2_IO_BUFFER = CIA2 + $0C

◆ CIA2_IRQ_CONTROL

label CIA2_IRQ_CONTROL = CIA2 + $0D

Interrupt control register D2ICR https://c128lib.github.io/Reference/DD00#DD0D

◆ CIA2_CONTROL_A

label CIA2_CONTROL_A = CIA2 + $0E

◆ CIA2_CONTROL_B

label CIA2_CONTROL_B = CIA2 + $0F

◆ JOY_UP

label JOY_UP = %00001

Mask for joystick up direction detection

◆ JOY_DOWN

label JOY_DOWN = %00010

Mask for joystick down direction detection

◆ JOY_LEFT

label JOY_LEFT = %00100

Mask for joystick left direction detection

◆ JOY_RIGHT

label JOY_RIGHT = %01000

Mask for joystick right direction detection

◆ JOY_FIRE

label JOY_FIRE = %10000

Mask for joystick fire pressed detection

◆ BANK_0

label BANK_0 = %00000011

Mask for Vic-2 bank 0 selection ($0000-$3FFF)

◆ BANK_1

label BANK_1 = %00000010

Mask for Vic-2 bank 1 selection ($4000-$7FFF)

◆ BANK_2

label BANK_2 = %00000001

Mask for Vic-2 bank 2 selection ($8000-$BFFF)

◆ BANK_3

label BANK_3 = %00000000

Mask for Vic-2 bank 3 selection ($C000-$FFFF)