How does a computer distinguish between Data and Instructions?

前端 未结 2 1621
灰色年华
灰色年华 2021-01-15 04:22

I watched a video on an 8-bit pc being fed a program - manually, using physics switches.

The fed program was:

MAIN:
    0000 0001 0100     # 0 = LDA          


        
2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-15 05:25

    In computer systems an instruction's address comes from PC (Program Counter) and data's address don't come from PC. This is how they are differentiated.

提交回复
热议问题