Author Topic: Learning z80 ASM  (Read 10736 times)

0 Members and 1 Guest are viewing this topic.

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: Learning z80 ASM
« Reply #15 on: February 21, 2013, 09:36:17 am »
To me, Brass seemed much more complicated. Spasm is super fast, has powerful macro support, and can compile about anything easily (except maybe nostub TI-83 programs). Brass has lots of features and seems to be good for organizing your code. Use whichever one you like, i chose Spasm because it's faster and more lightweight, plus your code can be compiled on Linux/Windows/Mac. If you use certain features of Brass you might be limited to Windows, unless you want to reformat the file to be "spasm-compatible". Actually, my claim that Spasm is faster is based off of when i used Brass several years ago, so that might not be correct anymore. I don't know if Brass has seen much development since then but it's still a very powerful assembler (i think it can even rle compress your data for you). I just know that Spasm can compile a 40kb (final on-calc size) project importing lots of .bmps in the blink of an eye, which you'd realize how amazing that is if you'd ever used TASM before :D

And i don't think anyone still uses TASM anymore, it's a pain just to get it to run and the other alternatives (namely, Brass and Spasm) are much more convenient and feature-rich.

As to which one to use? You pick, it'll probably be the first one you get working. :P DJ_O says most people use Brass nowadays, and maybe that's true, but apart from Kerm and probably Benryves, i don't really know of anyone else. Maybe it's because a lot of the assembly programmers i speak to don't use Windows and have no other choice or maybe because the format feels closer to what we were used to with TASM or maybe just 'cuz it's so straightforward, i dunno. If you're going to start a huge project you might like some features of one over the other that let you organize your code more easily, but really it's not going to make that much of a difference: the assembled output will be exactly the same using both assemblers ;)

Offline _Nicco_

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +6/-0
    • View Profile
Re: Learning z80 ASM
« Reply #16 on: February 23, 2013, 11:49:30 am »
Ah alright.  Thanks.

Right now I started using Brass and have yet to check out spasm.  I'll probably just stick with Brass for now
They say that your signature is supposed to go here...

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: Re: Re: Learning z80 ASM
« Reply #17 on: February 24, 2013, 02:49:03 pm »
To me, Brass seemed much more complicated. Spasm is super fast, has powerful macro support, and can compile about anything easily (except maybe nostub TI-83 programs). Brass has lots of features and seems to be good for organizing your code. Use whichever one you like, i chose Spasm because it's faster and more lightweight, plus your code can be compiled on Linux/Windows/Mac. If you use certain features of Brass you might be limited to Windows, unless you want to reformat the file to be "spasm-compatible". Actually, my claim that Spasm is faster is based off of when i used Brass several years ago, so that might not be correct anymore. I don't know if Brass has seen much development since then but it's still a very powerful assembler (i think it can even rle compress your data for you). I just know that Spasm can compile a 40kb (final on-calc size) project importing lots of .bmps in the blink of an eye, which you'd realize how amazing that is if you'd ever used TASM before :D

And i don't think anyone still uses TASM anymore, it's a pain just to get it to run and the other alternatives (namely, Brass and Spasm) are much more convenient and feature-rich.

As to which one to use? You pick, it'll probably be the first one you get working. :P DJ_O says most people use Brass nowadays, and maybe that's true, but apart from Kerm and probably Benryves, i don't really know of anyone else. Maybe it's because a lot of the assembly programmers i speak to don't use Windows and have no other choice or maybe because the format feels closer to what we were used to with TASM or maybe just 'cuz it's so straightforward, i dunno. If you're going to start a huge project you might like some features of one over the other that let you organize your code more easily, but really it's not going to make that much of a difference: the assembled output will be exactly the same using both assemblers ;)
I think Iambian still uses TASM. As for Brass popularity I know that Kerm tried very hard to convince people to use it in the past since DCS SDK, which he setup, relies on Benryves ASM tools.

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: Learning z80 ASM
« Reply #18 on: February 25, 2013, 12:30:27 am »
Iambian might use TASM, but i think they also use spasm. The E:SoR source compiles with spasm, at least. But i guess it doesn't really matter, what is more important is getting started writing cool stuff :D

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: Learning z80 ASM
« Reply #19 on: February 25, 2013, 12:58:03 am »
Ah ok. From what I remember, he said he stuck with TASM for very long because he already setup a lot of things on his ASM environment that only worked with TASM, so he didn't switch except maybe for certain projects.

Otherwise there might be the ones who started TI programming in the late '90s but are hardcore old-school purists who love command lines and will never ever use anything with a GUI. :P

TASM is really unreliable, though. It takes several seconds to compile HELLO WORLD and it has several bugs such as not supporting common bcall syntaxes and the No END directive before EOF. If I was still dedicated to calc programming and decided to learn ASM again, I would use modern tools.
« Last Edit: February 25, 2013, 12:59:51 am by DJ_O »

Offline Geekboy1011

  • The Oneironaut
  • Donator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2031
  • Rating: +119/-2
  • Dream that Awakening dream
    • View Profile
Re: Learning z80 ASM
« Reply #20 on: February 25, 2013, 01:02:18 am »
Iambian Uses spasm for all of his projects now. As for brass or spasm i prefer brass but its what i am used to useing currently from all of the dcs work i have been doing. And i likes its feature set and really good documentation. which i find spasm lacking. but thats just me good luck _nicco_!
« Last Edit: February 25, 2013, 01:47:26 am by Geekboy1011 »

Offline tpt1234567890

  • LV3 Member (Next: 100)
  • ***
  • Posts: 45
  • Rating: +0/-0
    • View Profile
Re: Learning z80 ASM
« Reply #21 on: October 29, 2013, 12:13:13 am »
ASM in 28 days is a nice starting point, you don't have to know anything in ASM before learning with it.

Also quick answer : assembly is a compiled language (assembled in fact), so you have to compile your *.z80 files into *.8xp files before sending them to your calc (everything's explained in ASM in 28 days) . An alternative is to use the on-calc assembler Mimas to edit and assemble your programs directly on-calc.

I used this to learn how to use ASM

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Learning z80 ASM
« Reply #22 on: October 29, 2013, 12:21:21 am »
Mimas isn't as featureful, though, and has the same problems with program corruption Axe does. Not their fault, but be careful when you only have source files on one volatile device.

Offline tpt1234567890

  • LV3 Member (Next: 100)
  • ***
  • Posts: 45
  • Rating: +0/-0
    • View Profile
Re: Learning z80 ASM
« Reply #23 on: October 29, 2013, 12:23:00 am »
Mimas isn't as featureful, though, and has the same problems with program corruption Axe does. Not their fault, but be careful when you only have source files on one volatile device.

I agree wholely. Make sure your codes are correct before running them (They could crash your calculator)

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Learning z80 ASM
« Reply #24 on: October 29, 2013, 11:27:24 am »
If you knew how many times I crash my calc in a minute when I code in Axe. :P

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: Re: Learning z80 ASM
« Reply #25 on: October 29, 2013, 11:30:33 am »
Thankfully, DCSE8 lets me edit programs from archive without having to run them first (then ON Break them). I wish DCS7 was updated with that feature. Or there is Zstart that does it, right? That said, be careful about archive corruption as well. X.x

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Learning z80 ASM
« Reply #26 on: October 29, 2013, 11:44:22 am »
yeah, zstart lets you edit programs out of archive from the program editor :)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Learning z80 ASM
« Reply #27 on: October 29, 2013, 01:57:13 pm »
DCS7 lets you do it too, just not from the homescreen.

Offline tpt1234567890

  • LV3 Member (Next: 100)
  • ***
  • Posts: 45
  • Rating: +0/-0
    • View Profile
Re: Learning z80 ASM
« Reply #28 on: October 29, 2013, 05:06:43 pm »
DCS7 lets you do it too, just not from the homescreen.

Interesting. I never knew about that! SHould be useful!