Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

; Author: Your name ; Date written: section . bss snsun resb 1 ; reserve 1 byte of memory to store the result medsum resw

; Author: Your name
; Date written:
section .bss
snsun resb 1 ; reserve 1 byte of memory to store the result
medsum resw 1 ; reserve 1 word of memory (2 bytes) to store the result
lgsum resd 1 ; reserve 1 dword of memory (4 bytes) to store the result
gtsum resq 1 ; reserve 1 qword of menory (8 bytes) to store the result
section .text
Blobal start
-start:
mov al,[sm1] ; AL --[sm1](copy one byte from memory at sm1 into register AL).
add al,[sm2] ; AL s--[sm1]+[sm2](add two numbers)
mov [smSun], al ; [smSun]-- AL (copy the value in AL into memory at smSum)
mov ax,[med1] ; AX --[med1](copy one byte from memory at med1 into register Ax)
add med1]+ med2(add two numbers)
mov [medSum], ax ; [medSum]-- AX (copy the value in Ax into memory at medSum)
mov eax, [1g1] ; EAX --[1g1](copy one byte from menory at 1g1 into register EAx )
add eax, [1g2] ; EAX --[1g1]+[1g2](add two numbers)
mov [1gSum], eax ; [1gSum]-- EAX (copy the value in EAX into memory at 1gSum)
mov rax, [gt1] ; RAX --[gt1](copy one byte from memory at gt1 into register RAX)
add rax, [gt2] ; RAX --[gt1]+[gt2](add two numbers)
mov [gtSum], rax; [gtSum]-- RAX (copy the value in RAX into memory at gtSum)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Describe your ideal working day.

Answered: 1 week ago