Opened 15 years ago
Closed 14 years ago
#7285 closed defect (fixed)
stosw fails with std in real mode => Fixed in SVN
Reported by: | Joao Trindade | Owned by: | |
---|---|---|---|
Component: | VMM | Version: | VirtualBox 3.2.6 |
Keywords: | stosw, std | Cc: | |
Guest type: | other | Host type: | Windows |
Description
At least in real mode, the string instruction "stosw" presents an incorrect behaviour when the direction flag is set.
I have observed this behaviour while testing boot code of a personal OS. The same code works fine in Bochs 2.3.7 for Linux, QEMU 0.12.2 for Windows and VMware Player 3.1.0 for Windows.
Attached: 1) Binary image of an 1.44M floppy with said behaviour in its boot sector 2) Source code for the boot sector
Attachments (2)
Change History (5)
by , 15 years ago
Attachment: | boot16ex.img.gz added |
---|
comment:1 by , 15 years ago
I forgot to say that the floppy should show the following string in the bottom of the screen:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
However, in VirtualBox (3.2.6) it shows only:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
This happens with or without the use of the prefix "rep". Similar tests with "movsw" don't seem to present this problem.
comment:2 by , 15 years ago
Summary: | stosw fails with std in real mode → stosw fails with std in real mode => Fixed in SVN |
---|
Thanks for this report and the testcase! Fixed in SVN, the fix will be part of the next maintenance release.
1) Image of 1.44M floppy with the failing behaviour