From a12b553ffbb45f20edbbe4255a07c3fa8a574b30 Mon Sep 17 00:00:00 2001 From: Jeffrey Armstrong Date: Wed, 13 Nov 2024 17:08:47 -0500 Subject: Fixed check for NEC vs Intel --- asm/386q.asm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'asm') diff --git a/asm/386q.asm b/asm/386q.asm index bf58033..250825a 100644 --- a/asm/386q.asm +++ b/asm/386q.asm @@ -61,8 +61,12 @@ lessthantwoeightsix: mov si, 0 mov cx, 0xffff ;0ffffh + ;rep lods [BYTE PTR es:si] - rep lodsb + ; INLINE assembler doesn't understand above - must be replaced after... + ; because we need a lods with ES as a parameter + ; so drop a 3-byte nonsense call to be replaced + mov cx, 0x0f99 ; replace with 0xF3, 0x26, 0xAC pop si -- cgit v1.2.3