EMMA 02

BASIC

  • Home
  • Download
  • Change Log
  • Help
  • Compilation
    • Windows
    • OS X
    • Ubuntu
    • Fedora
    • openSUSE
  • Forums
  • Tape Conversion
  • Machine Code
    • SYSTEM00
    • CDP1801
    • CDP1802
    • CDP1804
    • CDP1805
    • Differences
  • Pseudo Code
    • AMVBAS
    • AM4KBAS
    • CARDTRAN
    • Chip-8, 8X, ETI-660 & Elf
    • FEL-1
    • FPA-1
    • FPL-2
    • FPL-4
    • GPL-2
    • GPL-3
    • GPL-4
    • GPL-A (2K RAM)
    • GPL-A (2K ROM)
    • ST2
    • ST4
    • STK
    • Test-Word
    • Super-chip
  • BASIC
    • General Information
    • COMX BASIC V1.00
    • Floating Point BASIC 2.2
    • Pecom 32 BASIC
    • Pecom 64 BASIC 1.0 & 4.0
    • Quest Super BASIC 1.4
    • Quest Super BASIC 3.0
    • Quest Super BASIC 5.0
    • Quest Super BASIC 6.0
    • RCA BASIC3 V1.1
    • Telmac SBASIC v24.3
    • Error Messages
  • CDP18S020
    • General Information
    • I/O Map
  • Cidelsa
    • General Information
    • I/O Map
    • Memory
    • Video
    • Sound
  • COMX-35
    • General Information
    • F&M
    • Did You Know...?
    • I/O Map
    • Memory
    • Video
    • Sound
    • Keyboard
    • Cassette
    • Expansion Box
    • Disk
    • Printers
    • Thermal
    • PL-80
    • 32K RAM
    • 80 Column
    • F&M EPROM
    • F&M Joy Card
    • Super Board
    • COMX BASIC V1.00
  • COMIX-35
  • Cosmac Elf
    • General Information
    • I/O Map
  • Cosmac Elf 2000
    • General Information
    • I/O Map
    • Memory
    • Video
  • Cosmac Vip
    • General Information
    • I/O Map
    • Memory
    • Video
    • Sound
    • Keyboard
    • Cassette
    • STK
    • Chip-8 and 8X
    • Test-Word
    • Floating Point BASIC 2.2
  • Cosmac Vip II
    • General Information
    • I/O Map
    • Floating Point BASIC 2.2
  • Cosmicos
    • General Information
    • I/O Map
  • FRED 1
    • General Information
    • I/O Map
    • Cassette
    • CARDTRAN Syntax
  • FRED 1.5
    • General Information
    • I/O Map
    • Cassette
    • FPL-2
    • FPL-4
    • FEL-1
  • HUG1802/ETI-660
    • General Information
    • I/O Map
    • Memory
    • Video
    • Sound
    • Keyboard
    • Cassette
    • Chip-8 ETI-660
  • Infinite
    • General Information
    • I/O Map
  • MCDS
    • General Information
    • I/O Map
  • Membership Card
    • General Information
    • I/O Map
  • Microboard
    • General Information
    • I/O Map
  • Microtutor
    • General Information
    • I/O Map
  • Microtutor II
    • General Information
    • I/O Map
  • MS2000
    • General Information
    • I/O Map
  • Netronics Elf II
    • General Information
    • I/O Map
    • Keyboard
  • Oscom Nano
    • General Information
    • I/O Map
    • Memory
    • Video
    • Sound
    • Keyboard
    • Casette
  • Pecom 32 and 64
    • General Information
    • Software
    • I/O Map
    • Memory
    • Video
    • Sound
    • Keyboard
    • Casette
    • Pecom 32 BASIC
    • Pecom 64 BASIC 1.0 & 4.0
  • Pico/Elf V2
    • General Information
    • I/O Map
  • Quest Super Elf
    • General Information
    • I/O Map
  • RCA Coin Arcade
    • General Information
    • I/O Map
    • Memory
    • GPL-A (2K RAM)
    • GPL-A (2K ROM)
    • GPL-2
    • GPL-3
    • GPL-4
  • RCA Studio II
    • General Information
    • I/O Map
    • Memory
    • Video
    • Keyboard
    • ST2
  • RCA Studio III
    • General Information
    • I/O Map
    • Memory
    • Video
    • Keyboard
  • RCA Studio IV
    • General Information
    • I/O Map
    • Memory
    • Video
    • Keyboard
    • ST4 Syntax
  • Telmac TMC-600
    • General Information
    • Software
    • I/O Map
    • Memory
    • Video
    • Sound
    • Keyboard
    • Cassette
    • Telmac SBASIC v24.3
  • Telmac 1800
    • General Information
    • I/O Map
    • Memory
    • Video
    • Keyboard
    • Cassette
  • Telmac 2000
    • General Information
    • I/O Map
    • Memory
    • Video
    • Sound
    • Keyboard
    • Cassette
  • VELF
    • General Information
    • I/O Map
    • BIOS
    • Video
    • Keyboard
  • VIP2K MC
    • General Information
    • I/O Map
    • Memory
    • Video
    • Chip 8
  • Visicom COM-100
    • General Information
    • I/O Map
    • Memory
    • Video
    • Keyboard

 

 

 

 

 

 

 

 

 

 

 

 

COLOR

Format: COLOR (Y, Z, X)

Supported by: Pecom 32 BASIC, Pecom 64 BASIC 1.0 and 4.0

Similar commands:
COMX BASIC V1.00: COLOR
Floating Point BASIC 2.2: COLOR
Telmac SBASIC v 24.3: COLOR

The Pecom 64 BASIC 1.0 and 4.0 characters are in 2 different colour sets, selectable by the highest bit (PCB) of the character number itself. So characters 0 to 127 are the same as characters 128 to 255 in different colours.

The COLOR command is in the format, COLOR (Y, Z, X), where X is a numeric expression which determines the color combination to be used for the 2 characters sets. The colour combinations for different values of X are given in table 1 below. Y and Z specify the character range to be changed.

Now, try the command

COLOR (65, 66, 9)

followed by pressing CR, and note that characters A and B have turned blue. Try some other commands with the "9" replaced by any number from 0 to 11 inclusive. Observe the colour changes and compare them with table 1 below. Note that COLOR (0) corresponds to the default character colours.

X

CHARACTER < 128

CHARACTER >= 128

0

BLACK

 

GREEN

 

1

RED

 

YELLOW

 

2

BLUE

 

CYAN

 

3

MAGENTA

 

WHITE

 

4

BLACK

 

BLUE

 

5

RED

 

MAGENTA

 

6

GREEN

 

CYAN

 

7

YELLOW

 

WHITE

 

8

BLACK

 

RED

 

9

BLUE

 

MAGENTA

 

10

GREEN

 

YELLOW

 

11

CYAN

 

WHITE

 

Table 1: Colour Schemes for COLOR (Y, Z, X)

NOTE: For this to work only values X: 0 to 3, 4 to 7 or 8 to 11 should be mixed. This as these ranges actually use different values of COLB0/COLB1 and as such change the colour set used for all characters. For example COLOR (65, 65, 9) will change character A to blue but after COLOR (66, 66, 6) B will indeed be green but also A will change to red (X = 5).

The COLOR command is performing the following logic: The X value is actually mapped to CCB0/CCB1 (by writing character RAM, i.e. 'shaping' all specified characters) and COLB1/COLB0 (OUT 3, bit 5/6) of the CDP1870. See also the Video Interface System page and table 2 below.

C0LB1

COLBO

RED

BLUE

GREEN

X

0

0

CCBO

CCB1

PCB

0 to 3

0

1

CCBO

PCB

CCB1

4 to 7

1

0

PCB

CCBO

CCB1

8 to 11

1

1

PCB

CCBO

CCB1

 

Table 2: COLB1/COLB0 to X mapping