Announcement

Collapse

Forum Guidelines

This forum is for finished source code that is working properly. If you have questions about this or any other source code, please post it in one of the Discussion Forums, not here.
See more
See less

RGB() Function FOR PB/DOS

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

  • RGB() Function FOR PB/DOS

    $IF 0
    The values are passed to the function in the same order as they are
    in the 32-bit RGB() functions.

    This source code is released to the Public Domain. You may do whatever
    you wish with it.
    $ENDIF

    Code:
    FUNCTION RGB (BYVAL bRed AS BYTE, BYVAL bGreen AS BYTE, BYVAL bBlue AS BYTE) AS DWORD
        ! push ax
        ! xor ah, ah
        ! mov al, bBlue
        ! mov FUNCTION[2], ax
        ! mov ah, bGreen
        ! mov al, bRed
        ! mov FUNCTION[0], ax
        ! pop ax
    END FUNCTION
    ------------------




    [This message has been edited by Clay Clear (edited July 07, 2003).]

  • #2
    ? so why name them A, B and C ?????????


    ------------------
    Paul Dwyer
    Network Engineer
    Aussie in Tokyo

    Comment


    • #3
      There. Is that better?


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

      Comment

      Working...
      X