Chapter 9 in the book Amstrad Machine Language for the Absolute Beginner.
page 93
page 94
page 95
page 96
page 97