Post AnjQXJ0isCIcclM6OO by jani@fosstodon.org
 (DIR) More posts by jani@fosstodon.org
 (DIR) Post #AniDb9zcqjcHFiOFI8 by EdS@mastodon.sdf.org
       2024-11-04T21:55:04Z
       
       0 likes, 0 repeats
       
       Got a real 68000 computer to hand? Can you run a bit of test code? There's a bit of doubt about a test suite:> One of the tests in the repo is for ABCD D7, D7, where D7 = 0x397C714F and the X bit is clear. The test specifies the answer should be 0x397C7104question is fromhttps://anycpu.org/forum/viewtopic.php?f=12&t=1135#retroComputing #m68k #mc68000 Boosts welcome of course
       
 (DIR) Post #AniEtvNrUR4hOpEniK by josgeluk@mastodon.nl
       2024-11-04T22:09:49Z
       
       0 likes, 0 repeats
       
       @EdS did you try posting the question at https://retrocomputing.stackexchange.com?
       
 (DIR) Post #AniRyc6NuDUQRwd4E4 by scruss@xoxo.zone
       2024-11-05T00:36:16Z
       
       0 likes, 0 repeats
       
       @EdS wish I knew what I could do to run this on my Mac Classic II(though it's a 68030)
       
 (DIR) Post #AnjQXJ0isCIcclM6OO by jani@fosstodon.org
       2024-11-05T11:54:43Z
       
       0 likes, 0 repeats
       
       @EdS I've got my Amigas in storage, waiting for my next retrocomputing inspiration... I've bookmarked the toot to try it out, but I'm not making any promises on timelines. Hopefully someone beats me to it! Good luck!
       
 (DIR) Post #AnjZ1OR44EoxlnXCKG by elb@social.sdf.org
       2024-11-05T00:44:36Z
       
       0 likes, 0 repeats
       
       @scruss @EdS Yeah, I have a Mac SE with a hard disk and can easily install MPW ... but I don't know enough Mac 68k development to know how to print the result and know what happened!
       
 (DIR) Post #AnjZ1Pi7KK3ViyWKXo by EdS@mastodon.sdf.org
       2024-11-05T13:30:04Z
       
       0 likes, 0 repeats
       
       I fired up Easy68k in WINE on my Mac - it's not super reliable but I did manage to assemble some code. I posted the relevant part of the listing in the anycpu thread.My thought was to fire up a Basic, use POKE and USR and then perhaps PEEK to see the results.You'll notice I hardcoded some addresses - that could end in tears but who knows how to allocate memory on a random 68k machine?!?@elb @scruss
       
 (DIR) Post #Anjayn1SOfkV44RWvA by EdS@mastodon.sdf.org
       2024-11-05T13:52:02Z
       
       0 likes, 0 repeats
       
       ah - VARPTR in MS Basic gives us the address of a variable (or an array)https://vintageapple.org/macprogramming/pdf/Microsoft_Basic_Interpreter_1984.pdf@elb @scruss
       
 (DIR) Post #Ank2Fn04QlvCgG7oTg by ipaschke@mastodon.social
       2024-11-05T15:21:24Z
       
       0 likes, 1 repeats
       
       @jani @EdS My Amiga also thinks it's $397c7104...
       
 (DIR) Post #Ank2FoGliAsAcKwf8y by EdS@mastodon.sdf.org
       2024-11-05T18:57:34Z
       
       0 likes, 0 repeats
       
       Many thanks Ingo!@elb @ipaschke @jani @scruss
       
 (DIR) Post #Ank47bdgzDqV2Lsq4O by jani@fosstodon.org
       2024-11-05T19:18:33Z
       
       0 likes, 0 repeats
       
       @EdS @elb @ipaschke @scruss And now the question is, why does EASy68K and your code get it wrong?!
       
 (DIR) Post #Ank5dPyLzy8e4eHSjo by EdS@mastodon.sdf.org
       2024-11-05T19:35:00Z
       
       0 likes, 0 repeats
       
       (Good question, but note that it's not my code - it's mercury0x000d's.)I think it's especially tricky with non-BCD values to get BCD emulation right, as the output is going to be very implementation dependent - it's very likely not to be specified behaviour.@jani @elb @ipaschke @scruss