1
0
mirror of https://github.com/PDP-10/its.git synced 2026-01-30 05:34:01 +00:00

UTNAM - set DECtape name.

This commit is contained in:
Lars Brinkhoff
2020-08-28 22:00:22 +02:00
parent cc3f2c3422
commit 2a2acd54d3
3 changed files with 34 additions and 0 deletions

29
src/lars/utnam.20 Normal file
View File

@@ -0,0 +1,29 @@
title utnam - set microtape name
a=1
b=2
c=3
d=4
go: movei a,0
.break 12,[..rjcl,,jcl] ;get jcl
move b,[440700,,jcl]
move c,[440600,,a]
repeat 3,[ ;convert three characters
ildb d,b ;from ascii to sixbit
cail d,140
subi d,40
subi d,40
idpb d,c
]
.break 12,[..rpfi,,def] ;get ddt :print defaults
hlr a,def ;get device
trz a,777770 ;mask to unit number
.utnam a,
.lose %lssys
.logout 1,
def: block 4
jcl: block 100
end go