Versions Compared

Key

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

...

Code Block
languagenone
titleDR_RD ($09), read DOR record
IN:
     B = record type
     C = buffer length
     DE = user buffer address (to store information of read)
     IX = DOR handle

OUT, if call successful:
     Fc = 0
     original IX DOR handle is still valid
     C = actual length of information

OUT, if call failed:
     Fc = 1
     original IX is still valid
     A = error code
          RC_HAND ($08), bad DOR handle
          RC_BAD ($04), bad argument
          RC_FAIL ($16), information is not present

Registers changed after return:
     ..B.DEHL/IXIY same
     AF.C..../.... different

Note

Special record type (1) is used to store filesystem first sector pointer (16 bits) as DOR son (MSB always zero)


Code Block
languagenone
titleDR_WR ($0A), write DOR record
IN:
     B = record type
     C = buffer length
     DE = user buffer address (to copy information of store)
     IX = DOR handle

OUT, if call successful:
     Fc = 0
     original IX DOR handle is still valid

OUT, if call failed:
     Fc = 1
     original IX is still valid
     A = error code
          RC_HAND ($08), bad DOR handle
          RC_BAD ($04), bad argument

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

Note

Special record type (1) is used to store filesystem first sector pointer (16 bits) as DOR son (MSB always zero)