-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.inc
More file actions
30 lines (26 loc) · 709 Bytes
/
Copy pathconfig.inc
File metadata and controls
30 lines (26 loc) · 709 Bytes
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
IF !DEF(CONFIG_INCLUDED)
CONFIG_INCLUDED SET 1
;;;
; Prepending the token set here to a label/symbol/address will force
; the assembler to use ldh when loading to/from it within an op.
; eg.
; cpAny B, #[labelInHram]
; expands to
;
; ldh A, [labelInHram]
; cp B
;
;;;
LDH_TOKEN EQUS "\"#\""
;;;
; If you understand the warnings and don't want them polluting your assembler output, set this to 0
;;;
WARNINGS_ENABLED SET 1
;;;
; If you define an instruction or macro here, pseudoops with defined error states will
; include instructions to check for errors and call your handler.
; So far this just means checking for a divide by zero.
;;;
ERROR_HANDLER EQUS ""
;ERROR_HANDLER EQUS "rst $38"
ENDC