Programming Examples
Save all the accumulators:
MOVEM 17,SAVAC+17 MOVEI 17,SAVAC ;Source is 0, destination is SAVAC BLT 17,SAVAC+16Restore all the accumulators:
MOVSI 17,SAVAC ;Source is SAVAC, destination is 0 BLT 17,17Zero 100 words starting at TABLE.
SETZM TABLE MOVE AC, ;Source and destination overlap BLT AC,TABLE+77Move 77 words from TABLE through TABLE+76 to TABLE+1 through TABLE+77. BLT can't be done here because the source and destination overlap.
MOVE AC, POP AC,1(AC) ;Store TABLE+76 into TABLE+77, etc. JUMPL AC,.-1Read more about this topic: Block-transfer Instruction
Famous quotes containing the words programming and/or examples:
“If there is a price to pay for the privilege of spending the early years of child rearing in the drivers seat, it is our reluctance, our inability, to tolerate being demoted to the backseat. Spurred by our success in programming our children during the preschool years, we may find it difficult to forgo in later states the level of control that once afforded us so much satisfaction.”
—Melinda M. Marshall (20th century)
“In the examples that I here bring in of what I have [read], heard, done or said, I have refrained from daring to alter even the smallest and most indifferent circumstances. My conscience falsifies not an iota; for my knowledge I cannot answer.”
—Michel de Montaigne (15331592)