programmercts
Programmer
HI
Is it mandatory that with one base register we can only access upto 4k addressablity of particular code. Although with one register we can go beyond 4K addressablity. But normally in assembly it is always that with one base register we only access upto 4K. And if code size is greater than 4K we will use two base register upto 8K.
So is it the limitation of OS my means to say that PAGE SIZE issued by OS are also of 4K. so if code is greater than 4K, two pages will be used & and we have to use different base register for different page.
Or it is due the displacements used in opcodes they are limited to three nibbels (FFF). That makes it to maximum use of 4K in a single code with one base register.
So somebody know what is the actual reason of using 4K with single base register.
Is it mandatory that with one base register we can only access upto 4k addressablity of particular code. Although with one register we can go beyond 4K addressablity. But normally in assembly it is always that with one base register we only access upto 4K. And if code size is greater than 4K we will use two base register upto 8K.
So is it the limitation of OS my means to say that PAGE SIZE issued by OS are also of 4K. so if code is greater than 4K, two pages will be used & and we have to use different base register for different page.
Or it is due the displacements used in opcodes they are limited to three nibbels (FFF). That makes it to maximum use of 4K in a single code with one base register.
So somebody know what is the actual reason of using 4K with single base register.