Skip to content

Instantly share code, notes, and snippets.

View CarlosPena00's full-sized avatar
Drinking a Coffee

Carlos Pena CarlosPena00

Drinking a Coffee
  • FCx Labs
  • Brazil - PE - Recife
View GitHub Profile
@CarlosPena00
CarlosPena00 / factorial.asm
Created September 30, 2015 15:23 — 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 "