You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

serial.src 636B

12345678910111213141516171819202122232425
  1. .SECTION P,CODE,ALIGN=4
  2. .MACRO SYSCALL FUNO, SYSCALLNAME, TAIL=nop
  3. .export \SYSCALLNAME'
  4. \SYSCALLNAME'
  5. mov.l #h'\FUNO, r0
  6. mov.l #H'80010070, r2
  7. jmp @r2
  8. \TAIL'
  9. .ENDM
  10. SYSCALL 040C, _Serial_ReadByte
  11. SYSCALL 040D, _Serial_ReadBytes
  12. SYSCALL 040E, _Serial_WriteByte
  13. SYSCALL 040F, _Serial_WriteBytes
  14. SYSCALL 0410, _Serial_WriteByteFIFO
  15. SYSCALL 0411, _Serial_GetRxBufferSize
  16. SYSCALL 0412, _Serial_GetTxBufferFreeCapacity
  17. SYSCALL 0413, _Serial_ClearReceiveBuffer
  18. SYSCALL 0414, _Serial_ClearTransmitBuffer
  19. SYSCALL 0418, _Serial_Open
  20. SYSCALL 0419, _Serial_Close
  21. SYSCALL 0422, _Serial_Peek
  22. SYSCALL 0425, _Serial_IsOpen
  23. .end