Debian Codegraph @

test/istruc_local.asm

raw
1 ;Testname=test; Arguments=-fbin -oistruc_local.bin; Files=stdout stderr istruc_local.bin
2
3 struc Struc1
4 .dword: resd 1
5 .word: resw 1
6 endstruc
7
8 struc Struc2
9 .word: resw 1
10 .dword: resd 1
11 endstruc
12
13 ; The following returned error about negative values for TIMES in nasm 2.15.05
14 ; because local labels seemingly matching Struc1 have been replaced by those in
15 ; Struc2.
16
17 istruc Struc1
18 at .dword, dd 0xffffffff
19 at .word, dw 0x1111
20 iend
21
22 ; The following two just didn't work as istruc was just literally outputting
23 ; local labels which are unknown after a global label appears.
24
25 struc1:
26
27 istruc Struc1
28 at .dword, dd 0x78563412
29 at .word, dw 0xbc9a
30 iend
31
32 struc2:
33
34 istruc Struc2
35 at .word, dw 0xbc9a
36 at .dword, dd 0x78563412
37 iend