Quick ref: Pass arguments to machine code from the Monitor

When calling a machine code subroutine from the Monitor, one or two additional arguments can be passed by taking advantage of the way the Monitor uses delimiters to parse arguments from its command-line and stores them in the zero-page pointers A1, A2, A3, an arbitrarily-strange order:
  • The default argument is always the subroutine address, stored in A1.
  • Appending a '.' delimiter allows another argument to be stored in A2.
  • Inserting a '<' delimiter allows an argument to be stored in A4.
Subscribe to monitor