Earlier, I wrote something about subroutines, how they work, what they do and why you need them. This time, I’ll explore the somewhat more advanced concept of dynamic subroutines, i.e. calling one of a few possible subroutines based on an external value.
jsr
Assembly 101: Subroutines
When developing in Assembly, you will definitely have to use a subroutine or two. JSR and RTS are the two main instructions that make subroutines work. What is a subroutine, how does it work and what are the possible pitfalls? Read all about it here.