---
# System prepended metadata

title: CAOS Exercise Session Lecture 6

---

# CAOS Exercise Session Lecture 6

## Problem 4.1
![](https://i.imgur.com/89sKETy.png)



```
0x100 : 30F3000000000000000F // irmovq
0x10A : 2031 // rrmovq
0x10C : 4013FFFFFFFFFFFFFFFD // rmmovq
0x11C : 6031 // addq
0x11E : 70000000000000011E
```

## Problem 4.2 A, B

![](https://i.imgur.com/FhRYmbK.png)

```
a) 0x100: 30 f 3 fcffffffffffffff 
   0x10A: 40 6 3 0008000000000000
b) 0x200: a0 6 f 
   0x202: 80 0c02000000000000 
   0x20B: 00 
   0x20C: 30 f 3 0a00000000000000
c) 0x300: 50 5 4 0700000000000000
          10
          f0
          b0 1 f
d) 0x400: 611373000400000000000000
e) 0x500: 6362a0f0

a)
irmovq $-4, %rbx
rmmovq %rsi, $2048(%rbx)
b)
pushq %rsi
call $524
halt
irmovq $10, %rbx

c) 
mrmovq %rbp, 

```


## Problem 4.13
![](https://i.imgur.com/vJWurqG.png)
![](https://i.imgur.com/xrmZnCi.png)

Fetch:

```
3:0 <- M_1[PC]
F:4 <- M_1[PC + 1]
```