Sad Kerm said this topic was close to being locked, So I am going to attempt to revive the ASM. Any ways I have made a video of this in action, as well as updated the source so that you can press clear to quit.


Code:
#include "ti83plus.inc"
.org $9D95
.db $BB,$6D

    LD B, 99
Loop:
    LD H, 0
    LD L, B
    PUSH BC
    bcall _DispHL
    LD HL, Text1
    bcall _PutS
    bcall _NewLine
    PUSH BC
    bcall 4018h   ;_GetCSC
    CP skClear
    JR Z, ComaTime
    POP BC
    POP BC
    LD H, 0
    LD L, B
    PUSH BC
    bcall _DispHL
    LD HL, Text2
    bcall _PutS
    bcall _NewLine
    LD HL, Text3
    bcall _PutS
    bcall _NewLine
    PUSH BC
    bcall 4018h   ;_GetCSC
    CP skClear
    JR Z, ComaTime
    POP BC
    POP BC
    DEC B
    LD A, B
    CP 0
    JR Z, End
    LD H, 0
    LD L, B
    PUSH BC
    bcall _DispHL
    LD HL, Text1
    bcall _PutS
    bcall _NewLine
    bcall 4018h   ;_GetCSC
    CP skClear
    JR Z, ComaTime
    POP BC
    JR Loop
End:
    LD HL, Text4
    bcall _PutS
    bcall _NewLine
    LD HL, Text5
    bcall _PutS
    bcall _NewLine
    LD HL, Text6
    bcall _PutS
    bcall _NewLine
    ret
ComaTime:
    bcall _ClrLCDFull
    ret
Text1:
    .DB "BOTTLES OF BEER ON THE WALL", 0
Text2:
    .DB "BOTTLES OF BEER",0
Text3:
    .DB "TAKE ONE DOWN PASS IT AROUND", 0
Text4:
    .DB "NO BOTTLES OF BEER ON THE WALL", 0
Text5:
    .DB "GO TO THE STORE, GET SOME MORE", 0
Text6:
    .DB "99 BOTTLES OF BEER ON THE WALL", 0




79 bottles of beer on the wall, 79 bottles of beer!
Take one down, pass it around, 78 bottles of beer on the wall!
Very nicely done, player; I'm glad to see that you're starting to get a more intuitive grasp of z80. Smile
thanks, what should I try next (maybe besides DCS at the moment)
_player1537 wrote:
thanks, what should I try next (maybe besides DCS at the moment)
It might not be a bad idea to look into the concept of direct input and see if you can get the hang of it.
KermMartian wrote:
_player1537 wrote:
thanks, what should I try next (maybe besides DCS at the moment)
It might not be a bad idea to look into the concept of direct input and see if you can get the hang of it.
Perhaps, if this is Direct Input, have the user submit a number and the application will count down the bottles of beer on the wall from there.
What happened to the singing? Sad
it got deleted Sad
no, just split Razz
elfprince13 wrote:
no, just split Razz


But why? It was completely relevant to the topic at hand.
Ultimate Dev'r wrote:
elfprince13 wrote:
no, just split Razz


But why? It was completely relevant to the topic at hand.


It had no relevance to Z80 asm, and was thusly split and moved. :p
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement