asmify.sh problem - General Discussion and Assistance - CHDK Forum

asmify.sh problem

  • 12 Replies
  • 3587 Views
asmify.sh problem
« on: 12 / February / 2011, 18:49:16 »
Advertisements

I am trying to add dual-partition support to the IXUS105/SD1300  but I cannot get script  asmify.sh to work on my XP PC.

I type sh.exe  and then ./asmify.sh ixus105.asm ixus105.txt.

The file asmify.sh is simply opened.

*

Online reyalp

  • ******
  • 13439
Re: asmify.sh problem
« Reply #1 on: 12 / February / 2011, 19:32:11 »

I am trying to add dual-partition support to the IXUS105/SD1300  but I cannot get script  asmify.sh to work on my XP PC.

I type sh.exe  and then ./asmify.sh ixus105.asm ixus105.txt.

The file asmify.sh is simply opened.
This depends on what sh is in your particular setup. If you are using what came with the pre-built win32 toolchain, you might want to try bash instead of sh, so
> bash
$  ./asmify.sh < ixus105.asm > ixus105.txt

FWIW
asmifiy.sh operates on input and output, so if you do get it to run you'll need the < and >

You also just run the giant chain of sed+grep commands found in asmify.sh yourself.
Don't forget what the H stands for.

Re: asmify.sh problem
« Reply #2 on: 12 / February / 2011, 19:43:59 »
i am using the prebuilt Windows toolchain.
'sh' with redirection simply opens asmify.sh.

Your bash commands give 'zsh: command not found'  for every simple asm command !

I could have sworn it was easier than this when I last used it a few years ago.

Re: asmify.sh problem
« Reply #3 on: 12 / February / 2011, 19:56:22 »
Darn - I knew there must have been an easier way to create gcc inline asm other than keyboard macros in Notepad++.
Ported :   A1200    SD940   G10    Powershot N    G16


Re: asmify.sh problem
« Reply #4 on: 12 / February / 2011, 20:06:14 »
This is easier .. tell me how !

I hate programming, I would rather be taking photos.

Still cannot get this to work.

Re: asmify.sh problem
« Reply #5 on: 12 / February / 2011, 20:11:45 »
I cheated - switched to my Linux box and it just works.  Darn - more weekends I wasted doing things the hard way.

Update :  I was trying to decide when I last spent a day taking pictures - it was about the time somebody told me about CHDK and I decided to take a look.  Hmmmm .....
« Last Edit: 12 / February / 2011, 20:15:36 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: asmify.sh problem
« Reply #6 on: 12 / February / 2011, 20:18:15 »
If I upload the file, can you process it ?

http://www.zshare.net/download/86482040504aa77a/
« Last Edit: 12 / February / 2011, 20:20:57 by Microfunguy »

Re: asmify.sh problem
« Reply #7 on: 12 / February / 2011, 20:26:40 »
If I upload the file, can you process it ?

Downloading now - I'll edit this post when I'm done.

Edit :  Done - the script does not seem to like LF/CR at the end of each line.  I think you can get IDC to just put an LF at the end of each line - that might work better.  If I was better at SED I'd fix it.  Hmmm... maybe dos2unix ..

Edit 2 :   converted file with dos2unix first - looks much better now - updated the attachment.
« Last Edit: 12 / February / 2011, 20:47:41 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16


Re: asmify.sh problem
« Reply #8 on: 12 / February / 2011, 20:37:23 »
Thanks.

It is very late in the UK but I will continue so that I can get this 'off my back'.

David
« Last Edit: 12 / February / 2011, 20:41:33 by Microfunguy »

Re: asmify.sh problem
« Reply #9 on: 12 / February / 2011, 20:47:09 »
Updated with line endings fixed....
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics