Assembly Language ProgrammingA Small Assembly Language ProgramThe General RegistersAddressing (1)Addressing (2)The 8088 Instruction Set (1)The 8088 Instruction Set (2)The 8088 Instruction Set (3)Conditional JumpsSubroutine CallsSystem Calls and System SubroutinesThe ACK-Based Assembler, as88 (1)The ACK-Based Assembler, as88 (2)The TracerTracer Commands (1)Tracer Commands (2)Hello World ExampleGeneral Registers ExampleExample Program (1)Example Program (2)Example Program (3)Example Program (4)Example Program arrayprtExample Program strngcpy.sExample Program reverspr.sDispatch Tables (1)Dispatch Tables (2)Dispatch Tables (3)Buffered and Random File Access (1)Buffered and Random File Access (2)Buffered and Random File Access (3)Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Assembly Language ProgrammingAppendix CTanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 A Small Assembly Language Program(a) An assembly language program. (b) The corresponding tracer display.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 The General RegistersThe 8088 registers.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Addressing (1)Operand addressing modes. The symbol # indicates a numerical value or label.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Addressing (2)Operand addressing modes. The symbol # indicates a numerical value or label.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 The 8088 Instruction Set (1)Some of the most important 8088 instructions.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 The 8088 Instruction Set (2)Some of the most important 8088 instructions.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 The 8088 Instruction Set (3)Some of the most important 8088 instructions.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Conditional JumpsConditional jumps.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Subroutine CallsAn example stack.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 System Calls and System SubroutinesSome UNIX system calls and subroutines available in the interpreter.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 The ACK-Based Assembler, as88 (1)The as88 pseudoinstructions.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 The ACK-Based Assembler, as88 (2)Some of the escapes allowed by as88.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 The TracerThe tracer’s windows.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Tracer Commands (1)The tracer commands. Each command must be followed by a carriagereturn (the Enter key). An empty box indicates that just a carriage return is needed. Commands with no Address field listed above have no address. The # symbol represents an integer offset.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Tracer Commands (2)The tracer commands. Each command must be followed by a carriagereturn (the Enter key). An empty box indicates that just a carriage return is needed. Commands with no Address field listed above have no address. The # symbol represents an integer offset.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Hello World Example(a) HlloWrld.s.(b) The corresponding tracer window.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 General Registers Example(a) Part of a program.(b) The tracer register window after line 7 has been executed. (c) The registers.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Example Program (1)The program vecprod.s.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Example Program (2)The program vecprod.s.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Example Program (3)The program vecprod.s.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Example Program (4)Execution of vecprod.s when it reaches line 28 for the first time.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Example Program arrayprtThe program arrayprt before debugging.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Example Program strngcpy.sCopy a string.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Example Program reverspr.s Print a string backwards.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Dispatch Tables (1)A program demonstrating a multiway branch using a dispatch table.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Dispatch Tables (2)A program demonstrating a multiway branch using a dispatch table.Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved.
or
We will never post anything without your permission.
Don't have an account? Sign up