-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.mmix
More file actions
12 lines (12 loc) · 765 Bytes
/
test.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 r0,$+3; LDO r3,r0,4 % start in 8000000000010000
f6130003f000000b 10008: PUT rV,r3; JMP $+11
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 r2,r0,36; LDO r4,r2,40 % r2=[#10030], r4=[#10028]
bf030248f8640002 10040: PUSHGO r3,r2,#48; POP r100,2 % goes to #10048
4700ffff34008000 10048: BOD r0,$-1; INCH r0,#8000 % goes back, then fwd
d101002f00000000 10050: SL r1,r0,47; TRAP 0,0,0