Quote (NinjaSushi2 @ Jan 30 2014 10:36pm)
Ah I see. So the os hands down the initial machine code values. Then any other higher languages would modify such values as need fit.
yeah but your use of the word modify is problematic. Lets take the binary value: 00110101, which in base10 is 53
add:
if you call a function that adds numbers with 00110101 with 00000001; you will get 00110110 or in base 10 you get 54
print
if you call a function that prints to the screen with 00110101; you will get "5" on the screen because base10 53 is ascii for the character "5"
pointer:
if you call a function to expects an memory location as an input with 00110101; the function will use whatever is stored in memory location 00110101 and use that as its input
silly:
you might even have a function that expects this kind of input based on each digit of binary:
male?:hashair?:over30?:likecupcakes?:collegegraduate?:HasDiabetes?:PlaysD2?:LikesTurtles: in which case 00110101 would mean: A woman, who is bald, who is over 30, who likes cupcakes, is not college graduate, has diabetes, does not play d2, and like turtles.