Author Topic: ASM practice (Help)  (Read 7643 times)

0 Members and 1 Guest are viewing this topic.

Offline adamac16

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 141
  • Rating: +2/-0
    • View Profile
ASM practice (Help)
« on: November 11, 2010, 05:43:49 am »
Im not sure this goes here, correct me if i chose the wrong place.

But I have finished Hot_Dog's tutorials and i think i am ready for Learn TI-83+ ASM in 28 days. But before i do that, i want to make a simple practice program. The thing is, I don't know where to start. Or how to begin.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: ASM practice (Help)
« Reply #1 on: November 11, 2010, 04:58:43 pm »
Try making a program to manipulate and display text in different ways. They're simple, and you can do a lot of stuff :)




Offline adamac16

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 141
  • Rating: +2/-0
    • View Profile
Re: ASM practice (Help)
« Reply #2 on: November 11, 2010, 05:00:19 pm »
ive already got something in mind, but i dont know how to start it oncalc

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: ASM practice (Help)
« Reply #3 on: November 11, 2010, 05:00:47 pm »
ive already got something in mind, but i dont know how to start it oncalc


It might help us if you told us what you had in mind :)

Offline adamac16

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 141
  • Rating: +2/-0
    • View Profile
Re: ASM practice (Help)
« Reply #4 on: November 11, 2010, 05:06:40 pm »
its going to ask the user to press a number key, 1 through 9, then displays the number that they chose

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: ASM practice (Help)
« Reply #5 on: November 11, 2010, 05:08:58 pm »
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?
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: ASM practice (Help)
« Reply #6 on: November 11, 2010, 05:12:27 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
« Last Edit: November 11, 2010, 05:12:56 pm by Hot_Dog »

Offline adamac16

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 141
  • Rating: +2/-0
    • View Profile
Re: ASM practice (Help)
« Reply #7 on: November 11, 2010, 05:18:15 pm »
well Kerm said it was for beginners. idk

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: ASM practice (Help)
« Reply #8 on: November 11, 2010, 05:18:24 pm »
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?

Remember this is after Hot_Dog's lessons, so that might be a bit advanced...

EDIT: Edit ninja'd by Hot_Dog and ninja'd by adamac16. I really shouldn't leave while posting :P
« Last Edit: November 11, 2010, 05:19:01 pm by Deep Thought »




Offline adamac16

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 141
  • Rating: +2/-0
    • View Profile
Re: ASM practice (Help)
« Reply #9 on: November 11, 2010, 05:23:29 pm »
he probably thought that the lessons i read covered that or something. What do yall suggest i do?

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: ASM practice (Help)
« Reply #10 on: November 11, 2010, 05:23:36 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

Oh, okay. I haven't looked through your tutorials as fully as I'd like, so I'm not sure what they contain. I know lookup tables come pretty early (day 11 or 12) in 28 days.

By the way, how would you do it if you actually had to write such a routine Hot_Dog?
« Last Edit: November 11, 2010, 05:24:54 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: ASM practice (Help)
« Reply #11 on: November 11, 2010, 05:24:36 pm »
he probably thought that the lessons i read covered that or something. What do yall suggest i do?

Hot_Dog's suggestion. They're his tutorials, after all, so he'd know where your at after reading them :)




Offline adamac16

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 141
  • Rating: +2/-0
    • View Profile
Re: ASM practice (Help)
« Reply #12 on: November 11, 2010, 05:25:54 pm »
woah woah wait what?
im mixed up here.
i was talking about kerm, not Hot_Dog
« Last Edit: November 11, 2010, 05:26:30 pm by adamac16 »

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: ASM practice (Help)
« Reply #13 on: November 11, 2010, 05:34:20 pm »
Quote
By the way, how would you do it if you actually had to write such a routine Hot_Dog?

If I were an absolute, absolute beginner, I would have 10 CPs, one for each key from 0-9.  However, in this case, you can use GetKey, subtract 142 from register A (since the number keys are values from 142 to 151), and then put A into HL so that B_CALL _DispHL can be used.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: ASM practice (Help)
« Reply #14 on: November 11, 2010, 05:39:24 pm »
woah woah wait what?
im mixed up here.
i was talking about kerm, not Hot_Dog

I know, I just suggested you try Hot_Dog's suggestion.