Skip to content
VUBuddy

CS401 Short Notes Chapter 10

Computer Architecture and Assembly Language Programming PDF 185 KBUpdated 23 Oct 2026
Quiz CS401 Short Notes Chapter 10 PDF 185 KB
vubuddy.com
Type
Quiz
Course
CS401 Computer Architecture and Assembly Language Programming
Size
PDF 185 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 185 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from page 1 of 1. Download the file for all 1 page.

CS401-ASSEMBLY LANGUAGE AND PROGRAMMING CS401 CHAPTER NO 10 (LECTURE 28-29)

👉 Also Recommended: CS401 SHORT NOTES CHAPTER 1-7 Midterm

Short Notes Chapter 10 (Lecture 28-29):

The three flags not used for mathematical operations are:

  1. the direction flag,
  2. the interrupt flag and
  3. the trap flags

If the trap flag is set, the after every instruction a type 1 interrupt will be automatically generated. This is named as the single step interrupt. This is like the divide by zero interrupt which was never explicitly invoked but it came itself. The debugger is made using this interrupt.

INT 1 function: It allows one instruction to be executed and then return control to us. It has its display code and its code to wait for the key in the INT 1 handler. Therefore, after every instruction the values of all registers are shown and the debugger waits for a key.

Another interrupt used by the debugger is the break point interrupt INT 3.

INT 3 has a single byte opcode so it can replace any instruction. To put a breakpoint the instruction is replaced with INT 3 opcode and restored in the INT 3 handler. The INT 3 opcode is placed again by a single step interrupt that is set up for this purpose after the replaced instruction has been executed.

Note: There is no instruction to set or clear the trap flag like there are instructions for the interrupt and direction flags.

PUSHF and POPF:

We use two special instructions PUSHF and POPF to push and pop the flag from the stack.

We use PUSHF to place flags on the stack, change TF in this image on the stack and then reload into the flags register with POPF. The single step interrupt will come after the first instruction after POPF.

The interrupt mechanism automatically clears IF and TF otherwise there would an infinite recursion of the single step interrupt.

The TF is set in the flags on the stack so another interrupt will come after one more instruction is executed after the return of the interrupt.

All CS401 files →
CS401 Computer Architecture and Assembly Language Programming All CS401 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.