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 ... 223 224 [225] 226 227 ... 317
3361
Miscellaneous / Re: Mr. Hott
« on: April 20, 2011, 10:03:52 pm »
Oh dear, that isn't pleasant x.x One of my elementary school gym teachers got time for something similar, but that was luckily after I left x.x Also, the misspelled "phon" keeps bugging me XD

3362
TI-BASIC / Re: Zeda's Hex Codes
« on: April 20, 2011, 09:41:17 pm »
I figured I would upload the latest version of the hex code list :) The only updates are the ones mentioned a few posts back :/

3363
BatLib / Re: BatLib/ReCode Examples
« on: April 20, 2011, 09:30:00 pm »
Okay, so in this example, I wanted to show off how you can use BatLib to read lists. For example, say you have a game and you store the save files to lists. You can have the user input the name of the "save file" and you can use BatLib to read it :)

Code: [Select]
ClrHome
Input "FILE NAME:",Str1
dim(38,9,"L"+Str1             ;This is the little l for custom lists
Pause Ans
That code is very simple and takes advantage of the fact that if the list doesn't exist, ".BAD NAME" is output.

3364
BatLib / Re: BatLib Ideas/Wishlist
« on: April 20, 2011, 11:34:21 am »
Scout, one of the main selling points of BatLib is that it technically works with all variable types. Some types like lists and real numbers you will need to know the structure, but if a command asks for a var name, it can use any variable type.

For example, if I want to read 67 bytes of Pic7 from archive at an offset of 13:
Code: [Select]
dim(11,13,".Pic7",67That will return the data as a string in Ans. For an appvar, use a prefix byte of either U or 5. So for example:
Code: [Select]
dim(54,63,2,"5MEOWThat will read the second line in the appvar MEOW

Enjoy! :)

3365
I don't know of many people with those questions. I personally try to answer questions that I know even if for the simple reason is to show off what I know. However, it should also be noted that some of the ideas are simply complex and difficult to explain :/

3366
ASM / Re: Create vars in a Parser Hook
« on: April 19, 2011, 11:13:57 pm »
It isn't a memory error, it was a syntax error. I just tried it and again, it created the var, but threw a syntax error. That being said, I think I am going to check if I need to adjust the program counter because that might cause a problem.

EDIT: Yeah, that was the problem XD My problem is resolved just by readjusting a few pointers, but thanks much!
EDIT2: Wait, maybe not x.x New error with displaying the program menu after creating the program
EDIT3: So I checked calcsys and it seams that it is really messing with the vat entries, too x.x

3367
Introduce Yourself! / Re: HELLO WORLD!
« on: April 19, 2011, 10:45:18 pm »
>.>
<.<
!peanuts

EDIT: Hehe! Unninjafied! Well, howdy! I'm not much of an Axer, but this is definitely the place to be if you wanna learn :D I hope you have fun!

3368
ASM / Re: Create vars in a Parser Hook
« on: April 19, 2011, 10:39:07 pm »
No, I have no issues with creating temporary strings or temp lists or any thing like that. Again, this is for BatLib, so it is during the parser hook that I have this problem and it is only when I create named vars that it has a problem. I have known for some time about this issue, I just haven't gotten around to tackling it :) The same code you would use in a program will not work in a parser hook to create vars, so I was just curious about what I had to do...

An example of code that won't work is:
Code: [Select]
ld hl,3         ;The size of the var to create
bcall(_CreateProg)
You can change the size or the bcall to another similar bcall and it has the same issue.

EDIT: Also, please note that it does make the program, it just throws a syntax error when the parser hook finishes

3369
Hey, as long as you are sticking with the idea of ease of use and speed, do what you need :) Most of the users are BASIC programmers, so we know how to make work-arounds >:D

3370
ASM / Create vars in a Parser Hook
« on: April 19, 2011, 12:45:01 pm »
I am now trying to get BatLib to create variables like programs and that isn't much of a problem. The problem is that when creating programs or appvars, it throws an error, even if it successfully creates the var! So, I was wondering if there is a special method that I have to go about to create programs and whatnot... ?

Thanks in advance!

3371
BatLib / Re: BASIC ReCode v2.00
« on: April 19, 2011, 09:17:02 am »
No, Hot_Dog seems to want to have fun making his own programming language :) It isn't about mixing libraries :P

3372
BatLib / Re: Creepy-Crawlies (Bugs)
« on: April 19, 2011, 01:03:16 am »
I managed to fix dim(54 so that it isn't buggy when reading the last database entry (or last line in a program). Pretty much, here is what dim(54 does...

Because it is easier to understand, I will use the example of reading a line in a program. Newlines are the token 3Fh or 63 in decimal. Setting the line byte as 63 will thus let you read lines in a program. If you try to read line 1, you will get the first line, 2 reads the second, et cetera. Before, since it wasn't exactly designed to read lines in programs, it needed a line token at the end of the file. Also, there was no protection against reading past the file.

Now, the command is fixed up so that if you try to read past the file, you get the last line and you do not need to waste a byte by putting a line token at the end.

In case anybody is curious:
41 is the space token (so you can read between spaces). This is useful if you need to separate words in a sentence ^-^
63 is the newline token. Useful for reading lines in a program
88 is the token for X which is useful for equations, maybe

For others, you can use dim(66, to get the value for a token

3373
BatLib / Re: BatLib Ideas/Wishlist
« on: April 18, 2011, 10:26:08 pm »
Okay, so I have been using command 54 which is DBRead and I think it is about time that I fix it up. It is used when you are creating a database to extract certain "elements." Pretty much, think of a database as a list, except with data of a variable size. Okay, here is a better context: You want to read a line in a program.

A newline token is 3Fh or 63 in decimal. So, if you create a program where each line has a word or name or some other data, you can use dim(54 to read specific lines! The only real problem at the moment is that you need a newline at the end and it does not detect the end of the file.

Also note that it can read from the archive, currently and it isn't limited to newline tokens. If you wanted, you could read between spaces or whatever you feel like using :) I am using it in Samocal for item and monster names :)

Also, I want to add in InsertEntry, DeleteEntry, and ReplaceEntry as new commands :)

3374
TI Z80 / Re: Samocal
« on: April 18, 2011, 09:45:53 pm »
Oh, ya know. I just wanted to start programming with my logic probe :P I now have the sprites on my calc and I am working on adding the monster data to the data file :)

3375
News / Re: TI-Boy SE Beta pre-release
« on: April 18, 2011, 08:48:49 pm »
um, for forum etiquette, we typically refrain from double posting... Have you read carefully through all the posts that explain how to fix this? I found out about three times from reading back through posts how to fix the same problem. Admittedly, it could be something else, though :)

Pages: 1 ... 223 224 [225] 226 227 ... 317