Testing a (selfmade)6502
Posted: Tue May 04, 2010 8:42 pm
Hallo allemaal,
As mentioned before in the Hardware section, I needed a program to test my self built 6502. At the end I decided to write my own one:
http://www.baltissen.org/files/ttl6502.asm
Replace 'asm' with 'bin' to get the binary. The binary is meant for an 8 KB EPROM at $E000 and has a reset vector.
The source has only be tested with my TTL6502-emulator. The core of this program is identical to the one of the program that should create the ROMs for my Instruction Decoder. Here all the individual instructions set or reset an output bit of the decoder. In the emulator I emulate what the bit would do, like outputting the content of register A to the internal data bus or filling it with data put on this bus by another register, the ALU or the external data bus.
The ASM enabled me to find errors in my emulator (read: Instruction Decoder) but also the other way around.
I started with testing JMP as first as I need it for testing the branches. But I'm not that happy with the start of testing the branches.
Any ideas or comments on the ASM are welcome!
As mentioned before in the Hardware section, I needed a program to test my self built 6502. At the end I decided to write my own one:
http://www.baltissen.org/files/ttl6502.asm
Replace 'asm' with 'bin' to get the binary. The binary is meant for an 8 KB EPROM at $E000 and has a reset vector.
The source has only be tested with my TTL6502-emulator. The core of this program is identical to the one of the program that should create the ROMs for my Instruction Decoder. Here all the individual instructions set or reset an output bit of the decoder. In the emulator I emulate what the bit would do, like outputting the content of register A to the internal data bus or filling it with data put on this bus by another register, the ALU or the external data bus.
The ASM enabled me to find errors in my emulator (read: Instruction Decoder) but also the other way around.
I started with testing JMP as first as I need it for testing the branches. But I'm not that happy with the start of testing the branches.
Any ideas or comments on the ASM are welcome!