Addition and Subtraction Instructions in Assembly language
Addition and Subtraction Instructions in Assembly language
ate the working of addition and 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 to 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 to large)
- Sub al, 256 I (Source to large)
- inc ax,1 I extraneous operands
too much informative :)
ReplyDelete