lesson 4: hello, world
it will get tedious to print one character at a time to the screen, so we’ll create a function to print a zero-terminated string to the screen. this is just a simple loop that prints all the character in a string one at a time. 【程序编程相关:[shell] 微软测试题】 now is the time you’ve all been waiting for. finally we get to the classic “first” program. every decent programming book has a “hello, world” program, and now we know enough to make a “hello, world” operating system. if you have done some experimenting on your own and have already done this, then you may want to skip this lesson. we will create a function to print a string and use it to display our message. 【推荐阅读:fedora 中创建soft raid】 ; print a null-terminated string on the screen 【扩展信息:[shell] verbose方式执行】 ; --------------------------------------------- ; --------------------------------------------- putstr: lodsb ; al = [ds:si]... 下一页