![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) |
|
Have you tried reading what they say?, there is one error there, and sixteen identical warnings - for a start I would suggest you cure the cause of the warnings, and add the destination bit to the sixteen lines where you've left it off! - the default (file) may not be what you want, and it's bad programming practice not to include it.
The actual error is simple as well - do you know the difference between '0' and 'O'? - the assembler does!. |
|
|
|
|
|
|
(permalink) | |
|
aLL PROBLEM HAS BEEN SOLVED
but now only one problem MPLAB SIM not running Quote:
|
||
|
|
|
|
|
(permalink) |
|
No idea, I've never used the simulator!.
|
|
|
|
|
|
|
(permalink) |
|
Program execution starts at location zero. You do not have any code at the start location. Looking through your code, you don't appear to have any main code just a collection of subroutines which I assume you copied of the internet. Putting random bits of code together and hoping it will work is not going to get you anywhere. Read the sticky and some of the tutorials. I like the free online book at microelectronica. You should read this and try to write your own code.
Mike. |
|
|
|
|
|
|
(permalink) |
|
thank u for the link Pommie.
But for ur information i only use subroutines for 16 bit multiplication and subtraction. Remaining code is mine. I am beginer, i started learning about 1 week ago from Nigel Goodwin's tutorials. You broke my heart. |
|
|
|
|
|
|
(permalink) |
|
I'm sorry if I hurt your feelings, but if you have written the above code then you have a good understanding of assembler. The small error I pointed out in your code should enable you to get it working.
Mike. |
|
|
|
|
|
|
(permalink) | ||
|
Quote:
one thing that i notice for running MPLAB SIM is, there should be some commands after ENDC command. Then i add Quote:
Thanks again |
|||
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| Need help with Intel Assembly Language and PIC16F877 | avinsinanan | Micro Controllers | 10 | 4th March 2008 10:02 AM |
| Assembly? | Marks256 | Micro Controllers | 43 | 28th July 2006 03:44 PM |
| Assembly compiler | Thunderchild | Micro Controllers | 4 | 12th March 2006 01:25 PM |
| Learning Assembly Programming Language | Johnson777717 | Micro Controllers | 4 | 22nd March 2004 02:00 PM |
| Assembly Language Question | Jeggyman | General Electronics Chat | 6 | 30th January 2004 09:53 PM |