Suppose, a "word-wide" input device (i.e. each input is 2 bytes in size) is connected to the port of an 8086 microprocessor located at address FAh. Additionally, two "byte-wide" output devices (i.e. each output data is 1 byte in size) are connected to the ports located at the address FA8AH and 5C38H. Now, write an assembly code snippet that does the following- a. Read a word from the input device. b. Split the word into two bytes. c. Write the high byte to the port address FA8AH and the low byte to the port address 5C3B..

Electric Motor Control
10th Edition
ISBN:9781133702818
Author:Herman
Publisher:Herman
Chapter22: Sequence Control
Section: Chapter Questions
Problem 6SQ: Draw a symbol for a solid-state logic element AND.
icon
Related questions
Question
Suppose, a "word-wide" input device (i.e. each input is 2 bytes in size) is connected to the port of an 8086 microprocessor located at address FAh.
Additionally, two "byte-wide" output devices (i.e. each output data is 1 byte in size) are connected to the ports located at the address FA8AH and 5C3Bh.
Now, write an assembly code snippet that does the following-
a. Read a word from the input device.
b. Split the word into two bytes.
c. Write the high byte to the port address FA8AH and the low byte to the port address 5C3BH.
Transcribed Image Text:Suppose, a "word-wide" input device (i.e. each input is 2 bytes in size) is connected to the port of an 8086 microprocessor located at address FAh. Additionally, two "byte-wide" output devices (i.e. each output data is 1 byte in size) are connected to the ports located at the address FA8AH and 5C3Bh. Now, write an assembly code snippet that does the following- a. Read a word from the input device. b. Split the word into two bytes. c. Write the high byte to the port address FA8AH and the low byte to the port address 5C3BH.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Electric Motor Control
Electric Motor Control
Electrical Engineering
ISBN:
9781133702818
Author:
Herman
Publisher:
CENGAGE L