Given the definition of the following data segment, where A and B are ASCII numbers. .DATAA DB ’ 2 8 ’B DB ’ 5 4 ’ORG 0100HC DB ?   Write the required code segment that converts these ASCII numbers to packed BCD and add them upto calculate sum in pack BCD form. Save the result in variable C. The resulting BCD number is assumedto be a byte.

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

Given the definition of the following data segment, where A and B are ASCII numbers.


.DATA
A DB ’ 2 8 ’
B DB ’ 5 4 ’
ORG 0100H
C DB ?

 

Write the required code segment that converts these ASCII numbers to packed BCD and add them up
to calculate sum in pack BCD form. Save the result in variable C. The resulting BCD number is assumed
to be a byte.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Logic Gate and Its Application
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
Electric Motor Control
Electric Motor Control
Electrical Engineering
ISBN:
9781133702818
Author:
Herman
Publisher:
CENGAGE L