Guest User

Untitled

a guest
Aug 22nd, 2014
6
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;--------------------------------------------------------
  2. ; File Created by SDCC : free open source ANSI-C Compiler
  3. ; Version 3.3.0 #8604 (May 11 2013) (MINGW32)
  4. ; This file was generated Fri Aug 22 15:47:34 2014
  5. ;--------------------------------------------------------
  6.     .module test
  7.     .optsdcc -mz80
  8.    
  9. ;--------------------------------------------------------
  10. ; Public variables in this module
  11. ;--------------------------------------------------------
  12.     .globl _testInt
  13.     .globl _testFunc
  14.     .globl _main
  15. ;--------------------------------------------------------
  16. ; special function registers
  17. ;--------------------------------------------------------
  18. ;--------------------------------------------------------
  19. ; ram data
  20. ;--------------------------------------------------------
  21.     .area _DATA
  22. ;--------------------------------------------------------
  23. ; ram data
  24. ;--------------------------------------------------------
  25.     .area _INITIALIZED
  26. _testInt::
  27.     .ds 4
  28. ;--------------------------------------------------------
  29. ; absolute external ram data
  30. ;--------------------------------------------------------
  31.     .area _DABS (ABS)
  32. ;--------------------------------------------------------
  33. ; global & static initialisations
  34. ;--------------------------------------------------------
  35.     .area _HOME
  36.     .area _GSINIT
  37.     .area _GSFINAL
  38.     .area _GSINIT
  39. ;--------------------------------------------------------
  40. ; Home
  41. ;--------------------------------------------------------
  42.     .area _HOME
  43.     .area _HOME
  44. ;--------------------------------------------------------
  45. ; code
  46. ;--------------------------------------------------------
  47.     .area _CODE
  48. ;test.c:9: unsigned int testFunc() __naked {
  49. ;   ---------------------------------
  50. ; Function testFunc
  51. ; ---------------------------------
  52. _testFunc_start::
  53. _testFunc:
  54. ;test.c:13: __endasm;
  55.     LD DE, 0
  56.     RET
  57. _testFunc_end::
  58. ;test.c:16: void main() {
  59. ;   ---------------------------------
  60. ; Function main
  61. ; ---------------------------------
  62. _main_start::
  63. _main:
  64.     push    ix
  65. ;test.c:17: while (1) {
  66. 00102$:
  67. ;test.c:18: testFunc();
  68.     call    _testFunc
  69.     jr  00102$
  70.     pop ix
  71.     ret
  72. _main_end::
  73.     .area _CODE
  74.     .area _INITIALIZER
  75. __xinit__testInt:
  76.     .byte #0xEF,#0xBE,#0xAD,#0xDE   ; 3735928559
  77.     .area _CABS (ABS)
Advertisement
Add Comment
Please, Sign In to add comment