Skip to content

Instantly share code, notes, and snippets.

@Izaron

Izaron/objdump Secret

Created January 2, 2025 20:09
Show Gist options
  • Select an option

  • Save Izaron/b241bfd9fffab3a1731c74f5ba37d07c to your computer and use it in GitHub Desktop.

Select an option

Save Izaron/b241bfd9fffab3a1731c74f5ba37d07c to your computer and use it in GitHub Desktop.
a.o: file format elf32-m68k
Disassembly of section .text:
00000000 <_Z4workv>:
0: 4e56 fffc linkw %fp,#-4
4: 48ee 0004 fffc moveml %d2,%fp@(-4)
a: 2039 00ff 0004 movel ff0004 <_Z4workv+0xff0004>,%d0
10: 2239 00ff 0000 movel ff0000 <_Z4workv+0xff0000>,%d1
16: 2401 movel %d1,%d2
18: 9480 subl %d0,%d2
1a: 6e18 bgts 34 <_Z4workv+0x34>
1c: d0bc 0000 0001 addl #1,%d0
22: 23c1 00ff 0008 movel %d1,ff0008 <_Z4workv+0xff0008>
28: d2bc 0000 0001 addl #1,%d1
2e: 2400 movel %d0,%d2
30: 9481 subl %d1,%d2
32: 66ee bnes 22 <_Z4workv+0x22>
34: 4cee 0004 fffc moveml %fp@(-4),%d2
3a: 4e5e unlk %fp
3c: 4e75 rts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment