-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCOUNT.ASM
50 lines (36 loc) · 1003 Bytes
/
COUNT.ASM
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include "ti-85.h"
MTEXT_Y = $8333
MTEXT_X = $8334
TEXT_X = $800D
TEXT_Y = $800C
TIMER = $800E
#DEFINE WHITETEXT set 3,(IY+05)
#DEFINE BLACKTEXT res 3,(IY+05)
#DEFINE NOTEXTMEM set 1,(IY+0D)
#DEFINE TEXTMEM res 1,(IY+0D)
#DEFINE 6rows res 1,(IY+05) ; Print only 6 rows of the character
#DEFINE 7rows set 1,(IY+05) ; Print entire 7 rows of the character
#DEFINE COPYprint res 3,(IY+05) ; Print character over current screen
#DEFINE XORprint set 3,(IY+05) ; XOR character with current screen
#DEFINE nprint(x,y,n) ld a,x \ ld (text_x),a \ ld a,y \ ld (text_y),a \ ld hl, n \ ROM_CALL(D_HL_DECI)
.org 0
.db "Counter",0
ProgStart:
ROM_CALL(CLEARLCD)
BLACKTEXT
ld a,0
ld (TEXT_Y),a
ld (TEXT_X),a
ld hl,0000
ld (timer),hl
loop:
ld a, 0
ld (text_x),a
ld (text_y),a
ROM_CALL(D_HL_DECI)
inc hl
call get_key
cp K_ENTER
jr nz, loop
ret
.END