![]() |
![]() |
#21 | |
Citizen of Elthesh
Join Date: Sep 2003
Location: UK
Posts: 949
|
I very much agree.
Quote:
![]() 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. ![]() Last Edit: See further down for a final rewrite of this thing. Or just use whatever you want. Meh. ![]() Last edited by eLowar; 29 January 2008 at 23:09. Reason: Fixed minor bug (a) and then the bug in the bugfix (b). |
|
![]() |
![]() |
#22 |
Ancient User
Join Date: Apr 2007
Location: GREECE
Age: 50
Posts: 759
|
ok this works
|
![]() |
![]() |
#23 |
Citizen of Elthesh
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.
![]() |
![]() |
![]() |
#24 |
Ancient User
Join Date: Apr 2007
Location: GREECE
Age: 50
Posts: 759
|
ok now tell us more about the arguments it takes
|
![]() |
![]() |
#25 |
Citizen of Elthesh
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 ![]() |
![]() |
![]() |
#26 |
Ancient User
Join Date: Apr 2007
Location: GREECE
Age: 50
Posts: 759
|
now add a -h (or -?) that actually prints out this thing above
![]() |
![]() |
![]() |
#27 |
Citizen of Elthesh
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.
![]() |
![]() |
![]() |
#28 |
Ancient User
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... |
![]() |
![]() |
#29 |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
|
![]() |
![]() |
#30 |
Ancient User
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.?)
|
![]() |
![]() |
#31 |
HOL Team Member
Join Date: Dec 2001
Location: Manchester
Posts: 2,529
|
It should be r0m0hrz ch4t.
|
![]() |
![]() |
#32 |
Citizen of Elthesh
Join Date: Sep 2003
Location: UK
Posts: 949
|
|
![]() |
![]() |
#33 |
Ancient User
Join Date: Apr 2007
Location: GREECE
Age: 50
Posts: 759
|
...sob...
|
![]() |
![]() |
#34 |
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
![]() |
![]() |
![]() |
#35 | |
Citizen of Elthesh
Join Date: Sep 2003
Location: UK
Posts: 949
|
Quote:
![]() 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. ![]() |
|
![]() |
![]() |
#36 |
Registered User
Join Date: Jun 2002
Location: .
Age: 48
Posts: 5,562
|
you coders guys seems really a bunch of schoolgirls
![]() |
![]() |
![]() |
#37 |
Senior Member
Join Date: Jun 2001
Location: Germany
Posts: 1,667
|
|
![]() |
![]() |
#38 |
Ancient User
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. |
![]() |
![]() |
#39 |
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. |
![]() |
![]() |
#40 |
Ancient User
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..." |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
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 |
|
|