📄 function.cpp
字号:
#include"stdio.h"
#include"conio.h"
#include"process.h"
char MBR[512]={
0x33,0xc0,0x8e,0xd0,0xbc,0x00,0x7c,0xfb,0x50,0x07,0x50,0x1f,0xfc,0xbe,0x1b,0x7c,
0xbf,0x1b,0x06,0x50,0x57,0xb9,0xe5,0x01,0xf3,0xa4,0xcb,0xbd,0xbe,0x07,0xb1,0x04,
0x38,0x6e,0x00,0x7c,0x09,0x75,0x13,0x83,0xc5,0x10,0xe2,0xf4,0xcd,0x18,0x8b,0xf5,
0x83,0xc6,0x10,0x49,0x74,0x19,0x38,0x2c,0x74,0xf6,0xa0,0xb5,0x07,0xb4,0x07,0x8b,
0xf0,0xac,0x3c,0x00,0x74,0xfc,0xbb,0x07,0x00,0xb4,0x0e,0xcd,0x10,0xeb,0xf2,0x88,
0x4e,0x10,0xe8,0x46,0x00,0x73,0x2a,0xfe,0x46,0x10,0x80,0x7e,0x04,0x0b,0x74,0x0b,
0x80,0x7e,0x04,0x0c,0x74,0x05,0xa0,0xb6,0x07,0x75,0xd2,0x80,0x46,0x02,0x06,0x83,
0x46,0x08,0x06,0x83,0x56,0x0a,0x00,0xe8,0x21,0x00,0x73,0x05,0xa0,0xb6,0x07,0xeb,
0xbc,0x81,0x3e,0xfe,0x7d,0x55,0xaa,0x74,0x0b,0x80,0x7e,0x10,0x00,0x74,0xc8,0xa0,
0xb7,0x07,0xeb,0xa9,0x8b,0xfc,0x1e,0x57,0x8b,0xf5,0xcb,0xbf,0x05,0x00,0x8a,0x56,
0x00,0xb4,0x08,0xcd,0x13,0x72,0x23,0x8a,0xc1,0x24,0x3f,0x98,0x8a,0xde,0x8a,0xfc,
0x43,0xf7,0xe3,0x8b,0xd1,0x86,0xd6,0xb1,0x06,0xd2,0xee,0x42,0xf7,0xe2,0x39,0x56,
0x0a,0x77,0x23,0x72,0x05,0x39,0x46,0x08,0x73,0x1c,0xb8,0x01,0x02,0xbb,0x00,0x7c,
0x8b,0x4e,0x02,0x8b,0x56,0x00,0xcd,0x13,0x73,0x51,0x4f,0x74,0x4e,0x32,0xe4,0x8a,
0x56,0x00,0xcd,0x13,0xeb,0xe4,0x8a,0x56,0x00,0x60,0xbb,0xaa,0x55,0xb4,0x41,0xcd,
0x13,0x72,0x36,0x81,0xfb,0x55,0xaa,0x75,0x30,0xf6,0xc1,0x01,0x74,0x2b,0x61,0x60,
0x6a,0x00,0x6a,0x00,0xff,0x76,0x0a,0xff,0x76,0x08,0x6a,0x00,0x68,0x00,0x7c,0x6a,
0x01,0x6a,0x10,0xb4,0x42,0x8b,0xf4,0xcd,0x13,0x61,0x61,0x73,0x0e,0x4f,0x74,0x0b,
0x32,0xe4,0x8a,0x56,0x00,0xcd,0x13,0xeb,0xd6,0x61,0xf9,0xc3,0x49,0x6e,0x76,0x61,
0x6c,0x69,0x64,0x20,0x70,0x61,0x72,0x74,0x69,0x74,0x69,0x6f,0x6e,0x20,0x74,0x61,
0x62,0x6c,0x65,0x00,0x45,0x72,0x72,0x6f,0x72,0x20,0x6c,0x6f,0x61,0x64,0x69,0x6e,
0x67,0x20,0x6f,0x70,0x65,0x72,0x61,0x74,0x69,0x6e,0x67,0x20,0x73,0x79,0x73,0x74,
0x65,0x6d,0x00,0x4d,0x69,0x73,0x73,0x69,0x6e,0x67,0x20,0x6f,0x70,0x65,0x72,0x61,
0x74,0x69,0x6e,0x67,0x20,0x73,0x79,0x73,0x74,0x65,0x6d,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x2c,0x44,0x63,0xf9,0xa9,0xf9,0xa9,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x55,0xAA
};
void srgui()
{
window(1,1,80,25);
textbackground(0);
textcolor(8);
clrscr();
puts(" ************************************************************************");
puts(" ************************************************************************");
puts(" *** 88 88 88 8 88 88 ***");
puts(" *** 88 88 88 8 88 ***");
puts(" *** 88 8 88 88 ***");
puts(" *** 88 88 8 88 ***");
puts(" *** 88 88 88 88 88 88 ***");
puts(" *** 88 8 88 8 88 88 ***");
puts(" *** 88 88 88 88 ***");
puts(" *** 88 88 88 ***");
puts(" *** 8 88 88 88 ***");
puts(" *** 88 88 88 88 ***");
puts(" *** 88 88 88 88 ***");
puts(" *** ***");
puts(" *** ***");
puts(" *** ***");
puts(" *** ***");
puts(" *** ***");
puts(" *** ***");
puts(" *** ***");
puts(" *** Copyright(C) Soaking Rain ***");
puts(" *** All rights reserved ***");
puts(" *** Ver:1.0.0 Beta ***");
puts(" ************************************************************************");
printf(" ************************************************************************");
}
void put_xy(int x, int y,char *p) /*将光标移动到指定位置*/
{
union REGS regs;
regs.h.ah = 2;
regs.h.dl = x;
regs.h.dh = y;
regs.h.bh = 0;
int86( 0x10, ®s, ®s );
puts(p);
}
void goto_xy(int x,int y)
{
union REGS regs;
regs.h.ah=2;
regs.h.dl=x;
regs.h.dh=y;
regs.h.bh=0;
int86(0x10,®s,®s);
}
char get_xy(int x,int y)
{
char key;
union REGS regs;
regs.h.ah=2;
regs.h.dl=x;
regs.h.dh=y;
regs.h.bh=0;
int86(0x10,®s,®s);
key=getchar();
return key;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -