Lesson 7 Negative Integers, Sign Extention and the "Sequencer" in Assembly

3 years ago

Covering 2's complement negative integers and what sign extension is. What are the maximum and minimum positive and negative numbers you can represent with 64 bits?
Python 2.7.13 is used to help out with the big numbers.
How do you convert a negative 2's complement integer to positive and vice versa?
NOT, INC, and instructions are used (equivalent of NEG, which I later discovered).

Implement what I call a 'sequencer' based off some HolyC code Terry wrote, and the significance of powers of 2. Introduce concept of an AND mask.

Loading comments...