so here is what my program does

Please enter a number: (lets say I enter 5 store in $01)
Please enter a another number: lets say I enter 3 (store in $s02
next condition is

beq $s01,$s02, end
bne $s01,$s02, loop

and loop needs to provide user upto five opportunites to type is the same number as the first prompt, after the fifth opportunity in case of failure to provide correct number, program terminates.

can someone provide me a sample loop that keeps the counter and does sort of what I am looking for.

thanks

Are you using Macros in GNU?

Typically the assembly code for an 80x86 would look like

$L1:
   cmp eax,ebx
   jne L1

I am using spim on a pc.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.