83Plus:Software:usb8x/Asm Interface/MSD/FAT nameConvertFrom11

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

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

Synopsis

Name: FAT_nameConvertTo11

Minimum usb8x version: 0.10

Converts file/directory name to ASCIIZ (zero-terminated) format.

Inputs

  • HL points to 11-character formatted name
  • DE points to an (at most) 13-byte buffer for ASCIIZ name

Outputs

  • HL points to 11-character formatted name

Destroys

  • AF, BC, DE, HL

Notes

Example code to convert "README TXT" to "README.TXT":

ld hl,sOldName
ld de,statVars
U_CALL FAT_nameConvertTo11
;HL points to formatted name in statVars
...
sOldName: DB "README  TXT"

See Also

  • [[../FAT_nameConvertTo11|FAT_nameConvertTo11]]