(V2) Towards The First Program
(V2) Towards The First Program
(V2) Towards The First Program
The flags would be affected. Move instruction affects no flags but the increment instruction affects
every flag apart from the carry flag.
While incrementing or decrementing a register, mup figures out the length through the size of the
register. When we increment or decrement the contents of a memory location, we need to specify
the length.
Here BX is referring to a memory location, in the first case it increments the data in one location. For
the byte example it increments data from 2 locations.
When we say jump if zero it branches to a particular memory if the zero flag is set. In JNZ it branches
to a memory location if the zero flag is reset.