What Needs to be done for a NeXT Emulator

Started by andreas_g, Sep 08, 2025, 04:47 PM

Previous topic - Next topic

ramalhais

#45
Quote from: andreas_g on Feb 28, 2026, 11:59 AMHello all,

I am happy to announce the release of Previous v4.1! I have updated the timing system. It should be a bit more efficient and much more accurate in variable speed mode.

It also includes some minor stability improvements and bug fixes.

As usual I have compiled a binary for macOS v10.13 and later (Intel and Apple Silicon). You can load the binary here.

Have fun and feel free to report any issues.

The new timing system is giving me weird results in linux using ping, although it may be entirely my fault.
ping works fine on real hardware. Just wanted to let you know:


andreas_g

Quote from: ramalhais on Mar 04, 2026, 11:47 PMThe new timing system is giving me weird results in linux using ping, although it may be entirely my fault.
ping works fine on real hardware. Just wanted to let you know:

Thank you for the report! How did this look like in Previous v4.0?

ramalhais

Quote from: andreas_g on Mar 05, 2026, 06:32 AM
Quote from: ramalhais on Mar 04, 2026, 11:47 PMThe new timing system is giving me weird results in linux using ping, although it may be entirely my fault.
ping works fine on real hardware. Just wanted to let you know:

Thank you for the report! How did this look like in Previous v4.0?

With less precision, but no weird times:


andreas_g

It looks very much like an underflow. Can you try if the appended patch fixes it?

systemtimer.diff

ramalhais

Quote from: andreas_g on Mar 05, 2026, 09:24 PMIt looks very much like an underflow. Can you try if the appended patch fixes it?

systemtimer.diff

It's perfect now! Thank you!


andreas_g

Great! I'll update the code in the repository later today.

Short explanation: I was a bit too optimistic when adding support for the system timer downcounter. As it turned out, tiny inaccuracies could cause the counter to underflow (wrap to maximum value). The patch protects it against underflow.

andreas_g

Sorry for the delay. The patch (in an extended and slightly modified version) is online.

don_apple

Sorry, I have little off-topic question: is it possible to access the source code repo for previous on sourceforge via git?

I tried the URLs mentioned on https://sourceforge.net/p/forge/documentation/Git/ (replacing "PROJECTNAME" with "previous" and "REPOSITORY" with "code" or "trunk") with git clone, but it always results in a "not found" error.

I'm not familiar with subversion and use git for a lot of other projects (for example hatari), therefore it would be great if the source code for previous was available via git as well.

jeffburg

#53
@don_apple yeah, you need to make sure you have a package on your system called git-svn, and then you can clone the source forge repo into a git repository. But branching between the 2 systems works completely differently so you will find its pretty odd to work with. but it does work.

I actually maintain a fork in a git... although it doesn't have the newest changes. I update it like once every 2 months or so

https://github.com/jeffreybergier/Previous-Fork
Grab my app, MathEdit for OpenStep - https://github.com/jeffreybergier/MathEdit
Follow me on Mastodon for Retro Mac Adventures - https://jeffburg.social/@jeff

don_apple

Quote from: jeffburg on Mar 09, 2026, 01:11 AM@don_apple yeah, you need to make sure you have a package on your system called git-svn, and then you can clone the source forge repo into a git repository. But branching between the 2 systems works completely differently so you will find its pretty odd to work with. but it does work.
As far as I understand from the link I mentioned, it should also be possible to enable direct git access to the code repo on sourceforge. Maybe @andreas_g or somebody else who has admin access to the repo on sourceforge could check if this is enabled or not.

andreas_g

Quote from: don_apple on Mar 10, 2026, 10:54 AMAs far as I understand from the link I mentioned, it should also be possible to enable direct git access to the code repo on sourceforge. Maybe @andreas_g or somebody else who has admin access to the repo on sourceforge could check if this is enabled or not.
I don't think I can enable something here. The linked instruction describes how to set up a git repository, but Previous uses a subversion repository.