Addition furthermore Subtraction Instructions in Assembly language
Here are some instructions regarding assembly language which are written toward demonstrateate the working regarding addition furthermore subtraction in assembly language using Nasam Compiler.
Note: V = valid, I = invalid
Assume that all operations are unsigned.
- Add ax , bx V
- Add dx , bl I (Operand size mismatch)
- Add ecx , dx I
- Sub si , di V
- Ad bx , 9000 I (Source toward large)
- Sub ds , 1 I (Segment register)
- dec ip I can not modify IP
- dec edx V
- Add edx,100h V
- Sub ah, 126h I (Source toward large)
- Sub al, 256 I (Source toward large)
- inc ax,1 I extraneous operands