Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. /*
  2. * Generated Tue Mar 03 00:45:21 PST 2015
  3. */
  4.  
  5. .section ".rodata"
  6. .align 4
  7. .$$.intFmt:
  8. .asciz %d
  9. .$$.strFmt:
  10. .asciz %s
  11. .$$.strTF:
  12. .asciz false\0\0\0true
  13. .$$.strEndl:
  14. .asciz \n
  15. .$$.strArrBound:
  16. .asciz Index value of %d is outside legal range [0,%d).\n
  17. .$$.strNullPtr:
  18. .asciz Attempt to dereference NULL pointer.\n
  19.  
  20. .section ".text"
  21. .align 4
  22. .$$.printBool:
  23. save %sp, -96, %sp
  24. set .$$.strTF, %o0
  25. cmp %g0, %i0
  26. be .$$.printBool2
  27. nop
  28. add %o0, 8, %o0
  29. .$$.printBool2:
  30. call printf
  31. nop
  32. ret
  33. restore
  34.  
  35. .$$.arrCheck:
  36. save %sp, -96, %sp
  37. cmp %i0, %g0
  38. bl .$$.arrCheck2
  39. nop
  40. cmp %i0, %i1
  41. bge .$$.arrCheck2
  42. nop
  43. ret
  44. restore
  45. .$$.arrCheck2:
  46. set .$$.strArrBound, %o0
  47. mov %i0, %o1
  48. call exit
  49. mov 1, %o0
  50. ret
  51. restore
  52.  
  53. .$$.ptrCheck:
  54. save %sp, -96, %sp
  55. cmp %i0, %g0
  56. bne .$$.ptrCheck2
  57. nop
  58. set .$$.strNullPtr, %o0
  59. call printf
  60. nop
  61. call exit
  62. mov 1, %o0
  63. .$$.ptrCheck2:
  64. ret
  65. restore
  66. .section ".bss"
  67. .align 4
  68. .global x
  69. x:
  70. .skip 4
  71.  
  72. .section ".text"
  73. .align 4
  74.  
  75. .section ".bss"
  76. .align 4
  77. .global y
  78. y:
  79. .skip 4
  80.  
  81. .section ".text"
  82. .align 4
  83.  
  84. .section ".bss"
  85. .align 4
  86. .global z
  87. z:
  88. .skip 4
  89.  
  90. .section ".text"
  91. .align 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement