Jump to content
phaeron

Altirra 2.80 released

Recommended Posts

Feature request (not critical, just a nice to have):

 

In the Printer Output screen, it'd be nice to be able to do a search for text in a listing.

 

I don't expect anything like replace functionality (which would be a lot less trivial than searching).

 

I would just like to see where in my code that I left a specific string.

Share this post


Link to post
Share on other sites

I spent the last hour doing searches for this but can up empty.

 

If I wanted to set up an MIO hard disk in Altirra how can I do that?

 

I added the mio and hard disk under devices.

I got an mio rom off the Internet and added it

Set the scsi hard disk as D3: in the mio config menu

I left all the other scsi options as default

But I am unable to access it or format it.

 

Obviously I am missing a step. Any suggestions on what I am missing?

Share this post


Link to post
Share on other sites

I found one bug. If I turn on Fast FP (Acceleration), in Atari BASIC, when I type 5^2, it will return incorrect 26. When I type 9^2, it will return incorrect 82. Only certain numbers with power of function will return incorrect answers. If I turn off Fast FP (NO acceleration), power of function will ALWAYS return correct answers. However, I notice speed of power of function is MUCH FASTER with fast FP turned on.

 

Also, Questron game does not support 65C816 processor modes and will freeze as soon after I selected NEW CHARACTER or RESTART CHARACTER menu. Questron game works PERFECTLY when I set processor mode to 6502C. Why Questron game cannot run on 65C816 processor, even at 1.79Mhz speed? Note: Questron game requires Atari BASIC or Altirra BASIC to run.

Share this post


Link to post
Share on other sites

Altirra Basic and Fast FP enabled, 5^2 = 25 and 9^2 = 81

Altirra Basic and Fast FP disabled, 5^2 = 24.9999993 and 9^2 = 80.99999834

 

Altirra Basic cartridge/diskimage also fails this way in other emulators.

Share this post


Link to post
Share on other sites

Atari BASIC has a specific code path to fudge the result for integers, which I'm not interested in reimplementing in Altirra BASIC partly because of this problem: it requires the math pack to be inaccurate in a specific way. The FP acceleration option causes the emulator to intercept math pack calls and evaluate them with the native FPU, which is much more accurate but causes problems in this case. You should not use FP acceleration if you are running a program that is sensitive to the exact values returned by the math pack.

Also, Questron game does not support 65C816 processor modes and will freeze as soon after I selected NEW CHARACTER or RESTART CHARACTER menu. Questron game works PERFECTLY when I set processor mode to 6502C. Why Questron game cannot run on 65C816 processor, even at 1.79Mhz speed? Note: Questron game requires Atari BASIC or Altirra BASIC to run.

 

The 65C816 isn't fully compatible with the 6502, and Questron has dodgy programming that causes it to execute garbage instructions that work differently on a 65C816.

 

I spent the last hour doing searches for this but can up empty.

If I wanted to set up an MIO hard disk in Altirra how can I do that?

I added the mio and hard disk under devices.
I got an mio rom off the Internet and added it
Set the scsi hard disk as D3: in the mio config menu
I left all the other scsi options as default
But I am unable to access it or format it.

Obviously I am missing a step. Any suggestions on what I am missing?


Three things:

  • You need a DOS that can access D3:. DOS 2.0S defaults to only supporting two drives.
  • You need a DOS that supports the Parallel Bus Interface. Most do, but you might find an oddball that doesn't.
  • You need Fast Boot disabled, D: acceleration disabled, or the SIO acceleration mode set to PBI. Otherwise, the emulator will intercept the D3: request to speed up the boot process, preventing the MIO from seeing it.

Share this post


Link to post
Share on other sites

Thanks! Altirra Basic has better math calculations than Atari Basic, especially when Fast FP acceleration is enabled. I tested Atari BASIC only but not Altirra BASIC. Altirra BASIC has more functions just like BASIC A+ or BASIC XE.

Share this post


Link to post
Share on other sites

So to get the best answers, use Atari Basic Rev. C with FP ACCEL off.

And for Altirra Basic, turn on the Acceleration.

 

Yes?

Share this post


Link to post
Share on other sites

Hi,

 

So to get the best answers, use Atari Basic Rev. C with FP ACCEL off.

And for Altirra Basic, turn on the Acceleration.

 

Yes?

No, you should never use Atari Basic if you want the best answers :-P

 

The problem is that the programmers added a kludge to the power function that detects integer arguments, and in this case takes the integer part and adds 1 to the result. This relies on the math pack always returning less than the true result for the power function!.

 

In reality, this causes problems if you try to use the power function in any numeric algorithm, as it is now discontinuous and non monotonic, see:

 

post-18634-0-00402000-1500134014.png

 

If you are trying to plot the function or use a root-finding algorithm, or calculate the numerical derivative, the result will be really bad.

 

Altirra Basic does no rounding to the power operation, so the result it gives is the full precision of the math pack, see:

 

post-18634-0-37534300-1500134112.png

 

This "looks" worse, but it is actually much better if you plan to use the result on any further calculations.

 

Note that, with bigger numbers, the results of Atari Basic start to get a lot worse:

 

post-18634-0-21985400-1500134499.png

 

This should be really 67108864. Altirra Basic gives a better (nearer the expected) result:

 

post-18634-0-37833200-1500134513.png

  • Like 3

Share this post


Link to post
Share on other sites

Got it. I'm working on converting a lot of Apple II 2-line basic programs over to Atari. They're graphic demos and use the power function quite a bit.

 

Now I see what's going on.

  • Like 3

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...