lowlevel-68000: fix hex dump
authorAlan Cox <alan@linux.intel.com>
Mon, 12 Sep 2016 23:13:33 +0000 (00:13 +0100)
committerAlan Cox <alan@linux.intel.com>
Mon, 12 Sep 2016 23:13:33 +0000 (00:13 +0100)
Kernel/lowlevel-68000.S

index 8b427cd..468949e 100644 (file)
@@ -498,9 +498,10 @@ outa0hex:  move.l a0,d0
                bsr outcharhex
                move.l a0,d0
 outcharhex:    move.w d0,-(sp)
-               lsr #4,d0
+               lsr.b #4,d0
                bsr hexdigit
                move.w (sp),d0
+               and.b #15,d0
                bsr hexdigit
                move.w (sp)+,d0
                rts