Advertisement
NovaYoshi

marie super deluxxx

Apr 15th, 2016
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. 16-bit opcodes
  2. 16-bit word size
  3. 64K 16-bit words of RAM
  4.  
  5. memory map:
  6. Data: 000-7ff bank A
  7. Data: 800-fff bank B
  8. Code: 000-fff bank C (for Code)
  9. indirect accesses ignore the banks and use the full 16 bits
  10.  
  11. 0xxx call xxx call subroutine
  12. 1xxx load xxx load memory
  13. 2xxx store xxx store memory
  14. 3xxx add xxx add memory
  15. 4xxx sub xxx subtract memory
  16. 5xxx and xxx bit-wise AND with memory
  17. 6xxx or xxx bit-wise OR with memory
  18. 7xxx xor xxx bit-wise XOR with memory
  19. 8xxx jump xxx jump to address
  20. 9xxx loadi xxx load indirect
  21. Axxx storei xxx store indirect
  22. Bxxx addi xxx add indirect
  23. Cxxx inc xxx increment memory
  24. Dxxx dec xxx decrement memory
  25. E0xx load #xx load immediate (positive)
  26. E1xx load #-xx load immediate (negative)
  27. E2xx add #xx add immediate
  28. E3xx sub #xx subtract immediate
  29. E4xx sub #xx and immediate
  30. E5xx or #xx or immediate
  31. E6xx xor #xx xor immediate
  32. E7xx shiftl #xx shift left X bits
  33. E8xx shiftr #xx shift right X bits
  34. E9xx banka #xx set bank A
  35. EAxx bankb #xx set bank B
  36. EBxx bankc #xx set bank C (goes into effect next call/jump)
  37. ECxx
  38. EDxx
  39. EExx
  40. EF00 halt stop
  41. EF01 return return from subroutine
  42. EF02 neg accumulator = 1 - accumulator
  43. EF03 compl accumulator = ~accumulator
  44. EF04 push push accumulator to stack
  45. EF05 pop pop accumulator from stack
  46. EF06 setsp set stack pointer to accumulator
  47. EF07 getsp set accumulator to stack pointer
  48. EF08
  49. EF09
  50. EF0A
  51. EF0B
  52. EF0C
  53. EF0D
  54. EF0E
  55. EF0F
  56. F
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement