- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
scrolldn.asm
资源名称:DOS系统的源代码.rar [点击查看]
上传用户:xiaoan1112
上传日期:2013-04-11
资源大小:19621k
文件大小:1k
源码类别:
操作系统开发
开发平台:
Visual C++
- ;
- ; Scroll a region of the screen down
- ;
- ; 09-Dec-1986 bw - Added DOS 5 support
- .xlist
- include ..hcmacros.inc
- ifdef OS2
- include ..hsubcalls.inc
- endif
- .list
- sBegin code
- assumes cs,code
- ;
- ;
- ; ScrollDn (x1, y1, x2, y2, n, a) scrolls a region down with attribute
- ;
- ifdef OS2
- cProc ScrollDn,<PUBLIC>
- parmW x1
- parmW y1
- parmW x2
- parmW y2
- parmW n
- parmW a
- else
- cProc ScrollDn,<PUBLIC>,<si,di>
- parmB x1
- parmB y1
- parmB x2
- parmB y2
- parmB n
- parmB a
- endif
- cBegin
- ifdef OS2
- push y1
- push x1
- push y2
- push x2
- push n
- mov ax,a ;OS/2 expects a Cell => ATTR | VALUE
- xchg ah,al
- mov al,' '
- mov a,ax
- push ss
- lea ax, a ; Assume SS == DS
- push ax
- xor ax, ax
- push ax ; VIO handle
- call VIOSCROLLDN
- else
- mov ah,7
- mov cl,x1
- mov ch,y1
- mov dl,x2
- mov dh,y2
- mov bh,a
- mov al,n
- push bp
- int 10h
- pop bp
- endif
- cEnd
- sEnd
- end