mod reg r/m question
Posted: Sat Jun 23, 2007 6:11 am
I did notice an strange thing while programming a boot sector. I expected that real mode is the same as 16-bit mode (Real mode forces processor to execute instruction like 8088/8086 processors). So for example the dump of one instruction in my program in windows looks like this:
use raw write on diskette and start it like boot sector, assuming this result:
but it isn't right. In real mode instruction becomes:
just like protected mode:
Is there a list of mod reg r/m in real mode?
I found some information over internet how to convert opcodes to mod reg r/m but it is for protected 32-bit mode.
Sorry about bad english
Code: Select all
00 00 ADD byte ptr[eax], al
Code: Select all
00 00 ADD byte ptr[ax], al
Code: Select all
00 00 ADD byte ptr[bx+si], al
Code: Select all
67 00 00 ADD byte ptr[bx+si], al
I found some information over internet how to convert opcodes to mod reg r/m but it is for protected 32-bit mode.
Sorry about bad english