SCREEN CODES (TED text modes)
The Screen memory starts at 3072 by default.
The color/attribute memory starts at 2048 by default.
Normal Text (the default) (8x8 pixel characters)
● Screen memory: Bits 0-6 is one of 128 characters and bit 7 is reverse on/off.
● Color memory: Bits 0-3: Color, Bits 4-6: luminance, Bit 7: Flash on/off
Examples: Poke 3072,1 (puts an A at top left screen position)
Poke 3073,2+128 (puts a reverted B beside it)
Poke 2048,128+2+5*16 (makes the A light red and blinking)
256 Char display (8x8 pixel characters)
Turn on with Poke 65287,peek(65287) OR 128
● Screen memory: Bits 0-7 is one of 256 characters.
● Color memory: Bits 0-3: Color, Bits 4-6: luminance, Bit 7: Flash on/off
Multi Color (4x8 pixel characters)
With multicolor (lo-res) turned on, you have to design your own characters where
every byte is built of four bit pairs = 4 pixels. Every pixel is in memory two
bits, so there are four different combinations, 00, 01, 10, and 11 which each
represent a different color.
Turn on with poke 65287,peek(65287)or16
● Screen memory: Bits 0-7 is one of 256 characters.
● Color memory:
Bit 3: Multicolor on/off. (Both multicolor (4x8) characters and
hires (8x8) characters can be displayed on the same screen.)
Bits 0-2 Color and
bits 4-6 luminance for the "11"-pixels in the charter set.
For the rest of the combinations:
"00"=background (color 0) (address 65301 bits 0-3 color and 4-6 luminance),
"01"=color 3 (address 65302) and "10"=(address 65303).
Extended Color (8x8 pixel characters)
(This means you can have different background colors to different hires
characters on the same screen)
Turn on with Poke 65286, peek(65286)or64
● Screen memory:
Bits 0-5 is one of 64 characters.
Bits 6-7 is background color for the character:
"00"= normal background (color 0) (65301 bits 0-3 color and 4-6 luminance),
"01"= color 3 (65302), "10"= (65303) and "11"= (65304).
● Color memory:
Bit 3: Extended color on/off.
Bits 0-2 Foreground Color and
bits 4-6 luminance.
(There are also two bitmap modes: Hires (320x200) and Multicolor (160x200). These
are easiest used from basic with the GRAPHIC command. The only text modes that
works with "split screen" seems to be Normal Text and 256 char display.)
3
Komentarze do niniejszej Instrukcji