mirror of
https://github.com/FDOS/kernel.git
synced 2025-04-08 17:15:17 +02:00
Correct shr/jcxz sequence.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@595 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
fc294ddce9
commit
542b0c1b89
@ -118,8 +118,8 @@ MEMCPY:
|
||||
domemcpy:
|
||||
; And do the built-in byte copy, but do a 16-bit transfer
|
||||
; whenever possible.
|
||||
shr cx,1
|
||||
jcxz memcpy_return
|
||||
shr cx,1
|
||||
rep movsw
|
||||
jnc memcpy_return
|
||||
movsb
|
||||
@ -183,8 +183,8 @@ FMEMSET:
|
||||
domemset:
|
||||
mov ah, al
|
||||
|
||||
shr cx,1
|
||||
jcxz pascal_return
|
||||
shr cx,1
|
||||
rep stosw
|
||||
jnc pascal_return
|
||||
stosb
|
||||
|
Loading…
x
Reference in New Issue
Block a user