Announcement

Collapse

New Sub-Forum

In an effort to help make sure there are appropriate categories for topics of discussion that are happening, there is now a sub-forum for databases and database programming under Special Interest groups. Please direct questions, etc., about this topic to that sub-forum moving forward. Thank you.
See more
See less

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 Inc. (retired)
    Racine 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