SCPU question

From: Ullrich von Bassewitz <uz_at_musoftware.de>
Date: Tue, 24 Dec 2019 15:04:54 +0100
Message-ID: <20191224140454.GA24667_at_trixie.musoftware.de>
It seems I'm doing something wrong with the SCPU.

I have a program that runs in native mode of the SCPU. That is, it does the
following on startup:

        sta     SCPU_Fast               ; Enable fast mode
        sta     SCPU_EnableRegs         ; Enable SCPU registers
        sta     SCPU_VIC_Bank1          ; Enable video optimizations for $4000
        sta     SCPU_DisableRegs        ; Disable SCPU registers
        clc
        xce                             ; Enable 65816 native mode
        rts

The program itself runs fine until I'm going to call the C64 kernal to load a
file. Before calling the kernal, I'm doing

        sec
        xce

but the program crashes when the kernal is called. Switching to slow mode
manually has no effect (still crashes), so I haven't tried it
programmatically. Is there anybody else I'm missing?

BTW: The program runs fine in VICE, so I'm not able to debug it in VICE.

Merry christmas everybody!


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
Encrypted email preferred                          PGP Key-Id: 29D93B10
Received on 2020-05-29 23:58:38

Archive generated by hypermail 2.3.0.