This is an old revision of the document!
git clone https://github.com/iocla/curs-03-demo.git
și apoi compilăm/asamblăm
cd curs-03-demo; make
The demo adds two bytes.
For signed/unsigned operations, watch flags C(arry) and O(verflow).
Presence of a flag means result is in the allowed interval.
Absence of a flag means the operation is within the allowed interval.
0x2 + 0x2
0xff + 1
0xff + 0xff
0xfe + 7
0x7f + 0x81 vs. 0x7f + 1
0x7f + 0x7f vs 0x7f + 0x80
Exercises for C and O - find a pair that activates: