In risc-v assemble language now there is input a text. example 6 7 8 9 1 5
Question:
In risc-v assemble language now there is input a text. example
6 7 8 9 1
5 6 7 8 8
3 3 5 7 3
each row has the same number of digits(5) and now I would like to check if any rows and columns have the same number
example: ( 6, 7, 8 ,9,1) no same number
- if I want to save all numbers in s1, how should I do (6 7 8 9 1 5 6 7 8 8 3 3 5 7 3)
- after I save all number in s1, this is what I am planing to do: t1( counter 0-4) Use another like s2 or s3 . after checking one row get a 0 if there is no same number and put it in s3, have the same number then it is 1(1 byte) s0 there will be two counters, t0 for the current first,
for example, 6check 7891, 7 check891,8 check91. stop until t0 = 4 and reset to = 0. Jump to a part conclusion
It would be like t2 = t0 + t1, t1 ++ each time, if t1+ t0 = 4 , go to check. if t0 = 4, reset t1 and t4 = 0 go to sixth number. else if t0< 4, t1= 4,reset t1=0, t0 ++
the problem is after I loop for first loop, now pointer goes to the fifth on(1)e, [how should i reset it and go to the second one(7)]
3. after I check the first row(five number, 6, 7, 8, 9, 1) how should I point to second row
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill