***** ; ; Byte Operations ; unsigned byte additions bAnsl bAns2 bAns3 ; signed byte additions bAns4 bAns5 =bNum2 + bNum3 =bNum1 + bNum3 =bNum4 + bNum3 ‒‒‒‒‒ unsigned byte subtractions =bNum5+ bNum7 =bNum6 + bNum8 bAns6 =bNum1bNum3 bAns7 =bNum2bNum3 bAns8 =bNum3bNum4 ; signed byte subtraction bAns9 =bNum5bNum8 bAns10 bNum7bNum6 ; unsigned byte multiplication wAns11 =bNum1 bNum4 wAns12 =bNum2 bNum2 wAns13 =bNum3 * bNum2 ; signed byte multiplication wAns14 =bNum5bNum6 wAns15 =bNum7bNum8 unsigned byte division bAns16bNum1/bNum3 bAns17 bNum4 bNum2 bAns18= wNum3 / bNum4 bRem18 WwNum3 8 bNum4 signed byte division bAns19bNum5/ bNum8 *********** bAns20 bNum6/bNum7 bAns21= wNum5/bNum8 bRem21= wNum5 % bNum8 ; Word Operations ; unsigned word additions wAns1 wAns2 wAns3 =wNum4 + wNum1 =wNum3 + wNum2 =wNum3 + wNum3 signed word additions wAns4 =wNum5 + wNum7 wAns5 =wNum6 wNum8 *******

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Use assembly language to compute the following calculations
;
; Byte Operations
; unsigned byte additions
;
;
;
;
; signed byte additions
;
;
;
************
;
;
; unsigned byte subtractions.
;
bAns1 = bNum2 + bNum3
= bNum1 + bNum3
bAns2
bans 3
= bNum4 + bNum3
;
;
bAns4 = bNum5 + bNum7
bAns5=bNum6 + bNum8
;
; signed byte subtraction
;
bAns6 =bNuml - bNum3
bAns7 =bNum2 - bNum3
bNum4
;
bAns8bNum3
;
;
; unsigned byte multiplication
;
;
bAns9bNum5bNum8
bAns10bNum7bNum6
;
; signed byte multiplication
;
wAns11=bNum1 * bNum4
wAns12bNum2* bNum2
wAns13 =bNum3* bNum2
;
;
; unsigned byte division
;
;
;
wAns14 = bNum5bNum6
wAns15 = bNum7 * bNum8
;
; signed byte division
;
;
bAns16bNum1 / bNum3
bAns17=bNum4 / bNum2
bAns18 wNum3 / bNum4
bRem18 wNum3 % bNum4
bAns19bNum5 / bNum8
bAns20 bNum6/bNum7
bAns21wNum5/bNum8
bRem21wNum5 % bNum8
; ******
; Word Operations
; unsigned word additions
;
*************
wAns1= wNum4 + wNum1
wAns2= wNum3 + wNum2
wAns3= wNum3 + wNum3
;
;
; signed word additions
;
***************
*******
wAns4 = wNum5 + wNum7
wAns 5 = wNum 6+ wNum8
Transcribed Image Text:; ; Byte Operations ; unsigned byte additions ; ; ; ; ; signed byte additions ; ; ; ************ ; ; ; unsigned byte subtractions. ; bAns1 = bNum2 + bNum3 = bNum1 + bNum3 bAns2 bans 3 = bNum4 + bNum3 ; ; bAns4 = bNum5 + bNum7 bAns5=bNum6 + bNum8 ; ; signed byte subtraction ; bAns6 =bNuml - bNum3 bAns7 =bNum2 - bNum3 bNum4 ; bAns8bNum3 ; ; ; unsigned byte multiplication ; ; bAns9bNum5bNum8 bAns10bNum7bNum6 ; ; signed byte multiplication ; wAns11=bNum1 * bNum4 wAns12bNum2* bNum2 wAns13 =bNum3* bNum2 ; ; ; unsigned byte division ; ; ; wAns14 = bNum5bNum6 wAns15 = bNum7 * bNum8 ; ; signed byte division ; ; bAns16bNum1 / bNum3 bAns17=bNum4 / bNum2 bAns18 wNum3 / bNum4 bRem18 wNum3 % bNum4 bAns19bNum5 / bNum8 bAns20 bNum6/bNum7 bAns21wNum5/bNum8 bRem21wNum5 % bNum8 ; ****** ; Word Operations ; unsigned word additions ; ************* wAns1= wNum4 + wNum1 wAns2= wNum3 + wNum2 wAns3= wNum3 + wNum3 ; ; ; signed word additions ; *************** ******* wAns4 = wNum5 + wNum7 wAns 5 = wNum 6+ wNum8
; unsigned word subtractions
wAns6= wNum1 - wNum3
wAns7= wNum2 - wNum4
wAns8= wNum4 wNum2
;
;
; signed word subtraction
wAns9= wNum5
wNum8
wAns10= wNum6 wNum7
;
; unsigned word multiplication
;
;
; signed word multiplication
dAns11wNum1wNum4
dAns12= wNum4* wNum4
dAns13= wNum2 * wNum3
; unsigned word division
;
;
dAns14= wNum5* wNum7
dans 15 = wNum6wNum8
; signed word division
***
;
wAns16= wNum2 / WNum3
wAns17= wNuml/wNum4
wAns18 dNuml/wNum2
wRem 18 dNum1 % wNum2
wAns19= wNum5/ wNum8
wAns20= wNum7/WNum6
wAns21 dNum5/ wNum7
wRem21 dNum5 % wNum7
;
; Double-Word Operations
; unsigned double-word additions
dAns1 =dNum1
dAns2
dans 3
dNum4
= dNum2 + dNum3
dNum 3 + dNum4
; signed double-word additions
dAns4 = dNum 5 + dNum8
dans 5 dNum6 + dNum7
; unsigned double-word subtractions
dAns6 = dNum1
dNum4
dAns7 = dNum2- dNum3
dans 8 dNum3-dNum4
; signed double-word subtraction
dAns9dNum5 - dum7
dAns10 = dNum 6 - dNum8
; unsigned double-word multiplication
qAns11=dNum1 dNum2
qAns12 dNum3 dNum4
qAns13 dNum2 * dNum3
; signed double-word multiplication
qAns14dNum 5
dNum6
qAns15 = dNum7 * dNum8
; unsigned double-word division
dAns16 dNum1 / dNum4
dAns17 dNum2 dNum3
Transcribed Image Text:; unsigned word subtractions wAns6= wNum1 - wNum3 wAns7= wNum2 - wNum4 wAns8= wNum4 wNum2 ; ; ; signed word subtraction wAns9= wNum5 wNum8 wAns10= wNum6 wNum7 ; ; unsigned word multiplication ; ; ; signed word multiplication dAns11wNum1wNum4 dAns12= wNum4* wNum4 dAns13= wNum2 * wNum3 ; unsigned word division ; ; dAns14= wNum5* wNum7 dans 15 = wNum6wNum8 ; signed word division *** ; wAns16= wNum2 / WNum3 wAns17= wNuml/wNum4 wAns18 dNuml/wNum2 wRem 18 dNum1 % wNum2 wAns19= wNum5/ wNum8 wAns20= wNum7/WNum6 wAns21 dNum5/ wNum7 wRem21 dNum5 % wNum7 ; ; Double-Word Operations ; unsigned double-word additions dAns1 =dNum1 dAns2 dans 3 dNum4 = dNum2 + dNum3 dNum 3 + dNum4 ; signed double-word additions dAns4 = dNum 5 + dNum8 dans 5 dNum6 + dNum7 ; unsigned double-word subtractions dAns6 = dNum1 dNum4 dAns7 = dNum2- dNum3 dans 8 dNum3-dNum4 ; signed double-word subtraction dAns9dNum5 - dum7 dAns10 = dNum 6 - dNum8 ; unsigned double-word multiplication qAns11=dNum1 dNum2 qAns12 dNum3 dNum4 qAns13 dNum2 * dNum3 ; signed double-word multiplication qAns14dNum 5 dNum6 qAns15 = dNum7 * dNum8 ; unsigned double-word division dAns16 dNum1 / dNum4 dAns17 dNum2 dNum3
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education