Compare commits
No commits in common. "cb558132d1ace1cb1e0db2eb53ab3c3c50289121" and "9b608a621541cd19eb7cca4cfe1fcbb15956d9d6" have entirely different histories.
cb558132d1
...
9b608a6215
BIN
Part2/.DS_Store
vendored
BIN
Part2/.DS_Store
vendored
Binary file not shown.
@ -5,25 +5,4 @@ void dummy_test_entrypoint() {
|
||||
void _start() {
|
||||
char* video_memory = (char*) 0xb8000;
|
||||
*video_memory = 'X';
|
||||
unsigned char a;
|
||||
unsigned char b;
|
||||
a = 0;
|
||||
b = 0;
|
||||
for( int i = 1; i < 24; ++i) {
|
||||
for( int j = 0; j < 80; ++j) {
|
||||
*(video_memory + i*160 + j*2) = '.';
|
||||
}
|
||||
}
|
||||
|
||||
*video_memory = 'Z';
|
||||
for( int i = 10; i < 20; ++i) {
|
||||
for( int j = 50; j < 60; ++j) {
|
||||
*(video_memory + i*160 + j*2) = 'X';
|
||||
}
|
||||
}
|
||||
while( 1) {
|
||||
*(video_memory+0) = b;
|
||||
*(video_memory+1) = ++a;
|
||||
b = b + a/255;
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Reference in New Issue
Block a user