This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:multiasm:exercisebook:pc:sut:scenarios_standalone [2026/05/20 15:39] – [Implementation of calculation functions] ktokarz | en:multiasm:exercisebook:pc:sut:scenarios_standalone [2026/05/20 15:57] (current) – [Implementation of calculation functions] ktokarz | ||
|---|---|---|---|
| Line 203: | Line 203: | ||
| mov r8, 3 ; 3rd argmument | mov r8, 3 ; 3rd argmument | ||
| mov r9, 4 ; 4th argmument | mov r9, 4 ; 4th argmument | ||
| - | mov r10, 6 | + | mov r11, 6 |
| - | push r10 ; 6th argument | + | push r11 ; 6th argument |
| mov r10, 5 | mov r10, 5 | ||
| push r10 ; 5th argument | push r10 ; 5th argument | ||
| | | ||
| - | sub rsp, 20h ; shadow space | + | sub rsp, 20h ; |
| | | ||
| call sum_6_int ; function call | call sum_6_int ; function call | ||
| Line 215: | Line 215: | ||
| mov rcx, rax ; result in rax | mov rcx, rax ; result in rax | ||
| </ | </ | ||
| + | |||
| + | The figure {{ref> | ||
| + | <figure ex_stack_caller_push> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||