home *** CD-ROM | disk | FTP | other *** search
- { This is the inverse of Turbo's GotoXY procedure and it's even a tad
- faster. }
-
- procedure GotoRC (Row, Col: Byte);
- begin
- Inline(
- $B4/$02 { MOV AH,$02 ;Set AH = $02}
- /$30/$FF { XOR BH,BH ;Set BH=0 for page}
- /$8A/$76/<ROW { MOV DH,[BP+<Row] ;Move Row}
- /$FE/$CE { DEC DH ;Convert to 0-24 range}
- /$8A/$56/<COL { MOV DL,[BP+<Col] ;Move Col}
- /$FE/$CA { DEC DL ;Convert to 0-79 range}
- /$CD/$10 { INT $10 ;Set cursor position}
- );
- end;