CMU CS 15410 - Lecture (12 pages)

Previewing pages 1, 2, 3, 4 of 12 page document View the full content.
View Full Document

Lecture



Previewing pages 1, 2, 3, 4 of actual document.

View the full content.
View Full Document
View Full Document

Lecture

132 views

Problems/Exams


Pages:
12
School:
Carnegie Mellon University
Course:
Cs 15410 - Operating System Design and Implementation
Operating System Design and Implementation Documents

Unformatted text preview:

15 410 Don t make me stop the car define Sep 13 2004 Dave Eckhardt Bruce Maggs 1 L06b define 15 410 F 04 Outline What s wrong with this picture 1 15 410 F 04 Example 1 int scanbuf 64 1 int getchar void if bufindex 64 bufindex 0 15 410 F 04 Example 1 Change Requirement From Dave Eckhardt Subject keyboard buffer size Keyboard buffers must handle somebody placing a cat on the keyboard the 101 key keyboard 1 15 410 F 04 Option 1 int scanbuf 256 1 int getchar void if bufindex 64 bufindex 0 15 410 F 04 Option 2 int scanbuf 64 1 int getchar void if bufindex 256 bufindex 0 15 410 F 04 Option 3 Try This At Home define KSB SIZE 256 int scanbuf KSB SIZE 1 int getchar void if bufindex KSB SIZE bufindex 0 15 410 F 04 Example 2 int scanbuf 64 1 int getchar void if bufindex 63 bufindex 0 15 410 F 04 Example 2 Truly Pernicious How to fix half of the problem grep 64 c Wrong two ways 1 Won t find 63 Will find random unrelated 64 s 15 410 F 04 Example 3 define CENTER X 49 define CENTER Y 12 set cursor pos CENTER Y CENTER X 1 15 410 F 04 Example 3 Change Requirement From Dave Eckhardt Subject new screen size We have updated the VGA hardware initialization sequence The new screen size will be define CONSOLE WIDTH 120 define CONSOLE HEIGHT 30 1 15 410 F 04 Example 4 p regsave 18 0x402 Don t make me stop the car 1 15 410 F 04



View Full Document

Access the best Study Guides, Lecture Notes and Practice Exams

Loading Unlocking...
Login

Join to view Lecture and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?