123456789101112131415161718192021 |
- global _start
- section .data
- align 16
- mydword:
- dd 0
- %include "header.inc"
- ; 32-bit register move should set higher bits to zero
- mov eax, -1
- mov eax, ss
- and eax, 0xffff0000
- ; 32-bit memory move should preserver higher bits
- mov dword [mydword], 0xdeadbeef
- mov [mydword], ss
- mov ebx, [mydword]
- and ebx, 0xffff0000
- %include "footer.inc"
|