How to “NOT” a register in mips assembly
Since there isn't a NOT logical operator in mips assembly, how can one "not" the contents of a register?
Load -1 into another register, then XOR the registers. https://www.cs.umd.edu/class/sum2003/cmsc311/Notes/Mips/bitwise.html
You can use nor and the zero-register to fit everything into one instruction: nor $<dest_reg> $<in_reg> $zero Another approach would be using xor and -1 as this is encoded as 1111...1111 in 2s-component. li $<help_reg>, -1 # load -1 into help-register xor $<dest_reg>, $<in_reg>, $<help_reg> # actual not-operation
Simple Paths between 2 nodes
algorithm for shortest weighted path - frequently changing edges
Depth First Search?
Point location in tetrahedron meshes
Determining the big-O runtimes of these different loops?
The 4-way gradient fill. Possible?
Marching Cube Ambiguities Versus Marching Tetrahedron
Is there a complex date filter algorithm?
How to implement a gapless block layout algorithm?
algorithm to control intensities of multiple lights
Binary Indexed Tree (Fenwick Tree) - about updating
Why the node split when inserting into 2-3-4 tree?
Solving “string reduction” challenge
Codechef PERMUT2 solution