Jump to content
IGNORED

Pascal on the 99/4A


apersson850

Recommended Posts

1 hour ago, Vorticon said:

You mean the pascal code I posted? That has the corrected randians conversion.

No, the XB/TML code with the error that I posted that you said crashed the computer.

 

Here is the program modified to avoid having to use COS. This is compiled and you can see it is a bit less leisurely.This is running at normal speed, not CPU overdrive.

But of course, although it works the same, it is no longer the same program.

SPIRAL2.GIF.64cf95db08d6dd807fa82853b870eb2d.GIF

100 DIM SINE(11)
110 FOR I=1 TO 11 :: READ SINE(I):: NEXT I
120 CALL SCREEN(2):: PD=1
130 A=0
135 IF PD=1 THEN CALL LINK("PENHUE",3+INT(RND*14),2)
140 FOR I=1 TO 11
150 CALL LINK("PUTPEN",100,120,A)
160 W=A/180*SINE(I)
170 R=9+A/18
180 CALL LINK("PU"):: CALL LINK("FWD",R-W/200)
190 IF PD=1 THEN CALL LINK("PD")ELSE CALL LINK("PE")
195 CALL LINK("FWD",W/100)
200 A=A+3 :: IF A>1453 THEN 230
210 NEXT I :: GOTO 140
230 PD=PD+1 :: PD=PD AND 1 :: GOTO 130
240 DATA 0,51,97,136,164,178,178,164,136,97,51,0

 

Edited by senior_falcon
  • Like 7
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...