Recently I became interested in using jump tables in an assembler
implementation of my 6502 instruction set simulator. I ran into trouble
while trying to set up jump tables and inquired on the Go Nuts mailing
The TL;DR is that with 6a "there is no way to emit a data reference to a
specific instruction within a function".
In the days following my post I came up with three approaches to avoid the
abovementioned limitation. I will present them below, complete with
examples for the amd64 architecture. I'm convinced that they are easy to
port to other architectures.
Find the code and an accompanying writeup at
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/groups/opt_out.