[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: use of BLOAD and BSAVE
Bernard Esteban writes ...
>
> Hi,
>
> I need to make copy of binary file from a 5"1/4 to a 5"1/4 (I have only
> one floppy drive),
>
> Could you help me :
> What is the best adress for BLOAD ?
> How to find, to know the lengh of the binary file loaded, because it
> does'n work with a bad lengh ?
>
> PS : I dont have the possibility to use another commands than DOS3.3's
> cmd.
....
You can get BLOAD address and length info about a file by BLOADing it
and PEEKing at a few addresses.
BLOAD Address is in two bytes: $AA72 (43634 decimal) is lo byte
$AA73 (43635 decimal) is hi byte
BLOAD Length is in two bytes: $AA60 (43616 decimal) is lo byte
$AA61 (43617 decimal) is hi byte
After a BLOAD you can enter
PRINT PEEK(43634) + PEEK(43635)
to get the BLOAD address.
PRINT PEEK(43616) + 256*PEEK(43617)
to get the length.
Hers's an example:
BLOAD NARFBIN
PRINT PEEK(43634) + PEEK(43635)
8192 (this is the answer for the above)
PRINT PEEK(43616) + 256*PEEK(43617)
8184 (this is the answer for the above)
BLOAD address for NARFBIN is 8192 ($2000 in hex)
Length of NARFBIN is 8184 bytes ($1FF8 in hex)
Rubywand