Write a MIPS program that negates a positive number using 2s complement. E.g.: 0x00000003 is converted into 0xFFFFFFFD.
.data string: .asciiz "Enter a number: " result: .asciiz "2's complement is " .text la $a0, string li $v0, 4 syscall li $v0, 5 syscall sub $t0, $zero, $v0 la $a0, result li $v0, 4 syscall move $a0, $t0 li $v0, 1 syscall li $v0, 10 syscall
Write a MIPS program that negates a positive number using 2s complement. E.g.: 0x00000003 is converted...