Matlab Record 3
Matlab Record 3
2 files to be loaded in
Every projectwe make.
vector. arm: -
nee
·set - (_int00
text:6__intoo
i.(and
-
m tests.
Map
memory
4 PAGE
1:
RAM: 1t
099 0200h, 0100h
= =
PAGE 0;
Rom:
Oeg:0900h, len=08sh
3
SECTIONS
E
code:DROM PAGEO
3
vectors
Addition of
a
two
nee
Gode:-
·
mm legs
·self"table"
·
Seef "Code"
include "vector.asm"
-
2_ int00:
Stm #datar, or i
Id #0,6
rpt6 100pend-1
add aro+, 6
A
add * arIt, 6
Ste 6, 1922 +
Id # 0,6
loopend:
↳Op
no
6 loopend
output:
datar 3 (menoss)
0x 0114: b
0 115:
0x 6
0x 0116:6
0 x 0 117:S
6
0 118:
0 x
0119: 6
0x
0x0120: S
0121: 6
0x
6
0x Ole2:
0x 12 3:5
convolution
nee
Code: -
·
mm legs
·self"table"
woed 0,0,0,0
-
6sS 3, 7, 1
·
Seef "Code"
include "vector.asm"
-
2_ int00:
Str #3 + 7, ar3
Strn #07h,205
loop: Id #0,6
upt#64
macd *ar2-,1088, 6
delsy *
arz-
Stil 6, a
913 -
mar -
*
(vz(1)
LOOP End:
nop
nup
b lo open d
C02b.Word 1, 2, 3, 4, 5
.
wold 0,0,0,0
output: -
an
0x010A:3 A 2E
28 19
1622
Convolution using FIRS
are a
Code: -
·
mm legs
·self"table"
word 1, 2, 3, 3,5
.
wosd 0,0,0
·
Seef "Code"
include "vector.asm"
-
2_ int00:
Strn #1574,984
loop: Id #0,9
Id # 0,6
Id erz+, 16, a
~p1#1
Stl6, *arl-
mar *+ar2(1)
mar *far3(2)
nop
nup
b loopend
CO2b. Word 2, I
output: -
0150:14 9 F 1515 E5