Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

new to ASM languager , _asm=?

ligangligang Member Posts: 76
extern unsigned _psp;
void tooldbg()
{
_asm {
int 2
mov ax,_psp
}

}

this is a sub program called by main program . What't the meaning of above code ?

Comments

  • slicer69slicer69 Member Posts: 272
    It looks like this code is taking the value of the
    _psp and moving it into the AX register. I'm assuming
    that _psp is an "unsigned int" and
    that this code was probably written for a DOS/Windows
    platform.
    Though I'm not sure why "int 2" is called first.

    : extern unsigned _psp;
    : void tooldbg()
    : {
    : _asm {
    : int 2
    : mov ax,_psp
    : }
    :
    : }

  • Andre YoungAndre Young USAMember Posts: 0

    __ \ http://forcoder.org \ free video tutorials and ebooks about || JavaScript Visual Basic Go PL/SQL PHP Swift Ruby Visual Basic .NET MATLAB Python Delphi C Scratch Java C++ Assembly Perl C# Objective-C R Awk Rust Clojure Alice Crystal Kotlin Bash Dart Lua D Lisp Scala Erlang COBOL VBScript Fortran ML Transact-SQL Scheme Julia SAS F# LabVIEW Apex Logo Hack Prolog FoxPro Ada ABAP || __________

Sign In or Register to comment.