Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Hardware & Devices
  4. how to read data from hard disk using int86() function

how to read data from hard disk using int86() function

Scheduled Pinned Locked Moved Hardware & Devices
tutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    amit code
    wrote on last edited by
    #1

    how to read data from hard disk using int86() function??i have used the 0x13 interrupt and then passed 0x42 to a.h.ah.but m not too sure of wat m reading

    prashant jain malviya national institute of technology

    D 1 Reply Last reply
    0
    • A amit code

      how to read data from hard disk using int86() function??i have used the 0x13 interrupt and then passed 0x42 to a.h.ah.but m not too sure of wat m reading

      prashant jain malviya national institute of technology

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Ummm, that function doesn't exist in the Win32 API. INT86 and INT86X were part of QBasic 2 and 3, many, Many, MANY years ago. This is doable using the Win32 API CreateFile and various other functions, but without further details about what you're doing and using, it's difficult to describe.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      A 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Ummm, that function doesn't exist in the Win32 API. INT86 and INT86X were part of QBasic 2 and 3, many, Many, MANY years ago. This is doable using the Win32 API CreateFile and various other functions, but without further details about what you're doing and using, it's difficult to describe.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        A Offline
        A Offline
        amit code
        wrote on last edited by
        #3

        actually i am trying to make read the data from a hard disk using dos.i am using dos because of memory requirements.in os after win98 this function does not work.

        prashant jain malviya national institute of technology

        L D 2 Replies Last reply
        0
        • A amit code

          actually i am trying to make read the data from a hard disk using dos.i am using dos because of memory requirements.in os after win98 this function does not work.

          prashant jain malviya national institute of technology

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I believe 0x26 interrupt was the old DOS absolute disk write. I believe you should look at the Digital Mars compiler, as it still supports dos_abs_disk_write() and other ancient function calls. In addition it supports COFF format and can generate a MS-DOS stub. http://www.digitalmars.com/rtl/dos.html#dos_abs_disk_write[^] Best Wishes, -Randor (David Delaune)

          1 Reply Last reply
          0
          • A amit code

            actually i am trying to make read the data from a hard disk using dos.i am using dos because of memory requirements.in os after win98 this function does not work.

            prashant jain malviya national institute of technology

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            The problem with using the old DOS functions under WinNT kernels is that, one, DOS doesn't exist anymore (except for a compatibilty box), and two, the functions are off-limits to user mode applications. I already told you under today's O/S, you have to use the Win32 API to do what you want.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups