tbilogf.S 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * tbilogf.S
  3. *
  4. * Copyright (C) 2001, 2002, 2007, 2012 Imagination Technologies.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it under
  7. * the terms of the GNU General Public License version 2 as published by the
  8. * Free Software Foundation.
  9. *
  10. * Defines __TBILogF trap code for debugging messages and __TBICont for debug
  11. * assert to be implemented on.
  12. */
  13. .file "tbilogf.S"
  14. /*
  15. * Perform console printf using external debugger or host support
  16. */
  17. .text
  18. .balign 4
  19. .global ___TBILogF
  20. .type ___TBILogF,function
  21. ___TBILogF:
  22. MSETL [A0StP],D0Ar6,D0Ar4,D0Ar2
  23. SWITCH #0xC10020
  24. MOV D0Re0,#0
  25. SUB A0StP,A0StP,#24
  26. MOV PC,D1RtP
  27. .size ___TBILogF,.-___TBILogF
  28. /*
  29. * Perform wait for continue under control of the debugger
  30. */
  31. .text
  32. .balign 4
  33. .global ___TBICont
  34. .type ___TBICont,function
  35. ___TBICont:
  36. MOV D0Ar6,#1
  37. MSETL [A0StP],D0Ar6,D0Ar4,D0Ar2
  38. SWITCH #0xC30006 /* Returns if we are to continue */
  39. SUB A0StP,A0StP,#(8*3)
  40. MOV PC,D1RtP /* Return */
  41. .size ___TBICont,.-___TBICont
  42. /*
  43. * End of tbilogf.S
  44. */