danwinslow Posted February 20, 2006 Share Posted February 20, 2006 (edited) Whats the easiest way in assembler to convert 2 byte integers ( C int ) into a 5 byte string? Not looking for complete solutions, just general direction. Edited February 20, 2006 by danwinslow Quote Link to comment Share on other sites More sharing options...
danwinslow Posted February 20, 2006 Author Share Posted February 20, 2006 Bah nm, too easy. Repeated subtractions for the win. Quote Link to comment Share on other sites More sharing options...
Rybags Posted February 20, 2006 Share Posted February 20, 2006 The built in floating point routines do binary to floating point conversion. From there, it's fairly simple to convert from floating point to ASCII. Quote Link to comment Share on other sites More sharing options...
danwinslow Posted February 20, 2006 Author Share Posted February 20, 2006 No, I just needed 2 byte int to 5 byte string...pretty easy. But to add insult to injury, there was already an itoa() in CC65, lol. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.