VirtualBox

Opened 14 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)

boot16ex.img.gz (1.5 KB ) - added by Joao Trindade 14 years ago.
1) Image of 1.44M floppy with the failing behaviour
boot16ex.s (654 bytes ) - added by Joao Trindade 14 years ago.
2) Source code for the boot sector

Download all attachments as: .zip

Change History (5)

by Joao Trindade, 14 years ago

Attachment: boot16ex.img.gz added

1) Image of 1.44M floppy with the failing behaviour

by Joao Trindade, 14 years ago

Attachment: boot16ex.s added

2) Source code for the boot sector

comment:1 by Joao Trindade, 14 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 Frank Mehnert, 14 years ago

Summary: stosw fails with std in real modestosw 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.

comment:3 by Frank Mehnert, 14 years ago

Resolution: fixed
Status: newclosed

Fixed as of VBox 3.2.8.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use