APPENDIX A DESCRIPTION OF SPD CHART
5. Conditional Loop (UNTIL)
The condition indicated by UNTIL is judged after processing has been executed, and the processing is repeatedly
executed until a given condition is satisfied (even if the condition is not satisfied from the start, the processing is
executed once).
• SPD chart
(UNTIL: condition)
Processing
Example Multiplies value of B register by 10 and stores result to A register
Initializes A register
Sets value to B register
Stores 10 to counter
(UNTIL: counter = 0)
A=A+B
Decrements counter
6. Conditional Loop (FOR)
While the condition of the parameter indicated by FOR is satisfied, processing is repeatedly executed.
• SPD chart
(FOR: initial value; condition; increment/decrement specification)
Processing
Example Clears 256 bytes to 0 starting from address HL
Sets first address to HL register
(FOR: WORKCT = #0; WORKCT < #256; WORKCT + +)
Clears address HL to 0
Increments HL register
384