Ah yes, there there 10 types of micro programmers. Basic, Assembly, and C.Perhaps TS does not understand the difference between ASM and BASIC.
I haven't yet. That will be my next step. Thanks for the tip.Have you tried the PIC/Microchip mnemonics. For example, as mentioned, "addc" could be a macro (btfsc STATUS,0; incf regB,f) or a single instruction, addwfc. If the former, wrong result; if the latter, maybe OK given your next step.
Understood. In part, I am trying to determine that with my post.Perhaps TS does not understand the difference between ASM and BASIC.
Why you do not post the code as Eric told you? What game are you playing?To be honest, I'm fumbling my way through this course. I think I was able to figure it out. By loading the code into the assembler, I was able to get a little further. Now I'm getting an "Unrecognized instruction" error for line 2 and on. I've added ; to each line, made sure they are all lined up by using the TAB, and nothing seems to work.
Why do you not read the whole thread before posting? I posted the assembly code in the first post.Why you do not post the code as Eric told you? What game are you playing?
Blah, blah, blah, no good.
Cool down. The code in the first post is assembly code. But you kept talking about BASIC code.Why do you not read the whole thread before posting? I posted the assembly code in the first post.
Apologies. I made the realization that it was not BASIC and posted about it in post 16. I am definitely not trying to play any games, as was insinuated. I am simply trying to understand this a little more. These errors have me all twisted.Cool down. The code in the first post is assembly code. But you kept talking about BASIC code.
For most of us here, BASIC code looks and is written completely different than the code you posted.
Hence, we were looking for BASIC code to be posted. And you most definitely did not post anything remotely resembling BASIC.
Nice. So you solved your problem. For the benefit of all readers would you consider telling us what was the problem and what you did to solve it?I figured it out. After taking a break, I realized that the commands weren't complete as needed - the mnemonics were wrong as jpanhalt suggested. I was able to solve it.
| Thread starter | Similar threads | Forum | Replies | Date |
|---|---|---|---|---|
|
|
pic-as assembler 18F family - syntax error - SOLVED | Microcontrollers | 1 | |
| M | MPLab syntax error | Programming & Languages | 18 | |
|
|
C - syntax error C141. Can't figure out why 1 function does't work. | Programming & Languages | 13 | |
|
|
syntax error | Programming & Languages | 8 | |
|
|
Help, error syntax i dont know | Programming & Languages | 8 |