Announcement

Collapse
No announcement yet.

Inline Assembly & Dynamic Memory Allocate

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

  • 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




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

  • #2
    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

    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      Stephane,

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


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

      Comment

      Working...
      X