Write up is here https://imapenguin.com/2023/09/rail-fence-cipher-on-commoodore-64-and-ti-99/4a/