Ex:6.2
since the given problem tell me that the numbers given are in hexadecimal
the meaning of
BSA 103
is : go to the location 103 and save the return address there
the return address is the value of the PC when the BSA 103 is executed
which is in this question 101
remember !! that PC=address of the instruction that is executes + 1
now when we go to address 103 that contains 0000 ; we save the return address there
the solution in the video tells that the content of 103 is 5101
but if it was
6101 or 4101 or 7101 or #101
it does not matter since the
BUN 103 I
will read just the first 12 bits from the location 103
which represent the return address 101 ^^
في مثال 6.2
الموقع 103 بيمثل بالذاكره مكان لتخزين ال
return address
BSA 103
تعني روح على الموقع 103 بالذاكره وخزّن هناك قيمه ال
return address
return address = 101
وهي قيمة ال PC
لما تنفذت الجمله
BSA 103
صارت قيمه الموقع 103
0101
وهي قيمه ال
return address
الحل في الفيديو حاط انه القيمه
5101
هل حكي مش غلط لانه بس اقرا من هل
location
رح اقرا
address
والي هو 12 بت فقط
اي يعني 101