PDA

View Full Version : آدرس دهی حافظه در برنامه



DEATH HUNTER
پنج شنبه 11 فروردین 1390, 23:21 عصر
سلام.من می خواهم چند سکتور از هارد رو توی یک بافر بریزم حالا چه طور می تونم به این خونه آدرس بدم؟من که نمیدونم قبلا رزرو شده یا نه؟؟؟؟؟؟؟کدوم سگمنت کدوم آفستش چه طوریاست ممنون


BIOS Interrupt (INT) 0x13 Function 0x02 - Reading Sectors

INT 0x13/AH=0x02 - DISK : READ SECTOR(S) INTO MEMORY
AH = 0x02
AL = Number of sectors to read
CH = Low eight bits of cylinder number
CL = Sector Number (Bits 0-5). Bits 6-7 are for hard disks only
DH = Head Number
DL = Drive Number (Bit 7 set for hard disks)
ES:BX = Buffer to read sectors to

Returns:
AH = Status Code
AL = Number of sectors read
CF = set if failure, cleared is successfull