Page 1 of 2

XRoar 1.8 released

Posted: Thu Jan 30, 2025 8:34 pm
by sixxie
https://www.6809.org.uk/xroar/

One visible change is you can turn on automatic config saving. Changed config will be saved on exit to a consistent location (consistent per-platform that is; locations are listed in the manual). Important to note here that if Windows users have an xroar.conf in the directory they're running from that will always take precedence, so check that out if you're confused that your changes don't stick.

The negative here is that there's still quite a lot you can't configure in the UI, so you'll doubtless still be editing xroar.conf yourself (or doing it all on the command line).

Personally I can't say I'm a fan - I like keeping on top of the config file myself - but it's been asked for...

Besides that, the HD image (SD image for MOOH) can be managed from the drive control dialog. So you can run NitrOS9 or FUZIX without resorting to the command line finally.

The first MC-10 cartridge has been implemented: the MCX128. You'll need its BASIC ROM, and to name it "mcx128.rom". One thing to be careful of there is you should turn OFF any tape options (fast loading, CAS padding) - the ROM hooks will be in the wrong place. Dynamically switching between sets of ROM hooks without killing performance is on the list of things to think about.

If you use the Becker port, you might find it's not so sluggish any more.

And kinda useful: a generic-ish "trap" interface from the command line. So you can, for example:

Code: Select all

$ xroar -q -nodos -trap pc=0x010c -trap-trace -trap pc=0xbb0c -trap-no-trace
9d3d| b6ff03      LDA   $ff03               cc=99 a=b5 b=1e dp=00 x=444b y=b39b u=8b8d s=7f29
9d40| 2b01        BMI   $9d43               cc=99 a=b5 b=1e dp=00 x=444b y=b39b u=8b8d s=7f29
9d43| b6ff02      LDA   $ff02               cc=95 a=00 b=1e dp=00 x=444b y=b39b u=8b8d s=7f29
9d46| be0112      LDX   $0112               cc=95 a=00 b=1e dp=00 x=0000 y=b39b u=8b8d s=7f29
9d49| 3001        LEAX  1,X                 cc=91 a=00 b=1e dp=00 x=0001 y=b39b u=8b8d s=7f29
9d4b| bf0112      STX   $0112               cc=91 a=00 b=1e dp=00 x=0001 y=b39b u=8b8d s=7f29
9d4e| 7eafd9      JMP   $afd9               cc=91 a=00 b=1e dp=00 x=0001 y=b39b u=8b8d s=7f29
afd9| 4f          CLRA                      cc=94 a=00 b=1e dp=00 x=0001 y=b39b u=8b8d s=7f29
afda| 1f8b        TFR   A,DP                cc=94 a=00 b=1e dp=00 x=0001 y=b39b u=8b8d s=7f29
afdc| dce3        LDD   <$e3                cc=94 a=00 b=00 dp=00 x=0001 y=b39b u=8b8d s=7f29
afde| 10270b20    LBEQ  $bb02               cc=94 a=00 b=00 dp=00 x=0001 y=b39b u=8b8d s=7f29
bb02| be008d      LDX   $008d               cc=94 a=00 b=00 dp=00 x=0000 y=b39b u=8b8d s=7f29
bb05| 2705        BEQ   $bb0c               cc=94 a=00 b=00 dp=00 x=0000 y=b39b u=8b8d s=7f29
Trap conditions can be PC matches, reads or writes to specific memory ranges, or the tape motor turning off. Trap actions can be turning trace on and off (as seen), saving a snapshot (remember if you name the snapshot with .ram you get just the ram dump - quite useful) or quitting the emulator (a specified number of seconds after the trap fires).

The old -timeout, -timeout-motoroff and -snap-motoroff options are now all implemented in terms of these traps.

Re: XRoar 1.8 released

Posted: Fri Jan 31, 2025 7:36 pm
by rolfmichelsen
Now, this looks like a few very useful additions. I have been toying with the idea of unit testing assembly code from time to time. Can't wait to test this out :D

-- Rolf

Re: XRoar 1.8 released

Posted: Sat Feb 01, 2025 11:13 am
by Bosco
Great update! Thanks sixxie. :D

Re: XRoar 1.8 released

Posted: Sun Feb 02, 2025 9:38 am
by sixxie
And now a 1.8.1 just for Windows users! Fixes a bug so harsh when I tested it under Wine my laptop shut down ;)

(The bug: zoom in/out would try and set the window to 254* or 253* normal size. If I tell you the UI sends special values of -2/-3 for "previous/next" messages and that in the win32 API I have to pack function and value of menu options into 16 bits, do you think you can work out what happened? ;)

Re: XRoar 1.8 released

Posted: Sun Feb 02, 2025 6:34 pm
by zephyr
Thanks Ciaran. Xroar is without doubt the very finest Dragon/Coco emulator on the Planet. I really appreciate all of the work that you've put in to help everyone in the Dragon/Coco community over the (many) years.

Unfortunately, I'm not in a position to enjoy the luxury of using any version of Xroar at the moment because I don't have access to a computer. Everything I do at the moment is done under DOS emulation (DOSBox) on a modern Android OS based tablet. I'm hoping that someday someone will do a modern Android port of Xroar that has all the wonderful looks and functionality of the windows version. 8-)

Regards,
Steve

Re: XRoar 1.8 released

Posted: Sun Feb 02, 2025 9:02 pm
by sixxie
Thanks, that's nice of you to say, and I appreciate it.

Unfortunately I can't help with Android - I've not really been exposed to it. FWIW though, your situation isn't even the most limited I've heard of. There's a guy on the CoCo discord that - if I understand right - uses a friend's computer but can't install anything, so he copies disk images into and out of XRoar Online from USB storage. Hard to imagine...

Re: XRoar 1.8 released

Posted: Sun Feb 02, 2025 10:26 pm
by rolfmichelsen
Hi Steve,

Are you aware of XRoar online at http://www.6809.org.uk/xroar/online/? I guess it should work from an Android-based tablet, too.

-- Rolf

Re: XRoar 1.8 released

Posted: Mon Feb 03, 2025 11:31 am
by zephyr
I've been aware Xroar Online for many years. it works really well on my tablet, but it doesn't activate the keyboard on my device. So I can't even get past the "press any key" prompt on the Dragon emulation.

Re: XRoar 1.8 released

Posted: Sun Feb 16, 2025 6:02 pm
by bluearcus
Oooh, that trap stuff is magic. Thanks for the new feature!

Re: XRoar 1.8 released

Posted: Sat Jun 07, 2025 3:28 pm
by Hillwalker
Hi,
i have been a regular user of Xroar but noticed this time that using GET and PUT with the AND and OR action that they appear reversed. I've looked back at previous versions of Xroar but still reversed.
I used the following code: (scrappy I know but cut out code to provide short code to show effect)

10 PMODE4,1:PCLS1:COLOR0,1:SCREEN1,1
20 LINE(0,96)-(127,191),PSET,B
30 CIRCLE(64,144),40:CIRCLE(128,96),70
45 GOTO400
400 DIMA(308):GET(0,96)-(127,191),A,G
410 PUT(128,0)-(255,95),A,PSET <==========action changed here with AND or OR
500 GOTO 500

Is this caused by Xroar or is my ROM corrupted?

Cheers