33Some macros return data in a register.</br >
44The specific register used depends on the target architecture:
55
6- - x86: ` eax `
6+ - x16: ` ax `
7+ - x86: ` eax `
78- x86_64: ` rax `
8- - ARM32: ` r0 `
9- - ARM64: ` x0 `
9+ - ARM32: ` r0 `
10+ - ARM64: ` x0 `
1011
1112Also:
13+ - For 16-bit targets, only 16-bit unsigned numbers are supported.
1214- For 32-bit targets, only 32-bit unsigned numbers are supported.
1315- For 64-bit targets, 64-bit unsigned numbers are supported.
1416
@@ -122,7 +124,7 @@ mkdir dir_name, permissions
122124
123125** Arguments:** </br >
124126` dir_name ` — name of the directory to create, given as a string literal or a pointer to a string.</br >
125- ` permissions ` — access mode in octal format, given as a number or a pointer to a variable containing the value.
127+ ` permissions ` — access mode in octal format, given as a number or a pointer to a variable containing the value. (not required for x16)
126128
127129
128130** Usage example:**
@@ -169,7 +171,7 @@ print str, str_len
169171
170172** Arguments:**
171173` str ` — pointer to the string or string literal to print.</br >
172- ` str_len ` — length of the string in bytes, given as a number or pointer.
174+ ` str_len ` — length of the string in bytes, given as a number or pointer. (not required for x16)
173175
174176
175177** Usage example:**
@@ -193,7 +195,7 @@ printtim times, str, str_len
193195** Arguments:** </br >
194196` times ` — number of times to print the string, given as a number or pointer.</br >
195197` str ` — pointer to the string or string literal to print.</br >
196- ` str_len ` — length of the string in bytes, given as a number or pointer.
198+ ` str_len ` — length of the string in bytes, given as a number or pointer. (not required for x16)
197199
198200
199201** Usage example:**
@@ -216,7 +218,7 @@ printnum number
216218
217219** Note:**
218220
219- Not available in the library for ARM32 and ARM64.
221+ Not available in the library for x16, ARM32 and ARM64.
220222
221223
222224** Arguments:** </br >
243245
244246** Note:**
245247
246- Not available in the library for ARM32 and ARM64.
248+ Not available in the library for x16, ARM32 and ARM64.
247249
248250
249251
@@ -258,7 +260,7 @@ run command
258260
259261** Note:**
260262
261- Not available in the library for ARM32 and ARM64.
263+ Not available in the library for x16, ARM32 and ARM64.
262264
263265
264266** Arguments:** </br >
0 commit comments