Mail Archives: djgpp/2000/06/14/22:25:04
> ;NASM-IDE ASM Assistant Assembler Project File
> [BITS 16] ;Set code generation to 16 bit mode
> [ORG 0x0100] ;Set code start address to 0100h
>
> [SEGMENT .text]
> mov ax, 0600h ;AH=06: function to scroll up, AL=0: blank window
> mov cx, 0 ;upper left corner (0,0)
> mov dx, 184Fh ;lower right corner (24,79)
> mov bh, 17h ;text-attribute (color)
> int 10h
> mov ah, 02h ;function to set cursor
> mov bh, 0 ;video page
> mov dx, 0 ;DH=row, DL=column
> int 10h
> ret
IMHO, this is *not* a good idea. This is ideal for real mode
programs. You can never be sure that the "INT 10" will be passed to
real mode. Some extenders support it, some don't. The best way to do
this is to use __dpmi_int.
Prashant
- Raw text -