-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtest1.mmix
More file actions
12 lines (12 loc) · 765 Bytes
/
test1.mmix
File metadata and controls
12 lines (12 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
000000010000: A RIDICULOUS BUT INSTRUCTIVE TEST PROGRAM FOR MMIX-PIPE
f40000038d030004 10000: GETA $0,@+12; LDO $3,$0,4 % start in 8000000000010000
f6120003f000000b 10008: PUT rV,$3; JMP @+44
00300e000000c330 10010: b1=0,b2=0,b3=3,b4=0,s=14,r=6,8n=#330
8000000000010337 10018: level 2 page table pointer
8000000000010330 10020: level 1 page table pointer
ff00000000010337 10028: page table entry, maps seg 2 page (3 4 5) to #10000
4000000c04014000 10030: seg 2, page (3 4 5)
8d0200248d040228 10038: LDO $2,$0,36; LDO $4,$2,40 % $2=[#10030], $4=[#10028]
bf030248f8640002 10040: PUSHGO $3,$2,#48; POP 100,2 % goes to #10048
4700ffffe4008000 10048: BOD $0,@-4; INCH $0,#8000 % goes back, then fwd
3901002f00000000 10050: SL $1,$0,47; TRAP 0,0,0