# config/motion_bits.aug6.txt -- the bits of MotionDef's bit words (modeBits, flags,
# flags2) that game code reads by shift or mask, where the August 2001 preview disc
# (PROTO-20010806) keeps them. Written by tools/gen_ee_layout.py --bits from
# upstream's sources: a VERSION_AUG6 block's reads are paired with its PAL arm's,
# read for read; a read outside any block is the same bit on both discs. The named
# bit-fields map by name (config/ee_layout.aug6.txt) and are not listed. The loader's
# bit map (ICO_TF_BITMAP, tools/gen_data_desc.py) builds each PAL host word from these.
#   MotionDef <pal word> pal=<first bit> width=<bits> aug6=<word>:<first bit>
#   (pal=- declares a target bit no host bit takes; aug6=- a PAL bit written 0)
upstream 3947e0641f5cd232ab3828f9e09944d6bbf3b2c5
# Blocks not paired read for read, checked by hand (UNPAIRED in the script):
#   ico2/fumi/src/act-game.c:2655: ACTGame_BeforeFunc: PAL's sign bit (flags 31) is the August disc's flags bit 28, PAL's flags bit 14 has no August reader (written 0)
#   ico2/fumi/src/act-game.c:6021: masked by `mode &= 7` after: PAL bits 19-21, the row pal=19 width=3
#   ico2/fumi/src/act-way.c:22: PAL flags bit 12: the August twin reads no bit there (written 0)
#   ico2/fumi/src/boyact.c:4128: PAL flags bit 13: the August twin reads no bit there (written 0)
#   ico2/fumi/src/commonact.c:452: the August arm reads flags 12, 8, 8, modeBits 16-18, flags 19 and 18 (intr10Live, named) for PAL's flags 9, 5, 5, modeBits 19-21 and flags 25: the hand rows 9, 5 and 25
#   ico2/fumi/src/commonact.c:7735: PAL flags bit 7 (CarryMot's byte 0x18C) = carried, named on both
#   ico2/fumi/src/commonact.c:8590: PAL flags bit 29 is the August bit 27 (girl_act.c's pair); the August arm also reads its flags bit 0 (PAL bit 4, commonact.c's pair)
#   ico2/fumi/src/commonact.c:9747: a PAL-only read of flags bit 4, the August bit 0 (commonact.c's pair)
#   ico2/fumi/src/girl_act.c:2183: PAL flags bit 15: the August twin reads no bit there (written 0)
#   ico2/omori/src/chain.c:1207: PAL flags bit 11 (chainHang): the August twin reads no bit there (written 0)
MotionDef modeBits pal=0 width=8 aug6=modeBits:0  # ico2/fumi/src/act-game.c:6021
MotionDef modeBits pal=8 width=4 aug6=modeBits:12  # ico2/fumi/src/act-game.c:2991, ico2/sugipon/src/handManager.c:252
MotionDef modeBits pal=12 width=4 aug6=modeBits:8  # ico2/fumi/src/act-game.c:2991, ico2/sugipon/src/handManager.c:252
MotionDef modeBits pal=16 width=3 aug6=modeBits:19  # ico2/fumi/src/act-game.c:740
MotionDef modeBits pal=19 width=3 aug6=modeBits:16  # ico2/fumi/src/act-env.c:772, ico2/fumi/src/act-game.c:316
MotionDef modeBits pal=22 width=2 aug6=modeBits:30  # ico2/fumi/src/girl_act.c:8320
MotionDef modeBits pal=24 width=2 aug6=modeBits:24  # ico2/fumi/src/act-env.c:772
MotionDef flags2 pal=0 width=1 aug6=flags:29  # ico2/fumi/src/act-game.c:2991
MotionDef flags2 pal=1 width=1 aug6=flags:30  # ico2/fumi/src/commonact.c:7184
MotionDef flags2 pal=2 width=1 aug6=flags:31  # ico2/fumi/src/act-game.c:2991
MotionDef flags2 pal=3 width=1 aug6=flags2:0  # ico2/fumi/src/act-game.c:2991
MotionDef flags2 pal=5 width=2 aug6=flags2:2  # ico2/fumi/src/boyact.c:66
MotionDef flags2 pal=7 width=1 aug6=flags:7  # ico2/fumi/src/act-game.c:2991
MotionDef flags2 pal=8 width=1 aug6=flags:6  # ico2/fumi/src/boyact.c:66
MotionDef flags pal=0 width=1 aug6=flags:4  # ico2/fumi/src/girl_act.c:6061
MotionDef flags pal=1 width=1 aug6=flags:3  # ico2/fumi/src/act.c:1121
MotionDef flags pal=2 width=1 aug6=flags:2  # by hand: no reader in either tree; all 1042 motions agree (7 set it)
MotionDef flags pal=3 width=1 aug6=flags:1  # ico2/fumi/src/enemy_act.c:550
MotionDef flags pal=4 width=1 aug6=flags:0  # ico2/fumi/src/commonact.c:2299
MotionDef flags pal=5 width=1 aug6=flags:8  # by hand: commonact.c's _ACTCorrectMsg reads PAL bit 5 (cases 240 and 241), the August bit 8 (cases 221 and 222); all 1042 agree
MotionDef flags pal=6 width=1 aug6=flags:9  # ico2/fumi/src/commonact.c:7084
MotionDef flags pal=8 width=1 aug6=flags:11  # ico2/fumi/src/boyact.c:8187
MotionDef flags pal=9 width=1 aug6=flags:12  # by hand: commonact.c's _ACTCorrectMsg reads PAL bit 9 (case 259), the August bit 12 (case 240); all 1042 agree
MotionDef flags pal=10 width=1 aug6=flags:13  # ico2/fumi/src/act-game.c:2342
MotionDef flags pal=11 width=1 aug6=-  # by hand: chainHang: only PAL's chain.c reads it; no August bit agrees with it in all 1042
MotionDef flags pal=12 width=1 aug6=-  # by hand: only PAL's act-way.c twin reads it; no August bit agrees with it in all 1042
MotionDef flags pal=13 width=1 aug6=-  # by hand: only PAL's boyact.c twin reads it; no August bit agrees with it in all 1042
MotionDef flags pal=14 width=1 aug6=-  # by hand: only PAL's ACTGame_BeforeFunc reads it; no PAL motion sets it
MotionDef flags pal=15 width=1 aug6=-  # by hand: only PAL's girl_act.c twin reads it; no August bit agrees with it in all 1042
MotionDef flags pal=16 width=1 aug6=-  # by hand: jumpHit: the August actCommonJump sends mail 174 and reads no bit; the one August bit that agrees in all 1042 (flags2 bit 3) is the counterpart of PAL's flags2 bit 6 (boyact.c's read), set in the same 2 motions
MotionDef flags pal=18 width=1 aug6=flags:15  # ico2/fumi/src/act-game.c:290
MotionDef flags pal=25 width=1 aug6=flags:19  # by hand: commonact.c's landing test reads PAL bit 25, the August bit 19 (case 10); all 1042 agree
MotionDef flags pal=26 width=1 aug6=flags:21  # ico2/fumi/src/act-game.c:2226
MotionDef flags pal=28 width=1 aug6=flags:26  # ico2/fumi/src/act-env.c:772
MotionDef flags pal=29 width=1 aug6=flags:27  # ico2/fumi/src/girl_act.c:8320
MotionDef flags pal=30 width=1 aug6=flags:22  # ico2/fumi/src/act-game.c:2226
MotionDef flags pal=31 width=1 aug6=flags:28  # by hand: ACTGame_BeforeFunc's root test reads PAL's sign bit, the August bit 28; 1037 of 1042 agree (no other August bit agrees in more)
