elementy assemblera w Borland C++ Builder
Code:
typedef unsigned int ui;
unsigned char buffer[512];
void Read_Sector(ui track, ui sector, ui side, ui station){
asm mov ch,byte [track];
asm mov cl,byte [sector];
asm mov dh,byte [side];
asm mov dl,byte [station];
asm mov ax,seg [buffer];
asm mov es,ax;
asm mov bx,offset [buffer];
asm mov ah,0x02;
asm mov al,0x01;
asm int 0x13;
}
pod Builderem 6.0 ne prochodit "seg", a pod Borlandem C++ 3.1 wsio rabotajet