player Info.hp = 150;
mov dword ptr [hp (04C480h)], 96h
playerInfo.attack = 10;
mov dword ptr [attack (04C484h)], 0Ah
playerInfo.defence = 5;
mov dword ptr [defence (04C488h)], 5
break;
jmp SelectPlayer+1E2h (046AD2h)
어셈블리상에서는 변수를 별도로 만든 것과 별다른 차이가 없다.
바이트패딩
struct ObjectInfo
{
short type;
int hp;
char attack;
int defence;
}
2+4+1+4 = 11 bytes?
컴퓨터가 빠른 처리를 위해 강제적으로 정렬하는 과정
시스템마다 차이가 있다.