Debug Programming

The flashcards below were created by user FelipeJung on FreezingBlue Flashcards.

  1. This type of registers offer convenient temporary storage for any type of data and are used for arithmetic operations, this can uniquely address them as one-word or as one-byte portion.
    General-Purpose Registers
  2. These register are also considered as the “workhorses” of the system.
    General-Purpose Registers
  3. Used for input, output, and arithmetic operations.
    AX register
  4. It is sometimes called as the accumulator.
    AX register
  5. Used as an index to extend addressing and is also used for computation.
    BX register
  6. Also known as base register.
    BX register
  7. This is used with certain instructions that perform operations repeatedly. It contains a value to control the number of times a loop is repeated. May also be used for computations.
    CX register
  8. Also refered to as the counter register.
    CX register
  9. This is used to hold data for any purposes such as input/output operations, or multiply/divide operations that involve large values.
    DX register
  10. Also known as the data register.
    DX register
  11. This 16-bit register facilitates referencing parameters that the data and address program passes through the stack.
    BP register
  12. Also known as Base Pointer.
    BP register
  13. This register indicates the current instruction within the currently executing code segment. It also contains the offset address of the next instruction that is to execute.
    IP register
  14. __ stands for Intruction Pointer.
    IP register
  15. This register refers to the current word being processed in the stack. Also provides an offset value.
    SP register
  16. Both the __ and __ registers are associated with the SS register and permit the system to access data in the stack segment.
    SP and BP
  17. May be referred to as Stack Pointer.
    SP register
  18. These registers provide for addressing an area of memory known as the current segment.
    Segment Registers
  19. It contains data and return addresses of procedures or subroutines. It is implemented as a 'stack' data structure.
    Stack Segment
  20. This register contains the starting address of a program's code segment.
    CS Register
  21. The segment address plus an offset values in the IP register indicates the address of an instruction to be fetched for execution.
    CS Register
  22. Also referred to as Code Segment.
    CS Register
  23. This register instructs the use of address to locate data.
    DS Register
  24. It also contains the starting address of a program's data segment.
    DS Register
  25. DS stands for Data Segment.
    DS Register
  26. This register is associated with the DI register, that a program requires and initialize it with an appropriate segment address.
    ES Register
  27. Used by some string operations to handle memory addressing.
    ES Register
  28. __ stands for Extra Segment.
    ES Register
  29. Permits the implementation of a stack in memory that a program uses for temporary storage of addresses and data.
    SS Register
  30. The system stores the starting address of a program's stack segment in the ________.
    SS Register
  31. Stands for Stack Segment.
    SS Register
  32. These are registers available for indexed addressing and addition/subtraction operations.
    Index Registers
  33. Associated with the DS register which is required for some string operations.
    SI Register
  34. Also referred to as String Index.
    SI Register
  35. Associated with the ES register which is also required for some string operations.
    DI Register
  36. Also referred to as Destination Index.
    DI Register
  37. These are special registers that indicate the present status of the computer and the results of processing.
    Flag Registers
  38. Many instructions involving comparison and arithmetic change the status of the flags, which some instructions may test to determine subsequent actions.
    Flag Registers
  39. This register indicates the result of an operation if it is too long to be stored in the destination operand.
    Overflow Flag(OF)
  40. __ dislayed if there is an OVERFLOW; and __ is displayed for NO OVERFLOW.
    OV , NV
  41. This register is used in string operations to determine the direction of data transfer.
    Direction Flag(DF)
  42. __ is displayed for UPWARD direction; otherwise __ is displayed for DOWNWARD.
    UP , DN
  43. Indicates that all external interrupts such as keyboard entries are to be processed or ignored.
    Interrupt Flag (IF)
  44. __ is displayed for ENABLED INTERRUPT; and __ for DISABLED INTERRUPT.
    EI , DI
  45. Indicates that the result of an operation is positive or negative.
    Sign Flag(SF)
  46. __ is diplayed for PLUS; and __ for NEGATIVE.
    PL , NG
  47. Indicates whether the an operation produced a zero result.
    Zero Flag (ZF)
  48. __ is diplayed for ZERO and __ for NON-ZERO.
    ZR , NZ
  49. This register is similar to carry flag xcept that it indicates the presence or absence of a carry or borrow based on 4-bit numeric representation in bits 0, 1, 2, and 3.
    Auxiliary Flag (AF)
  50. __ is displayed for NO AUXILIARY CARRY; and __ for AUXILIARY CARRY.
    NA , AC
  51. Indicated whether the result of an operation contains an even or odd number of 1's.
    Parity Flag (PF)
  52. __ is displayed for PARITY EVEN; and __ for  PARITY ODD.
    PE , PO
  53. This register indicates whether the instuctions produced a value that can be too big (or too small) to be held in the specifeid register or memory location.
    Carry Flag (CF)
  54. __ is displayed for CARRY; and __ for NO CARRY.
    CY , NC
  55. A software that is classified as a debugger, which is used for testing and debugging programs.
  56. Display all program code and data in hexadecimal form. Any data that the user enters into memory must also be in hex form.
  57. Provides a single-step mode, which allows you to execute a program one instruction at a time so that you can view the effect of each instruction on memory locations and registers.
  58. Advantages of Debug
    • It is simple to use
    • It requires relatively little memory
  59. Provide a controlled testing environment so you can monitor and control the execution of a program.
    DOS Debug.COM
  60. It may be used to load, alter, or display any file.
    DOS Debug.COM
  61. (T/F) They are not case-sensitive. They assume that all numbers given are in hexadecimal format. You can enter a space only when it is needed to separate parameters of a particular command.You should specify segments and offset with a colon, in the form of <segment>: <offset>.
Card Set:
Debug Programming
2016-07-20 12:12:39
Computer Systems Organization
1st Semester
Show Answers: