Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Goldelox_Const4D.h
00001 // undef windows definitions that are also 4DGL definitions 00002 #ifdef TRANSPARENT 00003 #undef TRANSPARENT 00004 #endif 00005 #ifdef OPAQUE 00006 #undef OPAQUE 00007 #endif 00008 #ifdef BAUD_110 00009 #undef BAUD_110 00010 #endif 00011 #ifdef BAUD_300 00012 #undef BAUD_300 00013 #endif 00014 #ifdef BAUD_600 00015 #undef BAUD_600 00016 #endif 00017 #ifdef BAUD_1200 00018 #undef BAUD_1200 00019 #endif 00020 #ifdef BAUD_2400 00021 #undef BAUD_2400 00022 #endif 00023 #ifdef BAUD_4800 00024 #undef BAUD_4800 00025 #endif 00026 #ifdef BAUD_9600 00027 #undef BAUD_9600 00028 #endif 00029 #ifdef BAUD_14400 00030 #undef BAUD_14400 00031 #endif 00032 #ifdef BAUD_19200 00033 #undef BAUD_19200 00034 #endif 00035 #ifdef BAUD_38400 00036 #undef BAUD_38400 00037 #endif 00038 #ifdef BAUD_57600 00039 #undef BAUD_57600 00040 #endif 00041 #ifdef BAUD_115200 00042 #undef BAUD_115200 00043 #endif 00044 00045 #ifdef TEXT 00046 #undef TEXT 00047 #endif 00048 00049 /* 00050 //---------------------------------- 00051 // 4DGL - GOLDELOX-GFX2 PLATFORM 00052 //---------------------------------- 00053 00054 00055 */ 00056 /* 00057 System Primitives for 4DGL GOLDELOX GFX2 Platform 00058 */ 00059 00060 00061 //==============================================// 00062 // initialization table additional commands // 00063 //==============================================// 00064 #define INIT_TABLE_END 0xFF // end of initialization table marker 00065 #define INIT_TABLE_DELAY 0xFE // insert delay value 00066 #define INIT_TABLE_16BIT_INDEX_REG_MODE 0xFD // 16 bit display index register 00067 #define INIT_TABLE_8BIT_INDEX_REG_MODE 0xFC // 8 bit display index register 00068 #define INIT_TABLE_16BIT_DUMMY_READ 0xFB // 16 bit display dummy read 00069 #define INIT_TABLE_PORTRAIT 0xFA // initial screen mode requirement 00070 #define INIT_TABLE_LANDSCAPE 0xF9 00071 #define INIT_TABLE_PORTRAIT_R 0xF8 00072 #define INIT_TABLE_LANDSCAPE_R 0xF7 00073 00074 //==============================================// 00075 // putch, putstr, putnum and print redirection // 00076 // constants // 00077 //==============================================// 00078 #define APPEND 0x0000 00079 #define COM0 0xFF04 00080 #define TEXT 0xFF08 00081 #define MDA 0xFF10 00082 00083 //==============================================// 00084 // general number formatting constants // 00085 // for 'print' and 'putnum' // 00086 //==============================================// 00087 // string processing constants 00088 #define STR 0x0080 // display as string 00089 #define CHR 0x0081 // display as single char 00090 00091 00092 00093 // binary, no leading zeroes 00094 #define BIN4d 0x0002 // binary, 16 digits, no leading zeroes 00095 #define BIN1 0x0102 // binary, 1 digit, no leading zeroes 00096 #define BIN2 0x0202 // binary, 2 digits, no leading zeroes 00097 #define BIN3 0x0302 // binary, 3 digits, no leading zeroes 00098 #define BIN4 0x0402 // binary, 4 digits, no leading zeroes 00099 #define BIN5 0x0502 // binary, 5 digits, no leading zeroes 00100 #define BIN6 0x0602 // binary, 6 digits, no leading zeroes 00101 #define BIN7 0x0702 // binary, 7 digits, no leading zeroes 00102 #define BIN8 0x0802 // binary, 8 digits, no leading zeroes 00103 #define BIN9 0x0902 // binary, 9 digits, no leading zeroes 00104 #define BIN10 0x0A02 // binary, 10 digits, no leading zeroes 00105 #define BIN11 0x0B02 // binary, 11 digits, no leading zeroes 00106 #define BIN12 0x0C02 // binary, 12 digits, no leading zeroes 00107 #define BIN13 0x0D02 // binary, 13 digits, no leading zeroes 00108 #define BIN14 0x0E02 // binary, 14 digits, no leading zeroes 00109 #define BIN15 0x0F02 // binary, 15 digits, no leading zeroes 00110 #define BIN16 0x0002 // binary, 16 digits, no leading zeroes 00111 00112 // binary, with leading zeroes 00113 #define BINZ 0x1002 // binary, 16 digits, leading zeroes 00114 #define BIN1Z 0x1102 // binary, 1 digit, leading zeroes 00115 #define BIN2Z 0x1202 // binary, 2 digits, leading zeroes 00116 #define BIN3Z 0x1302 // binary, 3 digits, leading zeroes 00117 #define BIN4Z 0x1402 // binary, 4 digits, leading zeroes 00118 #define BIN5Z 0x1502 // binary, 5 digits, leading zeroes 00119 #define BIN6Z 0x1602 // binary, 6 digits, leading zeroes 00120 #define BIN7Z 0x1702 // binary, 7 digits, leading zeroes 00121 #define BIN8Z 0x1802 // binary, 8 digits, leading zeroes 00122 #define BIN9Z 0x1902 // binary, 9 digits, leading zeroes 00123 #define BIN10Z 0x1A02 // binary, 10 digits, leading zeroes 00124 #define BIN11Z 0x1B02 // binary, 11 digits, leading zeroes 00125 #define BIN12Z 0x1C02 // binary, 12 digits, leading zeroes 00126 #define BIN13Z 0x1D02 // binary, 13 digits, leading zeroes 00127 #define BIN14Z 0x1E02 // binary, 14 digits, leading zeroes 00128 #define BIN15Z 0x1F02 // binary, 15 digits, leading zeroes 00129 #define BIN16Z 0x1002 // binary, 16 digits, leading zeroes 00130 00131 // binary, with leading blanked 00132 #define BINZB 0x2002 // binary, 16 digits, leading blanks 00133 #define BIN1ZB 0x2102 // binary, 1 digit, leading blanks 00134 #define BIN2ZB 0x2202 // binary, 2 digits, leading blanks 00135 #define BIN3ZB 0x2302 // binary, 3 digits, leading blanks 00136 #define BIN4ZB 0x2402 // binary, 4 digits, leading blanks 00137 #define BIN5ZB 0x2502 // binary, 5 digits, leading blanks 00138 #define BIN6ZB 0x2602 // binary, 6 digits, leading blanks 00139 #define BIN7ZB 0x2702 // binary, 7 digits, leading blanks 00140 #define BIN8ZB 0x2802 // binary, 8 digits, leading blanks 00141 #define BIN9ZB 0x2902 // binary, 9 digits, leading blanks 00142 #define BIN10ZB 0x2A02 // binary, 10 digits, leading blanks 00143 #define BIN11ZB 0x2B02 // binary, 11 digits, leading blanks 00144 #define BIN12ZB 0x2C02 // binary, 12 digits, leading blanks 00145 #define BIN13ZB 0x2D02 // binary, 13 digits, leading blanks 00146 #define BIN14ZB 0x2E02 // binary, 14 digits, leading blanks 00147 #define BIN15ZB 0x2F02 // binary, 15 digits, leading blanks 00148 #define BIN16ZB 0x2002 // binary, 16 digits, leading blanks 00149 00150 // signed decimal, no leading zeroes 00151 #define DEC4d 0x050A // signed decimal, 5 digits, no leading zeroes 00152 #define DEC1 0x010A // signed decimal, 1 digit, no leading zeroes 00153 #define DEC2 0x020A // signed decimal, 2 digits, no leading zeroes 00154 #define DEC3 0x030A // signed decimal, 3 digits, no leading zeroes 00155 #define DEC4 0x040A // signed decimal, 4 digits, no leading zeroes 00156 #define DEC5 0x050A // signed decimal, 5 digits, no leading zeroes 00157 00158 // signed decimal, with leading zeroes 00159 #define DECZ 0x150A // signed decimal, 5 digits, leading zeroes 00160 #define DEC1Z 0x110A // signed decimal, 1 digit, leading zeroes 00161 #define DEC2Z 0x120A // signed decimal, 2 digits, leading zeroes 00162 #define DEC3Z 0x130A // signed decimal, 3 digits, leading zeroes 00163 #define DEC4Z 0x140A // signed decimal, 4 digits, leading zeroes 00164 #define DEC5Z 0x150A // signed decimal, 5 digits, leading zeroes 00165 00166 // signed decimal, leading zeroes blanked 00167 #define DECZB 0x250A // signed decimal, 5 digits, leading blanks 00168 #define DEC1ZB 0x210A // signed decimal, 1 digit, leading blanks 00169 #define DEC2ZB 0x220A // signed decimal, 2 digits, leading blanks 00170 #define DEC3ZB 0x230A // signed decimal, 3 digits, leading blanks 00171 #define DEC4ZB 0x240A // signed decimal, 4 digits, leading blanks 00172 #define DEC5ZB 0x250A // signed decimal, 5 digits, leading blanks 00173 00174 // unsigned decimal, no leading zeroes 00175 #define UDEC 0x450A // unsigned decimal, 5 digits, no leading zeroes 00176 #define UDEC1 0x410A // unsigned decimal, 1 digit, no leading zeroes 00177 #define UDEC2 0x420A // unsigned decimal, 2 digits, no leading zeroes 00178 #define UDEC3 0x430A // unsigned decimal, 3 digits, no leading zeroes 00179 #define UDEC4 0x440A // unsigned decimal, 4 digits, no leading zeroes 00180 #define UDEC5 0x450A // unsigned decimal, 5 digits, no leading zeroes 00181 00182 // unsigned decimal, with leading zero's 00183 #define UDECZ 0x550A // unsigned decimal, 5 digits, leading zeroes 00184 #define UDEC1Z 0x510A // unsigned decimal, 1 digit, leading zeroes 00185 #define UDEC2Z 0x520A // unsigned decimal, 2 digits, leading zeroes 00186 #define UDEC3Z 0x530A // unsigned decimal, 3 digits, leading zeroes 00187 #define UDEC4Z 0x540A // unsigned decimal, 4 digits, leading zeroes 00188 #define UDEC5Z 0x550A // unsigned decimal, 5 digits, leading zeroes 00189 00190 // unsigned decimal, leading zeroes blanked 00191 #define UDECZB 0x650A // unsigned decimal, 5 digits, leading blanks 00192 #define UDEC1ZB 0x610A // unsigned decimal, 1 digit, leading blanks 00193 #define UDEC2ZB 0x620A // unsigned decimal, 2 digits, leading blanks 00194 #define UDEC3ZB 0x630A // unsigned decimal, 3 digits, leading blanks 00195 #define UDEC4ZB 0x640A // unsigned decimal, 4 digits, leading blanks 00196 #define UDEC5ZB 0x650A // unsigned decimal, 5 digits, leading blanks 00197 00198 // hex, with leading zero's 00199 #define HEX4d 0x1410 // hex, 4 digits, leading zeroes 00200 #define HEX1 0x1110 // hex, 1 digit, leading zeroes 00201 #define HEX2 0x1210 // hex, 2 digits, leading zeroes 00202 #define HEX3 0x1310 // hex, 3 digits, leading zeroes 00203 #define HEX4 0x1410 // hex, 4 digits, leading zeroes 00204 00205 // hex, no leading zero's 00206 #define HEXZ 0x0410 // hex, 4 digits, no leading zeroes 00207 #define HEX1Z 0x0110 // hex, 1 digit, no leading zeroes 00208 #define HEX2Z 0x0210 // hex, 2 digits, no leading zeroes 00209 #define HEX3Z 0x0310 // hex, 3 digits, no leading zeroes 00210 #define HEX4Z 0x0410 // hex, 4 digits, no leading zeroes 00211 00212 // hex, leading zero's blanked 00213 #define HEXZB 0x2410 // hex, 4 digits, leading blanks 00214 #define HEX1ZB 0x2110 // hex, 1 digit, leading blanks 00215 #define HEX2ZB 0x2210 // hex, 2 digits, leading blanks 00216 #define HEX3ZB 0x2310 // hex, 3 digits, leading blanks 00217 #define HEX4ZB 0x2410 // hex, 4 digits, leading blanks 00218 00219 // baud divisor rates 00220 #define MIDI 95 00221 #define BAUD_110 27271 00222 #define BAUD_300 9999 00223 #define BAUD_600 4999 00224 #define BAUD_1200 2499 00225 #define BAUD_2400 1249 00226 #define BAUD_4800 624 00227 #define BAUD_9600 312 00228 #define BAUD_14400 207 00229 #define BAUD_19200 155 00230 #define BAUD_31250 95 00231 #define BAUD_38400 77 00232 #define BAUD_56000 53 00233 #define BAUD_57600 51 00234 #define BAUD_115200 25 00235 #define BAUD_128000 22 00236 #define BAUD_256000 11 00237 #define BAUD_300000 10 00238 #define BAUD_375000 8 00239 #define BAUD_500000 6 00240 #define BAUD_600000 4 00241 00242 00243 //==============================================// 00244 // generic constants // 00245 //==============================================// 00246 #define ENABLE 1 00247 #define DISABLE 0 00248 #define ON 1 00249 #define OFF 0 00250 #define TRUE 1 00251 #define FALSE 0 00252 00253 //==============================================// 00254 // joystick() function return constants // 00255 //==============================================// 00256 #define RELEASED 0 00257 #define UP 1 00258 #define LEFT 2 00259 #define DOWN 3 00260 #define RIGHT 4 00261 #define FIRE 5 00262 00263 //==============================================// 00264 // spi_Init(...) mode arguments // 00265 //==============================================// 00266 #define SPI_SLOW 2 // 750khz 00267 #define SPI_MED 1 // 3mhz 00268 #define SPI_FAST 0 // 12mhz 00269 #define RXMODE_0 0 // receive sample pos 00270 #define RXMODE_1 1 // receive sample pos 00271 #define CKMODE_0 0 // transmit sample pos 00272 #define CKMODE_1 1 // transmit sample pos 00273 #define CKMODE_2 2 // transmit sample pos 00274 #define CKMODE_3 3 // transmit sample pos 00275 00276 //==============================================// 00277 //Pin related constants // 00278 //==============================================// 00279 #define IO1 0 00280 #define IO2 1 00281 #define LO 0 00282 #define HI 1 00283 #define OUTPUT4d 0 00284 #define INPUT4d 1 00285 #define ANALOGUE_8 2 00286 #define ANALOGUE_10 3 00287 #define ONEWIRE 4 00288 #define SOUND 5 00289 00290 //==============================================// 00291 //gfx_Set() related constants // 00292 //==============================================// 00293 #define PEN_SIZE 0 // not necessary to use (legacy mode) 00294 #define BACKGROUND_COLOUR 1 // screen background colour 00295 #define OBJECT_COLOUR 2 // line / circle / rectangle generic colour 00296 #define CLIPPING 3 // clipping ON / OFF 00297 #define TRANSPARENT_COLOUR 4 // (only on displays with specific hware feature) 00298 #define TRANSPARENCY 5 // 0 = OFF, 1 = ON (only on displays with specific hware feature) 00299 #define FRAME_DELAY 6 // legacy mode, see pokeB(IMAGE_DELAY, n); 00300 #define SCREEN_MODE 7 // LANDSCAPE, LANDSCAPE_R, PORTRAIT, PORTRAIT_R 00301 #define OUTLINE_COLOUR 8 // if not BLACK (0) , used for outline around circles and rectanglse 00302 #define CONTRAST 9 // set contrast ratuio in uOLED modules 00303 #define LINE_PATTERN 10 // used for patterned lines, 16bit value (0 = no pattern) 00304 #define COLOUR_MODE 11 // select 8 or 16 bit colour mode 00305 00306 00307 #define SOLID 0 // PEN_SIZE argument (gfx_Set legacy mode) 00308 #define OUTLINE 1 // PEN_SIZE argument (gfx_Set legacy mode) 00309 00310 #define LANDSCAPE 0 // SCREEN_MODE (north) 00311 #define LANDSCAPE_R 1 // SCREEN_MODE (south) 00312 #define PORTRAIT 2 // SCREEN_MODE (west) 00313 #define PORTRAIT_R 3 // SCREEN_MODE (east) 00314 00315 #define COLOUR8 1 // COLOUR_MODE 8 bit colour mode 00316 #define COLOUR16 0 // COLOUR_MODE 16 bit colour mode 00317 00318 //==============================================// 00319 //txt_Set() related constants // 00320 //==============================================// 00321 #define TEXT_COLOUR 0 // text foreground colr 00322 #define TEXT_HIGHLIGHT 1 // text background colr 00323 #define FONT_ID 2 // default 0, else points to data statement font 00324 #define TEXT_WIDTH 3 // text width multiplier 00325 #define TEXT_HEIGHT 4 // text height multiplier 00326 #define TEXT_XGAP 5 // horizontal text gap (default 1) 00327 #define TEXT_YGAP 6 // vertical text gap (default 1) 00328 #define TEXT_PRINTDELAY 7 // for 'teletype' like effect when pronting 00329 #define TEXT_OPACITY 8 // text mode flag, TRANSPARENT or OPAQUE 00330 #define TEXT_BOLD 9 // embolden text (auto reset) - legacy 00331 #define TEXT_ITALIC 10 // italicize text (auto reset) 00332 #define TEXT_INVERSE 11 // invert text (auto reset) 00333 #define TEXT_UNDERLINED 12 // underline text (auto reset) 00334 #define TEXT_ATTRIBUTES 13 // controls BOLD/ITALIC/INVERSE/UNDERLINE simultaneously 00335 00336 //==============================================// 00337 //txt_Set() related arguments // 00338 //==============================================// 00339 #define SYSTEM 0 // internal system font 00340 #define MEDIA 7 // font is at uSD_add 00341 00342 00343 #define TRANSPARENT 0 // TEXT_OPACITY transparent text 00344 #define OPAQUE 1 // TEXT_OPACITY opaque text 00345 00346 #define BOLD 16 // TEXT_ATTRIBUTES bold text (auto reset) 00347 #define ITALIC 32 // TEXT_ATTRIBUTES italic text (auto reset) 00348 #define INVERSE 64 // TEXT_ATTRIBUTES inverse text (auto reset) 00349 #define UNDERLINED 128 // TEXT_ATTRIBUTES underlined text (auto reset) 00350 00351 00352 //==============================================// 00353 // Memory MAP // 00354 // system BYTE variables accesible with // 00355 // peekB and pokeB // 00356 //==============================================// 00357 #define VX1 128 // display hardware x1 pos 00358 #define VY1 129 // display hardware y1 pos 00359 #define VX2 130 // display hardware x2 pos 00360 #define VY2 131 // display hardware y2 pos 00361 #define SYS_X_MAX 132 // display hardware X res-1 00362 #define SYS_Y_MAX 133 // display hardware Y res-1 00363 #define WRITE_GRAM_REG 134 // device register address for write operation 00364 #define READ_GRAM_REG 135 // device register address for write operation 00365 #define IMAGE_WIDTH 136 // width of currently loaded image 00366 #define IMAGE_HEIGHT 137 // height of currently loaded image 00367 #define IMAGE_DELAY 138 // 0 if image, else inter frame delay for movie 00368 #define IMAGE_MODE 139 // bit 4 determines colr mode, other bits reserved 00369 #define CLIP_LEFT_POS 140 // left clipping point (set with gfx_ClipWindow(...) 00370 #define CLIP_TOP_POS 141 // top clipping point (set with gfx_ClipWindow(...) 00371 #define CLIP_RIGHT_POS 142 // right clipping point (set with gfx_ClipWindow(...) 00372 #define CLIP_BOTTOM_POS 143 // bottom clipping point (set with gfx_ClipWindow(...) 00373 #define CLIP_LEFT 144 // current clip value (reads as full size if clipping turned off) 00374 #define CLIP_TOP 145 // current clip value (reads as full size if clipping turned off) 00375 #define CLIP_RIGHT 146 // current clip value (reads as full size if clipping turned off) 00376 #define CLIP_BOTTOM 147 // current clip value (reads full size if clipping turned off) 00377 #define FONT_TYPE 148 // font type, 0 = system font, else pointer to user or media font 00378 #define FONT_MAX 149 // number of chars in current font 00379 #define FONT_OFFSET 150 // starting offset (normally 0x20) 00380 #define FONT_WIDTH 151 // current font width 00381 #define FONT_HEIGHT 152 // current font height 00382 #define TEXT_XMAG 153 // text width magnification 00383 #define TEXT_YMAG 154 // text height magnification 00384 #define TEXT_MARGIN 155 // left column for carriage return 00385 #define TEXT_DELAY 156 // print delay 00386 #define TEXT_X_GAP 157 // text horizontal gap size 00387 #define TEXT_Y_GAP 158 // text vertical gap size 00388 #define GFX_XMAX 159 // current display width-1 determined by portrait / landscape swapping 00389 #define GFX_YMAX 160 // current display width-1 determined by portrait / landscape swapping 00390 #define GFX_SCREENMODE 161 // holds current screen mode 00391 // 00392 00393 00394 //==============================================// 00395 // system WORD variables accesible with peekW // 00396 // and pokeW or pointer access // 00397 //==============================================// 00398 #define VM_OVERFLOW 83 // 16bit overflow of 32bit results (see OVF() funtion) 00399 #define VM_COLOUR 84 // general working var for colour 00400 #define VM_RETVAL 85 // last value returned from any function 00401 #define GFX_BACK_COLOUR 86 // screen background colour 00402 #define GFX_OBJECT_COLOUR 87 // graphics object colour 00403 #define GFX_TEXT_COLOUR 88 // text forground colour 00404 #define GFX_TEXT_BGCOLOUR 89 // text background colour 00405 #define GFX_OUTLINE_COLOUR 90 // screen background colour 00406 #define GFX_LINE_PATTERN 91 // line draw 16bit linear pattern 00407 #define IMG_PIXEL_COUNT 92 // pixel count of current object (may be altered by clipping) 00408 #define IMG_FRAME_COUNT 93 // count of frames in currently loaded video 00409 #define MEDIA_HEAD 94 // media sector head position 00410 #define SYS_OSTREAM 95 // system output redirection 00411 #define GFX_LEFT 96 // virtual left point for current image 00412 #define GFX_TOP 97 // virtual top point for current image 00413 #define GFX_RIGHT 98 // virtual right point for current image 00414 #define GFX_BOTTOM 99 // virtual bottom point for current image 00415 #define GFX_X1 100 // clipped left point for current image 00416 #define GFX_Y1 101 // clipped top point for current image 00417 #define GFX_X2 102 // clipped right point for current image 00418 #define GFX_Y2 103 // clipped bottom point for current image 00419 #define GFX_X_ORG 104 // current Y origin 00420 #define GFX_Y_ORG 105 // current Y origin 00421 #define RANDOM_LO 106 // random number generator LO word 00422 #define RANDOM_HI 107 // random number generator LO word 00423 #define MEDIA_ADDR_LO 108 // uSD/FLASH absolute byte address LO 00424 #define MEDIA_ADDR_HI 109 // uSD/FLASH absolute byte address HI 00425 #define SECTOR_ADDR_LO 110 // uSD/FLASH sector address LO 00426 #define SECTOR_ADDR_HI 111 // uSD/FLASH sector address HI 00427 #define SYSTEM_TIMER_LO 112 // 1msec 32 bit free running timer LO word 00428 #define SYSTEM_TIMER_HI 113 // 1msec 32 bit free running timer HI word 00429 #define TIMER04d 114 // user timer0 00430 #define TIMER14d 115 // user timer1 00431 #define TIMER24d 116 // user timer2 00432 #define TIMER34d 117 // user timer3 (10msec resolution) 00433 #define INCVAL 118 // incrementer size 00434 #define TEMP_MEDIA_ADDRLO 119 // temp stroage while printing font from media storage 00435 #define TEMP_MEDIA_ADDRHI 120 // temp stroage while printing font from media storage 00436 #define GFX_TRANSPARENTCOLOUR 121 // image transparency colour 00437 #define GFX_STRINGMETRIX 122 // low byte = string width, hi byte = string height 00438 #define GFX_TEMPSTORE1 123 // low byte = last char printed, hi byte = frame timer over-ride 00439 // reserved 124 // internal use 00440 // reserved 125 // internal use 00441 #define SYS_FLAGS1 126 // system control flags word 1 00442 #define SYS_FLAGS2 127 // system control flags word 2 00443 00444 //==============================================// 00445 // bit constants for SYS_FLAGS1 // 00446 //==============================================// 00447 #define _STREAMLOCK 0x0001 // Used internally 00448 #define _PENSIZE 0x0002 // object, 0=solid,1=outline 00449 #define _OPACITY 0x0004 // text, 0=transparent,1=opaque 00450 #define _OUTLINED 0x0008 // box/circle outline 0=off,1=on 00451 #define _BOLD 0x0010 // text, 0=normal,1=bold (auto reset) 00452 #define _ITALIC 0x0020 // Text, 0=normal,1=italic (auto reset) 00453 #define _INVERSE 0x0040 // Text, 0=normal,1=inverse (auto reset) 00454 #define _UNDERLINED 0x0080 // Text, 0=normal,1=underlined (auto reset) 00455 #define _CLIPPING 0x0100 // Used internally, 0-clipping off, 1-clipping on 00456 #define _STRMODE 0x0200 // Used internally 00457 #define _SERMODE 0x0400 // Used internally 00458 #define _TXTMODE 0x0800 // Used internally 00459 #define _MEDIAMODE 0x1000 // Used internally 00460 #define _PATTERNED 0x2000 // Used internally 00461 #define _COLOUR8 0x4000 // Display mode, 0=16bit, 1=8bit 00462 #define _MEDIAFONT 0x8000 // 0=internal font, 1=media font 00463 00464 //==============================================// 00465 // bit constants for SYS_FLAGS2 // 00466 //==============================================// 00467 #define _MEDIA_INSTALLED 0x0001 // SD of FLASH device is installed 00468 #define _MEDIA_TYPE 0x0002 // 0=SD, 1=FLASH media device detected 00469 #define _MEDIA_READ 0x0004 // 1=MEDIA read in progress 00470 #define _MEDIA_WRITE 0x0008 // 1=MEDIA write in progress 00471 #define _OW_PIN 0x0010 // 0=IO1, 1=IO2 (Dallas OW Pin) 00472 #define _PTR_TYPE 0x0020 // Used internally 00473 #define _TEMP1 0x0040 // Used internally 00474 #define _TEMP2 0x0080 // Used internally 00475 #define _RUNMODE 0x0100 // 1=running pcode from media 00476 #define _SIGNED 0x0200 // 0=number printed '-' prepend 00477 #define _RUNFLAG 0x0400 // 1=EVE processor is running SYSTEM 00478 #define _SINGLESTEP 0x0800 // 1=set breakpoint for debugger 00479 #define _COMMINT 0x1000 // 1=buffered comms active 00480 #define _DUMMY16 0x2000 // 1=display needs 16bit dummy 00481 #define _DISP16 0x4000 // 1=display is 16bit interface 00482 #define _PROPFONT 0x8000 // 1=current font is proportional 00483 00484 00485 //==============================================// 00486 // EVE User Resources // 00487 //==============================================// 00488 #define USR_SP 128 // EVE user defined stack pointer 00489 #define USRVARS 129 // EVE user variables VARS[255] 00490 #define USRSTACK 384 // EVE machine stack STACK[128] 00491 00492 //------------------------------------------------------------------------------ 00493 //------------------------------------------------------------------------------ 00494 //------------------------------------------------------------------------------ 00495 //------------------------------------------------------------------------------ 00496 //------------------------------------------------------------------------------ 00497 00498 /* 00499 16 bit RGB (565) Colour Chart 00500 Original work by 4D Forum Member: skadoo 00501 */ 00502 00503 00504 00505 #define ALICEBLUE 0xF7DF 00506 #define ANTIQUEWHITE 0xFF5A 00507 #define AQUA 0x07FF 00508 #define AQUAMARINE 0x7FFA 00509 #define AZURE 0xF7FF 00510 #define BEIGE 0xF7BB 00511 #define BISQUE 0xFF38 00512 #define BLACK 0x0000 00513 #define BLANCHEDALMOND 0xFF59 00514 #define BLUE 0x001F 00515 #define BLUEVIOLET 0x895C 00516 #define BROWN 0xA145 00517 #define BURLYWOOD 0xDDD0 00518 #define CADETBLUE 0x5CF4 00519 #define CHARTREUSE 0x7FE0 00520 #define CHOCOLATE 0xD343 00521 #define CORAL 0xFBEA 00522 #define CORNFLOWERBLUE 0x64BD 00523 #define CORNSILK 0xFFDB 00524 #define CRIMSON 0xD8A7 00525 #define CYAN 0x07FF 00526 #define DARKBLUE 0x0011 00527 #define DARKCYAN 0x0451 00528 #define DARKGOLDENROD 0xBC21 00529 #define DARKGRAY 0xAD55 00530 #define DARKGREEN 0x0320 00531 #define DARKKHAKI 0xBDAD 00532 #define DARKMAGENTA 0x8811 00533 #define DARKOLIVEGREEN 0x5345 00534 #define DARKORANGE 0xFC60 00535 #define DARKORCHID 0x9999 00536 #define DARKRED 0x8800 00537 #define DARKSALMON 0xECAF 00538 #define DARKSEAGREEN 0x8DF1 00539 #define DARKSLATEBLUE 0x49F1 00540 #define DARKSLATEGRAY 0x2A69 00541 #define DARKTURQUOISE 0x067A 00542 #define DARKVIOLET 0x901A 00543 #define DEEPPINK 0xF8B2 00544 #define DEEPSKYBLUE 0x05FF 00545 #define DIMGRAY 0x6B4D 00546 #define DODGERBLUE 0x1C9F 00547 #define FIREBRICK 0xB104 00548 #define FLORALWHITE 0xFFDE 00549 #define FORESTGREEN 0x2444 00550 #define FUCHSIA 0xF81F 00551 #define GAINSBORO 0xDEFB 00552 #define GHOSTWHITE 0xFFDF 00553 #define GOLD 0xFEA0 00554 #define GOLDENROD 0xDD24 00555 #define GRAY 0x8410 00556 #define GREEN 0x0400 00557 #define GREENYELLOW 0xAFE5 00558 #define HONEYDEW 0xF7FE 00559 #define HOTPINK 0xFB56 00560 #define INDIANRED 0xCAEB 00561 #define INDIGO 0x4810 00562 #define IVORY 0xFFFE 00563 #define KHAKI 0xF731 00564 #define LAVENDER 0xE73F 00565 #define LAVENDERBLUSH 0xFF9E 00566 #define LAWNGREEN 0x7FE0 00567 #define LEMONCHIFFON 0xFFD9 00568 #define LIGHTBLUE 0xAEDC 00569 #define LIGHTCORAL 0xF410 00570 #define LIGHTCYAN 0xE7FF 00571 #define LIGHTGOLD 0xFFDA 00572 #define LIGHTGREEN 0x9772 00573 #define LIGHTGREY 0xD69A 00574 #define LIGHTPINK 0xFDB8 00575 #define LIGHTSALMON 0xFD0F 00576 #define LIGHTSEAGREEN 0x2595 00577 #define LIGHTSKYBLUE 0x867F 00578 #define LIGHTSLATEGRAY 0x7453 00579 #define LIGHTSTEELBLUE 0xB63B 00580 #define LIGHTYELLOW 0xFFFC 00581 #define LIME 0x07E0 00582 #define LIMEGREEN 0x3666 00583 #define LINEN 0xFF9C 00584 #define MAGENTA 0xF81F 00585 #define MAROON 0x8000 00586 #define MEDIUMAQUAMARINE 0x6675 00587 #define MEDIUMBLUE 0x0019 00588 #define MEDIUMORCHID 0xBABA 00589 #define MEDIUMPURPLE 0x939B 00590 #define MEDIUMSEAGREEN 0x3D8E 00591 #define MEDIUMSLATEBLUE 0x7B5D 00592 #define MEDIUMSPRINGGREEN 0x07D3 00593 #define MEDIUMTURQUOISE 0x4E99 00594 #define MEDIUMVIOLETRED 0xC0B0 00595 #define MIDNIGHTBLUE 0x18CE 00596 #define MINTCREAM 0xF7FF 00597 #define MISTYROSE 0xFF3C 00598 #define MOCCASIN 0xFF36 00599 #define NAVAJOWHITE 0xFEF5 00600 #define NAVY 0x0010 00601 #define OLDLACE 0xFFBC 00602 #define OLIVE 0x8400 00603 #define OLIVEDRAB 0x6C64 00604 #define ORANGE 0xFD20 00605 #define ORANGERED 0xFA20 00606 #define ORCHID 0xDB9A 00607 #define PALEGOLDENROD 0xEF55 00608 #define PALEGREEN 0x9FD3 00609 #define PALETURQUOISE 0xAF7D 00610 #define PALEVIOLETRED 0xDB92 00611 #define PAPAYAWHIP 0xFF7A 00612 #define PEACHPUFF 0xFED7 00613 #define PERU 0xCC27 00614 #define PINK 0xFE19 00615 #define PLUM 0xDD1B 00616 #define POWDERBLUE 0xB71C 00617 #define PURPLE 0x8010 00618 #define RED 0xF800 00619 #define ROSYBROWN 0xBC71 00620 #define ROYALBLUE 0x435C 00621 #define SADDLEBROWN 0x8A22 00622 #define SALMON 0xFC0E 00623 #define SANDYBROWN 0xF52C 00624 #define SEAGREEN 0x2C4A 00625 #define SEASHELL 0xFFBD 00626 #define SIENNA 0xA285 00627 #define SILVER 0xC618 00628 #define SKYBLUE 0x867D 00629 #define SLATEBLUE 0x6AD9 00630 #define SLATEGRAY 0x7412 00631 #define SNOW 0xFFDF 00632 #define SPRINGGREEN 0x07EF 00633 #define STEELBLUE 0x4416 00634 #define TAN 0xD5B1 00635 #define TEAL 0x0410 00636 #define THISTLE 0xDDFB 00637 #define TOMATO 0xFB08 00638 #define TURQUOISE 0x471A 00639 #define VIOLET 0xEC1D 00640 #define WHEAT 0xF6F6 00641 #define WHITE 0xFFFF 00642 #define WHITESMOKE 0xF7BE 00643 #define YELLOW 0xFFE0 00644 #define YELLOWGREEN 0x9E66 00645 00646 00647 00648 00649 00650 00651 00652 00653 00654
Generated on Tue Jul 19 2022 22:57:03 by
1.7.2