SNESMNEM.TXT 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. add add adress for all instruction fetches
  2. adc add memory to accumulator with carry
  3. and 'and' memory with accumulator
  4. asl arithmic shift left 1 bit (memory or accumulator)
  5. bcc branch on carry clear C=0
  6. bcs branch on carry set C=1
  7. beq branch if equal Z=1
  8. bit bit test
  9. bmi branch if result is negative N=1
  10. bne branch if not equal Z=0
  11. bpl branch if result is plus N=0
  12. bra branch always
  13. brk force break
  14. brl branch always long
  15. bvc branch on overflow clear V=0
  16. bvs branch on overflow set V=1
  17. clc clear carry flag C=0
  18. cld clear decimal mode D=0
  19. cli clear interrupt disable bit I=0
  20. clv clear overflow flag V=0
  21. cmp compare memory and accumulator
  22. cop coprocessor
  23. cpx compare memory and index x
  24. cpy compare memory and index y
  25. dec decrement memory or accumulator by one
  26. dex decrement index x by one
  27. dey decrement index y by one
  28. eor exclusive 'or' memory with accumulator
  29. inc increment memory or accumulator by one
  30. inx increment index x by one
  31. iny increment index y by one
  32. jml jump long other banks possible
  33. jmp jump to location in same bank
  34. jsl jump to subroutine long
  35. jsr jump to subroutine in same bank
  36. lda load accumulator with memory
  37. ldx load index x with memory
  38. ldy load index y with memory
  39. lsr logical shift right by one bit (memory or accu)
  40. mvn move block negative (uses x,y,a)
  41. mvp move block positive (uses x,y,a)
  42. nop no operation
  43. ora 'or' memory with accumulator
  44. pea push effective adres (or data) on stack
  45. pei push effective indirect adres on stack
  46. per push effective program counter relative adres on stack
  47. pha push accumulator on stack
  48. phb push data bank register on stack
  49. phd push direct register on stack
  50. phk push program bank register on stack
  51. php push processor status on stack
  52. phx push index register x on stack
  53. phy push index register y on stack
  54. pla pull accumulator from stack
  55. plb pull data bank register from stack
  56. pld pull direct register from stack
  57. plp pull processor status from stack
  58. plx pull index x from stack
  59. ply pull index y from stack
  60. rep reset processor status bits
  61. rol rotate left one bit (memory or accu)
  62. ror rorate right one bit (memory or accu)
  63. rti return from interrupt
  64. rtl return from subroutine long
  65. rts return from subroutine
  66. sbc subtract memory from accumulator with borrow
  67. sec set carry flag C=1
  68. sed set decimal mode D=1
  69. sei set interrupt disable status I=1
  70. sep set processor status bits
  71. sta store accumulator in memory
  72. stp stop the clock (only reset will help)
  73. stx store index x in memory
  74. sty store index y in memory
  75. stz store zero in memory
  76. tad (tcd) transfer accumulator to direct register
  77. tas (tcs) transfer accumulator to stack pointer register
  78. tax transfer accumulator to index x
  79. tay transfer accumulator to index y
  80. tda (tdc) transfer direct register to accumulator
  81. trb test and reset bit
  82. tsa (tsc) transfer stack pointer register to accumulator
  83. tsb test and set bit
  84. tsx transfer stack pointer register to index x
  85. txa transfer index x to accumulator
  86. txs transfer index x to stack pointer register
  87. txy transfer index x to index y
  88. tya transfer index y to accumulator
  89. tyx transfer index y to index x
  90. wai wait for interrupt
  91. xba exchange accumulator high and low 8 bits
  92. xce exchange carry and emulation bits