aboutsummaryrefslogtreecommitdiffstats
path: root/macros/predef.asm
blob: efd692f19e29152038bb01e87b3af90fb9d6801d (plain) (blame)
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
MACRO? predef_id
	ld a, (\1Predef - PredefPointers) / 3
ENDM

MACRO? predef
	predef_id \1
	call Predef
ENDM

MACRO? predef_jump
	predef_id \1
	jp Predef
ENDM


MACRO? tx_pre_id
	ld a, (\1_id - TextPredefs) / 2 + 1
ENDM

MACRO? tx_pre
	tx_pre_id \1
	call PrintPredefTextID
ENDM

MACRO? tx_pre_jump
	tx_pre_id \1
	jp PrintPredefTextID
ENDM

MACRO? db_tx_pre
	db (\1_id - TextPredefs) / 2 + 1
ENDM