Chapter 8 in the book Amstrad Machine Language for the Absolute Beginner.
page 89
page 90
page 91
page 92