Exam text content

TIE-05200 Mikroprosessorit - 17.10.2016

Exam text content

The text is generated with Optical Image Recognition from the original exam file and it can therefore contain erroneus or incomplete information. For example, mathematical symbols cannot be rendered correctly. The text is mainly used for generating search results.

Original exam
TTY TIE-05200 Mikroprosessorit 4 op

Matti Haavisto Tentti 17.10.2016

 

e Eilaskinta, ei lisämateriaalia.
e Kirjoita/piirrä selkeästi!!!!!

1 — Kirjoita yhtälö, jonka alla oleva ohjelma laskee. Muuttujien nimet saat päättää itse.

GP)

yhtalo:
0x000000AC: PUSH (111)
Ox09Ra00Bv: ADD r11,sp,t0
0x000090B4: SUB sp,sp,t0x18
0x000000B8: LDR r2,[r11,4-0x14]
0x000000BC: LDR r3,[r11,4-0x10]
0x0080000co: ADD [35 R35 12.
0x0900008C4: LDR r2,[r11,4-0x10]
0x008000c8: MUL 13,r2,r3 ; multiply by...
0x00000acc: SUB r3,r3,45
0x0R00aaDo: STR r3,[111,4-8]
0x000000D4: LDR r3,[111,4-8]
0x008090D8: MOv r0,r3
0x00090LDc: ADD sp,r11,t0
0x000000EL: POP (r11)
0x000000E4: BX 1r

2 Selosta edellisen ohjelman BX > 1x -käskyn hakuun ja suoritukseen liittyvät
tapahtumat yksitellen (mieluiten ranskalaisin viivoin). Aloita siitä, kun
ohjelmalaskurin arvo on sama kuin käskyn osoite 0x000000F4. (7p)

3 — Piirrä kuva pinon sisällöstä yllä olevan ohjelman suoritushetkellä (siltä osin kuin
pinon sisällöstä tiedetään). Käytä tehtävän 1 muuttujien nimiä. (6p)

4 Selitä lyhyesti
a) konekielinen käsky (2p)
b) ohjelmalaskuri (program counter, PC) (2p)
€) osoiteväylä. (2p)

5 Selitä keskeytysten mekanismi. (6p)


We use cookies

This website uses cookies, including third-party cookies, only for necessary purposes such as saving settings on the user's device, keeping track of user sessions and for providing the services included on the website. This website also collects other data, such as the IP address of the user and the type of web browser used. This information is collected to ensure the operation and security of the website. The collected information can also be used by third parties to enable the ordinary operation of the website.

FI / EN