Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
call foo
|
||||
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
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
foo:
|
||||
ld ax,word ptr[ds:bar] ;load from bar, which is a 16 bit storage location in the data segment (DS), into AX
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
mov AH,4Ch
|
||||
mov AL,00h
|
||||
int 21h
|
||||
Loading…
Add table
Add a link
Reference in a new issue