bero1985

Aulan1

Apr 1st, 2012
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1.  
  2. constant ArraySize = (8 * 3) - 8
  3.  
  4. type TestVar as integer
  5.  
  6. TestStructRef as pointer to TestStruct
  7.  
  8. TestStruct as struct
  9. Bla as array[ArraySize] of integer
  10. Bla2 as procedure(a as integer, b as float)
  11. Bla3 as function(a as integer, b as float) as integer
  12. end
  13.  
  14. TestVarRef as pointer to TestVar
  15.  
  16. variable VarA as integer
  17.  
  18. function Test(ParamA as integer, ParamB as integer) as integer
  19. variable LocalVarA as integer
  20. LocalVarB as float
  21. LocalVarC as pointer to integer
  22. LocalVarD as boolean
  23. LocalVarE as array[5] of struct
  24. WasBitte as integer
  25. end
  26. code
  27.  
  28. result = 1
  29.  
  30. LocalVarC = @result
  31.  
  32. LocalVarC^ = LocalVarC^ + 1
  33.  
  34. if result > 0 then
  35. result = boolean(integer(result sar 2))
  36. else if result < 0 then
  37. else
  38. end
  39.  
  40. while result > 0 do
  41. result = result - 1
  42. end
  43.  
  44. repeat
  45. result = result + 1
  46. until result = 0
  47.  
  48. ! LocalLabel.a:
  49. ! jmp LocalLabel.a
  50.  
  51. ! inc dword ptr result
  52.  
  53. LocalVarE[3].WasBitte = result
  54.  
  55. end
Advertisement
Add Comment
Please, Sign In to add comment