MaddNich
MaddNich

Reputation: 27

What is the list of the most basic assembly instructions needed to run C?

I am trying to understand how a computer works from transistors to the C programming language. I know that C can run on most x86 architectures. My question is what is the list of the most basic assembly language commands needed to run C (without making a second language to translate between C and the assembly language). I have tried looking this up on Google, but I haven't found anything.

Example of Command: Add A, B, C (adds the values in register A and B and outputs it to register C).

Help is much appreciated.

Upvotes: 0

Views: 820

Answers (1)

Whilom Chime
Whilom Chime

Reputation: 376

BitBitJump is turing complete, meaning you could definitely write a C compiler in it. It has only one instruction, so I guess there's an answer for you :) The instruction copies one bit in memory and passes the execution unconditionally to the address specified by one of the operands of the instruction.

Upvotes: 9

Related Questions