James_Parsons wrote:
I'm sorry, but what is four bytes in hex. for example I have memory
Code:
$0500
and I need to jump 4 bytes ahead. what would I add. I know this seems trivial but I am having a hard time understanding
What
is that? If it's ORA 00 (IOW, OR accumulator with the contents of address 00 in ZP), the next instruction might be a conditional branch around a four more bytes of instructions, for example a BNE which assembles to D0 04.
Many of the questions you're asking will be answered by reading any 6502 programming manual. There are many good ones available, and any of them will get you more satisfaction from the whole 6502 experience. If you don't read any of them, I expect you will probably continue asking super basic questions and not make much progress. I like to recommend WDC's "
Programming the 65816 including the 6502, 65C02, and 65802," available free online. It's big, but relatively easy reading, and you don't have to read the whole thing, as you can quit when it gets into the 16-bit stuff and then much of the rest is reference, where you look stuff up after you've got the basics down.