Announcement

Collapse
No announcement yet.

Eject cd-rom ??

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

  • Han Loke Su
    replied
    Thanks for help.

    Han


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

    Leave a comment:


  • Paul Dixon
    replied
    Han,
    the following appears to work in PB3.5 running in a Win98 DOS box.

    Paul.
    Code:
    %AX=1:%BX=2:%CX=3:%DX=4:%SI=5:%DI=6:%BP=7:%DS=8:%ES=9:%FLAGS=0
     
    reg %AX,&h440d
    reg %BX,10          'This is the drive to eject where Drive A=1,B=2,C=3 etc. My CD is Drive J = 10
    reg %CX,&h0849
    call interrupt &h21

    Leave a comment:


  • Mel Bishop
    replied
    Originally posted by Michael Mattias:
    The function you need is called (believe it or not!),"CALL INTERRUPT"
    Be aware, however, that loading the registers can sometimes be
    a real bugger. Load them carefully!!


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

    Leave a comment:


  • Michael Mattias
    replied
    You don't need assembly language to call interrupts using PB/DOS.

    The function you need is called (believe it or not!),"CALL INTERRUPT"

    MCM


    Leave a comment:


  • Jerry Mason
    replied
    Hi Han,

    If you're not familiar with Ralf Brown's interrupt list yet, check
    it out. It's a life-saver:
    http://www.ctyme.com/intr/rb-2856.htm

    You'll need to learn how to execute assembly routines to use this. Check
    your power basic manuals for instructions on how to do this.

    Cheers,
    Jerry

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

    Leave a comment:


  • Han Loke Su
    started a topic Eject cd-rom ??

    Eject cd-rom ??

    Any one know how to program
    "EJECT" the cd-rom for PBdos 3.5.


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