[SPCA] more assembly

This commit is contained in:
RobinB27
2026-01-11 16:52:34 +01:00
parent f0c472bb87
commit 42b7451241
6 changed files with 50 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
factorial:
jmp .COMP # Check condition
.LOOP:
imull %edx, %eax # %eax *= %edx
decl %edx # %edx--
.COMP:
cmpl $1, %edx # 1 < %edx ?
jg .LOOP # if yes, go to loop
ret