summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--PLAN1
-rw-r--r--mem/smc.pal65
2 files changed, 65 insertions, 1 deletions
diff --git a/PLAN b/PLAN
index 730cde1..82b7d31 100644
--- a/PLAN
+++ b/PLAN
@@ -1,4 +1,3 @@
10. write an SMC micro for the pdp-8
21. add pdp-8 unified cache that works with SMC 11. add pdp-8 unified cache that works with SMC
32. pipelining that works with SMC / start working on minhdl version of the core 22. pipelining that works with SMC / start working on minhdl version of the core
43. write an SPI or I2C master on the FPGA to sample analog inputs 33. write an SPI or I2C master on the FPGA to sample analog inputs
diff --git a/mem/smc.pal b/mem/smc.pal
new file mode 100644
index 0000000..e6d34af
--- /dev/null
+++ b/mem/smc.pal
@@ -0,0 +1,65 @@
1/ vim: set sw=8 noexpandtab :
2
3*200
4
5START, CLA
6 TAD SMC
7 DCA SAVED
8
9LOOP, ISZ SMC
10SMC, JMP VEC
11SAVED, 0
12
13VEC, 0
14 JMP FOO
15 JMP BAR
16 JMP RESET
17
18FOO, CLA
19 TAD FOOSTR
20 JMS PUTS
21 JMP LOOP
22
23BAR, CLA
24 TAD BARSTR
25 JMS PUTS
26 JMP LOOP
27
28RESET, CLA
29 TAD SAVED
30 DCA SMC
31 JMP LOOP
32
33PUTS, 0
34 DCA 10
35PUTSL, CLA
36 TAD I 10
37 SNA
38 JMP PUTSX
39 JMS PUTC
40 JMP PUTSL
41PUTSX, JMP I PUTS
42
43PUTC, 0
44 TLS
45 TSF
46 JMP .-1
47 JMP I PUTC
48
49FOOSTR, .
50 "F
51 "o
52 "o
53 15
54 12
55 0
56
57BARSTR, .
58 "B
59 "a
60 "r
61 15
62 12
63 0
64
65$