2 #define _HDLOAD_OSECPU 1
4 // プロジェクトのすべてのファイルで読み込むヘッダ
19 struct Ptr { /* 32バイト(=256bit!) */
22 unsigned char *p0, *p1;
25 int flags, dummy; /* read/writeなど */
29 unsigned char *p, *p1;
34 int ireg[64]; /* 32bit整数レジスタ */
35 struct Ptr preg[64]; /* ポインタレジスタ */
37 int debugInfo0, debugInfo1, dmy[2]; /* 2304 */
38 struct PtrCtrl *ptrCtrl; /* 2320 */
39 char winClosed, autoSleep;
44 const unsigned char **argv;
45 unsigned char *buf0, *buf1, *junkStack, lastConsoleChar, *junkStack1;
47 struct LabelTable *label;
49 unsigned char *jitbuf, *jitbuf1;
50 void(*errHndl)(struct Regs *);
55 #define KEY_ENTER '¥n'
57 #define KEY_BACKSPACE 8
59 #define KEY_PAGEUP 0x1020
60 #define KEY_PAGEDWN 0x1021
61 #define KEY_END 0x1022
62 #define KEY_HOME 0x1023
63 #define KEY_LEFT 0x1024
65 #define KEY_RIGHT 0x1026
66 #define KEY_DOWN 0x1027
67 #define KEY_INS 0x1028
68 #define KEY_DEL 0x1029
70 static int *keybuf, keybuf_r, keybuf_w, keybuf_c;
71 static int *vram = NULL, v_xsiz, v_ysiz;
72 static int di1_serial = 0;
75 void putKeybuf(int i);
79 #include "dependent.h"
86 /* tek.cを移植するのは大変だと思ったので、断念 */
87 #error "tek is not supported. edit switch.h and set USE_TEK5=0"
90 // int tek5Decomp(unsigned char *buf, unsigned char *buf1, unsigned char *tmp);