Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
en:manual:contrib:developer_collection [2024/03/02 01:25] throgh |
en:manual:contrib:developer_collection [2024/03/02 01:26] throgh [Assembler instructions] |
||
---|---|---|---|
Line 113: | Line 113: | ||
! ret; | ! ret; | ||
! ret; | ! ret; | ||
+ | |- | ||
+ | ! colspan=" | ||
+ | |- | ||
+ | ! je | ||
+ | ! if (val == res)\\ goto label; | ||
+ | ! cmpl $r11, %r12;\\ je label; | ||
+ | ! cmp $r12, %r11;\\ je label; | ||
+ | |- | ||
+ | ! idiv | ||
+ | ! int acc = 4;\\ acc /= val; | ||
+ | ! movl $4, %rax;\\ idivl %r11; | ||
+ | ! mov rax, 4;\\ idiv r11; | ||
+ | |- | ||
+ | ! mul | ||
+ | ! uint acc = 4;\\ acc *= val; | ||
+ | ! movl $4, %rax;\\ mull %r11; | ||
+ | ! mov rax, 4;\\ mul r11; | ||
+ | |- | ||
+ | ! imul | ||
+ | ! int acc = 4;\\ acc *= val; | ||
+ | ! movl $4, %rax;\\ imull %r11; | ||
+ | ! mov rax, 4;\\ imul r11; | ||
|- | |- | ||
|} | |} | ||