|
Post by bfr on Jan 20, 2005 21:27:19 GMT -5
Hello, this is the section where you may comment on the Z80 series of ti-calcs and where you may ask other members questions about the given subject. I'll start by saying that the ti-calc.org site offers many games to the Z80 series, in both asm and BASIC. Also, Z80 asm is...um...weird, at least compared to 68k asm; and asm is pretty weird anyway.
|
|
|
Post by Simon on Jan 22, 2005 23:32:12 GMT -5
i am trying to learn asm by myself but it is almost imposible tho
|
|
|
Post by Pure on Feb 6, 2005 9:59:47 GMT -5
I'm just starting to learn z80 asm. It may be complicated, but it'll be certainly worth it.
|
|
|
Post by Vladik on Feb 6, 2005 12:01:08 GMT -5
You can make many great programs with Z80 Asm that were impossible to make in BASIC...
|
|
|
Post by Simon on Feb 6, 2005 12:50:51 GMT -5
I am becomming very skillful for making ti82 game but i still don't get the loops for( and while
|
|
|
Post by bcherry on Feb 6, 2005 13:38:10 GMT -5
well, I'll explain them. While( is the basic loop. It does whatever commands follow it until the word "End", as long as the condition is true. Therefore:
:0->A :While A<5 :A+1->A :End works just like:
:0->A :Lbl 1 :If A<5 :Then :A+1->A :End :If A<5 :Goto 1
For( is a special While( loop. For increments a variable every time around, until it reaches a certain value. For would be better for what we did above:
:For(A,0,5 :End
does the same thing. That's those two in a nutshell, though obviously there is a lot more.
|
|
|
Post by Simon on Feb 6, 2005 17:39:32 GMT -5
got it almost all except for the for(, its harder to understand but i think it's when it's writed
disp"hello" FOR(A,1,1000) disp" how are you"
the for works like a pause but you can't press the enter, you need to wait untill A gets to 1000 by adding 1 each time ?
|
|
|
Post by Vladik on Feb 6, 2005 17:52:01 GMT -5
You do mean
disp "hello" FOR(A,1,1000) END disp "how are you"
, don't you?
If you want to let the user press a key OR wait for the loop to finish, try this:
Disp "Hello!" Disp "Press a key or wait for me to go!" For(A,1,1000) GetKey->K If K>0 Goto KEY EndFor Lbl KEY Disp "Got to go now..."
|
|
|
Post by Vladik on Feb 6, 2005 17:55:57 GMT -5
While implemntation
Disp "Hello!" Disp "Press a key or wait for me to go!" 1->A While A<1001 (or <=1000, either way...) and GetKey=0 K+1->K EndWhile Disp "Got to go now..."
Both should work fine...
|
|
|
Post by bfr on Feb 6, 2005 18:27:53 GMT -5
Maybe he meant:
Disp "hello" For(A,1,1000) Disp "how are you" End
That will quickly display "hello" and then display "how are you" about a thousand times.
BUt what I think would be better would be:
Disp "Hello, how are you" For(A,1,20) End
That will display "Hello, how are you" for a while.
Or you could split it into: Disp "Hello"."How are you".
|
|
|
Post by Vladik on Feb 6, 2005 19:46:17 GMT -5
No; if he was talking about making a pause, he most definitely meant
For(A,1,1000) End
Anyone watch(ing) the Superbowl? (It's still going...)
|
|
|
Post by Simon on Feb 6, 2005 20:04:10 GMT -5
you got it
|
|
|
Post by bfr on Mar 9, 2005 19:42:57 GMT -5
Are you a professional BASIC progrmmer now? It is good to be at the point where you just think of a good program, and can easily make it without any bugs. I'd like to see one of your games if you made any and if not, just any program. Maybe I can show the programming for one of my games. I could type it all out ...
|
|
|
Post by bcherry on Mar 9, 2005 22:41:37 GMT -5
to be a "professional" BASIC programmer, you would have to be selling your programs and making money. Otherwise you would just be advanced, or perhaps "proficient." On this topic, today during class I was bored so I made an uncle worm esque game in BASIC on my 83. It actually runs fairly quickly, I was surprised.
|
|
|
Post by bfr on Mar 10, 2005 16:33:59 GMT -5
Maybe Simon is making money$$$.
|
|