Now intruducing a new OS: S-OS
DEF WAKEUP
SLEEP = 0
END
DEF SLEEP
SLEEP=1 'inconsistent spacing
END
WHILE ALIVE
WHILE WEEKDAY
IF HOUR>=6.5 THEN WAKEUP
GOTO@School 'inconsistent capitalization.
'will never return here because of GOTO
'use instead of GOSUB
GOTO@Homework 'error, as HOMEWORK is a
'function and not a label
IF HOUR>=21 THEN SLEEP
WEND 'note that WEEKDAY will loop
'forever, as days never change
'(unless WEEKDAY is a system variable)
WHILE !WEEKDAY
EXEC "XBOX" 'why is XBOX an exec when
'Homework gets a DO command?
WEND 'apparently doesn't sleep during
'weekends
WEND 'never dies
DEAD = TRUE 'implied/redundant/unused
'and, ALIVE is never set, so at this point,
'if ALIVE ran at all, (ALIVE && DEAD). hm.
DEF HOMEWORK 'addressed previously.
DO "Homework" 'Why is DO used here but
'never other verb commands?
END
@SCHOOL 'as mentioned prior, going to
'school and never returning
GOSUB @GYM 'inconsistent spacing
GOSUB @Math 'inconsistent capitalization
GOSUB @ART
GOSUB @ELA
GOSUB @LUNCH
GOSUB @WLDHST
GOSUB @SCIENCE
END '...and even if it /were/ GOSUB,
'this should be RETURN!