Author Topic: Linux - assembler for TI-83+  (Read 8276 times)

0 Members and 1 Guest are viewing this topic.

Offline SomeoneWhoIsntMe

  • LV0 Newcomer (Next: 5)
  • Posts: 3
  • Rating: +0/-0
    • View Profile
Linux - assembler for TI-83+
« on: October 04, 2011, 08:02:44 am »
Hi everyone,

I am about to make a second attempt on learning assembly language for my ti-81+ calculator.
But i dont want to boot up windows every time i do asm programming, basically because it sucks  :banghead:

I got tilem emulator working and now i am in search for a good assembler. On windows I used Latenite IDE with the built-in brass, but i think, this one wont work under Linux. I got spasm compiling using

Code: [Select]
spasm name.asm name.8xp
and also tried

Code: [Select]
spasm name.asm name.8xp -DTI83P
as suggested here: http://wikiti.brandonw.net/index.php?title=Programming_cross_z80_calculators

Both files aren't recognized by tilem. the emulator is just stating "Unknown or invalid file format, aborting". It works when using a 8xp-file compiled with brass in windows though.

Can anyone help me with this? I don't have to use spasm, any other assembler with a similar syntax will be just fine, but i dont really want to use wine, a native linux solution would be far superior.

Thanks in advance! (and please excuse my poor English)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Linux - assembler for TI-83+
« Reply #1 on: October 04, 2011, 08:55:55 am »
I think the syntax is spasm -DTI83P <source>.asm <exec>.8xp.

And welcome to Omnimaga, SomeoneWhoIsntMe! You should introduce yourself here :)
« Last Edit: October 04, 2011, 08:56:55 am by Deep Thought »




Offline SomeoneWhoIsntMe

  • LV0 Newcomer (Next: 5)
  • Posts: 3
  • Rating: +0/-0
    • View Profile
Re: Linux - assembler for TI-83+
« Reply #2 on: October 04, 2011, 10:48:04 am »
First of all thanks for the Welcome. I'm definitely going to introduce myself to the forums.

It turned out, that I downloaded a somewhat strange version of the spasm assembler which didn't want to accept the -DTI83P before listing the input and output files. Now I downloaded it once again, this time from this source:

http://wabbit.codeplex.com/releases/view/45088

I wrote the following example code and compiled it.

Code: [Select]
#define TI83P
#include "ti83plus.inc"

start:
.org $9D95
.db $BB,$6D
ld a,5
ld b,2
add a,b
ld h,0
ld l,a
bcall(_DispHL)
bcall(_newLine)
ret

Using "spasm -DTI83P name.asm name.8xp" i get :

Code: [Select]
Pass one...
Pass two...
Done
exporter:-1: warning: First character in name must be a letter.

So it compiles, but in tilem the file does have an empty name and doesn't run as well. Seems to me like there is one more thing missing in my code or in the compiler options I used?!  <_<

It IS working to assemble the source using "spasm -DTI83P name.asm" and then using binpac8x ("./binpac8x.py name.bin") to convert it to a .8xp-file though. I thought devpac/binpac are only needed when using tasm??? What is it good for anyway? some kind of linker?
This solution seems to me like just a workaround. Hopefully someone can tell me how to solve this by just using spasm.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Linux - assembler for TI-83+
« Reply #3 on: October 04, 2011, 01:49:06 pm »
I've been having issues with spasm as well on linux. Buckeye said he was going to look into it but he never got around to it yet.
That version is an old one so you might want to try building from the source. If that doesn't work ( probably wont even build ) then this one you have, it will be able to build the hex files, but not compile them into 8xp's so you need to figure out a way to convert them to an 8xp.

( The reason it's not working is because of some bad code with the exporter when it comes to naming on Linux )

EDIT: just tested the latest svn, it's seg faulting on the first pass, so just stick with what you have for now.
« Last Edit: October 04, 2011, 01:51:55 pm by Eeems »
/e

Offline NanoWar

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 140
  • Rating: +18/-6
    • View Profile
Re: Linux - assembler for TI-83+
« Reply #4 on: October 07, 2011, 01:19:20 pm »
« Last Edit: October 07, 2011, 01:27:55 pm by NanoWar »

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Linux - assembler for TI-83+
« Reply #5 on: October 08, 2011, 12:55:27 am »
Maybe use the right ti38plus.inc...

http://wabbit.codeplex.com/wikipage?title=SPASM%20Include%20Files&referringTitle=Documentation
That's not the issue. It's actually spasm's issue. Spasm hasn't been made specifically for Linux and therefore hasn't actually been tested that much on it until recently.
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Linux - assembler for TI-83+
« Reply #6 on: October 08, 2011, 01:01:18 am »
Heya and welcome here SomeoneWhoIsntMe

Offline NanoWar

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 140
  • Rating: +18/-6
    • View Profile
Re: Linux - assembler for TI-83+
« Reply #7 on: October 09, 2011, 08:04:58 am »
I'm on a Linux machine since 2007 or so, but I use an old build of spasm that works wonderfully.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Linux - assembler for TI-83+
« Reply #8 on: October 09, 2011, 02:59:14 pm »
I'm on a Linux machine since 2007 or so, but I use an old build of spasm that works wonderfully.
Mind sharing it? The latest ones do not work ( seg fault either at the end before it writes out, or in pass one ).
/e

Offline NanoWar

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 140
  • Rating: +18/-6
    • View Profile
Re: Linux - assembler for TI-83+
« Reply #9 on: October 11, 2011, 06:46:37 am »
Yeah, I've been searching for the source, but only found the bins... running on ubuntu 64-bit.

http://dl.dropbox.com/u/902690/ti/spasm-64
http://dl.dropbox.com/u/902690/ti/wabbitemu-wine.exe

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Linux - assembler for TI-83+
« Reply #10 on: October 11, 2011, 08:07:42 am »
I am about to make a second attempt on learning assembly language for my ti-81+ calculator.
TI-81+? O.O
Sig wipe!

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
I'm not a nerd but I pretend:

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Linux - assembler for TI-83+
« Reply #12 on: October 11, 2011, 11:47:54 am »
I've been having issues with spasm as well on linux. Buckeye said he was going to look into it but he never got around to it yet.
That version is an old one so you might want to try building from the source. If that doesn't work ( probably wont even build ) then this one you have, it will be able to build the hex files, but not compile them into 8xp's so you need to figure out a way to convert them to an 8xp.

( The reason it's not working is because of some bad code with the exporter when it comes to naming on Linux )

EDIT: just tested the latest svn, it's seg faulting on the first pass, so just stick with what you have for now.
Heh, I might have a build... but my Linux USB HDD crashed... really hard... recently, so I'm not too sure if I can fetch it out.
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Linux - assembler for TI-83+
« Reply #13 on: October 11, 2011, 05:36:42 pm »
Yeah, I've been searching for the source, but only found the bins... running on ubuntu 64-bit.

http://dl.dropbox.com/u/902690/ti/spasm-64
http://dl.dropbox.com/u/902690/ti/wabbitemu-wine.exe
Hmm, tried that and even though I'm on a 64bit system and I installed libcrypto it couldn't seem to open it. No idea whats going on.
/e

Offline NanoWar

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 140
  • Rating: +18/-6
    • View Profile
Re: Linux - assembler for TI-83+
« Reply #14 on: October 12, 2011, 04:35:17 am »
Have you installed libgmp? I'm not sure if that matters.

The latest version of Spasm compiles the HelloWorld from above, though.