Advertisement
tyler569

cpu spec I had

Apr 24th, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. 8 bit CPU, 8 bit IS
  2.  
  3. 4 regs (rA-rD)
  4. r1/r2 refer to registers whos address is given in op
  5.  
  6. Assembly Bits
  7.  
  8. set n - 0nnnnnnn - Set rA to nnnnnnn
  9. add/and r1 r2 - 100Ar1r2 - ADD/AND r1 to r2 and store in rD
  10. jmp r1 (<|=|>) - 1010rrcc - jump to ROM[rA] if rr is cc to 0
  11. - 1011???? - TBD
  12. cp r1 r2 - 1100r1r2 - copy r1 to r2
  13. - 1101???? - TBD
  14. rd/wr rd ra - 111wrdra - Read/write rd to RAM[ra]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement