#include#include#include#include#include#include#include#includeint COLS = 640,ROWS = 480;void selectpage(register char page){union REGS r;r.x.ax = 0x4f05;r.x.bx = 0;r.x.dx = page;int86(0x10,&r,&r);}unsigned char set_SVGA_mode(int vmode){union REGS r

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/01 07:44:45
#include#include#include#include#include#include#include#includeintCOLS=640,ROWS=480;voidselectpage(

#include#include#include#include#include#include#include#includeint COLS = 640,ROWS = 480;void selectpage(register char page){union REGS r;r.x.ax = 0x4f05;r.x.bx = 0;r.x.dx = page;int86(0x10,&r,&r);}unsigned char set_SVGA_mode(int vmode){union REGS r
#include
#include
#include
#include
#include
#include
#include
#include
int COLS = 640,ROWS = 480;
void selectpage(register char page){
union REGS r;
r.x.ax = 0x4f05;
r.x.bx = 0;
r.x.dx = page;
int86(0x10,&r,&r);
}
unsigned char set_SVGA_mode(int vmode){
union REGS r;
r.x.ax = 0x4f02;
r.x.bx = vmode;
int86(0x10,&r,&r);
return r.h.ah;
}
void Plot_Pixel_Fast(int x,int y,char color){
long position;
char page_new = 0,page_old = 0;
position = y*(long)COLS + x;
page_new = position/65536L;
if(page_new = page_old){
selectpage(page_new);
page_old = page_new;
}
pokeb(0xa000,position%65536L,color);
}
void main(){
int i=0,j=0;
set_SVGA_mode(0x101);
for(i=0;i

#include#include#include#include#include#include#include#includeint COLS = 640,ROWS = 480;void selectpage(register char page){union REGS r;r.x.ax = 0x4f05;r.x.bx = 0;r.x.dx = page;int86(0x10,&r,&r);}unsigned char set_SVGA_mode(int vmode){union REGS r
现在问题是出现在纵列,你可以把 for(j=0;j