Felipe Calderon
Felipe Calderon

Reputation: 695

Does machine code use ascii? What is the difference?

As the question states it, what is the relationship between both? The representation of number 0, which would be 00110000, is the same to its representation in machine code?

Upvotes: 0

Views: 1351

Answers (1)

paxdiablo
paxdiablo

Reputation: 881423

No, machine code itself doesn't use any character encoding. There are no characters in binary, only bits.

A particular machine may use ASCII in which case an assembler for it would turn '0' into 0x30 but not all machines use ASCII.

For example, the System z mainframes use EBCDIC under z/OS so the assembler there would use that encoding when generating machine code.

Upvotes: 1

Related Questions