Quote:
Originally Posted by StingRay
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..