Omnimaga
Calculator Community => TI Calculators => ASM => Topic started by: Excelseo on September 03, 2016, 02:30:28 pm
-
I'm sorry to come running here for help so quickly this time, but I haven't been able to find this out anywhere else. I recently downloaded wabbitemu, since I was sick of clearing my ram all of the time, and SPASM, since I was sick of typing assembly programs on the calculator all the time. I got spasm to work just fine, and it's churning out lovely .8xp files just like I want it to. However, whenever I try to drag-and-drop a program file into wabbitemu, it's stored into the calculator as "C:\Asm\Spasm\program.exe", which, of course, generates a syntax error when I try to run it. How can I fix this?
Thanks, and sorry for asking two questions in a row :P.
-
In order to run assembly programs, you have to prefix the command with the Asm( token so it looks like this on the homescreen:
Asm(prgmMYPRGM)
That's the most likely problem. If the program afterward isn't a valid assembly program and you do this, you'd get an "ERR:INVALID" error instead.
EDIT: Holy hell did the post above just change on me? Gotta run more tests, but what you're describing on your side should both NOT be happening and shouldn't be possible. How are you viewing the files? Any screenshots? I want to know where you got your emulator and tools from, and what OS you're using.
-
Calc OS: 2.55
Computer OS: Windows 10 (ugh)
Emulator and Assembler source: https://wabbit.codeplex.com/
In case this is what confused you, the files on the calculator are actually stored as "C:\Asm\S" so nothing paranormal is going on ;). Sory if that confused you, bad wording on my part.
Screenshot is attached.
And yes, I am using the "Asm(" instruction to run the program.
-
Just noticed something else weird. The program file is wayyyyy smaller than it should be. It's 76 bytes, and the program has a single table bigger than that. I looked at the .bin file I got from the assembler and that's apparently 0 bytes. Is this a windows problem or an assembler problem?
EDIT: Nevermind, re-assembled the program and it's back to up to the proper 710 bytes. Just a weird glitch I guess.
EDITTACULAR: Another screenshot, showing how the program name changes on the home screen.
-
Did you dump your own rom?
Did you try opening the file via File -> Open rather than drag&drop?
-
I didn't dump my own ROM. I used one from the inter
slicenet. I got an "OS files are corrupted" error when I tried to dump my own rom, even after updating the OS. Is there any way that I can completely reinstall the operating system?
-
Okay. I'll need to know exactly how you're invoking SPASM on the command-line and maybe a copy of the .8xp file to see if the header's broken.
If nothing's wrong there, the problem then has to be something between Wabbitemu and Win10. Which doesn't make a whole lot of sense.
EDIT: Also, are you able to reproduce the problem using Wabbitemu's File -> Open... menu on the .8xp files?
-
cd "C:\asm\spasm"
spasm.exe BACKGRND.txt
binpac8x.py BACKGRND.bin
8xp file is attached, along with notepad file.
-
Try spasm BACKGRND.txt BACKGRND.8xp all on the same line.
-
I am almost completely sure that the program is (usually) assembling correctly at this point. When I run the program on the calculator and recieve a syntax error, pressing goto places the cursor on the "." in "C.?ASM?", suggesting that the program name is invalid. I originally asked the question wondering if there was a way to send a program to the emulator and give it a valid name not including special characters.
-
Have you tried that, then sending the resulting file to the emulator? No need for binpac8x.
-
The assembled file that you attached to your post has that strange filename problem in its header, indicating that something (probably binpac8x.py) is putting that invalid name there which Wabbitemu is picking up and using.
Like Xeda said, try just having on the command line:
spasm BACKGRND.txt BACKGRND.8xp
Then resend your program.
-
I tried the all-on-one-line approach, and the same thing happened. The issue is that the path is appearing in the filename once the program is transferred to the emulator. Instead of BACKGRND, it's C:\Asm\Spasm\BACKGRND. I just want to be able to remove the path from the beginning of the filename when I transfer the program to the emulator.
-
A file doesnt have to have the same name as the .8xp file in which its contained. Ex if i send the program "TEST" from my calc to PC, TI's software will save it as "TEST.8xp". However if i rename "TEST.8xp" to anything like "Longer than 8 chars {}{}{}.8xp"; when i send it to my calc, it will still create the program "TEST" on my calc.
-
How do I determine what the program will be called when I send it to the calculator, if it isn't dependent on the .8xp filename?
-
How do I determine what the program will be called when I send it to the calculator, if it isn't dependent on the .8xp filename?
It's in the file header, you can probably see it with a hex editor.
Have you tried this yet:
The assembled file that you attached to your post has that strange filename problem in its header, indicating that something (probably binpac8x.py) is putting that invalid name there which Wabbitemu is picking up and using.
Like Xeda said, try just having on the command line:
spasm BACKGRND.txt BACKGRND.8xp
Then resend your program.
-
Okay, it worked that time. I don't know why it didn't work the first time I tried it, maybe I transferred the wrong .8xp file. Thank you very much all, sorry I was so bad at phrasing my question.
-
I'm glad you got it fixed! To be honest, I've struggled with these kinds of things, too. Now you can get to all that programming, have fun!