jmce - 1_02

jmce.philips
Class SAA5050

java.lang.Object
  extended by jmce.sim.AbstractHardware
      extended by jmce.sim.AbstractPeripheral
          extended by jmce.philips.SAA5050
All Implemented Interfaces:
Hardware, MemoryWriteListener, Peripheral, SwingHardware

public class SAA5050
extends AbstractPeripheral
implements SwingHardware, MemoryWriteListener

Teletext characters generator Malland SAA5050

Can generate 96 alphanumeric and 64 ghaphics character. In addtition the first 32 character are used as control to determine the attribute of the character.

Control codes

 00  Unused                            10  Unused
 01  Alpha Red                         11  Graphics Red
 02  Alpha Green                       12  Graphics Green
 03  Alpha Yellow                      13  Graphics Yellow
 04  Alpha Blue                        14  Graphics Blue
 05  Alpha Magenta                     15  Graphics Magenta
 06  Alpha Cyan                        16  Graphics Cyan
 07  Alpha White*                      17  Graphics White
 08  Flash                             18  Conceal Display
 09  Steady(1)                         19  Contiguous Graphics(1)
 0A  End Box(1)                        1A  Separated Graphics
 0B  Start Box                         1B  Unused
 0C  Normal Height(1)                  1C  Black Background
 0D  Double Height                     1D  New Background
 0E  Unused                            1E  Hold Graphics
 0F  Unused                            1F  Release Graphics(1)
 (1) Default setting

Property

dotSize Set the size in pixel of a single dot. Default is 2.

Since:
1.01
Version:
1.00
Author:
Mario Viara

Field Summary
static java.awt.Color[] colors
           
 
Fields inherited from class jmce.sim.AbstractPeripheral
cpu
 
Constructor Summary
SAA5050()
           
 
Method Summary
 java.awt.Component getComponent()
           
 int getScroll()
          Get the scroll register.
 void registerCPU(CPU cpu)
          Register a parent CPU for future reference.
 void setAddress(int a)
           
 void setMemory(Memory m)
           
 void setScroll(int scroll)
          Set the scroll register.
 void writeMemory(Memory m, int address, int value, int oldValue)
          Called when a memory write event occours.
 
Methods inherited from class jmce.sim.AbstractPeripheral
idle, setIdle, setLive
 
Methods inherited from class jmce.sim.AbstractHardware
addHardware, createFrame, destroy, getHardware, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareForName, getHardwareInstances, getHardwareTree, getName, getParent, init, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jmce.sim.Hardware
addHardware, destroy, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareInstances, getHardwareTree, getName, getParent, init, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName
 

Field Detail

colors

public static final java.awt.Color[] colors
Constructor Detail

SAA5050

public SAA5050()
Method Detail

setMemory

public void setMemory(Memory m)

setAddress

public void setAddress(int a)

getComponent

public java.awt.Component getComponent()
Specified by:
getComponent in interface SwingHardware

getScroll

public int getScroll()
Get the scroll register.


setScroll

public void setScroll(int scroll)
Set the scroll register.

The scroll register determine the first character that will be displayed.


registerCPU

public void registerCPU(CPU cpu)
                 throws SIMException
Description copied from interface: Peripheral
Register a parent CPU for future reference.

Specified by:
registerCPU in interface Peripheral
Overrides:
registerCPU in class AbstractPeripheral
Throws:
SIMException

writeMemory

public void writeMemory(Memory m,
                        int address,
                        int value,
                        int oldValue)
                 throws SIMException
Description copied from interface: MemoryWriteListener
Called when a memory write event occours.

This method is called when a memory write operation occours in the specified memory.

Specified by:
writeMemory in interface MemoryWriteListener
Parameters:
m - - Memory involved in the write operation.
address - - Address written.
value - - Value written.
oldValue - - Old value of this memory location.
Throws:
SIMException

jmce - 1_02