From 155edfef92744ef2e90b9d5589c734176517d94f Mon Sep 17 00:00:00 2001 From: Amer K Date: Fri, 1 Jun 2018 08:05:31 +0300 Subject: [PATCH] The example incorrectly displayed the signed -5 --- Basic-Assembly-tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Basic-Assembly-tutorial.md b/Basic-Assembly-tutorial.md index 0cf3172..173527b 100644 --- a/Basic-Assembly-tutorial.md +++ b/Basic-Assembly-tutorial.md @@ -58,7 +58,7 @@ The processor uses the most significant (leftmost, also called the sign bit) bit Let's take the number 5 for example (16-bit): ``` 0000 0000 0000 0101 # The two's complement (signed) value is 5, the unsigned value is 5 - 1111 1111 1111 1011 # The two's complement (signed) value is -5, the unsigned value is 65533 + 1111 1111 1111 1010 # The two's complement (signed) value is -5, the unsigned value is 65533 ^ The sign bit is set ```