Two ASCII Values are stored in memory locations 0x100 and 0x102, respectively. Write a program to convert these values into a packed BCD number and stores it in location 0x104.
Added by Steven C.
Close
Step 1
Two ASCII characters (digits '0'..'9') are stored at memory addresses 0x100 and 0x102. Convert them into one packed BCD byte (high nibble = first digit, low nibble = second digit) and store the result at 0x104. Show more…
Show all steps
Your feedback will help us improve your experience
Paul Gabriel and 91 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write an assembly language program for the 8085 microprocessor to add two-digit BCD numbers stored in memory locations C050H and C051H respectively, and store the result in memory location C052H.
Madhur L.
Akash M.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD