phaeron Posted August 2, 2014 Share Posted August 2, 2014 Works for me: Quote Link to comment Share on other sites More sharing options...
w1k Posted August 2, 2014 Share Posted August 2, 2014 can you post atr file? Quote Link to comment Share on other sites More sharing options...
a8isa1 Posted August 2, 2014 Share Posted August 2, 2014 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 Archimedes Spiral - Atari BASIC Archimedes Spiral - Altirra BASIC 1 Quote Link to comment Share on other sites More sharing options...
Xuel Posted August 2, 2014 Share Posted August 2, 2014 The Archimedes problem appears to happen because the SIN function gives the wrong answer after 4*PI: 2 Quote Link to comment Share on other sites More sharing options...
+Larry Posted August 2, 2014 Share Posted August 2, 2014 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! 1 Quote Link to comment Share on other sites More sharing options...
flashjazzcat Posted August 2, 2014 Share Posted August 2, 2014 Can Altirra Basic be put into an eprom (for real hardware use)? I have it flashed to an Ultimate 1MB slot. 2 Quote Link to comment Share on other sites More sharing options...
phaeron Posted August 2, 2014 Share Posted August 2, 2014 Here's 0.92 -- fixed the range reduction in SIN()/COS() and did some more space/size optimizations. Still not quite enough ROM space to fit in lineno precomputation, though. atbasic.bin 3 Quote Link to comment Share on other sites More sharing options...
phaeron Posted August 2, 2014 Share Posted August 2, 2014 can you post atr file? http://atariage.com/forums/topic/211161-dragoncart-software/ Quote Link to comment Share on other sites More sharing options...
w1k Posted August 3, 2014 Share Posted August 3, 2014 lol........ not working HOW I CAN CHANGE IP ADDRESS AND CLICK "OK"? BUTTON OK DOESNT WORK....... Quote Link to comment Share on other sites More sharing options...
Mclaneinc Posted August 3, 2014 Share Posted August 3, 2014 You attitude is as charming as always w1k... 2 Quote Link to comment Share on other sites More sharing options...
w1k Posted August 3, 2014 Share Posted August 3, 2014 so.. how i can run ethernet via altirra? Quote Link to comment Share on other sites More sharing options...
phaeron Posted August 3, 2014 Share Posted August 3, 2014 (edited) 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 August 3, 2014 by phaeron 6 Quote Link to comment Share on other sites More sharing options...
ThomSW Posted August 3, 2014 Share Posted August 3, 2014 I think his mistake is his existence. Quote Link to comment Share on other sites More sharing options...
Mclaneinc Posted August 3, 2014 Share Posted August 3, 2014 (edited) 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 August 3, 2014 by Mclaneinc Quote Link to comment Share on other sites More sharing options...
Madi Posted August 3, 2014 Share Posted August 3, 2014 Is there any way to turn on BASIC in the Side loader "L" under U1MB using Altirra? The ATR(s) are loaded from the virtual Hard drive (.VHD ) nicely, but Basic is always turned off. madi Quote Link to comment Share on other sites More sharing options...
+Larry Posted August 3, 2014 Share Posted August 3, 2014 Thought I'd check 0.92 with Ahl's Simple Benchmark. Atari 8K Basic Time=405 sec. (!) Accuracy=.013959 Random=16.77, 8.80Altirra 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 Quote Link to comment Share on other sites More sharing options...
Rybags Posted August 3, 2014 Share Posted August 3, 2014 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. 1 Quote Link to comment Share on other sites More sharing options...
w1k Posted August 3, 2014 Share Posted August 3, 2014 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....... Quote Link to comment Share on other sites More sharing options...
phaeron Posted August 3, 2014 Share Posted August 3, 2014 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. 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. Quote Link to comment Share on other sites More sharing options...
mono Posted August 4, 2014 Share Posted August 4, 2014 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 Quote Link to comment Share on other sites More sharing options...
Mclaneinc Posted August 4, 2014 Share Posted August 4, 2014 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.. Quote Link to comment Share on other sites More sharing options...
w1k Posted August 4, 2014 Share Posted August 4, 2014 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? Quote Link to comment Share on other sites More sharing options...
AtariGeezer Posted August 4, 2014 Share Posted August 4, 2014 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... Quote Link to comment Share on other sites More sharing options...
w1k Posted August 4, 2014 Share Posted August 4, 2014 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 Quote Link to comment Share on other sites More sharing options...
AtariGeezer Posted August 4, 2014 Share Posted August 4, 2014 not working What isn't working? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.