done?
This commit is contained in:
parent
61bb14b9e3
commit
ad8728bdf4
19 changed files with 335 additions and 47 deletions
42
ass1/poly.lst
Normal file
42
ass1/poly.lst
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
00000 poly START 0
|
||||
00000 03203A start LDA x0 . pristejemo x0 v A
|
||||
|
||||
00003 6B203A LDB x
|
||||
00006 6F2037 LDS x
|
||||
00009 77202E LDT x1
|
||||
0000C 9845 MULR S,T
|
||||
0000E 9050 ADDR T,A . pristejemo x0 * x
|
||||
|
||||
00010 772024 LDT x2
|
||||
00013 9834 MULR B,S . izracunamo x^2
|
||||
00015 9845 MULR S,T
|
||||
00017 9050 ADDR T,A
|
||||
|
||||
00019 772018 LDT x3
|
||||
0001C 9834 MULR B,S . izracunamo x^3
|
||||
0001E 9845 MULR S,T
|
||||
00020 9050 ADDR T,A
|
||||
|
||||
00022 77200C LDT x4
|
||||
00025 9834 MULR B,S . izracunamo x^4
|
||||
00027 9845 MULR S,T
|
||||
00029 9050 ADDR T,A
|
||||
|
||||
0002B 0F2015 STA rez
|
||||
|
||||
0002E 3F2FFD halt J halt
|
||||
00031 END start
|
||||
|
||||
|
||||
. polinom
|
||||
00031 000001 x4 WORD 1
|
||||
00034 000002 x3 WORD 2
|
||||
00037 000003 x2 WORD 3
|
||||
0003A 000004 x1 WORD 4
|
||||
0003D 000005 x0 WORD 5
|
||||
|
||||
. tocka
|
||||
00040 000002 x WORD 2
|
||||
|
||||
. rezultat
|
||||
00043 000000 rez RESW 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue