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 - Xeda112358

Pages: 1 ... 106 107 [108] 109 110 ... 317
1606
Grammer / Re: Grammer 2-The APP
« on: October 09, 2012, 09:30:45 am »
Yes, it can be used as an extra variable >.> You can store to it, use it for math, and all that good stuff :P

Also, when I was trying to pass unrecognised tokens to the error handler, I found out that I had broken it. As well, there was another piece of code that has probably been broken for a while that I finally teased out. Anyways, I added these features in all:

  • ] can be used to parse an argument where the pointer follows.
  • ? is a token that is automatically updated with the program counter whenever there is an error or when you use prgm( as opposed to prgm
  • For the error handler only, End) is recognised as a command. This will exit the Error handler without restoring Ans and θ' (this lets you parse unsupported tokens yourself and return values that way).


I am going to see if I can find any more bugs before I release it, though.

EDIT: @Yeong: I saw your review on TICalc, by the way and I've forgotten to mention this:
Quote
I just wish that it could support multiple keypresses, though.
You can test directly for keys. For example, getKey(3 lets you test for right and getKey(2 lets you test for left. If you are pressing both keys, a 1 will be returned in both cases.
Quote
With the "Full" mode (just like Axe), Grammer programs can be run at amazing 15MHz speed(Of course, the 15MHz limited to 84+SE
Full works on the TI-83+SE, TI-84+, TI-84+SE. Basically, the only calc in the series it won't work on is the TI-83+.

1607
Grammer / Re: Grammer 2-The APP
« on: October 06, 2012, 09:15:20 am »
I remembered a feature that I never added to Grammer 2 D: Parser hooks would have made this project great, but I think I have a better idea... When an unrecognised token is come across, code can be redirected and parsed by the program. I would try to use the token "?" somehow to read arguments. This would also let me add in the ability to pass arguments to subroutines "easily." What do you guys think?

EDIT: Okay, what I have added so far:
  • ? is now a variable.
  • Using prgm(pointer will work just like prgmpointer (so it will call a subroutine). However, ? will be updated with the pointer to the next argument
  • The token "]" will read an argument pointed to by a pointer var and then update the pointer var with the location of the next argument. For example, ]? will read an argument pointed to by ?, then ? will be updated.

    I am going to try to add in the error code for unrecognised tokens, too, that way you can set up an error handler that will instead parse the tokens in whatever way you want :) Here is an example of what can currently be done:

    Code: [Select]
    Lbl ".→Z
    prgm(Z,X,Y,S
    Stop
    ..
    ]?→x
    ]?→y
    ]?→s
    If  and 1
    Pxl-On(y,x
    If s and 2
    Pxl-On(y,x,39026
    End

1608
TI Z80 / Re: ORG: online Z80 IDE and assembler
« on: October 06, 2012, 08:03:28 am »
It seems that there is still a bug with creating apps?
Quote
Pass one
Pass two
Total size: 16113 bytes
Warning: file_get_contents(/home/deepthought/public_html/asm/lQbmwR.8xk): failed to open stream: No such file or directory in /home/deepthought/public_html/asm/index.php on line 994 Warning: unlink(/home/deepthought/public_html/asm/lQbmwR.8xk): No such file or directory in /home/deepthought/public_html/asm/index.php on line 996
Program assembled with no errors (download)
The total size looks right, but when I download it, it is a zero byte file.

1609
TI Z80 / Re: ORG: online Z80 IDE and assembler
« on: October 04, 2012, 06:16:23 pm »
I copied and pasted my program code to ORG and I got a bazillion errors like this:

Quote
"Reference to undefined equate HL (line "          ld d,(hl) " in Grammer_z80)"

Any ideas why? Also, another feature that might be good is to return the output size of an app or program, that way we can figure out how much room we have left  ;D

1610
Pokémon Purple / Re: Progress 2012 [PP]
« on: October 04, 2012, 05:13:32 pm »
That looks very nice! If possible, try to make it wiggle right, then left, then right again and then it will look like how it does it in the game o.o

1611
BatLib / Re: BatLib Demo Programs
« on: October 04, 2012, 05:11:14 pm »
I am trying to remember to modify the header before release. The problem is that Brass automatically includes the header, so I have to try and modify it using WabbitEmu :/ This makes it a hassle and a step that I sometimes forget.

1612
BatLib / Re: BatLib Demo Programs
« on: October 03, 2012, 10:32:10 pm »
No, I didn't release it because I didn't want to infringe on Kerm's domain. I have already talked to him about officially supporting GroupHook, so hopefully he will do that in a future update :)

1613
TI Z80 / Re: axe set (with AI)
« on: October 03, 2012, 07:20:24 am »
Hmm, it looks like you are performing some computations and probably drawing a bit, too, when you press a key (the lag is noticeable between frames). I think you should try putting the LCD updating in an interrupt, then it will be constantly updating on its own :)

1614
BatLib / Re: BatLib Demo Programs
« on: October 03, 2012, 06:40:59 am »
Well, the apps need to have 3 bytes of the header modified for it to work with group hook. Also, BatLib has a command to execute Grammer code :P

1615
BatLib / Re: BatLib Demo Programs
« on: October 02, 2012, 06:32:54 pm »
Necropost!

I decided that this program might be a good demonstration of BatLib's compression and decompression routines. It is currently included with BatLib and is called MultiComp. Basically, it attempts lossless compression on a file as much as possible with the BatLib commands. Decompression is fast, compression takes a bit longer just because it tests to see if the file can be compressed further. Anyways, screenshot:



prgmMLTICMP
Inputs: Ans is the name of the variable to compress
Outputs: Str1 is the compressed data, Ans is the compression ratio. 0 means no compression was possible.
Destroys: A,B,C,D,Str2,Str3,Str4,Str5

prgmMLTIDCMP
Inputs: Str1 (same as the output from prgmMLTICMP)
Outputs: Str2 is the uncompressed data
Destroys: A,B,Str1

It might be useful to write a version 2 of prgmMLTIDCMP that takes Ans as an input (as the name of a variable) and then it decompresses Str1 and stores it in the variable.

Download

Next up, now that I understand grayscale much better now, I shall see if I can make a grayscale image editor in BatLib BASIC.

1616
ASM / Re: ASM Optimized routines
« on: October 01, 2012, 06:35:31 pm »
In most cases, yes, that is what you will want to do. If you open up the file TASM80, you will see the format of other such instructions.

1617
ASM / Re: RAM Used in graphing
« on: September 30, 2012, 01:59:07 pm »
I use that link quite a bit, actually. Also, it seems that almost all of TempSwapArea is used during the graphing process.
EDIT: The weird part is that a lot of the data is clearly FP values, not code from flash as it is normally used for.

1618
Pokémon Purple / Re: Progress 2012 [PP]
« on: September 30, 2012, 12:24:31 pm »
Psh, that won't be hard :P Remember, I used to program solely in hex, so I can definitely modify code without making life too difficult. I actually built a compiler on calc just for this kind of thing, so I will see what I can do :) I just have to read through the code to figure out where to insert the 14 bytes.

EDIT: Never mind, it seems you have what you need now. I still want to give it a try :D

Oh, and I made a mistake, it should be 15 bytes

EDIT2: It took a few minutes after I got off the phone with my mother >.> However, attached is a modified version that is in fact 13 bytes bigger than the original, as well as showing the program in action. Just include the " or " token in front of the string to use OR logic, otherwise it defaults to XOR.

1619
Pokémon Purple / Re: Progress 2012 [PP]
« on: September 30, 2012, 11:47:49 am »
That looks awesome O.O I'm glad they modified it to use XOR :D Since it is a program, SMC could be used so that another argument can tell how to draw the sprite (XOR, OR, AND, Overwrite). That's what I used to do with my utilities.

1620
Site Feedback and Questions / Re: Xeda112358 is now a Coder of Tomorrow?
« on: September 29, 2012, 05:11:43 pm »
:D Thanks folks. And yep, I finally got internet at home, so I can be more active again :)

Pages: 1 ... 106 107 [108] 109 110 ... 317