Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

philscott

Suggestions for program...

This topic is 5795 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve got a really cool program written in BASIC and I would like some suggestions on how to improve the code. 10 PRINT "PHIL IS SKILL" 20 GOTO 10

Share this post


Link to post
Share on other sites
Advertisement
Welll... hardcoding the string is probably a bad idea, you should make it a constant variable (or whatever is equivalent in BASIC). Also, PRINT is usually pretty inefficient, I would suggest reimplementing it in inline assembly (or as a separate C dll if your BASIC system won''t allow that).

Share this post


Link to post
Share on other sites
10 rem My Program's Better because I'm Smart
20 gosub 40
30 end
40 print "I wonder how long this will Run??"
50 goto 20

[edit]
oops
[/edit]

[edited by - CodeJunkie on November 9, 2002 12:37:46 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!