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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
IDLE Time: 76

Machine cycle: 76
Writing to disk address 8192 from RAM address 8192
Disk task complete: frame 1 written out
Unblocking and running process 0
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
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
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
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
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
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
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
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
IDLE Time: 85

Machine cycle: 85
Writing to disk address 16384 from RAM address 16384
Disk task complete: frame 2 written out
Unblocking and running process 0
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
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
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
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
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
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
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
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
IDLE Time: 94

Machine cycle: 94
IDLE Time: 95

Machine cycle: 95
IDLE Time: 96

Machine cycle: 96
IDLE Time: 97

Machine cycle: 97
Writing to disk address 24576 from RAM address 24576
Disk task complete: frame 3 written out
Unblocking and running process 0
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
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
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
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
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
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
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
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
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
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
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
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
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
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
IDLE Time: 112

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

Machine cycle: 113
IDLE Time: 114

Machine cycle: 114
IDLE Time: 115

Machine cycle: 115
IDLE Time: 116

Machine cycle: 116
IDLE Time: 117

Machine cycle: 117
IDLE Time: 118

Machine cycle: 118
IDLE Time: 119

Machine cycle: 119
IDLE Time: 120

Machine cycle: 120
IDLE Time: 121

Machine cycle: 121
Reading  from disk address 16384 to RAM address 32768
Disk task complete: frame 4 proc 0 page 2 read in 
Unblocking and running process 0
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
IDLE Time: 141

Machine cycle: 141
IDLE Time: 142

Machine cycle: 142
IDLE Time: 143

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

Machine cycle: 144
IDLE Time: 145

Machine cycle: 145
IDLE Time: 146

Machine cycle: 146
IDLE Time: 147

Machine cycle: 147
Reading  from disk address 32768 to RAM address 40960
Disk task complete: frame 5 proc 0 page 4 read in 
Unblocking and running process 0
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
IDLE Time: 177

Machine cycle: 177
IDLE Time: 178

Machine cycle: 178
IDLE Time: 179

Machine cycle: 179
Writing to disk address 57344 from RAM address 57344
Disk task complete: frame 7 written out
Unblocking and running process 0
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
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
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
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
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
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
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
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
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
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
IDLE Time: 190

Machine cycle: 190
IDLE Time: 191

Machine cycle: 191
IDLE Time: 192

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

Machine cycle: 193
IDLE Time: 194

Machine cycle: 194
IDLE Time: 195

Machine cycle: 195
Reading  from disk address 24576 to RAM address 16384
Disk task complete: frame 2 proc 0 page 3 read in 
Unblocking and running process 0
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
IDLE Time: 222

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

Machine cycle: 223
IDLE Time: 224

Machine cycle: 224
Reading  from disk address 73728 to RAM address 32768
Disk task complete: frame 4 proc 0 page 9 read in 
Unblocking and running process 0
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
IDLE Time: 251

Machine cycle: 251
IDLE Time: 252

Machine cycle: 252
IDLE Time: 253

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

Machine cycle: 254
IDLE Time: 255

Machine cycle: 255
Reading  from disk address 40960 to RAM address 8192
Disk task complete: frame 1 proc 0 page 5 read in 
Unblocking and running process 0
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Disk task complete: frame 3 written out
Reading in page 7 of process 0 to now-clear frame 3
IDLE Time: 277

Machine cycle: 277
IDLE Time: 278

Machine cycle: 278
Reading  from disk address 57344 to RAM address 24576
Disk task complete: frame 3 proc 0 page 7 read in 
Unblocking and running process 0
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
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
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
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
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
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
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
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
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
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
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
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
Disk task complete: frame 2 written out
Reading in page 8 of process 0 to now-clear frame 2
IDLE Time: 291

Machine cycle: 291
IDLE Time: 292

Machine cycle: 292
Reading  from disk address 65536 to RAM address 16384
Disk task complete: frame 2 proc 0 page 8 read in 
Unblocking and running process 0
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Disk task complete: frame 7 written out
Reading in page 10 of process 0 to now-clear frame 7
IDLE Time: 312

Machine cycle: 312
Reading  from disk address 81920 to RAM address 57344
Disk task complete: frame 7 proc 0 page 10 read in 
Unblocking and running process 0
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
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
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
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
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
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
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
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
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
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
IDLE Time: 323

Machine cycle: 323
Writing to disk address 32768 from RAM address 40960
Disk task complete: frame 5 written out
Unblocking and running process 0
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
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
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
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
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
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
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
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
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
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
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
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
IDLE Time: 336

Machine cycle: 336
IDLE Time: 337

Machine cycle: 337
Reading  from disk address 98304 to RAM address 8192
Disk task complete: frame 1 proc 0 page 12 read in 
Unblocking and running process 0
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
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
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
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
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
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
