Download B441 Laboratory Experiments - Computer Science

Transcript
Lab 11
B441 LABORATORY MANUAL page 79
5020 with 7200
5021 with 1217
5022 with 1200
5023 with 7440
5024 with 5222
5025 with 7040
Load the PC with 5020 and step through the loop until it ends and the AC is complemented. Here,
SZA is used for the loop condition. Make sure to note the skip sense in the SZA instruction. How
are the skip conditions in the ASM related to the architecture of this PDP-8 implementation?
Those Pesky Subroutines
Here we exercise the JMS instruction, which is the key to good program organization. Load the
following memory locations:
5050 with 7200
5051 with 4261
5052 with 4261
5053 with 4261
5054 with 7200
5060 with 0007
5061 with 7777
5062 with 1260
5063 with 5661
Load the PC with 5050 and step through the subroutine calls. What does the subroutine do? Note
how the "argument" is passed along to the subroutine. Note also how the subroutine returns.
That’s enough manual control! On to the full PDP-8!
Copyright ©2000 Indiana University Computer Science Department