1 ;-----------------------------------------------------------
\r
3 ; MXLN.ASM - Start line function
\r
4 ; Copyright (c) 1994 by Alessandro Scotti
\r
6 ;-----------------------------------------------------------
\r
13 MX_TEXT SEGMENT USE16 PARA PUBLIC 'CODE'
\r
14 ASSUME cs:MX_TEXT, ds:NOTHING, es:NOTHING
\r
16 EXTRN mx_BytesPerLine : WORD
\r
18 ;-----------------------------------------------------------
\r
20 ; Changes the video start address to the specified line.
\r
23 ; Line = new start line
\r
27 mxStartLine PROC FAR
\r
28 ARG Line:WORD = ARG_SIZE
\r
32 mov ax, [Line] ; Get video offset
\r
33 mul [mx_BytesPerLine]
\r
34 xchg ax, bx ; Copy it into BX
\r
42 ; Set starting address
\r
44 mov al, 0Ch ; Linear Starting Address high
\r
48 mov al, 0Dh ; Linear Starting Address low
\r