0

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?

Edited by happygeek: moved

2
Contributors
1
Reply
9
Views
2 Months
Discussion Span
Last Post by rproffitt
0

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.

Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.