Announcement

Collapse
No announcement yet.

6502 assembly question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 6502 assembly question

    Hi everyone does anyone know how to load the B Accumulator in 6502?

    In 65816 assembly I would just load REP C2 20 then load 1234 the twelve side is what I want to know how to load in assembly

    00001c2
    0000220
    00003a9
    0000434
    0000512 <---

    please help if you can

  • #2
    I'm no authority, but I'm not aware of a B accumulator, at least not in the NES variant (65C02?).
    Please put all complaints in writing and submit them here.

    Above link not working? Try here.

    Comment


    • #3
      The 6502 is 8-bit so you cannot load a 16-bit direct value such as #1234 into the 8-bit accumulator, it depends on what you are trying to do on what method you use. Normal practice is to use two of the A/X/Y registers or you could use the accumulator and PHA and PLA to push each 8 bit value to and from the stack.
      Pugsy's MAME Cheat Page : http://mamecheat.co.uk

      Comment


      • #4
        Thanks for your replies I'll look at Super Mario 1 asm to see how it loads bigger values then 255 for the score.

        take care

        Comment

        Working...
        X