langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
|
|
@ -0,0 +1,24 @@
|
|||
section .text
|
||||
global _start
|
||||
|
||||
_multiply_regs:
|
||||
mul ebx
|
||||
mov eax, ebx
|
||||
ret
|
||||
|
||||
_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
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
multiply proc arg1:dword, arg2:dword
|
||||
mov eax, arg1
|
||||
mov ebx, arg2
|
||||
mul ebx
|
||||
mov eax, ebx
|
||||
ret
|
||||
multiply endp
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
invoke multiply, 6, 16
|
||||
;or..
|
||||
push 16
|
||||
push 6
|
||||
call multiply
|
||||
Loading…
Add table
Add a link
Reference in a new issue