News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Converting Arithmetic Expressions to Assembly

Started by UniverseIsASimulation, February 24, 2018, 06:50:31 AM

Previous topic - Next topic

jj2007

Quote from: UniverseIsASimulation on April 07, 2018, 12:26:16 AM
Maybe you can modify mine (fork it) to produce MASM-compatible code?
Sounds intriguing but right now I have absolutely no spare time...

QuoteBTW, I can't find out, what do "m2m" and "fp4" mean exactly in MASM?

m2m is mem to mem:

m2m someint32, someotherint32 basically translates to

push someotherint32
pop someint32

FP4(123.456) creates a REAL4 in the .data section. You can use it, for example, as
fld FP10(1.234567890123456789)
fsub FP4(123.456)
fmul FP8(0.1234567890123456)

UniverseIsASimulation

What do you think about the syntax highlighting for assembly I've just added to my web-app?
Author of the AEC programming language:
https://flatassembler.github.io/compiler.html

UniverseIsASimulation

I've put some effort into designing the way the web-app looks. Do you like it? The layout works in IE6, IE9 and IE11, and all the non-Internet-Explorer browsers I've tested it in except Safari 5, but it breaks in IE7, IE8 and IE10.
Author of the AEC programming language:
https://flatassembler.github.io/compiler.html

UniverseIsASimulation

000webhost has banned me for hate speech, so I moved my website to GitHub Pages. So, the ArithmeticExpressionCompiler is now available here. Now it supports GNU Assembler as well as FlatAssembler. And now it can not only be run in a browser or Duktape, but also in NodeJS, the NodeJS executable is available here. A relatively long example program it can compile is available here (it's the implementation of the linearithmic-time sorting algorithm I made).
Author of the AEC programming language:
https://flatassembler.github.io/compiler.html