Lines Matching refs:BIOSMEM_SEG
452 mov ax, # BIOSMEM_SEG
861 video_ctl=read_byte(BIOSMEM_SEG,BIOSMEM_VIDEO_CTL);
864 vga_switches=read_byte(BIOSMEM_SEG,BIOSMEM_SWITCHES);
867 modeset_ctl=read_byte(BIOSMEM_SEG,BIOSMEM_MODESET_CTL);
981 write_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_MODE,mode);
982 write_word(BIOSMEM_SEG,BIOSMEM_NB_COLS,twidth);
983 write_word(BIOSMEM_SEG,BIOSMEM_PAGE_SIZE,*(Bit16u *)&video_param_table[vpti].slength_l);
984 write_word(BIOSMEM_SEG,BIOSMEM_CRTC_ADDRESS,crtc_addr);
985 write_byte(BIOSMEM_SEG,BIOSMEM_NB_ROWS,theightm1);
986 write_word(BIOSMEM_SEG,BIOSMEM_CHAR_HEIGHT,cheight);
987 write_byte(BIOSMEM_SEG,BIOSMEM_VIDEO_CTL,(0x60|noclearmem));
988 write_byte(BIOSMEM_SEG,BIOSMEM_SWITCHES,0xF9);
989 write_byte(BIOSMEM_SEG,BIOSMEM_MODESET_CTL,read_byte(BIOSMEM_SEG,BIOSMEM_MODESET_CTL)&0x7f);
992 write_byte(BIOSMEM_SEG,BIOSMEM_DCC_INDEX,0x08); // 8 is VGA should be ok for now
993 write_word(BIOSMEM_SEG,BIOSMEM_VS_POINTER, video_save_pointer_table);
994 write_word(BIOSMEM_SEG,BIOSMEM_VS_POINTER+2, 0xc000);
997 write_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_MSR,0x00); // Unavailable on vanilla vga, but...
998 write_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_PAL,0x00); // Unavailable on vanilla vga, but...
1061 write_word(BIOSMEM_SEG,BIOSMEM_CURSOR_TYPE,curs);
1063 modeset_ctl=read_byte(BIOSMEM_SEG,BIOSMEM_MODESET_CTL);
1064 cheight = read_word(BIOSMEM_SEG,BIOSMEM_CHAR_HEIGHT);
1079 crtc_addr=read_word(BIOSMEM_SEG,BIOSMEM_CRTC_ADDRESS);
1097 write_word(BIOSMEM_SEG, BIOSMEM_CURSOR_POS+2*page, cursor);
1100 current=read_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_PAGE);
1104 nbcols=read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
1105 nbrows=read_byte(BIOSMEM_SEG,BIOSMEM_NB_ROWS)+1;
1113 crtc_addr=read_word(BIOSMEM_SEG,BIOSMEM_CRTC_ADDRESS);
1133 write_word(ss,shape,read_word(BIOSMEM_SEG,BIOSMEM_CURSOR_TYPE));
1134 write_word(ss,pos,read_word(BIOSMEM_SEG,BIOSMEM_CURSOR_POS+page*2));
1148 mode=read_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_MODE);
1158 nbcols=read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
1159 nbrows=read_byte(BIOSMEM_SEG,BIOSMEM_NB_ROWS)+1;
1163 write_word(BIOSMEM_SEG,BIOSMEM_CURRENT_START,address);
1174 crtc_addr=read_word(BIOSMEM_SEG,BIOSMEM_CRTC_ADDRESS);
1181 write_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_PAGE,page);
1273 mode=read_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_MODE);
1278 nbrows=read_byte(BIOSMEM_SEG,BIOSMEM_NB_ROWS)+1;
1279 nbcols=read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
1283 page=read_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_PAGE);
1416 mode=read_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_MODE);
1425 nbrows=read_byte(BIOSMEM_SEG,BIOSMEM_NB_ROWS)+1;
1426 nbcols=read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
1617 mode=read_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_MODE);
1626 nbrows=read_byte(BIOSMEM_SEG,BIOSMEM_NB_ROWS)+1;
1627 nbcols=read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
1675 mode=read_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_MODE);
1684 nbrows=read_byte(BIOSMEM_SEG,BIOSMEM_NB_ROWS)+1;
1685 nbcols=read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
1814 mode=read_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_MODE);
1823 addr = CX/8+DX*read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
1876 addr=CX+DX*(read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8);
1894 mode=read_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_MODE);
1903 addr = CX/8+DX*read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
1927 addr=CX+DX*(read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8);
1950 page=read_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_PAGE);
1953 mode=read_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_MODE);
1962 nbrows=read_byte(BIOSMEM_SEG,BIOSMEM_NB_ROWS)+1;
1963 nbcols=read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
2062 mov ax, # BIOSMEM_SEG
2652 crtc_addr = read_word(BIOSMEM_SEG,BIOSMEM_CRTC_ADDRESS);
2665 write_word(BIOSMEM_SEG,BIOSMEM_CHAR_HEIGHT, lines);
2672 write_byte(BIOSMEM_SEG,BIOSMEM_NB_ROWS, rows-1);
2673 cols = read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
2674 write_word(BIOSMEM_SEG,BIOSMEM_PAGE_SIZE, rows * cols * 2);
2843 write_word(ss,CX,(Bit16u)read_byte(BIOSMEM_SEG,BIOSMEM_CHAR_HEIGHT));
2846 write_word(ss,DX,(Bit16u)read_byte(BIOSMEM_SEG,BIOSMEM_NB_ROWS));
2854 mov ax, # BIOSMEM_SEG
2890 mov ax, # BIOSMEM_SEG
2965 mov ax, # BIOSMEM_SEG
3006 mov ax, # BIOSMEM_SEG
3027 mov ax, # BIOSMEM_SEG
3102 mov ax, # BIOSMEM_SEG
3116 mov ax, # BIOSMEM_SEG
3152 memcpyb(ES,DI+0x04,BIOSMEM_SEG,0x49,30);
3153 memcpyb(ES,DI+0x22,BIOSMEM_SEG,0x84,3);
3155 write_byte(ES,DI+0x25,read_byte(BIOSMEM_SEG,BIOSMEM_DCC_INDEX));
3200 crtc_addr = read_word(BIOSMEM_SEG, BIOSMEM_CRTC_ADDRESS);
3243 write_byte(ES, BX, read_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_MODE)); BX++;
3244 write_word(ES, BX, read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS)); BX += 2;
3245 write_word(ES, BX, read_word(BIOSMEM_SEG,BIOSMEM_PAGE_SIZE)); BX += 2;
3246 write_word(ES, BX, read_word(BIOSMEM_SEG,BIOSMEM_CRTC_ADDRESS)); BX += 2;
3247 write_byte(ES, BX, read_byte(BIOSMEM_SEG,BIOSMEM_NB_ROWS)); BX++;
3248 write_word(ES, BX, read_word(BIOSMEM_SEG,BIOSMEM_CHAR_HEIGHT)); BX += 2;
3249 write_byte(ES, BX, read_byte(BIOSMEM_SEG,BIOSMEM_VIDEO_CTL)); BX++;
3250 write_byte(ES, BX, read_byte(BIOSMEM_SEG,BIOSMEM_SWITCHES)); BX++;
3251 write_byte(ES, BX, read_byte(BIOSMEM_SEG,BIOSMEM_MODESET_CTL)); BX++;
3252 write_word(ES, BX, read_word(BIOSMEM_SEG,BIOSMEM_CURSOR_TYPE)); BX += 2;
3254 write_word(ES, BX, read_word(BIOSMEM_SEG, BIOSMEM_CURSOR_POS+2*i));
3257 write_word(ES, BX, read_word(BIOSMEM_SEG,BIOSMEM_CURRENT_START)); BX += 2;
3258 write_byte(ES, BX, read_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_PAGE)); BX++;
3344 write_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_MODE, read_byte(ES, BX)); BX++;
3345 write_word(BIOSMEM_SEG,BIOSMEM_NB_COLS, read_word(ES, BX)); BX += 2;
3346 write_word(BIOSMEM_SEG,BIOSMEM_PAGE_SIZE, read_word(ES, BX)); BX += 2;
3347 write_word(BIOSMEM_SEG,BIOSMEM_CRTC_ADDRESS, read_word(ES, BX)); BX += 2;
3348 write_byte(BIOSMEM_SEG,BIOSMEM_NB_ROWS, read_byte(ES, BX)); BX++;
3349 write_word(BIOSMEM_SEG,BIOSMEM_CHAR_HEIGHT, read_word(ES, BX)); BX += 2;
3350 write_byte(BIOSMEM_SEG,BIOSMEM_VIDEO_CTL, read_byte(ES, BX)); BX++;
3351 write_byte(BIOSMEM_SEG,BIOSMEM_SWITCHES, read_byte(ES, BX)); BX++;
3352 write_byte(BIOSMEM_SEG,BIOSMEM_MODESET_CTL, read_byte(ES, BX)); BX++;
3353 write_word(BIOSMEM_SEG,BIOSMEM_CURSOR_TYPE, read_word(ES, BX)); BX += 2;
3355 write_word(BIOSMEM_SEG, BIOSMEM_CURSOR_POS+2*i, read_word(ES, BX));
3358 write_word(BIOSMEM_SEG,BIOSMEM_CURRENT_START, read_word(ES, BX)); BX += 2;
3359 write_byte(BIOSMEM_SEG,BIOSMEM_CURRENT_PAGE, read_byte(ES, BX)); BX++;