Compare commits
594 Commits
unlabeled-
...
unlabeled-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2be9641058 | ||
|
|
195fdb4816 | ||
|
|
a7c6fa501b | ||
|
|
408dacc2aa | ||
|
|
7397122695 | ||
|
|
abcbc93b5d | ||
|
|
de6ce0fe74 | ||
|
|
b449b94b48 | ||
|
|
7d85a4c0b3 | ||
|
|
66ab97d2b0 | ||
|
|
241a7de970 | ||
|
|
41d580c9cf | ||
|
|
ec46d547c4 | ||
|
|
daa47964a5 | ||
|
|
ee63833f41 | ||
|
|
445d52de66 | ||
|
|
b82c00e153 | ||
|
|
972692cb1c | ||
|
|
bbfb511322 | ||
|
|
3f3bddef8f | ||
|
|
9f45dd0650 | ||
|
|
43a2b60360 | ||
|
|
14875e6ca5 | ||
|
|
d32de5df93 | ||
|
|
eeb944f6e3 | ||
|
|
ca28f34c8e | ||
|
|
625c309fa6 | ||
|
|
9f3928cd3a | ||
|
|
a65f05f29f | ||
|
|
6a6a84a274 | ||
|
|
4f80e81ee7 | ||
|
|
eb2b9d0bac | ||
|
|
792d315beb | ||
|
|
04e454d3c6 | ||
|
|
a1c2dadb2a | ||
|
|
b6381fad79 | ||
|
|
c9eb48d373 | ||
|
|
67d635ccd4 | ||
|
|
f37307bc06 | ||
|
|
2a4335787e | ||
|
|
1b5278f3d4 | ||
|
|
815b0e0f0f | ||
|
|
70c000b03e | ||
|
|
f59262745e | ||
|
|
cc4f8a793a | ||
|
|
52fee02e94 | ||
|
|
fee336890b | ||
|
|
0b6744bb91 | ||
|
|
e704ddc158 | ||
|
|
f7699474b8 | ||
|
|
6909adbf9c | ||
|
|
156775643e | ||
|
|
d41c902b12 | ||
|
|
43f003e959 | ||
|
|
ba1e51e914 | ||
|
|
66875f1bde | ||
|
|
8a7ee2ea50 | ||
|
|
e9850f2691 | ||
|
|
0122bc2dd7 | ||
|
|
c0085c2dd4 | ||
|
|
00d75279e7 | ||
|
|
c0d87aaa16 | ||
|
|
3c7fcfe81a | ||
|
|
4ff7e05f7e | ||
|
|
3df42a584c | ||
|
|
9c93cbdfaa | ||
|
|
1b36afae36 | ||
|
|
0ff3a17f5e | ||
|
|
d7abe0e8b6 | ||
|
|
20986fd6ea | ||
|
|
293dfd2c64 | ||
|
|
e1b8023da1 | ||
|
|
52d0f32e32 | ||
|
|
c8e426ffb8 | ||
|
|
b70b6ba980 | ||
|
|
c90c70bb84 | ||
|
|
a50f8ebe1c | ||
|
|
da898f1325 | ||
|
|
1e38fa0573 | ||
|
|
5a6676cc53 | ||
|
|
987ed39adb | ||
|
|
3d4a5efe99 | ||
|
|
46f5004866 | ||
|
|
df168727a6 | ||
|
|
2cc4735151 | ||
|
|
dd7e9436a2 | ||
|
|
8e154eb826 | ||
|
|
ca219d89e9 | ||
|
|
26999bb517 | ||
|
|
103659cd7b | ||
|
|
626ae9760f | ||
|
|
dcd8451347 | ||
|
|
882906b3c3 | ||
|
|
f586956618 | ||
|
|
6459b0bf5f | ||
|
|
1f56b2aa4c | ||
|
|
d1c0d1db13 | ||
|
|
b99ce86e16 | ||
|
|
bec394f7bd | ||
|
|
db19d06f61 | ||
|
|
e936aea1e1 | ||
|
|
31eab814f2 | ||
|
|
7f9dd27dc8 | ||
|
|
387191a2c7 | ||
|
|
cf3d3ad287 | ||
|
|
1bc30e42eb | ||
|
|
e271d9bbb8 | ||
|
|
a49f2d23f7 | ||
|
|
3c5d3c55af | ||
|
|
6d344b6702 | ||
|
|
8fa5a7b668 | ||
|
|
d12fef6c05 | ||
|
|
ed1ee8a3b4 | ||
|
|
3bb153d6bb | ||
|
|
df08133a04 | ||
|
|
06087a6bc3 | ||
|
|
fd4d46036a | ||
|
|
1e3ec09984 | ||
|
|
58c5d2d8ac | ||
|
|
410800127c | ||
|
|
1732114593 | ||
|
|
66eabbcddf | ||
|
|
468401cb81 | ||
|
|
cac6ffd8c2 | ||
|
|
d32d4e6ba0 | ||
|
|
5cad6f6aa7 | ||
|
|
e46c49e291 | ||
|
|
5a95c31414 | ||
|
|
f487f26e00 | ||
|
|
e95492dfb0 | ||
|
|
fefe15a844 | ||
|
|
3d2c33e277 | ||
|
|
2ea3be322d | ||
|
|
a849b751a9 | ||
|
|
ea337060ec | ||
|
|
33c81637db | ||
|
|
8bdec01d71 | ||
|
|
7556180ab3 | ||
|
|
09000449a4 | ||
|
|
68644410fb | ||
|
|
c2e988c3d5 | ||
|
|
d4a597912f | ||
|
|
682e5d9b8a | ||
|
|
f7027ba7e4 | ||
|
|
52a627589a | ||
|
|
5fc9fdf795 | ||
|
|
08c8edf314 | ||
|
|
603f82a578 | ||
|
|
8f81c858f8 | ||
|
|
6a21488f0c | ||
|
|
374ac8b21c | ||
|
|
770f321ea8 | ||
|
|
decda89fba | ||
|
|
ff46181ae0 | ||
|
|
dbb0d46ac2 | ||
|
|
d53ef52028 | ||
|
|
a91ff9e04b | ||
|
|
56a8cd53b6 | ||
|
|
0c2aee4835 | ||
|
|
cd78a1a27a | ||
|
|
309bbef3ea | ||
|
|
71cbd2c92f | ||
|
|
cb49888304 | ||
|
|
9479f61318 | ||
|
|
8d02182e12 | ||
|
|
aef211ad4e | ||
|
|
a33d0e8e14 | ||
|
|
4f40987ff0 | ||
|
|
ccfa0db0de | ||
|
|
6ac5841c7f | ||
|
|
f9c86fc6f6 | ||
|
|
a4ca3054f0 | ||
|
|
10ce06ff2b | ||
|
|
8d87404836 | ||
|
|
2d8dcaa2df | ||
|
|
d8d2068664 | ||
|
|
e1ef16649c | ||
|
|
6512a304a0 | ||
|
|
e75b8772ca | ||
|
|
d19105ef78 | ||
|
|
f9b105e07a | ||
|
|
218ce4596e | ||
|
|
8f7a447719 | ||
|
|
14a9b13fd3 | ||
|
|
d72ad93216 | ||
|
|
081413cfda | ||
|
|
f0d34942e3 | ||
|
|
959138af97 | ||
|
|
c61ea7ee53 | ||
|
|
22e4268cc7 | ||
|
|
e2c5191f0c | ||
|
|
7f0def8861 | ||
|
|
dac2f97109 | ||
|
|
3a528a7324 | ||
|
|
3534869cb5 | ||
|
|
e9b6045b5a | ||
|
|
a1a8fd99a0 | ||
|
|
d7fb9edfe2 | ||
|
|
58126396af | ||
|
|
55017702e2 | ||
|
|
7d312abd59 | ||
|
|
ba826bad5c | ||
|
|
4ba6e7a39c | ||
|
|
f838dd1047 | ||
|
|
6aaff51b39 | ||
|
|
f532b58045 | ||
|
|
576688fc10 | ||
|
|
72b83cca59 | ||
|
|
5edf93d2de | ||
|
|
dd0951f114 | ||
|
|
5779a88371 | ||
|
|
22c95138aa | ||
|
|
d0268a4ec1 | ||
|
|
112211eb3b | ||
|
|
d0444e3a04 | ||
|
|
9beb72e69b | ||
|
|
5fedca22ad | ||
|
|
b4ad7c46da | ||
|
|
c2229e5c60 | ||
|
|
11b3f3aa8a | ||
|
|
79411cb4b3 | ||
|
|
dd8505531b | ||
|
|
26f38cada3 | ||
|
|
c235c1a93d | ||
|
|
d16efbab98 | ||
|
|
57115f49cc | ||
|
|
5e8a571801 | ||
|
|
006c4b7a49 | ||
|
|
5662050ad3 | ||
|
|
6a08d40d15 | ||
|
|
fe6eed6c76 | ||
|
|
0ebd337637 | ||
|
|
ffb167e8b2 | ||
|
|
6860747f3e | ||
|
|
18dbfc024e | ||
|
|
e129db8343 | ||
|
|
b2b1167d7a | ||
|
|
6c9e4c84f0 | ||
|
|
6b38714690 | ||
|
|
80d385c291 | ||
|
|
37d01caabd | ||
|
|
7b39ce2cfa | ||
|
|
53a88ccd69 | ||
|
|
2d4614ca5a | ||
|
|
246f45c867 | ||
|
|
b544d3b401 | ||
|
|
5f41dcd958 | ||
|
|
9ea83d0838 | ||
|
|
45e2eea414 | ||
|
|
8b60227186 | ||
|
|
f0a6c2fbcf | ||
|
|
8636bd025e | ||
|
|
4d8c88e7b1 | ||
|
|
b4faacec8c | ||
|
|
eb15231cf4 | ||
|
|
cf947cedd3 | ||
|
|
e3bf7b5dc7 | ||
|
|
a5e9c4f8d1 | ||
|
|
8c874d4632 | ||
|
|
d267037189 | ||
|
|
ea8e311e5a | ||
|
|
3ab2889451 | ||
|
|
c693044013 | ||
|
|
3b3d3f16b4 | ||
|
|
4f071008c8 | ||
|
|
d77b2081c0 | ||
|
|
b097fe72a7 | ||
|
|
66d68121c8 | ||
|
|
5060a9fcd6 | ||
|
|
523457f6ee | ||
|
|
6babe9fccd | ||
|
|
ad815f1061 | ||
|
|
aa0f76a6cd | ||
|
|
c39e619032 | ||
|
|
4a2c2d89a0 | ||
|
|
468cdfd3eb | ||
|
|
83f3de1555 | ||
|
|
ef7ea116cd | ||
|
|
f4ab1bb6e6 | ||
|
|
98989fd9ca | ||
|
|
9932e38ab2 | ||
|
|
0b9b183085 | ||
|
|
4cc2986757 | ||
|
|
9f850cbb2d | ||
|
|
24204bca9f | ||
|
|
1e651a534a | ||
|
|
1b210a8104 | ||
|
|
a0f184e3d1 | ||
|
|
9b6c26ad14 | ||
|
|
89a757d6f9 | ||
|
|
518e817345 | ||
|
|
f9fa5df654 | ||
|
|
9e4b9fddab | ||
|
|
7f12f20be6 | ||
|
|
9019141137 | ||
|
|
af75a28622 | ||
|
|
c744b44b48 | ||
|
|
80d4c7ca2f | ||
|
|
c2d3d6ce4a | ||
|
|
47f5e79d96 | ||
|
|
2c7c97051b | ||
|
|
0d5c765070 | ||
|
|
01d4011dd6 | ||
|
|
7f3328678f | ||
|
|
d9fe7e9cf0 | ||
|
|
4e461a9860 | ||
|
|
3cdaf9f4ba | ||
|
|
0d0e2d2d22 | ||
|
|
8d659c015f | ||
|
|
695a914eb3 | ||
|
|
9b72991e27 | ||
|
|
8db2c12881 | ||
|
|
7e8d898bcb | ||
|
|
550e4d3cee | ||
|
|
271b83ecb3 | ||
|
|
ee3ef338db | ||
|
|
7e3e49082c | ||
|
|
0778ce4a9a | ||
|
|
7351e38ed5 | ||
|
|
bac0efbedb | ||
|
|
302608566a | ||
|
|
c814b9523d | ||
|
|
39891edd12 | ||
|
|
90df1e5b9a | ||
|
|
1e69d3458c | ||
|
|
6988358e29 | ||
|
|
49137da06b | ||
|
|
594a5bb49b | ||
|
|
e5a282c621 | ||
|
|
4ab54c85a8 | ||
|
|
7ac377c750 | ||
|
|
ad104f9164 | ||
|
|
1b8f41d3b2 | ||
|
|
b532117b2b | ||
|
|
bda5c8409c | ||
|
|
f6da80afd8 | ||
|
|
8a15a3f597 | ||
|
|
ae1e81adb1 | ||
|
|
0c0c3b7892 | ||
|
|
b0de601d5b | ||
|
|
7767012a6e | ||
|
|
bd06330739 | ||
|
|
84ed8ee7ef | ||
|
|
f3e35f5432 | ||
|
|
edcb838b98 | ||
|
|
c17a52c09d | ||
|
|
0032ebfeda | ||
|
|
582a0cc2aa | ||
|
|
dd5ceb7b97 | ||
|
|
470826f0c9 | ||
|
|
1cb39eff7e | ||
|
|
90c1dc7c06 | ||
|
|
39c37e9571 | ||
|
|
3ceada5482 | ||
|
|
3cab14d65e | ||
|
|
7efc02574d | ||
|
|
9f872a7ea0 | ||
|
|
ea5498cd99 | ||
|
|
455cd930ec | ||
|
|
335d55ff4a | ||
|
|
4301dfb7bf | ||
|
|
502a7a86af | ||
|
|
30ca0afe49 | ||
|
|
ad383cbdc0 | ||
|
|
165965eadc | ||
|
|
a6d53a6bcd | ||
|
|
df200afd46 | ||
|
|
9c3a416acd | ||
|
|
9e38bfa060 | ||
|
|
2d6eff961f | ||
|
|
0981b8857b | ||
|
|
69bdddd9ba | ||
|
|
4a36e98f5c | ||
|
|
3c2c03165b | ||
|
|
c4b4a08720 | ||
|
|
6d481ce4d6 | ||
|
|
6a9e49f683 | ||
|
|
1833451151 | ||
|
|
9f778655a6 | ||
|
|
f01e1431b0 | ||
|
|
415ae7e922 | ||
|
|
7b798175ad | ||
|
|
5481dd47a9 | ||
|
|
0a00b80726 | ||
|
|
6a4dc794a2 | ||
|
|
7c07f91e1c | ||
|
|
36c1f227ea | ||
|
|
1fe1bc8c09 | ||
|
|
4e7f357a26 | ||
|
|
9f776924d6 | ||
|
|
cb84476be0 | ||
|
|
d07b17ca5c | ||
|
|
58c679c94c | ||
|
|
e2e78ccd0a | ||
|
|
0d5a4693a7 | ||
|
|
95dd252a5b | ||
|
|
87c5817216 | ||
|
|
b6cfa32faa | ||
|
|
b9ebdc1a07 | ||
|
|
73b651052e | ||
|
|
6913efe107 | ||
|
|
3e7b7990f2 | ||
|
|
9c66801439 | ||
|
|
2976b590af | ||
|
|
a837112d99 | ||
|
|
13685d4bc0 | ||
|
|
45887f2b72 | ||
|
|
4d48191bcc | ||
|
|
fedaa3267a | ||
|
|
3d4feae541 | ||
|
|
88b487cd7b | ||
|
|
90a899316e | ||
|
|
08632dc7bd | ||
|
|
ae27a86236 | ||
|
|
fd0066f3a6 | ||
|
|
1092994a09 | ||
|
|
da7230a8eb | ||
|
|
1ca93d7aa1 | ||
|
|
9d8dd3f989 | ||
|
|
c5345aaaba | ||
|
|
fd23647c1c | ||
|
|
4724e96474 | ||
|
|
8df0cf17d6 | ||
|
|
37730ff9ca | ||
|
|
a1e7cc26f4 | ||
|
|
137fa9ebce | ||
|
|
0cacc96ed8 | ||
|
|
4a20e17a9b | ||
|
|
3bfc57ecd0 | ||
|
|
86d96452a3 | ||
|
|
e88028dcb9 | ||
|
|
1e1fc36653 | ||
|
|
cdebe97db8 | ||
|
|
08545984f4 | ||
|
|
b8e156100f | ||
|
|
9109aaaada | ||
|
|
b51fa518be | ||
|
|
c2b1975015 | ||
|
|
ca89e47aa4 | ||
|
|
26ba8cc8fd | ||
|
|
c94c590501 | ||
|
|
38a943d27a | ||
|
|
916b1b016e | ||
|
|
a72cc54578 | ||
|
|
9b6418c324 | ||
|
|
e03e8c7607 | ||
|
|
2cb8aae438 | ||
|
|
533d2bb940 | ||
|
|
828b4d62c9 | ||
|
|
7e31dee840 | ||
|
|
a4a5fc4bfa | ||
|
|
62f42d18f7 | ||
|
|
be9b72e273 | ||
|
|
79ea4bdea3 | ||
|
|
ab0db1c5fb | ||
|
|
5d5a09a5d0 | ||
|
|
9eb72b6ee8 | ||
|
|
f1a2fdaa43 | ||
|
|
bdc67c3332 | ||
|
|
a33d4cdbba | ||
|
|
94e069fde1 | ||
|
|
c89acc55c7 | ||
|
|
d068cf64b3 | ||
|
|
774ce1ecc3 | ||
|
|
dd1bcb3f60 | ||
|
|
317ab99ecf | ||
|
|
474d9d6e0f | ||
|
|
a9a0339ec1 | ||
|
|
27dcc7efc6 | ||
|
|
58b1dd5b6d | ||
|
|
82d5bad777 | ||
|
|
a7c0f30307 | ||
|
|
de22c41214 | ||
|
|
a21f936651 | ||
|
|
6cbb37051b | ||
|
|
550d1fa79e | ||
|
|
46dc90f366 | ||
|
|
8958cb6faf | ||
|
|
b5fa0675b6 | ||
|
|
8e680a6467 | ||
|
|
c4434ccbce | ||
|
|
1b251d6ab0 | ||
|
|
5376af0d04 | ||
|
|
00bd62d942 | ||
|
|
0abe5e195e | ||
|
|
4c0687f68b | ||
|
|
42be23b631 | ||
|
|
13d6e6815e | ||
|
|
92aecb175c | ||
|
|
a3f62d0255 | ||
|
|
080555fffd | ||
|
|
083dccb299 | ||
|
|
1bea1c6883 | ||
|
|
6da6316680 | ||
|
|
523134a5dc | ||
|
|
abb1fce8ff | ||
|
|
6010f7b584 | ||
|
|
a88bca3670 | ||
|
|
95510f8b4c | ||
|
|
2c4b17e464 | ||
|
|
c97e1a7bc2 | ||
|
|
c93761cadc | ||
|
|
aa4bae59e0 | ||
|
|
527726167a | ||
|
|
68a6231d11 | ||
|
|
ebed9d4804 | ||
|
|
5895758914 | ||
|
|
3c300d3e1c | ||
|
|
8443ef3f8d | ||
|
|
1188f0e810 | ||
|
|
1dba1f5328 | ||
|
|
20100c69c7 | ||
|
|
c504e2e22a | ||
|
|
31f96c6850 | ||
|
|
6eda6ac320 | ||
|
|
384bb7f6c4 | ||
|
|
4c265a7cc6 | ||
|
|
2bf16c5b2f | ||
|
|
0d48be448f | ||
|
|
f6b59970f6 | ||
|
|
1d463f136a | ||
|
|
773f0aa626 | ||
|
|
621f9f4ea9 | ||
|
|
198da9e822 | ||
|
|
5db647e661 | ||
|
|
3744019c53 | ||
|
|
5689e6ab64 | ||
|
|
4759d84bdd | ||
|
|
c2f189c855 | ||
|
|
822b1c557c | ||
|
|
744bc6845d | ||
|
|
ce098c78cb | ||
|
|
d1b3479a55 | ||
|
|
e682a47599 | ||
|
|
eebcf1b22c | ||
|
|
b31c9f4a4a | ||
|
|
e41876f32a | ||
|
|
eff0f36a5d | ||
|
|
6f8e6faa1f | ||
|
|
59fa458a20 | ||
|
|
ff9d23e4ec | ||
|
|
93672962a1 | ||
|
|
afc577b6c7 | ||
|
|
fe922d190d | ||
|
|
6e519cf02b | ||
|
|
f2e52892ac | ||
|
|
233b4aeee4 | ||
|
|
d90f26a8c5 | ||
|
|
0b07016f0b | ||
|
|
5894adfd67 | ||
|
|
14a3683f85 | ||
|
|
eebc753306 | ||
|
|
978dd0191a | ||
|
|
5b20e4fed2 | ||
|
|
c2f383773d | ||
|
|
ebc7a50d8f | ||
|
|
98c1d6868f | ||
|
|
c99e75a01b | ||
|
|
bb4210de79 | ||
|
|
b410ca7f8c | ||
|
|
25a8908e26 | ||
|
|
597d25decd | ||
|
|
eb823929a1 | ||
|
|
ef248ee65e | ||
|
|
e20ab23a4b | ||
|
|
5fb767966b | ||
|
|
3b991bd1ce | ||
|
|
15e9fd8cd5 | ||
|
|
73d8f05fb5 | ||
|
|
3ca5d2fcb6 | ||
|
|
8483d153f2 | ||
|
|
b95f4c8bfd | ||
|
|
801226a45c | ||
|
|
f16fdf4e7f | ||
|
|
d082a2b0a2 | ||
|
|
d5aa088876 | ||
|
|
8defe7ce53 | ||
|
|
69584eb0ca | ||
|
|
1eade4ac9d | ||
|
|
da4092cbdf | ||
|
|
c1fd560106 | ||
|
|
17caf7129e | ||
|
|
a520ccdbbc | ||
|
|
eeeff10a51 | ||
|
|
c75693c35a | ||
|
|
e1aef765a0 | ||
|
|
2943d957bb | ||
|
|
ec992b001c | ||
|
|
8304ce5eae | ||
|
|
8af636a3c1 | ||
|
|
3169067979 | ||
|
|
a241500a91 | ||
|
|
0473678491 | ||
|
|
fc59a0d703 |
@@ -1,47 +0,0 @@
|
||||
# $Header$
|
||||
d=../../..
|
||||
h=$d/h
|
||||
PEM=$d/lib/pc_pem
|
||||
PEM_OUT=$d/lib/pc_pem.out
|
||||
|
||||
HEAD=$h/em_spec.h $h/em_pseu.h $h/em_mnem.h $h/em_mes.h $h/pc_size.h
|
||||
LDFLAG=-i
|
||||
|
||||
all: pem pem.out
|
||||
|
||||
pem.out: pem.m
|
||||
apc -mint --t -o pem.out pem.m
|
||||
|
||||
pem: pem.m
|
||||
apc $(LDFLAG) -o pem pem.m
|
||||
|
||||
# pem.m is system dependent and may NOT be distributed
|
||||
pem.m: pem.p $(HEAD)
|
||||
-rm -f pem.m
|
||||
-if apc -I$h -O -c.m pem.p ; then :; else \
|
||||
acc -o move move.c ; move ; rm -f move move.[oskm] ; \
|
||||
fi
|
||||
|
||||
cmp: pem
|
||||
cmp pem $(PEM)
|
||||
|
||||
install: pem
|
||||
cp pem $(PEM)
|
||||
|
||||
distr:
|
||||
rm -f pem2[24].p
|
||||
co -rdistr2 -p pem.p >pem22.p
|
||||
apc -mpdp -c.m -I$h pem22.p ; rm -f pem22.p
|
||||
co -rdistr2 -p pem.p >pem24.p
|
||||
apc -mvax2 -c.m -I$h pem24.p ; rm -f pem24.p
|
||||
clean:
|
||||
-rm -f pem pem.out *.[os] *.old
|
||||
|
||||
pr:
|
||||
@pr pem.p
|
||||
|
||||
xref:
|
||||
xref pem.p^pr -h "XREF PEM.P"
|
||||
|
||||
opr:
|
||||
make pr ^ opr
|
||||
2852
mach/pdp/cg/table
Normal file
2852
mach/pdp/cg/table
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,363 +0,0 @@
|
||||
/* @(#)comm6.c 1.7 */
|
||||
/*
|
||||
* implement pseudo instructions
|
||||
*/
|
||||
|
||||
#include "comm0.h"
|
||||
#include "comm1.h"
|
||||
#include "y.tab.h"
|
||||
|
||||
newequate(ip, typ)
|
||||
register item_t *ip;
|
||||
register short typ;
|
||||
{
|
||||
typ &= ~S_EXT;
|
||||
if (typ & S_COM)
|
||||
typ = S_UND;
|
||||
else if ((typ & S_VAR) && (typ & S_TYP) != S_ABS)
|
||||
typ = S_UND;
|
||||
#ifdef THREE_PASS
|
||||
else if (pass == PASS_1 && typ == S_UND)
|
||||
typ = S_VAR;
|
||||
else if (pass == PASS_2 && (ip->i_type & S_TYP) == S_UND)
|
||||
ip->i_type |= typ;
|
||||
#endif THREE_PASS
|
||||
if (typ == S_UND)
|
||||
serror("illegal equate");
|
||||
if (pass == PASS_3)
|
||||
assert((ip->i_type & S_TYP) == (typ & S_TYP));
|
||||
newident(ip, typ);
|
||||
}
|
||||
|
||||
newident(ip, typ)
|
||||
register item_t *ip;
|
||||
{
|
||||
register flag;
|
||||
#ifdef GENLAB
|
||||
static char genlab[] = GENLAB;
|
||||
#endif GENLAB
|
||||
|
||||
if (pass == PASS_1) {
|
||||
/* printf("declare %s: %o\n", ip->i_name, typ); */
|
||||
if (ip->i_type & ~S_EXT)
|
||||
serror("multiple declared");
|
||||
else
|
||||
--unresolved;
|
||||
ip->i_type |= typ;
|
||||
}
|
||||
if (PASS_SYMB == 0)
|
||||
return;
|
||||
#ifdef THREE_PASS
|
||||
if (ip->i_type & S_EXT)
|
||||
flag = SYM_EXT;
|
||||
else
|
||||
flag = SYM_LOC;
|
||||
#else
|
||||
flag = SYM_EXT|SYM_LOC; /* S_EXT not stable in PASS_1 */
|
||||
#endif THREE_PASS
|
||||
#ifdef GENLAB
|
||||
if (strncmp(ip->i_name, genlab, sizeof(genlab)-1) == 0)
|
||||
flag = SYM_LAB;
|
||||
#endif GENLAB
|
||||
if (sflag & flag)
|
||||
newsymb(
|
||||
ip->i_name,
|
||||
ip->i_type & (S_EXT|S_TYP),
|
||||
(short)0,
|
||||
load(ip)
|
||||
);
|
||||
}
|
||||
|
||||
newlabel(ip)
|
||||
register item_t *ip;
|
||||
{
|
||||
#ifdef THREE_PASS
|
||||
register addr_t oldval = ip->i_valu;
|
||||
#endif
|
||||
|
||||
if (DOTSCT == NULL)
|
||||
nosect();
|
||||
ip->i_type &= ~S_TYP;
|
||||
ip->i_type |= DOTTYP;
|
||||
if (store(ip, (valu_t) DOTVAL) == 0)
|
||||
return;
|
||||
#ifdef THREE_PASS
|
||||
assert(pass != PASS_2 || oldval - ip->i_valu == DOTGAIN);
|
||||
#endif
|
||||
}
|
||||
|
||||
newsect(ip)
|
||||
register item_t *ip;
|
||||
{
|
||||
register ushort typ;
|
||||
register sect_t *sp = NULL;
|
||||
|
||||
typ = ip->i_type & S_TYP;
|
||||
if (typ == S_UND) {
|
||||
/*
|
||||
* new section
|
||||
*/
|
||||
assert(pass == PASS_1);
|
||||
--unresolved;
|
||||
typ = outhead.oh_nsect + S_MIN;
|
||||
outhead.oh_nsect++;
|
||||
if (outhead.oh_nsect > SECTMAX || typ > S_MAX)
|
||||
fatal("too many sections");
|
||||
sp = §[typ - S_MIN];
|
||||
sp->s_item = ip;
|
||||
sp->s_lign = ALIGNSECT;
|
||||
#ifdef DUK
|
||||
ip->i_type = typ;
|
||||
#else DUK
|
||||
ip->i_type = typ | S_EXT;
|
||||
#endif DUK
|
||||
ip->i_valu = 0;
|
||||
} else if (typ >= S_MIN) {
|
||||
sp = §[typ - S_MIN];
|
||||
if (sp->s_item != ip)
|
||||
sp = NULL;
|
||||
}
|
||||
if (sp == NULL)
|
||||
serror("multiple declared");
|
||||
else
|
||||
switchsect(typ);
|
||||
}
|
||||
|
||||
newbase(base)
|
||||
valu_t base;
|
||||
{
|
||||
#ifdef ASLD
|
||||
register sect_t *sp;
|
||||
|
||||
if ((sp = DOTSCT) == NULL)
|
||||
nosect();
|
||||
if (sp->s_flag & BASED)
|
||||
serror("already based");
|
||||
sp->s_base = base;
|
||||
sp->s_flag |= BASED;
|
||||
DOTVAL += base;
|
||||
#else
|
||||
warning(".base ignored");
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* NOTE: A rather different solution is used for ASLD and NOLD:
|
||||
* ASLD:
|
||||
* - maximum length of .comm is recorded in i_valu during PASS_1
|
||||
* - address of .comm is recorded in i_valu in later passes:
|
||||
* assigned at end of PASS_1, corrected for s_gain at end of PASS_2
|
||||
* - symbol table entries are produced in commfinish()
|
||||
* NOLD:
|
||||
* - i_valu cannot be used since it is needed for relocation info
|
||||
* - only one .comm with a particular symbol is allowed per module
|
||||
* - symbol table entries are produced in newcomm()
|
||||
*/
|
||||
newcomm(ip, val)
|
||||
register item_t *ip;
|
||||
valu_t val;
|
||||
{
|
||||
if (pass == PASS_1) {
|
||||
if (DOTSCT == NULL)
|
||||
nosect();
|
||||
if (val == 0)
|
||||
serror("bad size");
|
||||
/* printf("declare %s: %o\n", ip->i_name, DOTTYP); */
|
||||
if ((ip->i_type & ~S_EXT) == S_UND) {
|
||||
--unresolved;
|
||||
ip->i_type = S_COM|DOTTYP|(ip->i_type&S_EXT);
|
||||
#ifdef ASLD
|
||||
ip->i_valu = val;
|
||||
} else if (ip->i_type == (S_COM|S_EXT|DOTTYP)) {
|
||||
if (ip->i_valu < val)
|
||||
ip->i_valu = val;
|
||||
#endif
|
||||
} else
|
||||
serror("multiple declared");
|
||||
}
|
||||
#ifndef ASLD
|
||||
if (PASS_SYMB == 0)
|
||||
return;
|
||||
if (pass != PASS_3)
|
||||
/*
|
||||
* save symbol table index
|
||||
* for possible relocation
|
||||
*/
|
||||
ip->i_valu = outhead.oh_nname;
|
||||
#ifdef DUK
|
||||
newsymb(ip->i_name, S_COM|DOTTYP|(ip->i_type&S_EXT), (short)0, val);
|
||||
#else DUK
|
||||
newsymb(ip->i_name, S_EXT|DOTTYP, (short)0, val);
|
||||
#endif DUK
|
||||
#endif
|
||||
}
|
||||
|
||||
switchsect(newtyp)
|
||||
short newtyp;
|
||||
{
|
||||
register sect_t *sp;
|
||||
|
||||
if (sp = DOTSCT)
|
||||
sp->s_size = DOTVAL - sp->s_base;
|
||||
if (newtyp == S_UND) {
|
||||
DOTSCT = NULL;
|
||||
DOTTYP = newtyp;
|
||||
return;
|
||||
}
|
||||
assert(newtyp >= S_MIN);
|
||||
sp = §[newtyp - S_MIN];
|
||||
if (pass == PASS_3) {
|
||||
#ifdef AOUTSEEK
|
||||
aoutpart = -1;
|
||||
aoutseek[PARTEMIT] = sp->s_foff + sp->s_size - sp->s_zero;
|
||||
#else
|
||||
fseek(aoutfile[PARTEMIT], sp->s_foff + sp->s_size - sp->s_zero, 0);
|
||||
#endif
|
||||
}
|
||||
DOTVAL = sp->s_size + sp->s_base;
|
||||
DOTSCT = sp;
|
||||
DOTTYP = newtyp;
|
||||
}
|
||||
|
||||
align(bytes)
|
||||
valu_t bytes;
|
||||
{
|
||||
register valu_t gap;
|
||||
register sect_t *sp;
|
||||
|
||||
if ((sp = DOTSCT) == NULL)
|
||||
nosect();
|
||||
if (bytes == 0)
|
||||
bytes = ALIGNWORD;
|
||||
if (sp->s_lign % bytes)
|
||||
if (bytes % sp->s_lign)
|
||||
serror("illegal alignment");
|
||||
else
|
||||
sp->s_lign = bytes;
|
||||
if (pass == PASS_1)
|
||||
/*
|
||||
* be pessimistic: biggest gap possible
|
||||
*/
|
||||
gap = bytes - 1;
|
||||
else {
|
||||
/*
|
||||
* calculate gap correctly;
|
||||
* will be the same in PASS_2 and PASS_3
|
||||
*/
|
||||
if ((gap = DOTVAL % bytes) != 0)
|
||||
gap = bytes - gap;
|
||||
#ifdef THREE_PASS
|
||||
if (pass == PASS_2)
|
||||
/*
|
||||
* keep track of gain with respect to PASS_1
|
||||
*/
|
||||
DOTGAIN += (bytes - 1) - gap;
|
||||
#endif
|
||||
}
|
||||
/* I don't play the os_zero game here, but plainly write out zero's */
|
||||
/* Led abuses trailing zero parts */
|
||||
while (gap--) emit1(0) ;
|
||||
}
|
||||
|
||||
#ifdef RELOCATION
|
||||
newrelo(s, n)
|
||||
short s;
|
||||
{
|
||||
struct outrelo outrelo;
|
||||
#ifdef DUK
|
||||
int iscomm;
|
||||
#endif DUK
|
||||
|
||||
if (rflag == 0)
|
||||
return;
|
||||
if (PASS_RELO == 0)
|
||||
return;
|
||||
s &= ~S_DOT;
|
||||
assert((s & ~(S_COM|S_VAR|S_TYP)) == 0);
|
||||
#ifndef THREE_PASS
|
||||
if (s == S_UND)
|
||||
serror("bad relocation");
|
||||
#endif
|
||||
/*
|
||||
* always relocation info if S_VAR to solve problems with:
|
||||
* move b,d0
|
||||
* b=a
|
||||
* a: .data2 0
|
||||
*/
|
||||
#ifdef DUK
|
||||
iscomm = s & S_COM;
|
||||
#endif DUK
|
||||
s &= ~S_COM;
|
||||
if ((n & RELPC) == 0 && s == S_ABS)
|
||||
return;
|
||||
if ((n & RELPC) != 0 && s == DOTTYP)
|
||||
return;
|
||||
if (pass != PASS_3) {
|
||||
outhead.oh_nrelo++;
|
||||
return;
|
||||
}
|
||||
s &= ~S_VAR;
|
||||
outrelo.or_type = (char)n;
|
||||
outrelo.or_sect = (char)DOTTYP;
|
||||
#ifndef ASLD
|
||||
#ifdef DUK
|
||||
if (s == S_UND || iscomm) {
|
||||
#else DUK
|
||||
if (s == S_UND) {
|
||||
#endif DUK
|
||||
assert(relonami != 0);
|
||||
outrelo.or_nami = relonami-1;
|
||||
relonami = 0;
|
||||
} else
|
||||
#endif
|
||||
if (s < S_MIN) {
|
||||
assert(s == S_ABS);
|
||||
/*
|
||||
* use first non existing entry (argh)
|
||||
*/
|
||||
outrelo.or_nami = outhead.oh_nname;
|
||||
} else {
|
||||
/*
|
||||
* section symbols are at the end
|
||||
*/
|
||||
outrelo.or_nami = outhead.oh_nname
|
||||
- outhead.oh_nsect
|
||||
+ (s - S_MIN)
|
||||
;
|
||||
}
|
||||
outrelo.or_addr = (long)DOTVAL;
|
||||
putofmt((char *)&outrelo, SF_RELO, PARTRELO);
|
||||
}
|
||||
#endif
|
||||
|
||||
newsymb(name, type, desc, valu)
|
||||
register char *name;
|
||||
short type;
|
||||
short desc;
|
||||
valu_t valu;
|
||||
{
|
||||
struct outname outname;
|
||||
|
||||
if (name && *name == 0)
|
||||
name = 0;
|
||||
assert(PASS_SYMB);
|
||||
if (pass != PASS_3) {
|
||||
if (name)
|
||||
outhead.oh_nchar += strlen(name)+1;
|
||||
outhead.oh_nname++;
|
||||
return;
|
||||
}
|
||||
if (name) {
|
||||
AOUTPART(PARTCHAR);
|
||||
outname.on_foff = outhead.oh_nchar;
|
||||
do {
|
||||
AOUTPUTC(*name, PARTCHAR);
|
||||
outhead.oh_nchar++;
|
||||
} while (*name++);
|
||||
} else
|
||||
outname.on_foff = 0;
|
||||
outname.on_type = type;
|
||||
outname.on_desc = desc;
|
||||
outname.on_valu = valu & ~((0xFFFFFFFF)<<(8*sizeof(valu_t)));
|
||||
putofmt((char *)&outname, SF_NAME, PARTNAME);
|
||||
}
|
||||
@@ -1,161 +0,0 @@
|
||||
#
|
||||
# Author: L.J. Bekema @ VU Informatica, Amsterdam
|
||||
#
|
||||
|
||||
.SUFFIXES: .c,v .h .h,v
|
||||
|
||||
.c,v.o:
|
||||
co -q $*.c
|
||||
$(CC) $(CFLAGS) -c $*.c
|
||||
rm -f $*.c
|
||||
|
||||
.h,v.h:
|
||||
co -q $*.h
|
||||
|
||||
# Definitions for the making programs.
|
||||
|
||||
M = /user1/sjoerd/amoeba/libmonix
|
||||
X = /usr/em/lib/l68k2
|
||||
CC = l68k2
|
||||
LIBDIR = ../../lib
|
||||
PREFLAGS= -DNDEBUG # -DNASSERT
|
||||
CFLAGS = -L $(PREFLAGS)
|
||||
LDFLAGS = -b0:0x20000 -a0:2 -a1:2 -a2:2 -a3:2 -a4:2 -c.out $M/head.o
|
||||
LDLIBS = $X/tail_cc.1s $X/tail_cc.2g $M/libmonix.a $X/tail_em.rt $X/end_em
|
||||
LINTFLAGS=-phbxac $(PREFLAGS)
|
||||
PR = pr
|
||||
PRFLAGS =
|
||||
|
||||
# Some convenient macro definitions.
|
||||
|
||||
CFILES = archive.c byte_order.c error.c extract.c finish.c main.c memory.c\
|
||||
output.c read.c relocate.c save.c scan.c sym.c write.c
|
||||
CVFILES = archive.c,v byte_order.c,v error.c,v extract.c,v finish.c,v main.c,v\
|
||||
memory.c,v output.c,v read.c,v relocate.c,v save.c,v scan.c,v\
|
||||
sym.c,v write.c,v
|
||||
HFILES = assert.h const.h debug.h defs.h memory.h orig.h scan.h
|
||||
HVFILES = assert.h,v const.h,v debug.h,v defs.h,v memory.h,v orig.h,v scan.h,v
|
||||
OFILES = archive.o byte_order.o error.o extract.o finish.o main.o memory.o\
|
||||
output.o read.o relocate.o save.o scan.o sym.o write.o
|
||||
|
||||
# Things that can be made.
|
||||
|
||||
led: $(OFILES)
|
||||
$(CC) $(LDFLAGS) $(OFILES) $(LDLIBS) -o led.led
|
||||
/user1/sjoerd/amoeba/util/convert led.led led
|
||||
/user1/sjoerd/amoeba/test/load led >/user1/sjoerd/amoeba/test/led.load
|
||||
|
||||
mach.c: mach.c,v
|
||||
co -q mach.c
|
||||
|
||||
install:led
|
||||
cp led $(LIBDIR)/em_led
|
||||
|
||||
cmp: led
|
||||
cmp led $(LIBDIR)/em_led
|
||||
|
||||
lint:
|
||||
-for i in $(CFILES) $(HFILES) mach.c; do\
|
||||
if test ! -f $$i; then\
|
||||
echo $$i >> checked.out;\
|
||||
co -q $$i;\
|
||||
fi;\
|
||||
done
|
||||
lint $(LINTFLAGS) $(CFILES)
|
||||
rm -f `cat checked.out` checked.out
|
||||
|
||||
pr: $(CVFILES) $(HVFILES) mach.c
|
||||
@-for i in $?; do\
|
||||
co -q -p $$i | $(PR) $(PRFLAGS) -h `basename $$i ,v`;\
|
||||
done
|
||||
@touch pr
|
||||
opr:
|
||||
make pr | opr
|
||||
|
||||
clean:
|
||||
rm *.o led
|
||||
|
||||
depend:
|
||||
-for i in $(CFILES); do\
|
||||
if test ! -f $$i; then\
|
||||
echo $$i >> checked.out;\
|
||||
co -q $$i;\
|
||||
fi;\
|
||||
done
|
||||
makedepend $(CFILES)
|
||||
rm -f `cat checked.out` checked.out
|
||||
|
||||
procentry.o:
|
||||
$(CC) -c -L procentry.c
|
||||
|
||||
# The next lines are generated automatically.
|
||||
# AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO
|
||||
archive.o: ../../h/arch.h
|
||||
archive.o: ../../h/out.h
|
||||
archive.o: ../../h/ranlib.h
|
||||
archive.o: const.h
|
||||
archive.o: debug.h
|
||||
archive.o: defs.h
|
||||
archive.o: memory.h
|
||||
byte_order.o: assert.h
|
||||
byte_order.o: const.h
|
||||
error.o: ../../h/out.h
|
||||
error.o: const.h
|
||||
extract.o: ../../h/out.h
|
||||
extract.o: const.h
|
||||
extract.o: debug.h
|
||||
extract.o: defs.h
|
||||
extract.o: memory.h
|
||||
extract.o: orig.h
|
||||
extract.o: scan.h
|
||||
finish.o: ../../h/out.h
|
||||
finish.o: const.h
|
||||
finish.o: defs.h
|
||||
finish.o: memory.h
|
||||
finish.o: orig.h
|
||||
finish.o: scan.h
|
||||
main.o: ../../h/out.h
|
||||
main.o: const.h
|
||||
main.o: debug.h
|
||||
main.o: defs.h
|
||||
main.o: memory.h
|
||||
main.o: orig.h
|
||||
memory.o: ../../h/out.h
|
||||
memory.o: assert.h
|
||||
memory.o: const.h
|
||||
memory.o: debug.h
|
||||
memory.o: mach.c
|
||||
memory.o: memory.h
|
||||
output.o: ../../h/out.h
|
||||
output.o: const.h
|
||||
output.o: memory.h
|
||||
read.o: ../../h/arch.h
|
||||
read.o: ../../h/out.h
|
||||
read.o: ../../h/ranlib.h
|
||||
read.o: assert.h
|
||||
read.o: const.h
|
||||
relocate.o: ../../h/out.h
|
||||
relocate.o: const.h
|
||||
relocate.o: debug.h
|
||||
relocate.o: defs.h
|
||||
relocate.o: orig.h
|
||||
save.o: ../../h/arch.h
|
||||
save.o: ../../h/out.h
|
||||
save.o: assert.h
|
||||
save.o: const.h
|
||||
save.o: memory.h
|
||||
scan.o: ../../h/arch.h
|
||||
scan.o: ../../h/out.h
|
||||
scan.o: ../../h/ranlib.h
|
||||
scan.o: assert.h
|
||||
scan.o: const.h
|
||||
scan.o: memory.h
|
||||
scan.o: scan.h
|
||||
sym.o: ../../h/out.h
|
||||
sym.o: const.h
|
||||
sym.o: memory.h
|
||||
write.o: ../../h/out.h
|
||||
write.o: assert.h
|
||||
write.o: const.h
|
||||
write.o: memory.h
|
||||
write.o: orig.h
|
||||
Reference in New Issue
Block a user