Answer:
Code is given below:
Explanation:
.data
str1: .space 20
str2: .space 20
msg1:.asciiz "Please enter string (max 20 characters): "
msg2: .asciiz "\n Please enter string (max 20 chars): "
msg3:.asciiz "\nSAME"
msg4:.asciiz "\nNOT SAME"
.text
.globl main
main:
li $v0,4 #loads msg1
la $a0,msg1
syscall
li $v0,8
la $a0,str1
addi $a1,$zero,20
syscall #got string to manipulate
li $v0,4 #loads msg2
la $a0,msg2
syscall
li $v0,8
la $a0,str2
addi $a1,$zero,20
syscall #got string
la $a0,str1 #pass address of str1
la $a1,str2 #pass address of str2
jal methodComp #call methodComp
beq $v0,$zero,ok #check result
li $v0,4
la $a0,msg4
syscall
j exit
ok:
li $v0,4
la $a0,msg3
syscall
exit:
li $v0,10
syscall
methodComp:
add $t0,$zero,$zero
add $t1,$zero,$a0
add $t2,$zero,$a1
loop:
lb $t3($t1) #load a byte from each string
lb $t4($t2)
beqz $t3,checkt2 #str1 end
beqz $t4,missmatch
slt $t5,$t3,$t4 #compare two bytes
bnez $t5,missmatch
addi $t1,$t1,1 #t1 points to the next byte of str1
addi $t2,$t2,1
j loop
missmatch:
addi $v0,$zero,1
j endfunction
checkt2:
bnez $t4,missmatch
add $v0,$zero,$zero
endfunction:
jr $ra
Answer:
How to Test for a Blind Spot . As you have learned, the blind spot is an area on your retina that has no visual receptors. Because of this, there is a tiny gap in your visual field. While your brain usually fills in the missing information so that you don't notice it, this quick and easy test makes it possible to demonstrate the blind spot , Of this, 300 crashes are, sadly, fatal. 2 Accidents are just as likely on Australian roads if blind spots are ignored. Not every car has blind-spot detection, so it's best to educate drivers about the importance of the blind spot to avoid accidents. However, not acknowledging the blind spot when driving isn't just dangerous for other cars on.
Explanation:
Answer:
Explanation:
Products of oil in our everyday life:
(1) Petro-Chemical Feedstock: These are by product of Refining of Oil which it is used extensively to make PET bottles, Paints, Polyester Shirts, Pocket combs e.t.c
(2) Asphalt : Used extensively to make Motor Road, highways
(3) Plastics : we use plastics in our everyday life, this is also a product of Refining of crude oil e.g PVC, Telephone casing, Tapes e.t.c
(4) Lubricating Oil/Grease : This is another product from crude oil Fractional Distillation.
(5) Propane/ Cooking Gas: This is also a product from oil which is used in our everyday life for cooking, grilling etc.
Answer:
B false it is illegal to only have got fog lights on though and bright headlights because it can distract other drivers going last and if the y are distracted then that will cause a collision
Hope this helps :)
Explanation: