CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Other Programming > Assembly
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Assembly Questions and Answers for Assembly here!

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old February 11th, 2005, 05:07 PM
    squall_lion_heart squall_lion_heart is offline
    Junior Member
     
    Join Date: Dec 2004
    Posts: 23
    squall_lion_heart is an unknown quantity at this point (<10)
    forgive me for the lo level, but what does this code is doing?

    mov ax, 3
    int 10

    10x for the help
    Reply With Quote
      #2    
    Old February 11th, 2005, 10:08 PM
    NigelQ's Avatar
    NigelQ NigelQ is offline
    Elite Member
     
    Join Date: Sep 2001
    Location: San Diego
    Posts: 2,147
    NigelQ has a spectacular aura about (150+)NigelQ has a spectacular aura about (150+)
    Re: forgive me for the lo level, but what does this code is doing?

    The mov ax, 3 moves 0 into the AH register, and 3 into AL.

    The INT 10 calls the specified interrupt (0x10 in this case).

    INTerrupt 16 (0x10) is the video services interrupt.

    When this interrupt is called with AH=0 and AL=3 (as in your case), this changes the video mode to:

    80 chars wide by 25 lines high, 16 color text (essentially color console text mode).

    Sorry for giving you it spelled out, but I wasn't sure what part you didn't understand.

    Hope this helps,

    - Nigel
    Reply With Quote
      #3    
    Old February 12th, 2005, 05:06 AM
    squall_lion_heart squall_lion_heart is offline
    Junior Member
     
    Join Date: Dec 2004
    Posts: 23
    squall_lion_heart is an unknown quantity at this point (<10)
    Re: forgive me for the lo level, but what does this code is doing?

    yeh, you really helped me, 10x
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Other Programming > Assembly


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 11:16 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009