Author Topic: Axe Off-Calc not-really-compiler (dunno what to call it)  (Read 8569 times)

0 Members and 1 Guest are viewing this topic.

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Axe Off-Calc not-really-compiler (dunno what to call it)
« on: April 09, 2011, 06:23:58 pm »
So, people post Axe code all the time on the forums, and I began thinking that it would be nice to have an off-calc compiler for code like that. Then I realized that in order to do that the whole compiler would have to be replicated...so instead I thought it would be useful to have something that read through the code and stored the source in the token forms that the calculator uses, and saves that as a file that you can easily send to your calculator. This could also work in the opposite direction to read a file FROM the calculator and translate back into individual characters instead of tokens. Any thoughts? I was thinking of just making this with a java applet so it's easily accessible for cross platform use.

EDIT: I suppose this could be used for BASIC programs, too, if all it's doing is token-izing character strings.
« Last Edit: April 09, 2011, 06:28:17 pm by ZippyDee »
There's something about Tuesday...


Pushpins 'n' stuff...


Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Axe Off-Calc not-really-compiler (dunno what to call it)
« Reply #1 on: April 09, 2011, 06:28:05 pm »
You mean something like Source Coder?
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Ashbad

  • Guest
Re: Axe Off-Calc not-really-compiler (dunno what to call it)
« Reply #2 on: April 09, 2011, 06:30:11 pm »
Yeah, most people use sourcecoder for that ;)

However, if you could do of calc compiling to an assembly compiled program, that would be awesome :)

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: Axe Off-Calc not-really-compiler (dunno what to call it)
« Reply #3 on: April 09, 2011, 06:34:36 pm »
What do you mean Ashbad? Like AXE to assembly?
« Last Edit: April 09, 2011, 06:38:17 pm by ZippyDee »
There's something about Tuesday...


Pushpins 'n' stuff...


SirCmpwn

  • Guest
Re: Axe Off-Calc not-really-compiler (dunno what to call it)
« Reply #4 on: April 09, 2011, 10:47:54 pm »
I'm actually working on this for tiDE

Ashbad

  • Guest
Re: Axe Off-Calc not-really-compiler (dunno what to call it)
« Reply #5 on: April 09, 2011, 10:52:18 pm »
What do you mean Ashbad? Like AXE to assembly?

Yeah, a compiler :)

And sir, I'm interested, can you explain it? (or add link)

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Axe Off-Calc not-really-compiler (dunno what to call it)
« Reply #6 on: April 09, 2011, 11:07:55 pm »
I'm actually working on something really similar in the form of an IRC bot. It's on a mini hiatus (it's in my head, just haven't gotten enough time to work on it). You can find this little guy at #thebot. The syntax, if you wish to play with it:
Code: [Select]
<AtomASM> z80asm Help | #z80asm [Assembler: spasm, brass, tasm] [Pastebin Source URL] [Output file name (like hellowrd.8xk, etc.)]
Pastebin to 8xp and back is being worked on, as well as integrating wxWabbitEmu into the mix to attempt Axe compiling! :)
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

SirCmpwn

  • Guest
Re: Axe Off-Calc not-really-compiler (dunno what to call it)
« Reply #7 on: April 09, 2011, 11:08:28 pm »
And sir, I'm interested, can you explain it? (or add link)
Well, it isn't ready yet, but I'll run an emulator in the background (without showing the window) and send Axe and your source code to the emulator, then force all the keypresses needed to get it compiled, then dump the created file.

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: Axe Off-Calc not-really-compiler (dunno what to call it)
« Reply #8 on: April 10, 2011, 07:02:06 am »
Lol I guess that's one way to do it, SirCmpwn
There's something about Tuesday...


Pushpins 'n' stuff...


SirCmpwn

  • Guest
Re: Axe Off-Calc not-really-compiler (dunno what to call it)
« Reply #9 on: April 10, 2011, 10:54:45 am »
It's definitely the easiest way :P

Ashbad

  • Guest
Re: Axe Off-Calc not-really-compiler (dunno what to call it)
« Reply #10 on: April 10, 2011, 11:29:42 am »
Indeed :) but hey, it should be fast, safe, and perfect, so I guess that would be the best way to go for that.  Plus, if it included that emulator for testing, that would make it even better.

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: Axe Off-Calc not-really-compiler (dunno what to call it)
« Reply #11 on: April 14, 2011, 12:25:34 am »
I'm also working on a program that can tokenize and detokenize Axe files.
Currently, it can turn 8xp to Axe, and I'm almost finished with Axe to 8xp (obviously, not compiled).  I just need a few hours to work on getting checksums to work.
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Online 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: Axe Off-Calc not-really-compiler (dunno what to call it)
« Reply #12 on: April 14, 2011, 01:44:08 am »
Hmm, on that note, I have to wonder how hard an axe decompiler (to Axe source, not Asm) would be, considering the routines are fairly constant. Anything unrecognized could go to [HEX] as a backup.

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Axe Off-Calc not-really-compiler (dunno what to call it)
« Reply #13 on: April 14, 2011, 01:50:16 am »
Hmm, on that note, I have to wonder how hard an axe decompiler (to Axe source, not Asm) would be, considering the routines are fairly constant. Anything unrecognized could go to [HEX] as a backup.
It might not be that hard to do because most Axe routines are copy and pasted from the include file. The source would probably turn out differently, but it would still compile back the same.

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: Axe Off-Calc not-really-compiler (dunno what to call it)
« Reply #14 on: April 14, 2011, 01:55:45 am »
Anything unrecognized should compile to Asm( not [HEX] just in case...
There's something about Tuesday...


Pushpins 'n' stuff...