Zur Übersicht - INFO - Neueste 50 Beiträge - Neuer Beitrag - Suchen - FAQ - Zum CC1-Forum - Zum CC-Pro-Forum

Re: call Kategorie: Programmierung (von Eric - 25.07.2001 22:21)
Als Antwort auf Re: call von Robert - 25.07.2001 14:57

I am also trying to call some assembly routine from a C2 program. I'm able to call to routine in segment 3, it executes correctly, but at the RETS instruction the C-Control reboots.
To find out what wrong I'm now trying to disassemble the os.hex file! I use the CrossView debugger supplied on the CD (just read the os.hex file as an image). So far I found a jump table for all VM-codes at address 0x394. For the call function (code 62) the entry is 0x3db6. At this address I see a construction to call the assembly routine. However, how it works I haven't figured out -yet-. It seems R4 and R5 hold the segment and offset to be called, by pushing these on the stack and performing a RETS instruction, the call is made.



    Antwort schreiben


Antworten:

Re: call (von mafoe's ghost - 26.07.2001 21:44)
    Re: call (von Robert - 26.07.2001 23:52)
        Re: call (von Eric - 27.07.2001 13:01)
            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)
Re: call (von Robert - 26.07.2001 11:23)