OT: hex to decimal conversion

Dec 03, 2004 28 Replies

Sure, why not.

So this is a memory mapped IO card? Is the address really DC00, or is it really (much more likely) DC000, usually accessed using DC00 as the "segment" address, as in DC00:0?

If you are running any protected mode OS, (pretty much any version of windows) you are in trouble, since you cannot get direct access to memory without a device driver.

If you can boot DOS, you can type DEBUG at the command line, then type d dc00:0 to dump the memory at that address. It will be in hex, but then you can use any hex calculator to convert it to decimal. Q will return to the command line.

By the way, you can run the debugger in a command prompt window, but you'd be displaying virtual memory, not real physical memory.

SteveA

Real(TM) smartasses run Unix.

That's a 7 character dc(1) script: 16i ? p

A slightly friendlier version, direct from the shell prompt: dc -e "16i [hex number:]P ? p"

-Ron

Windows Accessories -> Calculator. Set it to the "Scientific" view.

-jc-

I was more interested in what kind of control are you running in a pc?

What OS? I can do it for linux or QNX. That sounds like an IO address. It is a very quick job.\ Pat

Thanks for the offer. I got to the supervisor at the tech. help desk. He solved the problem with a registry edit - really smart guy. Now I'm on to the next chanllenge.

Karl

Hi Pat,

I'm curious as to what the NRC is using QNX for? I was a QNX guy for a number of years and loved it, but haven't had a chance to use it for a long time. Don Nichols mentioned OS 9 in an earlier post, which I never did use, but a lot of folks used to compare to QNX.

I guess there are bound to be a lot of realtime folks on this list, given CNC and all.

Adam Smith, Midland ON

I worked at QNX for a while ( in the CES group). The IAR (Institute for Aerospace Research) has several wind tunnels, one of which uses QNX ( the QNX box is beening phased out, replaced by Linux). Qnx 4 was GREAT, I don't have much experience on the new QNX other then some early flash file system work. At the windtunnel I work at the run times can be very short ( less then a second) and windspeed is fast to Mach 4.25. with some of the models costing multimillions of dollars, and beening actively driven ( roll, pitch and yaw) realtime control is important. Pat

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required