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


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

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

From David Schmidt <schmidtd@my-deja.com>
Newsgroups comp.sys.apple2.programmer
Subject Re: Subject Transferring Cross Assembler code from Mac/PC to Apple II
Date 2015-11-19 22:48 -0500
Organization A noiseless patient Spider
Message-ID <n2m52c$347$1@dont-email.me> (permalink)
References <522b7e91-ba28-4c78-99ef-9e547f43328f@googlegroups.com> <n2l5kr$pgs$1@dont-email.me> <7a828a13-31b0-4cae-9240-567818e0ec00@googlegroups.com>

Show all headers | View raw


On 11/19/2015 9:02 PM, Mark Lemmert wrote:
> [...] 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.

That for sure eliminated any and all possibility for sector order 
problems, which was Mr. Mahon's line of thinking.

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

Any time.

> 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.

In my build, I have template floppy images whose genesis is lost to the 
sands of time.  I copy those to a build destination, harass them with 
AC, et voila.  I would be curious to know if you can create a disk image 
with AC or CiderPress (CiderPress will actually put bootable DOS 3.3 on 
a DOS 3.3 image; AC won't), and name it appropriately: foobar.do for DOS 
ordered, if you take CiderPress' defaults.  Then, if you push that to 
the Apple IIe - does it boot?

> 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).

Believe me, it has been evolving for many, many years.  And a bunch of 
AC's command line capability and the ant interface was added by me 
because I despise redirection specifically on a PC, because Windows does 
a very poor job of leaving my data the heck alone and just can't resist 
swapping 13's for 10's or whatever.  I learned the hard way several 
different times (I'm a slow learner) that redirecting binary data always 
steers you wrong.  I know John Matthews (hi!) loves redirection, but he 
lives on Linux, where the shell doesn't make brain-dead decisions on 
your behalf.  My build is multi-platform, and it has to work exactly the 
same everywhere.  Hence, no redirection for me.

> 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

Never seen a caret escaping a redirection... I just tried a batch file, 
and it works fine without it...

> 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).

So, what about enclosing some of your command in full quotes?  i.e.
java -jar ac.jar "-cc65 foobar.dsk FOOBAR B < foobar"
or so?  There's definitely a way to make this work.  I have a batch file 
called ac.bat that does this:
@java -jar c:\wherever\AppleCommander-1.3.5.14-ac.jar %*
and then I can call it from a batch file thus:
ac -cc65 foobar.dsk FOOBAR B < foobar
and it succeeds.  This is Windows 7, btw.

> 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.

Yeah, it's all the same... except AC's ant task has some (ahem) 
undocumented features that avoids the whole redirection trap and pulls 
files byte-for-byte off of the filesystem like an honest program should.

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


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