F2837xD_DBGIER.asm 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ;//###########################################################################
  2. ;//
  3. ;// FILE: F2837xD_DBGIER.asm
  4. ;//
  5. ;// TITLE: Set the DBGIER register
  6. ;//
  7. ;// DESCRIPTION:
  8. ;//
  9. ;// Function to set the DBGIER register (for realtime emulation).
  10. ;// Function Prototype: void SetDBGIER(Uint16)
  11. ;// Usage: SetDBGIER(value);
  12. ;// Input Parameters: Uint16 value = value to put in DBGIER register.
  13. ;// Return Value: none
  14. ;//
  15. ;//###########################################################################
  16. ;// $TI Release: F2837xD Support Library v3.05.00.00 $
  17. ;// $Release Date: Tue Jun 26 03:15:23 CDT 2018 $
  18. ;// $Copyright:
  19. ;// Copyright (C) 2013-2018 Texas Instruments Incorporated - http://www.ti.com/
  20. ;//
  21. ;// Redistribution and use in source and binary forms, with or without
  22. ;// modification, are permitted provided that the following conditions
  23. ;// are met:
  24. ;//
  25. ;// Redistributions of source code must retain the above copyright
  26. ;// notice, this list of conditions and the following disclaimer.
  27. ;//
  28. ;// Redistributions in binary form must reproduce the above copyright
  29. ;// notice, this list of conditions and the following disclaimer in the
  30. ;// documentation and/or other materials provided with the
  31. ;// distribution.
  32. ;//
  33. ;// Neither the name of Texas Instruments Incorporated nor the names of
  34. ;// its contributors may be used to endorse or promote products derived
  35. ;// from this software without specific prior written permission.
  36. ;//
  37. ;// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  38. ;// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  39. ;// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  40. ;// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  41. ;// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  42. ;// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  43. ;// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  44. ;// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  45. ;// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  46. ;// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  47. ;// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  48. ;// $
  49. ;//###########################################################################
  50. .global _SetDBGIER
  51. .text
  52. _SetDBGIER:
  53. MOV *SP++,AL
  54. POP DBGIER
  55. LRETR
  56. ;//
  57. ;// End of file
  58. ;//