Solved

How to interpret opcode documentation

Posted on 2009-05-03
1
713 Views
Last Modified: 2013-12-13
Hi!
I'm trying to write some code using the opcode I found in the x86 processor opcode documentation I found on Intels homepage (link: http://developer.intel.com/design/PentiumII/manuals/243191.htm) and the opcode reference found in the masm32 install package. I have succesfuly made some simple stuff like this: B801000000C3H which stores 01H in eax and then returns.

However I don't understand how to read most of the documentation for the different opcodes. For example I would like to implement the CALLF instruktion.

The documentation in masm32 says:
9A cp CALL ptr16:32 Call far, absolute, address given in operand

So I thought that to call a function at address 00C40000H would be
9A0000C400H however that crashes.

Anyone know how it should be?

Thanks.
0
Comment
Question by:monoceres
1 Comment
 

Accepted Solution

by:
monoceres earned 0 total points
ID: 24291676
I guess this one can be closed early. I found info on this site:
http://coding.derkeiler.com/Archive/Assembler/comp.lang.asm.x86/2006-11/msg00207.html
That said that the 9A instruction couldn't be used, so the E8 instruction should be used instead.
So I calculated the difference between my function pointer and the next byte to be executed and voíla.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now