Magic Kit Macros

From Archaic Pixels
Jump to: navigation, search

NOTE: This section is incomplete and derived from the magic kit pages: Magic Kit Documentation

Documentation Overview

The names of macros in the documentation are in all uppercase letters. When using them, they should start with a period and be all lower case.


  Example:

  macro name: CODE
  used in code as: .code

Conditional

IF

IF
Conditional assembly directive.
This directive will evaluate the supplied expression and then turn conditional assembly
 on or off depending on the result. If the result is null, conditional assembly is turned off,
 and on if the result is non null.
 Example :

         .if DEBUG
           ldx   #0
           ldy   #4
           print "entering main loop..."
          .endif
  loop:
          ...


IF
Conditional assembly directive.
This directive will evaluate the supplied expression and then turn conditional assembly on or off depending on the result. If the result is null, conditional assembly is turned off, and on if the result is non null.
 Example :

         .if DEBUG
           ldx   #0
           ldy   #4
           print "entering main loop..."
          .endif
  loop:
          ...