83Plus:Software:usb8x/Asm Interface/MSD/FAT nameConvertFrom11
From WikiTI
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]] - Convert zero/slash-terminated string to 11-character format