[Oberon] PO2013 - Last sector allocated
Michael Schierl
schierlm at gmx.de
Fri Jun 26 11:31:49 CEST 2020
Hello Paul,
Hello Tomas,
Am 26.06.2020 um 10:06 schrieb Paul Reed:
> I have already suggested an easier way is to use the hint in
> Kernel.AllocSector: allocate the next free sector after the hint, then
> free it, and keep incrementing the hint until the sector allocated is
> before the hint (ie it's wrapped).
I think you can optimize this and stop as soon as you found
Kernel.Nofsectors sectors that are already allocated.
Regards,
Michael
PS: I decided to export the last used sector from Kernel.Mod instead,
but that obviously does not work if you do not want to change the kernel.
More information about the Oberon
mailing list