Programming with Ophis
<<< Previous | Labels and aliases | Next >>>

# Aliasing

Rather the reverse of anonymous labels, aliases are names given to specific memory locations. These make it easier to keep track of important constants or locations. The KERNAL routines are a good example of constants that deserve names. To assign the traditional name `chrout` to the routine at $FFD2, simply give the directive:

    .alias chrout $ffd2

And change the `jsr` command to:

            jsr chrout

The final version of the code is in tutor2.oph. It should assemble to exactly the same program as tutor1.oph.

<<< Previous | Home | Next >>>
Anonymous labels | Up | Headers, Libraries, and Macros