|
Section 11: Branching and Looping172
|
|
|
|
Conditional Test
|
GTO 02
|
Instruction
|
Instruction
|
LBL 02
|
Instruction
|
|
|
|
|
|
|
Now let’s look at that tax accountant’s problem again. For
persons with incomes of more than $10,000 the program should compute
a tax of 22%. For persons with income of $10,000 or less the tax is
17.5%. The following program will test the amount in the X-register
and compute and display the correct tax amount.
|
|
|