CA296-ALP-1

CA296-ALP-1 - Recommended Texts Sargent Murray The personal computer from the inside out Murray Sargent III and Rich Rev ed Reading Mass

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Recommended Texts: Sargent, Murray. - The personal computer from the inside out / Murray Sargent III and Rich. - Rev. ed. - Reading, Mass : Addison-Wesley Pub. Co, 1986. - 0201069180 Waldron, John, 1964-. - Introduction to RISC assembly language programming / John Waldron. - Harlow, England : Addison-Wesley, 1999. - 0201398281 VERVIEW OF THE 80x86 FAMILY hy Assembly Language ? REPRESENTATION OF NUMBERS IN BINARY REGISTERS General Purpose Regs Index Registers Stack Register SEGMENTS AND OFFSETS THE STACK INTRODUCTION TO ASSEMBLY PUSH AND POP TYPES OF OPERAND SOME USEFUL INSTRUCTIONS MOV INT ADD SUB MUL IMUL DIV IDIV HAT ARE MEMORY MODELS Tiny Small Medium Large Flat BASIC ASSEMBLY PROGRAM Listing 1:1stProgram.asm COMPILATION INSTRUCTIONS AKING THINGS EASIER EYBOARD INPUT PRINTING A CHARACTER Listing 2: OS Interrupt 21h INTRODUCTION TO PROCEDURES Listing 3: SIMPROC.ASM PROCEDURES THAT PASS PARAMETERS Paramater Passing in Registers Listing 4:Proc1.asm PASSING PARAMETERS THROUGH MEMORY Listing 5: PROC2.ASM PASSING PARAMETERS THROUGH THE STACK Listing 6:Proc3.asm MACROS (in Turbo Assembler) Macros with Parameters FILES AND HOW TO USE THEM Function 3Dh: open file Function 3Eh: close file Function 3Fh: read file/device Listing 7: READFILE.ASM Function 3Ch: Create File The 80x86 family was first started in 1981 with the8086 and the newest member is the Pentium which was released thirteen years later in 1994. They are all backwards compatible with each other but each new generation has added features and more speed than the previous chip. Today there are very few computers in use that have the 8088 and 8086 chips in them as they are very outdated and slow. There are a few 286's but their numbers are declining as today's software becomes more and more demanding. Even the 386, Intel's first 32-bit CPU, is now declining and it seems that the 486 is nowthe entry level system. n old joke goes something like this: "There are three reasons for using assembly language: speed, speed, and more speed." Even those who absolutely ate assembly language will admit that if speed is your primary concern, assembly language is the way to go. Assembly language has several benefits: Speed. Assembly language programs are generally the fastest programs around. Space. Assembly language programs are often the smallest. Capability. You can do things in assembly which are difficult or impossible in HLLs. Knowledge. Your knowledge of assembly language will help you write better programs, even when using HLLs. ssembly language is the uncontested speed champion among programming languages. An expert assembly language programmer will almost always roduce a faster program than an expert C programmer. While certain programs may not benefit much from implementation in assembly, you can speed p many programs by a factor of five or ten over their HLL counterparts by careful coding in assembly language; even greater improvement is possible if ou're not using an ptimizing compiler. Alas, speedups on the order of five to ten times are generally not achieved by beginning assembly language programmers. However,ptimizing compiler....
View Full Document

This note was uploaded on 11/09/2010 for the course IM 405 taught by Professor Irvine during the Spring '10 term at UNCuyo.

Page1 / 64

CA296-ALP-1 - Recommended Texts Sargent Murray The personal computer from the inside out Murray Sargent III and Rich Rev ed Reading Mass

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online