226
Miscellaneous / My Little Pony: Friendship is Magic
« on: July 20, 2011, 01:25:15 pm »
I see no mention of ponies anywhere! This has now been corrected.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to. 226
Miscellaneous / My Little Pony: Friendship is Magic« on: July 20, 2011, 01:25:15 pm »
I see no mention of ponies anywhere! This has now been corrected.
227
Other Calc-Related Projects and Ideas / Re: You can help us solve a few mysteries!« on: July 19, 2011, 02:25:55 pm »
Not sure if this is still needed, but here's some more data:
1. 84+ 2. S-0304 3. No (as far as I know) 4. #2 5. Yes 6. 44 7. 0F 8. 04DA 9. 000000 228
Computer Projects and Ideas / Re: SharpAsm - use assembly directly from C#« on: July 18, 2011, 02:59:37 pm »
To clarify, the code is stored in the executable as a string, and will only be assembled when the constructor of the relevant Asm object is ran. You don't have you use it like that though - it can also take an array of bytes, which saves you the overhead of assembling the code at runtime, but it's less convenient.
229
Computer Projects and Ideas / SharpAsm - use assembly directly from C#« on: July 17, 2011, 02:16:19 pm »
I don't know how many people here use C# (not many, going by the Programming Help topics..)
But this might be interesting anyway. SharpAsm is a small library I wrote that lets you write a function in assembly and use it directly from C#. It's very easy to use, for example: Code: [Select] Asm asm = new Asm(@" Obviously assembling the code takes a little time. When I use this library, I usually create all asm routines in a static constructor and then keep reusing the same delegate for all instances.Source (the assembler): http://dl.dropbox.com/u/27035142/SharpAsm/Assembler.cs Source (executable memory manager): http://dl.dropbox.com/u/27035142/SharpAsm/ExecutableMemory.cs The assembler uses string manipulation instead of actual parsing, and is kind of kludgy. It also doesn't include all opcodes and doesn't always use the smallest encoding (eg not the special eax forms). edit: almost all of SSE, SSE2, SSE3, SSSE3 and SSE4.1 is now supported. Just redownload the files. Please report any bugs .. if anyone actually uses this (uhm no) |
|