Chapter 7 in the book Amstrad Machine Language for the Absolute Beginner.
page 81
page 82
page 83
page 84
page 85
page 86
page 87