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
  • XML Code
    • Main Elements
    • I/O
    • System
    • A/D Convertor
    • BASIC
    • Batch wav
    • Bootstrap
    • Cassette
    • CD4536B
    • CDP1851
    • CDP1852
    • CDP1854
    • CDP1855
    • CDP1877
    • CDP1878
    • CDP1879
    • Debugger
    • COMX Diagnostic
    • Dip switch
    • Disk
    • EF Buttons
    • Flip Flop
    • Front Panel
    • GUI
    • HEX Modem
    • I/O Group
    • Keyboard
    • Keyfile
    • Locations
    • Memory
    • MM57109
    • Printer
    • RTC
    • Sound
    • Splash
    • USB
    • Video
    • Videodump
    • vt
    • X Modem
  • 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
  • Computer List

 

 

 

 

 

 

 

 

 

 

 

 

COLOR

Format:
COLOR
COLOR (expr1, expr2, expr3)
COLOR (expr1, expr2, expr3, expr4, expr5)

Supported by: Floating Point BASIC 2.2

Similar commands:
COMX BASIC V1.00: COLOR / SCREEN
Pecom 32 BASIC, Pecom 64 BASIC 1.0 and 4.0: COLOR / SCR
Telmac SBASIC v 24.3: COLOR / BKG

BASIC will evaluate these statements as follows:

  • COLOR without any arguments - will sequence through the 4 background colors: BLUE -> BLACK -> GREEN -> RED.
  • COLOR with 3 arguments - BASIC will evaluate the value of expr1 as a color code modulus 7, expr2 and expr3 will be evaluated to determine the X, Y location, from the upper left hand corner, of the byte to be colored. Because of the mirroring effect of the Color card, the byte will be 'reflected' 4 times throughout the display field.
  • COLOR with 5 arguments - operates the same as the previous statement but also uses expr4 and expr5 to calculate X and Y repeats to fill blocks of color areas.

Color Codes:

  1. Black
  2. Red 
  3. Blue
  4. Violet
  5. Green
  6. Yellow
  7. Aqua
  8. White

This command was disabled in the original Floating Point BASIC 2.2 and should only be used if a color card is in the system. To activate the COLOR statement change memory @1323 to #65 and @1329 to #FB.