16 bit Assembly

Home   Site Map   Instruction Index  


NEG   - Negate Instruction

The NEG instruction is used to change a value to its equivelent negative value.

This command has 2 parts, Instruction, then either a Register, or a memory address.

Assembly Sample Description   16 bit Machine Code
MOV AX, 0x0030;  Assign a value to AX   B8 30 00
NEG AX;  Negate AX   F7 D8
; PrintAX;  = 55696  
NEG [BX];  Negate a memory address   F7 67 00




Last Update 07/02/2023