Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: Trying to make a converter Pin
harold aptroot18-Feb-14 4:37
harold aptroot18-Feb-14 4:37 
GeneralRe: Trying to make a converter Pin
daddy35618-Feb-14 6:06
daddy35618-Feb-14 6:06 
GeneralRe: Trying to make a converter Pin
harold aptroot18-Feb-14 6:25
harold aptroot18-Feb-14 6:25 
GeneralRe: Trying to make a converter Pin
harold aptroot18-Feb-14 10:12
harold aptroot18-Feb-14 10:12 
GeneralRe: Trying to make a converter Pin
daddy35618-Feb-14 10:48
daddy35618-Feb-14 10:48 
GeneralRe: Trying to make a converter Pin
harold aptroot18-Feb-14 22:09
harold aptroot18-Feb-14 22:09 
GeneralRe: Trying to make a converter Pin
daddy35619-Feb-14 3:38
daddy35619-Feb-14 3:38 
GeneralRe: Trying to make a converter Pin
harold aptroot19-Feb-14 4:34
harold aptroot19-Feb-14 4:34 
Now now, I'm not that great..
I'd like that brain interface thing though

Anyway, 19 is division, and I still don't understand the control flow. It's weird. 29 is definitely involved somehow.

For example, take
import units.types.Base;

class Test
{
   object _first;
   object _second;
   
   somefunction()
   {
      return 1 / otherfunction();
   }
   
   otherfunction()
   {
      return 1;
   }
}

Compiled to:
44584500 72000000 00000000 07E54100 // header stuff?
01 // import
756E6974 732E7479 7065732E 42617365 00 // import name
04 // class
54657374 00 // class name
02 // field
5F666972 737400 // field name
02 // field
5F736563 6F6E6400 // field name
03 // function def
50000000 // pointer to function code (little endian, add 0x10)
736F6D65 66756E63 74696F6E 00 // fundtion name
03 // function def
64000000 // pointer to function
6F746865 7266756E 6374696F 6E00 // function name
05 // end of class?
00 // ???
27 // ?? always seems to start a function, no idea what it does
00 // possibly an argument to the 27?
06 0000803F // load 1
0E 03 // load 3rd thingy of this-object (otherfunction)
2D 00 2F // probably something to do with invoking that function
19 // the division
29 63000000 // jump to 00000063 ?? (see label1)
0A // dunno, always seen near the end of a function
00 // dunno either, always at the end of a function, label1 points here
27 // already covered
00 //
06 0000803F // load 1
29 71000000 // jump to label2
0A // ??
00 // label2 points here

Label refs are little endian absolute addresses and start at 0 directly after the 16-byte header.
GeneralRe: Trying to make a converter Pin
daddy35619-Feb-14 5:35
daddy35619-Feb-14 5:35 
QuestionC# string formatting Pin
Member 1059957015-Feb-14 13:47
Member 1059957015-Feb-14 13:47 
AnswerRe: C# string formatting Pin
Mycroft Holmes15-Feb-14 17:07
professionalMycroft Holmes15-Feb-14 17:07 
AnswerRe: C# string formatting Pin
OriginalGriff15-Feb-14 23:06
mveOriginalGriff15-Feb-14 23:06 
AnswerRe: C# string formatting Pin
V.16-Feb-14 21:05
professionalV.16-Feb-14 21:05 
QuestionClick Event On DataGridview Cell Pin
Soahib jamil15-Feb-14 1:36
Soahib jamil15-Feb-14 1:36 
AnswerRe: Click Event On DataGridview Cell Pin
Richard MacCutchan15-Feb-14 1:41
mveRichard MacCutchan15-Feb-14 1:41 
AnswerRe: Click Event On DataGridview Cell Pin
Peter Leow15-Feb-14 1:50
professionalPeter Leow15-Feb-14 1:50 
QuestionHow to deserialize the hexadecimal value ? Pin
rkarthickbeece14-Feb-14 19:26
rkarthickbeece14-Feb-14 19:26 
AnswerRe: How to deserialize the hexadecimal value ? Pin
Richard Andrew x6414-Feb-14 19:34
professionalRichard Andrew x6414-Feb-14 19:34 
AnswerRe: How to deserialize the hexadecimal value ? Pin
BillWoodruff14-Feb-14 22:27
professionalBillWoodruff14-Feb-14 22:27 
AnswerRe: How to deserialize the hexadecimal value ? Pin
PIEBALDconsult15-Feb-14 3:29
mvePIEBALDconsult15-Feb-14 3:29 
QuestionC and C# similarities!!! Need Help....Beginner!!! Pin
Member 1058315014-Feb-14 12:09
Member 1058315014-Feb-14 12:09 
AnswerRe: C and C# similarities!!! Need Help....Beginner!!! Pin
PIEBALDconsult14-Feb-14 13:02
mvePIEBALDconsult14-Feb-14 13:02 
GeneralRe: C and C# similarities!!! Need Help....Beginner!!! Pin
Member 1058315014-Feb-14 13:31
Member 1058315014-Feb-14 13:31 
GeneralRe: C and C# similarities!!! Need Help....Beginner!!! Pin
OriginalGriff14-Feb-14 22:50
mveOriginalGriff14-Feb-14 22:50 
AnswerRe: C and C# similarities!!! Need Help....Beginner!!! Pin
Peter Leow14-Feb-14 18:23
professionalPeter Leow14-Feb-14 18:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.