1 / 5

ASM instruction

ASM instruction. - inc, dec , neg , mul , imul -. inc, dec , neg 기본형. 1 operand => inc destination => dec destination => neg destination inc , dec 메모리 도 ++, -- 가능 플레그 는 불가능 neg 는 +,- 변경. mul 기본형. 1 operand => mul source EAX 가 중점 => AL * BL =

alodie
Télécharger la présentation

ASM instruction

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ASM instruction - inc, dec, neg, mul, imul -

  2. inc, dec, neg기본형 • 1 operand => inc destination => dec destination => neg destination • inc , dec메모리도 ++, -- 가능 플레그는 불가능 • neg는 +,- 변경

  3. mul기본형 • 1 operand => mul source • EAX가 중점 => AL * BL = (1byte) (1byte) (2byte) => AX * BX = (2byte) (2byte) (4byte) => EAX * EAX = (4byte) (4byte) (8byte) AX AX DX EAX EAX

  4. imul기본형 • 1~3 operand => imul source => imulreg source => imulreg source imm • 양수끼리의 곱하기에서 사용

  5. Ex) Input 3은 뭘까? 키읔 Input 1 = 6 Input 2 = -3 ANSWER= 23 Input 3 = (?)

More Related