IanosStefanCristian

Decrementare de la 20 pana la 10 Code Machine

Jun 3rd, 2020
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. 00000 : 10000000; -- input A = 20
  2. 00001 : 00110000; -- store A la 10000
  3. 00010 : 00010000; -- load A din 10000
  4. 00011 : 01111110; -- scad 1 din A , A=A-1
  5. 00100 : 00110000; -- Store A la 10000
  6. 00101 : 01111111; -- sub A = A - 10
  7. 00110 : 11000010;-- jpos
  8. 00111 : 11111111;-- halt
  9.  
  10. 11111 : 00001011;--10
  11. 11110 : 00000001;--constant1
Add Comment
Please, Sign In to add comment