Strict Standards: Non-static method Soojung::addReferer() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/settings.php on line 79

Warning: Cannot modify header information - headers already sent by (output started at /home/lifthrasiir/sites/sapzil.info/soojung/settings.php:79) in /home/lifthrasiir/sites/sapzil.info/soojung/classes/Counter.class.php on line 63

Strict Standards: Non-static method Entry::getEntry() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/entry.php on line 51

Strict Standards: Non-static method Soojung::entryIdToFilename() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/classes/Entry.class.php on line 182

Strict Standards: Non-static method Soojung::queryFilenameMatch() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/classes/Soojung.class.php on line 55
TokigunStudio3 | 블로그: 어떤 놈이 어셈 문법을 이따위로 만들어 놓아서...

내용으로 바로 넘어 가기


TokigunStudio3

228 / 3282   


더 이상 이 블로그는 운영되지 않습니다. 새 블로그로 가 주세요.

어떤 놈이 어셈 문법을 이따위로 만들어 놓아서...

2004/10/01 PM 06:50 | 개발/역공학 | 0 comments | 0 trackbacks | AllBlog: vote, to pocket

...다음 두 문장을 잘 비교해 보라. 두 문장은 뭐가 다를까? 결국 eax에 뭔가 집어 넣는다는 소리인데...

mov eax, [ecx+10h]
lea eax, [ecx+10h]

어셈을 모르시는 분들을 위해서 c 버전으로...

eax = *(ecx + 0x10);
eax = ecx + 0x10;

...mov는 가리키고 있는 곳의 내용을 집어 넣지만, lea는 가리키고 있는 곳의 주소(결국 저기서 [..] 안의 내용)를 집어 넣는다. 뭐 그건 좋다 이건데, 개인적으로는 [...]를 빼는 게 오히려 정확한 게 아닌가 하는 생각이 든다. 제길. 저거 실수로 잘못 해석한 게 왜 이리 많아! -_-;;;

아무튼 함수 분석 하나 끝내고 c로 번역...했긴 했는데 저의를 알 수 없는 코드가 탄생했다. 으아.

TrackBack URL: http://sapzil.info/soojung/trackback.php?blogid=53

Copyright (c) 1995-2005, Kang Seonghoon (Tokigun).