py6502 icon indicating copy to clipboard operation
py6502 copied to clipboard

A Python 6502 Assembler/Disassembler/simulator in which python serves in place of the a macro language.

Results 6 py6502 issues
Sort by recently updated
recently updated
newest added

I made the changes for python 3. I didn't exhaustively test everything but made sure things looked reasonable when running the tests.

The assembler chooses 'zero page,X' when it should choose 'absolute,X'. e.g. the "ORA absolute,X" instruction is assembled as "ORA zp,X" even though it isn't, when using a label thats defined...

After executing some 6502 code, add the ability to read the number of cycles elapsed. Assuming it's not already done? I want to compare different versions of 6502 routines for...

The parser is getting out of hand. It's hand coded. It needs a proper lexical analyzer and parser structure to wrestle control of it. Currently I'm playing with some of...

The code currently support the intelhex format, which is possibly the least nice format of the usual suspects. Let's add some more output formats. Straight Ascii Hex Straight Binary Motorola...

enhancement

The 6502 has vector locations for reset, NMI and BRK/IRQ. Let's add utility routines to read and write the vector locations. asm6502.setvector_reset(self, address) asm6502.setvector_nmi(self, address) asm6502.setvector_irq(self, address) asm6502.getvector_reset(self) --> int...

enhancement