83Plus:Software:usb8x/Asm Interface/MSD/MSDVersion

From WikiTI
Revision as of 22:20, 16 August 2006 by Brandonw (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Synopsis

Name: MSDVersion

Minimum usb8x version: 0.10

Gets mass storage driver version and RAM requirements.

Inputs

  • None

Outputs

  • HL: Size of internal memory buffer in bytes
  • DE: Size of sector buffer in bytes
  • B: Mass storage driver major version
  • C: Mass storage driver minor version
  • A: Size of file handle for opened files

Destroys

  • AF, BC, DE, HL

Notes

It is probably safe to assume that HL will be 254, DE is 512, and A is 27, but if you want to allocate memory dynamically, this function is important.

See Also

  • [[../MSD_Initialize|MSD_Initialize]] - Initializes the mass storage driver