Load the first number to be doubled.
Use Temp as a parameter to pass value to Subr.
(ครั้งที่ 1) Store the return address, and jump to the procedure.
/ Store the first number, doubled
/ Load the second number to be doubled.
Store Temp
/ (ครั้งที่ 2) Store the return address and jump to the procedure.
/ Store the second number doubled.
Halt / End program.
X, DEC 20
Y, DEC 48
Temp, DEC 0
/ Store return address here.
/ Actual subroutine to double numbers.
/ AC now holds double the value of Temp.
/ Return to calling code.
END