Authors
John (Basil) Wentworth
Publication
Publication Details
Date
February 1987
Pages
2
See all articles from ISTUG Newsletter Feb 1987
Program successively adds 232 and 10 to the DATA value. If the initial value is > 23, the first addition results in a sum > 255; therefore a carry. If 13 < data < 24, then the second addition gives a carry, If data < 16, then no carry at all. BC is originally loaded with 58 and is incremented twice, once, or zero times, according to how many carries take place.