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


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

Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II

Newsgroups comp.sys.apple2.programmer
Date 2015-11-19 18:02 -0800
References <522b7e91-ba28-4c78-99ef-9e547f43328f@googlegroups.com> <n2l5kr$pgs$1@dont-email.me>
Message-ID <7a828a13-31b0-4cae-9240-567818e0ec00@googlegroups.com> (permalink)
Subject Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II
From Mark Lemmert <mark.lemmert@gmail.com>

Show all headers | View raw


On Thursday, November 19, 2015 at 12:52:24 PM UTC-6, schmidtd wrote:
> On 11/19/2015 11:01 AM, Mark Lemmert wrote:
> > The result is the disk drive makes a strange noise (not the usual griding/recaliberation) and "ERROR 8" is output to the video screen. The floppy is unresponsive to "CATALOG".
> 
> Something is definitely wrong there.  The disk image should reconstitute 
> correctly.  Are you able to format, boot, and catalog specifically that 
> piece of floppy media?  Given that particular set of symptoms, I'd 
> suspect the drive really didn't write the disk image correctly, or maybe 
> it's HD media you're trying to write on.
> 
> And you can test the opposite direction as well - make a known-good, 
> bootable disk on your IIe, send it back to the PC, and have AC write 
> your file on that.  Then, send it back to the Apple IIe.  That round 
> trip should expose where the problem is.


David,

Yes, the floppy media I'm using can be formatted with DOS 3.3 on my Apple IIe, booted, and cataloged. I tried different floppy disks as well just to be sure. 

Your suggestion on testing in the opposite direction worked! I used ADTPro to create a disk image of a bootable DOS 3.3 disk, used AppleCommander to add the binary file output from CC65, and the disk image transferred back to the Apple IIe just fine. 

I'm very excited to have a working solution. Thank you very much!! 

Out of curiosity, when you create disk images on your PC that you transfer to your Apple II, how do you go about it? Though I have a working solution, I'm still curious as to what was going wrong when I tried it that way. I tried many combinations with AppleCommander, Ciderpress, command line, GUI, CC65 binary, SB-Assembler binary, different floppies, etc, etc. and just kept hitting a brick wall, but it sounds like there is a way to do it. 

One other question if I may. In reading your posts in the discussion Andy McFadden posted a link to, it sounds you've fully automated the build process with CC65 and AppleCommander (it sounds like a cool setup).

I'm trying to do a simple automation setup using batch files. The snag I'm hitting is with the Apple Commander line:

java -jar ac.jar -cc65 foobar.dsk FOOBAR B ^< foobar

I narrowed the problem down to the "<" symbol. All research I've done indicates that ^ is the proper escape character in a batch file but this command line hangs when run in a batch file (I hit control-C, it asks if I want to terminate the batch file, and then I'm returned to the command prompt, and the file doesn't get added to the disk image). 

I improvised with this:

java -jar ac.jar -cc65 foobar.dsk FOOBAR B %1

Then execute with:

go.bat < foobar

The downside of course is that I can't fully automate the process since the assembly stage comes before this step, and the copy to the AppleWin folder comes after it. 

I'm not sure if running AppleCommander via a batch file is something you're familiar with considering you have an ANT setup (I don't know much about ANTs yet), but I thought I'd ask.

Thanks for any ideas you may have. 


Mark




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


Thread

Subject Transferring Cross Assembler code from Mac/PC to Apple II Mark Lemmert <mark.lemmert@gmail.com> - 2015-11-19 08:01 -0800
  Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II Benoit0123 <bgilon@free.fr> - 2015-11-19 16:21 +0000
    Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II Mark Lemmert <mark.lemmert@gmail.com> - 2015-11-19 18:06 -0800
  Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II Andy McFadden <thefadden@gmail.com> - 2015-11-19 08:24 -0800
    Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II Mark Lemmert <mark.lemmert@gmail.com> - 2015-11-19 18:03 -0800
  Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II David Schmidt <schmidtd@my-deja.com> - 2015-11-19 13:52 -0500
    Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II Mark Lemmert <mark.lemmert@gmail.com> - 2015-11-19 18:02 -0800
      Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II Michael J. Mahon <mjmahon@aol.com> - 2015-11-19 20:11 -0600
        Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II David Schmidt <schmidtd@my-deja.com> - 2015-11-19 22:09 -0500
      Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II David Schmidt <schmidtd@my-deja.com> - 2015-11-19 22:48 -0500
        Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II Mark Lemmert <mark.lemmert@gmail.com> - 2015-11-20 16:17 -0800
          Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II pitz <pitz.wong@gmail.com> - 2015-11-23 10:39 -0800
            Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II Andy McFadden <thefadden@gmail.com> - 2015-11-23 11:28 -0800
              Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II David Schmidt <schmidtd@my-deja.com> - 2015-11-23 16:29 -0500
        Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II ol.sc@web.de (Oliver Schmidt) - 2015-11-21 13:35 +0000
          Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II Mark Lemmert <mark.lemmert@gmail.com> - 2015-11-21 11:44 -0800
  Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II Egan Ford <datajerk@gmail.com> - 2015-11-22 16:56 -0700

csiph-web