blob: fbf214b3f7943c4097384a30bb6945229ace7d07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// page no 292
// example no 9.3
// EXCHANGE INFORMATION BETWEEN STACK AND PROGRAM COUNTER
clc;
printf('After the CALL instruction \n \n');
printf('STACK MEMORY: \n \n');
printf('23FFH--> 20 \n');
printf('23FEH-->43 \n');
printf('Stack pointer--> 23FEH \n');
printf('Program counter--> 2070H \n \n');
printf('After RET instruction \n \n');
printf('Program counter--> 2043H \n');
printf('Stack pointer--> 2400H');
|