NEC V30MZ instruction set: Difference between revisions
From WSdev Wiki
Jump to navigationJump to search
(add NEC opcode translation table, line separators) |
|||
Line 24: | Line 24: | ||
|} | |} | ||
{| class="mw-collapsible mw-collapsed wikitable sortable" style="width: 340px;" | |||
|+ style="white-space:nowrap; border:1px solid; padding:3px; border-color:rgb(162, 169, 177); background-color:rgb(234, 236, 240);" | Intel <-> NEC mnemonic translation table | |||
!Intel | |||
!NEC | |||
|- | |||
| [[#AAA|AAA]] | |||
| [[#AAA|ADJBA]] | |||
|- | |||
| [[#AAD|AAD]] | |||
| [[#AAD|CVTDB]] | |||
|- | |||
| [[#AAM|AAM]] | |||
| [[#AAM|CVTBD]] | |||
|- | |||
| [[#AAS|AAS]] | |||
| [[#AAS|ADJBS]] | |||
|- | |||
| [[#ADC|ADC]] | |||
| [[#ADC|ADDC]] | |||
|- | |||
| [[#ADD|ADD]] | |||
| [[#ADD|ADD]] | |||
|- | |||
| [[#AND|AND]] | |||
| [[#AND|AND]] | |||
|- | |||
| [[#BOUND|BOUND]] | |||
| [[#BOUND|CHKIND]] | |||
|- | |||
| [[#CALL|CALL]] | |||
| [[#CALL|CALL]] | |||
|- | |||
| [[#CBW|CBW]] | |||
| [[#CBW|CVTBW]] | |||
|- | |||
| [[#CLC|CLC]] | |||
| [[#CLC|CLR1 CY]] | |||
|- | |||
| [[#CLD|CLD]] | |||
| [[#CLD|CLR1 DIR]] | |||
|- | |||
| [[#CLI|CLI]] | |||
| [[#CLI|DI]] | |||
|- | |||
| [[#CMC|CMC]] | |||
| [[#CMC|NOT1 CY]] | |||
|- | |||
| [[#CMP|CMP]] | |||
| [[#CMP|CMP]] | |||
|- | |||
| [[#CMPSB|CMPSB]] | |||
| [[#CMPSB|CMPBKB]] | |||
|- | |||
| [[#CMPSW|CMPSW]] | |||
| [[#CMPSW|CMPBKW]] | |||
|- | |||
| [[#CS|CS]] | |||
| [[#CS|PS]] | |||
|- | |||
| [[#CWD|CWD]] | |||
| [[#CWD|CVTWL]] | |||
|- | |||
| [[#DAA|DAA]] | |||
| [[#DAA|ADJ4A]] | |||
|- | |||
| [[#DAS|DAS]] | |||
| [[#DAS|ADJ4S]] | |||
|- | |||
| [[#DEC|DEC]] | |||
| [[#DEC|DEC]] | |||
|- | |||
| [[#DIV|DIV]] | |||
| [[#DIV|DIVU]] | |||
|- | |||
| [[#DS|DS]] | |||
| [[#DS|DS0]] | |||
|- | |||
| [[#ENTER|ENTER]] | |||
| [[#ENTER|PREPARE]] | |||
|- | |||
| [[#ES|ES]] | |||
| [[#ES|DS1]] | |||
|- | |||
| [[#HLT|HLT]] | |||
| [[#HLT|HALT]] | |||
|- | |||
| [[#IDIV|IDIV]] | |||
| [[#IDIV|DIV]] | |||
|- | |||
| [[#IMUL|IMUL]] | |||
| [[#IMUL|MUL]] | |||
|- | |||
| [[#IN|IN]] | |||
| [[#IN|IN]] | |||
|- | |||
| [[#INC|INC]] | |||
| [[#INC|INC]] | |||
|- | |||
| [[#INSB|INSB]] | |||
| [[#INSB|INMB]] | |||
|- | |||
| [[#INSW|INSW]] | |||
| [[#INSW|INMW]] | |||
|- | |||
| [[#INT|INT]] | |||
| [[#INT|BRK]] | |||
|- | |||
| [[#INTO|INTO]] | |||
| [[#INTO|BRKV]] | |||
|- | |||
| [[#IRET|IRET]] | |||
| [[#IRET|RETI]] | |||
|- | |||
| [[#JA|JA]] | |||
| [[#JA|BH]] | |||
|- | |||
| [[#JBE|JBE]] | |||
| [[#JBE|BNH]] | |||
|- | |||
| [[#JC|JC/JB]] | |||
| [[#JC|BC/BL]] | |||
|- | |||
| [[#JCXZ|JCXZ]] | |||
| [[#JCXZ|BCWZ]] | |||
|- | |||
| [[#JG|JG]] | |||
| [[#JG|BGT]] | |||
|- | |||
| [[#JGE|JGE]] | |||
| [[#JGE|BGE]] | |||
|- | |||
| [[#JL|JL]] | |||
| [[#JL|BLT]] | |||
|- | |||
| [[#JLE|JLE]] | |||
| [[#JLE|BLE]] | |||
|- | |||
| [[#JMP|JMP]] | |||
| [[#JMP|BR]] | |||
|- | |||
| [[#JNC|JNC/JAE]] | |||
| [[#JNC|BNC/BNL]] | |||
|- | |||
| [[#JNO|JNO]] | |||
| [[#JNO|BNV]] | |||
|- | |||
| [[#JNP|JNP]] | |||
| [[#JNP|BPO]] | |||
|- | |||
| [[#JNS|JNS]] | |||
| [[#JNS|BP]] | |||
|- | |||
| [[#JNZ|JNZ/JNE]] | |||
| [[#JNZ|BNZ/BNE]] | |||
|- | |||
| [[#JO|JO]] | |||
| [[#JO|BV]] | |||
|- | |||
| [[#JP|JP]] | |||
| [[#JP|BPE]] | |||
|- | |||
| [[#JS|JS]] | |||
| [[#JS|BN]] | |||
|- | |||
| [[#JZ|JZ/JE]] | |||
| [[#JZ|BZ/BE]] | |||
|- | |||
| [[#LAHF|LAHF]] | |||
| [[#LAHF|MOV]] | |||
|- | |||
| [[#LDS|LDS]] | |||
| [[#LDS|MOV]] | |||
|- | |||
| [[#LEA|LEA]] | |||
| [[#LEA|LDEA]] | |||
|- | |||
| [[#LEAVE|LEAVE]] | |||
| [[#LEAVE|DISPOSE]] | |||
|- | |||
| [[#LES|LES]] | |||
| [[#LES|MOV]] | |||
|- | |||
| [[#LOCK|LOCK]] | |||
| [[#LOCK|BUSLOCK]] | |||
|- | |||
| [[#LODSB|LODSB]] | |||
| [[#LODSB|LDMB]] | |||
|- | |||
| [[#LODSW|LODSW]] | |||
| [[#LODSW|LDMW]] | |||
|- | |||
| [[#LOOP|LOOP]] | |||
| [[#LOOP|DBNZ]] | |||
|- | |||
| [[#LOOPE|LOOPE]] | |||
| [[#LOOPE|DBNZE]] | |||
|- | |||
| [[#LOOPNE|LOOPNE]] | |||
| [[#LOOPNE|DBNZNE]] | |||
|- | |||
| [[#MOV|MOV]] | |||
| [[#MOV|MOV]] | |||
|- | |||
| [[#MOVSB|MOVSB]] | |||
| [[#MOVSB|MOVBKB]] | |||
|- | |||
| [[#MOVSW|MOVSW]] | |||
| [[#MOVSW|MOVBKW]] | |||
|- | |||
| [[#MUL|MUL]] | |||
| [[#MUL|MULU]] | |||
|- | |||
| [[#NEG|NEG]] | |||
| [[#NEG|NEG]] | |||
|- | |||
| [[#NOP|NOP]] | |||
| [[#NOP|NOP]] | |||
|- | |||
| [[#NOT|NOT]] | |||
| [[#NOT|NOT]] | |||
|- | |||
| [[#OR|OR]] | |||
| [[#OR|OR]] | |||
|- | |||
| [[#OUT|OUT]] | |||
| [[#OUT|OUT]] | |||
|- | |||
| [[#OUTSB|OUTSB]] | |||
| [[#OUTSB|OUTM]] | |||
|- | |||
| [[#OUTSW|OUTSW]] | |||
| [[#OUTSW|OUTM]] | |||
|- | |||
| [[#POLL|POLL]] | |||
| [[#POLL|POLL]] | |||
|- | |||
| [[#POP|POP]] | |||
| [[#POP|POP]] | |||
|- | |||
| [[#POPA|POPA]] | |||
| [[#POPA|POP]] | |||
|- | |||
| [[#POPF|POPF]] | |||
| [[#POPF|POP]] | |||
|- | |||
| [[#PUSH|PUSH]] | |||
| [[#PUSH|PUSH]] | |||
|- | |||
| [[#PUSHA|PUSHA]] | |||
| [[#PUSHA|PUSH]] | |||
|- | |||
| [[#PUSHF|PUSHF]] | |||
| [[#PUSHF|PUSH]] | |||
|- | |||
| [[#RCL|RCL]] | |||
| [[#RCL|ROLC]] | |||
|- | |||
| [[#RCR|RCR]] | |||
| [[#RCR|RORC]] | |||
|- | |||
| [[#REP|REP/REPE/REPZ]] | |||
| [[#REP|REP/REPE/REPZ]] | |||
|- | |||
| [[#REPNE|REPNE/REPNZ]] | |||
| [[#REPNE|REPNE/REPNZ]] | |||
|- | |||
| [[#RET|RET]] | |||
| [[#RET|RET]] | |||
|- | |||
| [[#RETF|RETF]] | |||
| [[#RETF|RET]] | |||
|- | |||
| [[#ROL|ROL]] | |||
| [[#ROL|ROL]] | |||
|- | |||
| [[#ROR|ROR]] | |||
| [[#ROR|ROR]] | |||
|- | |||
| [[#SAHF|SAHF]] | |||
| [[#SAHF|MOV]] | |||
|- | |||
| [[#SAR|SAR]] | |||
| [[#SAR|SHRA]] | |||
|- | |||
| [[#SBB|SBB]] | |||
| [[#SBB|SUBC]] | |||
|- | |||
| [[#SCASB|SCASB]] | |||
| [[#SCASB|CMPMB]] | |||
|- | |||
| [[#SCASW|SCASW]] | |||
| [[#SCASW|CMPMW]] | |||
|- | |||
| [[#SHL|SHL]] | |||
| [[#SHL|SHL]] | |||
|- | |||
| [[#SHR|SHR]] | |||
| [[#SHR|SHR]] | |||
|- | |||
| [[#SS|SS]] | |||
| [[#SS|SS]] | |||
|- | |||
| [[#STC|STC]] | |||
| [[#STC|SET1 CY]] | |||
|- | |||
| [[#STD|STD]] | |||
| [[#STD|SET1 DIR]] | |||
|- | |||
| [[#STI|STI]] | |||
| [[#STI|EI]] | |||
|- | |||
| [[#STOSB|STOSB]] | |||
| [[#STOSB|STMB]] | |||
|- | |||
| [[#STOSW|STOSW]] | |||
| [[#STOSW|STMW]] | |||
|- | |||
| [[#SUB|SUB]] | |||
| [[#SUB|SUB]] | |||
|- | |||
| [[#TEST|TEST]] | |||
| [[#TEST|TEST]] | |||
|- | |||
| [[#XCHG|XCHG]] | |||
| [[#XCHG|XCH]] | |||
|- | |||
| [[#XLAT|XLAT]] | |||
| [[#XLAT|TRANS]] | |||
|- | |||
| [[#XOR|XOR]] | |||
| [[#XOR|XOR]] | |||
|} | |||
== Official instructions by type == | == Official instructions by type == | ||
Line 37: | Line 369: | ||
| style="border-right:none;" | [[#LDS|LDS]] | | style="border-right:none;" | [[#LDS|LDS]] | ||
| style="border-left:none;" | [[#LES|LES]] | | style="border-left:none;" | [[#LES|LES]] | ||
| colspan=" | | style="border-right:none;" | [[#IN|IN]] | ||
| style="border-left:none;" | [[#OUT|OUT]] | |||
| colspan="8" | | |||
|- | |- | ||
| style="text-align:left;" | Ports | | style="text-align:left;" | Ports | ||
Line 190: | Line 524: | ||
=== AAA === | === AAA === | ||
---- | |||
{{Anchor|AAD}} | {{Anchor|AAD}} | ||
=== AAD === | === AAD === | ||
---- | |||
{{Anchor|AAM}} | {{Anchor|AAM}} | ||
=== AAM === | === AAM === | ||
---- | |||
{{Anchor|AAS}} | {{Anchor|AAS}} | ||
=== AAS === | === AAS === | ||
---- | |||
{{Anchor|ADC}} | {{Anchor|ADC}} | ||
=== ADC === | === ADC === | ||
---- | |||
{{Anchor|ADD}} | {{Anchor|ADD}} | ||
=== ADD === | === ADD === | ||
---- | |||
{{Anchor|AND}} | {{Anchor|AND}} | ||
=== AND === | === AND === | ||
---- | |||
{{Anchor|BOUND}} | {{Anchor|BOUND}} | ||
=== BOUND === | === BOUND === | ||
---- | |||
{{Anchor|CALL}} | {{Anchor|CALL}} | ||
=== CALL === | === CALL === | ||
---- | |||
{{Anchor|CBW}} | {{Anchor|CBW}} | ||
=== CBW === | === CBW === | ||
---- | |||
{{Anchor|CLC}} | {{Anchor|CLC}} | ||
=== CLC === | === CLC === | ||
---- | |||
{{Anchor|CLD}} | {{Anchor|CLD}} | ||
=== CLD === | === CLD === | ||
---- | |||
{{Anchor|CLI}} | {{Anchor|CLI}} | ||
=== CLI === | === CLI === | ||
---- | |||
{{Anchor|CMC}} | {{Anchor|CMC}} | ||
=== CMC === | === CMC === | ||
---- | |||
{{Anchor|CMP}} | {{Anchor|CMP}} | ||
=== CMP === | === CMP === | ||
---- | |||
{{Anchor|CMPSB}} | {{Anchor|CMPSB}} | ||
=== CMPSB === | === CMPSB === | ||
---- | |||
{{Anchor|CMPSW}} | {{Anchor|CMPSW}} | ||
=== CMPSW === | === CMPSW === | ||
---- | |||
{{Anchor|CS}} | {{Anchor|CS}} | ||
=== CS === | === CS === | ||
---- | |||
{{Anchor|CWD}} | {{Anchor|CWD}} | ||
=== CWD === | === CWD === | ||
---- | |||
{{Anchor|DAA}} | {{Anchor|DAA}} | ||
=== DAA === | === DAA === | ||
---- | |||
{{Anchor|DAS}} | {{Anchor|DAS}} | ||
=== DAS === | === DAS === | ||
---- | |||
{{Anchor|DEC}} | {{Anchor|DEC}} | ||
=== DEC === | === DEC === | ||
---- | |||
{{Anchor|DIV}} | {{Anchor|DIV}} | ||
=== DIV === | === DIV === | ||
---- | |||
{{Anchor|DS}} | {{Anchor|DS}} | ||
=== DS === | === DS === | ||
---- | |||
{{Anchor|ENTER}} | {{Anchor|ENTER}} | ||
=== ENTER === | === ENTER === | ||
---- | |||
{{Anchor|ES}} | {{Anchor|ES}} | ||
=== ES === | === ES === | ||
---- | |||
{{Anchor|HLT}} | {{Anchor|HLT}} | ||
=== HLT === | === HLT === | ||
---- | |||
{{Anchor|IDIV}} | {{Anchor|IDIV}} | ||
=== IDIV === | === IDIV === | ||
---- | |||
{{Anchor|IMUL}} | {{Anchor|IMUL}} | ||
=== IMUL === | === IMUL === | ||
---- | |||
{{Anchor|IN}} | {{Anchor|IN}} | ||
=== IN === | === IN === | ||
---- | |||
{{Anchor|INC}} | {{Anchor|INC}} | ||
=== INC === | === INC === | ||
---- | |||
{{Anchor|INSB}} | {{Anchor|INSB}} | ||
=== INSB === | === INSB === | ||
---- | |||
{{Anchor|INSW}} | {{Anchor|INSW}} | ||
=== INSW === | === INSW === | ||
---- | |||
{{Anchor|INT}} | {{Anchor|INT}} | ||
=== INT === | === INT === | ||
---- | |||
{{Anchor|INTO}} | {{Anchor|INTO}} | ||
=== INTO === | === INTO === | ||
---- | |||
{{Anchor|IRET}} | {{Anchor|IRET}} | ||
=== IRET === | === IRET === | ||
---- | |||
{{Anchor|JA}} | {{Anchor|JA}} | ||
=== JA === | === JA === | ||
---- | |||
{{Anchor|JBE}} | {{Anchor|JBE}} | ||
=== JBE === | === JBE === | ||
---- | |||
{{Anchor|JC}} | {{Anchor|JC}} | ||
=== JC/JB === | === JC/JB === | ||
---- | |||
{{Anchor|JCXZ}} | {{Anchor|JCXZ}} | ||
=== JCXZ === | === JCXZ === | ||
---- | |||
{{Anchor|JG}} | {{Anchor|JG}} | ||
=== JG === | === JG === | ||
---- | |||
{{Anchor|JGE}} | {{Anchor|JGE}} | ||
=== JGE === | === JGE === | ||
---- | |||
{{Anchor|JL}} | {{Anchor|JL}} | ||
=== JL === | === JL === | ||
---- | |||
{{Anchor|JLE}} | {{Anchor|JLE}} | ||
=== JLE === | === JLE === | ||
---- | |||
{{Anchor|JMP}} | {{Anchor|JMP}} | ||
=== JMP === | === JMP === | ||
---- | |||
{{Anchor|JNC}} | {{Anchor|JNC}} | ||
=== JNC/JAE === | === JNC/JAE === | ||
---- | |||
{{Anchor|JNO}} | {{Anchor|JNO}} | ||
=== JNO === | === JNO === | ||
---- | |||
{{Anchor|JNP}} | {{Anchor|JNP}} | ||
=== JNP === | === JNP === | ||
---- | |||
{{Anchor|JNS}} | {{Anchor|JNS}} | ||
=== JNS === | === JNS === | ||
---- | |||
{{Anchor|JNZ}} | {{Anchor|JNZ}} | ||
=== JNZ/JNE === | === JNZ/JNE === | ||
---- | |||
{{Anchor|JO}} | {{Anchor|JO}} | ||
=== JO === | === JO === | ||
---- | |||
{{Anchor|JP}} | {{Anchor|JP}} | ||
=== JP === | === JP === | ||
---- | |||
{{Anchor|JS}} | {{Anchor|JS}} | ||
=== JS === | === JS === | ||
---- | |||
{{Anchor|JZ}} | {{Anchor|JZ}} | ||
=== JZ/JE === | === JZ/JE === | ||
---- | |||
{{Anchor|LAHF}} | {{Anchor|LAHF}} | ||
=== LAHF === | === LAHF === | ||
---- | |||
{{Anchor|LDS}} | {{Anchor|LDS}} | ||
=== LDS === | === LDS === | ||
---- | |||
{{Anchor|LEA}} | {{Anchor|LEA}} | ||
=== LEA === | === LEA === | ||
---- | |||
{{Anchor|LEAVE}} | {{Anchor|LEAVE}} | ||
=== LEAVE === | === LEAVE === | ||
---- | |||
{{Anchor|LES}} | {{Anchor|LES}} | ||
=== LES === | === LES === | ||
---- | |||
{{Anchor|LOCK}} | {{Anchor|LOCK}} | ||
=== LOCK === | === LOCK === | ||
---- | |||
{{Anchor|LODSB}} | {{Anchor|LODSB}} | ||
=== LODSB === | === LODSB === | ||
---- | |||
{{Anchor|LODSW}} | {{Anchor|LODSW}} | ||
=== LODSW === | === LODSW === | ||
---- | |||
{{Anchor|LOOP}} | {{Anchor|LOOP}} | ||
=== LOOP === | === LOOP === | ||
---- | |||
{{Anchor|LOOPE}} | {{Anchor|LOOPE}} | ||
=== LOOPE === | === LOOPE === | ||
---- | |||
{{Anchor|LOOPNE}} | {{Anchor|LOOPNE}} | ||
=== LOOPNE === | === LOOPNE === | ||
---- | |||
{{Anchor|MOV}} | {{Anchor|MOV}} | ||
=== MOV === | === MOV === | ||
---- | |||
{{Anchor|MOVSB}} | {{Anchor|MOVSB}} | ||
=== MOVSB === | === MOVSB === | ||
---- | |||
{{Anchor|MOVSW}} | {{Anchor|MOVSW}} | ||
=== MOVSW === | === MOVSW === | ||
---- | |||
{{Anchor|MUL}} | {{Anchor|MUL}} | ||
=== MUL === | === MUL === | ||
---- | |||
{{Anchor|NEG}} | {{Anchor|NEG}} | ||
=== NEG === | === NEG === | ||
---- | |||
{{Anchor|NOP}} | {{Anchor|NOP}} | ||
=== NOP === | === NOP === | ||
---- | |||
{{Anchor|NOT}} | {{Anchor|NOT}} | ||
=== NOT === | === NOT === | ||
---- | |||
{{Anchor|OR}} | {{Anchor|OR}} | ||
=== OR === | === OR === | ||
---- | |||
{{Anchor|OUT}} | {{Anchor|OUT}} | ||
=== OUT === | === OUT === | ||
---- | |||
{{Anchor|OUTSB}} | {{Anchor|OUTSB}} | ||
=== OUTSB === | === OUTSB === | ||
---- | |||
{{Anchor|OUTSW}} | {{Anchor|OUTSW}} | ||
=== OUTSW === | === OUTSW === | ||
---- | |||
{{Anchor|POLL}} | {{Anchor|POLL}} | ||
=== POLL === | === POLL === | ||
---- | |||
{{Anchor|POP}} | {{Anchor|POP}} | ||
=== POP === | === POP === | ||
---- | |||
{{Anchor|POPA}} | {{Anchor|POPA}} | ||
=== POPA === | === POPA === | ||
---- | |||
{{Anchor|POPF}} | {{Anchor|POPF}} | ||
=== POPF === | === POPF === | ||
---- | |||
{{Anchor|PUSH}} | {{Anchor|PUSH}} | ||
=== PUSH === | === PUSH === | ||
---- | |||
{{Anchor|PUSHA}} | {{Anchor|PUSHA}} | ||
=== PUSHA === | === PUSHA === | ||
---- | |||
{{Anchor|PUSHF}} | {{Anchor|PUSHF}} | ||
=== PUSHF === | === PUSHF === | ||
---- | |||
{{Anchor|RCL}} | {{Anchor|RCL}} | ||
=== RCL === | === RCL === | ||
---- | |||
{{Anchor|RCR}} | {{Anchor|RCR}} | ||
=== RCR === | === RCR === | ||
---- | |||
{{Anchor|REP}} | {{Anchor|REP}} | ||
=== REP/REPE/REPZ === | === REP/REPE/REPZ === | ||
---- | |||
{{Anchor|REPNE}} | {{Anchor|REPNE}} | ||
=== REPNE/REPNZ === | === REPNE/REPNZ === | ||
---- | |||
{{Anchor|RET}} | {{Anchor|RET}} | ||
=== RET === | === RET === | ||
---- | |||
{{Anchor|RETF}} | {{Anchor|RETF}} | ||
=== RETF === | === RETF === | ||
---- | |||
{{Anchor|ROL}} | {{Anchor|ROL}} | ||
=== ROL === | === ROL === | ||
---- | |||
{{Anchor|ROR}} | {{Anchor|ROR}} | ||
=== ROR === | === ROR === | ||
---- | |||
{{Anchor|SAHF}} | {{Anchor|SAHF}} | ||
=== SAHF === | === SAHF === | ||
---- | |||
{{Anchor|SAR}} | {{Anchor|SAR}} | ||
=== SAR === | === SAR === | ||
---- | |||
{{Anchor|SBB}} | {{Anchor|SBB}} | ||
=== SBB === | === SBB === | ||
---- | |||
{{Anchor|SCASB}} | {{Anchor|SCASB}} | ||
=== SCASB === | === SCASB === | ||
---- | |||
{{Anchor|SCASW}} | {{Anchor|SCASW}} | ||
=== SCASW === | === SCASW === | ||
---- | |||
{{Anchor|SHL}} | {{Anchor|SHL}} | ||
=== SHL === | === SHL === | ||
---- | |||
{{Anchor|SHR}} | {{Anchor|SHR}} | ||
=== SHR === | === SHR === | ||
---- | |||
{{Anchor|SS}} | {{Anchor|SS}} | ||
=== SS === | === SS === | ||
---- | |||
{{Anchor|STC}} | {{Anchor|STC}} | ||
=== STC === | === STC === | ||
---- | |||
{{Anchor|STD}} | {{Anchor|STD}} | ||
=== STD === | === STD === | ||
---- | |||
{{Anchor|STI}} | {{Anchor|STI}} | ||
=== STI === | === STI === | ||
---- | |||
{{Anchor|STOSB}} | {{Anchor|STOSB}} | ||
=== STOSB === | === STOSB === | ||
---- | |||
{{Anchor|STOSW}} | {{Anchor|STOSW}} | ||
=== STOSW === | === STOSW === | ||
---- | |||
{{Anchor|SUB}} | {{Anchor|SUB}} | ||
=== SUB === | === SUB === | ||
---- | |||
{{Anchor|TEST}} | {{Anchor|TEST}} | ||
=== TEST === | === TEST === | ||
---- | |||
{{Anchor|XCHG}} | {{Anchor|XCHG}} | ||
=== XCHG === | === XCHG === | ||
---- | |||
{{Anchor|XLAT}} | {{Anchor|XLAT}} | ||
=== XLAT === | === XLAT === | ||
---- | |||
{{Anchor|XOR}} | {{Anchor|XOR}} | ||
=== XOR === | === XOR === | ||
---- |
Revision as of 14:45, 26 December 2024
AAA | AAD | AAM | AAS | ADC | ADD | AND | BOUND | CALL | CBW | CLC |
CLD | CLI | CMC | CMP | CMPSB | CMPSW | CS | CWD | DAA | DAS | DEC |
DIV | DS | ENTER | ES | HLT | IDIV | IMUL | IN | INC | INSB | INSW |
INT | INTO | IRET | JA | JBE | JC | JCXZ | JG | JGE | JL | JLE |
JMP | JNC | JNO | JNP | JNS | JNZ | JO | JP | JS | JZ | LAHF |
LDS | LEA | LEAVE | LES | LOCK | LODSB | LODSW | LOOP | LOOPE | LOOPNE | MOV |
MOVSB | MOVSW | MUL | NEG | NOP | NOT | OR | OUT | OUTSB | OUTSW | POLL |
POP | POPA | POPF | PUSH | PUSHA | PUSHF | RCL | RCR | REP | REPNE | RET |
RETF | ROL | ROR | SAHF | SAR | SBB | SCASB | SCASW | SHL | SHR | SS |
STC | STD | STI | STOSB | STOSW | SUB | TEST | XCHG | XLAT | XOR |
Official instructions by type
Type | Instructions | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Memory | MOV | XCHG | XLAT | LEA | LDS | LES | IN | OUT | ||||||||
Ports | IN | OUT | INSB | OUTSB | INSW | OUTSW | ||||||||||
Arithmetic | ADD | SUB | ADC | SBB | INC | DEC | MUL | DIV | IMUL | IDIV | CMP | NEG | ||||
Numeric | CBW | CWD | AAA | AAS | AAM | AAD | DAA | DAS | ||||||||
Shift | ROL | ROR | RCL | RCR | SHL | SHR | SAR | |||||||||
Bitwise | AND | OR | XOR | NOT | TEST | |||||||||||
Branch | JC | JNC | JZ | JNZ | JBE | JA | JO | JNO | JP | JNP | JS | JNS | JL | JGE | JLE | JG |
Jump | JMP | CALL | RET | RETF | ||||||||||||
Loop | LOOP | LOOPE | LOOPNE | |||||||||||||
Interrupt | INT | IRET | INTO | HLT | BOUND | |||||||||||
Stack | PUSH | POP | PUSHA | POPA | PUSHF | POPF | ||||||||||
Flags | CLC | STC | CLD | STD | CLI | STI | CMC | LAHF | SAHF | |||||||
Prefix | CS | DS | ES | SS | ||||||||||||
String | REP | REPE | REPNE | MOVSB | MOVSW | LODSB | STOSB | LODSW | STOSW | CMPSB | SCASB | CMPSW | SCASW | |||
Other | NOP | ENTER | LEAVE | LOCK | POLL |
Official instructions
AAA
AAD
AAM
AAS
ADC
ADD
AND
BOUND
CALL
CBW
CLC
CLD
CLI
CMC
CMP
CMPSB
CMPSW
CS
CWD
DAA
DAS
DEC
DIV
DS
ENTER
ES
HLT
IDIV
IMUL
IN
INC
INSB
INSW
INT
INTO
IRET
JA
JBE
JC/JB
JCXZ
JG
JGE
JL
JLE
JMP
JNC/JAE
JNO
JNP
JNS
JNZ/JNE
JO
JP
JS
JZ/JE
LAHF
LDS
LEA
LEAVE
LES
LOCK
LODSB
LODSW
LOOP
LOOPE
LOOPNE
MOV
MOVSB
MOVSW
MUL
NEG
NOP
NOT
OR
OUT
OUTSB
OUTSW
POLL
POP
POPA
POPF
PUSH
PUSHA
PUSHF
RCL
RCR
REP/REPE/REPZ
REPNE/REPNZ
RET
RETF
ROL
ROR
SAHF
SAR
SBB
SCASB
SCASW
SHL
SHR
SS
STC
STD
STI
STOSB
STOSW
SUB
TEST
XCHG
XLAT