Skip to content
Snippets Groups Projects
Commit fdc29e48 authored by Zhangyun Ye's avatar Zhangyun Ye
Browse files

Upload New File

parent 52665407
Branches
No related tags found
No related merge requests found
MOV R4 -4 ; N = 12
MOV R2 1 ;
MOV R1 0 ; i = 0;
MOV R0 1 ; n = 1;
JZ R4 4 ; {
ADD R1 R1 R2 ; i = i + 1;
MUL R0 R0 R1 ; n = n * i;
JMP -4 ; }
RET R0 ; return n;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment