Revision r3033
👤 helixhorned
📅 2012-09-28 08:20:10 -0700 (Fri, 28 Sep 2012)
Port non-pow2 ysize texture mapping routines to MASM, untested.
It's mostly taking over the NASM code, with a couple of changes:
- declarations for externals and globals are slightly different
- the masm seems to have e.g. "dword ptr [...]" where the nasm has only
"dword [...]", though the masm also has a couple of the latter. The "ptr"
modifier seems kinda redundant to me, but I added it to every indirection
anyway.
Revision r3032
👤 helixhorned
📅 2012-09-28 08:20:07 -0700 (Fri, 28 Sep 2012)
a.nasm: add 'dword' to some stores in the nonpow2 routines for consistency.
Revision r3031
👤 helixhorned
📅 2012-09-28 08:20:03 -0700 (Fri, 28 Sep 2012)
engine.c: add compilation switches for non-pow2 ysize functions, disable for now.
Previously, we used them in our builds for sprites, but MSVC builds don't have
the ASM ported to MASM, and thus the workaround of ignoring the linking errors
was not safe.
------------------------------------------------------------------------
Raw Content
------------------------------------------------------------------------
r3034 | helixhorned | 2012-09-28 08:20:13 -0700 (Fri, 28 Sep 2012) | 1 line
engine.c: Split CLASSIC_NONPOW2_YSIZE into _WALLS and _SPRITES, enable the second
------------------------------------------------------------------------
r3033 | helixhorned | 2012-09-28 08:20:10 -0700 (Fri, 28 Sep 2012) | 8 lines
Port non-pow2 ysize texture mapping routines to MASM, untested.
It's mostly taking over the NASM code, with a couple of changes:
- declarations for externals and globals are slightly different
- the masm seems to have e.g. "dword ptr [...]" where the nasm has only
"dword [...]", though the masm also has a couple of the latter. The "ptr"
modifier seems kinda redundant to me, but I added it to every indirection
anyway.
------------------------------------------------------------------------
r3032 | helixhorned | 2012-09-28 08:20:07 -0700 (Fri, 28 Sep 2012) | 1 line
a.nasm: add 'dword' to some stores in the nonpow2 routines for consistency.
------------------------------------------------------------------------
r3031 | helixhorned | 2012-09-28 08:20:03 -0700 (Fri, 28 Sep 2012) | 5 lines
engine.c: add compilation switches for non-pow2 ysize functions, disable for now.
Previously, we used them in our builds for sprites, but MSVC builds don't have
the ASM ported to MASM, and thus the workaround of ignoring the linking errors
was not safe.
------------------------------------------------------------------------