EMMA 02

XML CODE

  • 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

 

 

 

 

 

 

 

 

 

 

 

 

Ω

Element: frontpanel

Front panel definition, use init="on" to open the front panel on startup of the emulated machine. The multi 7 seg TIL display (type="multitil") definitions are as used for the Cosmicos and Membership Card frontpanels rev L and later.

child element attribute value description
cycle type cycle size Only used with type="multitil", definition of the multi 7 seg TIL display cycle size. Calculated as cycle_size = Hz / ( (1/cpu clock) * 8 )
dirname directory name (text) Location of the multi 7 seg TIL display ROM file; defined as sub-dir of the main Emma 02 data directory. Only used for the Membership Card frontpanels rev L and later. If not specified the dirname specified in 'system' will be used (see also XML - system).
ef pol, q, type ef flag (1 to 4) The type attribute indicates the EF flag function: ready = hex button pressed, in = in button pressed, in_elf = Cosmac Elf in button pressed, start = start button pressed, multitil = multi 7 seg TIL display start. For details about attribute and value usage see XML - I/O
filename high, pol, wait file name (text) Multi 7 seg TIL display ROM filename. Only used for the Membership Card frontpanels rev L and later. When pol="rev", polarity of ROM date is reveresed. Attribute 'high' defines which ROM address line is 1 and 'wait' sets the addressline that follows CPU wait value.
in mask, q, type port (1 to 7) Data input port definition for a hex keypad or a switch panel. When using type="multitil" a TIL input (reset) for a multi 7 seg TIL display will be defined. For details about attribute and value usage see XML - I/O
int CDP1877 PIC interrupt number Specify PIC interrupt number (if used).
item child elements Front panel item, like a led, 7 segment display, button, switch etc.
iogroup group number (8 bit) Front panel iogroup definition. For details about value usage see XML - I/O
out mask, q, type port (1 to 7) Data TIL output port definition. When using type="multitil" a TIL output for a multi 7 seg TIL display will be defined. For details about attribute and value usage see XML - I/O
pos type screen position (x, y) Front panel screen position. Default the values specified are calculated as relative values from top left of the main Emma 02 GUI window. When type="real" is used, the values specified are real window positions. When type="grid" is used, the values specified are grid values relative to the last defined front panel.
Grid example: when the first default front panel position is used (left aligned with the main Emma 02 GUI window) and the next front panel definition uses <pos type="grid">1, 0</pos> it will be next (x=1) to and top aligned (y=0) with the first front panel.
size screen size (x, y) Front panel size.

Element: item

Front panel item, e.g., a led, 7 segment display, button, switch etc.

child element attribute value description
dirname directory name (text) Location of the front panel background image file; defined as sub-dir of the main Emma 02 data directory. If not specified the dirname specified in 'system' will be used (see also XML - system).
filename high, pol, wait file name (text) Front panel background image filename (png).
function action, type item function Buttons and switches:
  • in: IN push button used in combination with bit input buttons.
  • in_switch: IN push button used in combination with bit input switches.
  • run: run push button or flip switch depending on child element type. The type attribute can specify button press behavior with values: boot (follow auto boot setting), reset (same as boot but first reset CPU, switch (flip switch), velf, uc1800 or microtutor.
  • run0: run push button, forcing start at address 0. The type attribute can specify button press behavior with values: boot (boot on address 0) or reset (same as boot but first reset CPU).
  • mp: memory protect push button or flip switch.
  • load: load push button or flip switch depending on child element type.
  • pause: pause push button or flip switch.
  • step: step push button or flip switch. The type attribute can specify value cosmicos to comply with behavior of the Cosmicos step button.
  • reset: reset push button. The type attribute can specify value full to do a complete computer reset (used in CDP18S020, FRED 1/1.5 and RCA COSMAC Microboard).
  • super_monitor: Quest Super Elf monitor push button.
  • super_mp: Quest Super Elf monitor memory protect push button.
  • power: power flip switch, not closing the running computer (like on the Infinite UC1800).
  • stop: power flip switch, closing the running computer.
  • card: FRED card buttons.
  • read: FRED read flip switch.
  • cardswitch: FRED card flip switch.
  • nano_monitor: Oscom Nano monitor push button.
  • wait: wait flip switch button.
  • clear: clear push button.
  • clear_run: clear switch button (like on the Membership Card).
  • clear_reset: clear & reset push button (like on the Microtutor).
  • nvram: nvram diable push button (like on the Cosmicos).
  • dipmp: 4 memory protect dip swicthes.
  • ems: rotating EMS memory swtiche.
  • tmc_ad: TMC-600 A/DI and A/DS input.
  • bitswitch: one of the 8 data bit input switches.
  • efswitch: one of the 4 EF input switches.
  • velf: VELF / JVIP flip switch.
  • hex: one of the 16 hex input buttons.
  • ef: one of the 4 EF input switches.
  • thumb_minus: minus button on a thumb switch.
  • thumb_plus: plus button on a thumb switch.
Leds:
  • powerled.
  • stopled.
  • readyled.
  • errorled.
  • qled.
  • resetled.
  • pauseled.
  • runled.
  • loadled.
  • bitled: one of the 8 data leds. When attribute cycle="show" is used leds show data value on every CPU cycle, when attribute load="show" is used leds show data value on the LOAD fucntion.
  • switchled: one of the 8 data leds linked to the corresponding input switch.
  • buttonled: one of the 8 data leds linked to the corresponding input button.
  • addressled: one of the 16 address leds. When attribute cycle="show" is used leds show address value on every CPU cycle.
  • nibbleled: one of the 2 nibble leds indicating which nibble is active (like on Cosmac Elf keypad).
  • fetchled: SC0 led.
  • executeled: SC1 led.
  • waitled.
  • clearled.
  • dmaled.
  • interruptled.
  • cpustateled: one of the 5 cpu state leds (SC0, SC1, WAIT, CLEAR, DMA or INTERRUPT same function as above 6 dedicated definitions above).
  • datatil: one of the 2 data TIL displays. When attribute cycle="show" is used the til shows the data value on every CPU cycle. When attribute dp="q" is used the dp led will be controlled by the Q flag.
  • addresstil: one of the 4 address TIL displays. When attribute cycle="show" is used the til shows the address value on every CPU cycle.
  • multitil: one of the 8 multi TIL displays.
  • mathled: one of the 2 WTB Board (MM57109) F leds.
Attribute action defines when a button triggers and action (press, release, both). Types switch, dipswitch and rot will default act on releae. Functions in, in_switch, ef and hex will default act on both release and press, Type push will default act on press.
init up / down Initial siwtch button or flip switch position up or down.
label item label (text) Iten label text.
pos item position (x, y) Item position on the front panel.
range range (low, high) Item range. Used for TNC-600 spin controls as well as EF button function
size item size (x, y) Item size.
type color, direction, form, font, size type name Item type name:
  • dipswitch: blue dip switch with 4 switches.
  • led: color led. The attribute form can be: small (default), large, largegreen (red, green orange led), realred (Elf 2000), realgreen, realorange, disable (disabled led).
  • png: background png image.
  • push: push button. The attribut 'size' can be small to define a small button. The attribute 'form' can be rectangle or round. Attribute 'color' can be: red, blue, orange, yellow or green. A round button can only be red or black.
  • rot: rotating switch with 16 positions.
  • spin_adi: TMC-600 A/DI input.
  • spin_adi_volt: TMC-600 A/DI mV input.
  • spin_ads: TMC-600 A/DS input.
  • spin_ads_volt: TMC-600 A/DS mV input.
  • switch: flip switch button. The attribute 'direction' can be vertical (default) or horizontal. The attribute 'form' can be elf2k_power to define a power switch fitting the Elf 2000 background image. Attribute 'color' can be: red (regular vertical switch with a red top), blue, orange, yellow or green. Blue, orange, yellow and green colors will automatically be defined as rectangle buttons.
  • text: panel text. The attribute 'color' can be black (default) or grey.
  • til: TIL display. Attribute form can be: 311 (default), 313, italic (313 italic)
  • thumb_minus: minus button on a thumb switch.
  • thumb_plus: plus button on a thumb switch.
  • thumb_text: text on a thumb switch, with color specifying white or grey text.
value number Defines the value a specific item represents. Handling depends on the function element:
  • dipmp: 0 to 3 to identify one of the 4 memory protect dip swicthes
  • ems: 0 or 1 to identify one of the 2 rotating EMS memory swtiches
  • bitswitch: 0 to 7 to identify one of the data bit input switches
  • efswitch: 0 to 3 to identify one of the EF input switches
  • card: FRED card button value
  • bitled: 0 to 7 to identify data led number
  • addressled: 0 to 15 to identify address led number
  • cpustateled: 0 to 5 to identify cpu state led number (0=SC0, 1=SC1, 2=WAIT, 3=CLEAR, 4=DMA, 5=INTERRUPT)
  • datatil: 0 or 1 to identify one of the 2 data TIL displays.
  • addresstil: 0 to 3 to identify one of the 4 address TIL displays.
  • multitil: 0 to 7 to identify one of the 8 multi TIL displays. When attribute 'address' is specified the address value sets the specified addesss line.