English Amiga Board


Go Back   English Amiga Board > abime.net - Home Projects > project.EAB

 
 
Thread Tools
Old 27 January 2008, 22:50   #21
eLowar
Citizen of Elthesh
 
eLowar's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 949
Quote:
Originally Posted by NLS View Post
someone should edit the thread topic?
I very much agree.

Quote:
Originally Posted by NLS View Post
anyway no your version doesn't work - the file produced is 12 bytes longer than it should
I think it's because the files aren't opened in binary mode ("rb" instead of "r", etc.) and Windows (unlike Unix and hence Cygwin) actually cares.

Try the attached version please. I've added some error handling and stuff (I've also removed the hard-coded size). It also takes some command line parameters, but if it doesn't get any, it acts the same as the old program. Source code is included.

Edit: Fixed a bug and then the bug in the bugfix. Re-attached fixed version. Please re-download.

Last Edit: See further down for a final rewrite of this thing. Or just use whatever you want. Meh.
Attached Files
File Type: zip Interleave_v2008-01-27b.zip (4.9 KB, 155 views)

Last edited by eLowar; 29 January 2008 at 23:09. Reason: Fixed minor bug (a) and then the bug in the bugfix (b).
eLowar is offline  
Old 27 January 2008, 23:08   #22
NLS
Ancient User
 
NLS's Avatar
 
Join Date: Apr 2007
Location: GREECE
Age: 50
Posts: 759
ok this works
NLS is offline  
Old 27 January 2008, 23:17   #23
eLowar
Citizen of Elthesh
 
eLowar's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 949
Okay, cool, thanks. I've fixed a minor bug (it didn't handle too many arguments correctly) now and now we have a general purpose interleaver, if ever need be again... probably not.
eLowar is offline  
Old 27 January 2008, 23:23   #24
NLS
Ancient User
 
NLS's Avatar
 
Join Date: Apr 2007
Location: GREECE
Age: 50
Posts: 759
ok now tell us more about the arguments it takes
NLS is offline  
Old 27 January 2008, 23:24   #25
eLowar
Citizen of Elthesh
 
eLowar's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 949
Nothing much, really, just ...

Code:
Syntax: interleave.exe [-v|-n] [in_file1 [in_file2 [out_file]]]
        -n       no byte swapping
        -v       print version number and quit
        in_file1 defaults to rom0.rom
        in_file2 defaults to rom1.rom
        out_file defaults to combined.rom
I would've added more options, but I couldn't really think of anything good.
eLowar is offline  
Old 27 January 2008, 23:27   #26
NLS
Ancient User
 
NLS's Avatar
 
Join Date: Apr 2007
Location: GREECE
Age: 50
Posts: 759
now add a -h (or -?) that actually prints out this thing above
NLS is offline  
Old 27 January 2008, 23:28   #27
eLowar
Citizen of Elthesh
 
eLowar's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 949
Actually it will do just that in both cases, albeit with an "unknown option" error, but I figured that doesn't really matter.
eLowar is offline  
Old 28 January 2008, 00:03   #28
NLS
Ancient User
 
NLS's Avatar
 
Join Date: Apr 2007
Location: GREECE
Age: 50
Posts: 759
ah ok

Sometimes there is need for simple code even today - makes me want to go back and dig out my K&R little black book and my Visual Studio training books... Once I could write in assembly in 3 different CPU and now I couldn't write "Hello World" using a DOS batch (ok the last part is an exaggeration). I deteriorated to a plain user (ok I make my leaving from computers so this is also an exaggeration, but still... the saying haunts me: "he who cannot code, teaches IT; he who cannot teach is an administrator"). Sorry for the off-topic...
NLS is offline  
Old 28 January 2008, 00:06   #29
DamienD
Banned
 
DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
Quote:
Originally Posted by NLS View Post
someone should edit the thread topic?
Done, hopefully the new name is appropriate...
DamienD is offline  
Old 28 January 2008, 00:10   #30
NLS
Ancient User
 
NLS's Avatar
 
Join Date: Apr 2007
Location: GREECE
Age: 50
Posts: 759
(now somebody to comfort me and tell me that programming is like riding a bicycle or something, you never forget it etc.?)
NLS is offline  
Old 28 January 2008, 00:10   #31
Belgarath
HOL Team Member
 
Belgarath's Avatar
 
Join Date: Dec 2001
Location: Manchester
Posts: 2,529
It should be r0m0hrz ch4t.
Belgarath is offline  
Old 28 January 2008, 00:14   #32
eLowar
Citizen of Elthesh
 
eLowar's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 949
Quote:
Originally Posted by NLS View Post
(now somebody to comfort me and tell me that programming is like riding a bicycle or something, you never forget it etc.?)
The brain is like a muscle, use it or lose it!
eLowar is offline  
Old 28 January 2008, 00:14   #33
NLS
Ancient User
 
NLS's Avatar
 
Join Date: Apr 2007
Location: GREECE
Age: 50
Posts: 759
...sob...
NLS is offline  
Old 28 January 2008, 18:26   #34
OddbOd
Registered User
 
Join Date: Jul 2005
Location: Australia
Age: 47
Posts: 666
Cheers eLowar, now it looks like an actual program instead of a pig ugly hack
OddbOd is offline  
Old 28 January 2008, 20:10   #35
eLowar
Citizen of Elthesh
 
eLowar's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 949
Quote:
Originally Posted by OddbOd View Post
Cheers eLowar, now it looks like an actual program instead of a pig ugly hack
And a friendly thanks to you for showing me what to interleave.

I've been wanting to implement it since day one, I just didn't know whether to interleave word-wise, dword-wise or whatever.

'Course I was too embarrassed to ask.
eLowar is offline  
Old 28 January 2008, 20:43   #36
Marcuz
Registered User
 
Marcuz's Avatar
 
Join Date: Jun 2002
Location: .
Age: 48
Posts: 5,562
you coders guys seems really a bunch of schoolgirls
Marcuz is offline  
Old 29 January 2008, 11:12   #37
derSammler
Senior Member
 
Join Date: Jun 2001
Location: Germany
Posts: 1,667
Quote:
Originally Posted by NLS View Post
pcGTW_Webmaster you never replied my PM... should I be furious too?
Sorry, but I don't reply to rom requests that are send to me via email or pm. If I can't make it available for all, then I'm not going to secretly send it to individual people either.
derSammler is offline  
Old 29 January 2008, 22:22   #38
NLS
Ancient User
 
NLS's Avatar
 
Join Date: Apr 2007
Location: GREECE
Age: 50
Posts: 759
Thank you for your attitude. I am almost sorry I tried to calm things out.

I've recently sent the two interleaved images of those ROMs to a guy that requested them through email, I assumed it was you (so WASN'T you?), so I only thought PROPER to get back the result.

Don't bother replying anything. I don't even care.
NLS is offline  
Old 29 January 2008, 22:29   #39
derSammler
Senior Member
 
Join Date: Jun 2001
Location: Germany
Posts: 1,667
It wasn't me. And I don't understand what your problem is with me not trying to bypass the board rules via PM. You can't seriously attack me for not sending you ROMs, can you? Especially if you even confused me with some other guy (what have I to do with that, please?). Speaking of attitudes...

Last edited by derSammler; 29 January 2008 at 22:34.
derSammler is offline  
Old 29 January 2008, 22:39   #40
NLS
Ancient User
 
NLS's Avatar
 
Join Date: Apr 2007
Location: GREECE
Age: 50
Posts: 759
You are funny.

If it wasn't you fair enough.

Where did I say that I have a problem with you not bypassing the board rules via PM? I just said I expected A REPLY to my PM and I never got any.

My problem is you trying to make an impression (possibly as a diversion to how this thread started) - but trust me, you fail.

As I said above, I am almost sorry I tried to calm things down and even support your side. I didn't need a "thank you", but didn't expect such a lowly reaction just because you wanted to "play nice" in the eyes of the mods.

"Speaking of attitudes..."
NLS is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
PCMCIA IDE Discussion amiman99 Hardware mods 21 15 June 2012 01:12
Old KGLoad Discussion killergorilla project.KGLoad 357 20 January 2011 16:08
Castlevania Discussion john4p Retrogaming General Discussion 30 30 January 2009 02:10
Catweasel MK4 discussion ElectroBlaster support.Hardware 73 04 December 2006 01:02
General Discussion Zetr0 project.Amiga Game Factory 12 15 December 2005 13:53

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 23:23.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10615 seconds with 14 queries