8080: fix a bug in the cpu detection code
authorAlan Cox <alan@linux.intel.com>
Sat, 16 Feb 2019 11:46:37 +0000 (11:46 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 16 Feb 2019 11:46:37 +0000 (11:46 +0000)
Still needs more checking

Kernel/lowlevel-8080.s

index c36793f..cae884a 100644 (file)
@@ -528,7 +528,7 @@ _cpu_detect:
        inr a
        push psw
        pop h
-       mov a,h
+       mov a,l
        ani 0x82
        cpi 0x80
        jz lr35902
@@ -562,7 +562,7 @@ is808x:
        ani 255
        push psw
        pop h
-       mov a,h
+       mov a,l
        ani 0x10        ! half carry is zero on AMD
        rnz
        mvi d,0x90