Guest User

Untitled

a guest
May 27th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. Symboltabelle
  2. Nr Name Type Int_Typ Offset Line Index1 Index2 Vater Parameter
  3. ---------------------------------------------------------------------------------------------
  4. 0: main Prg None 32 0 0 0 0 0
  5. 1: variable_1 Int None 0 0 0 0 0 0
  6. 2: variable_2 Int None 4 0 0 0 0 0
  7. 3: variable_3 Real None 8 0 0 0 0 0
  8. 4: H1 Int None 16 2 0 0 0 0
  9. 5: H2 Int None 20 6 0 0 0 0
  10. 6: H3 Int None 24 14 0 0 0 0
  11. 7: H4 Int None 28 18 0 0 0 0
  12. 8: questionmark Func Real 28 24 0 0 0 2
  13. 9: x Int None 0 24 0 0 8 1
  14. 10: y Int None 4 24 0 0 8 2
  15. 11: result Real None 8 24 0 0 8 0
  16. 12: H5 Int None 16 24 0 0 8 0
  17. 13: H6 Int None 20 29 0 0 8 0
  18. 14: H7 Int None 24 33 0 0 8 0
  19. Quadrupelcode Listing
  20. ---------------------
  21. 0 variable_1 := 1
  22. 1 variable_2 := 2
  23. 2 H1 := 0
  24. 3 IF (variable_1 <= 10) GOTO 5
  25. 4 GOTO 6
  26. 5 H1 := 1
  27. 6 H2 := 0
  28. 7 IF (H1 = 0) GOTO 10
  29. 8 IF (1 = 0) GOTO 10
  30. 9 H2 := 1
  31. 10 IF (H2 <> 0) GOTO 12
  32. 11 GOTO 20
  33. 12 PARAM variable_1
  34. 13 PARAM variable_2
  35. 14 H3 := CALL questionmark, 2
  36. 15 variable_3 := H3
  37. 16 variable_1 := variable_1 + 1
  38. 17 variable_2 := variable_1
  39. 18 H4 := variable_2 << 2
  40. 19 variable_2 := H4
  41. 20 IF (variable_3 <> 0) GOTO 22
  42. 21 GOTO 23
  43. 22 RETURN 0
  44. 23 RETURN 1
  45. 24 H5 := y / x
  46. 25 IF (H5 <> 0) GOTO 27
  47. 26 GOTO 28
  48. 27 result := 1.0
  49. 28 y := y - 1
  50. 29 H6 := 0
  51. 30 IF (y < x) GOTO 32
  52. 31 GOTO 33
  53. 32 H6 := 1
  54. 33 H7 := 1
  55. 34 IF (H6 <> 0) GOTO 37
  56. 35 IF (0 <> 0) GOTO 37
  57. 36 H7 := 0
  58. 37 IF (H7 <> 0) GOTO 24
  59. 38 GOTO 39
  60. 39 RETURN result
Add Comment
Please, Sign In to add comment