1
0
mirror of https://github.com/mre/mos6502.git synced 2024-11-28 07:49:19 +00:00

extend docs

This commit is contained in:
Matthias 2023-06-28 10:05:11 +02:00
parent f61a36f798
commit a7765431cd
2 changed files with 20 additions and 5 deletions

View File

@ -1,9 +1,5 @@
# 6502 Functional Test
This binary was taken from
https://github.com/Klaus2m5/6502_65C02_functional_tests
Copyright (C) 2013 Klaus Dormann
This is a test suite for 6502/65C02/65C816 processors. It contains a plethora of
tests, which covers all documented opcodes.
@ -12,3 +8,22 @@ pre-built binaries were used instead. That is because the source code is not
compatible with the assembler used by the [cc65](https://cc65.github.io/cc65/)
toolchain.
## Building
```bash
make build
```
This will create a `6502_functional_test.bin` file in the `build` directory,
which the emulator will load.
## Credits
Taken from
https://github.com/amb5l/6502_65C02_functional_tests
which is a CA65-compatible port of
https://github.com/Klaus2m5/6502_65C02_functional_tests
The original source code was written by Klaus Dormann, and is licensed under
the GPL-3.0 license.
```

View File

@ -24,7 +24,7 @@ fn main() {
// Use `fetch_next_and_decode` instead of
// `single_step` to see the decoded instruction
if let Some(decoded_instr) = cpu.fetch_next_and_decode() {
println!("{decoded_instr:?}");
println!("{decoded_instr}");
cpu.execute_instruction(decoded_instr);
}
cpu.single_step();