Advertisement
bf17

NoRAL Hello World listing and output

Sep 5th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. # just store all the ascii values in screen memory
  2. sto 0100 48
  3. sto 0101 65
  4. sto 0102 6c
  5. sto 0103 6c
  6. sto 0104 6f
  7. sto 0105 2c
  8. sto 0106 20
  9. sto 0107 57
  10. sto 0108 6f
  11. sto 0109 72
  12. sto 010a 6c
  13. sto 010b 64
  14. sto 010c 21
  15. # brk is not really necessary unless the next memory location is not zero
  16. brk
  17.  
  18.  
  19. Output:
  20.  
  21. Program Counter: 0234
  22. Zero Flag: 00
  23. Carry Flag: 00
  24. Stack Pointer: 00
  25.  
  26. +---------Screen Display---------+
  27. |Hello, World! |
  28. | |
  29. | |
  30. | |
  31. | |
  32. | |
  33. | |
  34. | |
  35. +--------------------------------+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement