wormy 0.93.1413
[wormy.git] / asm86.h
1 ;==================================================================
2 ;These lines are used to 'fix' TI's include files to work with TASM
3 ;==================================================================
4 #DEFINE equ                                                     =
5 #DEFINE EQU                                                     =
6 #DEFINE 0FCH                                                    0FCh
7 #DEFINE 0D4H                                                    0D4h
8 #DEFINE 0E8H                                                    0E8h
9 #DEFINE 0C0H                                                    0C0h
10
11 ;====================================================================
12 ;These are common zshell and usgard calls that are known on the TI-86
13 ;If possible, use the call that is commented next to the one you want
14 ;====================================================================
15 MUL_HL = $4547
16
17 CP_HL_DE = $403C
18 LD_HL_MHL = $4010
19 GET_KEY = $5371
20 UNPACK_HL = $4044
21
22 D_HL_DECI = $4a33
23
24 BUSY_OFF = $4ab1                        ;_runindoff
25 BUSY_ON = $4aad                         ;_runindicon
26 D_ZT_STR = $4a37                        ;_puts
27 D_LT_STR = $4a3b                        ;_putps
28 TX_CHARPUT = $4a2b                      ;_putc
29 D_ZM_STR = $4aa5                        ;_vputs
30 D_LM_STR = $4aa9                        ;_vputsn
31 M_CHARPUT = $4aa1                       ;_vputmap
32 CLEARLCD = $4a7e                        ;_clrLCD
33
34
35 ;========================================================
36 ;These are memory addresses common for zshell programming
37 ;If possible, use the one on the right
38 ;========================================================
39
40 CONTRAST = $c008                        
41 CURSOR_ROW = $c00f                      ;_curRow
42 CURSOR_COL = $c010                      ;_curCol
43 BUSY_COUNTER = $c087 
44 BUSY_BITMAP     = $c088
45 CURSOR_X = $c37c                        ;_penCol
46 CURSOR_Y = $c37d                        ;_penRow
47 GRAPH_MEM = $c9fa                       ;_plotSScreen
48 TEXT_MEM2 = $cfab                       ;_cmdShadow
49 VAT_END = $d298
50 VAT_START = $8000
51 VIDEO_MEM = $fc00
52
53 ;==================================================================
54 ;all the keys are used with <call GET_KEY>, not TI's <call _getkey>
55 ;==================================================================
56 K_NOKEY       =$00    ;No key
57 K_DOWN        =$01    ;Down
58 K_LEFT        =$02    ;Left
59 K_RIGHT       =$03    ;Right
60 K_UP          =$04    ;Up
61 K_ENTER       =$09    ;Enter
62 K_PLUS        =$0A    ;+                      X
63 K_MINUS       =$0B    ;-                      T
64 K_STAR        =$0C    ;*                      O
65 K_SLASH       =$0D    ;/                      J
66 K_RAISE       =$0E    ;^                      E
67 K_CLEAR       =$0F    ;Clear
68 K_SIGN        =$11    ;(-)                    Space
69 K_3           =$12    ;3                      W
70 K_6           =$13    ;6                      S
71 K_9           =$14    ;9                      N
72 K_RIGHTPAR    =$15    ;)                      I
73 K_TAN         =$16    ;Tan                    D
74 K_CUSTOM      =$17    ;Custom
75 K_DOT         =$19    ;.                      Z
76 K_2           =$1A    ;2                      V
77 K_5           =$1B    ;5                      R
78 K_8           =$1C    ;8                      M
79 K_LEFTPAR     =$1D    ;(                      H
80 K_COS         =$1E    ;Cos                    C
81 K_PRGM        =$1F    ;Prgm
82 K_DEL         =$20    ;Del
83 K_0           =$21    ;0                      Y
84 K_1           =$22    ;1                      U
85 K_4           =$23    ;4                      Q
86 K_7           =$24    ;7                      L
87 K_EE          =$25    ;EE                     G
88 K_SIN         =$26    ;Sin                    B
89 K_TABLE       =$27    ;Table              ;Used to be Stat on the TI-85, now K_TABLE
90 K_XVAR        =$28    ;x-Var                  x
91 K_ON          =$29    ;On
92 K_STO         =$2A    ;Sto                    =
93 K_COMMA       =$2B    ;,                      P
94 K_SQUARE      =$2C    ;x^2                    K
95 K_LN          =$2D    ;Ln                     F
96 K_LOG         =$2E    ;Log                    A
97 K_GRAPH       =$2F    ;Graph
98 K_ALPHA       =$30    ;Alpha
99 K_F5          =$31    ;F5
100 K_F4          =$32    ;F4
101 K_F3          =$33    ;F3
102 K_F2          =$34    ;F2
103 K_F1          =$35    ;F1
104 K_SECOND      =$36    ;2nd
105 K_EXIT        =$37    ;EXIT
106 K_MORE        =$38    ;MORE