Skip to content

Commit

Permalink
docs: correct example codes
Browse files Browse the repository at this point in the history
  • Loading branch information
atirut-w committed Jul 7, 2024
1 parent 3533cef commit 97901d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/calling-convention.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ These example roughly outlines how the compiler generate a function's prologue a
add ix, sp
; Now you can access arguments using ix
ld a, (ix+0)
ld a, (ix+2)
; Clean up and return
pop ix
Expand All @@ -67,7 +67,7 @@ These example roughly outlines how the compiler generate a function's prologue a
ld sp, iy
; Accessing arguments
ld a, (ix+0)
ld a, (ix+4)
; Accessing locals
ld (iy+0), a
Expand Down

0 comments on commit 97901d3

Please sign in to comment.