REL RELOCATABLE MODE
ORG 0
*
- STA STRT
+ STA STRT SAVE AUTO-START ADDRESS
HLT
STA ALOC FIRST LOCATION TO PUNCH
HLT
JST PLDR PUNCH OUT LEADER
JST PS2 PUNCH SECOND STAGE LOADER
JST PS3 PUNCH THIRD STAGE LOADER
-*
+ JST PDAT PUNCH OUT DATA
+*
+ LDA STRT
+ SZE
+ JMP AUTO
+ JST SBLK MAKE STOP BLOCK
+ JMP EOT
+AUTO JST ABLK MAKE ADRESS-BLOCK
+ JST GBLK MAKE GO-BLOCK
+EOT JST PLDR END OF JOB HAS COME.
+ HLT
+ JMP *-1 NO ESCAPE
+*
+**********************
+* PUNCH THE DESIRED DATA
+PDAT DAC **
*
LOOP CRA MAIN LOOP
LDA ELOC
AOA
STA AVAL DETERMINED AVAILABLE DATA
SNZ
- JMP EDAT END OF DATA, WE ARE HAPPY
+ JMP* PDAT END OF DATA, WE ARE HAPPY, RETURN
*
* FIRST TRY TO ESABLISH A ZERO BLOCK
LDA ALOC
JST DBLK PUNCH THE BLOCK
JMP LOOP BACK TO MAIN LOOP
*
-*
-* END OF DATA
-EDAT LDA STRT
- SZE
- JMP AUTO
- JST SBLK MAKE STOP BLOCK
- JMP EOT
-AUTO JST ABLK MAKE ADRESS-BLOCK
- JST GBLK MAKE GO-BLOCK
-EOT JST PLDR END OF JOB HAS COME.
- HLT
- JMP *-1 NO ESCAPE
-*
+**************************
*
AVAL DEC 0 AVAILABLE DATA SIZE
IPTR DEC 0 IMAGINARY POINTER