assembly - Is there a command to find a character in a string in MIPS? -


i.e. If we think about an input string in the context of an array, the first element being the string [0] and the string [99] is the last.

Is there any way to read each person's character, or read a character in a certain position?

That is, let me have the string "abcdefg".

How do I use the character 'D' so that I can compare the characters around it? (Assuming I have already accessed those characters)

Loop):

  Load r1 to maximize r1 load to load r1 Character search for r3 loop: Compare r3 and string (r1) # it loads a character Is: lb $ t4, string ($ T1) if it is equal to the fall in the branch is equal to R2; R1 geto loop  

Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

c# - WPF Expander overlay used in ItemsControl -

class - Kivy: how to instantiate a dynamic classes in python -