flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
CandyMan 30 Jun 2014, 21:10
Anybody have example in Pascal or assembly how to implement smooth scrolling panning in text mode?
Thanks _________________ smaller is better |
|||
![]() |
|
revolution 01 Jul 2014, 08:09
I remember the VGA controller supporting pixel based vertical scrolling by setting the start line for the font buffer reader. Some programs would use that to make a smooth text scroll but unless it was well synchronised with the vertical retrace it could look a but jumpy.
|
|||
![]() |
|
freecrac 01 Jul 2014, 13:58
Hello mates. For the textmode(3) it is possible to use Port 3D4h for a smooth scrolling.
Snippit for 80x50 with 8x8 ASCII chars: Code: OUTPUT: xor ah, ah inc bp ; incease line number cmp bp, [ZANZ] ; last line? ja BACK ;----------------------------------- PANNING: mov al, 8 mov dx, 3D4h out dx, ax ; Smooth-Scrolling ;---------------------------- inc ah ; ah * 2 for 16x8 ASCII chars mov dx, 3DAh RASTER0: in al, dx test al, 8 jnz RASTER0 RASTER1: in al, dx test al, 8 jz RASTER1 cmp ah, 8 jnz PANNING ;----------------------------------- mov ax, 8 mov dx, 3D4h xor di, di mov cx, 7A8h lds si, [DSEG] out dx, ax rep movsd ; copy screen content one line above .... DSEG DD 0B80000A0h ; [Offset/Segment] for scroll down This routine for downscrolling works fine for me, but in the other direction for upscrolling with using 8x8 chars i do not find the way for a flickerfree smooth scrolling, but with using 16x8 ASCII chars with 80x25 rows/columns it is also possible. Dirk |
|||
![]() |
|
CandyMan 01 Jul 2014, 16:25
Thanks boys!
|
|||
![]() |
|
CandyMan 10 Jul 2014, 20:40
something like that http://speedy.sh/NkaRB/HM.7Z are searching for the source code as it.
_________________ smaller is better |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.