Announcement

Collapse
No announcement yet.

Eject cd-rom ??

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

  • Eject cd-rom ??

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


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

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

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

    Comment


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


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

      Comment


      • #4
        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!!


        ------------------
        There are no atheists in a fox hole or the morning of a math test.
        If my flag offends you, I'll help you pack.

        Comment


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

          Comment


          • #6
            Thanks for help.

            Han


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

            Comment

            Working...
            X