vc4_as.6 993 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. .\" $Header$
  2. .TH VC4_AS 1
  3. .ad
  4. .SH NAME
  5. vc4_as \- assembler for Broadcom VideoCore IV
  6. .SH SYNOPSIS
  7. /usr/em/lib/vc4_as [options] argument ...
  8. .SH DESCRIPTION
  9. This assembler is made with the general framework
  10. described in \fIuni_ass\fP(6).
  11. .SH SYNTAX
  12. The assembler uses a modified version of the syntax described in
  13. https://github.com/hermanhermitage/videocoreiv/wiki/VideoCore-IV-Programmers-Manual:
  14. condition codes must be prefixed with a full stop. Vector instructions are not
  15. yet supported.
  16. .SH "SEE ALSO"
  17. uni_ass(6),
  18. ack(1),
  19. .br
  20. https://github.com/hermanhermitage/videocoreiv
  21. .SH EXAMPLE
  22. .nf
  23. .ta 8n 16n 24n 32n 40n 48n
  24. An example of VideoCore IV assembly language:
  25. ldb r0, __uart_status
  26. b.eq r0, #0, 1b
  27. ! receive 1 byte (returned in r0)
  28. mov r1, #AUX_MU_LSR_REG
  29. mov r2, #AUX_MU_IO_REG
  30. ! loop until char available
  31. recvwait:
  32. ld r3, (r1)
  33. and r3, #0x1
  34. b.ne r3, #0x1, recvwait
  35. ldb r0, (r2)
  36. 1:
  37. b lr
  38. .fi