Programming with Ophis | ||
---|---|---|
<<< Previous | Next >>> |
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 more sophisticated set of Commodore 64 header files.
Our print'str routine in hello6.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 | Up | The Solution |