LEFT | RIGHT |
1 // Copyright (c) 1996 Barry Silverman, Brian Silverman, Vadim Gerasimov. | 1 // Copyright (c) 1996 Barry Silverman, Brian Silverman, Vadim Gerasimov. |
2 // Portions Copyright (c) 2009 The Go Authors. | 2 // Portions Copyright (c) 2009 The Go Authors. |
3 // | 3 // |
4 // Permission is hereby granted, free of charge, to any person obtaining a copy | 4 // Permission is hereby granted, free of charge, to any person obtaining a copy |
5 // of this software and associated documentation files (the "Software"), to deal | 5 // of this software and associated documentation files (the "Software"), to deal |
6 // in the Software without restriction, including without limitation the rights | 6 // in the Software without restriction, including without limitation the rights |
7 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | 7 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
8 // copies of the Software, and to permit persons to whom the Software is | 8 // copies of the Software, and to permit persons to whom the Software is |
9 // furnished to do so, subject to the following conditions: | 9 // furnished to do so, subject to the following conditions: |
10 // | 10 // |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 import ( | 26 import ( |
27 "bytes" | 27 "bytes" |
28 "exp/draw" | 28 "exp/draw" |
29 "exp/nacl/av" | 29 "exp/nacl/av" |
30 "exp/nacl/srpc" | 30 "exp/nacl/srpc" |
31 "image" | 31 "image" |
32 "log" | 32 "log" |
33 "os" | 33 "os" |
34 "runtime" | 34 "runtime" |
35 "strings" | |
36 "time" | 35 "time" |
37 "./pdp1" | 36 "./pdp1" |
38 ) | 37 ) |
39 | 38 |
40 func main() { | 39 func main() { |
41 runtime.LockOSThread() | 40 runtime.LockOSThread() |
42 if srpc.Enabled() { | 41 if srpc.Enabled() { |
43 go srpc.ServeRuntime() | 42 go srpc.ServeRuntime() |
44 } | 43 } |
45 | 44 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 m.ctl |= ctlBits[ch] | 187 m.ctl |= ctlBits[ch] |
189 } | 188 } |
190 if 0 <= -ch && -ch < len(ctlBits) { | 189 if 0 <= -ch && -ch < len(ctlBits) { |
191 m.ctl &^= ctlBits[-ch] | 190 m.ctl &^= ctlBits[-ch] |
192 } | 191 } |
193 default: | 192 default: |
194 return | 193 return |
195 } | 194 } |
196 } | 195 } |
197 } | 196 } |
LEFT | RIGHT |