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