Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created March 25, 2015 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shigemk2/bd37c8d2d110891703d7 to your computer and use it in GitHub Desktop.
Save shigemk2/bd37c8d2d110891703d7 to your computer and use it in GitHub Desktop.
a.out: file format elf32-bigmips
Disassembly of section .text:
00400018 <set_stack>:
400018: 27bdfff0 addiu sp,sp,-16
40001c: afbe000c sw s8,12(sp)
400020: 03a0f021 move s8,sp
400024: 240200fe li v0,254
400028: afc20000 sw v0,0(s8)
40002c: 240200ff li v0,255
400030: afc20004 sw v0,4(s8)
400034: 03c0e821 move sp,s8
400038: 8fbe000c lw s8,12(sp)
40003c: 27bd0010 addiu sp,sp,16
400040: 03e00008 jr ra
400044: 00000000 nop
void set_stack()
{
int a = 0xfe;
int b = 0xff;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment