Hacker News new | past | comments | ask | show | jobs | submit login

The Apple IIgs BASIC files end with this nugget to save themselves during development:

63999 F$ = "TOWN": PRINT "Saving "F$"...": PRINT "UNLOCK"F$: PRINT "SAVE"F$: PRINT "LOCK"F$: PRINT "DELETE/PIRATES/"F$: PRINT "SAVE/PIRATES/"F$: PRINT 27648 - ( PEEK (176) * 256 + PEEK (175))" bytes free": END

(The print strings actually have an embedded control-D / 0x04 so they're executed as commands rather than printed)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: