Advertisement
IanosStefanCristian

Proiect AC COD Decrementare+Dif

Jun 3rd, 2020
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. 00000 : 10000000; -- input A = 20 (0)
  2. 00001 : 00110000; -- store A la 10000 (8)(1)
  3. 00010 : 00010000; -- load A din 10000 (8)(2)
  4. 00011 : 01111110; -- scad 1 din A , A=A-1 (3)
  5. 00100 : 00110000; -- Store A la 10000 (4)
  6. 00101 : 01111111; -- sub A = A - 11 (5)
  7. 00110 : 11000010;-- jpos (6)
  8.  
  9. 00111 : 01110101; -- A= A - 255 (7)
  10. 01000 : 01011101; -- add 5 (8)
  11. 01001 : 01011101; --add 5 (9)
  12. 01010 : 01011100; -- add 2 (10)
  13. 01011 : 00101111; -- Store total (11)
  14. 01100 : 01111001;--sub -10
  15. 01101 : 11111111; -- Halt (12)
  16.  
  17. 11001 : 00001010; --10
  18. 11100 : 00000010;-- 2
  19. 11101 : 00000101; -- a=5
  20. 11111 : 00001011;--11---- (15)
  21. 11110 : 00000001;--constant1--(14)
  22. 10101 : 11111111; -- 255
  23.  
  24. END;
  25.  
  26. dec+ dif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement