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

  1. 0000BDB0                    OPT pass%
  2.  
  3. 0000BDB0          
  4.  
  5. 0000BDB0                    ; r1 stores the address of number 1
  6.  
  7. 0000BDB0                    ; r2 stores the address of number 2
  8.  
  9. 0000BDB0                    ; r3 stores the address of number 3
  10.  
  11. 0000BDB0                    ; r4 stores the address of text 1
  12.  
  13. 0000BDB0                    ; r5 stores the address of text 2
  14.  
  15. 0000BDB0          
  16.  
  17. 0000BDB0                    ; *****************************************
  18.  
  19. 0000BDB0                    ; place your code here do not change the lines above
  20.  
  21. 0000BDB0                    
  22.  
  23. 0000BDB0                    ; NAME       clock
  24.  
  25. 0000BDB0                    ; PURPOSE    displays the real time clock
  26.  
  27. 0000BDB0                    ; DESIGN
  28.  
  29. 0000BDB0                    ;            set up registers
  30.  
  31. 0000BDB0                    ;            call operating system command
  32.  
  33. 0000BDB0                    ;
  34.  
  35. 0000BDB0                    ;
  36.  
  37. 0000BDB0                    ; COMMENTS   uses OS_Word, an operating system call
  38.  
  39. 0000BDB0                    ;            this takes the following parameters
  40.  
  41. 0000BDB0                    ;            r0 = 14     this is the reason code since OS_Word
  42.  
  43. 0000BDB0                    ;                        performs several tasks
  44.  
  45. 0000BDB0                    ;            r1          points to an area of memory into which
  46.  
  47. 0000BDB0                    ;                        the time will be placed
  48.  
  49. 0000BDB0                    ;            [r1] = 0    this is the second parameter, zero means
  50.  
  51. 0000BDB0                    ;                        read the clock
  52.  
  53. 0000BDB0          
  54.  
  55. 0000BDB0 E3A0000E           mov  r0, #14
  56.  
  57. 0000BDB4 E1A01004           mov  r1, r4
  58.  
  59. 0000BDB8 E3A06000           mov  r6, #0
  60.  
  61. 0000BDBC E5816000           str  r6, [r1]
  62.  
  63. 0000BDC0 EF000007           swi  "OS_Word"
  64.  
  65. 0000BDC4          
  66.  
  67. 0000BDC4          
  68.  
  69. 0000BDC4 E1A0F00E           MOV R15, R14
  70.  
  71. ÿ0000BDB0                    OPT pass%
  72.  
  73. 0000BDB0          
  74.  
  75. 0000BDB0                    ; r1 stores the address of number 1
  76.  
  77. 0000BDB0                    ; r2 stores the address of number 2
  78.  
  79. 0000BDB0                    ; r3 stores the address of number 3
  80.  
  81. 0000BDB0                    ; r4 stores the address of text 1
  82.  
  83. 0000BDB0                    ; r5 stores the address of text 2
  84.  
  85. 0000BDB0          
  86.  
  87. 0000BDB0                    ; *****************************************
  88.  
  89. 0000BDB0                    ; place your code here do not change the lines above
  90.  
  91. 0000BDB0                    
  92.  
  93. 0000BDB0                    ; NAME       clock
  94.  
  95. 0000BDB0                    ; PURPOSE    displays the real time clock
  96.  
  97. 0000BDB0                    ; DESIGN
  98.  
  99. 0000BDB0                    ;            set up registers
  100.  
  101. 0000BDB0                    ;            call operating system command
  102.  
  103. 0000BDB0                    ;
  104.  
  105. 0000BDB0                    ;
  106.  
  107. 0000BDB0                    ; COMMENTS   uses OS_Word, an operating system call
  108.  
  109. 0000BDB0                    ;            this takes the following parameters
  110.  
  111. 0000BDB0                    ;            r0 = 14     this is the reason code since OS_Word
  112.  
  113. 0000BDB0                    ;                        performs several tasks
  114.  
  115. 0000BDB0                    ;            r1          points to an area of memory into which
  116.  
  117. 0000BDB0                    ;                        the time will be placed
  118.  
  119. 0000BDB0                    ;            [r1] = 0    this is the second parameter, zero means
  120.  
  121. 0000BDB0                    ;                        read the clock
  122.  
  123. 0000BDB0          
  124.  
  125. 0000BDB0 E3A0000E           mov  r0, #14
  126.  
  127. 0000BDB4 E1A01004           mov  r1, r4
  128.  
  129. 0000BDB8 E3A06000           mov  r6, #0
  130.  
  131. 0000BDBC E5816000           str  r6, [r1]
  132.  
  133. 0000BDC0 EF000007           swi  "OS_Word"
  134.  
  135. 0000BDC4          
  136.  
  137. 0000BDC4          
  138.  
  139. 0000BDC4 E1A0F00E           MOV R15, R14
  140.  
  141. ÿ