首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
代写EECS 113、Python/Java程序代做
项目预算:
开发周期:
发布时间:
要求地区:
Processor Hardware/Software Interface
EECS 113
Assignment 2
University of California, Irvine
Assigned: April, 21, 2024
Due: April, 30, 2024 by 11:59PM
1 8051 Microcontroller Programming using Edsim51
If you have not already installed Edsim51 simulator, follow these instructions:
http://www.edsim51.com/installationInstructions.html
To see a list of all assembly commands, visit the following link:
https://www.keil.com/support/man/docs/is51/is51_opcodes.htm
To see a list of all characters, visit the following link:
where each element is an 8-bit number, you are required to write a program
that computes the sum of products of the elements in each row, i.e. find (a*b)+(c*d) and store the result
in the memory. The matrix should be added in code memory starting from location 30H as strings
in ASCII format. To make the computations easier, the elements of the 2x2 matrix
a b
c d
should be
stored in a single array as follows: a,b,c,d. Use the following template to put the individual test cases
in your code memory:
ORG 0
SJMP MAIN
ORG 30H
N1: DB ”10,04,20,01” ;a=10, b=04, c=20, d=01
DB 0
ORG 50H
MAIN: ...
1
To run arithmetic operations on numbers in string format, you have to convert the strings to decimal
numbers. For instance, the {0x36H,0x34H,0x39H,0x30H} sequence represents the number 6490. Check
the ASCII table for full details on ASCII representation. Each character in this string (including the
commas) will be stored in an 8-bit memory location, so for the example given above, the code memory
starting address 30H will look as follows:
(30H)=0x31H, (31H)=0x30H, (32H)=0x2cH, (33H)=0x30H, (34H)=0x34H, (35H)=0x2cH,
(36H)=0x32H, (37H)=0x30H, (38H)=0x2cH, (39H)=0x30H, (3AH)=0x31H.
You can use the DPTR to point to data in your code memory. The steps that your program needs to
go through are:
1. Initialize the DPTR to N1 and initialize any registers that you might need.
2. loop over the digits one-by-one by increasing DPTR until you reach a comma to find the value of
the first element a and store it in the register R2.
3. go through another round of loading the digits one-by-one until you reach a comma to find the
second element b and store it in register R3.
4. multiply a and b and save the 16-bit output in locations 50H (MSB) 51H (LSB) in data memory.
5. repeat the previous process for c and d, and add the result from a*b and store it back in memory
locations 50H and 51H. Keep in mind that this addition operation should be computed on 16-bit
values, so you can use what you learned in Assignment 1!
You can use the comma and null characters, along with conditional jumps to determine if you have
reached the end of the ASCII representation of an element and jump to the next step in your program.
Store the 16-bit output result on location 50H(MSB) and 51H(LSB) on the data memory as regular
hexadecimal numbers. You do not need to convert the output to string! The input numbers are 8 bits
or less than 256.
Test your code for the following cases:
Case1: a=02, b=12, c=15, d=03
EXPECTED OUTPUT: 50H=00H , 51H=45H (2*12+15*3 = 69 which is 45H in hex system)
Case2: a=40, b=07, c=36, d=10
EXPECTED OUTPUT: 50H=02H, 51H=80H (40*07+36*10 = 640 which is 280H in hex system)
2 Bonus point (10%)
Save the output in decimal system and in ASCII format, i.e. convert each digit to ASCII representation
and save them on data memory, starting from 60H. The most significant digit should be stored in 60H.
You can assume the output is always less than 256 (8 bits).
Case1: a=02, b=12, c=15, d=03,
EXPECTED OUTPUT: (50H)=00H, (51H)=45H, (60H)=30H, (61H)=30H, (62H)=34H, (63H)=35H
(0045 in ASCII is 00003435H)
Case2: a=40, b=07, c=36, d=10
EXPECTED OUTPUT: (50H)=02H, (51H)=80H (60H)=30H, (61H)=32H, (62H)=38H, (63H)=30H
(0280 in ASCII is 00323830H)
2
3 Assignment Deliverable
- To facilitate the grading process, submit a .txt file for the code and a .pdf file for the report.
- Your code should be commented and easy to read.
- Your report should contain brief details on how the code works, plus the screenshots showing the final
memory and register values for each test case.
- Submit the assignment before the deadline through Canvas.
3
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做ceng0013 design of a pro...
2024-11-13
代做mech4880 refrigeration a...
2024-11-13
代做mcd1350: media studies a...
2024-11-13
代写fint b338f (autumn 2024)...
2024-11-13
代做engd3000 design of tunab...
2024-11-13
代做n1611 financial economet...
2024-11-13
代做econ 2331: economic and ...
2024-11-13
代做cs770/870 assignment 8代...
2024-11-13
代写amath 481/581 autumn qua...
2024-11-13
代做ccc8013 the process of s...
2024-11-13
代写csit040 – modern comput...
2024-11-13
代写econ 2070: introduc2on t...
2024-11-13
代写cct260, project 2 person...
2024-11-13
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!