old-MTGos-old/user/test.cpp
Morten Delenk f71e781839 This is v0.01 release. I added the first syscall!
! Fixes in malloc. Now space-areas will no longer overlap.
2016-05-22 18:13:06 +00:00

17 lines
347 B
C++

#include <mtgos.hpp>
static unsigned short* videomem = (unsigned short*) 0xb8000;
void temp() {
int i;
for (i = 0; i < 3; i++) {
*videomem++ = (0x07 << 8) | ('0' + i);
}
}
void main()
{
char arr[4]="123";
ScreenOut out=ScreenOut(false);
int i;
out.setColor(BGColor::BLUE, FGColor::YELLOW);
for(;;)
out << arr;
}