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;