Files
RomWBW/Source/Images/d_cowgol/u0/COMMFILE.COH
Wayne Warthen e18014a8a7 Added Cowgol Disk Image
- Credit and thanks to Ladislau Szilagyi.

Co-Authored-By: ladislau szilagyi <87603175+laci1953@users.noreply.github.com>
2024-02-10 13:11:09 -08:00

28 lines
538 B
Plaintext

sub FCBPutString(fcb: [FCB], s: [uint8]) is
loop
var c := [s];
if c == 0 then
break;
end if;
FCBPutChar(fcb, c);
s := @next s;
end loop;
end sub;
sub FCBGetBlock(fcb: [FCB], buffer: [uint8], length: intptr) is
while length != 0 loop;
[buffer] := FCBGetChar(fcb);
buffer := buffer + 1;
length := length - 1;
end loop;
end sub;
sub FCBPutBlock(fcb: [FCB], buffer: [uint8], length: intptr) is
while length != 0 loop;
FCBPutChar(fcb, [buffer]);
buffer := buffer + 1;
length := length - 1;
end loop;
end sub;