Advertisement
areyesram

Untitled

Nov 26th, 2020
1,421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mov ax, 4
  2. mov cx, 2
  3. mul cx                              ; ax = 4 * 2
  4. add ax, 0x30                        ; ax = 4 * 2 + 48
  5. mov word [loc.resultado], ax        ; resultado = 4 * 2 + 48
  6.  
  7. mov eax, 4
  8. mov ebx, 1
  9. mov ecx, loc.resultado
  10. mov edx, 1
  11. int 0x80                            ; puts(resultado) <- imprimir un solo caracter
  12.  
  13. mov eax, 1
  14. mov ebx, 0
  15. int 0x80                            ; exit(0)
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement