Skip to contentSkip to conversation

qemu fails to scroll screen on ^Vidmem output

Qemu-devel rjasmin 1 participant 9 messages Oct 11, 2013 – Dec 28, 2017

lore
Share & tools
lore

rjasmin

author
#0 lore raw

Public bug reported:

Pascal uses ^Vidmem for B800 console output. The terminal does not oblige the Pascal OS code to scroll the output. Virtualbox emulation works, so this must be a qemu bug. Using QEMU in KVM mode as Ubuntu LTS.

Source line to trip bug(in theory pushes VideoMem up one line):

procedure Scroll;
//this is whats causing crashes. FIXME:Virtualbox not affected.QEMU BUG? begin

  if scrolldisabled then exit;
      if (CursorPosY >= 24) then begin  //in case called before end of screen
    blank:= $20 or (TextAttr shl 8);
    Move((VidMem+(2*80))^,VidMem^,24*(2*80));
    // Empty last line
    FillWord((VidMem+(24*2*80))^,80,Blank);
    CursorPosX:=1;
    CursorPosY:=23;
    update_cursor;

end;
end;

** Affects: qemu
Importance: Undecided
Status: New

** Affects: kvm (Ubuntu)
Importance: Undecided
Status: New

** Also affects: kvm (Ubuntu)
Importance: Undecided
Status: New

Signature · 37 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1239008

Title:
  qemu fails to scroll screen on ^Vidmem output

Status in QEMU:
  New
Status in “kvm” package in Ubuntu:
  New

Bug description:
  Pascal uses ^Vidmem for B800 console output. The terminal does not
  oblige the Pascal OS code to scroll the output. Virtualbox emulation
  works, so this must be a qemu bug. Using QEMU in KVM mode as Ubuntu
  LTS.

  Source line to trip bug(in theory pushes VideoMem up one line):

  procedure Scroll;
  //this is whats causing crashes. FIXME:Virtualbox not affected.QEMU BUG?
  begin
    if scrolldisabled then exit;
        if (CursorPosY >= 24) then begin  //in case called before end of screen
      blank:= $20 or (TextAttr shl 8);
      Move((VidMem+(2*80))^,VidMem^,24*(2*80));
      // Empty last line
      FillWord((VidMem+(24*2*80))^,80,Blank);
      CursorPosX:=1;
      CursorPosY:=23;
      update_cursor;
    end;
  end;

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1239008/+subscriptions
#1 lore raw

Thanks for reporting this bug. Is there any other reproducer you can give us?

** No longer affects: kvm (Ubuntu)

** Also affects: qemu (Ubuntu)
Importance: Undecided
Status: New

** Changed in: qemu (Ubuntu)
Status: New => Incomplete

** Changed in: qemu
Status: New => Incomplete

Signature · 37 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1239008

Title:
  qemu fails to scroll screen on ^Vidmem output

Status in QEMU:
  Incomplete
Status in “qemu” package in Ubuntu:
  Incomplete

Bug description:
  Pascal uses ^Vidmem for B800 console output. The terminal does not
  oblige the Pascal OS code to scroll the output. Virtualbox emulation
  works, so this must be a qemu bug. Using QEMU in KVM mode as Ubuntu
  LTS.

  Source line to trip bug(in theory pushes VideoMem up one line):

  procedure Scroll;
  //this is whats causing crashes. FIXME:Virtualbox not affected.QEMU BUG?
  begin
    if scrolldisabled then exit;
        if (CursorPosY >= 24) then begin  //in case called before end of screen
      blank:= $20 or (TextAttr shl 8);
      Move((VidMem+(2*80))^,VidMem^,24*(2*80));
      // Empty last line
      FillWord((VidMem+(24*2*80))^,80,Blank);
      CursorPosX:=1;
      CursorPosY:=23;
      update_cursor;
    end;
  end;

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1239008/+subscriptions
author
#2 lore raw

I dont know how to write it myself, but the original kernel scrolling code is in C.
Might try OSDev forums. Not that I know of.

Quoted 15 lines · Serge Hallyn

Thanks for reporting this bug. Is there any other reproducer you can give us?

** No longer affects: kvm (Ubuntu)

** Also affects: qemu (Ubuntu)
Importance: Undecided
Status: New

** Changed in: qemu (Ubuntu)
Status: New => Incomplete

** Changed in: qemu
Status: New => Incomplete

Signature · 37 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1239008

Title:
  qemu fails to scroll screen on ^Vidmem output

Status in QEMU:
  Incomplete
Status in “qemu” package in Ubuntu:
  Incomplete

Bug description:
  Pascal uses ^Vidmem for B800 console output. The terminal does not
  oblige the Pascal OS code to scroll the output. Virtualbox emulation
  works, so this must be a qemu bug. Using QEMU in KVM mode as Ubuntu
  LTS.

  Source line to trip bug(in theory pushes VideoMem up one line):

  procedure Scroll;
  //this is whats causing crashes. FIXME:Virtualbox not affected.QEMU BUG?
  begin
    if scrolldisabled then exit;
        if (CursorPosY >= 24) then begin  //in case called before end of screen
      blank:= $20 or (TextAttr shl 8);
      Move((VidMem+(2*80))^,VidMem^,24*(2*80));
      // Empty last line
      FillWord((VidMem+(24*2*80))^,80,Blank);
      CursorPosX:=1;
      CursorPosY:=23;
      update_cursor;
    end;
  end;

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1239008/+subscriptions
#3 lore raw
In reply to rjasmin

** Changed in: qemu (Ubuntu)
Status: Incomplete => New

** Changed in: qemu
Status: Incomplete => New

** Changed in: qemu (Ubuntu)
Importance: Undecided => Low

Signature · 37 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1239008

Title:
  qemu fails to scroll screen on ^Vidmem output

Status in QEMU:
  New
Status in “qemu” package in Ubuntu:
  New

Bug description:
  Pascal uses ^Vidmem for B800 console output. The terminal does not
  oblige the Pascal OS code to scroll the output. Virtualbox emulation
  works, so this must be a qemu bug. Using QEMU in KVM mode as Ubuntu
  LTS.

  Source line to trip bug(in theory pushes VideoMem up one line):

  procedure Scroll;
  //this is whats causing crashes. FIXME:Virtualbox not affected.QEMU BUG?
  begin
    if scrolldisabled then exit;
        if (CursorPosY >= 24) then begin  //in case called before end of screen
      blank:= $20 or (TextAttr shl 8);
      Move((VidMem+(2*80))^,VidMem^,24*(2*80));
      // Empty last line
      FillWord((VidMem+(24*2*80))^,80,Blank);
      CursorPosX:=1;
      CursorPosY:=23;
      update_cursor;
    end;
  end;

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1239008/+subscriptions
#4 lore raw
In reply to rjasmin

Can you test with the latest version to see if this still affects you?
If this still is a problem, any information on how to obtain the Guest OS in question that would also be helpful.

** Changed in: qemu (Ubuntu)
Status: New => Incomplete

Signature · 37 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1239008

Title:
  qemu fails to scroll screen on ^Vidmem output

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Incomplete

Bug description:
  Pascal uses ^Vidmem for B800 console output. The terminal does not
  oblige the Pascal OS code to scroll the output. Virtualbox emulation
  works, so this must be a qemu bug. Using QEMU in KVM mode as Ubuntu
  LTS.

  Source line to trip bug(in theory pushes VideoMem up one line):

  procedure Scroll;
  //this is whats causing crashes. FIXME:Virtualbox not affected.QEMU BUG?
  begin
    if scrolldisabled then exit;
        if (CursorPosY >= 24) then begin  //in case called before end of screen
      blank:= $20 or (TextAttr shl 8);
      Move((VidMem+(2*80))^,VidMem^,24*(2*80));
      // Empty last line
      FillWord((VidMem+(24*2*80))^,80,Blank);
      CursorPosX:=1;
      CursorPosY:=23;
      update_cursor;
    end;
  end;

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1239008/+subscriptions
author
#5 lore raw

It is hosted on google code, a dying service. FreePascal(coffee) OS.A more basic version is posted there.I assume it works as the version that I last built did not for some reason. Sources should be there via subversion checkout.Thats what I tested with.
https://code.google.com/p/coffee-os/

It uses a basic VRAM scroll buffer and writes to it.

Examples are found elsewhere in C. (OS Dev pages)
Im in the middle of a fedup upgrade at the moment, but will see what I can do.

Quoted 6 lines · Chris J Arges

Can you test with the latest version to see if this still affects you?
If this still is a problem, any information on how to obtain the Guest OS in question that would also be helpful.

** Changed in: qemu (Ubuntu)
Status: New => Incomplete

Signature · 37 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1239008

Title:
  qemu fails to scroll screen on ^Vidmem output

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Incomplete

Bug description:
  Pascal uses ^Vidmem for B800 console output. The terminal does not
  oblige the Pascal OS code to scroll the output. Virtualbox emulation
  works, so this must be a qemu bug. Using QEMU in KVM mode as Ubuntu
  LTS.

  Source line to trip bug(in theory pushes VideoMem up one line):

  procedure Scroll;
  //this is whats causing crashes. FIXME:Virtualbox not affected.QEMU BUG?
  begin
    if scrolldisabled then exit;
        if (CursorPosY >= 24) then begin  //in case called before end of screen
      blank:= $20 or (TextAttr shl 8);
      Move((VidMem+(2*80))^,VidMem^,24*(2*80));
      // Empty last line
      FillWord((VidMem+(24*2*80))^,80,Blank);
      CursorPosX:=1;
      CursorPosY:=23;
      update_cursor;
    end;
  end;

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1239008/+subscriptions
#6 lore raw
In reply to rjasmin

Triaging old bug tickets... can you still reproduce this issue with the latest version of QEMU? Or could we close this ticket nowadays?

** Changed in: qemu
Status: New => Incomplete

Signature · 37 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1239008

Title:
  qemu fails to scroll screen on ^Vidmem output

Status in QEMU:
  Incomplete
Status in qemu package in Ubuntu:
  Incomplete

Bug description:
  Pascal uses ^Vidmem for B800 console output. The terminal does not
  oblige the Pascal OS code to scroll the output. Virtualbox emulation
  works, so this must be a qemu bug. Using QEMU in KVM mode as Ubuntu
  LTS.

  Source line to trip bug(in theory pushes VideoMem up one line):

  procedure Scroll;
  //this is whats causing crashes. FIXME:Virtualbox not affected.QEMU BUG?
  begin
    if scrolldisabled then exit;
        if (CursorPosY >= 24) then begin  //in case called before end of screen
      blank:= $20 or (TextAttr shl 8);
      Move((VidMem+(2*80))^,VidMem^,24*(2*80));
      // Empty last line
      FillWord((VidMem+(24*2*80))^,80,Blank);
      CursorPosX:=1;
      CursorPosY:=23;
      update_cursor;
    end;
  end;

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1239008/+subscriptions
#7 lore raw
In reply to rjasmin

[Expired for QEMU because there has been no activity for 60 days.]

** Changed in: qemu
Status: Incomplete => Expired

Signature · 37 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1239008

Title:
  qemu fails to scroll screen on ^Vidmem output

Status in QEMU:
  Expired
Status in qemu package in Ubuntu:
  Expired

Bug description:
  Pascal uses ^Vidmem for B800 console output. The terminal does not
  oblige the Pascal OS code to scroll the output. Virtualbox emulation
  works, so this must be a qemu bug. Using QEMU in KVM mode as Ubuntu
  LTS.

  Source line to trip bug(in theory pushes VideoMem up one line):

  procedure Scroll;
  //this is whats causing crashes. FIXME:Virtualbox not affected.QEMU BUG?
  begin
    if scrolldisabled then exit;
        if (CursorPosY >= 24) then begin  //in case called before end of screen
      blank:= $20 or (TextAttr shl 8);
      Move((VidMem+(2*80))^,VidMem^,24*(2*80));
      // Empty last line
      FillWord((VidMem+(24*2*80))^,80,Blank);
      CursorPosX:=1;
      CursorPosY:=23;
      update_cursor;
    end;
  end;

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1239008/+subscriptions
#8 lore raw
In reply to rjasmin

[Expired for qemu (Ubuntu) because there has been no activity for 60 days.]

** Changed in: qemu (Ubuntu)
Status: Incomplete => Expired

Signature · 37 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1239008

Title:
  qemu fails to scroll screen on ^Vidmem output

Status in QEMU:
  Expired
Status in qemu package in Ubuntu:
  Expired

Bug description:
  Pascal uses ^Vidmem for B800 console output. The terminal does not
  oblige the Pascal OS code to scroll the output. Virtualbox emulation
  works, so this must be a qemu bug. Using QEMU in KVM mode as Ubuntu
  LTS.

  Source line to trip bug(in theory pushes VideoMem up one line):

  procedure Scroll;
  //this is whats causing crashes. FIXME:Virtualbox not affected.QEMU BUG?
  begin
    if scrolldisabled then exit;
        if (CursorPosY >= 24) then begin  //in case called before end of screen
      blank:= $20 or (TextAttr shl 8);
      Move((VidMem+(2*80))^,VidMem^,24*(2*80));
      // Empty last line
      FillWord((VidMem+(24*2*80))^,80,Blank);
      CursorPosX:=1;
      CursorPosY:=23;
      update_cursor;
    end;
  end;

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1239008/+subscriptions