diff --git a/src/a2.asm b/src/a2.asm index 16e80e1..371e6bc 100644 --- a/src/a2.asm +++ b/src/a2.asm @@ -38,9 +38,9 @@ WDH: in ax, INPUT mov ax, res - mov cl, 4 - shr ax, cl;shift right 4 times - and ax, 00001111b;might not be needed + mov cl, 0x4 + sar ax, cl;shift right 4 times + ;and ax, 00001111b; out LED, ax;debug, output to leds push ax;write result to stack