From ab78c01145aea0dee8b30e33d28b17ec2ce22b84 Mon Sep 17 00:00:00 2001 From: Johannes Theiner Date: Wed, 31 Oct 2018 19:03:54 +0100 Subject: [PATCH] =?UTF-8?q?kleinere=20=C3=84nderungen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/a2.asm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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