i have written a code on assembler... when we enter the mnemonics it will give opcode... when i use %x in the printf it is giving correct opcode.. but when i use %c or %s it is printing some different characters.. but what i want is if i use %s also then it should give correct opcode... how to do this??
karthik.datt
0
Newbie Poster
Recommended Answers
Jump to PostIt depends on how you've defined the OP Codes and the mnemonics.
Jump to PostC isn't any different from assembly in that there's no magic. The byte representation of an integer isn't going to be meaningful when directly displayed as characters. What *printf() does is convert the value to an string representation along the lines of:
/* Very basic, do not …
All 5 Replies
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
karthik.datt
0
Newbie Poster
karthik.datt
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.