napisal horner.asm
This commit is contained in:
parent
adfb9848ed
commit
407e18269f
1 changed files with 22 additions and 0 deletions
22
ass1/horner.asm
Normal file
22
ass1/horner.asm
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
horner START 0
|
||||||
|
LDA #1
|
||||||
|
MUL x
|
||||||
|
|
||||||
|
ADD #2
|
||||||
|
MUL x
|
||||||
|
|
||||||
|
ADD #3
|
||||||
|
MUL x
|
||||||
|
|
||||||
|
ADD #4
|
||||||
|
MUL x
|
||||||
|
|
||||||
|
ADD #5
|
||||||
|
STA result
|
||||||
|
|
||||||
|
halt J halt
|
||||||
|
|
||||||
|
.podatki
|
||||||
|
x WORD 2
|
||||||
|
result RESW 1
|
||||||
|
END horner
|
||||||
Loading…
Add table
Add a link
Reference in a new issue