2ASSEMBLY LANGUAGE BASICS
This chapter introduces the fundamentals of assembly language. We’ll begin by exploring what assembly is and why we use it to program the Game Boy. Then, we’ll look at the DMG CPU, including its registers and flags, which you’ll use throughout this book.
We’ll cover the basics of assembly language syntax, such as labels, instructions, and comments, and then we’ll go through all the instructions available on the DMG so that you understand how each works and how to implement high-level constructs like loops and if...else statements. Coverage of these instructions forms the bulk of this chapter, and you can come back to this section later if you need to review specific instructions. An instruction reference is also available ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access