Skip to content

Commit 218dd5a

Browse files
minor docs and fixes
1 parent 9fd25ef commit 218dd5a

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

docs/static/asm.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ Below is an example C prototype followed by the assembly implementation:
110110
printf("asm_func returned %d\n", ret);
111111
}
112112
113+
Preserve
114+
^^^^^^^^
115+
116+
Assembly routines must preserve the :code:`IX` and :code:`SP` registers.
117+
All other registers are free for use.
118+
113119
Arguments
114120
^^^^^^^^^
115121

@@ -131,6 +137,8 @@ Note that :code:`sp + [0,2]` contains the return address.
131137
+------------+------------+----------------------+
132138
| long | 4 bytes | sp + [3,6] |
133139
+------------+------------+----------------------+
140+
| (u)int48_t | 6 bytes | sp + [3,8] |
141+
+------------+------------+----------------------+
134142
| long long | 8 bytes | sp + [3,10] |
135143
+------------+------------+----------------------+
136144
| float | 4 bytes | sp + [3,6] |
@@ -158,6 +166,8 @@ The LSB is located in the register on the far right of the expression, e.g. ``E:
158166
+------------+-------------------+
159167
| long | E:UHL |
160168
+------------+-------------------+
169+
| (u)int48_t | UDE:UHL |
170+
+------------+-------------------+
161171
| long long | BC:UDE:UHL |
162172
+------------+-------------------+
163173
| float | E:UHL |

src/ce/include/ti/vars.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ extern "C" {
182182

183183
/**
184184
* Name of L1 list variable.
185-
* Other matrix variables follow the naming format `OS_VAR_L?` where `?`
185+
* Other list variables follow the naming format `OS_VAR_L?` where `?`
186186
* is the value [1-6].
187187
*/
188188
#define OS_VAR_L1 "\x5D\x0\0"

src/libc/nanoprintf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
be nanoprintf.c. */
3737

3838
#define NANOPRINTF_IMPLEMENTATION
39+
#define NANOPRINTF_SNPRINTF_SAFE_TRIM_STRING_ON_OVERFLOW
3940

4041
#ifdef NANOPRINTF_IMPLEMENTATION
4142

0 commit comments

Comments
 (0)