Chapter 10 Writing Assembler Control Statements
The assembled list file is shown below. Where the characters debug_on have been specified, block 2
is assembled. Where the null character has been specified, block 1 is assembled.
***
Loc
Object
00000000
F8FEFCFCFF000000
00000008
00F8FE04
0000000c
F8FEFCFCFF000000
00000014
00F8FE04
00000018
F8FEFCFCFF000000
00000020
00F8FE04
204 Conditional Assembly
PanaX Series MN1030 Cross Assembler
Line
1
2
M3
4
5
6
7
8
9
10
11
12
13
M14
14+
14X
14X
14+
+14+
14+
14+
15
16
M17
17+
+17+
17+
+17+
17+
17+
17X
17+
ifb.lst
Source
global
;
debug
macro
#ifb
string
jsr
jsr
#else
jsr
#endif
endm
;
_TEXT
section
#define
MODE
debug
#ifb
debug_on
jsr
jsr
#else
jsr
#endif
#undef
MODE
#define
MODE
debug
#ifb
jsr
jsr
#else
jsr
#endif
Page 1
***
check,proc
string
check
proc
proc
CODE, PUBLIC, 1
debug_on
MODE
check
proc
proc
MODE
check
proc
proc