Not quite sure what the source code I was given is written in. It looks like it works and came from a respected source. He says it's ASM, but I'm not too sure. Does anyone recognize this? -Levellass
- Yes, definitely assembly (ASM). -- Sander 14:33, 7 January 2010 (GMT)
If you take a look into first link at the article to the PCX documentation, you can find this:
There should always be a decoding break at the end of each scan line. But there will not be a decoding break at the end of each plane within each scan line.
Also note this:
A decoding break occurs at the end of each scan line. That is, an encoding byte pair can only represent a contiguous sequence of bytes within the current scan line. However, this is not necessarily true for color planes. An encoding byte pair may represent a contiguous sequence of identical bytes that extends across two color planes for one display image scan line.