From 1071d0e9957abd7e5b0364d68f678d10f04529bc Mon Sep 17 00:00:00 2001 From: ArthurFerreira2 Date: Fri, 25 Jun 2021 00:11:00 +0200 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cb92a9a..1699e94 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # puce6502 This is a simple and readable emulation of the MOS 6502 CPU\ -It implements all original instructions and is cycle accurate -It also passes the [Klaus Test Suite](https://github.com/Klaus2m5/6502_65C02_functional_tests) - set \_FUNCTIONNAL_TESTS to 1 and compile it as a standalone program. +It implements all original instructions and is cycle accurate\ +It also passes the [Klaus Test Suite](https://github.com/Klaus2m5/6502_65C02_functional_tests) : set `_FUNCTIONNAL_TESTS` to 1 and compile it as a standalone program. API is as simple as : @@ -13,7 +13,7 @@ void puce6502IRQ(); void puce6502NMI(); ``` -the first function will execute as many instructions as needed to reach cycleCount clock cycles - it will return the updated value of the Program Counter +The first function will execute as many instructions as needed to reach cycleCount clock cycles - it will return the updated value of the Program Counter the 3 others will simulate a RESET, INTERUPT and NON-MASKABLE INTERUPT. You are expected to provide the functions to handle read and writes to memory (ROM, RAM, Soft Switches, extension cards ROMs, PIA, VIA, ACIA etc...) @@ -24,7 +24,7 @@ uint8_t readMem(uint16_t address); void writeMem(uint16_t address, uint8_t value); ``` -finnaly, you can import the variable `ticks` (extern ticks) into your code - it holds the accumulated clock cycles since start. +Finnaly, you can import the variable `ticks` (extern ticks) into your code - it holds the accumulated clock cycles since start. For an example of use, you can refer to [reinette II plus](https://github.com/ArthurFerreira2/reinette-II-plus) a french Apple II plus emulator.