C
Computer_Czar
I'm trying to figure out the best way to parse an input string from a file
for hex values. The string is actually Motorola S code produced by an
embedded assembler. For example lines contain S1142CD0XXYYZZ... I've
written similar programs in C/C++ where I save the string and use a pointer
to index along the string.
Well I've heard pointers are "evil" within C# but possible. Given that what
would be the desired method? Some of the values are 16 bit and some are 8
bit so I need to be flexible. Plus I'd also like to convert the hex values
to decimal for some math.
Can someone give me a recommendation or a "pointer" to how to approach it?
for hex values. The string is actually Motorola S code produced by an
embedded assembler. For example lines contain S1142CD0XXYYZZ... I've
written similar programs in C/C++ where I save the string and use a pointer
to index along the string.
Well I've heard pointers are "evil" within C# but possible. Given that what
would be the desired method? Some of the values are 16 bit and some are 8
bit so I need to be flexible. Plus I'd also like to convert the hex values
to decimal for some math.
Can someone give me a recommendation or a "pointer" to how to approach it?