; ahal.asm
; to verify the values into registers
; by renzo diomedi
;
section .data
varbh db 0
varbl db 0
varw dw 0
vard dd 0
varq dq 0
;
section .text
global _start
_start:
;
mov rax, 0x1f4 ; 500
;
mov byte [varbh], ah 
mov byte [varbl], al
mov word [varw], ax
; wrong: mov dword [vard], eal
; wrong: mov dword [vard], eah
mov dword [vard], eax
; wrong: mov qword [varq], rah
; wrong: mov qword [varq], ral
; 
;
mov rax, 1
mov rbx, 0
int 0x80
