initial commit
This commit is contained in:
commit
4219ee484f
7 changed files with 231 additions and 0 deletions
38
ass1/horner.asm
Normal file
38
ass1/horner.asm
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
poly START 0
|
||||
start LDT x4
|
||||
LDS x
|
||||
MULR S, T
|
||||
LDA x3
|
||||
ADDR T, A . do sedaj izračunano (1x + 2)
|
||||
|
||||
LDT x2
|
||||
MULR S, A
|
||||
ADDR T, A .do sedaj izračunano ((1x+2)x + 3)
|
||||
|
||||
LDT x1
|
||||
MULR S, A
|
||||
ADDR T, A .do sedaj izračunano (((1x+2)x + 3)x + 4)
|
||||
|
||||
LDT x0
|
||||
MULR S, A
|
||||
ADDR T, A .do sedaj izračunano (((1x+2)x + 3)x + 4)x + 5
|
||||
|
||||
|
||||
STA rez
|
||||
|
||||
halt J halt
|
||||
END start
|
||||
|
||||
|
||||
.polinom
|
||||
x4 WORD 1
|
||||
x3 WORD 2
|
||||
x2 WORD 3
|
||||
x1 WORD 4
|
||||
x0 WORD 5
|
||||
|
||||
.tocka
|
||||
x WORD 2
|
||||
|
||||
.rezultat
|
||||
rez RESW 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue