Skip to navigation


Drawing pixels: TWOS

[NES version, Bank 7]

Name: TWOS [Show more] Type: Variable Category: Drawing pixels Summary: Ready-made single-pixel character row bytes for the space view Deep dive: Drawing pixels in the NES version
Context: See this variable in context in the source code References: This variable is used as follows: * DrawHangarWallLine uses TWOS * DrawVerticalLine (Part 2 of 3) uses TWOS * DrawVerticalLine (Part 3 of 3) uses TWOS * LOIN (Part 3 of 7) uses TWOS * LOIN (Part 4 of 7) uses TWOS * LOIN (Part 5 of 7) uses TWOS * PIXEL uses TWOS

Ready-made bytes for plotting one-pixel points the space view. See the PIXEL routine for details.
.TWOS EQUB %10000000 EQUB %01000000 EQUB %00100000 EQUB %00010000 EQUB %00001000 EQUB %00000100 EQUB %00000010 EQUB %00000001 EQUB %10000000 EQUB %01000000