September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
22
Task/Arithmetic-Integer/X86-Assembly/arithmetic-integer.x86
Normal file
22
Task/Arithmetic-Integer/X86-Assembly/arithmetic-integer.x86
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
arithm: mov cx, a
|
||||
mov bx, b
|
||||
xor dx, dx
|
||||
|
||||
mov ax, cx
|
||||
add ax, bx
|
||||
mov sum, ax
|
||||
|
||||
mov ax, cx
|
||||
imul bx
|
||||
mov product, ax
|
||||
|
||||
mov ax, cx
|
||||
sub ax, bx
|
||||
mov difference, ax
|
||||
|
||||
mov ax, cx
|
||||
idiv bx
|
||||
mov quotient, ax
|
||||
mov remainder, dx
|
||||
|
||||
ret
|
||||
Loading…
Add table
Add a link
Reference in a new issue