Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Apple » Apple II » BSAVE, CAN SOMEONE HELP?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
BSAVE, CAN SOMEONE HELP? [message #366663] Mon, 23 April 2018 18:59 Go to next message
Anonymous
Karma:
Originally posted by: typosoftbasic

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?
BSAVE, CAN SOMEONE HELP? [message #366671 is a reply to message #366663] Mon, 23 April 2018 21:08 Go to previous messageGo to next message
Antoine Vignau is currently offline  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 Go to previous messageGo to next message
Michael AppleWin Debu is currently offline  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 Go to previous messageGo to next message
Antoine Vignau is currently offline  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 Go to previous messageGo to next message
Anonymous
Karma:
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
BSAVE, CAN SOMEONE HELP? [message #366721 is a reply to message #366695] Tue, 24 April 2018 13:46 Go to previous message
Michael AppleWin Debu is currently offline  Michael AppleWin Debu
Messages: 1262
Registered: March 2013
Karma: 0
Senior Member
Ah crap. You're right, Antoine! Thanks for the catch!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: BASIS 108 anyone?
Next Topic: Apple II's in the Movies: a new Discovery
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Mar 28 11:31:25 EDT 2024

Total time taken to generate the page: 0.04472 seconds