jjeevan007
Full Member level 5
can anyone help me
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
can anyone help me
write a decimal to binary conversion routine and transform the resultant binary to hexadecimal.
you have not specified it for which controller . remember assembly code differs for each controller
Code ASM - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Begin: Mov A,#99h Acall Con_Dec_2_Hex Sjmp $ Con_Dec_2_Hex: Push Acc Anl A,#F0h Swap A Mov B,#0Ah Mul AB Xch A,B Pop Acc Anl A,#0Fh Add A,B Ret
Try this (Source and result at accumulator):
Code ASM - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Begin: Mov A,#99h Acall Con_Dec_2_Hex Sjmp $ Con_Dec_2_Hex: Push Acc Anl A,#F0h Swap A Mov B,#0Ah Mul AB Xch A,B Pop Acc Anl A,#0Fh Add A,B Ret