Electrical Engineering please try all questions. thank you so much (8086/8088 assembly programming) (4a) A program is written to add the values 1000H, 2000H, 00FFH, and 1111H. The partially completed code segment is given below. Complete the partially completed code given below. The final result should be stored in DX. SEGMENT 81 CSEG 82 START: 83 84 MOU AX, 1800H MOU BX, 2888H MOU CX, 80FFH MOU DX, 1111H 85 86 87 08 ; WRITE YOUR CODE HERE 89 18

Delmar's Standard Textbook Of Electricity
7th Edition
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Stephen L. Herman
Chapter13: Magnetic Induction
Section: Chapter Questions
Problem 1PA
icon
Related questions
Question
Electrical Engineering
please try all questions. thank you so much
(8086/8088 assembly programming)
(4a)
A program is written to add the values 1000H, 2000H, 00FFH, and 1111H. The partially
completed code segment is given below. Complete the partially completed code given below.
The final result should be stored in DX.
81 CSEG
SEGMENT
82 START:
83
04
MOU AX, 1800H
MOU BX, 2000H
MOU CX, 08FFH
MOU DX, 1111H
85
86
87
08
; WRITE YOUR CODE HERE
89
10
11
; return control to DOS
MOU AX, 4C00H
INT 21H
12
13 ENDS
(4b)
Write an instruction sequence to implement (08H+16H)/2.
Hint: The division by 2 can be accomplished by right shifting the value by 1 bit.
(4c)
An assembly program is given below.
81 DATA
SEGMENT
DB 179
02 BINUAL
83 MSG
DB
This is final exam!'
84
DB ODH, BAH,'$'
05 VAR1
EQU 9983H
86 VAR2
EQU 67H
07 LIST
DB 5 DUP (7)
88 ENDS
89
18 CSEG
SEGMENT
11 START:
12
MOU AX,DATA
MOU DS AX
13
14
15
MOU AX, 05H
MOU CX, 10
16
17 LOP1:
18
INC AX
LOOP LOP1
19
20
21
MOU
AH,4CH; return the control to DOS
21H ; after the last INT 21H
22
INT
23 ENDS
24
25 END START
26
Identiy all the labels in the above program.
What value is stored in AX after the program has completed execution?
(4d)
Write a set of instructions to set the bit 4 of the flag register and reset bit 6.
Transcribed Image Text:Electrical Engineering please try all questions. thank you so much (8086/8088 assembly programming) (4a) A program is written to add the values 1000H, 2000H, 00FFH, and 1111H. The partially completed code segment is given below. Complete the partially completed code given below. The final result should be stored in DX. 81 CSEG SEGMENT 82 START: 83 04 MOU AX, 1800H MOU BX, 2000H MOU CX, 08FFH MOU DX, 1111H 85 86 87 08 ; WRITE YOUR CODE HERE 89 10 11 ; return control to DOS MOU AX, 4C00H INT 21H 12 13 ENDS (4b) Write an instruction sequence to implement (08H+16H)/2. Hint: The division by 2 can be accomplished by right shifting the value by 1 bit. (4c) An assembly program is given below. 81 DATA SEGMENT DB 179 02 BINUAL 83 MSG DB This is final exam!' 84 DB ODH, BAH,'$' 05 VAR1 EQU 9983H 86 VAR2 EQU 67H 07 LIST DB 5 DUP (7) 88 ENDS 89 18 CSEG SEGMENT 11 START: 12 MOU AX,DATA MOU DS AX 13 14 15 MOU AX, 05H MOU CX, 10 16 17 LOP1: 18 INC AX LOOP LOP1 19 20 21 MOU AH,4CH; return the control to DOS 21H ; after the last INT 21H 22 INT 23 ENDS 24 25 END START 26 Identiy all the labels in the above program. What value is stored in AX after the program has completed execution? (4d) Write a set of instructions to set the bit 4 of the flag register and reset bit 6.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Proportional, Integral, Derivative Controllers and their Combinations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Delmar's Standard Textbook Of Electricity
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
Electric Motor Control
Electric Motor Control
Electrical Engineering
ISBN:
9781133702818
Author:
Herman
Publisher:
CENGAGE L