Go to the documentation of this file.
11 #ifndef GEOS_CONSTANTS_H
12 #define GEOS_CONSTANTS_H
25 #define WORD(w) (w & 0xff), (w >> 8)
27 #define STRINGIFY_AUX(x) #x
28 #define STRINGIFY(x) STRINGIFY_AUX(x)
39 #define KRNL_IO_IN 0x36
40 #define KRNL_BAS_IO_IN 0x37
46 #define CKRNLBASIOIN 0x40
48 #define CKRNLIOIN 0x4E
66 #define OFF_MX_RIGHT 4
67 #define OFF_NUM_M_ITEMS 6
68 #define OFF_1ST_M_ITEM 7
84 #define SET_RUNABLE 0b10000000
85 #define SET_BLOCKED 0b01000000
86 #define SET_FROZEN 0b00100000
87 #define SET_NOTIMER 0b00010000
100 #define SET_UNDERLINE 0b10000000
101 #define SET_BOLD 0b01000000
102 #define SET_REVERSE 0b00100000
103 #define SET_ITALIC 0b00010000
104 #define SET_OUTLINE 0b00001000
105 #define SET_SUPERSCRIPT 0b00000100
106 #define SET_SUBSCRIPT 0b00000010
107 #define SET_PLAINTEXT 0b00000000
109 #define UNDERLINE_BIT 7
111 #define REVERSE_BIT 5
113 #define OUTLINE_BIT 3
114 #define SUPERSCRIPT_BIT 2
115 #define SUBSCRIPT_BIT 1
122 #define FORWARDSPACE 9
126 #define PAGE_BREAK 12
130 #define ESC_GRAPHICS 16
137 #define NEWCARDSET 23
149 #define KEY_INVALID 31
166 #define KEY_LARROW 20
167 #define KEY_UPARROR 21
171 #define KEY_LEFT BACKSPACE
176 #define KEY_DELETE 29
177 #define KEY_INSERT 28
185 #define SET_MSE_ON 0b10000000
186 #define SET_MENUON 0b01000000
187 #define SET_ICONSON 0b00100000
189 #define MOUSEON_BIT 7
191 #define ICONSON_BIT 5
199 #define SC_BYTE_WIDTH 40
200 #define SC_PIX_HEIGHT 200
202 #define SC_PIX_WIDTH 320
207 #define SCREENBYTEWIDTH 80
208 #define SCREENPIXELWIDTH 640
214 #define ST_WR_FORE 0x80
215 #define ST_WR_BACK 0x40
216 #define ST_WRGS_FORE 0x20
222 #define RECTANGLETO 3
224 #define ESC_PUTSTRING 6
225 #define FRAME_RECTO 7
226 #define PEN_X_DELTA 8
227 #define PEN_Y_DELTA 9
228 #define PEN_XY_DELTA 10
252 #define SET_LEFTJUST 0b10000000
253 #define SET_RIGHTJUST 0b00000000
254 #define SET_SURPRESS 0b01000000
255 #define SET_NOSURPRESS 0b00000000
265 #define ST_FLASH 0x80
266 #define ST_INVERT 0x40
270 #define OFF_NM_ICNS 0
271 #define OFF_IC_XMOUSE 1
272 #define OFF_IC_YMOUSE 3
276 #define OFF_PIC_ICON 0
277 #define OFF_X_ICON_POS 2
278 #define OFF_Y_ICON_POS 3
279 #define OFF_WDTH_ICON 4
280 #define OFF_HEIGHT_ICON 5
281 #define OFF_SRV_RT_ICON 6
282 #define OFF_NX_ICON 8
290 #define KEYPRESS_BIT 7
294 #define SET_KEYPRESS 0b10000000
295 #define SET_INPUTCHG 0b01000000
296 #define SET_MOUSE 0b00100000
301 #define OFFBOTTOM_BIT 6
302 #define OFFLEFT_BIT 5
303 #define OFFRIGHT_BIT 4
304 #define OFFMENU_BIT 3
306 #define SET_OFFTOP 0b10000000
307 #define SET_OFFBOTTOM 0b01000000
308 #define SET_OFFLEFT 0b00100000
309 #define SET_OFFRIGHT 0b00010000
310 #define SET_OFFMENU 0b00001000
312 #define ANY_FAULT 0b11110000
396 #define TOTAL_BLOCKS \
407 #define OFF_DISK_NAME 144
408 #define OFF_OP_TR_SC \
411 #define OFF_GS_ID 173
412 #define OFF_GS_DTYPE \
427 #define OFF_CFILE_TYPE 0
428 #define OFF_INDEX_PTR 1
429 #define OFF_DE_TR_SC 1
431 #define OFF_GHDR_PTR 19
432 #define OFF_GSTRUC_TYPE 21
433 #define OFF_GFILE_TYPE 22
436 #define OFF_NXT_FILE 32
440 #define FRST_FILE_ENTRY 2
448 #define O_GHIC_WIDTH 2
449 #define O_GHIC_HEIGHT 3
451 #define O_GHCMDR_TYPE 68
452 #define O_GHGEOS_TYPE 69
453 #define O_GHSTR_TYPE 70
454 #define O_GHST_ADDR 71
455 #define O_GHEND_ADDR 73
456 #define O_GHST_VEC 75
459 #define O_128_FLAGS \
467 #define O_GH_AUTHOR 97
468 #define O_GHINFO_TXT \
474 #define O_GHP_DISK 97
475 #define O_GHP_FNAME \
487 #define ST_LD_AT_ADDR \
508 #define DK_NM_ID_LEN 18
520 #define DRV_NETWORK 15
526 #define DIR_1581_TRACK \
532 #define MAX_CMND_STR 32
533 #define DIR_ACC_CHAN 13
534 #define REL_FILE_NUM \
536 #define CMND_FILE_NUM \
584 #define DEF_DB_POS 0x80
609 #define DBGETSTRING 13
612 #define DBGETFILES 16
615 #define DB_USR_ROUT 19
619 #define OFF_DB_FORM 0
622 #define OFF_DB_LEFT 3
623 #define OFF_DB_RIGHT 5
624 #define OFF_DB_1STCMD 7
629 #define SYSDBI_WIDTH 6
630 #define SYSDBI_HEIGHT 16
636 #define DEF_DB_TOP 32
637 #define DEF_DB_BOT 127
638 #define DEF_DB_LEFT 64
639 #define DEF_DB_RIGHT 255
643 #define TXT_LN_1_Y 16
644 #define TXT_LN_2_Y 32
645 #define TXT_LN_3_Y 48
646 #define TXT_LN_4_Y 64
647 #define TXT_LN_5_Y 80
662 #define DB_NAME(name) \
663 extern uint8_t name[]; \
664 asm(".type " STRINGIFY(name) ",@object\n.section .data." STRINGIFY( \
665 name) ",\"aw\",@progbits\n" STRINGIFY(name) ":");
666 #define DB_NAME_SECT(name, sect) \
667 extern uint8_t name[]; \
668 asm(".type " STRINGIFY(name) ",@object\n.section ." STRINGIFY( \
669 sect) "." STRINGIFY(name) ",\"aw\",@progbits\n" STRINGIFY(name) ":");
670 #define DB_END(name) \
671 asm(".byte 0\n.size " STRINGIFY(name) ", . - " STRINGIFY(name));
672 #define DB_DEFPOS(pattern) asm(".byte 0x80|" STRINGIFY(pattern));
673 #define DB_SETPOS(pattern, top, bottom, left, right) \
674 asm(".byte " STRINGIFY(pattern) "\n.byte " STRINGIFY( \
675 top) "\n.byte " STRINGIFY(bottom) "\n.word " STRINGIFY(left) "\n." \
679 #define DB_ICON(icon, x, y) \
680 asm(".byte " STRINGIFY(icon) "\n.byte " STRINGIFY(x) "\n.byte " STRINGIFY(y));
681 #define DB_TXTSTR(x, y, text) \
682 asm(".byte 11\n.byte " STRINGIFY(x) "\n.byte " STRINGIFY( \
683 y) "\n.short " STRINGIFY(text));
684 #define DB_VARSTR(x, y, zp_ptr) \
685 asm(".byte 12\n.byte " STRINGIFY(x) "\n.byte " STRINGIFY( \
686 y) "\n.byte " STRINGIFY(zp_ptr));
687 #define DB_GETSTR(x, y, zp_ptr, length) \
688 asm(".byte 13\n.byte " STRINGIFY(x) "\n.byte " STRINGIFY( \
689 y) "\n.byte " STRINGIFY(zp_ptr) "\n.byte " STRINGIFY(length));
690 #define DB_SYSOPV() asm(".byte 14");
691 #define DB_GRPHSTR(ptr) asm(".byte 15\n.short " STRINGIFY(ptr));
692 #define DB_GETFILES(x, y) \
693 asm(".byte 16\n.byte " STRINGIFY(x) "\n.byte " STRINGIFY(y));
694 #define DB_OPVEC(ptr) asm(".byte 17\n.short " STRINGIFY(ptr));
695 #define DB_USRICON(x, y, icon_ptr) \
696 asm(".byte 18\n.byte " STRINGIFY(x) "\n.byte " STRINGIFY( \
697 y) "\n.short " STRINGIFY(icon_ptr));
698 #define DB_USRROUT(ptr) asm(".byte 19\n.short " STRINGIFY(ptr));
709 #define MOUSE_SPRNUM 0
711 #define VIC_YPOS_OFF \
717 #define VIC_XPOS_OFF \
727 #define FG_SAVE 0b10000000
728 #define CLR_SAVE 0b01000000
733 #define ADD1_W 0x2000
735 #define DOUBLE_W 0x8000
736 #define DOUBLE_B 0x80
749 #define CLICK_COUNT 30
750 #define DISK_DRV_LGH 0x0d80
751 #define OS_VARS_LGH 0x0500
@ HDR_NOT_THERE
Definition: geos_constants.h:544
@ INV_RECORD
Definition: geos_constants.h:535
@ FULL_DIRECTORY
Definition: geos_constants.h:531
@ SYSTEM_BOOT
Definition: geos_constants.h:359
@ APPL_DATA
Definition: geos_constants.h:354
@ HORIZONTAL
Definition: geos_constants.h:57
@ OUT_OF_RECORDS
Definition: geos_constants.h:536
@ HDR_CHKSUM_ERR
Definition: geos_constants.h:550
@ VERTICAL
Definition: geos_constants.h:58
@ DAT_CHKSUM_ERR
Definition: geos_constants.h:547
@ AUTO_EXEC
Definition: geos_constants.h:364
@ UN_CONSTRAINED
Definition: geos_constants.h:60
@ BAD_BAM
Definition: geos_constants.h:533
@ CANCEL_ERR
Definition: geos_constants.h:539
@ FONT
Definition: geos_constants.h:355
menu_type_t
Definition: geos_constants.h:54
@ SEQUENTIAL
Definition: geos_constants.h:374
@ FILE_NOT_FOUND
Definition: geos_constants.h:532
@ WR_VER_ERR
Definition: geos_constants.h:548
@ NUMFILETYPES
Definition: geos_constants.h:368
@ PRG
Definition: geos_constants.h:385
@ DESK_ACC
Definition: geos_constants.h:352
@ DYN_SUB_MENU
Definition: geos_constants.h:72
@ CONSTRAINED
Definition: geos_constants.h:59
@ BASIC
Definition: geos_constants.h:328
@ NO_SYNC
Definition: geos_constants.h:545
@ DEL
Definition: geos_constants.h:383
dos_file_type_t
Definition: geos_constants.h:382
@ DOS_MISMATCH
Definition: geos_constants.h:553
@ VLIR
Definition: geos_constants.h:376
@ INCOMPATIBLE
Definition: geos_constants.h:541
menu_action_t
Definition: geos_constants.h:70
@ INV_TRACK
Definition: geos_constants.h:529
@ USR
Definition: geos_constants.h:386
@ DSK_ID_MISMAT
Definition: geos_constants.h:551
file_structure_t
Definition: geos_constants.h:373
@ BYTE_DEC_ERR
Definition: geos_constants.h:552
@ REL
Definition: geos_constants.h:387
@ NOT_GEOS
Definition: geos_constants.h:319
@ TEMPORARY
Definition: geos_constants.h:361
@ SEQ
Definition: geos_constants.h:384
@ SUB_MENU
Definition: geos_constants.h:73
@ SYSTEM
Definition: geos_constants.h:351
disk_err_t
Definition: geos_constants.h:525
@ DISK_DEVICE
Definition: geos_constants.h:358
@ INSUFF_SPACE
Definition: geos_constants.h:530
geos_file_type_t
Definition: geos_constants.h:316
@ CBM
Definition: geos_constants.h:388
@ NO_BLOCKS
Definition: geos_constants.h:528
@ APPLICATION
Definition: geos_constants.h:353
@ INPUT_DEVICE
Definition: geos_constants.h:357
@ UNOPENED_VLIR
Definition: geos_constants.h:534
@ PRINTER
Definition: geos_constants.h:356
@ WR_PR_ON
Definition: geos_constants.h:549
@ STRUCT_MISMAT
Definition: geos_constants.h:537
@ ASSEMBLY
Definition: geos_constants.h:335
@ DATA
Definition: geos_constants.h:342
@ MENU_ACTION
Definition: geos_constants.h:71
@ INPUT_128
Definition: geos_constants.h:366
@ DEV_NOT_FOUND
Definition: geos_constants.h:540
@ BFR_OVERFLOW
Definition: geos_constants.h:538
@ DBLK_NOT_THERE
Definition: geos_constants.h:546