aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 5 insertions, 6 deletions
diff --git a/README.md b/README.md
index 3634079..144c28e 100644
--- a/README.md
+++ b/README.md
@@ -310,12 +310,11 @@ suffice, while other times using the memory might be needed. In any case:
## Registers are to be saved by the caller
-To make things easier when implementing functions, as a caller don't expect
-values on registers to survive to a function call. If there is important
-information to be kept or updated across calls, make sure to shadow it on memory
-addresses which are guaranteed to not be touched (on that check on the
-function's documentation!). Another option is to use the stack, but do so with
-caution as stack overflows are a real danger here.
+As a general rule, as a caller don't expect values on registers to survive to a
+function call. If there is important information to be kept or updated across
+calls, make sure to shadow it on memory addresses which are guaranteed to not be
+touched (on that check on the function's documentation!). Another option is to
+use the stack, but do so with caution as stack overflows are a real danger here.
## Reserve return values and arguments into zeropage