954,490 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

finding modulo of a number in masm

Hi everyone!Can you please help me with my project.My problem goes like this:
I have to make a bcd coded program in finding the modulo of a number,assemble it in masm and load it into the pic16f84a.I am going to use a dip switch for it's input and 1 7-segment for it's output.I hope you got it guyz...Thanks!

loimarie
Newbie Poster
14 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

I hope I got it as well, but I'll give it a try:
When dividing a number with DIV then it returns the result in AX and the modulo in DX.

Communicating with a microchip can easily be done via the RS-232 (COM) Port. Have a look in you OS-environment to find the port you want to use. Alternatively you can have a look in the net as mostly the ports have the same address. There is a way, and not even hard, to find the 232-port in assembly but I can find the website in the moment and don't have my source-code on this computer. Sorry.

sDJh
Posting Whiz in Training
259 posts since Aug 2005
Reputation Points: 56
Solved Threads: 29
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You