Programming with Ophis
<<< Previous |  | Next >>>

# Advanced Memory Segments

This is the last section of the Ophis tutorial. By now we've covered the basics of every command in the assembler; in this final installment we show the full capabilities of the `.text` and `.data` commands as we produce a final set of Commodore 64 header files.

# The Problem

Our `print'str` routine in tutor6.oph accesses memory locations $10 and $11 directly. We'd prefer to have symbolic names for them. This reprises our concerns back in the Chapter called Local variables and memory segments when we concluded that we wanted two separate program counters. Now we realize that we really need three; one for the text, one for the data, and one for the zero page data. And if we're going to allow three, we really should allow any number.

<<< Previous | Home | Next >>>
Expressions |  | The Solution