How do you define “if” for computers?

422 views

I’m not a programmer, how do you get from binary 1s and 0s to “if x occurs complete y” How do you tell the computer to wait for a future input?

In: 2

11 Answers

Anonymous 0 Comments

CPUs have a BNE (branch not-equal) instruction, or similar. Code can set a register, and based on the state of that register (0 or 1) code either continues or jumps to another location.

You are viewing 1 out of 11 answers, click here to view all answers.