0% found this document useful (0 votes)
5 views

Matlab Record 3

The document appears to contain source code and instructions for performing vector operations like addition and convolution on arrays of data using assembly language. It includes code segments, data arrays, and output showing the results of the operations.

Uploaded by

teja roop
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Matlab Record 3

The document appears to contain source code and instructions for performing vector operations like addition and convolution on arrays of data using assembly language. It includes code segments, data arrays, and output showing the results of the operations.

Uploaded by

teja roop
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

T154X

2 files to be loaded in
Every projectwe make.

vector. arm: -

nee

·set - (_int00

text:6__intoo

i.(and

sname of your bike].065


-
O test 3. out

-
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

table:> RAM PAGES

3
vectors
Addition of
a
two
nee

Aim: To pestorm addition to 10 nutell.


a re

stwere configuredion:- Windows version: -Windows De

Gode:-
·
mm legs

·self"table"

datal. Word 1, 2, 3, 1, 2, 3, 1,2,3,0

dataz.Word 5,4,315, 4,3,514,3,5

detes. Word 0,0,0,0,0,0,0,0,0,0

·
Seef "Code"

include "vector.asm"

-
2_ int00:

Stm #detal, aro

Stm #datar, or i

Stm #detas, are

Id #0,6

Str 19h, bre

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

Aim: To pestorm convolution


a re

stwere configuredion:- Windows version: -Windows De

Code: -

·
mm legs

·self"table"

data, word 0,0,0,3,4,5

woed 0,0,0,0

-
6sS 3, 7, 1

·
Seef "Code"

include "vector.asm"

-
2_ int00:

Stm data tah, are

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)

banz loop, *ar5-

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

Aim: To pestorm convolution firs


a re
using

stwere configuredion:- Windows version: -Windows De

Code: -

·
mm legs

·self"table"

data. Word 0,0,0,

word 1, 2, 3, 3,5

.
wosd 0,0,0

·
Seef "Code"

include "vector.asm"

-
2_ int00:

Stm #1094, are

Str #108h, ars

Strn #1574,984

Stan #84, 605

loop: Id #0,9

Id # 0,6

Id erz+, 16, a

add P&W3-, 16, a

~p1#1

fies *arzt, *ar3-,COEA

Stl6, *arl-

mar *+ar2(1)

mar *far3(2)

banz loop, Aar5-


LOOP End:

nop

nup

b loopend

CO2b. Word 2, I

output: -

0150:14 9 F 1515 E5

You might also like