Advertisement
Ladies_Man

#NUP LAB_2 (PDP-11)

May 22nd, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Z=A>>(B&C)
  2. ====================================
  3. deploy in memory from address 3040
  4. arg's addresses:
  5. Z=2742 absolute
  6. A=3556 abs
  7. B=3214 relative
  8. C=2660 rel
  9. octal
  10. ====================================
  11.  
  12. set sl on
  13. d 3040=016700  
  14. d 3042=000150   //3044 + x = 3214; x = 150
  15. d 3044=016701  
  16. d 3046=777610   //3050 + x = 2660; x = 170; 777777 - 170 = 777607; 777607 + 1 = 777610
  17. d 3050=005101  
  18. d 3052=040100  
  19. d 3054=013701  
  20. d 3056=003556   //A
  21. d 3060=005400  
  22. d 3062=072100  
  23. d 3064=010137  
  24. d 3066=002742   //Z
  25. d 3070=005000  
  26. d 3072=104350
  27.  
  28. ====================================
  29.  
  30. with external function call:
  31. d 1000=016700  
  32. d 1002=002210   1004 + x = 3214; x = 2210
  33. d 1004=016701  
  34. d 1006=001650   1010 + x = 2660; x = 1650
  35. d 1010=013702  
  36. d 1012=003556  
  37. d 1014=004737   call func (adr 3040)
  38. d 1016=003040  
  39. d 1020=010237  
  40. d 1022=002742  
  41. d 1024=005000
  42. d 1026=104350
  43.  
  44. d 3040=005101  
  45. d 3042=040100  
  46. d 3044 005400  
  47. d 3046 072200  
  48. d 3050 000207
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement