|
|
|
|
|
by _8j50
2495 days ago
|
|
Are you not approaching it a bit too much from a high level perspective? From assembly(x86), most conditionals and loops break down to cmp/test and jmp,jx,jnx type instructions. Computers need to make decisions based on comparisons of data or program state. You can abstract decision making however you want (e.g.: switch statements in place of if/else or usage of goto's) but the computer needs to test or compare and decide on what instruction to execute based on the result. Let me invent a new condtional 'alot': for i in range(0,100):
alot i:
exit(1) instead of testing for boolean true/false. My conditional "alot" tests the result of the evaluation against the value range of the type,if the result is over half of the value range it executes the conditional statement (exit()) Of course I am being a bit silly but my point is my silly conditional much like if/else breaks down to comparing and jumping based on evaluation (i.e: instead of a jz/jnz it will break down to jge) |
|