done?
This commit is contained in:
parent
61bb14b9e3
commit
ad8728bdf4
19 changed files with 335 additions and 47 deletions
21
ass1/horner.log
Normal file
21
ass1/horner.log
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
***** Section <default> *****
|
||||
Stats: size=61 blocks=61 symbols=10 literals=0 relocations=0
|
||||
Blocks
|
||||
name start size #ins #dir #sto
|
||||
<default> 00000 0003D 16 8 1
|
||||
Symbols
|
||||
name hex dec scope kind type description
|
||||
halt 000025 37 local relative code label
|
||||
poly 000000 0 exported relative code label
|
||||
rez 00003A 58 local relative data label
|
||||
start 000000 0 local relative code label
|
||||
x 000037 55 local relative data label
|
||||
x0 000034 52 local relative data label
|
||||
x1 000031 49 local relative data label
|
||||
x2 00002E 46 local relative data label
|
||||
x3 00002B 43 local relative data label
|
||||
x4 000028 40 local relative data label
|
||||
Literals
|
||||
label definition
|
||||
Relocations
|
||||
address length flag symbol
|
||||
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
|
||||
4
ass1/horner.obj
Normal file
4
ass1/horner.obj
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Hpoly 00000000003D
|
||||
T0000001E7720256F20319845032020905077201E9840905077201A98409050772016
|
||||
T00001E1C984090500F20153F2FFD000001000002000003000004000005000002
|
||||
E000000
|
||||
21
ass1/poly.log
Normal file
21
ass1/poly.log
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
***** Section <default> *****
|
||||
Stats: size=70 blocks=70 symbols=10 literals=0 relocations=0
|
||||
Blocks
|
||||
name start size #ins #dir #sto
|
||||
<default> 00000 00046 20 8 1
|
||||
Symbols
|
||||
name hex dec scope kind type description
|
||||
halt 00002E 46 local relative code label
|
||||
poly 000000 0 exported relative code label
|
||||
rez 000043 67 local relative data label
|
||||
start 000000 0 local relative code label
|
||||
x 000040 64 local relative data label
|
||||
x0 00003D 61 local relative data label
|
||||
x1 00003A 58 local relative data label
|
||||
x2 000037 55 local relative data label
|
||||
x3 000034 52 local relative data label
|
||||
x4 000031 49 local relative data label
|
||||
Literals
|
||||
label definition
|
||||
Relocations
|
||||
address length flag symbol
|
||||
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
|
||||
5
ass1/poly.obj
Normal file
5
ass1/poly.obj
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Hpoly 000000000046
|
||||
T0000001E03203A6B203A6F203777202E984590507720249834984590507720189834
|
||||
T00001E1E9845905077200C9834984590500F20153F2FFD0000010000020000030000
|
||||
T00003C0704000005000002
|
||||
E000000
|
||||
4
ass1/test.asm
Normal file
4
ass1/test.asm
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
poly START 0
|
||||
END poly
|
||||
|
||||
x1 WORD 1
|
||||
13
ass1/test.log
Normal file
13
ass1/test.log
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
***** Section <default> *****
|
||||
Stats: size=3 blocks=3 symbols=2 literals=0 relocations=0
|
||||
Blocks
|
||||
name start size #ins #dir #sto
|
||||
<default> 00000 00003 0 3 0
|
||||
Symbols
|
||||
name hex dec scope kind type description
|
||||
poly 000000 0 exported relative code label
|
||||
x1 000000 0 local relative data label
|
||||
Literals
|
||||
label definition
|
||||
Relocations
|
||||
address length flag symbol
|
||||
4
ass1/test.lst
Normal file
4
ass1/test.lst
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
00000 poly START 0
|
||||
00000 END poly
|
||||
|
||||
00000 000001 x1 WORD 1
|
||||
3
ass1/test.obj
Normal file
3
ass1/test.obj
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Hpoly 000000000003
|
||||
T00000003000001
|
||||
E000000
|
||||
Loading…
Add table
Add a link
Reference in a new issue