#include "video.h" void putc(unsigned char c1) { __asm{ mov al,[c1] mov bh,0 mov bl,15 mov cx,1 mov ah,0eh int 10h } } void vprint(char*str){ while(*str) { putc(*str++); } } void putb(unsigned char c1) { int i; unsigned char t=c1; unsigned char y; for(i=0;i<2;i++){ y=t&0xf0; y>>=4; if(y>0x9){ y+='A'-10; }else{ y+='0'; } putc(y); t<<=4; } } void puti(unsigned int c1) { unsigned int t=c1; t>>=8; putb(t); t=c1; putb(t); }