Skip to content

Instantly share code, notes, and snippets.

@aensidhe
Created July 28, 2016 20:12
Show Gist options
  • Save aensidhe/6a22ea0e9f865be76f9ee9d22cc6fe0f to your computer and use it in GitHub Desktop.
Save aensidhe/6a22ea0e9f865be76f9ee9d22cc6fe0f to your computer and use it in GitHub Desktop.
valid il can contain several rets
.assembly test.msil {
.hash algorithm 0x00008004
.ver 2:0:0:0
}
.method static void main()
{
.entrypoint
.maxstack 1
ldstr "Hello world!"
brinst SECOND
ldstr "First"
call void [mscorlib]System.Console::WriteLine(string)
ret
SECOND:
ldstr "Second"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment