|Re: call Kategorie: Programmierung (von Eric - 27.07.2001 13:01)|
Als Antwort auf Re: call von Robert - 26.07.2001 23:52
Hello all CC2 speed freaks,|
I found a cure for the bug in the CC2's system.call() routine! After disassembling the os.hex file I found that when returning from the assembly code back to the C2 program, the return address on the stack points to the code used by system.jump() which causes the reboot.
By removing this address from the stack every thing works fine!
You can now write assembly code to exploit the full speed of the CC2. If any one is interested I can post the disassembled and annotated version of the os.hex file to this forum. This allows you to see what the CC2 is doing when it is executing yor C2 program.
Assemble following program using "a166 test.asm" and convert it into
a hex file with "ihex166 test.obj -o test.hex". Load the hex file
in the CC2. All tools and the file "reg164cl.def" are supplied on the CD.
The program can be called from your program using:
The sample code sets pin P1L.3 as an example:
USERSEGSECTIONCODE WORD AT 30000H
Re: call (von Robert - 29.07.2001 12:27)
Wrong e-mail-address (von André H. - 29.07.2001 12:51)
Re: call (von Eric - 27.07.2001 13:10)