Thread: Using VPrintf
View Single Post
Old 17 October 2018, 22:59   #3
guy lateur
Registered User
 
guy lateur's Avatar
 
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
Quote:
Originally Posted by StingRay View Post
You are using wrong parameters. d1 is the text to print, d2 is the formatting array.
Yep, that indeed is apparently the case. The code above works as expected when I apply your changes. It's weird, though, because in the docs (http://amigadev.elowar.com/read/ADCD.../node030D.html) it says D1 is the formatting string, and D2 is a pointer to the array of formatting values (ie, values to be formatted, I assumed). Am I reading the wrong docs?

And how about decimals, btw? If I write this:
Code:
	EVEN
text1:
	dc.w 	555
	EVEN
argv11:
	dc.b 	"%d",0
	EVEN
text1Format:
	dc.l 	argv11,0
it outputs +33. Quite baffling, I must say..
guy lateur is offline  
 
Page generated in 0.05290 seconds with 11 queries