wok-tiny view x86test/stuff/patch.S @ rev 181

x86test: add a patch for NMOS 8088
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 20 13:53:13 2023 +0000 (7 months ago)
parents
children 34a0a4406539
line source
1 .code16
3 .org 0xc3
4 str_8086: .string "8086 (16-bit NMOS)"
5 str_8088: .string "8088 (8-bit NMOS)"
6 str_80C86: .string "80C86 (16-bit CMOS)"
7 str_80C88: .string "80C88 (8-bit CMOS)"
8 str_80186: .string "80186 (16-bit)"
9 str_80188: .string "80188 (8-bit)"
10 str_80286: .string "80286"
12 test_width8_16:
14 .org 0x18a
15 test8086_88:
16 pushf
17 xorw %cx, %cx
18 movw %cx, %es
19 es movw 0x46c, %bx # BIOS tick count l.o. word
20 1: pushw %cx
21 sti
22 rep cs lodsb
23 cli
24 orw %cx, %cx
25 popw %cx
26 movw $str_8088, %ax
27 movw $str_8086, %si
28 jnz nmos_8086_88
29 movb $str_80C88, %al
30 movw $str_80C86, %si
31 es cmpw 0x046c, %bx
32 loope 1b
33 nmos_8086_88: popf
34 call test_width8_16
35 jz 1f
36 xchgw %ax, %si
37 1: ret
39 .org 0x1bb