Skip to navigation


Drawing pixels: CTWOS

[Commodore 64 version]

Name: CTWOS [Show more] Type: Variable Category: Drawing pixels Summary: Ready-made double-pixel character row bytes for the dashboard
Context: See this variable in context in the source code References: This variable is used as follows: * DIL2 uses CTWOS

Ready-made bytes for plotting two-pixel points in the dashboard (the bottom part of the screen). There is one extra row to support the use of CTWOS+1,X indexing in the CPIX2 routine. The extra row is a repeat of the first row, and saves us from having to work out whether CTWOS+1+X needs to be wrapped around when drawing a two-pixel dash that crosses from one character block into another. See CPIX2 for more details.
.CTWOS EQUB %11000000 EQUB %00110000 EQUB %00001100 EQUB %00000011 EQUB %11000000