Author Topic: Hot Dog's TI-83+ Z80 ASM for the Absolute Beginner--Discussion  (Read 125787 times)

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Hot Dog's TI-83+ Z80 ASM for the Absolute Beginner--Discussion
« Reply #225 on: September 24, 2010, 11:43:10 am »
Appendix D is up.  I will now be editing the lessons I have written so far, to fix mistakes and remove unnecessary lessons.  Then I need to write Appendix B and Appendix E.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Hot Dog's TI-83+ Z80 ASM for the Absolute Beginner--Discussion
« Reply #226 on: September 24, 2010, 12:05:19 pm »
Hot_Dog, could you hit me up with a single zip file with everything? Thanks.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Hot Dog's TI-83+ Z80 ASM for the Absolute Beginner--Discussion
« Reply #227 on: September 24, 2010, 12:11:07 pm »
Hot_Dog, could you hit me up with a single zip file with everything? Thanks.

Well, I'm planning on doing that when everything is ready...can you wait until then?

Offline oln9488

  • LV0 Newcomer (Next: 5)
  • Posts: 3
  • Rating: +0/-0
    • View Profile
Re: Hot Dog's TI-83+ Z80 ASM for the Absolute Beginner--Discussion
« Reply #228 on: September 27, 2010, 11:36:38 am »
did you ever finish Lesson_18 by anychance?  I'm still trying to get a good handle on these sprites, and could use all the instruction you can give in your lessons! 

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Hot Dog's TI-83+ Z80 ASM for the Absolute Beginner--Discussion
« Reply #229 on: September 30, 2010, 02:04:50 am »
Thanks for that question, oln9488.  I don't think there will be a lesson 18, for 4 reasons:

1. I'm wrapping up the ASM lessons--in fact, lesson 17 is being removed.  My time as teacher is coming to a close, and that's actually good news.
2. I needed for help for ASM lesson 18, as part of it is sprite clipping.  No one was able to offer any help
3. Appendix B will explain the basics of sprites and provide a routine for all kinds of sprites and sprite clipping
4. If you really, really want to get technical with sprites rather than using a pre-designed routine, you can read ASM 28 days, lesson 25.

I apologize for any disappointment, and welcome to the forum!
« Last Edit: September 30, 2010, 02:06:59 am by Hot_Dog »

Offline oln9488

  • LV0 Newcomer (Next: 5)
  • Posts: 3
  • Rating: +0/-0
    • View Profile
Re: Hot Dog's TI-83+ Z80 ASM for the Absolute Beginner--Discussion
« Reply #230 on: October 02, 2010, 05:59:55 pm »
thanks man.  I've got an easier question.  I got past the sprite clipping issue i was running into, but how do you use delay in asm?  I know in basic you can do for(A,1,1000):end and I could then do
while 1
getkey->Z
if z==24
then
for(A,1,1000):end
output(R,C," "
c-1->c
output(R,C,"O"
end
end

i want to be able to hit the right arrow, and my character/sprite continuously go right.  any thoughts?

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Hot Dog's TI-83+ Z80 ASM for the Absolute Beginner--Discussion
« Reply #231 on: October 02, 2010, 06:33:26 pm »
Well I don't know much about assembly but you can use interrupts probably, but I'm sure there's a better way. As for your TI-BASIC example, that won't really work. You don't have R and C initialized, plus you have no wrap around/end stopping code. Also, For(A,1,1000):End is way overkill for that. (Also, the key code for the right button isn't twenty-four, it's twenty-six. So unless you meant left you'd have to change that plus the line C-1→C would be C+1→C.) Better way of showing would be:

Code: [Select]
DelVar D4→R
8→C
Repeat 0
getKey→K
If Ans=26
1→D
Output(R,C,"_
C+D
Ans-16((Ans=17)-not(Ans→C
Output(R,Ans,"O
rand(2 \\rand or rand(# is a better way to do delay/pauses/slowdowns/etc. in TI-BASIC.
End
« Last Edit: October 02, 2010, 06:34:39 pm by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Hot Dog's TI-83+ Z80 ASM for the Absolute Beginner--Discussion
« Reply #232 on: October 02, 2010, 07:12:28 pm »
thanks man.  I've got an easier question.  I got past the sprite clipping issue i was running into, but how do you use delay in asm?  I know in basic you can do for(A,1,1000):end and I could then do
while 1
getkey->Z
if z==24
then
for(A,1,1000):end
output(R,C," "
c-1->c
output(R,C,"O"
end
end

i want to be able to hit the right arrow, and my character/sprite continuously go right.  any thoughts?

There are many, many ways to use delays in ASM. For example:

ld bc, 1000

Delay_Timer:

dec bc
ld a, b    ;These next two instructions test to see if bc is equal to zero.
or c
jr nz, Delay_Timer

Offline oln9488

  • LV0 Newcomer (Next: 5)
  • Posts: 3
  • Rating: +0/-0
    • View Profile
Re: Hot Dog's TI-83+ Z80 ASM for the Absolute Beginner--Discussion
« Reply #233 on: October 02, 2010, 10:38:55 pm »
thanks guys!  Sorry about the lack of completion on the previous example.  I had just threw an example in there without the rows or columns set yet to show what I was getting at.  I think oddly enough I understand asm better than basic at this point from learning hotdog's tutorials with little knowledge of basic.

thanks again!

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Hot Dog's TI-83+ Z80 ASM for the Absolute Beginner--Discussion
« Reply #234 on: October 03, 2010, 02:52:20 am »
thanks guys!  Sorry about the lack of completion on the previous example.  I had just threw an example in there without the rows or columns set yet to show what I was getting at.  I think oddly enough I understand asm better than basic at this point from learning hotdog's tutorials with little knowledge of basic.

thanks again!

Sure thing!

Once you understand the concepts, ASM is probably the easiest language to remember, because you don't have to know so many instructions.  True, it's the hardest to implement, but there's not a lot to remember.

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Hot Dog's TI-83+ Z80 ASM for the Absolute Beginner--Discussion
« Reply #235 on: October 07, 2010, 05:06:09 am »
Sometime today (the 7th of October in my area), I'll provide the final DRAFT for the ASM lessons.  It will be available in the news and in the downloads section.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Hot Dog's TI-83+ Z80 ASM for the Absolute Beginner--Discussion
« Reply #236 on: October 07, 2010, 09:35:14 am »
Cool! By draft, do you mean that there will be another version released later?

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Hot Dog's TI-83+ Z80 ASM for the Absolute Beginner--Discussion
« Reply #237 on: October 07, 2010, 01:17:03 pm »
Cool! By draft, do you mean that there will be another version released later?

Yes.  Once every single last detail is worked out, I'll release full version.  Basically, the draft contains evey file, except for the special Mac program lesson 4 will talk about

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Hot Dog's TI-83+ Z80 ASM for the Absolute Beginner--Discussion
« Reply #238 on: October 07, 2010, 05:46:11 pm »
Cool! :D

I saw it in the archives now :D

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Hot Dog's TI-83+ Z80 ASM for the Absolute Beginner--Discussion
« Reply #239 on: October 08, 2010, 03:58:43 am »
Double-post: I didn't check all but in the last lesson, the Omnimaga banner used is very outdated :P. It might be best to use the default one since it's what will show up if someone decides to visit the site. :P