Advertisement
NovaYoshi

sweet16 additions

Dec 7th, 2016
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. 6502 opcodes:
  2. S16 - switch to SWEET16 mode
  3.  
  4. --------------------------------------------
  5.  
  6. Register OPS-
  7. 1n SET Rn Constant (Set)
  8. 2n LD Rn (Load)
  9. 3n ST Rn (Store)
  10. 4n LD @Rn (Load Indirect)
  11. 5n ST @Rn (Store Indirect)
  12. 6n LDD @Rn (Load Double Indirect)
  13. 7n STD @Rn (Store Double Indirect)
  14. 8n POP @Rn (Pop Indirect)
  15. 9n STP @Rn (Store POP Indirect)
  16. An ADD Rn (Add)
  17. Bn SUB Rn (Sub)
  18. Cn POPD @Rn (Pop Double Indirect)
  19. Dn CPR Rn (Compare)
  20. En INR Rn (Increment)
  21. Fn DCR Rn (Decrement)
  22. Non-register OPS-
  23. 00 RTN (Return to 6502 mode)
  24. 01 BR ea (Branch always)
  25. 02 BNC ea (Branch if No Carry)
  26. 03 BC ea (Branch if Carry)
  27. 04 BP ea (Branch if Plus)
  28. 05 BM ea (Branch if Minus)
  29. 06 BZ ea (Branch if Zero)
  30. 07 BNZ ea (Branch if NonZero)
  31. 08 BM1 ea (Branch if Minus 1)
  32. 09 BNM1 ea (Branch if Not Minus 1)
  33. 0A BK (Break)
  34. 0B RS (Return from Subroutine)
  35. 0C BS ea (Branch to Subroutine)
  36. 0D (Escape code 1)
  37. 0E (Unassigned)
  38. 0F (Unassigned)
  39.  
  40. Extended ops:
  41. 0D 0n OR Rn (Bitwise OR)
  42. 0D 1n AND Rn (Bitwise AND)
  43. 0D 2n XOR Rn (Bitwise XOR)
  44. 0D 3n NEG Rn (Rn = -Rn)
  45. 0D 4n CPL Rn (Rn = ~Rn)
  46. 0D 5n EX Rn (Exchange with register)
  47. 0D 6n SHL Rn (Rn <<= 1)
  48. 0D 7n SHR Rn (Rn >>= 1)
  49. 0D 8n MUL Rn (R0 *= Rn, unsigned)
  50. 0D 9n MULS Rn (R0 *= Rn, signed)
  51. 0D An SHL0 n (R0 <<= n)
  52. 0D Bn SHR0 n (R0 >>= n)
  53. 0D Cn IND Rn (Rn = *Rn)
  54. 0D Dn
  55. 0D En
  56. 0D Fn
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement