Home | History | Annotate | Download | only in vgabios

Lines Matching full:nbcols

1091  Bit16u nbcols,nbrows,address,crtc_addr;
1104 nbcols=read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
1109 // Calculate the address knowing nbcols nbrows and page num
1110 address=SCREEN_IO_START(nbcols,nbrows,page)+xcurs+ycurs*nbcols;
1142 Bit16u nbcols,nbrows,address;
1158 nbcols=read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
1161 // Calculate the address knowing nbcols nbrows and page num
1162 address=SCREEN_MEM_START(nbcols,nbrows,page);
1166 address=SCREEN_IO_START(nbcols,nbrows,page);
1192 static void vgamem_copy_pl4(xstart,ysrc,ydest,cols,nbcols,cheight)
1193 Bit8u xstart;Bit8u ysrc;Bit8u ydest;Bit8u cols;Bit8u nbcols;Bit8u cheight;
1198 src=ysrc*cheight*nbcols+xstart;
1199 dest=ydest*cheight*nbcols+xstart;
1203 memcpyb(0xa000,dest+i*nbcols,0xa000,src+i*nbcols,cols);
1209 static void vgamem_fill_pl4(xstart,ystart,cols,nbcols,cheight,attr)
1210 Bit8u xstart;Bit8u ystart;Bit8u cols;Bit8u nbcols;Bit8u cheight;Bit8u attr;
1215 dest=ystart*cheight*nbcols+xstart;
1219 memsetb(0xa000,dest+i*nbcols,attr,cols);
1225 static void vgamem_copy_cga(xstart,ysrc,ydest,cols,nbcols,cheight)
1226 Bit8u xstart;Bit8u ysrc;Bit8u ydest;Bit8u cols;Bit8u nbcols;Bit8u cheight;
1231 src=((ysrc*cheight*nbcols)>>1)+xstart;
1232 dest=((ydest*cheight*nbcols)>>1)+xstart;
1236 memcpyb(0xb800,0x2000+dest+(i>>1)*nbcols,0xb800,0x2000+src+(i>>1)*nbcols,cols);
1238 memcpyb(0xb800,dest+(i>>1)*nbcols,0xb800,src+(i>>1)*nbcols,cols);
1243 static void vgamem_fill_cga(xstart,ystart,cols,nbcols,cheight,attr)
1244 Bit8u xstart;Bit8u ystart;Bit8u cols;Bit8u nbcols;Bit8u cheight;Bit8u attr;
1249 dest=((ystart*cheight*nbcols)>>1)+xstart;
1253 memsetb(0xb800,0x2000+dest+(i>>1)*nbcols,attr,cols);
1255 memsetb(0xb800,dest+(i>>1)*nbcols,attr,cols);
1266 Bit16u nbcols,nbrows,i;
1279 nbcols=read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
1286 if(clr>=nbcols)clr=nbcols-1;
1293 address=SCREEN_MEM_START(nbcols,nbrows,page);
1295 printf("Scroll, address %04x (%04x %04x %02x)\n",address,nbrows,nbcols,page);
1298 if(nblines==0&&rul==0&&cul==0&&rlr==nbrows-1&&clr==nbcols-1)
1300 memsetw(vga_modes[line].sstart,address,(Bit16u)attr*0x100+' ',nbrows*nbcols);
1308 memsetw(vga_modes[line].sstart,address+(i*nbcols+cul)*2,(Bit16u)attr*0x100+' ',cols);
1310 memcpyw(vga_modes[line].sstart,address+(i*nbcols+cul)*2,vga_modes[line].sstart,((i+nblines)*nbcols+cul)*2,cols);
1317 memsetw(vga_modes[line].sstart,address+(i*nbcols+cul)*2,(Bit16u)attr*0x100+' ',cols);
1319 memcpyw(vga_modes[line].sstart,address+(i*nbcols+cul)*2,vga_modes[line].sstart,((i-nblines)*nbcols+cul)*2,cols);
1333 if(nblines==0&&rul==0&&cul==0&&rlr==nbrows-1&&clr==nbcols-1)
1336 memsetb(vga_modes[line].sstart,0,attr,nbrows*nbcols*cheight);
1345 vgamem_fill_pl4(cul,i,cols,nbcols,cheight,attr);
1347 vgamem_copy_pl4(cul,i+nblines,i,cols,nbcols,cheight);
1354 vgamem_fill_pl4(cul,i,cols,nbcols,cheight,attr);
1356 vgamem_copy_pl4(cul,i,i-nblines,cols,nbcols,cheight);
1364 if(nblines==0&&rul==0&&cul==0&&rlr==nbrows-1&&clr==nbcols-1)
1366 memsetb(vga_modes[line].sstart,0,attr,nbrows*nbcols*cheight*bpp);
1374 nbcols<<=1;
1381 nbcols,cheight,attr);
1383 vgamem_copy_cga(cul,i+nblines,i,cols,nbcols,cheight);
1390 vgamem_fill_cga(cul,i,cols,nbcols,cheight,attr);
1392 vgamem_copy_cga(cul,i,i-nblines,cols,nbcols,cheight);
1412 Bit16u nbcols,nbrows,address;
1426 nbcols=read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
1431 address=SCREEN_MEM_START(nbcols,nbrows,page)+(xcurs+ycurs*nbcols)*2;
1445 static void write_gfx_char_pl4(car,attr,xcurs,ycurs,nbcols,cheight)
1446 Bit8u car;Bit8u attr;Bit8u xcurs;Bit8u ycurs;Bit8u nbcols;Bit8u cheight;
1462 addr=xcurs+ycurs*cheight*nbcols;
1476 dest=addr+i*nbcols;
1504 static void write_gfx_char_cga(car,attr,xcurs,ycurs,nbcols,bpp)
1505 Bit8u car;Bit8u attr;Bit8u xcurs;Bit8u ycurs;Bit8u nbcols;Bit8u bpp;
1581 static void write_gfx_char_lin(car,attr,xcurs,ycurs,nbcols)
1582 Bit8u car;Bit8u attr;Bit8u xcurs;Bit8u ycurs;Bit8u nbcols;
1589 addr=xcurs*8+ycurs*nbcols*64;
1593 dest=addr+i*nbcols*8;
1613 Bit16u nbcols,nbrows,address;
1627 nbcols=read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
1632 address=SCREEN_MEM_START(nbcols,nbrows,page)+(xcurs+ycurs*nbcols)*2;
1642 while((count-->0) && (xcurs<nbcols))
1648 write_gfx_char_pl4(car,attr,xcurs,ycurs,nbcols,cheight);
1651 write_gfx_char_cga(car,attr,xcurs,ycurs,nbcols,bpp);
1654 write_gfx_char_lin(car,attr,xcurs,ycurs,nbcols);
1671 Bit16u nbcols,nbrows,address;
1685 nbcols=read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
1690 address=SCREEN_MEM_START(nbcols,nbrows,page)+(xcurs+ycurs*nbcols)*2;
1702 while((count-->0) && (xcurs<nbcols))
1708 write_gfx_char_pl4(car,attr,xcurs,ycurs,nbcols,cheight);
1711 write_gfx_char_cga(car,attr,xcurs,ycurs,nbcols,bpp);
1714 write_gfx_char_lin(car,attr,xcurs,ycurs,nbcols);
1945 Bit16u nbcols,nbrows,address;
1963 nbcols=read_word(BIOSMEM_SEG,BIOSMEM_NB_COLS);
1997 address=SCREEN_MEM_START(nbcols,nbrows,page)+(xcurs+ycurs*nbcols)*2;
2014 write_gfx_char_pl4(car,attr,xcurs,ycurs,nbcols,cheight);
2017 write_gfx_char_cga(car,attr,xcurs,ycurs,nbcols,bpp);
2020 write_gfx_char_lin(car,attr,xcurs,ycurs,nbcols);
2032 if(xcurs==nbcols)
2042 address=SCREEN_MEM_START(nbcols,nbrows,page)+(xcurs+(ycurs-1)*nbcols)*2;
2044 biosfn_scroll(0x01,attr,0,0,nbrows-1,nbcols-1,page,SCROLL_UP);
2048 biosfn_scroll(0x01,0x00,0,0,nbrows-1,nbcols-1,page,SCROLL_UP);