Guest User

Untitled

a guest
Jul 18th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. # Laboratory Exercise 1, Home Assignment 5-7
  2. # Written by Johan Wennlund, 24 December 2000
  3. # Edited by F Lundevall, 13 February 2004
  4. # Edited by J Wennlund, 25 August 2005
  5. # Edited by F Lundevall, 29 October 2007
  6. # Edited by F Lundevall, 20 July 2009
  7. # Copyright abandoned. This file is in the public domain.
  8.  
  9.  
  10. .data # Reserve space for time-variable
  11. .align 2 # Fix possible alignment errors
  12. mytime: .word 0x5957 # give time initial value "59:57"
  13.  
  14. .text # Instructions follow
  15. .align 2 # Fix possible alignment errors
  16. .global main # Makes "main" globally known
  17.  
  18. label: call lcdinit
  19. main: movia r4,mytime # parameter for call to puttime
  20. call puttime # present current time
  21.  
  22. movia r4,mytime # parameter for call to tick
  23. call tick # update current time
  24.  
  25. movi r4,1000 # parameter 1000 to delay
  26. call delay # wait milliseconds, (how many?)
  27.  
  28. br main # Branch to main
  29. .end # Marks the end of the program
Add Comment
Please, Sign In to add comment