Class EmbeddedShapeTable


  • public class EmbeddedShapeTable
    extends Directive
    Embed an Applesoft shape table into a BASIC program. See writeup in the README-TOKENIZER.md file.
    • Constructor Detail

      • EmbeddedShapeTable

        public EmbeddedShapeTable​(Configuration config,
                                  java.io.OutputStream outputStream)
    • Method Detail

      • writeBytes

        public void writeBytes​(int startAddress,
                               Line line)
                        throws java.io.IOException
        Parse the given parameters, generating code and embedding shape table as directed.
        Specified by:
        writeBytes in class Directive
        Throws:
        java.io.IOException
      • setupLabels

        public void setupLabels​(java.lang.String labelOption,
                                BasicBuilder basic,
                                java.util.Optional<ShapeTable> shapeTableOptional)
      • readBin

        public byte[] readBin​(java.lang.String filename)
      • readSrc

        public ShapeTable readSrc​(java.lang.String filename)
      • mapShapeTableToBin

        public byte[] mapShapeTableToBin​(ShapeTable shapeTable)