News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Asm_Datagenerator like gui bin2inc

Started by Nordwind64, May 14, 2007, 08:27:48 PM

Previous topic - Next topic

Nordwind64

I modified my XProfan Datagenerator to Asm Datagenerator. It's a gui based binary-to-inc tool like bin2inc.
Made with XProfan and my Inline Assembler XPIA.
Hope you like it.

Best regards,
Nordwind64

[attachment deleted by admin]
Greetings, Nordwind.
Windows 7 (64Bit), JWASM/PoLink

ramguru

I think you should use at least unsigned numbers  :lol
Also selecting data type dd, dw, db ;
or choosing between hex and dec form
would be useful.

Nordwind64

Hi.

Why not using signed numbers? I think, it's the shortest way to use binary as data. And as DWORD.  :P
Works perfect.
Greetings, Nordwind.
Windows 7 (64Bit), JWASM/PoLink

Nordwind64

Hi.

Question to the forum: What is better? Hex oder Dec? DD or DB? Other?

Best regards,
Nordwind
Greetings, Nordwind.
Windows 7 (64Bit), JWASM/PoLink

Tedd

The option to choose is probably best :wink
No snowflake in an avalanche feels responsible.

Nordwind64

Greetings, Nordwind.
Windows 7 (64Bit), JWASM/PoLink

Nordwind64

Hi,

I made a new dec/hex-version of my ASMDatagenerator. You find it at my webpage.
Greetings, Nordwind.
Windows 7 (64Bit), JWASM/PoLink

Ehtyar

Direct link here: http://frabbing.de/_asmdg.html. Website is in German, but it has some nice resources. The utility is VERY nice, I'm particularly impressed with the "max datas per line" option, very thoughtful.
I'm guessing this XProfan language you've written it in is a German-only language, as i can't find any english resources on it. Just piqued my curiosity when i saw it had an inline assembler.
Anyway, great work, thank you :U

Ehtyar.

Nordwind64

Thank you Ehtyar!

Yes, XProfan is a genial german program language. There exists only a very old version with english documentation. XProfan is an interpreter language, but able to build an exefile, just like VB.
The Inline Assembler (XPIA) was written by me. It uses MASM32 to compile a dll with functions from the assemblercodes in the sourcecode. This dll is build in to the programm-exe as data memory module. The inline assembler code can make use to all MASM32 stuffs, e.g. MACROS, LIBRARIES, ...
Here's an examplecode:

{$cleq}
Declare x&

Cls

Print
Print "Ermittelte Frequenz der CPU dieses Computers: ";

AsmStart GetCpuSpeed

  .data
 
    var1  dq  0
    var2  dq  1000000
    var3  dq  0
 
  .code
  .686p

  invoke GetCurrentProcess
  invoke SetPriorityClass,eax,REALTIME_PRIORITY_CLASS
  invoke GetCurrentThread
  invoke SetThreadPriority,eax,THREAD_PRIORITY_TIME_CRITICAL;

  rdtsc

  lea edi,var1
  mov [edi],eax
  mov [edi+4],edx
 
  invoke Sleep,1000

  rdtsc

  lea edi,var1
  sub eax,[edi]
  sbb edx,[edi+4]
  mov [edi],eax
  mov [edi+4],edx

  fild  var1
  fild  var2
  fdiv
  fistp var3

  invoke GetCurrentProcess
  invoke SetPriorityClass,eax,NORMAL_PRIORITY_CLASS

  lea edi,var3
  mov eax,[edi]

AsmEnd(x&)

Print Str$(x&)+" MHz."

WaitInput
End


XProfan is slow, but very powerful and easy to use. All code, that have to be run fast, I release in MASM32 Assembler. XProfan and MASM32 in the same code, that's possible with my XPIA.  :U
Look here, if you're interested in it: http://xprofan.com/. I'm one of the admins on this board. But sorry, only german language...
Greetings, Nordwind.
Windows 7 (64Bit), JWASM/PoLink

Ehtyar

I checked out XProfan.com yesterday but couldn't make a whole lot of it. Still i have one question. I have encountered one or two languages that tend to be for a single language only, and yet all their directives/functions are in english??? Why is that? (your english is quite good as well)
Very impressive with the inline assembler, you're doing some really impressive work Nordwind :U

Ehtyar.

Nordwind64

Hm, I think, all existing programming languages bases still on the old programming language BASIC. At that time English was the only language, which computers supports. That remained until today. German function names read themselves very strangely.  :P
Greetings, Nordwind.
Windows 7 (64Bit), JWASM/PoLink