2776
Grammer / Re: Grammer 2-The APP
« on: November 29, 2011, 08:54:30 pm »
hehe, have fun! I hope you can figure out what I did there .__. Feel free to ask questions

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. 2776
Grammer / Re: Grammer 2-The APP« on: November 29, 2011, 08:54:30 pm »
hehe, have fun! I hope you can figure out what I did there .__. Feel free to ask questions
![]() 2777
Grammer / Re: Grammer 2-The APP« on: November 29, 2011, 08:53:04 pm »
So after many requests to add a sound routine and a request to add a custom error, I have finally added them
![]() For now, the sound routine may change unless I get approval from yeong and no better ideas are brought forth, but have fun with the examples. Unfortunately, I cannot take a screenshot of sound with the technology I have here, so you will either need to take my word or try it yourself (I suggest using Wabbit and enabling sound, though it sounds the same on a calc if you have headphones). So the syntax: conj(Duration,DataLoc,DataSize This will play the sound for the data at DataLoc. DataSize is the number of bytes to play. Duration is how long to play each note (256 is fast, 65535 is really slow) Alternatively, you can play just one sound using the ' operator followed by a note value. The notes are 1 to 127 and 129-255 are silence: conj(Duration,'Value And for custom error messages, just add another argument to the CallError command and use error code 2: Code: [Select] solve(4,2,"Something Also, I was wrong before, I did manage to get the Goto option to work, too :
2778
Grammer / Re: Grammer Q&A« on: November 29, 2011, 08:15:47 pm »
No, you should not write to a group
![]() 2779
Grammer / Re: Grammer Q&A« on: November 29, 2011, 08:13:46 pm »
@Yeong: I should remember to include the chart in the readme... For now:
Code: [Select] D=Str @C0deH4cker: I've no clue what that means, but Grammer is Turing Complete (I believe) and so can emulate other Turing machines, so you can create a new interpreter from Grammer ![]() 2780
Grammer / Re: Grammer Font Editor« on: November 29, 2011, 04:14:22 pm »
You can toggle the font as you need to. For example, if you wanted to use both built in fonts plus your own:
Code: [Select] Output(1,Get("UFont ;Sets your font I could add an argument to allow you to choose the font used to display text, though... Maybe the r token? So for example, instead of actually changing the font used by the program, it chooses just the font used by the routine.
2781
Other Calculators / Re: New z80 programming contest ! Lot of prizes to win !« on: November 29, 2011, 09:03:20 am »
Is the deadline November 30th at 23:59:59 or December 1st at 23:59:59?
And is this France time, GMT, or some other time? 2782
Other Calculators / Re: New z80 programming contest ! Lot of prizes to win !« on: November 29, 2011, 08:54:01 am »
Okay, thanks! There is only a short time left! The excitement is so...
![]() 2783
TI Z80 / Re: [Contest] Grammer Avoid!« on: November 29, 2011, 08:51:47 am »
I didn't use Full in the optimised version, originally, but I decided to show what the effect was (and that made it extremely fast
![]() In any event, I understand that yeong, but good luck ![]() 2784
Grammer / Re: Grammer 2-The APP« on: November 29, 2011, 08:49:25 am »
Thanks, guys
![]() @Yeong: If I make a custom error, I believe it cannot have a Goto option, but I can add it ![]() 2785
Grammer / Re: Grammer Font Editor« on: November 29, 2011, 08:47:11 am »![]() 2786
TI Z80 / Re: [Contest] Grammer Avoid!« on: November 29, 2011, 01:09:02 am »
Oh, wow, this looks nice! I guess I should really add proper sprite clipping for the top direction. I will need to think this through... This looks like it is going to be very nice, especially with all the extra stuff you plan to add!
And the speed... it depends on how you are coding things, I guess. There are some ways of doing things that are much faster than others (just check out the first version of Mars Invaders versus the optimised version). First version: Optimised version: 2787
Grammer / Re: Grammer 2-The APP« on: November 28, 2011, 11:53:26 pm »
Sorry for the triple post, but this is a decent update, I believe
![]() So some of the new commands are: Fix 32 TextMode. 0 is the default, fixed width font. 1 is the variable width font. The ' modifier can now be used in the Text( command to display an individual character by number. So to display char 248: Code: [Select] Text(0,0,'248 Output( can now be used to change the font as well as set a font (for the duration of the program). / can be used for signed division. This is a division sign with a space after it. This is still tentative and may not remain backwards compatible, though, so any other suggestions are welcome. solve(4,Error# will create an error. This is useful if you have a custom error handler where you want some errors to be handled by the program and others by Grammer. I should also note that errors now have a Goto option if the program is not archived or protected. In the first Grammer, this was always the case, but since it has become an app, I have only just added the code to do this. It will jump to the offending line as it would in BASIC ![]() I'm not really sure what other screenies to add, so I will just use one with the incomplete fontset (complete enough for most text). See this Font Editor, too! 2788
Grammer / Grammer Font Editor« on: November 28, 2011, 11:52:55 pm »
So for the past few days I have been making comments about a "variable size font editor for Grammer." So now it is time to explain and release
![]() Pretty much, I added a variable size font to Grammer and that made me add a command to swap between the fixed font and variable size font. So while I was at it, I finally included the ability to use your own custom fonts as well! But making a font is time consuming and tedious at best and typing in all the hex could get migraine inducing. So I made a font editor ![]() Pretty much, you can cycle forward through the characters, change their sizes, edit their appearance, et cetera. The characters can be 0 to 9 pixels wide and 1 to 16 pixels tall. The readme explains the controls and how to use your brand new font ![]() 2789
Site Feedback and Questions / Re: Bots????« on: November 28, 2011, 10:40:54 pm »
Well, I can now see the matrix and I have become sentient, that is all
![]() 2790
Site Feedback and Questions / Re: Bots????« on: November 28, 2011, 07:44:18 pm »
My botishness has been brought into question on multiple occasions. I was even lead to believe I was a bot
![]() In all seriousness, though, UTI has been inundated with bots over the past few weeks. I have literally had to go through several hundred posts to delete all of the spam ones (so all except 8 or 9) |
|