mirror of
https://github.com/PDP-10/its.git
synced 2026-01-16 08:24:38 +00:00
531 lines
11 KiB
Plaintext
531 lines
11 KiB
Plaintext
title COMIFY - Convert Hex to Com format
|
||
A=:1 ;general purpose
|
||
B=:2
|
||
C=:3
|
||
D=:4
|
||
E=:5
|
||
|
||
;;lowest level general purpose -- Used in NxtTkn, GetMem, Snarf
|
||
TTA=:11
|
||
TTB=:12
|
||
TTC=:13
|
||
|
||
;;super-temps, clobberable by macros and everybody.
|
||
TT=:14
|
||
TT1=:15
|
||
|
||
SBR=:16 ;used mostly for JSP linkage.
|
||
P=:17 ;el stacko
|
||
|
||
dsk==:1 ;disk channel
|
||
ttyo==:2 ;terminal output for errors and such
|
||
ttyi==:3 ;terminal input for idiot-proofing confirmation
|
||
|
||
call=:PUSHJ P,
|
||
return=:POPJ P,
|
||
calret==:JRST
|
||
|
||
pdllen==:50. ;stack
|
||
.vector pdl(pdllen)
|
||
|
||
|
||
define DBP ac
|
||
Add ac,[70000,,]
|
||
Skipge ac
|
||
Sub ac,[430000,,1]
|
||
termin
|
||
|
||
|
||
define syscal op,args
|
||
.call [setz ? sixbit /op/ ? args ((setz))]
|
||
termin
|
||
|
||
define Type &string
|
||
Movei TT,<.Length string>
|
||
Move TT1,[440700,,[Ascii string]]
|
||
.call typsiot
|
||
.Lose %LsSys
|
||
termin
|
||
|
||
Define TypeL *string
|
||
Type |