# config/data_members.kor.txt -- the ICO Korean retail ELF's data-only ico2000.a members.
#
# One row per (member, section) for the same members as
# config/data_members.pal.txt: the 70 members MAIN.MAP lists with
# .data/.rodata/.sdata but no .text, plus the three unmapped runs (member name
# unmapped_<VMA>, the VMA being PAL's, kept as the member's name). Each member,
# typed by config/data_schema.kor.txt, is written as one C translation unit by
# tools/gen_data_c.py (build/kor/data/<member>.c, its rows the sections of that
# one object), which reads this table and the user's own
# baserom/kor/baseelf.elf; the bytes are never committed.
#
# Columns: <section> <member> <rom_lo> <rom_hi> <symbol>@<offset>,...
#   section   the section the bytes occupy in the retail ELF
#   rom_lo/hi VMA range [lo, hi) in baserom/kor/baseelf.elf (rom offset + 0x100000)
#   symbols   the PAL member's names (MAIN.MAP's, or the derived name its C
#             reader uses), offset from rom_lo
#
# Derivation. The rows are the Japanese build's (config/data_members.jpn.txt
# on the jpn branch), each found again in this ELF: 72 of the 75 rows hold
# the Japanese row's bytes word for word (a word that is an address in the
# image compared only as being one) and the Korean start was where those
# bytes lie; tex-property is six 112-byte rows shorter (406 for the Japanese
# 412), texture-layout's property ranges and default items follow those six
# missing rows, and the .rodata pool of staffroll_dat has the copyright year
# 2002 for 2001; those three were placed by their neighbours. The comments
# below compare each member with PAL's; where the Korean member equals the
# Japanese one they are the Japanese build's measurements, which hold here.
#
# The Japanese derivation. The Japanese disc ships no map or listing, and
# MAIN.MAP is a different, older link: no address below comes from either.
# The names are PAL's, carried by member order. Every start was found in the
# Japanese ELF:
#   1. Code. Each function the census (tools/correlate_elf.py) pairs with a
#      PAL function of the same length loads the same data the same way, so
#      a %hi/%lo pair or a $gp offset in the PAL function and the same
#      instruction in the twin give the PAL address and this ELF's address of
#      one datum. Every member's base read by code ("code:", the twin
#      functions that read it) is pinned this way, and so is the .data,
#      .rodata or .sdata of each code-owning neighbour.
#   2. Neighbours. Each run lies between two code-owning objects whose
#      sections are pinned by step 1; the group comments name them. A
#      member no code reads is bounded by the pinned members on each side.
#   3. Content. Each row was decoded with PAL's record type
#      (config/data_schema.pal.txt) and compared with PAL's member record by
#      record, pointer words compared as the address the PAL target has in
#      this link (functions by the census, data by step 1), strings by
#      content: "same" is equal record for record, "changed-content" is the
#      same layout with other values (ids into changed tables, text),
#      "layout-changed" is the same record type with rows added or removed,
#      "record-changed" is a record PAL's type does not hold. Every pointer
#      lands inside this ELF's image, every string is terminated and every
#      float field is finite, except in the two record-changed members.
# rom_hi is the next start, or the record count times the stride where zero
# fill for the next start's alignment follows (as in PAL's table). Where the
# span differs from PAL's the row says so and gives both row counts; the
# member is the same table with rows added or removed (the record stride and
# the zero fill after it fix the count exactly). The member order inside each
# run is PAL's, with one difference the code fixes: texture-path is in
# .rodata, between spider-def and way-group, where MAIN.MAP also puts it.
# hintTable, the unmapped run, lies between game-param and motion-orient as
# in PAL (the Japanese build links it first in the .data run).

# ---- .data: after mv_main.o .data, before DObj.o .data (both found by code references in twin functions; mv_main.o's 0x98 bytes end where accessary starts, weapon-def ends 8 zero bytes before DObj)
# accessary: code: InitBoxGeo, InitCageGeo, InitFloorLeverGeo+5 read it. span 0x410 = PAL; content changed-content
data accessary 0x2a5938 0x2a5d48 accessary@0x0
# act-data-tbl: code: WithMailFunc_Idling, subCommonIdle read it. span 0x3c = PAL; content same
data act-data-tbl 0x2a5d48 0x2a5d84 actDataTbl@0x0
# act-intrlist: code: actBoyStart, actEnemyRestart, actGirlStart read it. span 0x5208 = PAL; content same
data act-intrlist 0x2a5d88 0x2aaf90 actIntrList@0x0
# camera-set: code: GetPluralCameraSet, wakeup_cameraedit read it. span 0xae0 = PAL; content same
data camera-set 0x2aaf90 0x2aba70 cameraSetList@0x0
# game-param: code: _ACTGame_GetParamF read it. span 0xb0 = PAL; content same
data game-param 0x2aba70 0x2abb20 gameParam@0x0
# unmapped_002ADBA0: code: CreateKyomiGObj, FinishHint, Hint_Init+5 read it; between game-param and motion-orient as in PAL (the Japanese link has it before accessary); 28 HintDef rows, ids changed. span 0x1c0 = PAL; content changed-content
data unmapped_002ADBA0 0x2abb20 0x2abce0 hintTable@0x0
# motion-orient: code: ControlMotionOrient, GetMotionOrient, WithMailFunc_Idling+5 read it. span 0xe760 = PAL; content changed-content
data motion-orient 0x2abce0 0x2ba440 motionOrient@0x0
# node-fix-ofs: code: Cling.176 read it. span 0x21c = PAL; content same
data node-fix-ofs 0x2ba440 0x2ba65c clingData@0x0
# obj-action: code: GirlForceFieldDL, ObjAction_CorrectGeo, stage_ApplyData+1 read it. span 0x49c0 != PAL 0x4b90 (-464 B); 944 rows for PAL's 967; content layout-changed
data obj-action 0x2ba660 0x2bf020 objAction@0x0
# obj-kind-data: code: CreateLayoutedGObj, HotInitSceneObjects, SetLodLevel+9 read it. span 0x1b58 = PAL; content same
data obj-kind-data 0x2bf020 0x2c0b78 objKindData@0x0
# obj-layout: code: CallEnemy, CheckEnemyBrainMode, DirectCallEnemy+39 read it. span 0x45520 != PAL 0x45bf8 (-1752 B); 3736 rows for PAL's 3759; content layout-changed
data obj-layout 0x2c0b78 0x306098 objLayout@0x0
# parallel-motion-tbl: code: ActPara_InitSystem, ActPara_MakeTbl read it. span 0x3b20 = PAL; content same
data parallel-motion-tbl 0x306098 0x309bb8 parallelMotionTbl@0x0
# sekind: code: _soundSeDefPlay, debug_SETest_color, soundSeEnvNotUseClose+1 read it. span 0xb18 = PAL; content same
data sekind 0x309bb8 0x30a6d0 seKind@0x0
# tex-property: code: default_item_select, display_layout, display_primary_texture_layout+8 read it. span 0xb1a0 != PAL 0xbec0 (-3360 B); 406 rows for PAL's 436 (the Japanese build's 412); content layout-changed
data tex-property 0x30a6d0 0x315870 texProperty@0x0
# weapon-def: code: ACTGame_GetMotOrientFromWeapon, AttackMail, GetWeaponWeight+8 read it. span 0x168 = PAL; content same
data weapon-def 0x315870 0x3159d8 weaponKind@0x0

# ---- .data: after staffroll.o .data, before a_p_1.o .data (code references; no fill on either side)
# staffroll_dat: code: staffRollNameOut read it; 964 words as in PAL (the last two null), two pointing at other text (the copyright year 2002, one credit line where PAL points at the .sdata blank). span 0xf10 = PAL; content changed-content
data staffroll_dat 0x4e0fd0 0x4e1ee0 staffRollNameData@0x0

# ---- .data: after st99a.o .data, before vobj.o .data (st99a.o's .data ends where item-kind-def starts)
# item-kind-def: code: BreakItemFromOutside, BreakItemWithAttackHit, uncarriedItemGeo read it. span 0xe0 = PAL; content changed-content
data item-kind-def 0x4f8380 0x4f8460 itemKind@0x0
# mirror-motion-def: no code reference; bounded by item-kind-def and model-path, both pinned. span 0x30 = PAL; content same
data mirror-motion-def 0x4f8460 0x4f8490 mirrorMotionTable@0x0
# model-path: code: InitPObj, MakePacket, ReadCollisionFile+1 read it. span 0x37680 != PAL 0x37f40 (-2240 B); 1621 rows for PAL's 1637; content layout-changed
data model-path 0x4f8490 0x52fb10 modelData@0x0
# prog-se-link: code: executeSEPackageByGObj, executeSEPackageWithNoGObj read it. span 0x600 = PAL; content changed-content
data prog-se-link 0x52fb10 0x530110 progSELink@0x0
# unmapped_00533FC0: code: synchronizeMotionOutputOriginForGirl read it. span 0x28 = PAL; content same
data unmapped_00533FC0 0x530110 0x530138 motSyncPairs@0x0
# texture-layout: code: default_item_select, display_primary_texture_layout, display_texture+6 read it. span 0x10a0 != PAL 0x1180 (-224 B); 76 rows for PAL's 80, the Japanese count, with the property numbers moved down for tex-property's six missing rows; content layout-changed
data texture-layout 0x530138 0x5311d8 texLayout@0x0
# way-point: code: ExtractWayData read it. span 0x13fd0 = PAL; content same
data way-point 0x5311d8 0x5451a8 wayPointSheet@0x0
# weapon-fumble-def: code: ReleaseWeaponWithFumbleSequential read it. span 0x1f8 = PAL; content same
data weapon-fumble-def 0x5451a8 0x5453a0 weaponFumbleGeo@0x0

# ---- .rodata: after mv_vobuf.o .rodata, before DObj.o .rodata (code references; motion-random-def, obj-trigger-def and obj-trigger are members here as in PAL's table)
# act-mode-def: code: ACTGame_isHangChain, DebugDispAutoEscort, IsGirlStatusEscortEnable+6 read it. span 0x2580 = PAL; content same
rodata act-mode-def 0x5528c0 0x554e40 actModeTbl@0x0
# adpcmfile: code: AdpcmOpen, adpcmDataSet, adpcmTickProc2+1 read it. span 0x1a40 = PAL; content same
rodata adpcmfile 0x554e40 0x556880 adpcmFile@0x0
# attack-def: code: AttackMail, MakeAttackPack_Actor read it. span 0x2d0 = PAL; content same
rodata attack-def 0x556880 0x556b50 attackData@0x0
# auto-escort: code: DebugDispAutoEscort, IsGirlStatusEscortEnable read it. span 0xab8 = PAL; content same
rodata auto-escort 0x556b50 0x557608 autoEscortData@0x0
# exit-data: code: ACTGame_SetActors_Debug, ACTGame_StageChangeGObj, ACTGame_StageChangeGObjID+10 read it. span 0x28c8 = PAL; content changed-content
rodata exit-data 0x557608 0x559ed0 exitData@0x0
# generator-sub-position: code: GetGeneratorSafePosition read it. span 0x70 = PAL; content changed-content
rodata generator-sub-position 0x559ed0 0x559f40 generatorSubPosition@0x0
# girl-warp-list: code: warpGirlInStage, warpGirlOutStage read it. span 0x898 = PAL; content same
rodata girl-warp-list 0x559f40 0x55a7d8 girlWarpList@0x0
# iconfile: code: iosMcManager read it. span 0xb4 = PAL; content same
rodata iconfile 0x55a7d8 0x55a88c iconFile@0x0
# idle-mot-def: code: subCommonIdle read it. span 0x84 = PAL; content same
rodata idle-mot-def 0x55a890 0x55a914 idlingDef@0x0
# init-func: code: debugCdvdLoadInfoSegDispFunc, iosCdvdMgrPackLoad read it. span 0x3a8 = PAL; content same
rodata init-func 0x55a918 0x55acc0 initFunc@0x0
# unmapped_0055FBD0: no code reference; bounded by init-func and look-target-data, both pinned; 2 rows (Tex_jimaku paths) for PAL's 10. span 0x40 != PAL 0x140 (-256 B); 2 rows for PAL's 10; content layout-changed
rodata unmapped_0055FBD0 0x55acc0 0x55ad00 jimakuFileName@0x0
# look-target-data: code: ACTLookTargetSystem_Exec read it. span 0x148 = PAL; content same
rodata look-target-data 0x55ad00 0x55ae48 lookTargetData@0x0
# motion-def: code: ACTEnvGetTest, ACTGame_CheckHandMotion, ACTGame_CheckPriInputFrame+52 read it; 1148 rows of 0x190 (PAL 0x194), names at +0xc0 equal to PAL's row for row; the record lost one word (PAL's palSpeedRatio at 0x15c) and orders its fields from 0x144 differently: PAL's MotionDef does not hold these bytes. span 0x701c0 != PAL 0x713b0 (-4592 B); content record-changed
rodata motion-def 0x55ae48 0x5cb008 motionKind@0x0
# motion-ik-eff-def: code: HandManager read it. span 0x70 = PAL; content same
rodata motion-ik-eff-def 0x5cb008 0x5cb078 motionIKEffKind@0x0
# motion-orient-def: code: SetMotionRequest, _ACTDebugPrint, motKindMenuProc+2 read it. span 0x28e0 = PAL; content same
rodata motion-orient-def 0x5cb078 0x5cd958 motionOriKind@0x0
# motion-random-def: code: ActPara_MakeTbl read it. span 0x190 = PAL; content same
rodata motion-random-def 0x5cd958 0x5cdae8 randomMotionKind@0x0
# moviefile: no code reference; bounded by motion-random-def and obj-light, both pinned; 5 rows for PAL's 7 (no PAL end movies). span 0xa0 != PAL 0xe0 (-64 B); 5 rows for PAL's 7; content layout-changed
rodata moviefile 0x5cdae8 0x5cdb88 movieFile@0x0
# obj-light: code: light_AddLight read it. span 0x30 = PAL; content same
rodata obj-light 0x5cdb88 0x5cdbb8 objectLight@0x0
# pair-motion: no code reference; bounded by obj-light and param-escape-run, both pinned. span 0xf8 = PAL; content same
rodata pair-motion 0x5cdbb8 0x5cdcb0 pairMotion@0x0
# param-escape-run: code: ChangeRunMode.135 read it. span 0x40 = PAL; content same
rodata param-escape-run 0x5cdcb0 0x5cdcf0 paramEscapeRun@0x0
# se-env: code: soundSeEnvNotUseClose, soundSeEnvPlay read it. span 0x2e7c = PAL; content same
rodata se-env 0x5cdcf0 0x5d0b6c seEnv@0x0
# sedef: code: _soundSeDefPlay, debug_SETest, debug_SETest_color+5 read it. span 0x14e38 = PAL; content same
rodata sedef 0x5d0b70 0x5e59a8 seDef@0x0
# sefile: code: ReadSoundBdFile, ReadSoundHdFile, soundSeEnvNotUseClose read it. span 0x28a0 = PAL; content same
rodata sefile 0x5e59a8 0x5e8248 seFile@0x0
# selist: code: _soundSeDefPlay, soundSeEnvNotUseClose, soundSeKindBuild read it. span 0x77e8 = PAL; content same
rodata selist 0x5e8248 0x5efa30 seList@0x0
# shocklist: code: _soundSeDefStop, iosPadActRequest read it. span 0xe0 = PAL; content same
rodata shocklist 0x5efa30 0x5efb10 shockList@0x0
# stage-all: code: ACTGame_SetActors_Debug, CameraSetCameraSet_Default, ConvertCameraSetBuffer+54 read it. span 0xa420 != PAL 0xa748 (-808 B); 104 rows for PAL's 106; content layout-changed
rodata stage-all 0x5efb10 0x5f9f30 stageData@0x0
# stage-anim-model: code: stage_Init read it. span 0x2a68 != PAL 0x2b08 (-160 B); 1357 rows for PAL's 1377; content layout-changed
rodata stage-anim-model 0x5f9f30 0x5fc998 objTableScene@0x0
# stage-anim: code: stage_ApplyData, stage_Init read it. span 0x15568 != PAL 0x15dac (-2116 B); 950 rows for PAL's 973; content layout-changed
rodata stage-anim 0x5fc998 0x611f00 stageTable@0x0
# stream-motion-def: code: actE3GateChk, actSt04aGateChk, actSt04aGateOpen2ReadyChk+3 read it. span 0x1e0 = PAL; content same
rodata stream-motion-def 0x611f00 0x6120e0 streamMotion@0x0

# ---- .rodata: after staffroll.o .rodata, before a_p_1.o .rodata (code references)
# staffroll_dat: the pool the .data pointers target, from staffroll.o's .rodata end to a_p_1.o's; 171 strings for PAL's 170, the Japanese pool's with the copyright line's year 2002 for 2001. span 0xee0 != PAL 0xed0 (+16 B); content changed-content
rodata staffroll_dat 0x617120 0x618000 -

# ---- .rodata: after mv_vibuf.o .rodata, before PObj.o .rodata (code references; mv_vibuf.o's .rodata ends where blend-motion-def starts)
# blend-motion-def: code: getMotionGeometry, getNodeBlendedFloatingMotion read it. span 0x1410 = PAL; content same
rodata blend-motion-def 0x61c530 0x61d940 blendMotionKind@0x0
# enemy-def: code: CanThisEnemyFly, GetEnemyBattleType, GetEnemyDefDodgeRange+4 read it. span 0x4f0 = PAL; content changed-content
# enemy-def is committed source since 2026-10-24, ico2/sugipon/src/enemyKind.c (the one exception to the data-member rule, docs/LEGAL.md); its run is 0x61d940..0x61de30.
# enemy-model-grp: code: GetRealModelId read it. span 0x190 = PAL; content same
rodata enemy-model-grp 0x61de30 0x61dfc0 enemymodelGroup@0x0
# enemy-model-tbl: code: GetRealModelId read it. span 0x64 = PAL; content same
rodata enemy-model-tbl 0x61dfc0 0x61e024 enemymodelTable@0x0
# enemy-random-def: code: setEnemyObject read it. span 0xb0 = PAL; content same
rodata enemy-random-def 0x61e028 0x61e0d8 randomEnemyKind@0x0
# enemy-random-variation-def: code: setEnemyObject read it. span 0x158 = PAL; content same
rodata enemy-random-variation-def 0x61e0d8 0x61e230 randomEnemyVariationKind@0x0
# layout-cloth-def: code: InitAttackCheckBoundaryManagerGeo, InitFlagGeo read it. span 0xea0 = PAL; content same
rodata layout-cloth-def 0x61e230 0x61f0d0 layoutClothDef@0x0
# motion-eff-condition-def: code: execEff, execVibCondition read it. span 0x268 = PAL; content same
rodata motion-eff-condition-def 0x61f0d0 0x61f338 motEffCondKind@0x0
# motion-eff-def: code: InitIcoMisc, playEff read it. span 0x388 = PAL; content changed-content
rodata motion-eff-def 0x61f338 0x61f6c0 motionEffKind@0x0
# motion-eff-random-def: code: execEff read it. span 0x28 = PAL; content same
rodata motion-eff-random-def 0x61f6c0 0x61f6e8 randomEffKind@0x0
# motion-limit-def: code: SetNodeRotationLimitDataTable read it. span 0x900 = PAL; content same
rodata motion-limit-def 0x61f6e8 0x61ffe8 motionLimitDef@0x0
# motion-se-condition-def: code: playSEConditionID read it. span 0x9e8 = PAL; content same
rodata motion-se-condition-def 0x61ffe8 0x6209d0 motSECondKind@0x0
# motion-se-random-def: code: playSERandomID read it. span 0x23f8 = PAL; content same
rodata motion-se-random-def 0x6209d0 0x622dc8 randomSEKind@0x0
# obj-trigger-def: code: ObjAction_MailCenter read it. span 0x2c = PAL; content same
rodata obj-trigger-def 0x622dc8 0x622df4 objTriggerDef@0x0
# obj-trigger: code: ObjAction_MailCenter read it. span 0x108 = PAL; content changed-content
rodata obj-trigger 0x622df8 0x622f00 objTrigger@0x0
# parallel-motion-orient: no code reference; bounded by obj-trigger and particle-effect, both pinned. span 0x438 = PAL; content same
rodata parallel-motion-orient 0x622f00 0x623338 parallelMotionOrient@0x0
# particle-effect: code: GetParticleIDWithName, InitIcoMisc, execEffectTool+1 read it. span 0x1310 = PAL; content same
rodata particle-effect 0x623338 0x624648 particleEffectFile@0x0
# spider-def: code: InitAP1, InitSpiderLayoutGeo, MakeAP1GObj+2 read it. span 0xc0 = PAL; content same
rodata spider-def 0x624648 0x624708 spiderDef@0x0
# texture-path: code: init_textures_of_specified_property read it; in .rodata here (PAL: .data), between spider-def and way-group; 53 rows of a 48-byte record (char path[48], no cameraMove word): PAL's TexRec (52 bytes) does not hold these bytes. span 0x9f0 != PAL 0xf08 (-1304 B); 53 rows for PAL's 74; content record-changed
rodata texture-path 0x624708 0x6250f8 texFile@0x0
# way-group: code: ExtractWayData read it. span 0xa978 = PAL; content same
rodata way-group 0x6250f8 0x62fa70 wayGroupSheet@0x0

# ---- .sdata: after staffroll.o .sdata, before a_p_1.o .sdata (code references)
# staffroll_dat: code: staffRollNameOut read it; staffRollNameOut reads +4 by $gp; the blank and the count 962 equal PAL's; bounded by staffroll.o and a_p_1.o .sdata. span 0x8 = PAL; content same
sdata staffroll_dat 0x634f30 0x634f38 staffRollNameDataNum@0x4
