SASM error
duffling
Posts: 73
when attempting to compile an Sx/b with some assm in there
i get the following error
SASM was unable to create the .SYM file file may be open in another application
any ideas?
·
i get the following error
SASM was unable to create the .SYM file file may be open in another application
any ideas?
·
Comments
it went in standby, and after i restarted the laptop ,it opened the sx-software, i press the program button and then it happend: I had the same error. I close Sx software and restarted and everything was ok.
ciao
\ buttonone =rb.0
\ jnb buttonONE,button ' jump to button subroutine when bit = 0
for some reason if i have the commented code attached to this line it would crash
i took the comment out and it was fine??
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video Display Module" Available Now.
www.sxvm.com
"A problem well defined, is a problem·half solved."
·
\buttonone·· equ·· rb.0
buttonone=rb.0 is a BASIC directive. The above expression equates the two as being synonymous, so wherever in your code you write buttonone, when the assembler passes through it will replace all occurances of buttonone with rb.0 before doing final assembly. If buttonone is a seperate variable that you assign the value of rb.0 then use the MOVB instruction like Bean said.
·
why would that be?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Was the "Unable to create..." dialog the only error you got? No error messages in the status bar? I know you've figured out the problem by now, but is there any chance you could either post your source code or send me a private message with it? Preferably you could send me the code modified back to the way it was that caused the error message. Even though you got the problem fixed, I would just like to see what is going on under the hood to see if there is some way to make the IDE provide better feedback.
Thanks, PeterM
/ led = rb.0
which should have been
/led equ rb.0
if u still need my source let me know and ill post it
If you can post it that would be great. I just want to see whether or not the IDE could give any better feedback on an error like this.
Thanks, PeterM
ill PM you once ive found it
Global VAR BYTE
This gets compiled to:
Global EQU 0x0C
First I get a RTE, then the dialog about the .SYM file.
P.S. Peter in the latest 3.00.07 BetaX, it is flagged as a missing label (no RTE).
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video Display Module" Available Now.
www.sxvm.com
"A problem well defined, is a problem·half solved."
Post Edited (Bean) : 3/31/2005 3:50:38 PM GMT
Check out the SASM PDF help file. "Global" is actually a SASM keyword that is the same as "equ". So writing:
is the same as writing
As far as the parser is concerned, it sees "equ" and wonders why there was no label in front of it as in:
Hence the error about the missing label is there because, well, the label is missing.
I have to send a quick note to Gunther to have him update the keyword list for SASM in the SX_Key manual. There is a typo on page 78 where it says
GLOBALID
ID
Somewhere the actual keyword "GLOBAL" got concatenated with the next keywrod "ID", which was then also added as a separate keyword.
Thanks, PeterM
Is there ANY word that is NOT allowed in a comment (after a [noparse];)[/noparse] ?
I am trying to bring in some assembly code into an SX/B program and I'm getting the dreded RTE followed by the "could not create .sym file" error dialog.
Now SX/B is currently echoing the assembly line in a comment following the line. For example
NOP ; NOP
Now this assembly code uses MACRO ENDM REPT and such, are there any such word not allowed in a comment ?
I would send you the file, but it's a couple thousand line long.
BUT it does assmeble fine if I use the SX/B "INCLUDE" command (which doesn't echo everything).
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video Display Module" Available Now.
www.sxvm.com
"A problem well defined, is a problem·half solved."
·
There shouldn't be any word not allowed in a comment. Of course, it's possible a bug exists that causes such a problem. It could also be that some other, unrelated issue is causing what appears to be a problem with the word NOP inside a comment.
Have you tried to replicate this on a smaller scale? You're right that a piece of source code thousands of lines long is not very helpful. However, whittling this down to something smaller (say a few dozen lines) is helpful. Furthermore, the time spent trying to create a smaller piece of source code that demonstrates the problem will also let you know if the problem is what you think it is, or if something else is at fault.
Thanks, PeterM
I will try to duplicate the problem on a smaller scale. But I can tell you that when I compile the same code without the comments, it assembles fine.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video Display Module" Available Now.
www.sxvm.com
"A problem well defined, is a problem·half solved."
·
I appreciate that the code assembles differently without the comments, but that doesn't mean something else isn't going on. Just as a verification, have you tried creating a trivial file with "NOP ; NOP" as one of the source lines to see if that's the problem? If you believe that the problem lies with the word "nop" in a comment, then that should trigger it. If not, then the problem is probably something else, isn't it? Have you diff'ed a version with and without the comments to prove that the only thing going away is the comments? My concern is that removing the comments programmatically may contain a bug that is actually changing the meaning of the source code by removing something that is not comment related.
Thanks, PeterM
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video Display Module" Available Now.
www.sxvm.com
"A problem well defined, is a problem·half solved."
·