Announcement

Collapse
No announcement yet.

AL,DL and unknowns

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

  • Daryl Lock
    replied
    Originally posted by Lance Edmonds:
    Something like this may get you started, maybe?
    Code:
    FUNCTION CallInt2F(BYVAL z?) AS INTEGER
    Thanks to Mel and Lance

    I managed to grapple my way through it - I misunderstood the concept at first but I managed to get it to actually do some stuff (loading a new process, adjusting the memory up and down, causing an XMS GPF...that sort of thing



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

    Leave a comment:


  • Lance Edmonds
    replied
    Something like this may get you started, maybe?
    Code:
    FUNCTION CallInt2F(BYVAL z?) AS INTEGER
      !PUSH DS
      !MOV AX, 0
      !MOV AL, z?
      !INT &H2F
      !MOV FUNCTION, AX
      !POP DS
    END FUNCTION
    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Mel Bishop
    replied
    Lets say you have to store 45 in AH and 56 in AL and DRDOS uses
    16-bit registers (I don't know this for a fact):

    Reg 1, (45 * 256) + 56



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

    Leave a comment:


  • Daryl Lock
    started a topic AL,DL and unknowns

    AL,DL and unknowns

    I'm getting your moneys' worth here

    I've started exploring the documents for programming the DR-DOS Multitasking API and although it is apparently easy to use, the examples all require a value to be pushed onto either the AL or DL register before calling &H2F and retrieving the result in AX/DX etc. Now what I know at this point about register level or asm could fill a byte...
    I've pored over the PB manual/User guide and examples on this site but see no reference to getting a value to AL, DL et al
    Can someone supply an example of how (if possible) it can be done?




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