| View previous topic :: View next topic |
| Author |
Message |
mcnaugg
Joined: 08 Apr 2009 Posts: 2 Location: Pretoria,South Africa
|
Posted: Tue Jan 05, 2010 4:39 pm Post subject: ASM structure |
|
|
If I look at an .asm program via a text editor etc the written program layout is all neat and structured. It appears that the Tab key is used to keep all of the text in line, one above each other. Are there any rules for this layout i.e. the remarks or Rem statement as I know them must be x number of tabs in?
The reason I ask is that I cut and pasted a couple of files into MPASM and initially I was getting errors. Being a complete novice I couldn't make sense of the reasons. However when I tidied everything up into nice “vertical” columns it seemed to solve the problem. Hence the question. |
|
| Back to top |
|
 |
KC
Joined: 05 May 2006 Posts: 99 Location: Victoria BC Canada
|
Posted: Sun Jan 10, 2010 6:50 pm Post subject: |
|
|
It's probably a little late now, but usually the warning you get is something like this:
Warning[203] C:\MPLAB\16F684\16F684.ASM 75 : Found opcode in column 1. (movwf)
That doesn't cause the build to fail though. It is just a warning to help you reduce possible errors in your program.
Did you get an error or warning? ie: did it say:
BUILD SUCCEEDED
or
BUILD FAILED
At the end? _________________ KC |
|
| Back to top |
|
 |
|