• EnglishSpanishGermanFrenchPolishChinese (Traditional)


EnglishSpanishGermanFrenchPolishChinese (Traditional)

Operating systems, scripting, PowerShell and security

Operating systems, software development, scripting, PowerShell tips, network and security

Menú principal
  • Categorías
  • Cursos
  • Libro de PowerShell (nivel medio)
  • Libro de PowerShell (nivel avanzado)
  • Lo mejor
  • Lo último
  • Proyectos
  • Contactar
Ir al contenido

Realizar una suma de dos números en lenguaje ensamblador con QtSpim

Assembly (x86)
1
2
3
4
5
6
7
8
9
## Program adds 1 and 12
.text                   # text section
.globl  main            # call main by SPIM
 
main:  
ori     $8,$0,0x1       # load 1 into register 8
ori     $9,$0,0x2       # load 2 into register 9
add     $10,$8,$9       # add registers 8 and 9, put result in register 10
jr $ra

Publicado el día 26 de septiembre de 2017

CATEGORÍAS

Ensamblador

ETIQUETAS

Jesús Niño Camazón, QtSpim, Register
Jesusninoc utiliza cookies: saber más aquí.