Assembler,macro

Hi!

how can i make macros in assembler

how can i make this in pascal?

POPA MACRO

POP DI

POP SI

POP BP

POP SP

....

......

......

POP AX

ENDM





and in some PAS.files, that uses assembler they have something like this

@Something:



what is that?








Comments

  • : Hi!

    : how can i make macros in assembler

    : how can i make this in pascal?

    : POPA MACRO

    : POP DI

    : POP SI

    : POP BP

    : POP SP

    : ....

    : ......

    : ......

    : POP AX

    : ENDM

    :

    :

    : and in some PAS.files, that uses assembler they have something like this

    : @Something:

    :

    : what is that?

    :

    :

    :

    :



    Hi,



    I do not know the answer of your first question about macros, but @something: is a label where you can jump to.



    asm

    @start:

    ...

    ...

    cmp ax,bx

    je @start {if ax=bx then goto start}

    end;



    this simple program compares ax whith bx, if they are equal the program returns to @start:



    Jeroen




  • : : Hi!

    : : how can i make macros in assembler

    : : how can i make this in pascal?

    : : POPA MACRO

    : : POP DI

    : : POP SI

    : : POP BP

    : : POP SP

    : : ....

    : : ......

    : : ......

    : : POP AX

    : : ENDM

    : :

    : :

    : : and in some PAS.files, that uses assembler they have something like this

    : : @Something:

    : :

    : : what is that?

    : :

    : :



    You can try applying assembler routines in Pascal by:



    procedure Something; Assembler;

    asm

    {All your assembler routines}

    end;



    Hope this can answer your question.



    Phase_Zero

    Good Luck


  • .................................................

    -----------


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