|
BSAVE, CAN SOMEONE HELP? [message #366671 is a reply to message #366663] |
Mon, 23 April 2018 21:08 |
Antoine Vignau
Messages: 1860 Registered: October 2012
Karma: 0
|
Senior Member |
|
|
Are you running under DOS 3.3 or ProDOS, parms are not the same.
DOS 3.3 (capital letters only)
BSAVE filename,A$from_address,L$length
With my DOS 3.4, lower case commands and parms are recognized.
ProDOS:
BSAVE filename,A$from_address,L$length or
BSAVE filename,A$from_address,E$end_address
Ex:
bsave hm.ml,a$2000,l$3000
Parms are given in hex, you can use decimal values instead, remove the $ and put decimal values instead.
Read the DOS 3.3 manual for more info, Google is your friend!
av
|
|
|
BSAVE, CAN SOMEONE HELP? [message #366676 is a reply to message #366671] |
Mon, 23 April 2018 22:07 |
Michael AppleWin Debu
Messages: 1262 Registered: March 2013
Karma: 0
|
Senior Member |
|
|
To add to Antoine's excellent summary:
DOS 3.3: Filenames must START with a letter. If you try to save one starting with a digit, for example 3D, it will (incorrectly) go to the tape.
Examples:
To save HGR screen, page 1:
BSAVE SCREEN1.HGR,A$2000,L$3FF8
To save a short Machine Language program at $300 (768):
CALL-151
0300:AD 00 C0 30 10 A0 00 88
0308:D0 FD A2 CD CA D0 FD 8D
0310:30 C0 4C 00 03 8D 10 C0
0318:60
3D0G
BSAVE FREQ220.BIN,A$300,L$19
|
|
|
BSAVE, CAN SOMEONE HELP? [message #366695 is a reply to message #366676] |
Tue, 24 April 2018 03:44 |
Antoine Vignau
Messages: 1860 Registered: October 2012
Karma: 0
|
Senior Member |
|
|
If I may, please read:
To save HGR screen, page 1:
BSAVE SCREEN1.HGR,A$2000,L$1FF8
instead of:
To save HGR screen, page 1:
BSAVE SCREEN1.HGR,A$2000,L$3FF8
You'll see hundreds of discussions about the length of the file to Bsave. Some use a length of $2000 and some others use $1FF8 ;-)
Antoine
|
|
|
Re: BSAVE, CAN SOMEONE HELP? [message #366697 is a reply to message #366663] |
Tue, 24 April 2018 06:30 |
|
Originally posted by: m.omalley.au
On Tuesday, April 24, 2018 at 8:59:34 AM UTC+10, typoso...@gmail.com wrote:
> HOW DO I USE THE BSAVE COMMAND TO SAVE A FILE, SAY I HAVE HEM.ML HOW CAN I BSAVE IT TO A BIN FILE?
OK, it's ~35+ years ago, but I still remember that you had to go into monitor and type 2 commands, I think they were AA62 and AA70:
]call -151
* AA62
::::::
* AA70
::::::
and these would produce a line or 2 of HEX and you had to add up 2 HEX numbers from each group and these gave you the length and starting address.
You could then use these in a BSAVE command, something like:
]bsave abc,a$....,l$....
where the .... are the starting address and length values you determined above.
Sorry I cannot be clearer .... it is a looooong time ago that I last typed these.
Moose
|
|
|
|