I am converting a dos 1 based disk driver to a Nextor device based one. So far it is going well, I already get a directory listing
For reading / writing sectors, Nextor supplies an address in DE where a 32-bit start sector number is stored.
I guess it uses the normal little endian format where sector 1 is stored as:
01 00 00 00
and sector 0x12345678 as
78 56 34 12
I thought this was a nice way to increase the sector number when multiple sectors have to be read at once:
inc_sector: ld iy,00h add iy,de inc (iy+00h) ret nz inc (iy+01h) ret nz inc (iy+02h) ret nz inc (iy+03h) ret
Using this made things worse. Now I am not even getting a directory listing anymore.
What am I doing wrong? Should a leave the original start sector alone?
Для того, чтобы оставить комментарий, необходимо регистрация или !login