Chapter 6 in the book Amstrad Machine Language for the Absolute Beginner.
page 74
page 75
page 76
page 77
page 78
page 79