Author Topic: Axe 8-bit math ideas  (Read 12938 times)

0 Members and 1 Guest are viewing this topic.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe 8-bit math ideas
« Reply #15 on: September 08, 2010, 07:50:03 pm »
I like the way you think Deep Thought ;) IMHO if we are going to be doing such complicated things that we are coding in half asm and half axe at the same time, maybe it would just be easier to code in straight asm or add in some small hex codes for small things

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: Axe 8-bit math ideas
« Reply #16 on: September 08, 2010, 07:50:41 pm »
Although then it cannot be used in future contests :P (unless they're not pure-Axe-only)

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Axe 8-bit math ideas
« Reply #17 on: September 08, 2010, 07:53:20 pm »
The problem with Asm( is that it's difficult to read hex, while reading ASM is much simpler in comparison. Just my opinion ;)
Maybe I should just wait for Mosaic at this point, though mixing Axe and ASM would be nice.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe 8-bit math ideas
« Reply #18 on: September 08, 2010, 07:57:54 pm »
Right now, I'm using OTBP to assemble short ASM clips into hex, then using that for Asm(. It actually works pretty well.




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: Axe 8-bit math ideas
« Reply #19 on: September 08, 2010, 09:42:54 pm »
If native registers were supported, it would only be the most basic use of the registers: loading, adding, subtracting, and shifting, plus maybe a few simple things I'm not thinking about.  It would only allow things that are legal in asm so you wouldn't be able to add b and c and store the result in d.  Don't forget that part of implementing the 8 bit mode is moving the variables close enough to relative reference with IY so there are more optimizations possible.

By the way, I'm taking an assembly class using MIPS architecture (very similar to ARM) which feels like such a higher level language compared to z80.  Those instructions are specifically designed to translate from C compilers and only now do I realize why there haven't been many good assemblers for z80 so far :P.
___Axe_Parser___
Today the calculator, tomorrow the world!

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: Axe 8-bit math ideas
« Reply #20 on: September 08, 2010, 10:11:34 pm »
Nice Quigibo! And Yeah, the calc using a 8 bit processor doesn't help much x.x. I heard it was much easier to code in ARM assembly than z80, for example.
« Last Edit: September 08, 2010, 10:11:49 pm by DJ Omnimaga »

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe 8-bit math ideas
« Reply #21 on: September 09, 2010, 01:13:23 am »
THose optimizations and features sound great :D Im especially excited for 8 bit mode ^^

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe 8-bit math ideas
« Reply #22 on: September 09, 2010, 07:07:58 pm »
Hey, I have another idea for register access. How about using Greek letters, like α for register A, β for B, γ for C, δ for D, ε for E, and σ for F (since it kinda looks like a "flag" anyway ;))? If someone's so good with calculators that he wants to use the native registers, he can probably access the restricted tokens pretty well.




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: Axe 8-bit math ideas
« Reply #23 on: September 09, 2010, 07:47:10 pm »
Those are pretty hard to access, though. It would be best to choose tokens that are available without having to use a 3rd party program, even if it means renaming ANOVA( to A (slightly modified to stand out from the regular A) or the like

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe 8-bit math ideas
« Reply #24 on: September 09, 2010, 08:04:51 pm »
Maybe he could use the X[NUM]T tokens, but replacing them with the greek letters. In that case, flags could be replaced with that weird serif'd F.