Jump to content
IGNORED

Altirra 2.50 Final out


serj

Recommended Posts

I can't recall who tracked down this classic algorithm and ported it to Atari BASIC. Sorry.

 

It does not run properly with atbasic.bin.

100 REM ARCHIMEDES SPIRAL
110 REM
120 REM
130 REM
140 GRAPHICS 8+16:SETCOLOR 2,0,0
150 XP=144:XR=4.71238905:XF=XR/XP
160 FOR ZI=-64 TO 64
170 ZT=ZI*2.25:ZS=ZT*ZT
180 XL=INT(SQR(20736-ZS)+0.5)
190 FOR XI=0-XL TO XL
200 XT=SQR(XI*XI+ZS)*XF
210 YY=(SIN(XT)+SIN(XT*3)*0.4)*56
220 X1=XI+ZI+160:Y1=90-YY+ZI
230 TRAP 250:COLOR 1:PLOT X1,Y1
240 COLOR 0:PLOT X1,Y1+1:DRAWTO X1,191
250 NEXT XI:NEXT ZI
260 GOTO 260

post-9154-0-89784500-1406991685_thumb.png

Archimedes Spiral - Atari BASIC

 

post-9154-0-31676500-1406991793_thumb.png

Archimedes Spiral - Altirra BASIC

  • Like 1
Link to comment
Share on other sites

Can Altirra Basic be put into an eprom (for real hardware use)?

 

-Larry

 

Edit: I think I've answered my own question. I put the 0.91 /bin file in my FAT32 folder and it appears to work just fine with the MyIDE-II cart! Neat!

  • Like 1
Link to comment
Share on other sites

You already made this mistake before and I already told you how to fix it. Enter in the emulation subnet address instead of your IP address, and lose the attitude before I drop you in my ignore list.

 

http://atariage.com/forums/topic/218202-altirra-240-final-out/?p=2891309

http://atariage.com/forums/topic/218202-altirra-240-final-out/?p=2891573

Edited by phaeron
  • Like 6
Link to comment
Share on other sites

Perhaps he will apologise as its the 2nd time he's made the same mistake despite Avery taking the time to tell him what he was doing wrong and show him the right way.

 

But then again his attitude "sucks" as they say, once he said he was dropping all things Atari and going travelling (or something like it), sadly he changed his mind.

Edited by Mclaneinc
Link to comment
Share on other sites

Thought I'd check 0.92 with Ahl's Simple Benchmark.

 

Atari 8K Basic Time=405 sec. (!) Accuracy=.013959 Random=16.77, 8.80

Altirra Basic 0.92 Time=299.1 Accuracy .015162 Random 20.177

 

Basic XL Time=395.88 (!) Accuracy=.013959 Random= 7.95, 2.45

 

A nice ~25% improvement over regular Atari Basic!

 

-Larry

Link to comment
Share on other sites

I remember seeing a pic of Archimedes Spiral in a magazine (Creative Computing?) but don't recall seeing the program or ever running it until a while ago (mostly in turbo and pressing key to kill attract mode at least 5 times).

 

The challenge is there just asking to speed it up... it could probably be improved 20% just by rearranging and compacting the program lines.

  • Like 1
Link to comment
Share on other sites

That's the network address, not IP address -- you need to enter 192.168.104.0. The IP stack running in the emulator will be what determines the IP address, not the emulator itself.

 

 

how?

button OK doesnt work.......

Link to comment
Share on other sites

Thought I'd check 0.92 with Ahl's Simple Benchmark.

 

Atari 8K Basic Time=405 sec. (!) Accuracy=.013959 Random=16.77, 8.80

 

Altirra Basic 0.92 Time=299.1 Accuracy .015162 Random 20.177

 

Basic XL Time=395.88 (!) Accuracy=.013959 Random= 7.95, 2.45

 

A nice ~25% improvement over regular Atari Basic!

 

-Larry

 

The thing about that benchmark is that it is far more dependent upon the math pack than on the BASIC interpreter itself. Running Atari BASIC rev. C under AltirraOS improves its results to 202 seconds and accuracy 0.001878. ATBasic improves to 128 seconds and 0.000413.

 

BASIC XE and Turbo Basic XL have more code space for an even faster math pack, and crank out results in 50 seconds and 42 seconds, respectively.

 

The accuracy figures in this benchmark are a little wonky -- I've seen cases where it is susceptible to giving better results for math operations that truncate rather than round.

 

I remember seeing a pic of Archimedes Spiral in a magazine (Creative Computing?) but don't recall seeing the program or ever running it until a while ago (mostly in turbo and pressing key to kill attract mode at least 5 times).

 

The challenge is there just asking to speed it up... it could probably be improved 20% just by rearranging and compacting the program lines.

 

Not in ATBasic, at least -- profiler indicates over 75% of the CPU being spent in the math pack and 12% of the CPU in OS draw line. Breakdown for Atari BASIC + XLOS is pretty similar. The absolute most effective way to speed this up would be a faster multiply routine. It'd be interesting to try a decimal version of the well-known table driven fast multiply, given 2.5K of free space.

 

post-16457-0-12441800-1407105405_thumb.png

 

 

how?

button OK doesnt work.......

 

You are still entering in the wrong address. The address you are entering in here is an emulation network subset address, which must end in .0 and must not be the same as the network or IP that your computer is on.

Link to comment
Share on other sites

Altirra BASIC.

Trying

? CHR$(34)=CHR$(35)

returns nothing (but should return boolean result).

Is there fixed known Atari BASICs bug with comparison results of functions calculated in one expression (one place for result of function STR$, CHR$)?

Improved BASIC is pretty concept. Thanks :)

Link to comment
Share on other sites

 

You are still entering in the wrong address. The address you are entering in here is an emulation network subset address, which must end in .0 and must not be the same as the network or IP that your computer is on.

 

You have the patience and kindness of a saint, considering the severely ignorant attitude being shown...

 

w1k, show the man some respect and stop acting like a spoilt child..

Link to comment
Share on other sites

 

You have the patience and kindness of a saint, considering the severely ignorant attitude being shown...

 

w1k, show the man some respect and stop acting like a spoilt child..

 

 

so again:

which IP i must use?

Link to comment
Share on other sites

 

 

so again:

which IP i must use?

Like phaeron said: you need to use a "Network Address" that ends in zero (0), but not one that already resides on your network.

Examples: 192.168.0.0, 192.168.100.0 or 192.168.104.0

 

You don't use an I.P. Address either that is on your PC, Altirra will use it's own in emulation...

Link to comment
Share on other sites

Like phaeron said: you need to use a "Network Address" that ends in zero (0), but not one that already resides on your network.

Examples: 192.168.0.0, 192.168.100.0 or 192.168.104.0

 

You don't use an I.P. Address either that is on your PC, Altirra will use it's own in emulation...

 

not working

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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...