From a7765431cd23f05041644631010c7e417cb59503 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 28 Jun 2023 10:05:11 +0200 Subject: [PATCH] extend docs --- examples/asm/functional_test/README.md | 23 +++++++++++++++++++---- examples/functional.rs | 2 +- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/examples/asm/functional_test/README.md b/examples/asm/functional_test/README.md index ad31b85..8b457be 100644 --- a/examples/asm/functional_test/README.md +++ b/examples/asm/functional_test/README.md @@ -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. +``` diff --git a/examples/functional.rs b/examples/functional.rs index 87ab0f3..acea8ce 100644 --- a/examples/functional.rs +++ b/examples/functional.rs @@ -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();