git @ Cat's Eye Technologies The-Dipple / master perl / gen_zowie_print
master

Tree @master (Download .tar.gz)

gen_zowie_print @masterraw · history · blame

#!/usr/bin/perl

# SPDX-FileCopyrightText: Chris Pressey, the original author of this work, has dedicated it to the public domain.
# For more information, please refer to <https://unlicense.org/>
# SPDX-License-Identifier: Unlicense

$f = <STDIN>;
for ($i = 0; $i < length($f); $i++)
{
    printf "MOV R0, %d\n", ord(substr($f, $i, 1));
}