Programming with Ophis

Michael Martin


Table of Contents
Preface
Why "Ophis"?
Getting a copy of Ophis
The basics
A note on numeric notation
Producing Commodore 64 programs
Related commands and options
Writing the actual code
Assembling the code
Labels and aliases
Temporary labels
Anonymous labels
Aliasing
Headers, Libraries, and Macros
Header files and libraries
Macros
Macro definitions
Macro invocations
Example code
Character maps
Local variables and memory segments
Expressions
Advanced Memory Segments
The Problem
The Solution
Where to go from here
Example Programs
tutor1.oph
tutor2.oph
c64-1.oph
kernal.oph
tutor3.oph
tutor4a.oph
tutor4b.oph
tutor4c.oph
tutor5.oph
tutor6.oph
c64-2.oph
tutor7.oph
Ophis Command Reference
Command Modes
Basic arguments
Numeric types
Label types
String types
Compound Arguments
Memory Model
Basic PC tracking
Basic Segmentation simulation
General Segmentation Simulation
Macros
Defining Macros
Invoking Macros
Passing Arguments to Macros
Features and Restrictions of the Ophis Macro Model
Assembler directives