From 5e3a88b7f53b9b4dc9765bbe1683e3da6acb0995 Mon Sep 17 00:00:00 2001 From: nickysn Date: Tue, 6 Oct 2015 14:55:51 +0000 Subject: [PATCH] * replaced or cx,cx/jz with jcxz in IndexByte, IndexWord and IndexDWord for i8086 git-svn-id: trunk@31961 - --- rtl/i8086/i8086.inc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/rtl/i8086/i8086.inc b/rtl/i8086/i8086.inc index bbbdd03d65..694e6ec74e 100644 --- a/rtl/i8086/i8086.inc +++ b/rtl/i8086/i8086.inc @@ -166,8 +166,7 @@ function IndexByte(Const buf;len:SizeInt;b:byte):SizeInt; assembler; nostackfram asm mov bx, sp mov cx, ss:[bx + 4 + extra_param_offset] // len - or cx, cx - jz @@NotFound + jcxz @@NotFound {$ifdef FPC_X86_DATA_NEAR} mov di, ss:[bx + 6 + extra_param_offset] // @buf mov ax, ds @@ -200,8 +199,7 @@ function IndexWord(Const buf;len:SizeInt;b:word):SizeInt; assembler; nostackfram asm mov bx, sp mov cx, ss:[bx + 4 + extra_param_offset] // len - or cx, cx - jz @@NotFound + jcxz @@NotFound {$ifdef FPC_X86_DATA_NEAR} mov di, ss:[bx + 6 + extra_param_offset] // @buf mov ax, ds @@ -234,8 +232,7 @@ function IndexDWord(Const buf;len:SizeInt;b:DWord):SizeInt; assembler; nostackfr asm mov bx, sp mov cx, ss:[bx + 6 + extra_param_offset] // len - or cx, cx - jz @@NotFound + jcxz @@NotFound {$ifdef FPC_X86_DATA_NEAR} mov di, ss:[bx + 8 + extra_param_offset] // @buf mov ax, ds