; Author: Your name
; Date written:
section bss
snsun resb ; reserve byte of memory to store the result
medsum resw ; reserve word of memory bytes to store the result
lgsum resd ; reserve dword of memory bytes to store the result
gtsum resq ; reserve qword of menory bytes to store the result
section text
Blobal start
start:
mov alsm ; AL smcopy one byte from memory at sm into register AL
add alsm ; AL ssmsmadd two numbers
mov smSun al ; smSun AL copy the value in AL into memory at smSum
mov axmed ; AX medcopy one byte from memory at med into register
add med medadd two numbers
mov medSum ax ; medSum AX copy the value in into memory at medSum
mov eax, g ; EAX gcopy one byte from menory at into register EAx
add eax, g ; EAX ggadd two numbers
mov gSum eax ; gSum EAX copy the value in EAX into memory at gSum
mov rax, gt ; RAX gtcopy one byte from memory at gt into register RAX
add rax, gt ; RAX gtgtadd two numbers
mov gtSum rax; gtSum RAX copy the value in RAX into memory at gtSum