[Ti ASM] Coding under Linux; the answers
Moderator: MaxCoderz Staff
[Ti ASM] Coding under Linux; the answers
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
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
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
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...
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
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
- 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:
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
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?
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
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
-
- MCF Legend
- Posts: 1601
- Joined: Mon 20 Dec, 2004 8:45 am
- Location: Budapest, Absurdistan
- Contact:
Re: [Ti ASM] Coding under Linux; the answers
Are you joking? Use send.exe in your scripts as any sane person would. Try this in the PTI directory, it works:Timendus wrote:This will run PTI in Wine and you can drag'n'drop Ion and your test files as usual.
Code: Select all
$ ./pindurti.exe &
$ ./send.exe 0 rom_to_slot_0.rom
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
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
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
-
- Calc King
- Posts: 2195
- Joined: Sun 27 Mar, 2005 4:06 am
- Location: sleeping
- Contact:
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.
*Feels ashamed to admit running Gentoo on his server*CoBB wrote:I don’t think there are too many people running Gentoo who couldn’t figure this out by themselves.
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
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
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!
Oh also, I'm finally back from South America! Back to Cali for me!
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
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS