Author Topic: WinFloor Demo  (Read 23394 times)

Offline Rob Neff

  • Forum Moderator
  • Full Member
  • *****
  • Posts: 429
  • Country: us
Re: WinFloor Demo
« Reply #15 on: December 04, 2012, 03:36:46 AM »
I've attached a 64-bit version making only some small changes to the original 32-bit version to show how easy it is to do.  For instance, the structures make heavy use of the ptrdiff_t typedef.  This allows the size of the structures to automatically grow when pointers are field members.

Notice how similar this code is when compared to the original 32-bit version.  With the exception of the use of 64-bit registers in certain required locations the majority of the source is unchanged.  Note that this example is not the best way to use the new Win64 calling convention.  However, it does show how easy it is when using NASMX.

Note that the file was modified ( again! ) to include some of the new functions I used for program cleanup such as the addition of WM_CLOSE handling and a change to VKEY processing.  Together, they make for tidy program cleanup.

Edit: Spelling.
« Last Edit: December 04, 2012, 03:38:45 AM by Rob Neff »

Offline Mathi

  • Jr. Member
  • *
  • Posts: 82
  • Country: in
    • Win32NASM
Re: WinFloor Demo
« Reply #16 on: December 04, 2012, 07:52:20 AM »

This is an OpenGL demo for nasm.

;; **Original code by Serge | (C)hardCode |**

I translated this using NASMX macros.

BTW, i noticed that the BREAK macro in NASMX (ver 1.1) is not working as intended.
I am assuming it can be used to break out of DO..WHILE and DO..UNTIL loops.

Offline avcaballero

  • Full Member
  • **
  • Posts: 132
  • Country: es
    • Abre los Ojos al Ensamblador
Re: WinFloor Demo
« Reply #17 on: December 04, 2012, 09:01:41 AM »
Thank you very much for the 64-bit version, Rob, it is a very valuable example on 64 bits coding comparing it with the same 32 bits code.

Great torus example, Mathi.