Skip to content

Instantly share code, notes, and snippets.

@TuringGoshield
TuringGoshield / factorial.asm
Created January 7, 2019 22:21 — forked from dcalacci/factorial.asm
simple factorial program in MIPS assembly
.globl main
.data
msgprompt: .word msgprompt_data
msgres1: .word msgres1_data
msgres2: .word msgres2_data
msgprompt_data: .asciiz "Positive integer: "
msgres1_data: .asciiz "The value of factorial("
msgres2_data: .asciiz ") is "