The following method is possible if, for example, the 78K4 is used and the internal
ROM area is from 0 to 0F0FFH.
(1) Describe the assembler source test2.asm in which the BR instruction
to return to the initialization routine at address 0F0FBH is as follows.
--- test2.asm ---
CODE CSEG AT 0F0FBH
MOVW AX, !0H ; 3 bytes
BR AX ; 2 bytes
END
-----------------
(2) Assemble the above module.
> ra78k4 -cpXXX test2.asm
(3) Link with user-created object test.rel.
> lk78k4 s4l.rel test.rel test2.rel -s -bcl4.lib -otest -ptest
(4) Fill the vacant ROM area with NOP (00H) using the object converter.
> oc78k4 -u00h test.lmf
For debugging, download the Hex file created in (4) above.
Also download the lmf file for symbol debugging.
-78K4-