Moved Backgammon to this repository
This commit is contained in:
62
Backgammon/Compiler/Compiling.md
Normal file
62
Backgammon/Compiler/Compiling.md
Normal file
@@ -0,0 +1,62 @@
|
||||
# Compiling Gammon IV
|
||||
|
||||
## Requirements
|
||||
|
||||
To compile this program, you need the following:
|
||||
|
||||
* The Software Toolworks' C/80 v3.1 compiler for CP/M
|
||||
* Microsoft MACRO-80 assembler (M80.com)
|
||||
* Microsoft LINK-80 linker (L80.COM)
|
||||
|
||||
All of these tools can also be found here:
|
||||
http://www.retroarchive.org/cpm/lang/lang.htm
|
||||
|
||||
## Configuration
|
||||
|
||||
The C compiler needs to be configured in order to be able to compile Gammon IV.
|
||||
|
||||
Just use CCONFIG.COM to make the following settings:
|
||||
|
||||
Symbol table size: 512
|
||||
String constant table: 3200
|
||||
Dump constants after each routine: YES
|
||||
Macro table size: 500
|
||||
Switch table size: 128
|
||||
Structure table size: 200
|
||||
Merge duplicate string constants: YES
|
||||
Assembler: C/80's AS
|
||||
Initialize arrays to zero: < 256 BYES ONLY
|
||||
Generate ROMable code in Macro-80: YES
|
||||
Screen size: 24 (doesn't matter)
|
||||
Generate slightly larger, faster code: NO
|
||||
Sign extension on char to int conversion: YES
|
||||
Device for library files: A: (your choice)
|
||||
|
||||
## Compilation
|
||||
|
||||
I assume that all of the following files are placed on a hard disk or "big" floppy disk.
|
||||
If you are compiling this game on a old system with limited disk space, please look into backgmmn.c, where you can find tips on how to distribute the files onto several disks.
|
||||
|
||||
The following files are needed:
|
||||
BACKGMMN.C, GAMEPLAN.C, GAMEPLAN.HDR, MYLIB2.C,
|
||||
|
||||
From the C compiler:
|
||||
PRINTF.C, STDLIB.REL, CLIBRARY.REL, C.COM
|
||||
|
||||
Assembler/Linker:
|
||||
L80.COM, M80.COM
|
||||
|
||||
To use the submit scripts, you also need ``SUBMIT.COM`` from your CP/M installation.
|
||||
|
||||
Using ``SUBMIT BGMAKE``, all steps of compiling, assembling and linking will run.
|
||||
|
||||
Using ``SUBMIT BGCLEAN``, all compiled files and intermediary files will be deleted.
|
||||
|
||||
If you don't want to use the script or just want to compile some parts, these steps are taken in the script:
|
||||
|
||||
c -m backgmmn
|
||||
m80 =backgmmn
|
||||
c -m gameplan
|
||||
m80 =gameplan
|
||||
l80 backgmmn,gameplan,stdlib/s,clibrary/s,backgmmn/n/e
|
||||
|
8
Backgammon/Compiler/bgclean.sub
Normal file
8
Backgammon/Compiler/bgclean.sub
Normal file
@@ -0,0 +1,8 @@
|
||||
era *.bak
|
||||
era *.mac
|
||||
era backgmmn.rel
|
||||
era gameplan.rel
|
||||
era backgmmn.com
|
||||
era backgmmn.mac
|
||||
era gameplan.mac
|
||||
|
13
Backgammon/Compiler/bgmake.sub
Normal file
13
Backgammon/Compiler/bgmake.sub
Normal file
@@ -0,0 +1,13 @@
|
||||
era *.bak
|
||||
era *.mac
|
||||
era backgmmn.rel
|
||||
era gameplan.rel
|
||||
era backgmmn.com
|
||||
c -m backgmmn
|
||||
m80 =backgmmn
|
||||
era backgmmn.mac
|
||||
c -m gameplan
|
||||
m80 =gameplan
|
||||
era gameplan.mac
|
||||
l80 backgmmn,gameplan,stdlib/s,clibrary/s,backgmmn/n/e
|
||||
|
BIN
Backgammon/Compiler/c80v31.zip
Normal file
BIN
Backgammon/Compiler/c80v31.zip
Normal file
Binary file not shown.
BIN
Backgammon/Compiler/l80.com
Normal file
BIN
Backgammon/Compiler/l80.com
Normal file
Binary file not shown.
BIN
Backgammon/Compiler/m80.com
Normal file
BIN
Backgammon/Compiler/m80.com
Normal file
Binary file not shown.
Reference in New Issue
Block a user