Author Topic: Crabcake for Axe  (Read 16102 times)

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Crabcake for Axe
« on: May 18, 2011, 10:51:18 pm »
You can now use Crabcake to turn Axe programs into ASM programs that will run at more than 8KB.  You will need to compile your Axe program under a shell such as Ion.

If you want only Crabcake for Axe, you can get it here:

http://www.omnimaga.org/index.php?action=dlattach;topic=7373.0;attach=7891


However, I made some important fixes to the original Crabcake, so you can get the whole kitten-kaboodle here:

http://www.omnimaga.org/index.php?action=downloads;sa=downfile&id=665

You are allowed to use this axiom for the axe contest.  However, it requires a lot of program space, so don't use it unless you know for sure that your ASM program will need more than 8KBs.
« Last Edit: July 16, 2011, 04:08:28 am by Eeems »

Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
Re: Crabcake for Axe
« Reply #1 on: May 18, 2011, 10:53:49 pm »
Thanks, Hot_Dog.  This looks awesome!  :D
ld a, 0
ld a, a

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Crabcake for Axe
« Reply #2 on: May 18, 2011, 10:54:06 pm »
That it ridiculously simple.  Wow.  Wonderful work, Hot Dog.  Well done. :)

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Crabcake for Axe
« Reply #3 on: May 18, 2011, 10:54:48 pm »
That it ridiculously simple. 

Good to know. 8)

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: Crabcake for Axe
« Reply #4 on: May 19, 2011, 02:41:00 am »
Since I'm not a z80 programmer and I only read about axe and such stuff my knowledge might be not so brilliant. So forgive me if this question sounds stupid:
Why would you want to convert an axe program to asm?


Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Crabcake for Axe
« Reply #5 on: May 19, 2011, 02:50:47 am »
Compiled axe programs are already asm.  :)

Hot_Dog, why do you need the AxesOff?  Couldn't you do something similar to what I do with the app header where you call the main program as a subroutine.  Something like this:

Code: [Select]
AxesOn:
  #asm code here
  call mainprog
AxesOff:
  #asm code here
  ret
MainProg:

That way you only need one command at the beginning and the users could use ret just like they're used to.  I don't know how the source looks though, so maybe there is something preventing this I don't know about?  Anyway, nice job!

___Axe_Parser___
Today the calculator, tomorrow the world!

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Crabcake for Axe
« Reply #6 on: May 19, 2011, 03:10:48 am »
Very nice to see this out. =)

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Crabcake for Axe
« Reply #7 on: May 19, 2011, 10:29:54 am »
Hot_Dog, why do you need the AxesOff?  Couldn't you do something similar to what I do with the app header where you call the main program as a subroutine.  Something like this:

Code: [Select]
AxesOn:
  #asm code here
  call mainprog
AxesOff:
  #asm code here
  ret
MainProg:

That way you only need one command at the beginning and the users could use ret just like they're used to.  I don't know how the source looks though, so maybe there is something preventing this I don't know about?  Anyway, nice job!



Because I didn't think about that.  It certainly would have saved me--and programmers--a lot of trouble.  I'll definitely have to fix that...

In the meantime, it works quite well, so I'll wait until after the contest and post an "update".  Every calculator programmer releases something better and easier after a time, so I don't see a reason to "rush" the update.
« Last Edit: May 19, 2011, 10:30:44 am by Hot_Dog »

Offline JustCause

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 810
  • Rating: +115/-5
    • View Profile
Re: Crabcake for Axe
« Reply #8 on: May 19, 2011, 11:32:20 am »
Holy crap. You are my hero. You are a GOD.
« Last Edit: May 19, 2011, 11:33:43 am by JustCause »
See you, space cowboy...

Offline ikemike

  • LV3 Member (Next: 100)
  • ***
  • Posts: 67
  • Rating: +4/-0
  • Hmm.
    • View Profile
Re: Crabcake for Axe
« Reply #9 on: May 19, 2011, 10:07:49 pm »
I'm not sure exactly how relavent this is, but when I compile a game for a shell (which Crabcake requires, so this is somewhat relavent) it replaces the letters in the text with random garbage.
Anonymous Legend

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Crabcake for Axe
« Reply #10 on: May 20, 2011, 12:03:49 am »
Wow awesome! O.O

I hope I have time to provide a ZIP file of every allowed Axiom latest versions in the contest news soon.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Compynerd255

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +53/-4
  • Betafreak Games
    • View Profile
    • Betafreak Games
Re: Crabcake for Axe
« Reply #11 on: May 20, 2011, 10:39:01 am »
This is really great, Hot_Dog! I like how someone has finally set out to fix this.

However, when I tried it on my 83 Plus (OS 1.19), on Eitrix (9100 bytes with Crabcake, 8700 bytes without), the game crashed immediately when it started running, as if it had broken the fourth wall already. Could you please look into this?
The Slime: On Hold, preparing to add dynamic tiles

Axe Eitrix: DONE

Betafreak Games: Fun filled games for XBox and PC. Check it out at http://www.betafreak.com



Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Crabcake for Axe
« Reply #12 on: May 20, 2011, 11:34:02 am »
This is really great, Hot_Dog! I like how someone has finally set out to fix this.

However, when I tried it on my 83 Plus (OS 1.19), on Eitrix (9100 bytes with Crabcake, 8700 bytes without), the game crashed immediately when it started running, as if it had broken the fourth wall already. Could you please look into this?

I can definitely look into it.  I'm assuming that your game worked perfectly fine before you put crabcake on?  Also, can I see your source?

Offline Aichi

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 290
  • Rating: +76/-3
    • View Profile
    • Devrays
Re: Crabcake for Axe
« Reply #13 on: May 21, 2011, 02:23:39 pm »
Awesome tool, thanks. I just wonder how to use AxesOnr/Offr. Axe Parser says "Bad Symbol".
« Last Edit: May 21, 2011, 04:58:39 pm by Aichi »

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Crabcake for Axe
« Reply #14 on: May 21, 2011, 03:32:03 pm »
Awesome tool, thanks. I just wonder how tu use AxesOnr/Offr. Axe Parser says "Bad Symbol".

I think that's my fault.  I forgot to test that before the release :(