Author Topic: OpenGL Glut32 example  (Read 2049 times)

Mikl__

  • Member
  • ****
  • Posts: 980
Re: OpenGL Glut32 example
« Reply #15 on: May 26, 2020, 08:57:44 AM »
Hi, nidud!
Files from a new attachment work correctly. Thank!

nidud

  • Member
  • *****
  • Posts: 1972
    • https://github.com/nidud/asmc
Re: OpenGL Glut32 example
« Reply #16 on: May 26, 2020, 10:29:55 PM »
Been making some changes to the float handling in INVOKE and 16 new errors occurred.

Values in the headers are defined as integers and passed as floats. This works in C as they will be converted by the compiler but that is not the case in assembler. INVOKE moves the value to EAX and use MOVD to XMM so no testing is done. Now immediate values are created in the DATA section and this includes at least a range test, hence the errors.

The source is updated but there are still a few of them not working.