Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .code
- main PROC
- main_locs STRUC QWORD ; 8 byte (QWORD) alignment
- beginStack DQ ?
- myLocalA DQ ?
- myLocalB DQ ?
- myArrayA BYTE 10 DUP (?)
- myArrayB BYTE 10 DUP (?)
- endStack DQ ?
- main_locs ENDS
- LOCAL stack_vars: main_locs
- lea rcx, stack_vars
- mov [rcx][main_locs.beginStack], 0ffffffffdeadbeefh
- mov [rcx][main_locs.myLocalA], 0ffffffffffffffffh
- mov [rcx][main_locs.myLocalB], 00000000000000000h
- ;Fill myArrayA with 10 As
- mov rax, "AAAAAAAA"
- mov QWORD PTR[rcx][main_locs.myArrayA], rax
- mov WORD PTR[rcx][main_locs.myArrayA+8], ax
- ;Fill myArrayB with 10 Bs
- mov rax, "BBBBBBBB"
- mov QWORD PTR[rcx][main_locs.myArrayB], rax
- mov WORD PTR[rcx][main_locs.myArrayB+8], ax
- mov [rcx][main_locs.endStack], 0ffffffffbaadf00dh
- ret
- main ENDP
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement