Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Clearly stated here that 'goto' instruction will affect the first 9 bits in the program memory, branching for more than 9 bits will need to write into bit 9 and 10 of program counter, via STATUS register bit 5 and 6. This is also known as paging.GOTO Unconditional Branch
Syntax: [ label ] GOTO k
Operands: 0 ≤ k ≤ 511
Operation: k → PC<8:0>;
STATUS<6:5> → PC<10:9>
Status Affected: None
Encoding: 101k kkkk kkkk
So the subroutine should be placed in the first 256 wordsNote: Because PC<8> is cleared in the CALL
instruction or any modified PCL instruction,
all subroutine calls or computed
jumps are limited to the first 256 locations
of any program memory page (512 words
long).