Chessboard: ~~~~~~~~~~~ a b c d e f g h +-----+-----+-----+-----+-----+-----+-----+-----+ | |#####| |#####| |#####| |#####| 8 | R |##N##| B |##K##| Q |##B##| N |##R##| | |#####| |#####| |#####| |#####| +-----+-----+-----+-----+-----+-----+-----+-----+ |#####| |#####| |#####| |#####| | 7 |##P##| P |##P##| P |##P##| P |##P##| P | |#####| |#####| |#####| |#####| | +-----+-----+-----+-----+-----+-----+-----+-----+ | |#####| |#####| |#####| |#####| 6 | |#####| |#####| |#####| |#####| | |#####| |#####| |#####| |#####| +-----+-----+-----+-----+-----+-----+-----+-----+ |#####| |#####| |#####| |#####| | 5 |#####| |#####| |#####| |#####| | |#####| |#####| |#####| |#####| | +-----+-----+-----+-----+-----+-----+-----+-----+ | |#####| |#####| |#####| |#####| 4 | |#####| |#####| |#####| |#####| | |#####| |#####| |#####| |#####| +-----+-----+-----+-----+-----+-----+-----+-----+ |#####| |#####| |#####| |#####| | 3 |#####| |#####| |#####| |#####| | |#####| |#####| |#####| |#####| | +-----+-----+-----+-----+-----+-----+-----+-----+ | |#####| |#####| |#####| |#####| 2 | P |##P##| P |##P##| P |##P##| P |##P##| | |#####| |#####| |#####| |#####| +-----+-----+-----+-----+-----+-----+-----+-----+ |#####| |#####| |#####| |#####| | 1 |##R##| N |##B##| K |##Q##| B |##N##| R | |#####| |#####| |#####| |#####| | +-----+-----+-----+-----+-----+-----+-----+-----+ Piece ID: ~~~~~~~~~ White Pawn: #%00000001 White Rook: #%00000010 White kNight: #%00000011 White Bishop: #%00000100 White Queen: #%00000101 White King: #%00000110 Black Pawn: #%10000001 Black Rook: #%10000010 Black kNight: #%10000011 Black Bishop: #%10000100 Black Queen: #%10000101 Black King: #%10000110 Bit #3 signify virgin (0) or moved (1) piece. Bit #4 Signify En Passant Candidate (1) or not (0) Board Coordinates: ~~~~~~~~~~~~~~~~~~ 0, 1, 2, 3, 4, 5, 6, 7 8, 9, 10, 11, 12, 13, 14, 15 16, 17, 18, 19, 20, 21, 22, 23 24, 25, 26, 27, 28, 29, 30, 31 32, 33, 34, 35, 36, 37, 38, 39 40, 41, 42, 43, 44, 45, 46, 47 48, 49, 50, 51, 52, 53, 54, 55 56, 57, 58, 59, 60, 61, 62, 63 Mapped to ZP adresses: $40 - $7f (0-63)