Abstract
In the previous chapter (section 3.1) reference was made to a new register: P, the status register. Figure 3.1 shows it in relation to the rest of the architecture that we have met so far. Each of the eight bits of this register has a separate function: each operates as a flag, indicating that certain conditions have or have not occurred. If the bit is 1, the flag is said to be set, if the bit is 0, the flag is said to be clear (or sometimes reset). We have already considered two flags: C, the carry flag, and V, the overflow flag. Figure 4.1 shows all the flags in the P register. There are five new ones, N, B, D, I, Z. Of these, we will defer discussion of B, D and I until later chapters.
This is a preview of subscription content, log in via an institution.
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Copyright information
© 1984 Ian Birnbaum
About this chapter
Cite this chapter
Birnbaum, I. (1984). Decision-making in Assembly Language. In: Assembly Language Programming for the BBC Microcomputer. Palgrave, London. https://doi.org/10.1007/978-1-349-07360-3_4
Download citation
DOI: https://doi.org/10.1007/978-1-349-07360-3_4
Publisher Name: Palgrave, London
Print ISBN: 978-0-333-37096-4
Online ISBN: 978-1-349-07360-3
eBook Packages: Computer ScienceComputer Science (R0)