done?
This commit is contained in:
parent
61bb14b9e3
commit
ad8728bdf4
19 changed files with 335 additions and 47 deletions
38
ass1/horner.lst
Normal file
38
ass1/horner.lst
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
00000 poly START 0
|
||||
00000 772025 start LDT x4
|
||||
00003 6F2031 LDS x
|
||||
00006 9845 MULR S,T
|
||||
00008 032020 LDA x3
|
||||
0000B 9050 ADDR T,A . do sedaj izračunano (1x + 2)
|
||||
|
||||
0000D 77201E LDT x2
|
||||
00010 9840 MULR S,A
|
||||
00012 9050 ADDR T,A . do sedaj izračunano ((1x+2)x + 3)
|
||||
|
||||
00014 77201A LDT x1
|
||||
00017 9840 MULR S,A
|
||||
00019 9050 ADDR T,A . do sedaj izračunano (((1x+2)x + 3)x + 4)
|
||||
|
||||
0001B 772016 LDT x0
|
||||
0001E 9840 MULR S,A
|
||||
00020 9050 ADDR T,A . do sedaj izračunano (((1x+2)x + 3)x + 4)x + 5
|
||||
|
||||
|
||||
00022 0F2015 STA rez
|
||||
|
||||
00025 3F2FFD halt J halt
|
||||
00028 END start
|
||||
|
||||
|
||||
. polinom
|
||||
00028 000001 x4 WORD 1
|
||||
0002B 000002 x3 WORD 2
|
||||
0002E 000003 x2 WORD 3
|
||||
00031 000004 x1 WORD 4
|
||||
00034 000005 x0 WORD 5
|
||||
|
||||
. tocka
|
||||
00037 000002 x WORD 2
|
||||
|
||||
. rezultat
|
||||
0003A 000000 rez RESW 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue