Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleRST 20H, DEFW $8609
IN:
      HL = 2, convert DEBC to stream IX
      HL > 255, pointer to 32 bits integer to convert

      DE = 0, write string to stream IX
      DE = 1, write string to filter IX
      DE > 255, string is written at (DE)

      A = formatting specifier
              A0 = 1, disable leading zero
              A1 = 1, output leading '$'
              A2 = 1, output trailing 'h'
              A3 = 1, lower case (a-f)
              A7-A6, output range
                     @00, 32 bits (DEBC if HL = 2)
                     @11, 24 bits ( EBC if HL = 2)
                     @10, 16 bits (  BC if HL = 2)
                     @01,  8 bits (   C if HL = 2)

      IX = optional output handle (if DE = 0,1 or HL = 2)

OUT, if call successful:
      Fc = 0, DE points to character after result (if DE(in) > 255)

OUT, if call failed:
      Fc = 1, A = RC_Fail (bad source address)
              A = RC_Hnd (bad handle for stream IX or filter IX)

Registers changed after return:
      A.BC..HL/IXIY same
      .F..DE../.... different

...