I read on some blogs online you can use int 2Eh or sysenter instead of syscall in an asm file. So I tried both of these but it doesn't work for me to run the program. For int 2Eh, it compiles but program doesn't run and do what it should do(which it does if I use "syscall" instead). And for sysenter, it doesn't even compile because compiler can't recognize the word syscall.
I am using latest Visual Studio and my project is an 64-bit exe file. Anyone have ideas what I can try?