Jump table implementation in MASM x64?
I'm trying to implement an algorithm in assembly (MASM64, Windows, x64) using jump tables. Basic idea is: there are 3 different types of operations I need to do with data. The operations depend on some variables, but I found it tedious to implement a lot of switching and many long implementations. PUBLIC superFunc@@40 ;__vectorcall decoration .DATA ALIGN 16 jumpTable1 qword func_11, func_12, func_13, func_14 jumpTable2 qword func_21, func_22, func_23, func_24 jumpTable3 qword func_31, func_32, func_33, func_34 .CODE superFunc@@40 PROC ;no stack actions, as we should do our stuff as a leaf