@@ -1166,14 +1166,49 @@ GETCWD
11661166
11671167 |
11681168
1169- Get the current working directory.
1169+ Get the current working directory. Size is ignored by the OS
1170+ but the C wrapper will use it.
11701171
11711172 :Op code: RIA_OP_GETCWD 0x2B
11721173 :C proto: rp6502.h
11731174 :param name: The returned directory.
1174- :returns: Size of chars returned. -1 on error.
1175- :a regs: return if size <= 255
1176- :errno: API_ENOMEM, FR_DISK_ERR, FR_INT_ERR, FR_NOT_READY, FR_NOT_ENABLED, FR_NO_FILESYSTEM, FR_TIMEOUT, FR_NOT_ENOUGH_CORE
1175+ :returns: Size of returned name. -1 on error.
1176+ :errno: ENOMEM, FR_DISK_ERR, FR_INT_ERR, FR_NOT_READY, FR_NOT_ENABLED, FR_NO_FILESYSTEM, FR_TIMEOUT, FR_NOT_ENOUGH_CORE
1177+
1178+
1179+ SETLABEL
1180+ --------
1181+
1182+ .. c:function:: int f_setlabel (const char* name)
1183+
1184+ |
1185+
1186+ Change the volume label. Max 11 characters.
1187+
1188+ :Op code: RIA_OP_SETLABEL 0x2C
1189+ :C proto: rp6502.h
1190+ :param name: Label with optional volume name.
1191+ :returns: 0 on success. -1 on error.
1192+ :a regs: return
1193+ :errno: EINVAL, FR_DISK_ERR, FR_INT_ERR, FR_NOT_READY, FR_INVALID_NAME, FR_WRITE_PROTECTED, FR_INVALID_DRIVE, FR_NOT_ENABLED, FR_NO_FILESYSTEM, FR_TIMEOUT
1194+
1195+
1196+ GETLABEL
1197+ --------
1198+
1199+ .. c:function:: int f_getlabel (const char* path, char* label)
1200+
1201+ |
1202+
1203+ Get the volume label. Label must have room for (11+1) characters.
1204+
1205+ :Op code: RIA_OP_GETLABEL 0x2D
1206+ :C proto: rp6502.h
1207+ :param name: Volume name.
1208+ :param label: Storage for returned label.
1209+ :returns: Size of returned label. -1 on error.
1210+ :a regs: return
1211+ :errno: EINVAL, FR_DISK_ERR, FR_INT_ERR, FR_NOT_READY, FR_INVALID_DRIVE, FR_NOT_ENABLED, FR_NO_FILESYSTEM, FR_TIMEOUT
11771212
11781213
11791214EXIT
0 commit comments