Log in

View Full Version : I <3 Opcode



AB Positive
01-21-2004, 05:10 PM
Just got in the Space Invaders Collection for the CV... man, i don't know if I can ever play the Atari version again. Snazzy and stylish from start to finish, and I was shocked by the animated intro.


Fine fine work, Eduardo!

-AG

ManekiNeko
01-21-2004, 08:35 PM
I <3 Opcode

What does that say? I am less than three Opcodes? I want to eat Opcode's butt? LOL

JR

bensenvill
01-21-2004, 09:22 PM
I think he means that he loves this

next: sub $t4, $s2, $s3 #calculate strLength-keyLength
add $s0, $a0, $zero #reinitialize string address
add $s1, $a1, $zero #reinitialize key address
iloop: beq $t2, $t4, smEnd #for (int i=0;i<strLength-keyLength;i++)
add $t5, $zero, $zero #check = 0;
lb $t0, ($s0) #strChar = testString.charAt(i);
add $t3, $zero, $zero #reset j=0
add $s1, $a1, $zero #reset keyChar to first char
jloop: beq $t3, $s3, iloop #for (int j=0;j<keyLength;j++)
lb $t1, ($s1) #keyChar = key.charAt(j);
if1: bne $t0, $t1, noteq #if (strChar==keyChar)
addi $t3, $t3, 1 #j++
addi $t5, $t5, 1 #check++;
add $t6, $t5, $t2 #i+check
add $t6, $t6, $a0
lb $t0, ($t6) #strChar = testString.charAt(i+check);
addi $s1, $s1, 1 #increment key address
addi $t7, $s3, -1 #keyLength-1
if2: bne $t5, $t7, jloop #if (check==keyLength-1)
addi $v0, $zero, 1 #return 1
j smEnd #key found
noteq: addi $t2, $t2, 1 #i++
addi $s0, $s0, 1 #increment string address
j iloop
smEnd:


Your a sick man

~Tj

ManekiNeko
01-21-2004, 09:33 PM
Your a sick man
~Tj

Funny, that's what my therapist said.

JR

opcode
01-22-2004, 10:11 AM
I <3 Opcode

What does that say? I want to eat Opcode's butt? LOL

JR

Ouch! Now I hope it isn't the case.... LOL

Eduardo Mello