Debian Codegraph @

src/romdump_9x/fargodef.h

raw symbols SCIP
1 // Miscellaneous defines - there are no official TIGCC headers for Fargo yet.
2 // Copyright (c) 2004-2006 Kevin Kofler
3
4 /* This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19 #define NULL ((void *) 0)
20
21 // The LIO functions in the TI-92 ROM are not exported by Fargo.
22
23 #define __kb_globals tios__001b
24 extern void __kb_globals;
25 #define kbhit() (*(volatile short*)(&__kb_globals+0x1c))
26 #define sprintf tios__000f
27 short sprintf (char *buffer, const char *format, ...);
28 #define DrawStr tios__0010
29 void DrawStr (short x, short y, const char *str, short Attr);
30 enum Attrs {A_REVERSE, A_NORMAL, A_XOR, A_SHADED, A_REPLACE, A_OR, A_AND, A_THICK1, A_SHADE_V, A_SHADE_H, A_SHADE_NS, A_SHADE_PS};
31 #define __ROM_base tios__0025
32 extern void __attribute__((may_alias)) __ROM_base;
33 #define ROM_base (&__ROM_base)
34 // ROM_base + 0xc4 (49*4) contains the used ROM size - 4, round up to full 1 or 2 MB
35 #define ROM_size ((49[(unsigned long *)ROM_base] + 0xffffful) & 0xfff00000ul)
36 #define TI92_VERSION ((int)(ROM_size>>20))
37 #define ERD_dialog tios__002F
38 short ERD_dialog (short err_no, short prog_flag);
39 #define OSLinkTxQueueInquire tios__0008
40 unsigned short OSLinkTxQueueInquire (void);
41 #define OSReadLinkBlock tios__000A
42 unsigned short OSReadLinkBlock (char *buffer, unsigned short num);
43 #define memset tios__0032
44 void *memset (void *buffer, short c, unsigned long num);
45 #define __tios_globals tios__001C
46 extern void __tios_globals;
47 #define LCD_MEM (&__tios_globals)
48 #define ClrScr() memset(LCD_MEM,0,3840);
49 #define FontSetSys tios__0012
50 unsigned char FontSetSys (short Font);
51 enum Fonts {F_4x6, F_6x8, F_8x10};
52 #define OSLinkReset tios__0006
53 void OSLinkReset (void);
54
55 typedef unsigned char uint8_t;
56 typedef unsigned short uint16_t;
57 typedef unsigned long uint32_t;