Welcome, Guest. Please login or register.

Author Topic: AmigaBasic revisited  (Read 5025 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline weirdami

  • Hero Member
  • *****
  • Join Date: Jan 2003
  • Posts: 3776
    • Show all replies
    • Http://Bindingpolymer.com
Re: AmigaBasic revisited
« on: February 18, 2003, 10:49:46 PM »
That LineLen thing is a waste of code. :-) Someone pointed out that it will always return without counting because y always starts out <25. I didn't catch that. :-(  

What I thought was that it's a waste of time to count to 25 if the loop does nothing but count to 25. Which, is what it will do if you remove the return if y<25. Why not just take out the y loop and just put in a y=y+1 and a if y=25 then y=0 and print this character. The loop does nothing for you.

What results are you getting with the way the code is now? I'm assuming you're either getting a 256 long listing 1 character wide or a 1 long listing 256 characters wide(if the carriage return doesn't work).

----
Binding Polymer: Keeping you together since 1892.