© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
J. BartlettLearn to Program with Assemblyhttps://doi.org/10.1007/978-1-4842-7437-8_9

9. More Instructions You Should Know

Jonathan Bartlett1  
(1)
Tulsa, OK, USA
 

In this chapter, we will discuss instructions which are not used quite as often, but are still important to know in order to be able to write and read assembly language code well.

9.1 More Jump Instructions

The jump instruction we have seen so far (jmp) is pretty straightforward. You simply give it an address to jump to (usually as a label) and jmp goes there. However, there is more to it than that.

There are basically four types of jump instructions: short, near, far, and indirect. A short jump is a ...

Get Learn to Program with Assembly: Foundational Learning for New Programmers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.