Hello fellow programmers;

So i am currently working with machine language using CPUSim Wombat 1 machine.

Just wondering if its possible to create a storage and store negative numbers (say -1 ) in it. If so, how do you do it?

I take it you need to read more from https://www.google.com/search?q=negative+numbers+in+assembler

That is, to implement a negative number you have to implement a sign bit and test then handle it accordingly.

As to machine language I have yet to see folk do that today. Usually it's done in assembler (language) since few get intimate enough to write in machine language of ones, zeros and hex or other machine code. To me and everyone at the office, machine code is not assembler.

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.