Exam text content

TIE-05200 Mikroprosessorit - 16.10.2014

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 16.10.2014

 

 

e Tentissäon sallittua käyttää tiedekunnan funktiolaskinta.

e Kirjoita selkeästi!!!!!
1 — Kirjoita alla olevaa assembly-kielistä ohjelmaa vastaava C-kielinen ohjelma.
Muuttujien nimet saat päättää itse. (6p)
0x09000024: LDR r2,[r11,4-8]
0x00000028: LDR r3,[r11,4-0xc]
0x09000002C: CMP m2:13
0x00090030: BNE main+68 ; Ox44
0x00090034: LDR r3,[r11,4-8]
0x90000038: SUB r3,r3,41
0x0080893C: STR r3,[r11,4-8]
0x00008040: B main+80 ; 9x50
0x00000944: LDR r3,[r11,%-0xc]
0x00000048: ADD P3SPI5S HL
0x0009004C: STR r3,[r11,%-Oxc]r3,[r11,t-0xc]
0x00000950:

2 Selosta edellisen ohjelman BNE — main+68 ; 0x44 -käskyn hakuun ja
suoritukseen liittyvät tapahtumat yksitellen (mieluiten ranskalaisin viivoin).
Oletetaan, että rekistereiden r2 ja r3 arvot ovat 7 ja 9. Aloita siitä, kun
ohjelmalaskurin arvo on sama kuin käskyn osoite 0x00000030. (6p)

3 Selitä yhdellä lauseella tai yhdellä kuvalla: (ä 1p)

a) ohjelmalaskuri

b) keskeytyksen prioriteetti

c) SRAM

d) väyläpuskuri / kolmitilapuskuri
e) käskykanta

f) pino-osoitin.

4 Selitä kahdella lauseella: (ä 2p)
a) muuttujien paikka muistissa

b) 10
c) ajoittimen pulssilaskuri.

5 — Kerro millaisissa sovelluksissa ajoitin-yksikköä voidaan hyödyntää. (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