Omnimaga

Calculator Community => TI Calculators => ASM => Topic started by: yrinfish on April 19, 2011, 10:47:17 am

Title: Assembler
Post by: yrinfish on April 19, 2011, 10:47:17 am
OK, I want to learn z80 assembly, but TASM isn't compatible with my shiny amd64 laptop.

And it is OLD.

Are there better assemblers out there?

PS: I've used some NASM for Linux, so that one would be great
Title: Re: Assembler
Post by: Munchor on April 19, 2011, 10:48:37 am
OK, I want to learn z80 assembly, but TASM isn't compatible with my shiny amd64 laptop.

And it is OLD.

Are there better assemblers out there?

PS: I've used some NASM for Linux, so that one would be great

You can use the DoorsCS7 SDK (Brass) or Spasm.

The DoorsCS7 SDK is cross-platform. Personally, I prefer Spasm.
Title: Re: Assembler
Post by: yrinfish on April 19, 2011, 10:52:49 am
Why do you prefer Spasm?

And can DoorsCS7 compile assemble non-DCS programs?
Title: Re: Assembler
Post by: Munchor on April 19, 2011, 10:53:56 am
Why do you prefer Spasm?

And can DoorsCS7 compile assemble non-DCS programs?

I prefer SPASM cos it's what I started with and I like the way it reports errors, the way it's simple to use and it's speed.

And yes DoorsCS SDK can compile programs for any shell or even shell-less.
Title: Re: Assembler
Post by: yrinfish on April 19, 2011, 11:19:34 am
brass needs mono on Linux, spasm for me

do I need an include file other than ti83plus.inc?
Title: Re: Assembler
Post by: Munchor on April 19, 2011, 11:23:46 am
brass needs mono on Linux, spasm for me

do I need an include file other than ti83plus.inc?

For making DCS7 apps you need dcs7.inc and etc.

Yah brass needs mono.
Title: Re: Assembler
Post by: yrinfish on April 19, 2011, 11:28:51 am
I don't need other files for no-stub programs

Do you have a .bat script to talk to it? Too lazy to write it myself...
Title: Re: Assembler
Post by: Munchor on April 19, 2011, 12:18:35 pm
I don't need other files for no-stub programs

Do you have a .bat script to talk to it? Too lazy to write it myself...

the dcs_sdk has a batch file to compile.
Title: Re: Assembler
Post by: yrinfish on April 19, 2011, 12:21:44 pm
I chose spasm...
Title: Re: Assembler
Post by: alberthrocks on April 19, 2011, 12:33:23 pm
You need a script? :P Linux is the OS where you would least need a script. :)
Simply open up a terminal, cd to where your project is, and:
Code: [Select]
spasm somefile.z80 somefile.8xp
For instance, if you saved your project to [yourhomefolder]/Desktop/MyAwesomeASMProject:
Code: [Select]
cd Desktop/MyAwesomeASMProject
spasm somefile.z80 somefile.8xp
...and that's all! :) Simply transfer that program file to your calc via TiLP, or run it in a calc emulator. ;)

Multiple ASM files also only need one command, since you just include them in your main file.
Something like:
Code: [Select]
include "bla.asm"
include "bla2.asm"

...program goes here...

If you are really lazy (like me), you could create a Makefile with the following:
Code: [Select]
all:
[tab]spasm somefile.z80 somefile.8xp

Then you could simply save your file while working on it, and then type "make" to build. :)
If you need a GUI solution, tell me and I'll see what I could cook up.

Also, to clarify - NASM is a x86 assembler, and won't be able to assemble Z80 files. You'll want SPASM. ;)
Title: Re: Assembler
Post by: yrinfish on April 19, 2011, 04:36:26 pm
OK, thanks, but sadly I'm on windows
/me goes straight to oh-shit-which-distro.com and downloads it

I like Fedora

but I want to be able to view .avi files...

tommorow I'l have a look at it

(local time: 22:35)

Maybe I should modify my half-made compiler to make some basic z80 code
Title: Re: Assembler
Post by: yrinfish on April 20, 2011, 02:20:24 am
should I update from 2.53MP to 2.55MP?
Title: Re: Assembler
Post by: Munchor on April 20, 2011, 09:25:18 am
should I update from 2.53MP to 2.55MP?

I wouldn't, but it depends on what you want.