debug.exe
Hello could someone possibly help me with this,
im trying to access sectors on a floppy disc, and with win hex i can press cntrl -g and then type in the sector i want to see,
how do i view sectors with debug, ive looked at the help commands which state
[address][drive][firstsector][number]
and say i want to see sector 10
so ive tried,
L 0 0 10 1,
and it doesn't bring up what sector 10 in winhex shows, i believe i amn getting the last digit wrong in the command, am i right that this above line means
load a: drive, sector 10 up to sector (10 + 1), so show sector 10 -11,
and then when i press d0, it will start in sector 10, and then each new d command, continues through the dta in the sectors,
in short, how do i view sectors, say i wanted to see sector 10?
[858 byte] By [
wheelie] at [2007-11-20 7:14:33]

# 1 Re: debug.exe
please could someone help me out here, i been trying to do this all morning and am getting now where,
could some one explain how the following is used
[address][drive][firstsector][number]
thanks
# 2 Re: debug.exe
Hi Wheelie,
I assume you know assembly language. Feel free to make any question if something is not clear.
Try reading floppy sectors through service 02h of (BIOS) Interrupt 13h. This function stores bytes in program buffer, which allows further processing.
Specify required parameters:
AH - 02h, this is service ID
AL - number of consecutive sectors you want to read
ES:BX - Buffer segment : offset to store read sectors
CH - Track number, starting from 0.
CL - First sector to read, starting from 0. Bits 6 and 7
actually serve as extension to CH (track number)
DH - Head number (0 or 1 for floppy)
DL - Drive number (0 for floppy)
So, define parameters before opcode "INT 13h". Then by inspecting CF (carry flag) make sure there are no errors.
Let me know if you have any question. Regards,
Iaki Viggers