SamyPesse / How-to-Make-a-Computer-Operating-System

How to Make a Computer Operating System in C++
https://samypesse.gitbook.io/how-to-create-an-operating-system
Apache License 2.0
21.35k stars 3.42k forks source link

putc() method problem #47

Open chuanjian666 opened 10 years ago

chuanjian666 commented 10 years ago

In putc() method, line 3

video = (unsigned char *) (real_screen+ 2 * x + 160 * y);

I think should be

video = (unsigned char *) (real_screen+ 2 * x + 160 * (y - 1));

amulya349 commented 10 years ago

I'm new to this repository. Can you tell me the problem is in which file ??

ghost commented 10 years ago

If you enter the line above in the search bar, you'll notice that it appears on line 107 in io.cc

dsfa