,


- (Cursor Location Register - CLR_h, high byte) ( 0Eh) (Cursor Location Register - CLR_l, low byte) ( 0Fh) (. 4.5). , .

PICTURE._FIG_37.PCX;6";4.308";PCX

4.5

CURSLOC, 4.6 , 5 10. ( ) . 0325h (80 * 10 + 5 = 805 = 0325h).

4.6. CURSLOC.C

//

#include <stdio.h>

#include "sysp.h"

#include "sysgraph.h"

//

void main(void);

// WriteReg ReadReg

// DESIGN.C. 4.5

void WriteReg(unsigned reg, unsigned char data);

unsigned char ReadReg(unsigned reg);

//

void main(void) {

int crt_port;

unsigned char h_pos, l_pos;

BIOS_VAR _far *bios_var_ptr;

_asm {

// 3

mov ah,0

mov al,3

int 10h

// 0

mov ah,5

mov al,0

int 10h

// (20,10)

mov ah,2

mov dh,10 //

mov dl,5 // 10, 5:

// CLR = 80 * 10 + 5 = 805 = 325h

xor bh,bh

int 10h

}