Skip to navigation

Graphics: pixelBitMask

Name: pixelBitMask [Show more] Type: Variable Category: Graphics Summary: A table for converting a pixel number in the range 0 to 3 into a screen mode 5 bit mask with that pixel's bits set and others clear
Context: See this variable in context in the source code References: This variable is used as follows: * DitherScreenBuffer uses pixelBitMask * DrawRandomDots uses pixelBitMask * DrawSights uses pixelBitMask
.pixelBitMask EQUB %10001000 \ Pixel bit mask with pixel 0 set EQUB %01000100 \ Pixel bit mask with pixel 1 set EQUB %00100010 \ Pixel bit mask with pixel 2 set EQUB %00010001 \ Pixel bit mask with pixel 3 set