- a 100 |
|
xxxx:0100 mov ax,0705 |
(Comment: [07] = function 07h of INT 13h, [05] = use an interleave of 5 ) |
xxxx:0103 mov cx,0001 |
(Comment: Start at {cylinder 0, sector 1}. Cylinder number contained in CH and upper two bits of CL. Sector number in lower 6 bits of CL. ) |
xxxx:0106 mov dx,0080 |
(Comment: [00] = head 0, [80] = hard drive 0 ) |
xxxx:0109 int 13 |
(Comment: INT 13h) |
xxxx:010B int 3 |
(Comment: Breakpoint return for DEBUG) |
xxxx:010C <------------------------ |
at this line just press the [ENTER] key - this will return DEBUG's dash prompt |
- g=100 |
(Comment: Executes the code that we typed in above) |
- f cs:1000 1200 00 |
(Comment: Sets 512 bytes starting at offset 1000h to zero) |
- a 100 |
|
xxxx:0100 mov ah,00 |
(Comment: [00] = function 00h of INT 13h ) |
xxxx:0102 mov dl,80 |
(Comment: [80] = hard drive 0 ) |
xxxx:0104 int 13 |
(Comment: INT 13h) |
xxxx:0106 mov ax,0301 |
(Comment: [03] = function 03h of INT 13h, [01] = one sector to write ) |
xxxx:0109 mov bx,1000 |
(Comment: Point ES:BX to our local data buffer, at offset 1000h ) |
xxxx:010C mov cx,0001 |
(Comment: Cylinder 0, sector 1. Cylinder number contained in CH and upper two bits of CL. Sector number in lower 6 bits of CL ) |
xxxx:010F mov dx,0080 |
(Comment: [00] = head 0, [80] = hard drive 0 ) |
xxxx:0112 int 13 |
(Comment: INT 13h) |
xxxx:0114 int 3 |
(Comment: Breakpoint return for DEBUG) |
xxxx:0115 <------------------------ |
at this line just press the [ENTER] key - this will return DEBUG's dash prompt |
- g=100 |
(Comment: Executes the code that we typed in above) |