Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8535643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:28:47+00:00 2026-06-11T10:28:47+00:00

In Assembly Language we have the DOS interrupt INT 21h, which is not a

  • 0

In Assembly Language we have the DOS interrupt INT 21h, which is not a hardware interrupt.

I was wondering if it was possible to write my own interrupt and call it.

If possible, please suggest links or methods.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:28:48+00:00Added an answer on June 11, 2026 at 10:28 am

    Yes, you can create your own interrput handler and call it whenever you want.
    You will need to set up the interrupt vector (which starts at address 0000:0000) to point to your own interrupt handler.

    The pointer to each handler consumes 4 bytes (offset and segment) so if for example you want to setup your interrupt handler for INT 22h you would update the interrput vector at location 0000:0088h to point to your handler.

    Check Ralph Brown’s interrupt list to check an unused interrupt number (at least one that is not used by a hardware interrput).

    Here goes an example of how to set up a handler for interrupt 22h:

    INITIALIZE: 
          XOR AX,AX
          MOV ES,AX
          CLI ; Disable interrupts, might not be needed if seting up a software-only interrupt
          MOV WORD PTR ES:[136], OFFSET INT22  ; setups offset of handler 22h
          MOV WORD PTR ES:[138], CS            ; Here I'm assuming segment of handler is current CS
          STI ; Reenable interrupts
          ; End of setup
    
    
    INT22  PROC FAR
           ; Here goes the body of your handler
           IRET
    INT22  ENDP
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read in a lot of places that assembly language is not usually
I'm wondering if there is a way to write MIPS assembly language file (just
I have a compiler which compiles assembly language to machine language (in memory). My
So I have the following assembly language code which I need to convert into
I have two questions about this homework assignment: Write an assembly language program in
I have just started the Assembly language programming and in the first lecture our
I am relatively new to assembly language. I have found so many tutorials that
In last days I'm playing with bootloaders and assembly language. I have compiled to
Do I absolutely have to learn assembly language to be able to use the
I'm new to assembly language, and would like to learn. I have Vista-64 (will

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.