• Features Wishlist 5 1
Currently:  

Author Topic: Features Wishlist  (Read 606958 times)

0 Members and 4 Guests are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Features Wishlist
« Reply #135 on: February 19, 2010, 02:59:56 pm »
shouldn't be too much trouble to get used to I guess, if it can make it easier to compile and reduce size ^^

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: Features Wishlist
« Reply #136 on: February 19, 2010, 10:01:02 pm »
Sounds great.  I like the header and Axioms ideas.  I also am fine with the changes to Disp.  Good luck! ;D

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Features Wishlist
« Reply #137 on: February 22, 2010, 01:54:38 pm »
I think we definitely need support for Else. Also, clipped sprites would be nice (I can help optimize if you want)
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

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: Features Wishlist
« Reply #138 on: February 22, 2010, 02:48:37 pm »
Yeah, the sprites right now are not clipped.  I was thinking of adding that, but I was kind of in a hurry.  That would be great if you can optimize a routine for me!  I need it optimized for size, not speed though.

I'll get working on Else soon.  You can do this in the mean time:

If <statement>
<code to do if true>
Goto 1
End
<code to do if false>
Lbl 1
Delvar 1

The asm code generated from this will be identical to the code generated when using Else.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: Features Wishlist
« Reply #139 on: February 22, 2010, 03:02:40 pm »
True. But else is more readable.

The trouble coding the Else is worth for a cleaner source.
Hobbing in calculator projects.

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: Features Wishlist
« Reply #140 on: February 22, 2010, 03:28:22 pm »
Does that cause a mem leak like in Basic?

I can't wait to try 0.0.5! ;D
*ZTrumpet hurry's over to download...

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: Features Wishlist
« Reply #141 on: February 22, 2010, 03:47:21 pm »
Does that cause a mem leak like in Basic?

I can't wait to try 0.0.5! ;D
*ZTrumpet hurry's over to download...
No because it is compiled into assembly. There are leaks in assembly, though... But with different nature of the BASIC ones.
« Last Edit: February 22, 2010, 03:47:53 pm by Galandros »
Hobbing in calculator projects.

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: Features Wishlist
« Reply #142 on: February 22, 2010, 04:17:03 pm »
(Thanks Galandros!  ZTrumpet gives Galandros a cookie...)

I had an idea!
Can you make a "screen to buffer command", in which the buffer is updated with the current screen?
Also, where is the buffer? Is it the AppSaveScreen? (That's the only place I can think of now, but I've probably only got a 25% chance of being right...)
Thanks! ;D

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: Features Wishlist
« Reply #143 on: February 22, 2010, 06:11:06 pm »
You can still leak in Axe Parser, but only by calling a subroutine that keeps calling itself in a non-terminating infinite loop.  I mean, you can have subroutines call themselves if you want to have a recursive subroutine, but it has to actually exit somewhere.  All the other commands are leak-proof unlike basic.

The next update will definitely have Else, but I'm not sure if it will have the Ternary operator since I have so many other things to do.

Btw, the buffer is stored in plotSScreen.  What would be the use of copying the screen to the buffer?  All of the drawing commands draw to the buffer anyway.
« Last Edit: February 22, 2010, 06:12:15 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

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: Features Wishlist
« Reply #144 on: February 22, 2010, 06:34:27 pm »
You can still leak in Axe Parser, but only by calling a subroutine that keeps calling itself in a non-terminating infinite loop.  I mean, you can have subroutines call themselves if you want to have a recursive subroutine, but it has to actually exit somewhere.  All the other commands are leak-proof unlike basic.
Great! :D
Btw, the buffer is stored in plotSScreen.
Thanks!
What would be the use of copying the screen to the buffer?  All of the drawing commands draw to the buffer anyway.
I was thinking that if you had a basic program that calls an Axe program, then somehow you'd want to be able to put the screen on the buffer.  This is to allow interactions with the screen with an Axe program as a subroutine.  Does this seem like a good idea/reason?  Thanks! ;D
« Last Edit: February 22, 2010, 06:35:08 pm by ztrumpet »

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Features Wishlist
« Reply #145 on: February 22, 2010, 06:37:30 pm »
I was wondering, how hard would it be to let people name their labels with more then two letters?
hmm, it would be nice to have a secondary buffer that you could store too, but that would be easy to do with pictures...
/e

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: Features Wishlist
« Reply #146 on: February 22, 2010, 08:52:41 pm »
I wish I could name labels and strings and pictures of arbitrary length!  The problem is that the calculator has EXTREMELY limited memory.  Each individual label currently takes up 5 bytes.  That is 2 bytes for the location the label is pointing to, 1 for the type, and 2 for the letters.  I need these to be in a continuous array in ram.  The largest free ram is 768 bytes and so rounded to 750, that's exactly 150 Labels.  If each label was 7 letters, you would only be allowed 75 labels.  Unless I can somehow figure out how to read and write data directly to ROM, there really just isn't enough memory to keep track of long names.
« Last Edit: February 22, 2010, 08:54:03 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #147 on: February 22, 2010, 08:56:05 pm »
Well I haven't worked with Axe or Assembly very much (not Assembly much at all) but is 150 labels/subs really very necessary?  Maybe its just my BASIC attitude towards labels but it would seem to me that you wouldn't need to use them that much.  
« Last Edit: February 22, 2010, 08:57:34 pm by Builderboy »

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Features Wishlist
« Reply #148 on: February 22, 2010, 08:59:37 pm »
Ah ok :/ well I was just thinking...you could set it up so that if it jumps to a label or calls it, instead of having labels stored you can parse the location of the label instead into the goto, kind of like assembly is done.
/e

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: Features Wishlist
« Reply #149 on: February 22, 2010, 09:20:26 pm »
Well I haven't worked with Axe or Assembly very much (not Assembly much at all) but is 150 labels/subs really very necessary?  Maybe its just my BASIC attitude towards labels but it would seem to me that you wouldn't need to use them that much. 
Its not that labels in particular that worry me, its the naming of strings, sprites, pictures, etc. that you often need to name a decent amount.
___Axe_Parser___
Today the calculator, tomorrow the world!