Debian Codegraph @

travis/test/struc.asm

raw
1 bits 32
2
3 ; Simple struc example
4 struc teststruc1
5 .long: resd 1
6 .word: resw 1
7 .byte: resb 1
8 .str: resb 32
9 endstruc
10
11 ; Reference with offset
12 mov [ebp - 40 + teststruc1.word], ax
13
14 istruc teststruc1
15 at .word, db 5
16 iend
17
18 ; Struc with base offset
19 ; should be the same as the previous stuc
20 struc teststruc2, -40
21 .long: resd 1
22 .word: resw 1
23 .byte: resb 1
24 .str: resb 32
25 endstruc
26
27 mov [ebp + teststruc2.word], ax
28
29 istruc teststruc2
30 at .word, db 5
31 iend