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

Pages: 1 ... 108 109 [110] 111 112 ... 194
1636
Correlation / Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« on: November 13, 2010, 03:15:33 am »
It does in BASIC. Try it for yourself on a real calc.

It does in Basic because it uses the Ti-OS font routines, which save to a Text Buffer.  With correlation, I'm using special routines that do not save to a text buffer, or else gibberish would appear when a Ti-Basic program ends. 

1637
Correlation / Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« on: November 13, 2010, 03:12:11 am »
Ah ok so it installs font files and hooks?

Also could you answer the first question in http://ourl.ca/7842/139516 ?

pgrmCORELATE installs hooks, but does not need to install fonts.  The user specifies a font in his program by using Select().

Sorry about not answering that first question.  If I read it correctly, Output() will display a homescreen-sized font, but it will not appear on the homescreen when the program ends.

1638
Correlation / Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« on: November 13, 2010, 02:49:55 am »
Correlation will now come with two programs.  The first will be pgrmCORELATE.  This program will be small--hopefully 200 bytes or less--and is used for initalizing and deinitalizing.  The other program is pgrmFONTROUT.  It's much bigger, but it can be stored in archive.

Both programs are required for Ti-Basic programs wanting to do custom fonts using Correlation.

1639
S.A.D. (Seek and Destroy) / Re: [S.A.D.] Progress 2010
« on: November 12, 2010, 06:25:10 pm »
I'm having trouble figuring out the fog of war for ships, so I need time during Christmas Vacation to actually sit down and plan it.  With that said, I'll be taking a break to fix some ASM lesson bugs, as well as to work on Correlation.

THIS IS NOT QUITTING THE PROJECT.  I'm only taking a 4-week break.

1640
ASM / Re: The copying of ASM programs
« on: November 12, 2010, 01:46:02 pm »
It gives me a memory error.

Obviously, not enough space. Can the program be archived?

I have no idea.  But what I was hoping for was that two copies of the program would still exist if the program could be run.  I plan to run an ASM program without using asm()

1641
ASM / The copying of ASM programs
« on: November 12, 2010, 09:40:39 am »
I read that in ASM 28 days, smc isn't saved in an ASM program because the program is copied to $9D95.  This, of course, means that there's 2 copied of the same ASM program in the calculator's memory.  What happens if a person tries to run an 8 KB ASM program when then calculator's memory is almost full?

1642
Correlation / Re: I don't know what tokens to use and need suggestions
« on: November 12, 2010, 12:00:48 am »
Keep in mind that Select(), ExprOn/Off, and LabelOn/Off are all two byte tokens. :)

Ah, yes.  Thanks for letting me know :D

1643
Correlation / Re: I don't know what tokens to use and need suggestions
« on: November 11, 2010, 11:21:05 pm »
Just go to 2nd -> Format

1644
Correlation / Re: I don't know what tokens to use and need suggestions
« on: November 11, 2010, 09:56:13 pm »
Btw you rename tokens, right? I hope you don't create new ones, because Omnicalc 1.0/1.1 did that and we couldn't send files to another calc or the computer.

Tokens remain just the way they are, I don't change names or anything.  That way, for people who want to switch between Correlation and Ti-OS routines in their programs, they won't have to be confused with names.

1645
Correlation / Re: I don't know what tokens to use and need suggestions
« on: November 11, 2010, 09:49:14 pm »
Will Label On/off be useable in BASIC so we can swap between them in our games when needed? That would be cool!

Yes, they will be useable in BASIC!  However, you would have to use Label On every time you wanted to switch from Xlib/CelticIII/etc. to Correlation (as it's now called) and Label Off every time you wanted to switch from Correlation to Xlib etc.

1646
ASM / Re: Saving previous hook states
« on: November 11, 2010, 06:38:53 pm »
SmallEditRam is my favorite ram location because nothing uses it. You can put a hook there and a week later, it will still be there. Appbackupscreen gets killed by almost every single asm program. Not to mention omnicalc uses it quite a bit for hook activities.

I am saying put your hook code in smallEditRam because you don't have to worry about it getting overwritten.

Oh, that makes a lot of sense!  I'll definitely keep it in mind

1647
ASM / Re: Saving previous hook states
« on: November 11, 2010, 06:34:15 pm »
Use smallEditRam, it will persist through most Asm programs. It's only 117 bytes, but that's enough to find code in the archive and stream it to appBackUpScreen.

My goal is to have an ASM program and to use Ti-Basic hooks for it.  What would I need smallEditRam for?  I'm confused :O

1648
ASM / Re: Saving previous hook states
« on: November 11, 2010, 06:28:58 pm »
Get on wabbitemu, clear your ram. Then install an app and check the memory around $9BAC. You should see mostly 00's, but there should be a few 3 byte strings. Depending on which app page those strings give, you can tell which app sent out the hook. (You can use omnicalc to figure out which app is on which page.) Then use brandonW's ti83plus.inc to figure out which hook it is.

Oh, duh, the code is run from the applications themselves.  I'm using appbackupscreen for my parser hook since it's copied from pgrmTEXT

1649
ASM / Re: ASM practice (Help)
« on: November 11, 2010, 05:56:51 pm »
He means you should try to make the program in ASM: the user presses a button, you give the key code.

Exactly.  I felt that if you visualized it in Basic, you could better figure out how to start, how to end, and what your goals are

1650
ASM / Re: ASM practice (Help)
« on: November 11, 2010, 05:47:01 pm »
Start by displaying the text "Press a number", and using GetKey() to let the user press a key.

Quote
Wouldn't you'd just get the keypress, then have the program run through a look up table and return the value from the table?

That's too hard for beginners
so do i do that for every number? or just once?

What would you do if you were writing a Ti-Basic program?  You would have a label to mark a loop.  You ask a user to press a key, and you see if the key is a number.  If it is, you display the number.  If not, you get another key press.

For example:

Lbl KE

getKey->K
If K > ...and K < ...
Goto DI
Goto KE

Lbl DI:

Disp K


Try it now in terms of ASM

Pages: 1 ... 108 109 [110] 111 112 ... 194