From d22365bf4203fa44c3f8d7b40a90e3c1bf8db9d6 Mon Sep 17 00:00:00 2001 From: Johannes Theiner Date: Thu, 1 Nov 2018 08:47:29 +0100 Subject: [PATCH] =?UTF-8?q?=C3=84nderungen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/a2.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/a2.asm b/src/a2.asm index 371e6bc..591a389 100644 --- a/src/a2.asm +++ b/src/a2.asm @@ -31,13 +31,13 @@ res db 0x0 jmp WDH WDH: in ax, INPUT - mov res, ax + mov res, [ax] and ax, 00001111b;get second nibble out LED, ax;debug, output to leds push ax;write result to stack - mov ax, res + mov ax, [res] mov cl, 0x4 sar ax, cl;shift right 4 times ;and ax, 00001111b;