Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #1874

Re: Merlin 2.58 Assembler - saving to blank disk?

Newsgroups comp.sys.apple2.programmer
Date 2015-10-17 19:22 -0700
References <3f23216a-125f-4c4a-bf61-319d7b718653@googlegroups.com>
Message-ID <6f967682-34cb-493d-94f5-d1b8fa91f409@googlegroups.com> (permalink)
Subject Re: Merlin 2.58 Assembler - saving to blank disk?
From John Brooks <jbrooks@blueshiftinc.com>

Show all headers | View raw


On Saturday, October 17, 2015 at 7:02:50 PM UTC-7, jamesiw...@gmail.com wrote:
> I've been trying to save an object file to a blank disk with Merlin Assembler, and nothing that I have tried seems to work.
> 
> I have tried putting the DSK command at the beginning of my assembly language program:
> 
>          DSK       FILENAME
> 
> and then type ASM at the assembly prompt (after quitting my program with Alt-Q (Open Apple-Q))
> 
> I have tried save:
> 
>          SAV       FILENAME[S6,D2]
> 
> with a blank disk in drive 2,
> and then typing ASM at the prompt
> 
> I have tried doing the above options, and then going back to the menu, and put a blank disk in drive 1 (for the former) or a blank disk in drive 2, but Sometimes I get "VOLUME FULL" sometimes I get "VOLUME NOT FOUND".. I have tried using the 2nd Merlin disk to do this and sometimes nothing happens, as if there is success, but no matter which method I try, if I load up ProDOS and then put the disk in drive 1 and type "CATALOG" the object file does not appear anywhere.
> 
> Would someone tell me the steps to save an object file, and also a source file, to a disk OTHER than the Merlin Assembler disk?

I use a newer Merlin 3.51 on the GS, but IIRC, the obj-save syntax is the same. 

Your DSK & SAV pseudo-ops look correct. I use them all the time on my programs with no problem (SAV for small obj, DSK for large obj).

I did a quick test:

 dsk /ram5/dsksave
 org $300
 lda #"H"
 jmp $fded

assembling results in a 5 byte obj file: /ram5/dsksave

Then I tried:

 org $300
 lda #"H"
 jmp $fded

 sav /ram5/objsave

assembled and got a write confirmation msg at the end of the asm listing:

Object saved as /ram5/objsave,A$0300,L$0005,BIN

A catalog of /ram5 shows both BIN files on the volume.

I'm not sure why you are getting the VOLUME FULL error messages when Merlin tries to save. I would try using a full prodos path, make sure your destination disk is named uniquely (you might be getting a volume name conflict), and reformat your blank disk to make sure the directory structure is not damaged (and is empty).

Hope that helps,
-JB
@JBrooksBSI

Back to comp.sys.apple2.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Merlin 2.58 Assembler - saving to blank disk? jamesiwalker77@gmail.com - 2015-10-17 19:02 -0700
  Re: Merlin 2.58 Assembler - saving to blank disk? John Brooks <jbrooks@blueshiftinc.com> - 2015-10-17 19:22 -0700
    Re: Merlin 2.58 Assembler - saving to blank disk? jamesisaacwalker@gmail.com - 2015-10-18 20:13 -0700
    Re: Merlin 2.58 Assembler - saving to blank disk? jamesiwalker77@gmail.com - 2015-10-18 20:16 -0700
      Re: Merlin 2.58 Assembler - saving to blank disk? wssimms@gmail.com - 2015-10-18 20:33 -0700
        Re: Merlin 2.58 Assembler - saving to blank disk? jamesiwalker77@gmail.com - 2015-10-19 20:07 -0700
          Re: Merlin 2.58 Assembler - saving to blank disk? denisbytezone@gmail.com - 2015-10-20 13:13 -0700
            Re: Merlin 2.58 Assembler - saving to blank disk? jamesiwalker77@gmail.com - 2015-10-20 19:51 -0700
              Re: Merlin 2.58 Assembler - saving to blank disk? Michael J. Mahon <mjmahon@aol.com> - 2015-10-21 11:04 -0500
              Re: Merlin 2.58 Assembler - saving to blank disk? izziclaudio@gmail.com - 2016-01-14 11:12 -0800
  Re: Merlin 2.58 Assembler - saving to blank disk? D Finnigan <dog_cow@macgui.com> - 2015-10-18 19:58 +0000
    Re: Merlin 2.58 Assembler - saving to blank disk? jamesiwalker77@gmail.com - 2015-10-18 20:18 -0700

csiph-web