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


  • Member
  • *****
  • Posts: 8225
  • 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...

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)