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
« on: October 06, 2012, 09:15:20 am »
I remembered a feature that I never added to Grammer 2 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:
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
1607
« on: October 06, 2012, 08:03:28 am »
It seems that there is still a bug with creating apps? 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.
1608
« 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: "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
1609
« 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
1610
« 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.
1611
« 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
1612
« 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
1613
« 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
1614
« 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: prgmMLTICMPInputs: 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 prgmMLTIDCMPInputs: 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. DownloadNext up, now that I understand grayscale much better now, I shall see if I can make a grayscale image editor in BatLib BASIC.
1615
« 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.
1616
« 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.
1617
« on: September 30, 2012, 12:24:31 pm »
Psh, that won't be hard 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 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.
1618
« on: September 30, 2012, 11:47:49 am »
That looks awesome I'm glad they modified it to use XOR 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.
1619
« on: September 29, 2012, 05:11:43 pm »
Thanks folks. And yep, I finally got internet at home, so I can be more active again
1620
« on: September 29, 2012, 04:48:43 pm »
Wow, that is great! Is it able to be used on some other site?
Pages: 1 ... 106 107 [108] 109 110 ... 317
|