Read without ads and support Scribd by becoming a Scribd Premium Reader.
 
IBM-PC ASSEMBLY-LANGUAGE LECTURE NOTESPAGE 1/
361TABLE OF CONTENTS
LECTURE NOTES FOR CS-5330: IBM PC ASSEMBLY LANGUAGEUNIVERSITY OF TEXAS AT DALLASTABLE OF CONTENTS
Lecture 1General references.Introduction to the Course.What is Assembly Language? Advantages and disadvantages. Comparison to higher-levellanguages.IBM PC System Architecture.CPU. Memory. Peripherals. Architecture.
ASSIGNMENT #1.
Read Chapter 0.The Process of Assembly.The editor, assembler, linker, and debugger.DOS and Simple File Operations.Powering up the computer. The prompt. The default drive.Files. The directory. DIR. ERASE. RENAME. TYPE. COPY.Executable files. Function keys (F3, Ctrl-Alt-Del).EDLIN and Editing.List (L). Line numbers ("." and "#"). Insert (I). F1, F2x,DEL, F4x, ESC, INS. Delete (D). Search (S). Replace (R).Quit (Q). End (E).
ASSIGNMENT (continued).
Practice EDLIN.Lecture 2Comments.Booting. Floppy disks. Formatting disks. Getting hardcopy.Review.Intel 8088 CPU Registers.Registers. General purpose registers. Accumulator.Instruction Pointer. Stack Pointer. Flag register.
ASSIGNMENT #2.
Read and do problems for chapter 1.Memory Usage.Megabytes and kilobytes. Words and doublewords. Variables.DB, DW, and DD.The MOV Instruction. A Simple Program Fragment.Play Misty for Me.DEBUG.Debugging. Absolute addresses vs. symbolic addresses. Quit(Q). Assemble (A). Unassemble (U). Enter (E). Dump (D).Go (G). Register (R).HandoutQuick Reference: MS-DOS, EDLIN, and DEBUG.
 
IBM-PC ASSEMBLY-LANGUAGE LECTURE NOTESPAGE 2/
361TABLE OF CONTENTS
Lecture 3Comments.Review.More DEBUG Commands.How DEBUG stores programs. Name (N). Load (L). Write (W). Arithmetic Instructions. ADD, SUB. Timing. INC, DEC. Carry Flag. ADC, SBB.INTEGER*8 addition sample program.Flags.PF, AF, ZF, SF, OF.Jumps and Conditional Jumps.JMP. Labels. JC, JNC, JZ, JNZ, ... JP, JPE. JCXZ. Asimulated Pascal for-loop, programmed using DEBUG.
ASSIGNMENT #3.
Write two simple assembler programs in DEBUG.HandoutSample INTEGER*8 Addition Program.Lecture 4Comments.BYTE PTR, WORD PTR.Review.
ASSIGNMENT #4.
Read portions of chapter 3. Addressing Modes.Immediate, register, direct, register indirect modes.OFFSET. Index registers (SI, DI). Base registers (BX, BP).INTEGER*8 addition example. Base relative and direct indexedmodes. INTEGER*8 addition example. The CLC and LOOPinstructions. Base indexed mode. ASCII.Character representation. Control characters (bell,backspace, tab, line feed, form feed, carriage return,escape). Use of a character data type in assembly language."0"-"9". "A"-"Z". "a"-"z". Example program to convert two ASCII hexadecimal digits in DH and DL to a byte in AL.Lecture 5Review.System Calls.MS-DOS interrupt 21H. Character input (functions 1 and 8).Character output (functions 2 and 5). CMP. Carriage returnsas opposed to carriage-return/line-feeds. Displayingmessages (function 9).Segments.Segment:offsets. Segment registers. Default segments.Pseudo-ops and the Format of .ASM Programs.SEGMENT, ENDS, ASSUME, EQU.
ASSIGNMENT #5.
Write two "typewriter" programs using MASM and LINK.Running the Assembler and the Linker.Logical Instructions.NOT, AND, OR, XOR, TEST.HandoutTemplate Program. Assignment #5.
 
IBM-PC ASSEMBLY-LANGUAGE LECTURE NOTESPAGE 3/
361TABLE OF CONTENTS
Lecture 6Comments.Grading policy.Review.The Shift and Rotate Instructions.Shifting. Shift counts. SHR and SAR. SHL and SAL. ROL andROR. RCL and RCR. Sample program to multiply by 10.The Jump Instructions (continued).FAR, NEAR, and SHORT jumps. Jumps used with CMP: JA, JAE,JB, ..., JNE, JG, JGE, JL, ....Stack Operations, PROCs, and CALLs.CALL, RET, PROC, ENDP, PUSH, POP. 2 rules for stack use.Sample procedure to convert to upper case.
ASSIGNMENT #6
.Write a procedure to display a 2-digit hexadecimal numbergiven a byte, and write a "file dump" program using it.HandoutSimple "Typewriter" Program Using Procedures. Assignment #6.Lecture 7Comments.Review.The Stack.Queues. Stacks. "The" stack. How PUSH, POP, CALL, and RETwork. How our template program works. Recursion. A samplerecursive procedure to compute N!. The MUL instruction. Accessing Files.Generally used "file" operations: read filename fromkeyboard; open or create a file; seek a given record in thefile; read or write the record; close the file. Pseudo-codeversion of the file-dump program.DOS Functions for Files.String input (function 0AH); string buffer. File open(function 3DH); file access codes; ASCIZ file nametermination; file handles; DOS error reporting. Read record(function 3FH); sequential file access; byte count. Fileclose (function 3EH).
Search History:
Searching...
Result 00 of 00
00 results for result for
  • p.
  • Notes
    Load more