Skip to content

Instantly share code, notes, and snippets.

@dwilliamson
Created January 29, 2013 18:38
Show Gist options
  • Select an option

  • Save dwilliamson/4666484 to your computer and use it in GitHub Desktop.

Select an option

Save dwilliamson/4666484 to your computer and use it in GitHub Desktop.
Erm... something's a little broken...
rend::Voxel svo::GetVoxel(Database& db, NodeData& node_data, const math::vec3i& voxel_index)
{
013017A0 55 push ebp
013017A1 8B EC mov ebp,esp
return LookupVoxel(db, node_data, voxel_index);
013017A3 8B 45 14 mov eax,dword ptr [voxel_index]
013017A6 50 push eax
013017A7 8B 4D 10 mov ecx,dword ptr [node_data]
013017AA 51 push ecx
013017AB 8B 55 0C mov edx,dword ptr [db]
013017AE 52 push edx
013017AF E8 4C ED FF FF call `anonymous namespace'::LookupVoxel (1300500h)
013017B4 83 C4 0C add esp,0Ch
013017B7 8B 00 mov eax,dword ptr [eax]
013017B9 8B 4D 08 mov ecx,dword ptr [ebp+8]
013017BC 89 01 mov dword ptr [ecx],eax
013017BE 8B 45 08 mov eax,dword ptr [ebp+8]
}
013017C1 5D pop ebp
013017C2 C3 ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment