Re: [PATCH] m68k: amiflop: *ptr incremented past 0x4489

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 11, 2009 at 03:42:54PM +0100, Roel Kluin wrote:
With while (*ptr++ != 0x4489) { ... } *ptr will be incremented past 0x4489
after
the loop.

Yes, that is on purpose. The magic bytes of 0x4489 are a sync
mark, the interesting stuff always starts afterwards. The whole
decoding routing uses the current pointer the way that it always
points to the next unprocessed position when it arrives at the
next segment of decoding. I'd rather have this consistent in the
whole driver.

Bye,

Joerg

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux