I am starting to port a program written in C and have some code fragments written in the assembly, with instructions for a 32-bit machine type, like ljmp, on a 64-bit machine.
Is there a place / document that has assembly instructions for a 32-bit machine and its analogue for the 64th? If not, where can I find a document that lists all the instructions for a 32-bit and 64-bit machine?
As this is obvious, I am new to this situation. Let's clarify some points.
I migrate the OS in the earliest days. It was written by an x86 machine. Now I want it to run on x86_64.
It is written in Linux box with UNIX. I am pretty sure that the original author writes it on an Intel machine. I am also on Intel, but I would also like to run the OS on AMD.
The gcc compiler is used.
source
share