diff options
| author | Julian Blake Kongslie | 2021-05-07 16:30:10 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2021-05-07 16:30:10 -0700 |
| commit | 732dfddae7da5ef83592cdff9615c93f1b814880 (patch) | |
| tree | 339378ddc6a351cc8e383a966da03f601644d09b | |
| parent | Add a bunch of microcoded instructions. (diff) | |
| download | noncpu-732dfddae7da5ef83592cdff9615c93f1b814880.tar.xz | |
Delete no-longer-used hex file for pre-PDP-8 ISA.
Diffstat (limited to '')
| -rw-r--r-- | mem/mem.hex | 125 |
1 files changed, 0 insertions, 125 deletions
diff --git a/mem/mem.hex b/mem/mem.hex deleted file mode 100644 index 8619b48..0000000 --- a/mem/mem.hex +++ /dev/null | |||
| @@ -1,125 +0,0 @@ | |||
| 1 | @0 | ||
| 2 | |||
| 3 | 508 // jmp start | ||
| 4 | 000 // i: 0 # outer loop index | ||
| 5 | 000 // ascii0: 0 # ascii digits must be in consecutive incrementing addresses | ||
| 6 | 000 // ascii1: 0 | ||
| 7 | 000 // ascii2: 0 | ||
| 8 | 000 // ascii3: 0 | ||
| 9 | 000 // fib0: j: 0 # fib[n]; clobbered by ascii printer for inner loop index | ||
| 10 | 000 // fib1: x: 0 # fib[n+1]; clobbered by ascii printer for digit being printed | ||
| 11 | 000 // fib2: 0 # fib[n+2] | ||
| 12 | 116 // start: acc= @echo # for the toy indirect jump to fib | ||
| 13 | 307 // store @x | ||
| 14 | 170 // acc= 0x70 | ||
| 15 | 301 // store @i | ||
| 16 | 001 // loop: cla | ||
| 17 | 281 // ladd i @i | ||
| 18 | 400 // ifeq 0 | ||
| 19 | 587 // jmp i @x # toy indirect jump to fib | ||
| 20 | 040 // tx | ||
| 21 | 003 // cla ++acc | ||
| 22 | 201 // ladd @i | ||
| 23 | 301 // store @i | ||
| 24 | 577 // jmp loop | ||
| 25 | 080 // echo: rx | ||
| 26 | 40a // ifeq 0x0a | ||
| 27 | 504 // jmp fib | ||
| 28 | 40d // ifeq 0x0d | ||
| 29 | 502 // jmp fib | ||
| 30 | 040 // tx | ||
| 31 | 579 // jmp echo | ||
| 32 | 10d // fib: acc= 0x0d | ||
| 33 | 040 // tx | ||
| 34 | 10a // acc= 0x0a | ||
| 35 | 040 // tx | ||
| 36 | 001 // cla | ||
| 37 | 301 // store @i | ||
| 38 | 370 // store 0x70 # 0x70 is now beginning of Fibonacci sequence (0) | ||
| 39 | 003 // cla ++acc | ||
| 40 | 371 // store 0x71 # 0x71 is 1 | ||
| 41 | 170 // fibloop: acc= 0x70 | ||
| 42 | 201 // ladd @i | ||
| 43 | 306 // store @fib0 | ||
| 44 | 001 // cla | ||
| 45 | 286 // ladd i @fib0 # next fib number to print | ||
| 46 | 602 // ascii @ascii0 # LSB of ASCII rep | ||
| 47 | 603 // ascii @ascii1 | ||
| 48 | 604 // ascii @ascii2 | ||
| 49 | 605 // ascii @ascii3 # MSB of ASCII rep | ||
| 50 | 104 // acc= 4 | ||
| 51 | 306 // store @j | ||
| 52 | 005 // scan: cla --acc | ||
| 53 | 206 // ladd @j | ||
| 54 | 4ff // ifeq -1 | ||
| 55 | 508 // jmp print | ||
| 56 | 306 // store @j | ||
| 57 | 102 // acc= @ascii0 | ||
| 58 | 206 // ladd @j | ||
| 59 | 307 // store @x | ||
| 60 | 001 // cla | ||
| 61 | 287 // ladd i @x | ||
| 62 | 430 // ifeq 0x30 | ||
| 63 | 574 // jmp scan | ||
| 64 | 102 // print: acc= @ascii0 | ||
| 65 | 206 // ladd @j | ||
| 66 | 307 // store @x | ||
| 67 | 001 // cla | ||
| 68 | 287 // ladd i @x | ||
| 69 | 040 // tx | ||
| 70 | 005 // cla --acc | ||
| 71 | 206 // ladd @j | ||
| 72 | 4ff // ifeq -1 | ||
| 73 | 502 // jmp space | ||
| 74 | 306 // store @j | ||
| 75 | 574 // jmp print | ||
| 76 | 120 // space: acc= 0x20 | ||
| 77 | 040 // tx | ||
| 78 | 170 // acc= 0x70 | ||
| 79 | 201 // ladd @i | ||
| 80 | 306 // store @fib0 | ||
| 81 | 003 // cla ++acc | ||
| 82 | 206 // ladd @fib0 # compute &fib[i+1] | ||
| 83 | 307 // store @fib1 | ||
| 84 | 003 // cla ++acc | ||
| 85 | 207 // ladd @fib1 # compute &fib[i+2] | ||
| 86 | 308 // store @fib2 | ||
| 87 | 001 // cla | ||
| 88 | 286 // ladd i @fib0 | ||
| 89 | 287 // ladd i @fib1 # compute fib[i+2] | ||
| 90 | 388 // store i @fib2 # store it | ||
| 91 | 003 // cla ++acc | ||
| 92 | 201 // ladd @i | ||
| 93 | 432 // ifeq 50 | ||
| 94 | 502 // jmp fullydone | ||
| 95 | 301 // store @i | ||
| 96 | 548 // jmp fibloop | ||
| 97 | 121 // fullydone: acc= 0x21 | ||
| 98 | 040 // tx | ||
| 99 | 000 // halt | ||
| 100 | |||
| 101 | @70 | ||
| 102 | |||
| 103 | 048 // H # later: start of in-memory Fib sequence | ||
| 104 | 065 // e | ||
| 105 | 06c // l | ||
| 106 | 06c // l | ||
| 107 | 06f // o | ||
| 108 | 02c // , | ||
| 109 | 020 // ' ' | ||
| 110 | 077 // w | ||
| 111 | 06f // o | ||
| 112 | 072 // r | ||
| 113 | 06c // l | ||
| 114 | 064 // d | ||
| 115 | 021 // ! | ||
| 116 | 00d // \r | ||
| 117 | 00a // \n | ||
| 118 | 045 // E | ||
| 119 | 063 // c | ||
| 120 | 068 // h | ||
| 121 | 06f // o | ||
| 122 | 03a // : | ||
| 123 | 020 // ' ' | ||
| 124 | |||
| 125 | 000 | ||
