-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfactorial_sub.asm
22 lines (20 loc) · 947 Bytes
/
factorial_sub.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
https://powcoder.com
代写代考加微信 powcoder
Assignment Project Exam Help
Add WeChat powcoder
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; file name : factorial_sub.asm ;
; author :
; description : LC4 Assembly subroutine to compute the ;
; factorial of a number ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;
;; !!!! TO-DO:
;; 1) Open up the codio assignment where you created the factorial subroutine (in a separate browswer window)
;; 2) In that window, open up your working factorial_sub.asm file:
;; -select everything in the file, and "copy" this content (Conrol-C)
;; 3) Return to the current codio assignment, paste the content into this factorial_sub.asm
;; -now you can use the factorial_sub.asm from your last HW in this HW
;; 4) Save the updated factorial_sub.asm file
SUB_FACTORIAL ; your subroutine goes here