Änderungen

This commit is contained in:
Johannes Theiner 2018-11-01 08:47:29 +01:00
parent ab78c01145
commit d22365bf42
1 changed files with 2 additions and 2 deletions

View File

@ -31,13 +31,13 @@ res db 0x0
jmp WDH jmp WDH
WDH: in ax, INPUT WDH: in ax, INPUT
mov res, ax mov res, [ax]
and ax, 00001111b;get second nibble and ax, 00001111b;get second nibble
out LED, ax;debug, output to leds out LED, ax;debug, output to leds
push ax;write result to stack push ax;write result to stack
mov ax, res mov ax, [res]
mov cl, 0x4 mov cl, 0x4
sar ax, cl;shift right 4 times sar ax, cl;shift right 4 times
;and ax, 00001111b; ;and ax, 00001111b;