Warning
You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
examples [2019/05/07 15:33] – [Example 3: USR() function] neils | examples [2019/05/07 15:33] – [Example 3: USR() function] neils | ||
---|---|---|---|
Line 81: | Line 81: | ||
asl $0102,x | asl $0102,x | ||
rol $0101,x | rol $0101,x | ||
- | | ||
- | |||
| | ||
; Note this is the only valid way to return from an user function | ; Note this is the only valid way to return from an user function | ||
+ | ; The caller will pull back the result from the stack | ||
jmp ($02fe) | jmp ($02fe) | ||
" | " |