Advertisement
Chdata

Untitled

Apr 5th, 2014
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. Bytes you should never insert to the rom:
  2.  
  3. Miscellaneous: (You should never overwrite REP/SEP nor 1100 0000 (0x30) from its bits - other bits are fine usually)
  4. 00 = BRK #$xx 2 bytes Stack/Interrupt
  5. 02 = COP #$xx 2 bytes Stack/Interrupt
  6. DB = STP 1 byte Implied
  7. CB = WAI 1 byte Implied
  8. C2 = REP #$xx 2 bytes Immediate
  9. E2 = SEP #$xx 2 byte Immediate
  10.  
  11. Stack: (You should never overwrite any of these)
  12. 08 = PHP 1 byte Stack (Push)
  13. 0B = PHD 1 byte Stack (Push)
  14. 8B = PHB 1 byte Stack (Push)
  15. 4B = PHK 1 byte Stack (Push)
  16. 48 = PHA 1 byte Stack (Push)
  17. 5A = PHY 1 byte Stack (Push)
  18. DA = PHX 1 byte Stack (Push)
  19. 28 = PLP 1 byte Stack (Pull)
  20. 2B = PLD 1 byte Stack (Pull)
  21. AB = PLB 1 byte Stack (Pull)
  22. 68 = PLA 1 byte Stack (Pull)
  23. 7A = PLY 1 byte Stack (Pull)
  24. FA = PLX 1 byte Stack (Pull)
  25. D4 = PEI ($xx) 2 bytes Stack (DP Indirect)
  26. F4 = PEA $xxxx 3 bytes Stack (Absolute)
  27. 62 = PER $xxxx 3 bytes Stack (PC Relative Long)
  28.  
  29. Jump/Branch/Return: (You should never overwrite any of these)
  30. 80 = BRA $xx 2 bytes Program Counter Relative
  31. 82 = BRL $xxxx 3 bytes Program Counter Relative Long
  32. 30 = BMI $xx 2 bytes Program Counter Relative
  33. 50 = BVC $xx 2 bytes Program Counter Relative
  34. 70 = BVS $xx 2 bytes Program Counter Relative
  35. 90 = BCC $xx 2 bytes Program Counter Relative
  36. B0 = BCS $xx 2 bytes Program Counter Relative
  37. D0 = BNE $xx 2 bytes Program Counter Relative
  38. F0 = BEQ $xx 2 bytes Program Counter Relative
  39. 10 = BPL $xx 2 bytes Program Counter Relative
  40. 4C = JMP $xxxx 3 bytes Absolute
  41. 6C = JMP ($xxxx) 3 bytes Absolute Indirect
  42. DC = JMP [$xxxx] 3 bytes Absolute Indirect Long
  43. 7C = JMP ($xxxx,x) 3 bytes Absolute Indexed Indirect
  44. 5C = JML $xxxxxx 4 bytes Absolute Long
  45. 20 = JSR $xxxx 3 bytes Absolute
  46. FC = JSR ($xxxx,x) 3 bytes Absolute Indexed Indirect
  47. 22 = JSL $xxxxxx 4 bytes Absolute Long
  48. 40 = RTI 1 byte Stack (RTI)
  49. 60 = RTS 1 byte Stack (RTS)
  50. 6B = RTL 1 byte Stack (RTL)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement