11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Assignment 24A:1. The delay loop is written three times in the above program. Add another subroutinewith a delay loop in it, and GOSUB every time you need a delay.WHAT GOOD IS A SUBROUTINE?In a short program, not much good.In a long program, it does two things:1. It saves you work and saves space in memory. You do not have to repeat thesame program lines in different parts of the program.2. It makes the program easier to understand and faster to write and debug.THE END COMMANDThe program may have zero, one or many END commands.RULE: The END command tells the computer to stop running and go back to theEdit Mode.That is really all it does. You can put an END command anywhere in the program: forexample, after THEN in an IF statement.137

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!