почему он не хотел правильно работать от ./ я так и не понял
LIBS += $$PWD/lib/libmy2.a
BOOL WINAPI ReadFile(
_In_ HANDLE hFile,
_Out_ LPVOID lpBuffer,
_In_ DWORD nNumberOfBytesToRead,
_Out_opt_ LPDWORD lpNumberOfBytesRead,
_Inout_opt_ LPOVERLAPPED lpOverlapped
);
Expects: AH 3fH
BX file handle
CX number of bytes to read
DS:DX address of buffer to receive data
──────────────────────────────────────────────────────────────────
Returns: AX error code if CF is set to CY
if no error, AX=number of bytes actually read
Но оно каким-то чудом весь єкран охвативает)
я там ложу по два байта же когда счетчик будет FFFEh следующие два байта будут уже заполнени
add bx, 2
перед сравнением.люблю делать такие велики иначе неумею
Не работает, но уже лучше
add bx,02h
cmp bx,0FFFEh
jz e
cmp bx,0FFFFh
jz e
inc bx
потому что ключи должны указываться раньше входных файлов.
You can mix options and other arguments. For the most part, the order you use doesn’t matter. Order does matter when you use several options of the same kind; for example, if you specify -L more than once, the directories are searched in the order specified. Also, the placement of the -l option is significant.
Не надо ничего специально придумывать.
mov ax, cs ; mov ds, ax
должно прекрасно работать, при условии, что код правильно скомпилирован. Ты можешь приложить хекс-дамп своего бут-сектора?