1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-28 03:29:39 +00:00

Compare commits

..

No commits in common. "8804dc7a5836828b40eaa10de333e16886197b7a" and "89b709c7f87da4594d93f9a45c1a95b0b72b15bc" have entirely different histories.

View File

@ -120,7 +120,7 @@ command line arguments to <tt/sim65/ will be passed to <tt/main/,
and the return value from <tt/main/ will become sim65's exit code.
The <tt/stdlib.h/ <tt/exit/ function may also be used to terminate with an exit code.
Exit codes are limited to an unsigned 8 bit value. (E.g. returning -1 will give an exit code of 255.)
Exit codes are limited to an unsigned 8 bit value.
The standard C library high level file input and output is functional.
A sim65 application can be written like a command line application,
@ -141,12 +141,8 @@ int main()
}
// Build and run:
// cl65 -t sim6502 -o example.prg example.c
// sim65 example.prg
// Build and run, separate steps:
// cc65 -t sim6502 -o example.s example.c
// ca65 -t sim6502 -o example.o example.s
// cc65 -o example.s example.c
// ca65 -o example.o example.s
// ld65 -t sim6502 -o example.prg example.o sim6502.lib
// sim65 example.prg
</verb></tscreen>
@ -177,11 +173,7 @@ _main:
rts
; Build and run:
; cl65 -t sim6502 -o example.prg example.s
; sim65 example.prg
; Build and run, separate steps:
; ca65 -t sim6502 -o example.o example.s
; ca65 -o example.o example.s
; ld65 -t sim6502 -o example.prg example.o sim6502.lib
; sim65 example.prg
</verb></tscreen>