Shop OBEX P1 Docs P2 Docs Learn Events
What happens at the end of a program? — Parallax Forums

What happens at the end of a program?

DonDon Posts: 34
edited 2004-08-18 23:15 in BASIC Stamp
What does the Stamp do if you let it "run off the end" of your program.· Consider this trivial, but complete,·program:
I Var Byte
I = 3

So what happens after the 'I=3' is executed?· Is there an implicit 'End' instruction·at the end of every program?· The manual hints that this is so.



▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don Kinzer

·

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-08-18 23:15
    Yes, the program ends, though "good form" suggests we put END into our code. Unused EEPROM locations are written as zero, the same token for the keyword END.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
Sign In or Register to comment.