diff options
| -rw-r--r-- | README.md | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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 |
