Commit | Line | Data |
---|---|---|
6e917903 TW |
1 | * |
2 | * Extended addressing support | |
3 | * | |
4 | .version 548 | |
5 | .far_mode | |
6 | .global F1, start, end | |
7 | ; LDX pseudo-op | |
8 | ldx #F1,16,a ; load upper 8 bits of extended address | |
9 | or #F1,a,a ; load remaining bits | |
10 | bacc a | |
11 | ; extended addressing functions | |
12 | start: | |
13 | fb end | |
14 | ||
15 | fbd end | |
16 | nop | |
17 | nop | |
18 | ||
19 | fbacc a | |
20 | fbaccd a | |
21 | nop | |
22 | nop | |
23 | fcala a | |
24 | fcalad b | |
25 | nop | |
26 | nop | |
27 | fcall end | |
28 | ||
29 | fcalld end | |
30 | nop | |
31 | nop | |
32 | ||
33 | fret | |
34 | fretd | |
35 | nop | |
36 | nop | |
37 | frete | |
38 | freted | |
39 | nop | |
40 | nop | |
41 | .space 16*0xFFFF | |
42 | .align 0x80 | |
43 | end: | |
44 | fb end | |
45 | .end |