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. C / C++ / MFC
  4. Int 21h Function 440Dh Minor Code 41h (FAT32)

Int 21h Function 440Dh Minor Code 41h (FAT32)

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
2 Posts 2 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.
  • X Offline
    X Offline
    X2040
    wrote on last edited by
    #1

    what is this and how can i use it Int 21h Function 440Dh Minor Code 41h (FAT32) Writes data from a buffer to a track on the specified device. mov bx, Drive ;See below mov ch, DeviceCat ;See below mov cl, 41h ;Write Track on Logical Drive mov dx, seg WriteBlock ;See below mov ds, dx mov dx, offset WriteBlock ;ds:dx points to RWBLOCK structure mov ax, 440Dh ;IOCTL for block device int 21h jc error_handler ;carry set means error

    A 1 Reply Last reply
    0
    • X X2040

      what is this and how can i use it Int 21h Function 440Dh Minor Code 41h (FAT32) Writes data from a buffer to a track on the specified device. mov bx, Drive ;See below mov ch, DeviceCat ;See below mov cl, 41h ;Write Track on Logical Drive mov dx, seg WriteBlock ;See below mov ds, dx mov dx, offset WriteBlock ;ds:dx points to RWBLOCK structure mov ax, 440Dh ;IOCTL for block device int 21h jc error_handler ;carry set means error

      A Offline
      A Offline
      Aamir Butt
      wrote on last edited by
      #2

      while programming dos, we have to program interrupts. These interrupts are like 10h, 13h, 21h etc, each made for a pre-specified purpose. 21h is called a DOS interrupt. This is a general-purpose interrupt. I guess I can't tell you the whole thing here or perhaps you will not be able to catch up with these things. You need to learn a little bit of System Programming in DOS and Assembly to exactly grab these. Well, any way, I should continue. Every interrupt is/can be called with a major and minor code. This is like passing arguments to a function. And every major and minor code is for something specific. In this case, I guess major code of 440DH is telling DOS to communicate with the Disk and Minor Code must also be something specific. Now, you will have to check yourself what these codes do and how are these being handled in the next assembly statements. Think Negatively, It makes you creative :confused:

      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