mirror of
https://github.com/whscullin/apple1js.git
synced 2024-11-25 09:31:15 +00:00
158 lines
8.1 KiB
JavaScript
158 lines
8.1 KiB
JavaScript
/*
|
|
* https://github.com/JeffJetton/apple1-15-puzzle
|
|
*
|
|
* MIT License
|
|
*
|
|
* Copyright (c) 2020 Jeff Jetton
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
* in the Software without restriction, including without limitation the rights
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
* furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in all
|
|
* copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
* SOFTWARE.
|
|
*
|
|
*/
|
|
|
|
tapes['15 Puzzle'] = {
|
|
script: 'C100R\n0300.06E5R\n0300R\n',
|
|
tracks: [[
|
|
0xD8, 0xA2, 0xFF, 0x9A, 0xA9, 0x2A, 0x85, 0x1A,
|
|
0x20, 0x46, 0x04, 0xA9, 0x7C, 0x85, 0x18, 0xA9,
|
|
0x05, 0x85, 0x19, 0x20, 0xAD, 0x03, 0x20, 0xCB,
|
|
0x03, 0xD0, 0x0E, 0xA9, 0xAF, 0x85, 0x18, 0xA9,
|
|
0x05, 0x85, 0x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2F, 0x05, 0xA9,
|
|
0x35, 0x38, 0xE5, 0x15, 0x30, 0x01, 0x60, 0x20,
|
|
0x29, 0x04, 0x4C, 0x1B, 0x05, 0x03, 0x09, 0x13,
|
|
0x23, 0xFF, 0x48, 0x4F, 0x4F, 0x52, 0x41, 0x59,
|
|
0x21, 0x00, 0x48, 0x55, 0x5A, 0x5A, 0x41, 0x48,
|
|
0x21, 0x00, 0x57, 0x4F, 0x4F, 0x48, 0x4F, 0x4F,
|
|
0x21, 0x00, 0x59, 0x49, 0x50, 0x50, 0x49, 0x45,
|
|
0x21, 0x00, 0x53, 0x57, 0x45, 0x45, 0x54, 0x21,
|
|
0x00, 0x00, 0x43, 0x4F, 0x4F, 0x4C, 0x21, 0x00,
|
|
0x00, 0x00, 0x4E, 0x49, 0x43, 0x45, 0x21, 0x00,
|
|
0x00, 0x00, 0x47, 0x41, 0x44, 0x5A, 0x4F, 0x4F,
|
|
0x4B, 0x53, 0x21, 0x00, 0x0D, 0x0D, 0x31, 0x35,
|
|
0x20, 0x50, 0x55, 0x5A, 0x5A, 0x4C, 0x45, 0x20,
|
|
0x2D, 0x20, 0x42, 0x59, 0x20, 0x4A, 0x45, 0x46,
|
|
0x46, 0x20, 0x4A, 0x45, 0x54, 0x54, 0x4F, 0x4E,
|
|
0x0D, 0x0D, 0x49, 0x4E, 0x53, 0x54, 0x52, 0x55,
|
|
0x43, 0x54, 0x49, 0x4F, 0x4E, 0x53, 0x20, 0x28,
|
|
0x59, 0x2F, 0x4E, 0x29, 0x3F, 0x20, 0x00, 0x0D,
|
|
0x0D, 0x54, 0x59, 0x50, 0x45, 0x20, 0x41, 0x20,
|
|
0x4C, 0x45, 0x54, 0x54, 0x45, 0x52, 0x20, 0x54,
|
|
0x48, 0x41, 0x54, 0x27, 0x53, 0x20, 0x4F, 0x4E,
|
|
0x20, 0x54, 0x48, 0x45, 0x20, 0x53, 0x41, 0x4D,
|
|
0x45, 0x20, 0x52, 0x4F, 0x57, 0x20, 0x4F, 0x52,
|
|
0x0D, 0x43, 0x4F, 0x4C, 0x55, 0x4D, 0x4E, 0x20,
|
|
0x41, 0x53, 0x20, 0x54, 0x48, 0x45, 0x20, 0x45,
|
|
0x4D, 0x50, 0x54, 0x59, 0x20, 0x53, 0x50, 0x41,
|
|
0x43, 0x45, 0x20, 0x54, 0x4F, 0x20, 0x53, 0x4C,
|
|
0x49, 0x44, 0x45, 0x20, 0x54, 0x48, 0x41, 0x54,
|
|
0x0D, 0x4C, 0x45, 0x54, 0x54, 0x45, 0x52, 0x20,
|
|
0x28, 0x41, 0x4E, 0x44, 0x20, 0x41, 0x4E, 0x59,
|
|
0x20, 0x49, 0x4E, 0x20, 0x42, 0x45, 0x54, 0x57,
|
|
0x45, 0x45, 0x4E, 0x29, 0x20, 0x54, 0x4F, 0x57,
|
|
0x41, 0x52, 0x44, 0x20, 0x54, 0x48, 0x45, 0x0D,
|
|
0x53, 0x50, 0x41, 0x43, 0x45, 0x2E, 0x20, 0x20,
|
|
0x54, 0x59, 0x50, 0x45, 0x20, 0x51, 0x20, 0x54,
|
|
0x4F, 0x20, 0x51, 0x55, 0x49, 0x54, 0x2E, 0x0D,
|
|
0x0D, 0x53, 0x4F, 0x4C, 0x56, 0x45, 0x44, 0x20,
|
|
0x50, 0x55, 0x5A, 0x5A, 0x4C, 0x45, 0x20, 0x4C,
|
|
0x4F, 0x4F, 0x4B, 0x53, 0x20, 0x4C, 0x49, 0x4B,
|
|
0x45, 0x20, 0x54, 0x48, 0x49, 0x53, 0x3A, 0x0D,
|
|
0x00, 0x0D, 0x0D, 0x44, 0x49, 0x46, 0x46, 0x49,
|
|
0x43, 0x55, 0x4C, 0x54, 0x59, 0x20, 0x4C, 0x45,
|
|
0x56, 0x45, 0x4C, 0x20, 0x28, 0x31, 0x2D, 0x35,
|
|
0x29, 0x3F, 0x20, 0x00, 0x0D, 0x49, 0x4E, 0x56,
|
|
0x41, 0x4C, 0x49, 0x44, 0x20, 0x43, 0x48, 0x4F,
|
|
0x49, 0x43, 0x45, 0x2E, 0x20, 0x20, 0x54, 0x52,
|
|
0x59, 0x20, 0x41, 0x47, 0x41, 0x49, 0x4E, 0x3A,
|
|
0x20, 0x00, 0x20, 0x20, 0x59, 0x4F, 0x55, 0x20,
|
|
0x53, 0x4F, 0x4C, 0x56, 0x45, 0x44, 0x20, 0x41,
|
|
0x20, 0x4C, 0x45, 0x56, 0x45, 0x4C, 0x20, 0x00,
|
|
0x20, 0x50, 0x55, 0x5A, 0x5A, 0x4C, 0x45, 0x21,
|
|
0x0D, 0x0D, 0x54, 0x4F, 0x54, 0x41, 0x4C, 0x20,
|
|
0x4D, 0x4F, 0x56, 0x45, 0x53, 0x3A, 0x20, 0x00,
|
|
0x0D, 0x0D, 0x50, 0x4C, 0x41, 0x59, 0x20, 0x41,
|
|
0x47, 0x41, 0x49, 0x4E, 0x20, 0x28, 0x59, 0x2F,
|
|
0x4E, 0x29, 0x3F, 0x20, 0x00, 0x0D, 0x0D, 0x42,
|
|
0x59, 0x45, 0x21, 0x0D, 0x0D, 0x00
|
|
]]
|
|
};
|