mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 13:30:42 +02:00
- rm the unnecessary jnz instruction before the rep stosb in the i8086-msdos startup code, because the rep prefix checks for cx=0 and skips the stosb instruction anyway
git-svn-id: trunk@25638 -
This commit is contained in:
parent
6c0581da49
commit
8f8bd8b12d
@ -48,11 +48,9 @@
|
|||||||
mov di, _edata wrt dgroup
|
mov di, _edata wrt dgroup
|
||||||
mov cx, _end wrt dgroup
|
mov cx, _end wrt dgroup
|
||||||
sub cx, di
|
sub cx, di
|
||||||
jz no_bss
|
|
||||||
xor al, al
|
xor al, al
|
||||||
cld
|
cld
|
||||||
rep stosb
|
rep stosb
|
||||||
no_bss:
|
|
||||||
|
|
||||||
; save the Program Segment Prefix
|
; save the Program Segment Prefix
|
||||||
push ds
|
push ds
|
||||||
|
Loading…
Reference in New Issue
Block a user