aboutsummaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeff@approximatrix.com>2024-11-13 17:08:47 -0500
committerJeffrey Armstrong <jeff@approximatrix.com>2024-11-13 17:08:47 -0500
commita12b553ffbb45f20edbbe4255a07c3fa8a574b30 (patch)
treea2e8d9a9ee12fe70a6938c7d5fd233b86455c76e /asm
parent41d6a33d31d348563a9c97b7cf25752e8e64f599 (diff)
downloadGWFetch-a12b553ffbb45f20edbbe4255a07c3fa8a574b30.tar.gz
GWFetch-a12b553ffbb45f20edbbe4255a07c3fa8a574b30.zip
Fixed check for NEC vs Intel
Diffstat (limited to 'asm')
-rw-r--r--asm/386q.asm6
1 files changed, 5 insertions, 1 deletions
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