xemu problem

32 views
Skip to first unread message

Gurce Isikyildiz

unread,
Jul 24, 2019, 8:10:45 AM7/24/19
to MEGA65 Development
Hi all,

Wondering if Gabor is still around to ping for Xemu problems? Let's see :)

I'm trying to get my head back into gear for the mega65 world again, and wanted to try get xemu up and running again to try get my sf2 port working via it :)

I've managed to build and run it again, but now my problem is that it doesn't seem to be allowing me to attach an external .d81 image via a parameter anymore.

I used to be able to do so via commands such as this:

build/bin/xmega65.native -8 /path/to/diskimage.d81

But it seems to get ignored for me now...

I tried debugging a little tonight, and saw this point it reached in "sdcard.c":

static void sdcard_mount_d81 ( Uint8 data )
{
        DEBUGPRINT("SDCARD: D81: mount register request @ $D68B val=$%02X at PC=$%04X" NL, data, cpu65.pc);
        if ((data & 3) == 3) {
                int use_d81;
                mounted = 0;
                if (*external_d81) {    // request for external mounting
                        if (first_mount) {
                                first_mount = 0;
                                use_d81 = 1;
                        } else
                                use_d81 = QUESTION_WINDOW("Use D81 from SD-card|Use external D81 image/prg file", "Hypervisor mount request, and you have defined external D81 image.");
                } else

For me, I notice that 'data' = 0, hence why this test for data & 3 is false, hence why I don't get a popup window offering me to mount the d81 image, like I recall seeing in the past.

Any ideas? I'll keep debugging on my end...

Gurce

Gurce Isikyildiz

unread,
Jul 24, 2019, 9:53:11 AM7/24/19
to MEGA65 Development
Ok, after debugging some more, it seems to be triggering this part of xemu from "kickstarter_dos.a65" at this point:

trap_dos_d81attach:

        .invoke checkpoint "trap_dos_d81attach"

        lda #$00
        sta $d68b

        jsr dos_d81attach
        jmp return_from_trap_with_carry_flag



So, xemu is expecting the data fed into io-register $d68b to be #$03 in order for it to consider mounting the disk, but it's being fed #$00?

Not sure of the full story here, will try debug it further...

Paul Gardner-Stephen

unread,
Jul 24, 2019, 4:13:37 PM7/24/19
to Gurce Isikyildiz, MEGA65 Development
Hello,

The $00 is to clear any prior mounted disk images, before then trying to mount them.  LGB is certainly still about (I have an unrelated email from him today).  Let's see if he replies.  Also, we have moved all forum discussions over to forum64.de as the official home (in English and German).  If you go to mega65.net, you will get redirected to the forum. There is a sub-forum there for emulation.

Paul.

--
You received this message because you are subscribed to the Google Groups "MEGA65 Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to c65gs-developm...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/c65gs-development/3259fe40-a9d1-4113-8b88-7aa8c7223719%40googlegroups.com.

Gurce Isikyildiz

unread,
Jul 24, 2019, 5:11:11 PM7/24/19
to MEGA65 Development
Thanks Paul,

I'll move my thread across there then.

Gurce


On Thursday, 25 July 2019 06:13:37 UTC+10, Paul Gardner-Stephen wrote:
Hello,

The $00 is to clear any prior mounted disk images, before then trying to mount them.  LGB is certainly still about (I have an unrelated email from him today).  Let's see if he replies.  Also, we have moved all forum discussions over to forum64.de as the official home (in English and German).  If you go to mega65.net, you will get redirected to the forum. There is a sub-forum there for emulation.

Paul.

To unsubscribe from this group and stop receiving emails from it, send an email to c65gs-de...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages