wok-6.x rev 19193
memtest: fix sysmove direction
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 06 12:49:31 2016 +0200 (2016-06-06) |
parents | 922ed71c2f6d |
children | ead2e76bcde5 |
files | memtest/stuff/bootloader.S |
line diff
1.1 --- a/memtest/stuff/bootloader.S Sun Jun 05 16:28:03 2016 +0200 1.2 +++ b/memtest/stuff/bootloader.S Mon Jun 06 12:49:31 2016 +0200 1.3 @@ -211,6 +211,8 @@ 1.4 pushw %es 1.5 popw %ss 1.6 movw %ds, %bx 1.7 + shrw $4, %si 1.8 + addw %si, %bx 1.9 subw %ax, %bx 1.10 jnc forward 1.11 addw %bp, %ax 1.12 @@ -222,12 +224,11 @@ 1.13 sbbw %dx, %dx // %dx = 0 : -1 1.14 cmc // C = 1 : 0 1.15 adcw %dx, %ax 1.16 + xorw %si, %si 1.17 xorw %di, %di 1.18 movb $8, %cl 1.19 - pushw %si 1.20 rep 1.21 movsw 1.22 - popw %si 1.23 decw %bp 1.24 jns forward 1.25 #ifndef NO_CURSOR_DEFINITION