Professional Documents
Culture Documents
MARIE: An
Introduction
to a Simple Computer
Objectives
34
4.8 MARIE (12 of 14)
STOREI X
4.12 Extending Our Instruction Set
(3 of 6)
ADDI X
4.12 Extending Our Instruction Set
(4 of 6)
• Another helpful programming tool is the use of subroutines.
• JNS X -- Store the PC at address X and jump to X + 1.
• The jump-and-store instruction, JNS, gives us limited
subroutine functionality. The details of the JNS instruction are
given by the following RTL: