new to ASM languager , _asm=?

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

  • 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
    : }
    :
    : }

Sign In or Register to comment.

Howdy, Stranger!

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

Categories

In this Discussion