Jump to content
IGNORED

Pascal on the 99/4A


apersson850

Recommended Posts

13 hours ago, Vorticon said:

When I initially tried it, the computer crashed until I realized the radians conversion was incorrect. So odd you're getting a usable output...

Don't know why it would not work for you. I just copied and pasted the code above and it works fine.

Link to comment
Share on other sites

48 minutes ago, senior_falcon said:

Don't know why it would not work for you. I just copied and pasted the code above and it works fine.

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

Link to comment
Share on other sites

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

Posted (edited)

Yes, there was.

It shows that the FCTN-keys 1 to 9 have these definitions:

DEL, INS, FLUSH, BREAK, STOP, ALPHA LOCK, SCREEN LEFT, SCREEN RIGHT, LINE DELETE.

 

As you can see there's an ALPHA LOCK key too. It's redundant on the TI 99/4A, but was there to allow both upper and lower case on the 99/4. Since the p-system loads all character definitions from the file OS:SYSTEM.CHARAC at startup, it doesn't care which definitions are in the ROM chips in the console.

Edited by apersson850
  • Like 5
  • Thanks 1
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...