Skip to content

Commit 8a8204a

Browse files
2b
1 parent e3ff6ed commit 8a8204a

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

docs/source/os.rst

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,8 @@ CHDRIVE
11481148
11491149
|
11501150
1151-
Make a new directory entry.
1151+
Change durrent drive. Eight USB MSC drives are formally named "USB0:" to "USB7:"
1152+
with shortcuts "0:" to "7:".
11521153
11531154
:Op code: RIA_OP_CHDRIVE 0x2A
11541155
:C proto: rp6502.h
@@ -1158,6 +1159,23 @@ CHDRIVE
11581159
:errno: FR_INVALID_DRIVE
11591160
11601161
1162+
GETCWD
1163+
-------
1164+
1165+
.. c:function:: int f_getcwd (char* name, int size)
1166+
1167+
|
1168+
1169+
Get the current working directory.
1170+
1171+
:Op code: RIA_OP_GETCWD 0x2B
1172+
:C proto: rp6502.h
1173+
: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
1177+
1178+
11611179
EXIT
11621180
----
11631181

0 commit comments

Comments
 (0)