greeeg 460 Posted November 13, 2011 Share Posted November 13, 2011 So I've been working on my own version of a printf Written entirely in ASM it currently supports: - Fixed lengh: %03u = "010" - Zero or space filled: %3X = " A" - Hex - Integer (0 - 65535) - Strings (Due to the memory structure of MSP strings can be in flash or RAM) - Characters - Binary - Octal With all options on size is just over 200 bytes. No support for long ints (32 bits wide)...Yet. No support for signed integers, but I am trying to work that one out. (Any help on implementing these would be great. ) This code isn't exactly fully completed yet but still very functional. run: "make prog" to program to msp430g2231 for a serial demo. Demo code requires mspgcc to build. (I used the uniarc version) xprint.zip bluehash, lvagasi, oPossum and 2 others 5 Quote Link to post Share on other sites
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.