c128lib Labels
Labels definition for C128
Loading...
Searching...
No Matches
cia.asm File Reference

Cia module. More...

Namespaces

namespace  Cia
 

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
 

Detailed Description

Cia module.

This file contains labels that map to the CIA registers of the Commodore 128.; Labels are intended to be used in assembly for 6502 with KickAssembler.

The Commodore 128 has two CIA chips. CIA registers control various aspects of the computer's hardware such as the keyboard, the disk drives, the user port, the datasette port, the RS-232 port.

https://c128lib.github.io/Reference/Cia

https://c128lib.github.io/Reference/DC00

https://c128lib.github.io/Reference/DD00

Author
Raffaele Intorcia raffa.nosp@m.ele..nosp@m.intor.nosp@m.cia@.nosp@m.gmail.nosp@m..com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Date
2024