Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .assembly extern mscorlib{}
- .assembly extern System.Runtime
- {
- .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
- .ver 5:0:0:0
- }
- .assembly extern System.Console
- {
- .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
- .ver 5:0:0:0
- }
- .assembly Calculator{}
- .module Calculator.exe
- .namespace Calculator
- {
- .class public auto ansi beforefieldinit Program extends [System.Runtime]System.Object
- {
- .method private hidebysig static void Main(string[] args) cil managed
- {
- .entrypoint
- .maxstack 8
- .locals init(
- [0] int32 firstValue,
- [1] int32 secondValue,
- [2] string character
- )
- ldstr "Введите первое число: "
- call void [System.Runtime]System.Console::Write(string)
- call string [System.Runtime]System.Console::ReadLine()
- call int32 [System.Runtime]System.Int32::Parse(string)
- stloc.0
- ldstr "Введите второе число: "
- call void [System.Runtime]System.Console::Write(string)
- call string [System.Runtime]System.Console::ReadLine()
- call int32 [System.Runtime]System.Int32::Parse(string)
- stloc.1
- ldstr "Введите знак: "
- call void [System.Runtime]System.Console::WriteLine(string)
- call string [System.Runtime]System.Console::ReadLine()
- stloc.2
- ldloc.0
- ldstr "+"
- call bool [System.Runtime]System.String::op_Equality(string, string)
- brfalse.s IL_0008
- IL_0001: ldstr "Result is {0}"
- IL_0002: ldloc.0
- IL_0003: box [System.Runtime]System.Int32
- IL_0004: ldloc.1
- IL_0005: box [System.Runtime]System.Int32
- IL_0006: call string [System.Runtime]System.String::Format(string, object, object)
- IL_0007: call void [System.Runtime]System.Console::WriteLine(string)
- br IL_0010
- IL_0008: ldstr "Undefined character"
- IL_0009: call void [System.Runtime]System.Console::WriteLine(string)
- IL_0010: ret
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement