User`s guide

SCRT JTIMP
TABI,E
by
Leo
Fo
Hood
In the
PIPS
FOR
VIPS,
I
noticed that
use
is
mad.e of
the
Stand,ard
CalI
and
Return
subroutines.
Below
is a short
progr€rm
that
when
used
with the
SCRT
allows subroutines
to
be
accissdd
with
a table
lgg!:tp. This
iump
routine
is
useful
to
me
in
implementing
additions
to
my disassembler
progrerm,
The
routine
fakes tf,e
return address
in
Register 5 and
jumps
to
the desired
routine
through
the
nornal
subroutine
return
program.
The
original
calling
locatj-on
is
of
course saved
on
tne stack
prior-to
the
jump.
The
pertinent
cod.e
for calling the
JITMP
prograrn
i-s
included, but
not
the
actual
table
since thtt
is depen-itenI
on the
applicaiion.
27Co
96
c1
73
c2
86
ca
73
c4
48
c5
52
c6
90
c?
14
c8
86
c9
ll8
CA
A5
cB
D5
JUMP SUBROUTIIVE
JUMP r
cHr
R5
STXD
GLO
R5
STXD
I,DA RB
STR
R2
GHT
RO
ADD
PHT R5
tDA
R8
PTO
R5
SEP
R5
2722
23
25
26
28
'29
2A
28
2C
***
2E
3L
3z
3t+
35
37
38
39
38
3c
3E
2741
***2730
GHI
ADI
PHI
TDI
PI,0
I{EXT
r
GtO
STR
tDN
XRI
BZ
SD
F7,-
Gt0
ADI
PI,0
GHI
ADCI
PHI
BR
JilIP !
SEPII
BR
EXAMPTE
RO
#ar
R8
#50
RB
RB
R2
R8
#zr
#oo
#n
RB
#oz
R8
R8
#oo
RB
#zg
#o?
co
#al
R8
90
FC
B8
F8
AB
8B
52
08
FB
32
F5
32
88
FC
A8
98
7C
B8
3o
D4
30
o7
5o
7F
DO
3E
,02
00
2g
o7
o3
t
R0
c ontains
addres
s
t
of
relocatable
code
rRB
used
for
index
r
to
table
tRB
used
for
temporary
storage
t
of
command
code
i7F
is end of
tabl
e
r
D0
is
location
of Error
routine
;
Compare
command
eode
to
r
table
entry branch
if
equal
t
If
eommand
not
found
r
jump
to
:
llext
entry
',
'!
t"n
,tttr
;
CalI
JTIMP
tWhen
routine
has
finished
r
return
will
be to
this
location
which
branehes
to beginning
of
the
ro_utine .which
is
not
showrr.
;
(Soruyl
)
2,OB/09,49
4B
c0
tDA