Need byte-splitter utility

From: Tony Duell <ard_at_p850ug1.demon.co.uk>
Date: Wed Apr 2 18:03:38 2003

> > Care to explain what the difference is? As I understand it you have a
> > file containing bytes like this (say)
> >
> > L0 H0 L1 H1 L2 H2....
> >
> > And you want to make 2 files, one containing
> > L0 L1 L2 ...
> >
> > And the other containing
> > H0 H1 H2...
> >
> > Looks like an odd/even split to me.
>
> Might be a big-endian/little-endian issue. A Z80 (if I recall) would lay
> down 16 bit quantities as:
>
> L0 H0 L1 H1 L2 H2 ...
>
> while a 6809 (which I know) would lay out 16 bit quantities as:
>
> H0 L0 H1 L1 H2 L2 ...

Sure... But once you've split them up into Hn and Ln files, does it
matter? Provided you know which way round the bytes were originally and
which file then ended up in. You can just pick the appropriate file for
the high and low bytes in each case.

>
> So maybe that's what he's talking about?
>
> -spc (But in either case, you'll still end up with two files and I would
> think that as long as you know which one you need where ... )

_Exactly_!!!

-tony
Received on Wed Apr 02 2003 - 18:03:38 BST

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:35:42 BST