home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / Ti / Magazine / Tests / DOORSOSD.ZIP / hello.asm < prev    next >
Encoding:
Assembly Source File  |  1999-12-22  |  542 b   |  25 lines

  1.     include "doorsos.h"
  2.     include "graphlib.h"
  3.     include "userlib.h"
  4.     xdef    _ti89
  5.     xdef    _ti92plus
  6.     xdef    _main
  7.  
  8. _main:
  9.  
  10.     jsr    graphlib::clr_scr2    ;clears the screen
  11.  
  12.     move.w    #4,-(a7)    ;color #4 : black on whithe
  13.     pea    hello(pc)    ;adress of the string
  14.     move.w    #0,-(a7)    ;y coord
  15.     move.w    #0,-(a7)    ;x coord
  16.     jsr    doorsos::DrawStr    ;calls the ROM function which draws a string in current font
  17.     lea    10(a7),a7    ;restores the stack
  18.  
  19.     jsr    userlib::idle_loop    ; waits for a key press
  20.  
  21.     rts        ;exits the program
  22.  
  23. hello    dc.b    "Hello, World",0
  24.     end
  25.