Advertisement
CVSoft

characters 3

Apr 27th, 2015
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "TI82.H"
  2. #include "KEYS.INC"
  3.  
  4. .ORG START_ADDR
  5. .DB "BENCHMARK",0
  6.  
  7.  
  8.   LD B,2                ; two loops
  9.   LD C,$00              ; initialize counter
  10. MainLoop:
  11.   LD A,C                ; load character counter
  12.   LD E,B                ; put mainloop counter in E
  13.   LD B,127              ; load character counter
  14.   ROM_CALL(CLEAR_DISP)  ;
  15. Blah:
  16.   ROM_CALL(TX_CHARPUT)
  17.   INC A                 ;
  18.   DJNZ Blah
  19.   LD B,E                ; reload mainloop counter
  20.   LD C,A                ; update character counter
  21.   ROM_CALL(KEY_HAND)
  22.   DJNZ MainLoop
  23.   RET
  24.  
  25. .END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement