mirror of
https://github.com/RevCurtisP/C02.git
synced 2025-02-19 19:31:04 +00:00
Added Compile Instructions to README,md
Added section "Compiling C02 programs" with instructions for both Linux and Windows.
This commit is contained in:
parent
8843e2753d
commit
a16b96f518
19
README.md
19
README.md
@ -10,3 +10,22 @@ See the top-level [documentation](doc/c02.txt) for more information.
|
||||
In Linux, use gcc and the [Makefile](./Makefile).
|
||||
|
||||
In Windows use the [Pelles C IDE](http://www.smorgasbordet.com/pellesc/) and the file [./C02.ppj](c02.ppj).
|
||||
|
||||
## Compiling C02 programs
|
||||
At a command line, cd into the appropriate directory, e.g. [py65](py65/) or [vic20](vic20/).
|
||||
|
||||
Execute the c02 compiler from the parent directory using the c02 source file (without the .c02 extension) as an argument.
|
||||
|
||||
For example, to compile the program [conds.c02](py65/conds.c02), in the [py65](py65/) directory, use the command
|
||||
|
||||
../c02 conds
|
||||
|
||||
in Linux, or
|
||||
|
||||
..\c02 conds
|
||||
|
||||
in Windows.
|
||||
|
||||
Some of the subdirectories contain a c02.bat file, which will compile the .c02 program, then run dasm to assemble the code. However, the path to dasm is hardcoded, so you will likely need to change it.
|
||||
|
||||
The file [c02.sh](./c02sh) provides the same functionality in Linux, but it may not be in a working state.
|
||||
|
Loading…
x
Reference in New Issue
Block a user