Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,7 +1,24 @@
|
|||
multiply proc arg1:dword, arg2:dword
|
||||
mov eax, arg1
|
||||
mov ebx, arg2
|
||||
section .text
|
||||
global _start
|
||||
|
||||
_multiply_regs:
|
||||
mul ebx
|
||||
mov eax, ebx
|
||||
ret
|
||||
multiply endp
|
||||
|
||||
_multiply_stack:
|
||||
enter 2,0
|
||||
mov eax, [esp+4]
|
||||
mov ebx, [esp+8]
|
||||
mul ebx
|
||||
mov eax, ebx
|
||||
leave
|
||||
ret
|
||||
|
||||
_start:
|
||||
mov ax, 6 ;The number to multiply by
|
||||
mov ebx, 16 ;base number to multiply.
|
||||
call _multiply_regs
|
||||
push 6
|
||||
push 16
|
||||
call _multiply_stack
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue