z80:Directives:PAGE/NOPAGE

From Learn @ Cemetech
Jump to: navigation, search

Sets the current page number.

Syntax

   .page number

Uses

This directive sets the page number of the program counter and output counter.

The first time a particular page is switched to using this directive it checks to see if the page has been defined (with defpage) and sets the program counter and output counter accordingly (otherwise it simply resets both to zero).

Subsequent use of this directive only changes the page numbers and not the program counter or output counter.

   .page 2
   .echoln "Current page = ", :$

See Also

defpage