Announcement

Collapse
No announcement yet.

Inline Assembly & Dynamic Memory Allocate

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Guest's Avatar
    Guest replied
    Stephane,

    I'm currently working on a basic preprocessor, i'll include
    a #asm/#endasm just for you. --Dave


    ------------------

    Leave a comment:


  • Michael Mattias
    replied
    For # 2, use Help, Internal Functions, GetStrAlloc and RlsStrAlloc.

    Under DOS, there is no such thing as "free" there is only "allocate" and "deallocate"

    For #1, typing if typing "!" on each line isn't too hard, there's always

    Code:
    REM   BEGIN ASM
    !xor ax,ax
    ...
    REM   END ASM
    MCM

    Leave a comment:


  • Guest's Avatar
    Guest started a topic Inline Assembly & Dynamic Memory Allocate

    Inline Assembly & Dynamic Memory Allocate

    Hi Tom & Bob,

    1. Can you build-in blocks for the inline assembler:

    First way: ! or asm
    New way like this

    BEGIN ASM
    mov ax, bx
    mov ax, 5
    END ASM

    2. Function for dynamic memory allocating:
    PBMemAlloc()
    PBMemFree()
    PBMemRelease()

    3. Build-in 80x87 machine instructions in the build-in assembly

    Greetings


    Greetings




    ------------------
Working...
X