Add original unix v6

This commit is contained in:
memnoth
2018-01-27 22:35:41 +09:00
commit 2c7099ee50
664 changed files with 106254 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
.globl putch,obuild
.globl putoct
putoct: mov r0,-(sp)
bic $7,r0
bic r0,(sp)
clc
ror r0
ror r0
ror r0
beq 1f
jsr pc,putoct
1:
mov (sp)+,r0
add $'0,r0
jsr pc,putch
rts pc