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

Vdc module. More...

Namespaces

namespace  Vdc
 

Variables

label VDC_BLACK = 0
 
label VDC_DARK_GRAY = 1
 
label VDC_DARK_BLUE = 2
 
label VDC_LIGHT_BLUE = 3
 
label VDC_DARK_GREEN = 4
 
label VDC_LIGHT_GREEN = 5
 
label VDC_DARK_CYAN = 6
 
label VDC_LIGHT_CYAN = 7
 
label VDC_DARK_RED = 8
 
label VDC_LIGHT_RED = 9
 
label VDC_DARK_PURPLE = 10
 
label VDC_LIGHT_PURPLE = 11
 
label VDC_DARK_YELLOW = 12
 
label VDC_LIGHT_YELLOW = 13
 
label VDC_LIGHT_GRAY = 14
 
label VDC_WHITE = 15
 
label COLOR80 = $CE5C
 
label MODE = $D7
 
label TEXT_SCREEN_80_COL_WIDTH = 80
 
label VDCADR = $D600
 
label VDCDAT = $D601
 
label TOTALE_NUMBER_OF_HORIZONTAL_CHARACTER_POSITIONS = $00
 
label NUMBER_OF_VISIBILE_HORIZONTAL_CHARACTER_POSITIONS = $01
 
label HORIZONTAL_SYNC_POSITION = $02
 
label HORIZONTAL_VERTICAL_SYNC_WIDTH = $03
 
label NUMBER_SCREEN_ROWS = $04
 
label VERTICAL_FINE_ADJUSTMENT = $05
 
label VISIBLE_SCREEN_ROWS = $06
 
label VERTICAL_SYNC_POSITION = $07
 
label INTERLACE_MODE_CONTRO_POSITION = $08
 
label SCANLINES_PER_CHARACTER = $09
 
label CURSOR_MODE_CONTROL = $0A
 
label ENDING_SCAN_LINE = $0B
 
label SCREEN_MEMORY_STARTING_HIGH_ADDRESS = $0C
 
label SCREEN_MEMORY_STARTING_LOW_ADDRESS = $0D
 
label CURSOR_POSITION_HIGH_ADDRESS = $0E
 
label CURSOR_POSITION_LOW_ADDRESS = $0F
 
label LIGHT_PEN_VERTICAL_POSITION = $10
 
label LIGHT_PEN_HORIZONTAL_POSITION = $11
 
label CURRENT_MEMORY_HIGH_ADDRESS = $12
 
label CURRENT_MEMORY_LOW_ADDRESS = $13
 
label ATTRIBUTE_MEMORY_HIGH_ADDRESS = $14
 
label ATTRIBUTE_MEMORY_LOW_ADDRESS = $15
 
label CHARACTER_HORIZONTAL_SIZE_CONTROL = $16
 
label CHARACTER_VERTICAL_SIZE_CONTROL = $17
 
label VERTICAL_SMOOTH_SCROLLING = $18
 
label HORIZONTAL_SMOOTH_SCROLLING = $19
 
label FOREGROUND_BACKGROUND_COLOR = $1A
 
label ADDRESS_INCREMENT_PER_ROW = $1B
 
label CHARACTER_SET_ADDRESS = $1C
 
label UNDERLINE_SCAN_LINE_POSITION = $1D
 
label NUMBER_OF_BYTES_FOR_BLOCK_WRITE_OR_COPY = $1E
 
label MEMORY_READ_WRITE = $1F
 
label BLOCK_COPY_SOURCE_HIGH_ADDRESS = $20
 
label BLOCK_COPY_SOURCE_LOW_ADDRESS = $21
 
label BEGINNING_POSITION_FOR_HORIZONTAL_BLANKING = $22
 
label ENDING_POSITION_FOR_HORIZONTAL_BLANKING = $23
 
label NUMBER_OF_MEMORY_REFRESH_CYCLER_PER_SCANLINE = $24
 
label ATTRIBUTE_ALTERNATE = %10000000
 
label ATTRIBUTE_REVERSE = %01000000
 
label ATTRIBUTE_UNDERLINE = %00100000
 
label ATTRIBUTE_BLINK = %00010000
 

Detailed Description

Vdc module.

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

The Commodore 128 has a VDC chip, which is responsible for controlling the video display. The VDC chip controls the screen resolution, color, character set, and other display parameters.

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

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

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