« Back to the Da Slop Pit Forum

mips for a sane x86 RE

Posted by bfoo

posted
updated

Forum: Da Slop Pit Group

so recently, i had to learn how to read mips



granted, i had avoided it, because it's hard (ok not anymore but i really thought it was hard but i don't smell toast anymore so i think its ok)

heres a table that makes me feel a little better, where n is a number (has ARM energy)

mips register(s)
probably x86 equivalent
thoughts
$zero

literally the number zero

no thots brain empty

$at

no clue

for the assembler, i'm not an assembler

v[n]

eax

literally emits eax (and its babies) energy. used for return values and to feed syscall numbers apparently

a[n]

rdi, rsi, et al

a is for argument unless it's 'a' and 't'

t[n]

mips is just not sane

used for temporary value storage

k[n]


k is for kernel and my name is not sanders

gp

i wouldn't be able to tell you

pointer to global memory

sp

esp

stack pointer (something normal)

fp

ebp

frame pointer (another normal thing)

ra

could be like eip, but when eip is telling u where to return to

literally tells u where to return to after a function

great! now that we made it through that, lets talk briefly about instructions.

my favorite quote is: "my favorite thing about mips is not actually the delay slot but they have like fake instructions"

important things to remember:

  • instruction + i = do it with an immediate value
  • instruction + u = do it with an unsigned value
  • instruction + iu = do it with both
  therefore, here are some references instead!


 ok i feel better now (not rly! enjoy brain dump)!


Report Topic

1 Reply

Reply by buses

posted

MIPS me with this bullshit
good writeup tho!


Report Reply