View Single Post
Old Nov 7th, 2005, 2:39 PM   #3
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 296
Rep Power: 4 Klarre is on a distinguished road
Thanks for the link! It took me back on track again.

But...

I got that I should use the cdq instruction to extend the eax to edx. Right?

Am I thinking correct if I try using this rewritten code instead of the old one?

_gluLookAt macro A1, A2, A3, A4, A5, A6, A7, A8, A9
	mov eax, A9
	cdq
	push eax
	push edx

	mov eax, A8
	cdq
	push eax
	push edx

	...

	mov eax, A1
	cdq
	push eax
	push edx

	call gluLookAt
endm
Klarre is offline   Reply With Quote