[Ti ASM] Coding under Linux; the answers

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

[Ti ASM] Coding under Linux; the answers

Post by Timendus »

Download:
My compile scripts

Required:
Wine

As usual I work on a per-project basis; each project has it's own directory structure, own compilers, own compile scripts, et cetera.

Make a new directory for your testproject, unzip the compile scripts there. Delete the files test.83p and test.8xp from the directory "binaries". Go to the project directory on a command line and execute:

./compile.sh <file_no_ext> [Ti83] [Ti83p]
So in this case:
./compile.sh test Ti83 Ti83p

This should regenerate test.83p and test.8xp from test.asm using the old fashioned TASM and DEVPAC tools through Wine. I'd love to have been able to use Brass for this (would've been 200x easier too :() but that doesn't seem to work very well under Linux yet. I'll give you an update when it does. If you're testing your software, and you only need to compile for one calc model, you can leave the other out on the command line.

Next, in your project directory on the command line, execute:

./emulate.sh

This will run PTI in Wine and you can drag'n'drop Ion and your test files as usual.

Admitted, it's not as fancy as Latenite, but it'll get the job done :)
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Gotcha, Brass works :)
Exactely the same recepy as before, only this script uses Brass instead of TASM and DEVPAC (so it requires Wine for PTI and Mono (with 2.0 libraries) for Brass):

New compile scripts

Also, the example test.asm properly includes the API and uses it for a simple "Hello world" message, where TASM wouldn't compile my API :(. And this uses Ben's headers (or my adaptation of them) instead of dwedit.inc. Brass didn't like dwedit.inc, TASM didn't like Ben's headers... :)
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4141
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Post by tr1p1ea »

What about ZASM, its a z80 assembler for linux. And there is Spencers assembler as well: http://www.revsoft.org/phpBB2/viewtopic.php?t=256
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

I know there's more to explore than Brass and TASM, but I want to work on my CLAP libraries on my Kubuntu laptop and those are supposed to run under these two compilers. And I thought I'd share my findings with the rest of the world. Also, this is nicely compatible with all the default "how to compile assembly" tutorials :)

How does Spencer's assembler compare?
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
CoBB
MCF Legend
Posts: 1601
Joined: Mon 20 Dec, 2004 8:45 am
Location: Budapest, Absurdistan
Contact:

Re: [Ti ASM] Coding under Linux; the answers

Post by CoBB »

Timendus wrote:This will run PTI in Wine and you can drag'n'drop Ion and your test files as usual.
Are you joking? :shock: Use send.exe in your scripts as any sane person would. ;) Try this in the PTI directory, it works:

Code: Select all

$ ./pindurti.exe &
$ ./send.exe 0 rom_to_slot_0.rom
Do you really need to invoke wine explicitly? I can run exe’s right away.
Andy_J
Calc Master
Posts: 1110
Joined: Mon 20 Dec, 2004 10:01 pm
Location: In the state of Roo Fearing
Contact:

Post by Andy_J »

He probably doesn't have binfmt_misc set up. :)
ImageImage
Image
CoBB
MCF Legend
Posts: 1601
Joined: Mon 20 Dec, 2004 8:45 am
Location: Budapest, Absurdistan
Contact:

Post by CoBB »

Well, he does invoke Brass simply by the file name, so why not? Anyway, that’s not the point here. :)
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Hehe, sorry CoBB ;) I haven't put too much time in playing with PTI (and auto-setting/running it) because I think people can do that themselves. And because there is a serious limit to my spare time, and I wanted to work on the CLAP library... which I have done for about 30 minutes today... Grrr...

And I know that I can run .NET applications by just invoking them, I wasn't sure about Wine... Have to admit that I didn't test it either. Anyway, if whichever noob happens not to have "binfmt_misc set up" (according to Andy) at least they will not be complaining at me that the script sucks :)
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
threefingeredguy
Calc King
Posts: 2195
Joined: Sun 27 Mar, 2005 4:06 am
Location: sleeping
Contact:

Post by threefingeredguy »

Spencer's Assembler is meant to be a TASM replacement. If it runs in TASM, it likely runs in SPASM. It also has a robust macro and scripting system that you can use to ease repetive tasks. It's also pretty much _made_ for making apps, so they are a snap to make along with Wabbitsign by Spencer and Jim. Some new macro code Spencer wrote makes most Brass commands like ".var" and ".incbmp" fully functional in Spasm so that the code can travel freely between the two assemblers. It's also lightning fast and has a native Linux build. You could test the API in it under Linux since it ought to behave the same in the other assemblers under Windows.
Image
CoBB
MCF Legend
Posts: 1601
Joined: Mon 20 Dec, 2004 8:45 am
Location: Budapest, Absurdistan
Contact:

Post by CoBB »

Timendus wrote:Anyway, if whichever noob happens not to have "binfmt_misc set up" (according to Andy) at least they will not be complaining at me that the script sucks :)
Actually, that’s highly unlikely, unless they use some ancient linux build.
Andy_J
Calc Master
Posts: 1110
Joined: Mon 20 Dec, 2004 10:01 pm
Location: In the state of Roo Fearing
Contact:

Post by Andy_J »

Or Gentoo... Quite easy to forget to enable it with Gentoo.
ImageImage
Image
CoBB
MCF Legend
Posts: 1601
Joined: Mon 20 Dec, 2004 8:45 am
Location: Budapest, Absurdistan
Contact:

Post by CoBB »

I don’t think there are too many people running Gentoo who couldn’t figure this out by themselves. :lol:
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

CoBB wrote:I don’t think there are too many people running Gentoo who couldn’t figure this out by themselves. :lol:
:oops: *Feels ashamed to admit running Gentoo on his server* :P

I'll take a look at SPASM when I have some time for it. It sure sounds good.
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
User avatar
blueskies
Calc Wizard
Posts: 553
Joined: Tue 25 Apr, 2006 2:24 pm

Post by blueskies »

back forever ago when I was setting up my laptop for z80 coding (which I rarely do, but like to have the option to do at any time...), I found GuillaumeH's site and setup to work very well. I use tpasm, bin8x, vion.inc, and some 'asm.bat'-esqe call script. Works very well a few little test programs. I might check this method out though because it'd be nice to use Brass.

Oh also, I'm finally back from South America! Back to Cali for me!
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

This is also pretty cool, but it has quite a lot of dependencies and even with all dependencies met it doesn't want to compile for me. The syntax highlighted editor is pretty nice though, so I use that with my own script to compile with Brass.
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
Post Reply