Author Topic: Features Wishlist  (Read 693598 times)

0 Members and 2 Guests are viewing this topic.

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Features Wishlist
« Reply #1545 on: November 14, 2010, 08:44:09 pm »
Personally I like how it instant exits after compiling; saves a lot of time for debugging. More people will be compiling one program at a time than those who want to compile more than 1 program at once :P

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Features Wishlist
« Reply #1546 on: November 14, 2010, 09:35:28 pm »
I really want this to be possible:

Code: [Select]
"Up"->Str1
"Down"->Str1

I'd love to see that *.*
"ERR:DUPLICATE"
And help doing something would help be useful...;D
Also, this was already mentioned I believe, but I second whoever asked for the size of the program* to be displayed on the "Compiling..." screen.
*like it does for apps, maybe?

"help working would help"...wow
* Darl181 facepalms
« Last Edit: November 14, 2010, 09:37:57 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Features Wishlist
« Reply #1547 on: November 14, 2010, 09:49:11 pm »
Ztrumpet mentioned something like this:
Code: [Select]
"Up"->Str1
"Down"->Str2
If CONDITION
Str1->A
Else
Str2->A
End
So A is your variable pointer :)
"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 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 #1548 on: November 14, 2010, 09:52:09 pm »
You can always use a variable as a pointer to a string, and change that variable. For example, P is used as a pointer in the following program:
Code: [Select]
Repeat getKey->K
End

If K=4
("Up")->P
ElseIf K=1
("Down")->P
Else
("Neither")->P
End

Disp P

("String") tells Axe to insert the string data at the end of the program and return a pointer to it. The parentheses are important because it tells Axe that it is an expression and needs to return the pointer, instead of it being a simple data definition (in which case no code is generated)
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Features Wishlist
« Reply #1549 on: November 14, 2010, 10:02:48 pm »
Ah, right, forgot about inlining of data definitions x.x
Essentially the same thing, though.
"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 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 #1550 on: November 14, 2010, 10:05:14 pm »
If you are going to use a string more than once, it is a good idea to give it a name, though. If you inline the string each time, the data will be added again and again. (Well, unless Quigibo made it check for duplicates, but I think that would be a waste of processing time)
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline lookitsan00b

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +37/-3
    • View Profile
Re: Features Wishlist
« Reply #1551 on: November 14, 2010, 10:21:07 pm »
If you are going to use a string more than once, it is a good idea to give it a name, though. If you inline the string each time, the data will be added again and again. (Well, unless Quigibo made it check for duplicates, but I think that would be a waste of processing time)

actually, it probably compiles to something like:

Code: [Select]
;getkey stuff here
 cp 4
 jq nz,lb1
 ld de,P_Address
 ld hl,str1
 ld (de), hl
lb1:
...
data_section:
str1:
 db "Up", 0
« Last Edit: November 14, 2010, 10:22:11 pm by lookitsan00b »
My TI-94+SE is broken.  I used some flawed existential conditioning on it, and it crashed. :(

Activity level:
{====______}

Spoiler For Securite:
{=========_}

A couple security flaws
Need a good backdoor short of reinstalling the OS
Completely immobilized and invalidated by Zstart. And rendered incompatible.
Spoiler For FFTATIA:
{====______}

framework: mostly done
graphics engine: undergoing complete rewrite
still need character and enemy sprites!!! :P

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #1552 on: November 14, 2010, 10:33:16 pm »
This is what disassembly is for :P

Code: [Select]
;getKey stuff here
ld hl,($8700) ;$8700 = K
ld a,l ;K=4 check
sub 4
or h
ld hl,$01
jr z,$+3
dec l
ld a,h ;Standard If statement code
or l
jp z,EndIf
ld hl,string ;If statement contents
ld ($870A),hl ;$870A = P
EndIf:
;Other stuff


string:
.db "Up", 0
« Last Edit: November 14, 2010, 10:37:46 pm by Runer112 »

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: Features Wishlist
« Reply #1553 on: November 15, 2010, 02:49:38 am »
I would like the option to return on the compile list after compiling a program or the menu. It would be best if we could also choose to exit, though. Some people may be working on multiple programs at once, but a lot of people will most likely only compile one program at a time. That said, it is not really a hurry, though.

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: Features Wishlist
« Reply #1554 on: November 15, 2010, 02:25:08 pm »
Quote from: calc84maniac
You can always use a variable as a pointer to a string, and change that variable. For example, P is used as a pointer in the following program:
Code: [Select]
Repeat getKey->K
End

If K=4
("Up")->P
ElseIf K=1
("Down")->P
Else
("Neither")->P
End

Disp P

("String") tells Axe to insert the string data at the end of the program and return a pointer to it. The parentheses are important because it tells Axe that it is an expression and needs to return the pointer, instead of it being a simple data definition (in which case no code is generated)

Thanks, didn't know that. I don't understand how the parentheses work, though...




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 #1555 on: November 15, 2010, 02:28:15 pm »
Wait calc84 is that an explanation or a request?

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 #1556 on: November 15, 2010, 03:37:42 pm »
Explanation ;)

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 #1557 on: November 15, 2010, 04:22:43 pm »
Ah i understand it now, thats really useful!

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 #1558 on: November 15, 2010, 05:22:13 pm »
Quote from: calc84maniac
You can always use a variable as a pointer to a string, and change that variable. For example, P is used as a pointer in the following program:
Code: [Select]
Repeat getKey->K
End

If K=4
("Up")->P
ElseIf K=1
("Down")->P
Else
("Neither")->P
End

Disp P

("String") tells Axe to insert the string data at the end of the program and return a pointer to it. The parentheses are important because it tells Axe that it is an expression and needs to return the pointer, instead of it being a simple data definition (in which case no code is generated)

Thanks, didn't know that. I don't understand how the parentheses work, though...

Well, try "Up"->P. Axe will give an error, because when a line starts with a double quote Axe is expecting it to be stored to a static pointer (like Str1A), or else just inserted at the end. Starting with parentheses tells Axe that you are actually evaluating an expression here, and thanks to the inline data support Quigibo added recently, a pointer is returned to the inserted string.
"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 #1559 on: November 16, 2010, 05:40:25 pm »
Actually, storing to a variable might be valid syntax in the next version, that is "Hello"->P will be parsed the same as ("Hello")->P
___Axe_Parser___
Today the calculator, tomorrow the world!