I want to write data which is >64k from memory to a file.
The problem is the DOS "write file" function, ah=40h, it only
accepts >=64k parameters.
The amount of data to write is in dx:ax. When I divide this
value by 64kb I can write the remainder in dx in one go.
But if ax > 1, how do I access data beyond the first 64k?
function 40h uses the data at ds:dx to write to disk. When I
add 64kb to dx, and it overflows, then how do I calculate
the correct segment value for ds?
thx.
The problem is the DOS "write file" function, ah=40h, it only
accepts >=64k parameters.
The amount of data to write is in dx:ax. When I divide this
value by 64kb I can write the remainder in dx in one go.
But if ax > 1, how do I access data beyond the first 64k?
function 40h uses the data at ds:dx to write to disk. When I
add 64kb to dx, and it overflows, then how do I calculate
the correct segment value for ds?
thx.