Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Runer112

Pages: 1 ... 119 120 [121] 122 123 ... 153
1801
TI Z80 / Re: Tokens
« on: November 02, 2010, 08:29:00 pm »
By the way, you might want to consider messing around with the main text box properties a bit :P

1802
TI Z80 / Re: Tokens
« on: November 02, 2010, 07:22:43 pm »
To read and write to pointers in Axe, you have to enclose the pointer value in curly brackets. I believe Quigibo uses curly brackets on some of his commands, like nib{, because they take only one argument, and that argument is a pointer.

By the way, the Celtic III section seems to be malfunctioning. I accidentally stumbled into this when loading an Axe source file, because Axe uses the command det( followed by a number to allocate data sections in the compiled program. I believe all the Celtic III commands are in the format of det(number,stuff) whereas Axe uses the command in the format of det(number). Even though there is no comma after the first digit in det( calls in the Axe source file, it seems that it is being somehow intercepted by the Celtic III commands. However, because there is no comma, it doesn't actually match a token, and all it ends up doing is deleting the det( token and the first digit following it.

EDIT: It appears that this error also applies to other shell extension commands in the xml file.

1803
TI Z80 / Re: Tokens
« on: November 02, 2010, 06:10:31 pm »
Wow, that's awesome. Thanks so much, Runner. The Axe commands I'll end up taking out into a separate Axe.xml file, but for now this is perfect. There are some things I'll change, and I'll have to look over it a little more in depth, but this is awesome. Out of curiosity, what were the duplicate tokens, and what were the missing ones?

$6338-$633F and $7E00-$7E07 were the only duplicates I think ($7E00-$7E07 were the correct ones). You missed $6237-$623C, $BBED-$BBF5, and I think few scattered others.

1804
TI Z80 / Re: Tokens
« on: November 02, 2010, 05:25:25 pm »
Ok, here's the modified xml file. Changes include:
  • Incorrect tokens/tokens with typographical errors fixed
  • Duplicate/erroneous tokens removed
  • Missing tokens added
  • Ensured that all token strings could be typed on a standard American English keyboard (¿ and ¡ could not)
  • All non-pretty statistics functions and lowercase statistics variables (all two-byte tokens starting with $62 except F) standardized to [x] format
  • All single-letter special tokens (e.g. ˪, i, F, ᴇ) standardized to /x format
  • All raised symbols standardized to ^^x format (not only does this seem more logical than **x to me, but also ** is an Axe Parser command that could be misinterpreted)
  • Some other minor changes I'm probably forgetting about
  • "Pretty" alternate strings added
  • Axe Parser alternate strings added


Primary strings can all be typed on a keyboard. Alternate strings are sorted in the following manner:

Alternates that can be typed on a keyboard are first. "Pretty" alternates appear next. "Alternates" is plural because tokens that have more than one "pretty-ifiable" characters (e.g. chi^2cdf() are broken down into all possible pretty/non-pretty combinations (e.g. χ^2cdf(, chi²cdf(, and χ²cdf(). These are sorted in increasing order of "prettiness." Following any "Pretty" alternates come Axe Parser alternates, sorted according to the preceding rules.

1805
TI Z80 / Re: Tokens
« on: November 02, 2010, 04:43:58 pm »
You're not the first person to mention that, actually. There's obvious going to be some level of re-learning that needs to be done in order to use this correctly, and the idea is that you should be able to enter everything in on the keyboard. I can think of a few ways to do this so that it's not terribly tedious. I'll think about how to implement it some more, and see if I come with anything I like. In the meantime, if you could upload your changes of the .xml file, that would be awesome!

I'm just making some slight changes to it, I added the Axe Parser token alternates but forgot to specify that that's what they actually were, so I'm adding comments to signify Axe tokens.

EDIT: And following the idea of "Pretty" tags, do you think it would be possible to make something like an "Axe" tag? That way if you're editing an Axe source file, the tokens can default to the Axe token equivalences.

1806
TI Z80 / Re: Tokens
« on: November 02, 2010, 04:32:19 pm »
merthsoft, do you think you could add an option to pretty-ify text? I went through the whole xml file and added lots of token alternates using non-keyboard characters that look much nicer and more visually realistic to the original tokens. Using more realistic tokens (such as Σx² instead of [Sigmax^2]) makes programs much easier to read. If I swapped the alternate strings with the main strings, or if you added some sort of "Pretty" alternate string form to the xml, could you add some sort of feature that would convert all tokens into their "Pretty" versions? Perhaps even as you type?



Ah ok, maybe I got confused with a different URL. I swear he posted some of his own stuff from there, tho.

And I see. Can't wait for release :)

Nope, never posted there. :P

1807
ASM / Re: A GetKey that doesn't wait?
« on: November 02, 2010, 10:24:10 am »
It's... a bit complicated.  Maybe it would help if you could explain what exactly you're trying to do.

I just want to make a program that can work while waiting for key inputs and accepts key inputs in the A/keyExtend format.

1808
ASM / Re: A GetKey that doesn't wait?
« on: November 01, 2010, 11:57:23 pm »
Dang, I have no idea how to use hooks... Anyone know of a good guide explaining how hooks work? Or anyone want to post a whirlwind tour of hooks?

1809
ASM / A GetKey that doesn't wait?
« on: November 01, 2010, 11:43:36 pm »
Is there such a thing? I know there are things like GetCSC and direct port input, but I'm wondering if GetKey has a non-waiting equivalent that also uses the A/keyExtend output format.

1810
ASM / Re: Some general Questions
« on: November 01, 2010, 10:39:23 pm »
Straight from the zilog manual for add hl, <register>:

Quote
Condition Bits Affected:
S is not affected
Z is not affected
H is set if carry out of bit 11; reset otherwise
P/V is not affected
N is reset
C is set if carry from bit 15; reset otherwise

To be honest, I actually forgot that S and Z were ignored. I bet somewhere in one of my programs I did that wrong.

Wait, what!? :o Sean McLaughlin, you lied to me!

1811
TI-BASIC / Re: Quadratic Formula
« on: November 01, 2010, 09:42:07 pm »
But only one may win...
Quote
Code: [Select]
:ClrHome
:Disp "AX²+BX+C=0
:Prompt A,B,C
:B+{1,-1}√(B²+4i²AC
:Pause -2C/Ans

:o that works? In which case...

Code: [Select]
:ClrHome
:Disp "AX²+BX+C=0
:Prompt A,B,C
:Pause -2C/(B+{1,-1}√(B²+4i²AC

And the winner is...

Code: [Select]
:ClrHome
:Pause "GOOGLE IT

 ;)

Only 11 bytes!


Oh really?

Code: [Select]
:ClrHome
:Pause "JFGI"

1812
TI-BASIC / Re: Quadratic Formula
« on: November 01, 2010, 09:30:33 pm »
(sorry, but I had to optimize a little  ;D)
And I has to optimize it more. :P Also, your code doesn't work; it would have to be √(B²/4-AC)/A :(
Code: [Select]
:ClrHome
:Disp "AX²+BX+C=0
:Prompt A,B,C
:Pause -(B+{1,-1}√(B²+4i²AC))/(2A
Doesn't even change the mode settings ;D

Two can play the optimization game. :P

But only one may win...

Code: [Select]
:ClrHome
:Disp "AX²+BX+C=0
:Prompt A,B,C
:B+{1,-1}√(B²+4i²AC
:Pause -2C/Ans

:o that works? In which case...

Code: [Select]
:ClrHome
:Disp "AX²+BX+C=0
:Prompt A,B,C
:Pause -2C/(B+{1,-1}√(B²+4i²AC

1813
ASM / Re: Some general Questions
« on: November 01, 2010, 09:12:51 pm »
And here is the best one: (I think by calc84?)
Code: [Select]
or a
sbc hl, de
add hl, de

The flags are affected exactly the same way as cp.

I debated posting that, but that addition will leave some flags (s, z, and n) with incorrect values.

1814
TI-BASIC / Re: Quadratic Formula
« on: November 01, 2010, 09:05:06 pm »
(sorry, but I had to optimize a little  ;D)
And I has to optimize it more. :P Also, your code doesn't work; it would have to be √(B²/4-AC)/A :(
Code: [Select]
:ClrHome
:Disp "AX²+BX+C=0
:Prompt A,B,C
:Pause -(B+{1,-1}√(B²+4i²AC))/(2A
Doesn't even change the mode settings ;D

Two can play the optimization game. :P

Code: [Select]
:ClrHome
:Disp "AX²+BX+C=0
:Prompt A,B,C
:-B+{1,-1}√(B²+4i²AC
:Pause Ans/(2A

1815
Axe / Re: 8xp to text converter
« on: November 01, 2010, 06:45:19 pm »
I wonder if that old thing works under Windows 7 64 bit... I used it a lot back then, but I had XP. It was already pretty unstable as it was designed for Windows 95, 98 and NT 4.0.

I use TI's Program Editor for most of my program writing, and I'm running Windows 7 x64 :P

Pages: 1 ... 119 120 [121] 122 123 ... 153