Getting Started with M68K Coral 66

Compilation System for the Motorola M68000 Family

XGC Software


Table of Contents
About this Guide
1. Audience
2. Related Documents
3. Reader's Comments
4. Documentation Conventions
1. Basic Techniques
1.1. Hello World
1.1.1. How to Prepare a Coral 66 Program
1.1.2. How to Compile
1.1.3. How to Run a Program on the Simulator
1.1.4. The Coral Input-Output Package
1.2. Compiler Options
1.3. Simulator Options
1.4. What's in my Program
2. Advanced Techniques
2.1. How to Read the User Guide
2.2. How to Recompile
2.3. Customizing the Start File
2.4. Checking for Stack Overflow
2.5. Interrupt Handling
2.6. Generating PROM Programming Files
A. Dialects and Extensions
B. Options for the M68000 Family
B.1. Compiler Options
B.2. Assembler Options
B.3. Motorola Syntax
B.4. MIT Instruction Syntax
B.5. Floating Point
B.6. Machine Directives
B.7. Opcodes
B.7.1. Branch Improvement
B.8. Linker Options
C. Using the M68000 Family Simulator
C.1. Command Line Switches
D. The Host-Target Link
D.1. RS-232 Information
List of Tables
A-1. Optional Language Extensions
B-1. Assembler Pseudo Operations
D-1. Null Modem Wiring and Pin Connection
D-2. The RS-232 Standard
List of Examples
1-1. Source code for Hello
1-2. Source code for Hello2
1-3. Source Code Listing
1-4. Machine Code Listing
1-5. Machine Code Listing with Interleaved Source
1-6. Disassembling Object Code
1-7. Section Headers
1-8. Simulator Options
1-9. Simulator Trace
1-10. A Linker Map File
2-1. Compiling with a Custom Start File
2-2. Program that Requires a Large Stack
2-3. Stack Overflow Check
2-4. Example of an Interrupt Handler
2-5. Converting to Intel Hex
2-6. Generating Intel Hex
2-7. Running an Intel Hex File
2-8. Running an S Record File
A-1. Source File with Extension Keywords