Datasheet
4D SYSTEMS GOLDELOX Processor
© 2012 4D SYSTEMS Page 15 of 25 www.4dsystems.com.au
GOLDELOX PROCESSOR
*NOTES:
SYSTEM
SYSTEM registers are maintained by internal system functions and should not be
written to. They should only ever be read.
DO NOT WRITE to these registers.
USER
USER registers are read/write (R/W) registers used to alter the system
behaviour. Refer to the individual functions for information on the interaction
with these registers.
USERSTACK
Used by the debugging and system extension utilities
MEMORY
255 word size variables for users program
STACK
128 word EVE system stack (STACK grows upwards)
FLAGS
FLAGS are a mixture of bits that are either maintained by internal system
functions or set / cleared by various system functions. Refer to the FLAGS
Register Bit Map table, and individual functions for further details.
These registers are accessible with peekW and pokeW functions.
Table 5.3: FLAG Registers Bit Map
REGISTER
ADDRESS
NAME USAGE *NOTES VALUE
DEC
HEX
SYS_FLAGS1
126
0x7E
* denotes auto reset
Bit 0
_STREAMLOCK
Used internally
SYSTEM
0x0001
Bit 1
_PENSIZE
Object, 0 = solid, 1 = outline
SYSTEM
0x0002
Bit 2
_OPACITY
Text, 0 = transparent, 1 = opaque
SYSTEM
0x0004
Bit 3
_OUTLINED
box/circle outline 0 = off, 1 = on
SYSTEM
0x0008
Bit 4
_BOLD
* text, 0 = normal, 1 = bold
SYSTEM
0x0010
Bit 5
_ITALIC
* Text, 0 = normal, 1 = italic
SYSTEM
0x0020
Bit 6
_INVERSE
* Text, 0 = normal, 1 = inverse
SYSTEM
0x0040
Bit 7
_UNDERLINED
* Text, 0 = normal, 1 = underlined
SYSTEM
0x0080
Bit 8
_CLIPPING
0 = clipping off, 1 = clipping on
SYSTEM
0x0100
Bit 9
_STRMODE
Used internally
SYSTEM
0x0200
Bit 10
_SERMODE
Used internally
SYSTEM
0x0400
Bit 11
_TXTMODE
Used internally
SYSTEM
0x0800
Bit 12
_MEDIAMODE
Used internally
SYSTEM
0x1000
Bit 13
_PATTERNED
Used internally
SYSTEM
0x2000
Bit 14
_COLOUR8
Display mode, 0 = 16bit, 1 = 8bit
SYSTEM
0x4000
Bit 15
_MEDIAFONT
0 = internal font, 1 = media font
SYSTEM
0x8000
SYS_FLAGS2
127
0x7F
Bit 0 _MEDIA_INSTALLED
SD or FLASH device is
detected/active
SYSTEM 0x0001
Bit 1
_MEDIA_TYPE
0 = SD, 1 = FLASH chip
SYSTEM
0x0002
Bit 2
_MEDIA_READ
1 = MEDIA read in progress
SYSTEM
0x0004
Bit 3
_MEDIA_WRITE
1 = MEDIA write in progress
SYSTEM
0x0008
Bit 4
_OW_PIN
0 = IO1, 1 = IO2 (Dallas OW Pin)
SYSTEM
0x0010
Bit 5
_PTR_TYPE
Used internally
SYSTEM
0x0020
Bit 6
_TEMP1
Used internally
SYSTEM
0x0040
Bit 7
_TEMP2
Used internally
SYSTEM
0x0080
Bit 8
_RUNMODE
1 = running pcode from media
SYSTEM
0x0100
Bit 9
_SIGNED
0 = number printed '-' prepend
SYSTEM
0x0200
Bit 10
_RUNFLAG
1 = EVE processor is running
SYSTEM
0x0400
Bit 11
_SINGLESTEP
1 = set breakpoint for debugger
SYSTEM
0x0800
Bit 12
_COMMINT
1 = buffered coms active
SYSTEM
0x1000
Bit 13
_DUMMY16
1 = display needs 16bit dummy
SYSTEM
0x2000
Bit 14
_DISP16
1 = display is 16bit interface
SYSTEM
0x4000
Bit 15
_PROPFONT
1 = current font is proportional
SYSTEM
0x8000