https://github.com/deciduously/taocp
Notes from TAOCP
https://github.com/deciduously/taocp
Last synced: about 1 year ago
JSON representation
Notes from TAOCP
- Host: GitHub
- URL: https://github.com/deciduously/taocp
- Owner: deciduously
- License: bsd-3-clause
- Created: 2020-02-09T23:55:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-13T13:06:31.000Z (over 6 years ago)
- Last Synced: 2025-04-01T14:19:01.198Z (about 1 year ago)
- Language: C
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TAOCP
Notes from reading The Art Of Computer Programming.
[MMIXWARE](http://mmix.cs.hm.edu/bin/index.html) download, include in `$PATH`.
Run example using `--interactive`:
```
$ mmixal hello.mms
$ mmix -i hello.mmo
mmix>
(00000000000000fc: fb0000ff (UNSAVE)) #6000000000000088: rG=254, ..., rL=2
0 instructions, 0 mems, 0 oops; 0 good guesses, 0 bad
(now at location #0000000000000100)
mmix>
1. 0000000000000100: 23fffe00 (ADDUI) $255=g[255] = 2305843009213693952 = #2000000000000000
1 instruction, 0 mems, 1 oop; 0 good guesses, 0 bad
(now at location #0000000000000104)
mmix>
Hello world!
1. 0000000000000104: 00000701 (TRAP) $255 = Fputs(StdOut,#2000000000000000) = 13
2 instructions, 0 mems, 6 oops; 0 good guesses, 0 bad
(now at location #0000000000000108)
mmix>
1. 0000000000000108: 00000000 (TRAP) Halt(0)
3 instructions, 0 mems, 11 oops; 0 good guesses, 0 bad
(halted at location #0000000000000108)
mmix>
3 instructions, 0 mems, 11 oops; 0 good guesses, 0 bad
(halted at location #0000000000000108)
```