Page size 8192; 32 pages;8 frames
Process primesx index 0
Physical address / Virtual address / Instruction
Loading to frame 0
0x0 0x0 0x2ef0
0x1 0x1 0xf
0x2 0x2 0xe12
0x3 0x3 0xf
0x4 0x4 0xe42
0x5 0x5 0x2ff0
0x6 0x6 0x2f20
0x7 0x7 0x3090
0x8 0x8 0x2da0
0x9 0x9 0x2eb0
0xa 0xa 0x3150
0xb 0xb 0xa94
0xc 0xc 0x9495
0xd 0xd 0x76598
0xe 0xe 0x792
0xf 0xf 0x29
0x10 0x10 0x612b
0x11 0x11 0xb6d
0x12 0x12 0x2e20
0x13 0x13 0x30a0
0x14 0x14 0x29
0x15 0x15 0x6427
0x16 0x16 0x76a5
0x17 0x17 0x98578
0x18 0x18 0x963
0x19 0x19 0x1d6d
0x1a 0x1a 0x921b
0x1b 0x1b 0x2b9d
0x1c 0x1c 0x140c
0x1d 0x1d 0x2e2
0x1e 0x1e 0xf
0x1f 0x1f 0x8227
0x20 0x20 0x981b
0x21 0x21 0x149d
0x22 0x22 0x232
0x23 0x23 0x6437
0x24 0x24 0x76a5
0x25 0x25 0x98578
0x26 0x26 0xb94
0x27 0x27 0x3235
0x28 0x28 0x813b
0x29 0x29 0x238d
0x2a 0x2a 0x140c
0x2b 0x2b 0x2df0
0x2c 0x2c 0xf
0x2d 0x2d 0x0
0x2e 0x2e 0x1
0x2f 0x2f 0x2
0x30 0x30 0x64
0x31 0x31 0x20000

Machine cycle: 0
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
address 0x0 instruction 0x2ef0
Instruction 0x0 : LOA R15 Address 0x2e
Reading from page 0

Machine cycle: 1
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
address 0x1 instruction 0xf
Instruction 0x1 : TRP
Process primesx index 0 Trap:  Read
    READ 12

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 2
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 2 0 0 0 0 0 0 0 0 0 0 0 0 1 12 1
address 0x2 instruction 0xe12
Instruction 0x2 : CPR R1 R14

Machine cycle: 3
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 3 12 0 0 0 0 0 0 0 0 0 0 0 1 12 1
address 0x3 instruction 0xf
Instruction 0x3 : TRP
Process primesx index 0 Trap:  Read
    READ 8193

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 4
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 4 12 0 0 0 0 0 0 0 0 0 0 0 1 8193 1
address 0x4 instruction 0xe42
Instruction 0x4 : CPR R4 R14

Machine cycle: 5
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 5 12 0 0 8193 0 0 0 0 0 0 0 0 1 8193 1
address 0x5 instruction 0x2ff0
Instruction 0x5 : LOA R15 Address 0x2f
Reading from page 0

Machine cycle: 6
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 6 12 0 0 8193 0 0 0 0 0 0 0 0 1 8193 2
address 0x6 instruction 0x2f20
Instruction 0x6 : LOA R2 Address 0x2f
Reading from page 0

Machine cycle: 7
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 7 12 2 0 8193 0 0 0 0 0 0 0 0 1 8193 2
address 0x7 instruction 0x3090
Instruction 0x7 : LOA R9 Address 0x30
Reading from page 0

Machine cycle: 8
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 8 12 2 0 8193 0 0 0 0 100 0 0 0 1 8193 2
address 0x8 instruction 0x2da0
Instruction 0x8 : LOA R10 Address 0x2d
Reading from page 0

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 9
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 9 12 2 0 8193 0 0 0 0 100 0 0 0 1 8193 2
address 0x9 instruction 0x2eb0
Instruction 0x9 : LOA R11 Address 0x2e
Reading from page 0

Machine cycle: 10
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 10 12 2 0 8193 0 0 0 0 100 0 1 0 1 8193 2
address 0xa instruction 0x3150
Instruction 0xa : LOA R5 Address 0x31
Reading from page 0

Machine cycle: 11
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 11 12 2 0 8193 131072 0 0 0 100 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 0

Machine cycle: 12
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 12 12 2 0 8193 131072 0 0 0 100 0 1 0 1 8193 2
address 0xc instruction 0x9495
Instruction 0xc : ADD R9 R4 R9

Machine cycle: 13
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 13 12 2 0 8193 131072 0 0 0 8293 0 1 0 1 8193 2
address 0xd instruction 0x76598
Instruction 0xd : DIV R9 R5 R6 R7

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 14
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 14 12 2 0 8193 131072 0 8293 0 8293 0 1 0 1 8193 2
address 0xe instruction 0x792
Instruction 0xe : CPR R9 R7

Machine cycle: 15
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 15 12 2 0 8193 131072 0 8293 0 8293 0 1 0 1 8193 2
address 0xf instruction 0x29
Instruction 0xf : ICR R2

Machine cycle: 16
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 16 12 3 0 8193 131072 0 8293 0 8293 0 1 0 1 8193 2
address 0x10 instruction 0x612b
Instruction 0x10 : GTR R2 R1 R6

Machine cycle: 17
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 17 12 3 0 8193 131072 0 8293 0 8293 0 1 0 1 8193 2
address 0x11 instruction 0xb6d
Instruction 0x11 : IFZ R6 Address 0xb

Machine cycle: 18
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 11 12 3 0 8193 131072 0 8293 0 8293 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 1
Page fault: process 0 page 1
Found free frame 1

Machine cycle: 19
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 11 12 3 0 8193 131072 0 8293 0 8293 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 1

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 20
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 12 12 3 0 8193 131072 0 8293 0 8293 0 1 0 1 8193 2
address 0xc instruction 0x9495
Instruction 0xc : ADD R9 R4 R9

Machine cycle: 21
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 13 12 3 0 8193 131072 0 8293 0 16486 0 1 0 1 8193 2
address 0xd instruction 0x76598
Instruction 0xd : DIV R9 R5 R6 R7

Machine cycle: 22
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 14 12 3 0 8193 131072 0 16486 0 16486 0 1 0 1 8193 2
address 0xe instruction 0x792
Instruction 0xe : CPR R9 R7

Machine cycle: 23
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 15 12 3 0 8193 131072 0 16486 0 16486 0 1 0 1 8193 2
address 0xf instruction 0x29
Instruction 0xf : ICR R2

Machine cycle: 24
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 16 12 4 0 8193 131072 0 16486 0 16486 0 1 0 1 8193 2
address 0x10 instruction 0x612b
Instruction 0x10 : GTR R2 R1 R6

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 25
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 17 12 4 0 8193 131072 0 16486 0 16486 0 1 0 1 8193 2
address 0x11 instruction 0xb6d
Instruction 0x11 : IFZ R6 Address 0xb

Machine cycle: 26
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 11 12 4 0 8193 131072 0 16486 0 16486 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 2
Page fault: process 0 page 2
Found free frame 2

Machine cycle: 27
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 11 12 4 0 8193 131072 0 16486 0 16486 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 2

Machine cycle: 28
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 12 12 4 0 8193 131072 0 16486 0 16486 0 1 0 1 8193 2
address 0xc instruction 0x9495
Instruction 0xc : ADD R9 R4 R9

Machine cycle: 29
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 13 12 4 0 8193 131072 0 16486 0 24679 0 1 0 1 8193 2
address 0xd instruction 0x76598
Instruction 0xd : DIV R9 R5 R6 R7

Machine cycle: 30
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 14 12 4 0 8193 131072 0 24679 0 24679 0 1 0 1 8193 2
address 0xe instruction 0x792
Instruction 0xe : CPR R9 R7

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 31
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 15 12 4 0 8193 131072 0 24679 0 24679 0 1 0 1 8193 2
address 0xf instruction 0x29
Instruction 0xf : ICR R2

Machine cycle: 32
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 16 12 5 0 8193 131072 0 24679 0 24679 0 1 0 1 8193 2
address 0x10 instruction 0x612b
Instruction 0x10 : GTR R2 R1 R6

Machine cycle: 33
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 17 12 5 0 8193 131072 0 24679 0 24679 0 1 0 1 8193 2
address 0x11 instruction 0xb6d
Instruction 0x11 : IFZ R6 Address 0xb

Machine cycle: 34
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 11 12 5 0 8193 131072 0 24679 0 24679 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 3
Page fault: process 0 page 3
Found free frame 3

Machine cycle: 35
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 11 12 5 0 8193 131072 0 24679 0 24679 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 3

Machine cycle: 36
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 12 12 5 0 8193 131072 0 24679 0 24679 0 1 0 1 8193 2
address 0xc instruction 0x9495
Instruction 0xc : ADD R9 R4 R9

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 37
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 13 12 5 0 8193 131072 0 24679 0 32872 0 1 0 1 8193 2
address 0xd instruction 0x76598
Instruction 0xd : DIV R9 R5 R6 R7

Machine cycle: 38
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 14 12 5 0 8193 131072 0 32872 0 32872 0 1 0 1 8193 2
address 0xe instruction 0x792
Instruction 0xe : CPR R9 R7

Machine cycle: 39
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 15 12 5 0 8193 131072 0 32872 0 32872 0 1 0 1 8193 2
address 0xf instruction 0x29
Instruction 0xf : ICR R2

Machine cycle: 40
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 16 12 6 0 8193 131072 0 32872 0 32872 0 1 0 1 8193 2
address 0x10 instruction 0x612b
Instruction 0x10 : GTR R2 R1 R6

Machine cycle: 41
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 17 12 6 0 8193 131072 0 32872 0 32872 0 1 0 1 8193 2
address 0x11 instruction 0xb6d
Instruction 0x11 : IFZ R6 Address 0xb

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 42
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 11 12 6 0 8193 131072 0 32872 0 32872 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 4
Page fault: process 0 page 4
Found free frame 4

Machine cycle: 43
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 11 12 6 0 8193 131072 0 32872 0 32872 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 4

Machine cycle: 44
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 12 12 6 0 8193 131072 0 32872 0 32872 0 1 0 1 8193 2
address 0xc instruction 0x9495
Instruction 0xc : ADD R9 R4 R9

Machine cycle: 45
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 13 12 6 0 8193 131072 0 32872 0 41065 0 1 0 1 8193 2
address 0xd instruction 0x76598
Instruction 0xd : DIV R9 R5 R6 R7

Machine cycle: 46
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 14 12 6 0 8193 131072 0 41065 0 41065 0 1 0 1 8193 2
address 0xe instruction 0x792
Instruction 0xe : CPR R9 R7

Machine cycle: 47
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 15 12 6 0 8193 131072 0 41065 0 41065 0 1 0 1 8193 2
address 0xf instruction 0x29
Instruction 0xf : ICR R2

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 48
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 16 12 7 0 8193 131072 0 41065 0 41065 0 1 0 1 8193 2
address 0x10 instruction 0x612b
Instruction 0x10 : GTR R2 R1 R6

Machine cycle: 49
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 17 12 7 0 8193 131072 0 41065 0 41065 0 1 0 1 8193 2
address 0x11 instruction 0xb6d
Instruction 0x11 : IFZ R6 Address 0xb

Machine cycle: 50
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 11 12 7 0 8193 131072 0 41065 0 41065 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 5
Page fault: process 0 page 5
Found free frame 5

Machine cycle: 51
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 11 12 7 0 8193 131072 0 41065 0 41065 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 5

Machine cycle: 52
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 12 12 7 0 8193 131072 0 41065 0 41065 0 1 0 1 8193 2
address 0xc instruction 0x9495
Instruction 0xc : ADD R9 R4 R9

Machine cycle: 53
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 13 12 7 0 8193 131072 0 41065 0 49258 0 1 0 1 8193 2
address 0xd instruction 0x76598
Instruction 0xd : DIV R9 R5 R6 R7

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 54
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 14 12 7 0 8193 131072 0 49258 0 49258 0 1 0 1 8193 2
address 0xe instruction 0x792
Instruction 0xe : CPR R9 R7

Machine cycle: 55
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 15 12 7 0 8193 131072 0 49258 0 49258 0 1 0 1 8193 2
address 0xf instruction 0x29
Instruction 0xf : ICR R2

Machine cycle: 56
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 16 12 8 0 8193 131072 0 49258 0 49258 0 1 0 1 8193 2
address 0x10 instruction 0x612b
Instruction 0x10 : GTR R2 R1 R6

Machine cycle: 57
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 17 12 8 0 8193 131072 0 49258 0 49258 0 1 0 1 8193 2
address 0x11 instruction 0xb6d
Instruction 0x11 : IFZ R6 Address 0xb

Machine cycle: 58
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 11 12 8 0 8193 131072 0 49258 0 49258 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 6
Page fault: process 0 page 6
Found free frame 6

Machine cycle: 59
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 11 12 8 0 8193 131072 0 49258 0 49258 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 6

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 60
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 12 12 8 0 8193 131072 0 49258 0 49258 0 1 0 1 8193 2
address 0xc instruction 0x9495
Instruction 0xc : ADD R9 R4 R9

Machine cycle: 61
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 13 12 8 0 8193 131072 0 49258 0 57451 0 1 0 1 8193 2
address 0xd instruction 0x76598
Instruction 0xd : DIV R9 R5 R6 R7

Machine cycle: 62
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 14 12 8 0 8193 131072 0 57451 0 57451 0 1 0 1 8193 2
address 0xe instruction 0x792
Instruction 0xe : CPR R9 R7

Machine cycle: 63
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 15 12 8 0 8193 131072 0 57451 0 57451 0 1 0 1 8193 2
address 0xf instruction 0x29
Instruction 0xf : ICR R2

Machine cycle: 64
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 16 12 9 0 8193 131072 0 57451 0 57451 0 1 0 1 8193 2
address 0x10 instruction 0x612b
Instruction 0x10 : GTR R2 R1 R6

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 65
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 17 12 9 0 8193 131072 0 57451 0 57451 0 1 0 1 8193 2
address 0x11 instruction 0xb6d
Instruction 0x11 : IFZ R6 Address 0xb

Machine cycle: 66
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 11 12 9 0 8193 131072 0 57451 0 57451 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 7
Page fault: process 0 page 7
Found free frame 7

Machine cycle: 67
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 11 12 9 0 8193 131072 0 57451 0 57451 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 7

Machine cycle: 68
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 12 12 9 0 8193 131072 0 57451 0 57451 0 1 0 1 8193 2
address 0xc instruction 0x9495
Instruction 0xc : ADD R9 R4 R9

Machine cycle: 69
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 13 12 9 0 8193 131072 0 57451 0 65644 0 1 0 1 8193 2
address 0xd instruction 0x76598
Instruction 0xd : DIV R9 R5 R6 R7

Machine cycle: 70
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 14 12 9 0 8193 131072 0 65644 0 65644 0 1 0 1 8193 2
address 0xe instruction 0x792
Instruction 0xe : CPR R9 R7

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 71
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 15 12 9 0 8193 131072 0 65644 0 65644 0 1 0 1 8193 2
address 0xf instruction 0x29
Instruction 0xf : ICR R2

Machine cycle: 72
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 16 12 10 0 8193 131072 0 65644 0 65644 0 1 0 1 8193 2
address 0x10 instruction 0x612b
Instruction 0x10 : GTR R2 R1 R6

Machine cycle: 73
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 17 12 10 0 8193 131072 0 65644 0 65644 0 1 0 1 8193 2
address 0x11 instruction 0xb6d
Instruction 0x11 : IFZ R6 Address 0xb

Machine cycle: 74
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 11 12 10 0 8193 131072 0 65644 0 65644 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 8
Page fault: process 0 page 8

Calling page replacement algorithm
Frame 0 Process 0 Page 0 Time 74
Frame 1 Process 0 Page 1 Time 19
Frame 2 Process 0 Page 2 Time 27
Frame 3 Process 0 Page 3 Time 35
Frame 4 Process 0 Page 4 Time 43
Frame 5 Process 0 Page 5 Time 51
Frame 6 Process 0 Page 6 Time 59
Frame 7 Process 0 Page 7 Time 67
Using frame 1
Writing out dirty page 1 of process 0 in frame 1

Machine cycle: 75
Pagetable[2].frame 2
Pagetable[2].frame 2
IDLE Time: 76

Machine cycle: 76
Writing to disk address 8192 from RAM address 8192
Pagetable[2].frame 2
Disk task complete: frame 1 written out
Unblocking and running process 0
Pagetable[2].frame 2
Reading from page 0
Registers: 
 11 12 10 0 8193 131072 0 65644 0 65644 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 8

Machine cycle: 77
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 12 12 10 0 8193 131072 0 65644 0 65644 0 1 0 1 8193 2
address 0xc instruction 0x9495
Instruction 0xc : ADD R9 R4 R9

Machine cycle: 78
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 13 12 10 0 8193 131072 0 65644 0 73837 0 1 0 1 8193 2
address 0xd instruction 0x76598
Instruction 0xd : DIV R9 R5 R6 R7

Machine cycle: 79
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 14 12 10 0 8193 131072 0 73837 0 73837 0 1 0 1 8193 2
address 0xe instruction 0x792
Instruction 0xe : CPR R9 R7

Machine cycle: 80
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 15 12 10 0 8193 131072 0 73837 0 73837 0 1 0 1 8193 2
address 0xf instruction 0x29
Instruction 0xf : ICR R2

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 81
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 16 12 11 0 8193 131072 0 73837 0 73837 0 1 0 1 8193 2
address 0x10 instruction 0x612b
Instruction 0x10 : GTR R2 R1 R6

Machine cycle: 82
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 17 12 11 0 8193 131072 0 73837 0 73837 0 1 0 1 8193 2
address 0x11 instruction 0xb6d
Instruction 0x11 : IFZ R6 Address 0xb

Machine cycle: 83
Pagetable[2].frame 2
Pagetable[2].frame 2
Reading from page 0
Registers: 
 11 12 11 0 8193 131072 0 73837 0 73837 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 9
Page fault: process 0 page 9

Calling page replacement algorithm
Frame 0 Process 0 Page 0 Time 83
Frame 1 Process 0 Page 8 Time 76
Frame 2 Process 0 Page 2 Time 27
Frame 3 Process 0 Page 3 Time 35
Frame 4 Process 0 Page 4 Time 43
Frame 5 Process 0 Page 5 Time 51
Frame 6 Process 0 Page 6 Time 59
Frame 7 Process 0 Page 7 Time 67
Using frame 2
Writing out dirty page 2 of process 0 in frame 2

Machine cycle: 84
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 85

Machine cycle: 85
Writing to disk address 16384 from RAM address 16384
Pagetable[2].frame -1
Disk task complete: frame 2 written out
Unblocking and running process 0
Pagetable[2].frame -1
Reading from page 0
Registers: 
 11 12 11 0 8193 131072 0 73837 0 73837 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 9

Machine cycle: 86
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 12 12 11 0 8193 131072 0 73837 0 73837 0 1 0 1 8193 2
address 0xc instruction 0x9495
Instruction 0xc : ADD R9 R4 R9

Machine cycle: 87
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 13 12 11 0 8193 131072 0 73837 0 82030 0 1 0 1 8193 2
address 0xd instruction 0x76598
Instruction 0xd : DIV R9 R5 R6 R7

Machine cycle: 88
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 14 12 11 0 8193 131072 0 82030 0 82030 0 1 0 1 8193 2
address 0xe instruction 0x792
Instruction 0xe : CPR R9 R7

Machine cycle: 89
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 15 12 11 0 8193 131072 0 82030 0 82030 0 1 0 1 8193 2
address 0xf instruction 0x29
Instruction 0xf : ICR R2

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 90
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 16 12 12 0 8193 131072 0 82030 0 82030 0 1 0 1 8193 2
address 0x10 instruction 0x612b
Instruction 0x10 : GTR R2 R1 R6

Machine cycle: 91
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 17 12 12 0 8193 131072 0 82030 0 82030 0 1 0 1 8193 2
address 0x11 instruction 0xb6d
Instruction 0x11 : IFZ R6 Address 0xb

Machine cycle: 92
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 11 12 12 0 8193 131072 0 82030 0 82030 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 10
Page fault: process 0 page 10

Calling page replacement algorithm
Frame 0 Process 0 Page 0 Time 92
Frame 1 Process 0 Page 8 Time 76
Frame 2 Process 0 Page 9 Time 85
Frame 3 Process 0 Page 3 Time 35
Frame 4 Process 0 Page 4 Time 43
Frame 5 Process 0 Page 5 Time 51
Frame 6 Process 0 Page 6 Time 59
Frame 7 Process 0 Page 7 Time 67
Using frame 3
Writing out dirty page 3 of process 0 in frame 3

Machine cycle: 93
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 94

Machine cycle: 94
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 95

Machine cycle: 95
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 96

Machine cycle: 96
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 97

Machine cycle: 97
Writing to disk address 24576 from RAM address 24576
Pagetable[2].frame -1
Disk task complete: frame 3 written out
Unblocking and running process 0
Pagetable[2].frame -1
Reading from page 0
Registers: 
 11 12 12 0 8193 131072 0 82030 0 82030 0 1 0 1 8193 2
address 0xb instruction 0xa94
Instruction 0xb : STI R9 R10
Writing to page 10

Machine cycle: 98
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 12 12 12 0 8193 131072 0 82030 0 82030 0 1 0 1 8193 2
address 0xc instruction 0x9495
Instruction 0xc : ADD R9 R4 R9

Machine cycle: 99
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 13 12 12 0 8193 131072 0 82030 0 90223 0 1 0 1 8193 2
address 0xd instruction 0x76598
Instruction 0xd : DIV R9 R5 R6 R7

Machine cycle: 100
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 14 12 12 0 8193 131072 0 90223 0 90223 0 1 0 1 8193 2
address 0xe instruction 0x792
Instruction 0xe : CPR R9 R7

Machine cycle: 101
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 15 12 12 0 8193 131072 0 90223 0 90223 0 1 0 1 8193 2
address 0xf instruction 0x29
Instruction 0xf : ICR R2

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 102
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 16 12 13 0 8193 131072 0 90223 0 90223 0 1 0 1 8193 2
address 0x10 instruction 0x612b
Instruction 0x10 : GTR R2 R1 R6

Machine cycle: 103
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 17 12 13 0 8193 131072 1 90223 0 90223 0 1 0 1 8193 2
address 0x11 instruction 0xb6d
Instruction 0x11 : IFZ R6 Address 0xb

Machine cycle: 104
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 18 12 13 0 8193 131072 1 90223 0 90223 0 1 0 1 8193 2
address 0x12 instruction 0x2e20
Instruction 0x12 : LOA R2 Address 0x2e
Reading from page 0

Machine cycle: 105
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 19 12 1 0 8193 131072 1 90223 0 90223 0 1 0 1 8193 2
address 0x13 instruction 0x30a0
Instruction 0x13 : LOA R10 Address 0x30
Reading from page 0

Machine cycle: 106
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 20 12 1 0 8193 131072 1 90223 0 90223 100 1 0 1 8193 2
address 0x14 instruction 0x29
Instruction 0x14 : ICR R2

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 107
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 21 12 2 0 8193 131072 1 90223 0 90223 100 1 0 1 8193 2
address 0x15 instruction 0x6427
Instruction 0x15 : MUL R2 R4 R6

Machine cycle: 108
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 22 12 2 0 8193 131072 16386 90223 0 90223 100 1 0 1 8193 2
address 0x16 instruction 0x76a5
Instruction 0x16 : ADD R10 R6 R7

Machine cycle: 109
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 23 12 2 0 8193 131072 16386 16486 0 90223 100 1 0 1 8193 2
address 0x17 instruction 0x98578
Instruction 0x17 : DIV R7 R5 R8 R9

Machine cycle: 110
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 24 12 2 0 8193 131072 16386 16486 0 16486 100 1 0 1 8193 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 2
Page fault: process 0 page 2

Calling page replacement algorithm
Frame 0 Process 0 Page 0 Time 110
Frame 1 Process 0 Page 8 Time 76
Frame 2 Process 0 Page 9 Time 85
Frame 3 Process 0 Page 10 Time 97
Frame 4 Process 0 Page 4 Time 43
Frame 5 Process 0 Page 5 Time 51
Frame 6 Process 0 Page 6 Time 59
Frame 7 Process 0 Page 7 Time 67
Using frame 4
Writing out dirty page 4 of process 0 in frame 4

Machine cycle: 111
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 112

Machine cycle: 112
Writing to disk address 32768 from RAM address 32768
Pagetable[2].frame -1
Disk task complete: frame 4 written out
Reading in page 2 of process 0 to now-clear frame 4
Pagetable[2].frame -1
IDLE Time: 113

Machine cycle: 113
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 114

Machine cycle: 114
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 115

Machine cycle: 115
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 116

Machine cycle: 116
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 117

Machine cycle: 117
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 118

Machine cycle: 118
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 119

Machine cycle: 119
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 120

Machine cycle: 120
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 121

Machine cycle: 121
Reading  from disk address 16384 to RAM address 32768
Pagetable[2].frame -1
Disk task complete: frame 4 proc 0 page 2 read in 
Unblocking and running process 0
Pagetable[2].frame 4
Reading from page 0
Registers: 
 24 12 2 0 8193 131072 16386 16486 0 16486 100 1 0 1 8193 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 2

Machine cycle: 122
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 25 12 2 0 8193 131072 0 16486 0 16486 100 1 0 1 8193 2
address 0x19 instruction 0x1d6d
Instruction 0x19 : IFZ R6 Address 0x1d

Machine cycle: 123
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 29 12 2 0 8193 131072 0 16486 0 16486 100 1 0 1 8193 2
address 0x1d instruction 0x2e2
Instruction 0x1d : CPR R14 R2

Machine cycle: 124
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 30 12 2 0 8193 131072 0 16486 0 16486 100 1 0 1 2 2
address 0x1e instruction 0xf
Instruction 0x1e : TRP
Process primesx index 0 Trap: 
     WRITE:   2

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 125
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 31 12 2 0 8193 131072 0 16486 0 16486 100 1 0 1 2 2
address 0x1f instruction 0x8227
Instruction 0x1f : MUL R2 R2 R8

Machine cycle: 126
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 32 12 2 0 8193 131072 0 16486 4 16486 100 1 0 1 2 2
address 0x20 instruction 0x981b
Instruction 0x20 : GTR R1 R8 R9

Machine cycle: 127
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 33 12 2 0 8193 131072 0 16486 4 1 100 1 0 1 2 2
address 0x21 instruction 0x149d
Instruction 0x21 : IFZ R9 Address 0x14

Machine cycle: 128
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 34 12 2 0 8193 131072 0 16486 4 1 100 1 0 1 2 2
address 0x22 instruction 0x232
Instruction 0x22 : CPR R3 R2

Machine cycle: 129
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 35 12 2 2 8193 131072 0 16486 4 1 100 1 0 1 2 2
address 0x23 instruction 0x6437
Instruction 0x23 : MUL R3 R4 R6

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 130
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 36 12 2 2 8193 131072 16386 16486 4 1 100 1 0 1 2 2
address 0x24 instruction 0x76a5
Instruction 0x24 : ADD R10 R6 R7

Machine cycle: 131
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 37 12 2 2 8193 131072 16386 16486 4 1 100 1 0 1 2 2
address 0x25 instruction 0x98578
Instruction 0x25 : DIV R7 R5 R8 R9

Machine cycle: 132
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 38 12 2 2 8193 131072 16386 16486 0 16486 100 1 0 1 2 2
address 0x26 instruction 0xb94
Instruction 0x26 : STI R9 R11
Writing to page 2

Machine cycle: 133
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 39 12 2 2 8193 131072 16386 16486 0 16486 100 1 0 1 2 2
address 0x27 instruction 0x3235
Instruction 0x27 : ADD R3 R2 R3

Machine cycle: 134
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 40 12 2 4 8193 131072 16386 16486 0 16486 100 1 0 1 2 2
address 0x28 instruction 0x813b
Instruction 0x28 : GTR R3 R1 R8

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 135
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 41 12 2 4 8193 131072 16386 16486 0 16486 100 1 0 1 2 2
address 0x29 instruction 0x238d
Instruction 0x29 : IFZ R8 Address 0x23

Machine cycle: 136
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 35 12 2 4 8193 131072 16386 16486 0 16486 100 1 0 1 2 2
address 0x23 instruction 0x6437
Instruction 0x23 : MUL R3 R4 R6

Machine cycle: 137
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 36 12 2 4 8193 131072 32772 16486 0 16486 100 1 0 1 2 2
address 0x24 instruction 0x76a5
Instruction 0x24 : ADD R10 R6 R7

Machine cycle: 138
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 37 12 2 4 8193 131072 32772 32872 0 16486 100 1 0 1 2 2
address 0x25 instruction 0x98578
Instruction 0x25 : DIV R7 R5 R8 R9

Machine cycle: 139
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 38 12 2 4 8193 131072 32772 32872 0 32872 100 1 0 1 2 2
address 0x26 instruction 0xb94
Instruction 0x26 : STI R9 R11
Writing to page 4
Page fault: process 0 page 4

Calling page replacement algorithm
Frame 0 Process 0 Page 0 Time 139
Frame 1 Process 0 Page 8 Time 76
Frame 2 Process 0 Page 9 Time 85
Frame 3 Process 0 Page 10 Time 97
Frame 4 Process 0 Page 2 Time 132
Frame 5 Process 0 Page 5 Time 51
Frame 6 Process 0 Page 6 Time 59
Frame 7 Process 0 Page 7 Time 67
Using frame 5
Writing out dirty page 5 of process 0 in frame 5

Machine cycle: 140
Pagetable[2].frame 4
Pagetable[2].frame 4
IDLE Time: 141

Machine cycle: 141
Pagetable[2].frame 4
Pagetable[2].frame 4
IDLE Time: 142

Machine cycle: 142
Pagetable[2].frame 4
Pagetable[2].frame 4
IDLE Time: 143

Machine cycle: 143
Writing to disk address 40960 from RAM address 40960
Pagetable[2].frame 4
Disk task complete: frame 5 written out
Reading in page 4 of process 0 to now-clear frame 5
Pagetable[2].frame 4
IDLE Time: 144

Machine cycle: 144
Pagetable[2].frame 4
Pagetable[2].frame 4
IDLE Time: 145

Machine cycle: 145
Pagetable[2].frame 4
Pagetable[2].frame 4
IDLE Time: 146

Machine cycle: 146
Pagetable[2].frame 4
Pagetable[2].frame 4
IDLE Time: 147

Machine cycle: 147
Reading  from disk address 32768 to RAM address 40960
Pagetable[2].frame 4
Disk task complete: frame 5 proc 0 page 4 read in 
Unblocking and running process 0
Pagetable[2].frame 4
Reading from page 0
Registers: 
 38 12 2 4 8193 131072 32772 32872 0 32872 100 1 0 1 2 2
address 0x26 instruction 0xb94
Instruction 0x26 : STI R9 R11
Writing to page 4

Machine cycle: 148
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 39 12 2 4 8193 131072 32772 32872 0 32872 100 1 0 1 2 2
address 0x27 instruction 0x3235
Instruction 0x27 : ADD R3 R2 R3

Machine cycle: 149
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 40 12 2 6 8193 131072 32772 32872 0 32872 100 1 0 1 2 2
address 0x28 instruction 0x813b
Instruction 0x28 : GTR R3 R1 R8

Machine cycle: 150
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 41 12 2 6 8193 131072 32772 32872 0 32872 100 1 0 1 2 2
address 0x29 instruction 0x238d
Instruction 0x29 : IFZ R8 Address 0x23

Machine cycle: 151
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 35 12 2 6 8193 131072 32772 32872 0 32872 100 1 0 1 2 2
address 0x23 instruction 0x6437
Instruction 0x23 : MUL R3 R4 R6

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 152
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 36 12 2 6 8193 131072 49158 32872 0 32872 100 1 0 1 2 2
address 0x24 instruction 0x76a5
Instruction 0x24 : ADD R10 R6 R7

Machine cycle: 153
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 37 12 2 6 8193 131072 49158 49258 0 32872 100 1 0 1 2 2
address 0x25 instruction 0x98578
Instruction 0x25 : DIV R7 R5 R8 R9

Machine cycle: 154
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 38 12 2 6 8193 131072 49158 49258 0 49258 100 1 0 1 2 2
address 0x26 instruction 0xb94
Instruction 0x26 : STI R9 R11
Writing to page 6

Machine cycle: 155
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 39 12 2 6 8193 131072 49158 49258 0 49258 100 1 0 1 2 2
address 0x27 instruction 0x3235
Instruction 0x27 : ADD R3 R2 R3

Machine cycle: 156
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 40 12 2 8 8193 131072 49158 49258 0 49258 100 1 0 1 2 2
address 0x28 instruction 0x813b
Instruction 0x28 : GTR R3 R1 R8

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 157
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 41 12 2 8 8193 131072 49158 49258 0 49258 100 1 0 1 2 2
address 0x29 instruction 0x238d
Instruction 0x29 : IFZ R8 Address 0x23

Machine cycle: 158
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 35 12 2 8 8193 131072 49158 49258 0 49258 100 1 0 1 2 2
address 0x23 instruction 0x6437
Instruction 0x23 : MUL R3 R4 R6

Machine cycle: 159
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 36 12 2 8 8193 131072 65544 49258 0 49258 100 1 0 1 2 2
address 0x24 instruction 0x76a5
Instruction 0x24 : ADD R10 R6 R7

Machine cycle: 160
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 37 12 2 8 8193 131072 65544 65644 0 49258 100 1 0 1 2 2
address 0x25 instruction 0x98578
Instruction 0x25 : DIV R7 R5 R8 R9

Machine cycle: 161
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 38 12 2 8 8193 131072 65544 65644 0 65644 100 1 0 1 2 2
address 0x26 instruction 0xb94
Instruction 0x26 : STI R9 R11
Writing to page 8

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 162
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 39 12 2 8 8193 131072 65544 65644 0 65644 100 1 0 1 2 2
address 0x27 instruction 0x3235
Instruction 0x27 : ADD R3 R2 R3

Machine cycle: 163
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 40 12 2 10 8193 131072 65544 65644 0 65644 100 1 0 1 2 2
address 0x28 instruction 0x813b
Instruction 0x28 : GTR R3 R1 R8

Machine cycle: 164
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 41 12 2 10 8193 131072 65544 65644 0 65644 100 1 0 1 2 2
address 0x29 instruction 0x238d
Instruction 0x29 : IFZ R8 Address 0x23

Machine cycle: 165
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 35 12 2 10 8193 131072 65544 65644 0 65644 100 1 0 1 2 2
address 0x23 instruction 0x6437
Instruction 0x23 : MUL R3 R4 R6

Machine cycle: 166
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 36 12 2 10 8193 131072 81930 65644 0 65644 100 1 0 1 2 2
address 0x24 instruction 0x76a5
Instruction 0x24 : ADD R10 R6 R7

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 167
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 37 12 2 10 8193 131072 81930 82030 0 65644 100 1 0 1 2 2
address 0x25 instruction 0x98578
Instruction 0x25 : DIV R7 R5 R8 R9

Machine cycle: 168
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 38 12 2 10 8193 131072 81930 82030 0 82030 100 1 0 1 2 2
address 0x26 instruction 0xb94
Instruction 0x26 : STI R9 R11
Writing to page 10

Machine cycle: 169
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 39 12 2 10 8193 131072 81930 82030 0 82030 100 1 0 1 2 2
address 0x27 instruction 0x3235
Instruction 0x27 : ADD R3 R2 R3

Machine cycle: 170
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 40 12 2 12 8193 131072 81930 82030 0 82030 100 1 0 1 2 2
address 0x28 instruction 0x813b
Instruction 0x28 : GTR R3 R1 R8

Machine cycle: 171
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 41 12 2 12 8193 131072 81930 82030 0 82030 100 1 0 1 2 2
address 0x29 instruction 0x238d
Instruction 0x29 : IFZ R8 Address 0x23

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 172
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 35 12 2 12 8193 131072 81930 82030 0 82030 100 1 0 1 2 2
address 0x23 instruction 0x6437
Instruction 0x23 : MUL R3 R4 R6

Machine cycle: 173
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 36 12 2 12 8193 131072 98316 82030 0 82030 100 1 0 1 2 2
address 0x24 instruction 0x76a5
Instruction 0x24 : ADD R10 R6 R7

Machine cycle: 174
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 37 12 2 12 8193 131072 98316 98416 0 82030 100 1 0 1 2 2
address 0x25 instruction 0x98578
Instruction 0x25 : DIV R7 R5 R8 R9

Machine cycle: 175
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 38 12 2 12 8193 131072 98316 98416 0 98416 100 1 0 1 2 2
address 0x26 instruction 0xb94
Instruction 0x26 : STI R9 R11
Writing to page 12
Page fault: process 0 page 12

Calling page replacement algorithm
Frame 0 Process 0 Page 0 Time 175
Frame 1 Process 0 Page 8 Time 161
Frame 2 Process 0 Page 9 Time 85
Frame 3 Process 0 Page 10 Time 168
Frame 4 Process 0 Page 2 Time 132
Frame 5 Process 0 Page 4 Time 147
Frame 6 Process 0 Page 6 Time 154
Frame 7 Process 0 Page 7 Time 67
Using frame 7
Writing out dirty page 7 of process 0 in frame 7

Machine cycle: 176
Pagetable[2].frame 4
Pagetable[2].frame 4
IDLE Time: 177

Machine cycle: 177
Pagetable[2].frame 4
Pagetable[2].frame 4
IDLE Time: 178

Machine cycle: 178
Pagetable[2].frame 4
Pagetable[2].frame 4
IDLE Time: 179

Machine cycle: 179
Writing to disk address 57344 from RAM address 57344
Pagetable[2].frame 4
Disk task complete: frame 7 written out
Unblocking and running process 0
Pagetable[2].frame 4
Reading from page 0
Registers: 
 38 12 2 12 8193 131072 98316 98416 0 98416 100 1 0 1 2 2
address 0x26 instruction 0xb94
Instruction 0x26 : STI R9 R11
Writing to page 12

Machine cycle: 180
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 39 12 2 12 8193 131072 98316 98416 0 98416 100 1 0 1 2 2
address 0x27 instruction 0x3235
Instruction 0x27 : ADD R3 R2 R3

Machine cycle: 181
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 40 12 2 14 8193 131072 98316 98416 0 98416 100 1 0 1 2 2
address 0x28 instruction 0x813b
Instruction 0x28 : GTR R3 R1 R8

Machine cycle: 182
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 41 12 2 14 8193 131072 98316 98416 1 98416 100 1 0 1 2 2
address 0x29 instruction 0x238d
Instruction 0x29 : IFZ R8 Address 0x23

Machine cycle: 183
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 42 12 2 14 8193 131072 98316 98416 1 98416 100 1 0 1 2 2
address 0x2a instruction 0x140c
Instruction 0x2a : JMP Address 0x14

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 184
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 20 12 2 14 8193 131072 98316 98416 1 98416 100 1 0 1 2 2
address 0x14 instruction 0x29
Instruction 0x14 : ICR R2

Machine cycle: 185
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 21 12 3 14 8193 131072 98316 98416 1 98416 100 1 0 1 2 2
address 0x15 instruction 0x6427
Instruction 0x15 : MUL R2 R4 R6

Machine cycle: 186
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 22 12 3 14 8193 131072 24579 98416 1 98416 100 1 0 1 2 2
address 0x16 instruction 0x76a5
Instruction 0x16 : ADD R10 R6 R7

Machine cycle: 187
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 23 12 3 14 8193 131072 24579 24679 1 98416 100 1 0 1 2 2
address 0x17 instruction 0x98578
Instruction 0x17 : DIV R7 R5 R8 R9

Machine cycle: 188
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 24 12 3 14 8193 131072 24579 24679 0 24679 100 1 0 1 2 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 3
Page fault: process 0 page 3

Calling page replacement algorithm
Frame 0 Process 0 Page 0 Time 188
Frame 1 Process 0 Page 8 Time 161
Frame 2 Process 0 Page 9 Time 85
Frame 3 Process 0 Page 10 Time 168
Frame 4 Process 0 Page 2 Time 132
Frame 5 Process 0 Page 4 Time 147
Frame 6 Process 0 Page 6 Time 154
Frame 7 Process 0 Page 12 Time 179
Using frame 2
Writing out dirty page 9 of process 0 in frame 2

Machine cycle: 189
Pagetable[2].frame 4
Pagetable[2].frame 4
IDLE Time: 190

Machine cycle: 190
Pagetable[2].frame 4
Pagetable[2].frame 4
IDLE Time: 191

Machine cycle: 191
Pagetable[2].frame 4
Pagetable[2].frame 4
IDLE Time: 192

Machine cycle: 192
Writing to disk address 73728 from RAM address 16384
Pagetable[2].frame 4
Disk task complete: frame 2 written out
Reading in page 3 of process 0 to now-clear frame 2
Pagetable[2].frame 4
IDLE Time: 193

Machine cycle: 193
Pagetable[2].frame 4
Pagetable[2].frame 4
IDLE Time: 194

Machine cycle: 194
Pagetable[2].frame 4
Pagetable[2].frame 4
IDLE Time: 195

Machine cycle: 195
Reading  from disk address 24576 to RAM address 16384
Pagetable[2].frame 4
Disk task complete: frame 2 proc 0 page 3 read in 
Unblocking and running process 0
Pagetable[2].frame 4
Reading from page 0
Registers: 
 24 12 3 14 8193 131072 24579 24679 0 24679 100 1 0 1 2 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 3

Machine cycle: 196
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 25 12 3 14 8193 131072 0 24679 0 24679 100 1 0 1 2 2
address 0x19 instruction 0x1d6d
Instruction 0x19 : IFZ R6 Address 0x1d

Machine cycle: 197
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 29 12 3 14 8193 131072 0 24679 0 24679 100 1 0 1 2 2
address 0x1d instruction 0x2e2
Instruction 0x1d : CPR R14 R2

Machine cycle: 198
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 30 12 3 14 8193 131072 0 24679 0 24679 100 1 0 1 3 2
address 0x1e instruction 0xf
Instruction 0x1e : TRP
Process primesx index 0 Trap: 
     WRITE:   3

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 199
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 31 12 3 14 8193 131072 0 24679 0 24679 100 1 0 1 3 2
address 0x1f instruction 0x8227
Instruction 0x1f : MUL R2 R2 R8

Machine cycle: 200
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 32 12 3 14 8193 131072 0 24679 9 24679 100 1 0 1 3 2
address 0x20 instruction 0x981b
Instruction 0x20 : GTR R1 R8 R9

Machine cycle: 201
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 33 12 3 14 8193 131072 0 24679 9 1 100 1 0 1 3 2
address 0x21 instruction 0x149d
Instruction 0x21 : IFZ R9 Address 0x14

Machine cycle: 202
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 34 12 3 14 8193 131072 0 24679 9 1 100 1 0 1 3 2
address 0x22 instruction 0x232
Instruction 0x22 : CPR R3 R2

Machine cycle: 203
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 35 12 3 3 8193 131072 0 24679 9 1 100 1 0 1 3 2
address 0x23 instruction 0x6437
Instruction 0x23 : MUL R3 R4 R6

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 204
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 36 12 3 3 8193 131072 24579 24679 9 1 100 1 0 1 3 2
address 0x24 instruction 0x76a5
Instruction 0x24 : ADD R10 R6 R7

Machine cycle: 205
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 37 12 3 3 8193 131072 24579 24679 9 1 100 1 0 1 3 2
address 0x25 instruction 0x98578
Instruction 0x25 : DIV R7 R5 R8 R9

Machine cycle: 206
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 38 12 3 3 8193 131072 24579 24679 0 24679 100 1 0 1 3 2
address 0x26 instruction 0xb94
Instruction 0x26 : STI R9 R11
Writing to page 3

Machine cycle: 207
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 39 12 3 3 8193 131072 24579 24679 0 24679 100 1 0 1 3 2
address 0x27 instruction 0x3235
Instruction 0x27 : ADD R3 R2 R3

Machine cycle: 208
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 40 12 3 6 8193 131072 24579 24679 0 24679 100 1 0 1 3 2
address 0x28 instruction 0x813b
Instruction 0x28 : GTR R3 R1 R8

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 209
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 41 12 3 6 8193 131072 24579 24679 0 24679 100 1 0 1 3 2
address 0x29 instruction 0x238d
Instruction 0x29 : IFZ R8 Address 0x23

Machine cycle: 210
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 35 12 3 6 8193 131072 24579 24679 0 24679 100 1 0 1 3 2
address 0x23 instruction 0x6437
Instruction 0x23 : MUL R3 R4 R6

Machine cycle: 211
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 36 12 3 6 8193 131072 49158 24679 0 24679 100 1 0 1 3 2
address 0x24 instruction 0x76a5
Instruction 0x24 : ADD R10 R6 R7

Machine cycle: 212
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 37 12 3 6 8193 131072 49158 49258 0 24679 100 1 0 1 3 2
address 0x25 instruction 0x98578
Instruction 0x25 : DIV R7 R5 R8 R9

Machine cycle: 213
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 38 12 3 6 8193 131072 49158 49258 0 49258 100 1 0 1 3 2
address 0x26 instruction 0xb94
Instruction 0x26 : STI R9 R11
Writing to page 6

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 214
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 39 12 3 6 8193 131072 49158 49258 0 49258 100 1 0 1 3 2
address 0x27 instruction 0x3235
Instruction 0x27 : ADD R3 R2 R3

Machine cycle: 215
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 40 12 3 9 8193 131072 49158 49258 0 49258 100 1 0 1 3 2
address 0x28 instruction 0x813b
Instruction 0x28 : GTR R3 R1 R8

Machine cycle: 216
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 41 12 3 9 8193 131072 49158 49258 0 49258 100 1 0 1 3 2
address 0x29 instruction 0x238d
Instruction 0x29 : IFZ R8 Address 0x23

Machine cycle: 217
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 35 12 3 9 8193 131072 49158 49258 0 49258 100 1 0 1 3 2
address 0x23 instruction 0x6437
Instruction 0x23 : MUL R3 R4 R6

Machine cycle: 218
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 36 12 3 9 8193 131072 73737 49258 0 49258 100 1 0 1 3 2
address 0x24 instruction 0x76a5
Instruction 0x24 : ADD R10 R6 R7

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 219
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 37 12 3 9 8193 131072 73737 73837 0 49258 100 1 0 1 3 2
address 0x25 instruction 0x98578
Instruction 0x25 : DIV R7 R5 R8 R9

Machine cycle: 220
Pagetable[2].frame 4
Pagetable[2].frame 4
Reading from page 0
Registers: 
 38 12 3 9 8193 131072 73737 73837 0 73837 100 1 0 1 3 2
address 0x26 instruction 0xb94
Instruction 0x26 : STI R9 R11
Writing to page 9
Page fault: process 0 page 9

Calling page replacement algorithm
Frame 0 Process 0 Page 0 Time 220
Frame 1 Process 0 Page 8 Time 161
Frame 2 Process 0 Page 3 Time 206
Frame 3 Process 0 Page 10 Time 168
Frame 4 Process 0 Page 2 Time 132
Frame 5 Process 0 Page 4 Time 147
Frame 6 Process 0 Page 6 Time 213
Frame 7 Process 0 Page 12 Time 179
Using frame 4
Writing out dirty page 2 of process 0 in frame 4

Machine cycle: 221
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 222

Machine cycle: 222
Writing to disk address 16384 from RAM address 32768
Pagetable[2].frame -1
Disk task complete: frame 4 written out
Reading in page 9 of process 0 to now-clear frame 4
Pagetable[2].frame -1
IDLE Time: 223

Machine cycle: 223
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 224

Machine cycle: 224
Reading  from disk address 73728 to RAM address 32768
Pagetable[2].frame -1
Disk task complete: frame 4 proc 0 page 9 read in 
Unblocking and running process 0
Pagetable[2].frame -1
Reading from page 0
Registers: 
 38 12 3 9 8193 131072 73737 73837 0 73837 100 1 0 1 3 2
address 0x26 instruction 0xb94
Instruction 0x26 : STI R9 R11
Writing to page 9

Machine cycle: 225
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 39 12 3 9 8193 131072 73737 73837 0 73837 100 1 0 1 3 2
address 0x27 instruction 0x3235
Instruction 0x27 : ADD R3 R2 R3

Machine cycle: 226
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 40 12 3 12 8193 131072 73737 73837 0 73837 100 1 0 1 3 2
address 0x28 instruction 0x813b
Instruction 0x28 : GTR R3 R1 R8

Machine cycle: 227
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 41 12 3 12 8193 131072 73737 73837 0 73837 100 1 0 1 3 2
address 0x29 instruction 0x238d
Instruction 0x29 : IFZ R8 Address 0x23

Machine cycle: 228
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 35 12 3 12 8193 131072 73737 73837 0 73837 100 1 0 1 3 2
address 0x23 instruction 0x6437
Instruction 0x23 : MUL R3 R4 R6

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 229
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 36 12 3 12 8193 131072 98316 73837 0 73837 100 1 0 1 3 2
address 0x24 instruction 0x76a5
Instruction 0x24 : ADD R10 R6 R7

Machine cycle: 230
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 37 12 3 12 8193 131072 98316 98416 0 73837 100 1 0 1 3 2
address 0x25 instruction 0x98578
Instruction 0x25 : DIV R7 R5 R8 R9

Machine cycle: 231
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 38 12 3 12 8193 131072 98316 98416 0 98416 100 1 0 1 3 2
address 0x26 instruction 0xb94
Instruction 0x26 : STI R9 R11
Writing to page 12

Machine cycle: 232
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 39 12 3 12 8193 131072 98316 98416 0 98416 100 1 0 1 3 2
address 0x27 instruction 0x3235
Instruction 0x27 : ADD R3 R2 R3

Machine cycle: 233
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 40 12 3 15 8193 131072 98316 98416 0 98416 100 1 0 1 3 2
address 0x28 instruction 0x813b
Instruction 0x28 : GTR R3 R1 R8

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 234
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 41 12 3 15 8193 131072 98316 98416 1 98416 100 1 0 1 3 2
address 0x29 instruction 0x238d
Instruction 0x29 : IFZ R8 Address 0x23

Machine cycle: 235
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 42 12 3 15 8193 131072 98316 98416 1 98416 100 1 0 1 3 2
address 0x2a instruction 0x140c
Instruction 0x2a : JMP Address 0x14

Machine cycle: 236
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 20 12 3 15 8193 131072 98316 98416 1 98416 100 1 0 1 3 2
address 0x14 instruction 0x29
Instruction 0x14 : ICR R2

Machine cycle: 237
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 21 12 4 15 8193 131072 98316 98416 1 98416 100 1 0 1 3 2
address 0x15 instruction 0x6427
Instruction 0x15 : MUL R2 R4 R6

Machine cycle: 238
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 22 12 4 15 8193 131072 32772 98416 1 98416 100 1 0 1 3 2
address 0x16 instruction 0x76a5
Instruction 0x16 : ADD R10 R6 R7

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 239
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 23 12 4 15 8193 131072 32772 32872 1 98416 100 1 0 1 3 2
address 0x17 instruction 0x98578
Instruction 0x17 : DIV R7 R5 R8 R9

Machine cycle: 240
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 24 12 4 15 8193 131072 32772 32872 0 32872 100 1 0 1 3 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 4

Machine cycle: 241
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 25 12 4 15 8193 131072 1 32872 0 32872 100 1 0 1 3 2
address 0x19 instruction 0x1d6d
Instruction 0x19 : IFZ R6 Address 0x1d

Machine cycle: 242
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 26 12 4 15 8193 131072 1 32872 0 32872 100 1 0 1 3 2
address 0x1a instruction 0x921b
Instruction 0x1a : GTR R1 R2 R9

Machine cycle: 243
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 27 12 4 15 8193 131072 1 32872 0 1 100 1 0 1 3 2
address 0x1b instruction 0x2b9d
Instruction 0x1b : IFZ R9 Address 0x2b

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 244
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 28 12 4 15 8193 131072 1 32872 0 1 100 1 0 1 3 2
address 0x1c instruction 0x140c
Instruction 0x1c : JMP Address 0x14

Machine cycle: 245
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 20 12 4 15 8193 131072 1 32872 0 1 100 1 0 1 3 2
address 0x14 instruction 0x29
Instruction 0x14 : ICR R2

Machine cycle: 246
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 21 12 5 15 8193 131072 1 32872 0 1 100 1 0 1 3 2
address 0x15 instruction 0x6427
Instruction 0x15 : MUL R2 R4 R6

Machine cycle: 247
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 22 12 5 15 8193 131072 40965 32872 0 1 100 1 0 1 3 2
address 0x16 instruction 0x76a5
Instruction 0x16 : ADD R10 R6 R7

Machine cycle: 248
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 23 12 5 15 8193 131072 40965 41065 0 1 100 1 0 1 3 2
address 0x17 instruction 0x98578
Instruction 0x17 : DIV R7 R5 R8 R9

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 249
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 24 12 5 15 8193 131072 40965 41065 0 41065 100 1 0 1 3 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 5
Page fault: process 0 page 5

Calling page replacement algorithm
Frame 0 Process 0 Page 0 Time 249
Frame 1 Process 0 Page 8 Time 161
Frame 2 Process 0 Page 3 Time 206
Frame 3 Process 0 Page 10 Time 168
Frame 4 Process 0 Page 9 Time 224
Frame 5 Process 0 Page 4 Time 240
Frame 6 Process 0 Page 6 Time 213
Frame 7 Process 0 Page 12 Time 231
Using frame 1
Writing out dirty page 8 of process 0 in frame 1

Machine cycle: 250
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 251

Machine cycle: 251
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 252

Machine cycle: 252
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 253

Machine cycle: 253
Writing to disk address 65536 from RAM address 8192
Pagetable[2].frame -1
Disk task complete: frame 1 written out
Reading in page 5 of process 0 to now-clear frame 1
Pagetable[2].frame -1
IDLE Time: 254

Machine cycle: 254
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 255

Machine cycle: 255
Reading  from disk address 40960 to RAM address 8192
Pagetable[2].frame -1
Disk task complete: frame 1 proc 0 page 5 read in 
Unblocking and running process 0
Pagetable[2].frame -1
Reading from page 0
Registers: 
 24 12 5 15 8193 131072 40965 41065 0 41065 100 1 0 1 3 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 5

Machine cycle: 256
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 25 12 5 15 8193 131072 0 41065 0 41065 100 1 0 1 3 2
address 0x19 instruction 0x1d6d
Instruction 0x19 : IFZ R6 Address 0x1d

Machine cycle: 257
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 29 12 5 15 8193 131072 0 41065 0 41065 100 1 0 1 3 2
address 0x1d instruction 0x2e2
Instruction 0x1d : CPR R14 R2

Machine cycle: 258
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 30 12 5 15 8193 131072 0 41065 0 41065 100 1 0 1 5 2
address 0x1e instruction 0xf
Instruction 0x1e : TRP
Process primesx index 0 Trap: 
     WRITE:   5

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 259
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 31 12 5 15 8193 131072 0 41065 0 41065 100 1 0 1 5 2
address 0x1f instruction 0x8227
Instruction 0x1f : MUL R2 R2 R8

Machine cycle: 260
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 32 12 5 15 8193 131072 0 41065 25 41065 100 1 0 1 5 2
address 0x20 instruction 0x981b
Instruction 0x20 : GTR R1 R8 R9

Machine cycle: 261
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 33 12 5 15 8193 131072 0 41065 25 0 100 1 0 1 5 2
address 0x21 instruction 0x149d
Instruction 0x21 : IFZ R9 Address 0x14

Machine cycle: 262
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 20 12 5 15 8193 131072 0 41065 25 0 100 1 0 1 5 2
address 0x14 instruction 0x29
Instruction 0x14 : ICR R2

Machine cycle: 263
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 21 12 6 15 8193 131072 0 41065 25 0 100 1 0 1 5 2
address 0x15 instruction 0x6427
Instruction 0x15 : MUL R2 R4 R6

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 264
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 22 12 6 15 8193 131072 49158 41065 25 0 100 1 0 1 5 2
address 0x16 instruction 0x76a5
Instruction 0x16 : ADD R10 R6 R7

Machine cycle: 265
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 23 12 6 15 8193 131072 49158 49258 25 0 100 1 0 1 5 2
address 0x17 instruction 0x98578
Instruction 0x17 : DIV R7 R5 R8 R9

Machine cycle: 266
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 24 12 6 15 8193 131072 49158 49258 0 49258 100 1 0 1 5 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 6

Machine cycle: 267
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 25 12 6 15 8193 131072 1 49258 0 49258 100 1 0 1 5 2
address 0x19 instruction 0x1d6d
Instruction 0x19 : IFZ R6 Address 0x1d

Machine cycle: 268
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 26 12 6 15 8193 131072 1 49258 0 49258 100 1 0 1 5 2
address 0x1a instruction 0x921b
Instruction 0x1a : GTR R1 R2 R9

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 269
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 27 12 6 15 8193 131072 1 49258 0 1 100 1 0 1 5 2
address 0x1b instruction 0x2b9d
Instruction 0x1b : IFZ R9 Address 0x2b

Machine cycle: 270
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 28 12 6 15 8193 131072 1 49258 0 1 100 1 0 1 5 2
address 0x1c instruction 0x140c
Instruction 0x1c : JMP Address 0x14

Machine cycle: 271
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 20 12 6 15 8193 131072 1 49258 0 1 100 1 0 1 5 2
address 0x14 instruction 0x29
Instruction 0x14 : ICR R2

Machine cycle: 272
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 21 12 7 15 8193 131072 1 49258 0 1 100 1 0 1 5 2
address 0x15 instruction 0x6427
Instruction 0x15 : MUL R2 R4 R6

Machine cycle: 273
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 22 12 7 15 8193 131072 57351 49258 0 1 100 1 0 1 5 2
address 0x16 instruction 0x76a5
Instruction 0x16 : ADD R10 R6 R7

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 274
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 23 12 7 15 8193 131072 57351 57451 0 1 100 1 0 1 5 2
address 0x17 instruction 0x98578
Instruction 0x17 : DIV R7 R5 R8 R9

Machine cycle: 275
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 24 12 7 15 8193 131072 57351 57451 0 57451 100 1 0 1 5 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 7
Page fault: process 0 page 7

Calling page replacement algorithm
Frame 0 Process 0 Page 0 Time 275
Frame 1 Process 0 Page 5 Time 255
Frame 2 Process 0 Page 3 Time 206
Frame 3 Process 0 Page 10 Time 168
Frame 4 Process 0 Page 9 Time 224
Frame 5 Process 0 Page 4 Time 240
Frame 6 Process 0 Page 6 Time 266
Frame 7 Process 0 Page 12 Time 231
Using frame 3
Writing out dirty page 10 of process 0 in frame 3

Machine cycle: 276
Writing to disk address 81920 from RAM address 24576
Pagetable[2].frame -1
Disk task complete: frame 3 written out
Reading in page 7 of process 0 to now-clear frame 3
Pagetable[2].frame -1
IDLE Time: 277

Machine cycle: 277
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 278

Machine cycle: 278
Reading  from disk address 57344 to RAM address 24576
Pagetable[2].frame -1
Disk task complete: frame 3 proc 0 page 7 read in 
Unblocking and running process 0
Pagetable[2].frame -1
Reading from page 0
Registers: 
 24 12 7 15 8193 131072 57351 57451 0 57451 100 1 0 1 5 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 7

Machine cycle: 279
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 25 12 7 15 8193 131072 0 57451 0 57451 100 1 0 1 5 2
address 0x19 instruction 0x1d6d
Instruction 0x19 : IFZ R6 Address 0x1d

Machine cycle: 280
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 29 12 7 15 8193 131072 0 57451 0 57451 100 1 0 1 5 2
address 0x1d instruction 0x2e2
Instruction 0x1d : CPR R14 R2

Machine cycle: 281
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 30 12 7 15 8193 131072 0 57451 0 57451 100 1 0 1 7 2
address 0x1e instruction 0xf
Instruction 0x1e : TRP
Process primesx index 0 Trap: 
     WRITE:   7

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 282
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 31 12 7 15 8193 131072 0 57451 0 57451 100 1 0 1 7 2
address 0x1f instruction 0x8227
Instruction 0x1f : MUL R2 R2 R8

Machine cycle: 283
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 32 12 7 15 8193 131072 0 57451 49 57451 100 1 0 1 7 2
address 0x20 instruction 0x981b
Instruction 0x20 : GTR R1 R8 R9

Machine cycle: 284
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 33 12 7 15 8193 131072 0 57451 49 0 100 1 0 1 7 2
address 0x21 instruction 0x149d
Instruction 0x21 : IFZ R9 Address 0x14

Machine cycle: 285
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 20 12 7 15 8193 131072 0 57451 49 0 100 1 0 1 7 2
address 0x14 instruction 0x29
Instruction 0x14 : ICR R2

Machine cycle: 286
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 21 12 8 15 8193 131072 0 57451 49 0 100 1 0 1 7 2
address 0x15 instruction 0x6427
Instruction 0x15 : MUL R2 R4 R6

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 287
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 22 12 8 15 8193 131072 65544 57451 49 0 100 1 0 1 7 2
address 0x16 instruction 0x76a5
Instruction 0x16 : ADD R10 R6 R7

Machine cycle: 288
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 23 12 8 15 8193 131072 65544 65644 49 0 100 1 0 1 7 2
address 0x17 instruction 0x98578
Instruction 0x17 : DIV R7 R5 R8 R9

Machine cycle: 289
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 24 12 8 15 8193 131072 65544 65644 0 65644 100 1 0 1 7 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 8
Page fault: process 0 page 8

Calling page replacement algorithm
Frame 0 Process 0 Page 0 Time 289
Frame 1 Process 0 Page 5 Time 255
Frame 2 Process 0 Page 3 Time 206
Frame 3 Process 0 Page 7 Time 278
Frame 4 Process 0 Page 9 Time 224
Frame 5 Process 0 Page 4 Time 240
Frame 6 Process 0 Page 6 Time 266
Frame 7 Process 0 Page 12 Time 231
Using frame 2
Writing out dirty page 3 of process 0 in frame 2

Machine cycle: 290
Writing to disk address 24576 from RAM address 16384
Pagetable[2].frame -1
Disk task complete: frame 2 written out
Reading in page 8 of process 0 to now-clear frame 2
Pagetable[2].frame -1
IDLE Time: 291

Machine cycle: 291
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 292

Machine cycle: 292
Reading  from disk address 65536 to RAM address 16384
Pagetable[2].frame -1
Disk task complete: frame 2 proc 0 page 8 read in 
Unblocking and running process 0
Pagetable[2].frame -1
Reading from page 0
Registers: 
 24 12 8 15 8193 131072 65544 65644 0 65644 100 1 0 1 7 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 8

Machine cycle: 293
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 25 12 8 15 8193 131072 1 65644 0 65644 100 1 0 1 7 2
address 0x19 instruction 0x1d6d
Instruction 0x19 : IFZ R6 Address 0x1d

Machine cycle: 294
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 26 12 8 15 8193 131072 1 65644 0 65644 100 1 0 1 7 2
address 0x1a instruction 0x921b
Instruction 0x1a : GTR R1 R2 R9

Machine cycle: 295
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 27 12 8 15 8193 131072 1 65644 0 1 100 1 0 1 7 2
address 0x1b instruction 0x2b9d
Instruction 0x1b : IFZ R9 Address 0x2b

Machine cycle: 296
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 28 12 8 15 8193 131072 1 65644 0 1 100 1 0 1 7 2
address 0x1c instruction 0x140c
Instruction 0x1c : JMP Address 0x14

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 297
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 20 12 8 15 8193 131072 1 65644 0 1 100 1 0 1 7 2
address 0x14 instruction 0x29
Instruction 0x14 : ICR R2

Machine cycle: 298
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 21 12 9 15 8193 131072 1 65644 0 1 100 1 0 1 7 2
address 0x15 instruction 0x6427
Instruction 0x15 : MUL R2 R4 R6

Machine cycle: 299
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 22 12 9 15 8193 131072 73737 65644 0 1 100 1 0 1 7 2
address 0x16 instruction 0x76a5
Instruction 0x16 : ADD R10 R6 R7

Machine cycle: 300
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 23 12 9 15 8193 131072 73737 73837 0 1 100 1 0 1 7 2
address 0x17 instruction 0x98578
Instruction 0x17 : DIV R7 R5 R8 R9

Machine cycle: 301
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 24 12 9 15 8193 131072 73737 73837 0 73837 100 1 0 1 7 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 9

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 302
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 25 12 9 15 8193 131072 1 73837 0 73837 100 1 0 1 7 2
address 0x19 instruction 0x1d6d
Instruction 0x19 : IFZ R6 Address 0x1d

Machine cycle: 303
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 26 12 9 15 8193 131072 1 73837 0 73837 100 1 0 1 7 2
address 0x1a instruction 0x921b
Instruction 0x1a : GTR R1 R2 R9

Machine cycle: 304
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 27 12 9 15 8193 131072 1 73837 0 1 100 1 0 1 7 2
address 0x1b instruction 0x2b9d
Instruction 0x1b : IFZ R9 Address 0x2b

Machine cycle: 305
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 28 12 9 15 8193 131072 1 73837 0 1 100 1 0 1 7 2
address 0x1c instruction 0x140c
Instruction 0x1c : JMP Address 0x14

Machine cycle: 306
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 20 12 9 15 8193 131072 1 73837 0 1 100 1 0 1 7 2
address 0x14 instruction 0x29
Instruction 0x14 : ICR R2

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 307
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 21 12 10 15 8193 131072 1 73837 0 1 100 1 0 1 7 2
address 0x15 instruction 0x6427
Instruction 0x15 : MUL R2 R4 R6

Machine cycle: 308
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 22 12 10 15 8193 131072 81930 73837 0 1 100 1 0 1 7 2
address 0x16 instruction 0x76a5
Instruction 0x16 : ADD R10 R6 R7

Machine cycle: 309
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 23 12 10 15 8193 131072 81930 82030 0 1 100 1 0 1 7 2
address 0x17 instruction 0x98578
Instruction 0x17 : DIV R7 R5 R8 R9

Machine cycle: 310
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 24 12 10 15 8193 131072 81930 82030 0 82030 100 1 0 1 7 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 10
Page fault: process 0 page 10

Calling page replacement algorithm
Frame 0 Process 0 Page 0 Time 310
Frame 1 Process 0 Page 5 Time 255
Frame 2 Process 0 Page 8 Time 292
Frame 3 Process 0 Page 7 Time 278
Frame 4 Process 0 Page 9 Time 301
Frame 5 Process 0 Page 4 Time 240
Frame 6 Process 0 Page 6 Time 266
Frame 7 Process 0 Page 12 Time 231
Using frame 7
Writing out dirty page 12 of process 0 in frame 7

Machine cycle: 311
Writing to disk address 98304 from RAM address 57344
Pagetable[2].frame -1
Disk task complete: frame 7 written out
Reading in page 10 of process 0 to now-clear frame 7
Pagetable[2].frame -1
IDLE Time: 312

Machine cycle: 312
Reading  from disk address 81920 to RAM address 57344
Pagetable[2].frame -1
Disk task complete: frame 7 proc 0 page 10 read in 
Unblocking and running process 0
Pagetable[2].frame -1
Reading from page 0
Registers: 
 24 12 10 15 8193 131072 81930 82030 0 82030 100 1 0 1 7 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 10

Machine cycle: 313
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 25 12 10 15 8193 131072 1 82030 0 82030 100 1 0 1 7 2
address 0x19 instruction 0x1d6d
Instruction 0x19 : IFZ R6 Address 0x1d

Machine cycle: 314
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 26 12 10 15 8193 131072 1 82030 0 82030 100 1 0 1 7 2
address 0x1a instruction 0x921b
Instruction 0x1a : GTR R1 R2 R9

Machine cycle: 315
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 27 12 10 15 8193 131072 1 82030 0 1 100 1 0 1 7 2
address 0x1b instruction 0x2b9d
Instruction 0x1b : IFZ R9 Address 0x2b

Machine cycle: 316
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 28 12 10 15 8193 131072 1 82030 0 1 100 1 0 1 7 2
address 0x1c instruction 0x140c
Instruction 0x1c : JMP Address 0x14

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 317
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 20 12 10 15 8193 131072 1 82030 0 1 100 1 0 1 7 2
address 0x14 instruction 0x29
Instruction 0x14 : ICR R2

Machine cycle: 318
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 21 12 11 15 8193 131072 1 82030 0 1 100 1 0 1 7 2
address 0x15 instruction 0x6427
Instruction 0x15 : MUL R2 R4 R6

Machine cycle: 319
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 22 12 11 15 8193 131072 90123 82030 0 1 100 1 0 1 7 2
address 0x16 instruction 0x76a5
Instruction 0x16 : ADD R10 R6 R7

Machine cycle: 320
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 23 12 11 15 8193 131072 90123 90223 0 1 100 1 0 1 7 2
address 0x17 instruction 0x98578
Instruction 0x17 : DIV R7 R5 R8 R9

Machine cycle: 321
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 24 12 11 15 8193 131072 90123 90223 0 90223 100 1 0 1 7 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 11
Page fault: process 0 page 11

Calling page replacement algorithm
Frame 0 Process 0 Page 0 Time 321
Frame 1 Process 0 Page 5 Time 255
Frame 2 Process 0 Page 8 Time 292
Frame 3 Process 0 Page 7 Time 278
Frame 4 Process 0 Page 9 Time 301
Frame 5 Process 0 Page 4 Time 240
Frame 6 Process 0 Page 6 Time 266
Frame 7 Process 0 Page 10 Time 312
Using frame 5
Writing out dirty page 4 of process 0 in frame 5

Machine cycle: 322
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 323

Machine cycle: 323
Writing to disk address 32768 from RAM address 40960
Pagetable[2].frame -1
Disk task complete: frame 5 written out
Unblocking and running process 0
Pagetable[2].frame -1
Reading from page 0
Registers: 
 24 12 11 15 8193 131072 90123 90223 0 90223 100 1 0 1 7 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 11

Machine cycle: 324
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 25 12 11 15 8193 131072 0 90223 0 90223 100 1 0 1 7 2
address 0x19 instruction 0x1d6d
Instruction 0x19 : IFZ R6 Address 0x1d

Machine cycle: 325
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 29 12 11 15 8193 131072 0 90223 0 90223 100 1 0 1 7 2
address 0x1d instruction 0x2e2
Instruction 0x1d : CPR R14 R2

Machine cycle: 326
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 30 12 11 15 8193 131072 0 90223 0 90223 100 1 0 1 11 2
address 0x1e instruction 0xf
Instruction 0x1e : TRP
Process primesx index 0 Trap: 
     WRITE:   11

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 327
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 31 12 11 15 8193 131072 0 90223 0 90223 100 1 0 1 11 2
address 0x1f instruction 0x8227
Instruction 0x1f : MUL R2 R2 R8

Machine cycle: 328
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 32 12 11 15 8193 131072 0 90223 121 90223 100 1 0 1 11 2
address 0x20 instruction 0x981b
Instruction 0x20 : GTR R1 R8 R9

Machine cycle: 329
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 33 12 11 15 8193 131072 0 90223 121 0 100 1 0 1 11 2
address 0x21 instruction 0x149d
Instruction 0x21 : IFZ R9 Address 0x14

Machine cycle: 330
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 20 12 11 15 8193 131072 0 90223 121 0 100 1 0 1 11 2
address 0x14 instruction 0x29
Instruction 0x14 : ICR R2

Machine cycle: 331
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 21 12 12 15 8193 131072 0 90223 121 0 100 1 0 1 11 2
address 0x15 instruction 0x6427
Instruction 0x15 : MUL R2 R4 R6

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 332
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 22 12 12 15 8193 131072 98316 90223 121 0 100 1 0 1 11 2
address 0x16 instruction 0x76a5
Instruction 0x16 : ADD R10 R6 R7

Machine cycle: 333
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 23 12 12 15 8193 131072 98316 98416 121 0 100 1 0 1 11 2
address 0x17 instruction 0x98578
Instruction 0x17 : DIV R7 R5 R8 R9

Machine cycle: 334
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 24 12 12 15 8193 131072 98316 98416 0 98416 100 1 0 1 11 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 12
Page fault: process 0 page 12

Calling page replacement algorithm
Frame 0 Process 0 Page 0 Time 334
Frame 1 Process 0 Page 5 Time 255
Frame 2 Process 0 Page 8 Time 292
Frame 3 Process 0 Page 7 Time 278
Frame 4 Process 0 Page 9 Time 301
Frame 5 Process 0 Page 11 Time 323
Frame 6 Process 0 Page 6 Time 266
Frame 7 Process 0 Page 10 Time 312
Using frame 1
Reading in page 12 of process 0 to clean frame 1

Machine cycle: 335
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 336

Machine cycle: 336
Pagetable[2].frame -1
Pagetable[2].frame -1
IDLE Time: 337

Machine cycle: 337
Reading  from disk address 98304 to RAM address 8192
Pagetable[2].frame -1
Disk task complete: frame 1 proc 0 page 12 read in 
Unblocking and running process 0
Pagetable[2].frame -1
Reading from page 0
Registers: 
 24 12 12 15 8193 131072 98316 98416 0 98416 100 1 0 1 11 2
address 0x18 instruction 0x963
Instruction 0x18 : LOI R6 R9
Reading from page 12

Machine cycle: 338
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 25 12 12 15 8193 131072 1 98416 0 98416 100 1 0 1 11 2
address 0x19 instruction 0x1d6d
Instruction 0x19 : IFZ R6 Address 0x1d

Machine cycle: 339
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 26 12 12 15 8193 131072 1 98416 0 98416 100 1 0 1 11 2
address 0x1a instruction 0x921b
Instruction 0x1a : GTR R1 R2 R9

Machine cycle: 340
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 27 12 12 15 8193 131072 1 98416 0 0 100 1 0 1 11 2
address 0x1b instruction 0x2b9d
Instruction 0x1b : IFZ R9 Address 0x2b

Machine cycle: 341
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 43 12 12 15 8193 131072 1 98416 0 0 100 1 0 1 11 2
address 0x2b instruction 0x2df0
Instruction 0x2b : LOA R15 Address 0x2d
Reading from page 0

CONTEXT SWITCH from process 0 to process 0

Machine cycle: 342
Pagetable[2].frame -1
Pagetable[2].frame -1
Reading from page 0
Registers: 
 44 12 12 15 8193 131072 1 98416 0 0 100 1 0 1 11 0
address 0x2c instruction 0xf
Instruction 0x2c : TRP
Process primesx index 0 Trap:  Terminate
All processes terminated
