Advertisement
surajvg93

INPUT FOR PASS 1

Dec 6th, 2013
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. // asm file (Input)
  2.  
  3. START 98
  4. ADD AREG,='5'
  5. AGAIN MUL AREG,BREG
  6. MOVEM DREG,ONE
  7. SUB DREG,='8'
  8. JNC AGAIN
  9. ONE DS 1
  10. TWO DC 2
  11. END
  12.  
  13.  
  14.  
  15. // pseudo code file (Input)
  16.  
  17. ORIGIN 4000
  18. END 3000
  19. DS 1010
  20. DC 1234
  21. LTORG 6700
  22. EQU 7800
  23. START 5000
  24.  
  25.  
  26.  
  27.  
  28. // mnemonic table file (Input)
  29.  
  30. ADD 2 21
  31. SUB 2 22
  32. MUL 2 23
  33. DIV 2 24
  34. READ 4 09
  35. MOVEM 2 42
  36. MOVER 2 41
  37. BC 4 84
  38. INCR 2 36
  39. JNC 2 37
  40. PRINT 4 88
  41. LT 2 01
  42. LE 2 02
  43. GT 2 03
  44. GE 2 04
  45. NE 2 05
  46. EE 2 06
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement