Advertisement
Guest User

print lots of dots

a guest
Sep 18th, 2014
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. /*
  2. arm-linux-gnueabihf-gcc -fPIC -nostartfiles -nodefaultlibs -nostdlib dotty.S -o dotty
  3. arm-linux-gnueabihf-objcopy -j.text -O binary dotty dotty.bin
  4. arm-linux-gnueabihf-objdump -D -m arm -b binary dotty.bin
  5. */
  6. .text
  7.  
  8. .global _start
  9.  
  10. _start:
  11. ldr r1,=0x20064000
  12.  
  13. putc:
  14. mov r0, #'.'
  15. str r0, [r1]
  16.  
  17. putc_wait:
  18. ldr r0, [r1, #20]
  19. ands r0, #(1 << 6) @ transmitter empty
  20. beq putc_wait
  21.  
  22. b putc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement