早教吧 育儿知识 作业答案 考试题库 百科 知识分享

#include#include#include#include#include#include#include#includeintCOLS=640,ROWS=480;voidselectpage(registercharpage){unionREGSr;r.x.ax=0x4f05;r.x.bx=0;r.x.dx=page;int86(0x10,&r,&r);}unsignedcharsetSVGAmode(intvmode){unionREGSr

题目详情
#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
▼优质解答
答案和解析
现在问题是出现在纵列,你可以把 for(j=0;j
看了 #include#inclu...的网友还看了以下: