The following method is possible if, for example, the 78K0S is used and the internal
ROM area is from 0 to 3FFFH.
(1) Describe the assembler source test2.asm in which the BR instruction
to return to the initialization routine at address 3FF8H is as follows.
--- test2.asm ---
CODE CSEG AT 3FF8H
MOV A, !0H ; 3 bytes
XCH A, X ; 1 byte
MOV A, !1H ; 3 bytes
BR AX ; 1 byte
END
-----------------
(2) Assemble the above module.
> ra78k0s -cpXXX test2.asm
(3) Link with user-created object test.rel.
> lk78k0s s0sl.rel test.rel test2.rel -s -bcl0s.lib -otest -ptest
(4) Fill the vacant ROM area with NOP (00H) using the object converter.
> oc78k0s -u00h test.lmf
For debugging, download the Hex file created in (4) above.
Also download the lmf file for symbol debugging.
-78K0S-