-
Notifications
You must be signed in to change notification settings - Fork 3
/
asm.sed.vax
93 lines (93 loc) · 2.17 KB
/
asm.sed.vax
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
s,asm.sed.vax 4.1 82/10/06,asm.sed.vax 4.1 82/10/06,
s/calls $0,_spl0/mfpr $18,r0\
mtpr $0,$18/
s/calls $0,_spl1/mfpr $18,r0\
mtpr $0,$18/
s/calls $0,_splnet/mfpr $18,r0\
mtpr $0xc,$18/
s/calls $0,_spl4/mfpr $18,r0\
mtpr $0x14,$18/
s/calls r[0-9]*,_spl4/mfpr $18,r0\
mtpr $0x14,$18/
s/calls $0,_spl5/mfpr $18,r0\
mtpr $0x15,$18/
s/calls r[0-9]*,_spl5/mfpr $18,r0\
mtpr $0x15,$18/
s/calls $0,_spl6/mfpr $18,r0\
mtpr $0x18,$18/
s/calls r[0-9]*,_spl6/mfpr $18,r0\
mtpr $0x18,$18/
s/calls $0,_spl7/mfpr $18,r0\
mtpr $0x1f,$18/
s/calls $1,_splx/mfpr $18,r0\
mtpr (sp)+,$18/
s/calls $1,_mfpr/mfpr (sp)+,r0/
s/calls $2,_mtpr/mtpr 4(sp),(sp)\
addl2 $8,sp/
s/calls $1,_resume/ashl $9,(sp)+,r0 \
movpsl -(sp) \
jsb _Resume/
s/calls $3,_bcmp/cmpc3 8(sp),*(sp),*4(sp)\
addl2 $12,sp/
s/calls $3,_bcopy/movc3 8(sp),*(sp),*4(sp)\
addl2 $12,sp/
s/calls $2,_bzero/movc5 $0,(r0),$0,4(sp),*(sp)\
addl2 $8,sp/
s/calls $3,_copyin/jsb _Copyin\
addl2 $12,sp/
s/calls $3,_copyout/jsb _Copyout\
addl2 $12,sp/
s/calls $1,_fubyte/movl (sp)+,r0 \
jsb _Fubyte/
s/calls $1,_fuibyte/movl (sp)+,r0 \
jsb _Fubyte/
s/calls $1,_fuword/movl (sp)+,r0 \
jsb _Fuword/
s/calls $1,_fuiword/movl (sp)+,r0 \
jsb _Fuword/
s/calls $2,_subyte/movl (sp)+,r0 \
movl (sp)+,r1 \
jsb _Subyte/
s/calls $2,_suibyte/movl (sp)+,r0 \
movl (sp)+,r1 \
jsb _Subyte/
s/calls $2,_suword/movl (sp)+,r0 \
movl (sp)+,r1 \
jsb _Suword/
s/calls $2,_suiword/movl (sp)+,r0 \
movl (sp)+,r1 \
jsb _Suword/
s/calls $1,_setrq/movl (sp)+,r0 \
jsb _Setrq/
s/calls $1,_remrq/movl (sp)+,r0 \
jsb _Remrq/
s/calls $0,_swtch/movpsl -(sp)\
jsb _Swtch/
s/calls $1,_ffs/ffs $0,$32,(sp)+,r0 \
bneq 1f \
mnegl $1,r0 \
1: \
incl r0/
s/calls $1,_htons/rotl $8,(sp),r0\
movb 1(sp),r0\
movzwl r0,r0\
addl2 $4,sp/
s/calls $1,_ntohs/rotl $8,(sp),r0\
movb 1(sp),r0\
movzwl r0,r0\
addl2 $4,sp/
s/calls $1,_htonl/rotl $-8,(sp),r0\
insv r0,$16,$8,r0\
movb 3(sp),r0\
addl2 $4,sp/
s/calls $1,_ntohl/rotl $-8,(sp),r0\
insv r0,$16,$8,r0\
movb 3(sp),r0\
addl2 $4,sp/
s/calls $2,__insque/insque *(sp)+,*(sp)+/
s/calls $1,__remque/remque *(sp)+,r0/
s/calls $2,__queue/movl (sp)+,r0\
movl (sp)+,r1\
insque r1,*4(r0)/
s/calls $1,__dequeue/movl (sp)+,r0\
remque *(r0),r0/