Top Banner
Memory Map, Programming Language, and Windows Dr. Harold D. Camp IT 212 002 15 February 2007
13

Memory Map, Programming Language, and Windows Dr. Harold D. Camp IT 212 002 15 February 2007.

Jan 02, 2016

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Memory Map, Programming Language, and Windows Dr. Harold D. Camp IT 212 002 15 February 2007.

Memory Map, Programming Language, and Windows

Dr. Harold D. Camp

IT 212 002

15 February 2007

Page 2: Memory Map, Programming Language, and Windows Dr. Harold D. Camp IT 212 002 15 February 2007.

PC Memory

• PC computer memory is divided into segments,• 64 kilobytes each (65,536 bytes, to be exact)• Segment register in microprocessor indicates

segment is to be accessed• Segment 0

• Contains memory pointers, device drivers, buffers, input/output ports, and other essential information required by the computer and its operating system

• Segment 0 contains 65,536 memory addresses• Figures on next pages show how different

portions of memory are allocated

Page 3: Memory Map, Programming Language, and Windows Dr. Harold D. Camp IT 212 002 15 February 2007.

PC Memory• Figure 1 displays the entire contents of the 64K memory block that makes up

Segment 0• Each pixel represents the contents of one memory location• Each horizontal row in the display represents one 256 byte page

Page 4: Memory Map, Programming Language, and Windows Dr. Harold D. Camp IT 212 002 15 February 2007.

PC Memory• The numerical values (in decimal) indicated by

the different colors are shown in Figure 2• Blue areas indicated contain lots of zeros

alternating with small numbers• Memory set aside that has not yet been put to

use• 8 colored blocks located between H4100 and

H8000 are probably associated with the 32 buffers that are indicated to be located there

• The areas with random color patterns relate to device drivers and hardware extensions, which are actually computer programs

• Areas of memory that are white are likely bits of unused memory that still contain the default hexadecimal value of FF (255 in decimal).

Page 5: Memory Map, Programming Language, and Windows Dr. Harold D. Camp IT 212 002 15 February 2007.

PC Memory• Figures 3 and 4

• Each colored line contains the mean value of one 256 byte page of memory

• Colored bands make it easier to see how different portions are allocated for different uses

• For instance, the blue-green and green blocks appear to be for data storage, since the buffers are located there

• Gray areas correspond to the areas where machine code is located

• The dotted lines in the gray zones that resulted from conversion from bitmap to gif format

Page 6: Memory Map, Programming Language, and Windows Dr. Harold D. Camp IT 212 002 15 February 2007.

PC Memory• Figures 3 and 4

• Each colored line contains the mean value of one 256 byte page of memory

• Colored bands make it easier to see how different portions are allocated for different uses

• For instance, the blue-green and green blocks appear to be for data storage, since the buffers are located there

• Gray areas correspond to the areas where machine code is located

• The dotted lines in the gray zones that resulted from conversion from bitmap to gif format

Page 7: Memory Map, Programming Language, and Windows Dr. Harold D. Camp IT 212 002 15 February 2007.

PC Memory

Page 8: Memory Map, Programming Language, and Windows Dr. Harold D. Camp IT 212 002 15 February 2007.

Memory Map

Page 9: Memory Map, Programming Language, and Windows Dr. Harold D. Camp IT 212 002 15 February 2007.

Machine Instructions/Programming Languages

• In Class Tutorial

• Be prepared to take notes

Page 10: Memory Map, Programming Language, and Windows Dr. Harold D. Camp IT 212 002 15 February 2007.

How do Operating Systems Work?

http://www.howstuffworks.com/operating-system.htm

Windows in particular

Page 11: Memory Map, Programming Language, and Windows Dr. Harold D. Camp IT 212 002 15 February 2007.

API (Application Programming Interface)

http://www.winprog.org/tutorial/apivsmfc.html

Page 12: Memory Map, Programming Language, and Windows Dr. Harold D. Camp IT 212 002 15 February 2007.

So, How does API work?

http://www.relisoft.com/win32/index.htm

Page 13: Memory Map, Programming Language, and Windows Dr. Harold D. Camp IT 212 002 15 February 2007.

Homework 4

• Two page report on Intel Pentium instruction set architecture• Instructions• Addresses• Memory Map