diff --git a/doc/sim65.sgml b/doc/sim65.sgml index 0739ea2f1..99fdc1886 100644 --- a/doc/sim65.sgml +++ b/doc/sim65.sgml @@ -7,7 +7,7 @@ sim65 is a simulator for 6502 and 65C02 CPUs. It allows to test target -independed code. +independent code. @@ -18,8 +18,8 @@ independed code. Overview

-sim65 is the only solution as part of the toolchain to execute code. The -binary needs to be compiled with Usage

@@ -104,6 +104,59 @@ PVExit ($01) +Creating a Test in C

+ +For a C test compiled and linked with + int open (const char* name, int flags, ...); + int __fastcall__ close (int fd); + int __fastcall__ read (int fd, void* buf, unsigned count); + int __fastcall__ write (int fd, const void* buf, unsigned count); + + + +Creating a Test in Assembly

+ +Assembly tests may similarly be assembled ant linked with + +The binary input file has a 1 byte header. A value of 0 indicates 6502 simulation, +and 1 indicates 65C02. + +The rest of the input file, after the header, will be loaded at The entire 64 kilobyte address space is writeable RAM. +Aside from the loaded binary, the reset vector at The The built-in functions are provided by 6 "paravirtualization" hooks present at + + Copyright