Versions Compared

Key

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

Register parameters

Code Block
languagenone
titleRST 20H, DEFW DEFB $4B
IN:
     A = reason code
          FA_PTR ($01)   sequential pointer
          FA_EXT ($02)   extent (size) of file
     HL = pointer to a 4 byte (32bit) vector 
          (contains value to be written, low byte first).
     IX = file handle (previously obtained using GN_Opf)

OUT, if call successful:
     Fc = 0
OUT, if call failed:
     Fc = 1
     A = error code:
          RC_HAND ($08), bad handle
          RC_BAD ($04), bad reason code

Registers changed after return:
     ..BCDEHL/IXIY same
     AF....../.... different 

...