Discussion in "8051 Discussion Forum" started by    xrxx    Apr 30, 2020.
Thu Apr 30 2020, 04:29 pm
#1
BCD MULTIPLICATION
Assume that you have to 2 BCD numbers in 2 registers/memory locations.
Write a subroutine to multiply these 2 numbers and put the result in a different register set/memory location. The maximum number can be 9801 (99*99=9801). So you need 2 bytes to store 4-BCD digits.
Execute your program in the simulator and get screenshots at several steps during the execution.
Put your code and screenhots in a zip file seperately and submit the zip file as name_surname_id_hw1.zip
SWAP is good instruction to switch lower and higher nibbles (4-bits) in A.
Repeat the steps we follow on the paper.

Guys, can u help me for this? pleaseeeee

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Zaemlmoche
Tue Sep 26 2023, 06:36 pm
StanleyMek
Tue Sep 26 2023, 01:43 pm
Vikiayf
Tue Sep 26 2023, 05:28 am
Lunteecrenope
Tue Sep 26 2023, 12:51 am
Senyapralk
Mon Sep 25 2023, 08:14 pm
Rosalbazem
Mon Sep 25 2023, 05:55 pm
Robertquorm
Sun Sep 24 2023, 09:57 pm
FrancisaHiz
Sun Sep 24 2023, 05:58 pm