home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / program / a / assembler / !Assemble / overlay2 < prev    next >
Encoding:
Text File  |  1991-06-20  |  1.0 KB  |  40 lines

  1. DEF PROCcode 
  2.  
  3. [ OPT pass% 
  4.  
  5. ; r1 stores the address of number 1
  6. ; r2 stores the address of number 2
  7. ; r3 stores the address of number 3
  8. ; r4 stores the address of text 1
  9. ; r5 stores the address of text 2
  10.  
  11. ; *****************************************
  12. ; place your code here do not change the lines above
  13.                                            
  14. ; NAME       clock
  15. ; PURPOSE    displays the real time clock
  16. ; DESIGN    
  17. ;            set up registers
  18. ;            call operating system command
  19. ;            
  20. ;            
  21. ; COMMENTS   uses OS_Word, an operating system call
  22. ;            this takes the following parameters 
  23. ;            r0 = 14     this is the reason code since OS_Word 
  24. ;                        performs several tasks
  25. ;            r1          points to an area of memory into which
  26. ;                        the time will be placed
  27. ;            [r1] = 0    this is the second parameter, zero means
  28. ;                        read the clock
  29.  
  30. mov  r0, #14
  31. mov  r1, r4
  32. mov  r6, #0
  33. str  r6, [r1]
  34. swi  "OS_Word"
  35.  
  36.  
  37. MOV R15, R14
  38. ]
  39. ENDPROC
  40.