
#include <stdio.h>



main ()
{
    unsigned int i, j, k;
    crt_pos_cursor (7, 2, 0);
    printf ("aaaaaaa");
    crt_pos_cursor (7, 2, 0);
    i = crt_rd_char_att (2);
    crt_pos_cursor (7, 2, 2);
    j = crt_rd_char_att (2);
    crt_pos_cursor (7, 2, 0);
    crt_wr_char_att (2, 20, 'A', 7);
    k = crt_rd_char_att (2);
    printf ("%d %d %d", i, j, k );
    keybrd_getc ();
    crt_select_page (0);
}

get_page_reg ()
{
#asm
    push    bp
    push    si
    push    di
    push    es
    Mov     AL,128
    Mov     AH,5
    Int     10H
    Mov     AX,BX
    pop     es
    pop     di
    pop     si
    pop     bp
#endasm

}
