어셈블리어 add, sub, inc, dec 명령어
·
리버싱/공부
간단한 더하기, 빼기 연산이다. add operand1, operand2 operand1에 operand2의 값을 더한다. 예를 들어 eax = 0x0A 일 때, add eax, 3 eax레지스터에 있는 값에 3을 더하므로 eax에 0x0D 값이 들어간다. sub operand1, operand2 operand1에 operand2의 값을 뺀다. 예를 들어 eax = 0x0A 일 때, sub eax, 3 eax레지스터에 있는 값에 3을 빼므로 eax에 0x07 값이 들어간다. inc operand operand에 1의 값을 증가시킨다. 예를 들어 eax = 0x0A 일 때, inc eax eax레지스터에 있는 값에 1이 증가하여 0x0B가 된다. dec operand1, operand2 operand에 1..
Goblebin
'dec연산' 태그의 글 목록