Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
10
Task/Call-a-function/8086-Assembly/call-a-function-2.8086
Normal file
10
Task/Call-a-function/8086-Assembly/call-a-function-2.8086
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
push ax ;second argument
|
||||
push bx ;first argument - typically arguments are pushed in the reverse order they are listed.
|
||||
call foo
|
||||
pop bx
|
||||
pop ax
|
||||
|
||||
foo:
|
||||
push bp
|
||||
mov bp,sp
|
||||
;now bp+4 = the value pushed from BX, and bp+6 = the value pushed from AX
|
||||
Loading…
Add table
Add a link
Reference in a new issue