Author Topic: Converting Arithmetic Expressions to Assembly  (Read 3008 times)

jj2007

  • Member
  • *****
  • Posts: 8776
  • Assembler is fun ;-)
    • MasmBasic
Re: Converting Arithmetic Expressions to Assembly
« Reply #30 on: April 07, 2018, 05:07:04 AM »
Maybe you can modify mine (fork it) to produce MASM-compatible code?
Sounds intriguing but right now I have absolutely no spare time...

Quote
BTW, 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

  • Regular Member
  • *
  • Posts: 17
Re: Converting Arithmetic Expressions to Assembly
« Reply #31 on: May 01, 2018, 04:08:19 AM »
What do you think about the syntax highlighting for assembly I've just added to my web-app?