diff --git a/public/octatrack-modules/songbook/0.1.0-experimental.mwrm b/public/octatrack-modules/songbook/0.1.0-experimental.mwrm deleted file mode 100644 index a834b11ecf..0000000000 Binary files a/public/octatrack-modules/songbook/0.1.0-experimental.mwrm and /dev/null differ diff --git a/public/octatrack-modules/songbook/0.2.0-experimental.mwrm b/public/octatrack-modules/songbook/0.2.0-experimental.mwrm new file mode 100644 index 0000000000..770d176b41 Binary files /dev/null and b/public/octatrack-modules/songbook/0.2.0-experimental.mwrm differ diff --git a/sdk/catalog.json b/sdk/catalog.json index 13fed73009..1335b4e554 100644 --- a/sdk/catalog.json +++ b/sdk/catalog.json @@ -259,7 +259,7 @@ }, { "id": "songbook", - "version": "0.1.0-experimental", + "version": "0.2.0-experimental", "addedAt": "2026-11-24T09:10:19Z" }, { diff --git a/sdk/machines/octatrack/battery-ram.json b/sdk/machines/octatrack/battery-ram.json index 79ce46d522..75656b4f46 100644 --- a/sdk/machines/octatrack/battery-ram.json +++ b/sdk/machines/octatrack/battery-ram.json @@ -5,7 +5,7 @@ "ranges": [ {"from": "0x100f85a0", "to": "0x100f85e8", "owner": "kits", "what": "'KCS1': which Kit each of the 64 Part slots holds, and a sum that starts from the project's id"}, {"from": "0x100f8600", "to": "0x100f8f06", "owner": "playmodes", "what": "'PMNV': each pattern's play mode, 256 rows of 9 bytes and a 16-bit sum"}, - {"from": "0x100f8f10", "to": "0x100f8f24", "owner": "songbook", "what": "'ASB1': which book of arrangements the 8 slots hold, whether a backup of book 1 exists, whether that book was read only in part, a fingerprint of the slots, the serial of the copy that wrote it last, and its last eight project events"}, + {"from": "0x100f8f10", "to": "0x100f8f24", "owner": "songbook", "what": "'ASB1': which book of arrangements the 8 slots hold, whether a backup of book 1 exists, whether that book was read only in part, whether a setlist plays from slots 7 and 8, a fingerprint of the slots, the serial of the copy that wrote it last, and its last eight project events"}, {"from": "0x100f9000", "to": "0x100f9044", "owner": "base", "what": "settings.c's 'MWS1': the choice kept for each of eight module settings (PROJ > MODWERK > SETTINGS), by the hash of its label"}, {"from": "0x100f9044", "to": "0x100f91c8", "owner": "base", "what": "setting_presets.h MWP1 stores panel overrides for up to 32 imported module presets"}, {"from": "0x100f9200", "to": "0x100f970c", "owner": "base", "what": "status.c's 'MWER': what each measured module adds to the frame share in use, on waking and at rest, from the site's last MWMS v2 set (set_package.h)"}, diff --git a/sdk/octatrack/modules/songbook/README.md b/sdk/octatrack/modules/songbook/README.md index 5cdba9234f..516af517cf 100644 --- a/sdk/octatrack/modules/songbook/README.md +++ b/sdk/octatrack/modules/songbook/README.md @@ -1,57 +1,110 @@ # Songbook -128 arrangements per project, as 16 books of 8, every one an ordinary stock arrangement file. Setlists of up to 16 -songs from any book follow in a later version. OS 1.40C, MKI and MKII. +128 arrangements per project, as 16 books of 8, every one an ordinary stock arrangement file, and 16 setlists of up to +16 songs from any book, played one after the other without a gap. OS 1.40C, MKI and MKII. ## Overview Stock keeps 8 arrangements per project, in `arr01.work` to `arr08.work`. Songbook makes them book 1 of 16 books of 8: book 2 is `arr09` to `arr16`, book 3 `arr17` to `arr24`, and so on up to book 16, `arr121` to `arr128`. -In ARR > CHANGE, with the transport stopped, LEFT and RIGHT step to the book before or after, and BOOK 2 (and so on) -shows at the screen's top right; the list shows the new book's names at once. Inside a book, every stock arrangement function works as usual: edit, ARR SAVE, +In ARR > BOOKS (stock's CHANGE, renamed), with the transport stopped, LEFT and RIGHT step to the book before or after, +and BOOK 2 (and so on) shows at the screen's top right; the list shows the new book's names at once. Inside a book, every stock arrangement function works as usual: edit, ARR SAVE, RELOAD, COPY, CLEAR, chaining and playback. The Octatrack's own code writes and reads every one of these files, so they are stock arrangement files in every byte. A project saved with the module opens on a unit without it with book 1 as it was, and an arrangement from a later book can be moved into book 1 on a computer by renaming its file (`arr37.work` to `arr03.work`, say). +A setlist plays songs from any book in a chosen order. Songbook keeps its songs in memory and plays them through +two of the open book's arrangement slots, 7 and 8, chaining each to the next with stock's own CHAIN, so each song +follows the last without a gap. While a setlist plays, the main screen shows it: the setlist's name in the Part box, +the song's place (`|≡ 2/6`) under it, and the next song's name after the playing song's last row. + ## Controls | Where | Keys | What it does | | --- | --- | --- | -| ARR > CHANGE, stopped | RIGHT | Write the current book to the card, then load the next one (up to 16) | -| ARR > CHANGE, stopped | LEFT | The same, to the book before (down to 1) | -| ARR > CHANGE, playing | LEFT / RIGHT | Nothing changes; it says STOP TO CHANGE BOOK | +| ARR > BOOKS (stock's CHANGE, renamed), stopped | RIGHT | Write the current book to the card, then load the next one (up to 16) | +| ARR > BOOKS, stopped | LEFT | The same, to the book before (down to 1) | +| ARR > BOOKS, playing | LEFT / RIGHT | Nothing changes; it says STOP TO CHANGE BOOK | +| ARR > BOOKS | CUE + YES | Add the arrangement under the cursor to the end of the open setlist (B2 5 ADDED TO LIST 3) | +| ARR > BOOKS, stopped | CUE + LEFT / RIGHT | Move the arrangement under the cursor one place up or down in its book | +| Arranger menu | SETLSTS (stock's CHAIN, replaced) | Open the setlists page | +| SETLSTS page | LEFT / RIGHT | The setlist before or after (1 to 16) | +| SETLSTS page | UP / DOWN | Move the cursor | +| SETLSTS page, stopped | YES | Start the setlist from the song under the cursor (PLAY then plays it) | +| SETLSTS page | CUE + LEFT / RIGHT | Move the song under the cursor up or down | +| SETLSTS page | FUNC + PLAY | Take the song out of the setlist (the arrangement stays in its book) | +| SETLSTS page | FUNC + REC / CUE + FUNC + REC | Copy the song / the whole setlist | +| SETLSTS page | FUNC + STOP | Paste after the cursor | +| SETLSTS page | FUNC + YES | Name the setlist (stock's name editor, 15 characters) | +| SETLSTS page | NO | Close it | +| Main screen, a setlist playing | hold CUE, press YES | Show the setlist: the playing song ▶, the next one >; UP/DOWN move the cursor, YES makes the song under it the next one at once; releasing CUE closes it | +| ARR > BOOKS, stopped | (opening it) | Ends a setlist: songs edited while it played are written to their own files, the book comes back | A book never used starts as 8 empty arrangements. Each book comes back on the arrangement you last chose in it (a book not visited yet on arrangement 1), with the list's cursor on it; after a power cycle or a project load every book -but the one in use starts on arrangement 1 again. Switching takes about as long as stock's SYNC TO CARD and ends with -its NOW SAFE TO EJECT! message. Without a project loaded it says NO PROJECT; while the card is busy, CARD BUSY. If an +but the one in use starts on arrangement 1 again. Switching takes about as long as stock's SYNC TO CARD, whose job it +borrows; its NOW SAFE TO EJECT! message is closed as it opens. Without a project loaded it says NO PROJECT; while the card is busy, CARD BUSY. If an arrangement file does not read, it says BOOK FILE ERROR, that arrangement shows empty, and its file is left as it is unless you edit that arrangement. ## Usage 1. Stop the transport. -2. Open ARR > CHANGE. MKII: ARR, then CHANGE. MKI: FUNC + PATTERN switches arrangement mode on, FUNC + BANK opens the - arranger menu, then CHANGE. +2. Open ARR > BOOKS (stock's CHANGE). MKII: ARR, then BOOKS. MKI: FUNC + PATTERN switches arrangement mode on, FUNC + + BANK opens the arranger menu, then BOOKS. 3. Press RIGHT or LEFT. The label at the top right shows the book, for example BOOK 3. 4. Choose one of its 8 arrangements as usual. +### Setlists + +1. In ARR > BOOKS, put the cursor on an arrangement and press CUE + YES: it is added to the open setlist (LIST 1 at + the bottom right). Add songs from any book this way. +2. Open SETLSTS in the arranger menu: the setlist, its songs as `book.arrangement NAME`. Move them with CUE + + LEFT/RIGHT, name the setlist with FUNC + YES. +3. Put the cursor on the first song, press YES, close the menu with NO, and press PLAY. Each song is followed by the + next; the last ends as any arrangement ends. +4. Opening ARR > BOOKS (stopped) ends the setlist and brings the book back. + ### Quick tutorial -1. In ARR > CHANGE, press RIGHT: BOOK 2, with 8 empty arrangements. +1. In ARR > BOOKS, press RIGHT: BOOK 2, with 8 empty arrangements. 2. Choose arrangement 1, open the editor and add a few rows. -3. Back in ARR > CHANGE, press LEFT: BOOK 1, your original arrangements. +3. Back in ARR > BOOKS, press LEFT: BOOK 1, your original arrangements. 4. Press RIGHT again: book 2's rows are back. 5. Press LEFT to return to book 1 before you finish. ## Compatibility and limitations -- **Takes:** LEFT and RIGHT in ARR > CHANGE (stock does nothing with them there), the top right corner of that list +- **Setlists borrow the open book's arrangements 7 and 8.** While a setlist is active, slots 7 and 8 hold copies of + setlist songs, and nothing writes them to the book's files; ARR > BOOKS still names rows 7 and 8 by the book's own + arrangements. Before a setlist starts, the module copies the book's own arrangements 7 and 8 into `arrNN.sl` files + and notes in `arrlend.work` what the setlist's copies look like. If the module was not there to stop it (a trial + ended by a power cycle, the module removed) and stock saved those copies over arrangements 7 and 8, installing + Songbook again and opening that project puts them back from `arrNN.sl`; anything else saved there in between is + kept. A copy edited there without the module but not renamed still counts as a copy, and the backup comes back + over it. Still, **end a setlist (open ARR > BOOKS) before removing the module.** +- **Edits during a show** are written to each song's own file when the setlist ends (opening ARR > BOOKS, stopped). + A RELOAD or a power cycle drops edits not yet written, as stock does for unsaved changes. A song renamed while a + setlist plays keeps its old name. +- **A project comes back into its setlist.** LOAD and RELOAD PROJECT return to the setlist and song saved with the + project, a power cycle to the song playing; the Part box shows the setlist while it comes back. Without the module the + project opens on book 1. +- **Changes to stock flows (only while the module is installed):** the arranger menu reads BOOKS for CHANGE and + SETLSTS for CHAIN (CHAIN itself is replaced: a two-song setlist does its job, across books too); the menu's title + reads `ARR B2:3:NAME` (book, arrangement, name) or, in a setlist, `STL:::`; the + arranger rows' chain line reads `>` and the next song's name; while a setlist plays, the main screen's Part box and + pattern line show the setlist instead of the Part and the pattern. CUE + YES on the main screen is taken only while a + setlist plays (stock does nothing with it there). + +- **Takes:** LEFT and RIGHT in ARR > BOOKS (stock does nothing with them there), the top right corner of that list for the label, and stock's arrangement writer, which it steps into at its entry: on book 1 stock writes arr01 to - arr08 exactly as always, on another book that book's 8 files are written instead. No other module or base hook uses - that site (`npm run modules:compat`). + arr08 exactly as always, on another book that book's 8 files are written instead. For setlists: the arranger menu's + CHANGE and CHAIN entries (their names, CHAIN's routine and icon), the operands of the menu title's index and format + and of the arranger rows' chain line (pointed at the module's own text; stock's strings stay untouched), CUE + YES + and CUE + LEFT/RIGHT in ARR > BOOKS, and CUE + YES on the main screen while a setlist plays. No other module or base + hook uses these sites (`npm run modules:compat`). - **A change to a stock flow: LOAD PROJECT and arranger mode.** Stock's LOAD (PROJECT > CHANGE) opens a project in pattern mode, while RELOAD keeps the mode. With the module, a project that was left (switched, synced or saved) in arranger mode opens in arranger mode again, after its book and arrangement are restored; one left in pattern mode @@ -64,8 +117,9 @@ unless you edit that arrangement. - **A project comes back where it was left.** A power cycle keeps the book in use (the Octatrack keeps its arrangements in battery memory). LOAD PROJECT returns to the book and arrangement of the last switch, SYNC TO CARD or SAVE PROJECT, and RELOAD PROJECT to those of the last SAVE PROJECT, as stock does for its own files: the module - keeps them in `arrbook.work` (and `arrbook.strd`). Stock first loads book 1; on another book the module then - switches as LEFT/RIGHT do, about two seconds after stock's load has finished. Without the module a project opens on + keeps them in `arrbook.work` (and `arrbook.strd`). Stock first loads book 1; once stock's load has finished, one card + job of the module's reads where the project was left and switches as LEFT/RIGHT do (and starts its setlist). Loading + another project, stock names the new project only once its load is over, so that job comes after the whole load. Without the module a project opens on book 1. - **Switch back to book 1 before removing the module.** Without the module, stock's next save writes whatever book is in its 8 slots into arr01 to arr08. Leaving book 1 always keeps a backup of it (`arr01.bak` to `arr08.bak`, stock @@ -74,7 +128,9 @@ unless you edit that arrangement. - **Saved with the project.** SAVE PROJECT copies arr09 to arr128 to their `.strd` copies as stock does for arr01 to arr08, and RELOAD PROJECT copies them back. Stock's own project copy functions copy book 1 only; copying the project folder copies every book. -- **Battery RAM:** 16 bytes at 0x100f8f10 (sdk/machines/octatrack/battery-ram.json) remember which book the slots hold. +- **Battery RAM:** 20 bytes at 0x100f8f10 (sdk/machines/octatrack/battery-ram.json) remember which book the slots + hold, whether it was read in full, and whether slots 7 and 8 hold a setlist's songs (and which song plays). +- **Memory:** about 98 KB, most of it the setlist's songs (16 arrangements). ## Tests and measurements @@ -86,9 +142,17 @@ Original module by Andrey Sidorkin, MIT (LICENSE). No firmware, stock code or st ## Screens and audio -![ARR > CHANGE on book 1](media/ot-change-book.png) +![ARR > BOOKS on book 1](media/ot-books-list.png) + +![CUE + YES in ARR > BOOKS adds the arrangement to the open setlist](media/ot-books-added.png) + +![The SETLSTS page](media/ot-setlists-page.png) + +![The main screen while a setlist plays: its name in the Part box, its place on the pattern line, the next song on the chain line](media/ot-setlist-main.png) + +![CUE + YES on the main screen: the setlist, the playing song and the next one](media/ot-setlist-window.png) -Emulator capture (ot_emu), not the unit. No audio: the module makes no sound. +Emulator captures (ot_emu), not the unit. No audio: the module makes no sound. ## Develop diff --git a/sdk/octatrack/modules/songbook/RESEARCH.md b/sdk/octatrack/modules/songbook/RESEARCH.md index 33881795ec..9a01f121eb 100644 --- a/sdk/octatrack/modules/songbook/RESEARCH.md +++ b/sdk/octatrack/modules/songbook/RESEARCH.md @@ -91,3 +91,38 @@ pending switch then backs up book 1 when leaving it and reads the next book's fi backup and marks all 8 changed, so stock's next write repairs arr01-08. A file that does not read leaves its slot empty and is never written back unless that arrangement is edited. Which book the slots hold survives a reinstall in the battery record, valid only while a fingerprint of the slots still matches; a project load always means book 1. + +## Setlists (0.2.0) + +- **CHAIN:** stock's chain target is `0x80006694` (-1 none, taken once). The arranger step takes it past an + arrangement's last row (`0x4004a7e2`): index (`0x80000005`, `0x100b14d1`) and pointer (`0x10000000`) to that slot, row + 0, playing on; the start routine (`0x400a0230`) takes it when it starts an arrangement with no rows. Past the last row + with no chain the arranger ends (`0x4004a75e`). Playing a setlist is a chain from slot 7 to 8 and back, the module + putting the song after next into the freed slot; stock clears the chain only when taking it, but the module sets it + again every frame. +- **The arranger menu:** descriptor `0x400be7e6` (2 rows of 4), entries of 16 bytes `{name[8], icon, routine}` from + `0x400be766`: CHANGE `0x400be786` (routine `0x40058abc`), CHAIN `0x400be796` (icon `0x400be5c2`, routine + `0x40058b38`). Names are drawn with `%s` (`0x400488c4`), so 7 letters at most; an icon is two pictures of + `{27, 13, 1, image, mask}`, 27 columns of a word each, the top row in bit 31. +- **The menu title** is `sprintf("ARR %d:%s", index + 1, name)` at `0x40057f1c`: the index from `0x80000005` + (operand at `0x40057f48`), the format `0x400b47e6` (operand at `0x40057f54`). +- **The chain line** in the arranger rows is drawn from `"CHAIN ARR. %d"` (`0x400b4652`, operands at `0x40048eb8` and + `0x400496e6`). Its `"%d"` at `0x400b465d` is stock's shared number format (76 users: tempo, MIDI channel, bank); + writing it blanked them all. Writing into a declared stock change at run time also makes the loader's check of its + bytes fail, and every later install is refused as busy (refusal 5) until a power cycle. The module points the + operands at its own text instead. +- **Redrawing the rows:** stock posts token `0x400c0c41` to the UI queue `0x460d17ae` (`0x40000c3c`) as it takes a + chain; posting it again draws the rows with a chain set after stock's own drawing. +- **Key routing:** the handler of each key code at `0x46c7d8de + code * 0x18`. YES on the main screen `0x4005e4c8`, + in the arranger menu `0x4003395c`, in the editor `0x40058f34`; with CUE held stock routes YES elsewhere + (`0x400402ec`), so the module notes the screen when CUE goes down. CUE + BANK opens stock's SELECT BANK and CUE + NO + its DISARM ALL on the main screen; CUE + YES and CUE + UP/DOWN do nothing there (ot_emu). +- **The name editor:** `0x4007e664(length, title, buffer, 1, done(ok))`, as RENAME (`0x40049c88`) calls it. +- **Text in stock's font:** `0x40012bd8(0x400ba876, surface, x, 59 - top, -1, text)` on a copy of the surface at + `0x400bf10a` aimed at the module's frame (as pattern-sample-locks does). +- **0x1001614c** is set by edits and by stock's arrangement writer after it writes a slot (`0x40091748`); the writer + chooses slots by its mask or a missing file (`0x40091680`), never by this byte. +- **Loads and slots 7 and 8:** about 10 s into a RELOAD, stock reads arr01-arr08 into the slots (ot_emu); after a power + cycle the slots keep what they held (battery RAM) and the module comes up after stock's project load, so no load hook + reaches it. The module keeps "slots 7 and 8 hold setlist songs" and the playing song in its battery record (byte 7), + cleared only once the book is read back from its files. diff --git a/sdk/octatrack/modules/songbook/TESTING.md b/sdk/octatrack/modules/songbook/TESTING.md index 481d8018cd..ef67629739 100644 --- a/sdk/octatrack/modules/songbook/TESTING.md +++ b/sdk/octatrack/modules/songbook/TESTING.md @@ -1,12 +1,13 @@ # Songbook testing -Version 0.1.0-experimental, called Arr Setlists until 22 November 2026. Host gate, emulator runs and the developer's own tests on their MKI (flashed base -`6c189889…`), each on the named build below; the last build tested on the unit is package `37f7e94f…` (source -`b976e98ff`), on base 0.7.13, 23 November 2026 (the test procedure below); the book 1 fix after it is host-tested only. +Version 0.2.0-experimental (setlists; section "Setlists (0.2.0)" below) on 0.1.0-experimental (books), called Arr +Setlists until 22 November 2026. Host gate, emulator runs and the developer's own tests on their MKI, each on the named +build below; the release build is package `e06c9f98…` (source `3a0b10d2`), tested on the unit on 1 December 2026 on base +0.8.2 (sections "The give-back keeps newer work" and "Slots 7 and 8 kept safe"). ## Host gate -`verify.py`: 97 checks of songbook.c against simulated battery RAM and simulated stock file routines: switching +`verify.py`: 218 checks of songbook.c (89 for the books of 0.1.0) against simulated battery RAM and simulated stock file routines: switching both ways, arr09-arr128 named and written 8 at a time, book 1's backup and arr01-08 repaired on return, a file that will not read never written back, refusals (playing, card busy, no project), reinstall and power-cycle detection by the battery record, SAVE and RELOAD PROJECT, returning to where a project was left (in stock's order of hooks and its two @@ -176,43 +177,164 @@ empty slots over arr01-08. Fixed: book 1 read only in part is written as books 2 model now writes as stock does; `verify.py` (89 checks) adds the sync on a partly read book 1, which the previous code fails (with the corrected model, three checks). Host-tested only. -### A LOAD of another project (found on the unit with the setlists build, 24 November 2026) - -The module read `arrbook.work` at `ev_banks_load`, where stock's project directory is still the last project's: a -project loaded after another came up on the other's book and choices, and that state was later saved into the new -project's `arrbook.work` (seen on the developer's MKI with the setlists build, whose setlists file is read the same way; -earlier unit tests only reloaded the same project). Three faults, found and fixed one after another on the developer's -MKI (OS 1.40C, base 6d23e888): - -1. Reading at `ev_banks_loaded` instead (build `76c3abfc1`) was not enough: on the unit B still came up on A's book and - arrangement, and A then on B's. Loading another project, stock's project name (0x100f8378) names the last project - at both hooks; the new one is in the load job's record (0x460bdec1). Now, when the two differ, the place is read by - a card job the module posts after the whole load; a LOAD of the project in use and RELOAD read as before; until the - new project is read, a card job writes none of the module's files (build `a6fd6a1eb`). On the unit, both projects - then came back on their own book, but on arrangement 1. -2. After such a load the arranger's run state (0x800066a0) stayed set with nothing playing, and stock's choice of - arrangement refuses while it is set: the module's two seconds of retries gave up. Now, on a return after a load - only, after half a second of refusals and stopped, the module runs stock's arranger reset (0x4009ae48, which stock - runs for each new project) and chooses then (build `e6998c4c5`). On the unit, A then came back on book 3, - arrangement 6, and B on book 2, arrangement 1, but B's closed list kept A's cursor (row 6). -3. The list's cursor is now set after a switch whether the list is open or not (build `85d544a68`). -4. The module's job after such a load also takes the return to the project's book (one card job of its own, not two), - and closes that job's NOW SAFE TO EJECT! (found with the setlists build, 24 November 2026). On build `fc5637002` - (package `3edb5955`), as the developer reported it: A left on book 3 came back on its arrangement after a LOAD of B - and back, the list's cursor on it, PLAY from its first row, no NOW SAFE TO EJECT!, one job more than a load with - nothing to bring back. -5. Fix 3 set only the list's drawn cursor; YES takes the list's choice (0x400c0ba8), which stayed where it was, so YES - after a switch or a load could select another arrangement than the one under the cursor (found with the setlists - build, where CUE + YES added arrangement 1). Both are set now (build `c642ca255`, package `84a8ba8a`); on the - developer's MKI, as they reported it: after a switch away from book 6 and back, and after closing and reopening - CHANGE, YES without moving the cursor selected the book's chosen arrangement. - -On build `85d544a68` (package `81eb7172`), as the developer reported it: A left on book 3 on an arrangement with rows, -LOAD of B came up on book 2, arrangement 1, with the list's cursor on 1; LOAD of A came back on book 3 and its -arrangement, cursor on it; PLAY played that arrangement from its first row; CHANGE LEFT and RIGHT switched books as -before. `verify.py` (97 checks) models both project directories, the name switching only after the load and a run -state left set; the previous builds fail their cases. +## Setlists (0.2.0) + +Host gate: `verify.py`, 218 checks; the setlist part plays through a simulated CHAIN (stock taking it past a song's +last row), the end on END OF ARR, edits during a show, copy and paste, names and the old file format, the main-screen +and title displays, the CUE + YES window, and every path that can touch slots 7 and 8. + +Emulator (ot_emu, adapted, the beta base, MKI panel, 23 November 2026), screenshots by the panel link: SETLSTS fits its +menu cell; the page, the window, the add message, the LIST box, the Part-box display and the menu titles drawn in +stock's font where intended; "SETLSTS" and "BOOKS" in the menu, the list icon. The emulator's sequencer does not advance +after PLAY (stock pattern mode neither), so no song change could be seen there. The busy refusal and the RELOAD loss +below were reproduced there and their fixes checked there. + +On the developer's MKI (OS 1.40C, base 0.7.13, kept beside USB AUDIO and Arr Rows 0.2.0, a scratch project), as the +developer reported it, 23-24 November 2026, the last build `1d576a3e…` (source `7a53e26af`): a setlist of three songs +plays through with each song following the last, the last ending on END OF ARR; the window chooses the next song at +once with YES and follows a song change; copy and paste of songs and setlists; names; the Part-box display, the menu +titles and the playing mark; an edit made during a show (row 000 set to A16 in song 2) is in that song's book after +the setlist ends; RELOAD and a power cycle in a setlist come back into it on the song it was on, songs intact. +Not run: LOAD of another project and back during a setlist (host-tested); an MKII. + +### Faults found on the unit and fixed + +- **Installs refused as busy until a power cycle** (`7f2c9fb4` and later): the module wrote the next song's name into + the bytes of its own declared poke; the loader's check of declared bytes then failed every later switch (refusal 5). + Reproduced in ot_emu (starting a setlist, then an install). Fixed in `a5d48552c`: the chain line's operands point at + the module's own text. Installs after a setlist went through on the unit from then on. +- **Tempo, MIDI channel and bank numbers blank** (`88922349` to `c4e6b541`): the chain-text poke covered stock's shared + `"%d"`. Fixed in `d3a8ace28`, then replaced by the operands above. +- **Data loss on RELOAD in a setlist** (`3382ca4f`): the reload hooks did not end the setlist in memory; stock refilled + slots 7 and 8 with book 1's (empty) arrangements 7 and 8, and the module took them back as edits of songs 2-8 and + wrote them when the setlist ended. Reproduced in ot_emu. Fixed in `a542bc4d4`: every load, reload and new project lets + go of a setlist, and a slot no longer holding its song (name changed or rows gone) is never taken back. +- **Data loss on a power cycle in a setlist** (`26f14530`): slots 7 and 8 kept the setlist's copies (battery RAM) with + a stale fingerprint; the module took them for book 1 and the resume's card job wrote them into arr07/arr08. Fixed in + `5a67c187b`: the battery record alone says the slots hold setlist songs, and while it does and no setlist plays, a + card job reads the book back first and writes none of it. The host test fails on the faulty code. +- **No resume after a power cycle** (`dc591db7`): the module comes up after stock's project load, so no load hook told + it; fixed in `065d1bd20` (the first card job reads arrbook.work). +- **Another project's setlists after a LOAD** (`a95a5a5a` and earlier): the module read arrbook.work and arrlists.work + while stock's project directory still named the last project (at `ev_banks_load`, and at `ev_banks_loaded` too), so + project B came up with A's setlists and A then with B's. Fixed with #1737's three LOAD fixes (`be24ed97a`): read after + the whole load when the project names differ, a stuck arranger run state reset before the return or a setlist's + first song, the closed list's cursor set. +- **CUE left held after renaming a setlist** (`8c54d96b`): no key reaches the module in stock's name editor, so a CUE + released there stayed held; LEFT/RIGHT then moved songs and arrangements. Fixed in `2bf33b38b` (CUE and FUNC forgotten + around the editor). +- **PROJECT > CHANGE opened SETLSTS** (`83d01931` and earlier): the page took the release of the YES that opened it, so + stock kept YES routed to the Arranger menu's dispatcher and every later YES ran its last item. Reproduced in ot_emu. + Fixed in `d23b2fe85`: the page takes a release only when it took the press. +- **FUNC closed the SETLSTS page** (`83d01931`, `a94cdbd0`): a check on YES's route, which FUNC and CUE re-route, closed + it. Removed in `d80a49602`. +- **NOW SAFE TO EJECT! after restarting a playing setlist from another song**: only switches and a stopped start closed + it. Fixed in `d80a49602`: every card job the module posts closes it. + +On `d80a49602` (package `8878af4a`), as the developer reported it: B on its own book 2, arrangement 1, with its own +setlists; PROJECT > CHANGE opens the project list after SETLSTS was used; A left on song 2 of a setlist came back into +it after LOAD of B and back, and PLAY went on to song 3; FUNC, FUNC + YES, FUNC + REC and FUNC + STOP on the page; +CUE + YES and CUE + LEFT/RIGHT in BOOKS; no message on a restart from another song. After a LOAD back into a setlist, +the main screen shows the book for a moment before the setlist. Once, in stock's name editor, the character choice +stayed open after every key was released; not reproduced. + +After a LOAD back into a setlist the module took two or three card jobs of its own (read the project's files; switch +the book; start the setlist) and the main screen showed the book before the setlist. Since `3186f4341` the Part box +shows the setlist while it is due to come back, and since `331dd4536` one job of the module's does all three. On +`331dd4536` (package `346fd848`), as the developer reported it: A back in its setlist on song 2 and PLAY going on to song +3; the module's event log showed one job of its own after stock's load; about as many jobs on the screen as loading a +project the module brings nothing back for (B on book 1), one more. + +## The give-back keeps newer work (the second review of #2431), package `e06c9f98` + +The review: `give_back()` restored 7 and 8 from `arrNN.sl` whenever the note said they were lent, so work saved in +`arrNN.work` while the module was away (a week on 0.1.0 or the stock OS) would be lost; and a second setlist on another +book overwrote a note never given back. Now `arrlend.work` ("ASL2") keeps the book's own two names and each setlist +song's name and fingerprint (FNV-1a of its working block), filled once the songs are in memory. A slot comes back from +`arrNN.sl` only while it holds such a copy (the exact block, or a song's name that is not the book's own); otherwise +`arrNN.work` is kept and the note cleared. Before a new setlist, a note still on for another book repairs that book's +files the same way, through slot 8 (and book 1's `.bak`), then slot 8 gets this book's own back. The build references +in `proof_note` and the first limitation name the record instead of a hash: `manifest.py` is part of the package, so a +hash written there changes the package it names. + +- **Host gate:** 264 checks. New: arrangement 7 edited and saved with the module away, then the module back: the edit + kept and arrangement 8 (a copy) restored; a note never given back for book 1, a setlist on book 2: book 1's 7 and 8 + repaired in `arr07/08.work` and `arr07/08.bak`, the note then book 2's. Three older checks now expect no write where + `.work` held no copy, and the note's new magic. +- **ot_emu, 0.8.2 twin:** the setlist flow and ARR > BOOKS rows 7 and 8 as before; book switch 13,950,460 instructions + (book 2 to 1: 7,817,335), the 20-cycle stress with no hang. +- **test:procedure on `e06c9f98`, the developer's MKI, 1 December 2026:** steps 1-10 passed (two runs stopped at the + preflight first: Part 2 of bank D unsaved, then pattern D06 with trigs on 7 tracks; on D02 Part 1 it ran). +| Case | Why this change makes it a risk | How run | Result | +|---|---|---|---| +| Arrangement 7 edited and saved without the module, then Songbook again | the backup must not win over newer work | host gate | the edit kept, the copy in 8 restored | +| A note never given back, then a setlist on another book | the new note dropped the old backup | host gate | the old book repaired first, .bak too | + +## Slots 7 and 8 kept safe (the owner's review of #2431), package `c8eb7186` + +The review: a setlist borrows the open book's arrangements 7 and 8, so nothing may leave a setlist's copies in them. +Package `c8eb7186061b4003…` built from `7d1e11fb` in the pinned toolchain. + +- **What changed.** Before a setlist borrows slots 7 and 8 the module writes the book's own arrangements 7 and 8 to + `arrNN.sl` and notes it in `arrlend.work` (a file of its own: Songbook 0.1.0 rewrites `arrbook.work` after a power + cycle, stock writes neither). Whenever it gives the slots back (the setlist's end, a reread after a load, a reinstall + or a power cycle) it reads them from `arrNN.sl` and writes them to `arrNN.work` too, then clears the note. While byte + 7 of the record says the slots are lent, no path writes slots 7 and 8 to a book's file: `write_book`, `write_changed` + and stock's writer (its mask loses bits 6 and 7), the mid-load save of the last project included. ARR > BOOKS names + rows 7 and 8 by the book's own arrangements while they are lent (stock's row routine 0x40036e18, its call to + 0x40013904, through `as_list_row`; the developer asked for it on the unit). +- **Host gate:** 259 checks. New: the backup and the note at a setlist's start; stock alone saving the copies over + arr07/08.work, then the module installed again putting them back (with `arrbook.work` rewritten as 0.1.0 does); a + write inside a LOAD in a setlist writing no copy; the BOOKS rows 7 and 8; two older checks now count the two writes + of the give-back. +- **ot_emu, base 0.8.2 twin:** Songbook 0.1.0 (`84a8ba8a`) on book 2 with arrangement 1 named B2 ONE, then 0.2.0 + installed in place: still book 2, the menu title ARR B2:1:B2 ONE, book 1 empty and untouched, and B2 ONE back after + book 2 to 1 to 2. A setlist playing: slot 7 holds the copy, ARR > BOOKS shows rows 7 and 8 by the book's own + (empty) arrangements. Book switch 13,809,657 instructions (book 2 to 1: 7,994,970), the 20-cycle stress with no hang + (evidence/performance.json). +- **The developer's MKI, flashed base 0.8.2, kept set Arr Rows, Smart Reload and Songbook 0.1.0, book 1's arrangements + 7 and 8 named SEVEN and EIGHT,** as the developer reported it, 1 December 2026: with `1c1d4549` in a trial, a setlist + playing put its copies in slots 7 and 8 and BOOKS showed them (the developer asked to show SEVEN and EIGHT instead: + done in `c8eb7186`); STOP and BOOKS brought SEVEN and EIGHT back. With `c8eb7186` in a trial: BOOKS during the + setlist showed SEVEN and EIGHT (passed). A power cycle while the setlist played, then SAVE PROJECT: the slots showed + the copies until the project's load, then SEVEN and EIGHT, which the save kept (passed: nothing lost). + +`npm run test:procedure -- songbook --package public/octatrack-modules/songbook/0.2.0-experimental.mwrm --soak-seconds 90 +--emulator --twin <0.8.2 twin>` on `c8eb7186`, 1 December 2026: steps 1-10 passed (emulator rehearsal on the +twin, scripted pass, 90 s soak, cost at rest 0 points of the frame interrupt, put back). + +| Case | Why this change makes it a risk | How run | Result | +|---|---|---|---| +| A power cycle in a setlist, then SAVE PROJECT with 0.1.0 kept | stock saves what its slots hold | the developer's MKI | arrangements 7 and 8 intact | +| Stock alone saved the copies over arrangements 7 and 8 | the module was not there | host gate | put back from arrNN.sl once installed again | +| A write inside a LOAD in a setlist | the mid-load save goes to stock's writer | host gate | no copy written | +| ARR > BOOKS during a setlist | it showed the copies | the developer's MKI, ot_emu | the book's own names | +| Update in place from 0.1.0 on book 2 | the record and arrbook.work from 0.1.0 | ot_emu; the developer's MKI (flashed 0.8.2, 0.1.0 kept on book 2, then Arr Rows, Smart Reload and Songbook `c8eb7186` kept) | book 2 and its arrangements kept, book 2 to 1 to 2 and a power cycle too (passed) | +| A setlist edited and ended, its songs from the open book's 7 or 8 | the backup must take the edit too | code: the edit is also written to arrNN.sl | not run on its own | +| The stock OS with no Songbook at all | the owner's exact case | not run | the project load restores the slots before a save, as with 0.1.0 | + +## Qualification and test procedure (0.2.0-experimental, package `8f9c50a6`) + +Package `8f9c50a6970dafe6…` from `1e23308d`, the build the developer kept and checked by hand (the cases below), 29 +November 2026: `test:procedure` steps 1-10 passed on the 0.8.2 twin (earlier the same day by hand: step 7 first stopped +on an unsaved Part and on arranger mode on; one soak stopped on a refused MEM read from another session on the shared +socket, its rerun passed). Book switch under ot_emu 13,941,677 instructions; 25,816 bytes of code and data, 100,756 of +bss. Superseded by `c8eb7186` and `e06c9f98` above. + +| Case | Why this change makes it a risk | How run | Result | +|---|---|---|---| +| Power cycle in a setlist (book 1 and other books) | the slots hold setlist copies when stock loads | developer, base 0.8.1 and 0.8.2 | back in the setlist on the song it was on, at its first row (was END OF ARR, fixed) | +| LOAD and RELOAD in a setlist | stock reloads the slots | developer | back in the setlist | +| Empty songs in a setlist, one or several in a row | an empty arrangement stopped playback | developer, at the start and inside the chain | passed over | +| Trig keys in BOOKS and SETLSTS, two pressed together | a held trig is stock's too | developer | the trig picks the book or setlist, two together ignored | +| Trig lights, the list closed with NO | the module writes stock's LED bytes | developer | stock's lights back | +| CUE + YES quick menu | it could pick the song that plays | developer | the playing song never offered | +| Stock messages (DISARM ALL) and pattern mode | the setlist box drew over them | developer | box hidden | +| Main-screen name, 12 and 16 letters | the counter's room and stock's 11-letter limit | developer (12), ot_emu on both bases (16) | whole name, no counter | +| Beside Arr Rows and Smart Reload, kept | one package alone replaces the set | developer, the three kept together | all three run | +| Recorder buffers while a setlist changes song | the stop check read one buffer | host gate | passed | +| Setlist copies in book 2's slots 7-8 (reported once) | the copies live in slots 7-8 | not reproduced | open | ## Qualification (0.1.0-experimental, package `84a8ba8a`) @@ -273,11 +395,17 @@ the twin; the module makes no sound). | Removing the module on book 1 | stock's next save writes the slots as arr01-08 | the developer's MKI, package 08d0833a removed on book 1, then a power cycle (an earlier build had left book 2 in book 1, the load fault since fixed) | pass: the stock arrangements were book 1's | | An arr09+ file there but failing to open once | taken for a missing file, its empty slot was written back (owner's review) | host test (verify.py) | pass in the host test; not run on a unit | | A reinstall or Undo between that failed read and the next sync | the module forgot the book was read only in part (owner's review) | host test (verify.py); on the MKI, `37f7e94f…`: distinct books 1 and 2 through a power cycle and a trial + Undo, each followed by a sync | pass on the MKI (both books as made); the failed read itself only in the host test | -| LOAD of another project | the module read the new project's arrbook.work while stock's directory was still the last project's | host test (verify.py), two project directories; the developer's MKI | pass, build 85d544a68 (package 81eb7172), as the developer reported it | | A sync on book 1 read only in part | stock's writer writes all 8 slots on a sync, the empty ones too | host test (verify.py), with stock's writer modelled as it works | pass in the host test; not run on a unit | | Removing the module on a book other than 1 | stock would write that book into arr01-08 | README asks to step back to book 1 first | not run: documented limitation | | A book file that does not read | must not be written back | host test (verify.py) | not run on a unit | | A new project (ev_project_new outside a load) | must reset the books, not keep a load's return | host test (verify.py) | not run on a unit | +| A setlist's songs in the open book's arrangements 7 and 8 | the setlist borrows those slots | the developer's MKI (songs at 1:6, 1:7, 1:8), `214efe0e`/`1d576a3e` | pass: intact through a power cycle (lost on `26f14530`, fixed) | +| RELOAD during a setlist | stock refills slots 7 and 8 ~10 s into the reload | ot_emu reproduction; host test; the developer's MKI | pass on `fbb53513` and later (lost on `3382ca4f`, fixed) | +| Power cycle during a setlist | the slots keep the copies; no load hook reaches the module | host test (both); the developer's MKI | pass on `214efe0e`: back on song 2, songs intact | +| LOAD another project and back during a setlist | stock replaces the slots; its project directory names the last project until the load is over | host test; the developer's MKI | pass on `d80a49602` (package `8878af4a`): each project with its own setlists, A back on song 2 | +| An install while a setlist plays | fresh module memory, slots 7 and 8 not the book's | host test | pass in the host test; on the unit the install after each test ran without loss | +| An empty song in a setlist | stock takes the chain at once when it starts an empty arrangement | host test (slots emptied) | pass in the host test | +| Removing the module during a setlist | stock would save the copies into arrangements 7 and 8 | README asks to end the setlist first | not run: documented limitation | | MKII | another panel and key layout | none | not run: no MKII | | device:test / device:qualify lifecycle | install, Keep, Undo, removal on the scripted path | none | not run: the development base's RAM boot broke off over USB (18 and 23 November 2026); install, Keep and a trial + Undo were run by hand on the flashed base | diff --git a/sdk/octatrack/modules/songbook/evidence/cpu-price.json b/sdk/octatrack/modules/songbook/evidence/cpu-price.json index 96ff618405..61f4c762c2 100644 --- a/sdk/octatrack/modules/songbook/evidence/cpu-price.json +++ b/sdk/octatrack/modules/songbook/evidence/cpu-price.json @@ -1,38 +1,68 @@ { - "module": "songbook", - "version": "0.1.0-experimental", - "base": "development twin 4c7eb79b of the beta base (main 3043f8339), RAM-booted from the flashed eb667962", - "scene": "MKI (OS 1.40C), the developer's test project in pattern mode, transport stopped, T1 selected; installed as a trial and used by no key press, menu or setting", - "seconds": 8, - "measuredAt": "2026-11-24T11:53:32.587Z", - "result": { - "id": "songbook", - "version": "0.1.0-experimental", - "packageSha256": "84a8ba8ac39f74aaa8cd842f3179a1f8b0d38a24ffb32b56765daeb417c4ac47", - "before": { - "frame": 58.1, - "frameMax": 96.4, - "frames": 22259, - "skipped": 0, - "cpu": 68.3, - "dsp1to4": 48, - "dsp5to8": 48.3 + "module": "songbook", + "version": "0.2.0-experimental", + "base": "development twin 46c30886 of base 0.8.2 (release 24e480c4 flashed), MKI, OS 1.40C", + "scene": "the bank, pattern and Part the unit was on, transport stopped, arranger mode off (test:procedure)", + "inputs": { + "transport": "playing" }, - "atRest": { - "frame": 57.7, - "frameMax": 94.6, - "frames": 22257, - "skipped": 0, - "cpu": 66.9, - "dsp1to4": 47.9, - "dsp5to8": 48 - }, - "atRestAdds": { - "frame": -0.4, - "cpu": -1.4, - "dsp1to4": -0.1, - "dsp5to8": -0.3 - }, - "rolledBack": true - } + "seconds": 8, + "readings": 3, + "measuredAt": "2026-12-01T14:50:02.753Z", + "result": { + "id": "songbook", + "version": "0.2.0-experimental", + "packageSha256": "e06c9f98668142f1b1ff79b2501c124ebcb30b0dd8832c79de95ba0dce736bfa", + "before": { + "frame": 57, + "frameMax": 92.1, + "frames": 67097, + "skipped": 0, + "cpu": 65.5, + "dsp1to4": 48.6, + "dsp5to8": 47.8, + "dsp1to4Peak": 50.1, + "dsp5to8Peak": 54.6, + "readings": 3, + "spread": { + "frame": 0.3, + "cpu": 0.3, + "dsp1to4": 2.7, + "dsp5to8": 0.7, + "frameMax": 1.5, + "dsp1to4Peak": 0, + "dsp5to8Peak": 6.1 + } + }, + "atRest": { + "frame": 56.6, + "frameMax": 95.1, + "frames": 67073, + "skipped": 0, + "cpu": 65.5, + "dsp1to4": 47.1, + "dsp5to8": 47.4, + "dsp1to4Peak": 50.2, + "dsp5to8Peak": 50.1, + "readings": 3, + "spread": { + "frame": 1.6, + "cpu": 0.8, + "dsp1to4": 1.3, + "dsp5to8": 0.2, + "frameMax": 4.3, + "dsp1to4Peak": 0.1, + "dsp5to8Peak": 1.7 + } + }, + "atRestAdds": { + "frame": -0.4, + "cpu": 0, + "dsp1to4": -1.5, + "dsp5to8": -0.4, + "dsp1to4Peak": 0.1, + "dsp5to8Peak": -4.5 + }, + "rolledBack": true + } } diff --git a/sdk/octatrack/modules/songbook/evidence/performance.json b/sdk/octatrack/modules/songbook/evidence/performance.json index eac217d27b..ab42f86f0b 100644 --- a/sdk/octatrack/modules/songbook/evidence/performance.json +++ b/sdk/octatrack/modules/songbook/evidence/performance.json @@ -1,21 +1,21 @@ { "schema": 1, "module": "songbook", - "version": "0.1.0-experimental", - "sourceSha256": "70d4e6764c8f13b344e16f7c51e388083c7e953b26bf201959fd582e7ec5f195", + "version": "0.2.0-experimental", + "sourceSha256": "5d45d7678bbc3c083875284d9aba0a753f3ffaef21ea0d91405f3338f7da377a", "kind": "coldfire", "trigger": "key", "cycles": { "unit": "cycles/event", "static": null, - "measured": 13754188, + "measured": 13950460, "budget": 26600000, - "method": "Measured under ot_emu (the adapted emulator, MKI panel, beta base 0.7.13 twin, package 84a8ba8a over the emulated USB; emulator, not hardware), executed ColdFire instructions, not chip cycles: the PC watch on stock's arrangement writer's entry (0x400915ac, the module's jmp) and its return (0x40091a76) during the dearest press, LEFT/RIGHT in ARR > CHANGE from book 1 to 2 (stock saves arr01-08, the module writes book 1's backup, reads book 2's 8 files and fingerprints the slots): 13,754,188, interrupts and other tasks in the window included; book 2 to 1: 7,849,450. The switch runs inside stock's SYNC TO CARD job on the card task, outside the audio frame; the module refuses it while playing." + "method": "Measured under ot_emu (the adapted emulator, MKI panel, development twin 46c30886 of base 0.8.2, package e06c9f98 over the emulated USB; emulator, not hardware), executed ColdFire instructions, not chip cycles: the PC watch on stock's arrangement writer's entry (0x400915ac, the module's jmp) and its return (0x40091a76) during the dearest press, RIGHT in ARR > BOOKS from book 1 to 2 (stock saves arr01-08, the module writes book 1's backup, reads book 2's 8 files and fingerprints the slots): 13,950,460, interrupts and other tasks in the window included; book 2 to 1: 7,817,335. 0.2.0's setlists add no card work of their own beyond this path, and their per-tick follow-up runs on the UI task (cost at rest 0 on the unit, evidence/cpu-price.json). The switch runs inside stock's SYNC TO CARD job on the card task, outside the audio frame; the module refuses it while playing." }, "stress": { "events": 20, "playing": true, "hangs": 0, - "method": "ot_emu, the same image and package, 24 November 2026: 20 cycles of PLAY, LEFT/RIGHT in ARR > CHANGE while playing (refused: STOP TO CHANGE BOOK), STOP, a Part change through the MKI's Part window (FUNC + MIDI, an arrow, YES; Parts 2 and 4 in turn, read back from 0x80000003), then the book switch, alternately RIGHT and LEFT, stopped. The writer ran twice per cycle (the switch and a write of stock's own), 40 times in all; ColdFire instructions kept advancing to the end, no hang. The emulator's sequencer does not advance after PLAY, so the transport was set but no steps played; on the unit the switch is refused while playing." + "method": "ot_emu, the same twin and package, 1 December 2026 (package e06c9f98): 20 cycles of PLAY, RIGHT or LEFT in ARR > BOOKS while playing (refused: STOP TO CHANGE BOOK), STOP twice, then the book switch, alternately RIGHT and LEFT, stopped. The writer ran twice per cycle (the switch and a write of stock's own), 40 times in all; ColdFire instructions kept advancing to the end and the arranger menu answered NO, no hang. " } } diff --git a/sdk/octatrack/modules/songbook/generate.py b/sdk/octatrack/modules/songbook/generate.py index ec6480d359..9a8ab4b961 100644 --- a/sdk/octatrack/modules/songbook/generate.py +++ b/sdk/octatrack/modules/songbook/generate.py @@ -11,7 +11,7 @@ import tempfile HERE = pathlib.Path(__file__).resolve().parent -sys.path.insert(0, str(HERE.parents[2] / 'sdk' / 'runtime')) +sys.path.insert(0, str(HERE.parents[2] / "runtime")) import m68k_codegen # noqa: E402 FLAGS = ['-mcpu=5475', '-msoft-float', '-O2', '-ffreestanding', '-fno-builtin', '-fno-common', '-fno-jump-tables', @@ -29,7 +29,7 @@ def generate(): undefined = subprocess.run(['m68k-elf-nm', '-u', str(obj)], check=True, capture_output=True, text=True).stdout.split() if undefined: sys.exit('songbook.c needs symbols nothing provides: ' + ' '.join(undefined[1::2] or undefined)) - subprocess.run([sys.executable, '-B', str(HERE.parents[2] / 'sdk' / 'runtime' / 'm68k_codegen.py'), str(obj)], check=True) + subprocess.run([sys.executable, '-B', str(HERE.parents[2] / "runtime" / 'm68k_codegen.py'), str(obj)], check=True) return '| Generated by generate.py from songbook.c; edit that.\n' + text diff --git a/sdk/octatrack/modules/songbook/manifest.py b/sdk/octatrack/modules/songbook/manifest.py index ec2a4cfa1a..a53506e58d 100644 --- a/sdk/octatrack/modules/songbook/manifest.py +++ b/sdk/octatrack/modules/songbook/manifest.py @@ -1,4 +1,4 @@ -"""SONGBOOK -- 128 arrangements per project, as 16 books of 8 (setlists follow in a later version). +"""SONGBOOK -- 128 arrangements per project, as 16 books of 8, and 16 setlists of up to 16 songs. Book 1 is stock's arr01-arr08; book 2 is arr09-arr16, and so on to book 16, arr121-arr128: ordinary stock arrangement files in the project directory, written and read by stock's own routines. In ARR > CHANGE, stopped, @@ -15,11 +15,24 @@ import os -from remix.schema import Category, Detour, Gate, Kind, Linked, Module, Proof +from remix.schema import Category, Detour, Gate, Kind, Linked, Module, Poke, Proof, SymbolRef from remix.stock_guard import stock_guard _HERE = os.path.relpath(os.path.dirname(os.path.abspath(__file__))) WRITER = 0x400915ac # stock's arrangement writer: link.w %fp,#-324 ; movem.l %d2-%d7/%a2-%a5,(%sp) +CHANGE_NAME = 0x400be786 # the Arranger menu's third entry: its 8-byte name, CHANGE +MENU_NAME = 0x400be796 # the Arranger menu's fourth entry (descriptor 0x400be7e6): its 8-byte name, CHAIN +MENU_HANDLER = 0x400be7a2 # the same entry's YES routine (stock's CHAIN list, 0x40058b38) +MENU_ICON = 0x400be79e # the same entry's icon (stock's CHAIN pictures, 0x400be5c2) +MENU_TITLE_INDEX = 0x40057f48 # the Arranger menu title's `mvz.b 0x80000005` operand (stock's index) +MENU_TITLE_FORMAT = 0x40057f54 # its `pea 0x400b47e6` operand ("ARR %d:%s") +COUNTER = (0x40045978,) # the operand of the main screen's `pea 0x400b45a3` ("%d:%d:%d", the arranger position right of the name) +COUNTER_FILL = 0x400459d4 # the operand of the position routine's `lea 0x40012254,a2` (its box x 90-116 cleared and inverted) +HEAD_FILL = (0x4003cf16, 0x4003d002) # the name bar's two `jsr 0x40012254` operands (x 45-88 cleared, then inverted) +HEAD_FIT = 0x4003cf48 # the name bar's `jsr 0x40012f88` operand (how much of the name fits 37 px) +HEAD_TEXT = 0x4003cf6e # the name bar's `jsr 0x40012bd8` operand (the name drawn, at most 11 letters) +LIST_ROW = 0x40036e62 # ARR > BOOKS' rows: the operand of `lea 0x40013904,a5` ("%c%d:%s" of mark, number, slot name) +CHAIN_ROWS = (0x40048eb8, 0x400496e6) # the operands of the arranger rows' `pea 0x400b4652` ("CHAIN ARR. %d", whose "%d" is shared) MODULE = Module( name="songbook", @@ -29,12 +42,42 @@ author="Andrey-Sidorkin", author_url="https://github.com/Andrey-Sidorkin", proof=Proof.UNTESTED, - proof_note="Host gate (97 checks); the developer's MKI checks, last on build b976e98ff (base 0.7.13, the test procedure and the owner's reinstall and Undo checks); a LOAD of another project and back, PLAY and LEFT/RIGHT after it, on build 85d544a68; the book 1 fix is host-tested only.", - doc="128 arrangements per project as 16 books of 8, all stock arrangement files: arr01-arr08 stay book 1.", + proof_note="Host gate (264 checks); the test procedure and the developer's MKI checks on base 0.8.2, on the package tests.qualification names (a hash here would change the package it names).", + doc="128 arrangements as 16 books of 8 (arr01-arr08 stay book 1), and 16 setlists of up to 16 songs from any book, played gapless.", linked=(Linked("songbook", os.path.join(_HERE, "songbook_core.s")),), detours=(Detour(WRITER, stock_guard(WRITER, 8, "b692e058a2f3049810c18b0571d61c085c3daba589a09b531fed42f528b96012"), "songbook", "as_writer_entry", "stock's arrangement writer: on book 1 stock's own, on another book its arr files; a switch's load", kind="jmp", pad_to=8),), + pokes=( + Poke(CHANGE_NAME, stock_guard(CHANGE_NAME, 8, "605d9de7d5f7c77f5f9df4320ac47c4d5ebe3cd971d7aa18e1438edb2a31b12b"), + b"BOOKS\0\0\0", "the Arranger menu's CHANGE item renamed BOOKS: its list shows the book in use (LEFT/RIGHT the others)"), + Poke(MENU_NAME, stock_guard(MENU_NAME, 8, "78048c5f30cf2d55c3a3b36c966c7e6b6c55d55df4295ee1c9129101860b71c9"), + b"SETLSTS\0", "the Arranger menu's CHAIN item renamed SETLSTS (stock draws the name with %s: 7 letters)"),), + symbol_refs=(SymbolRef(MENU_HANDLER, 0x40058b38, "songbook", "as_setlists_open", + "the Arranger menu's CHAIN item opens the SETLSTS page instead of stock's CHAIN list"), + SymbolRef(MENU_ICON, 0x400be5c2, "songbook", "as_setlists_icon", + "the Arranger menu's CHAIN item shows the module's list icon"), + SymbolRef(MENU_TITLE_INDEX, 0x80000005, "songbook", "as_title_index", + "the Arranger menu's title reads the module's index byte: stock's, or a setlist song's place"), + SymbolRef(MENU_TITLE_FORMAT, 0x400b47e6, "songbook", "as_title_fmt", + "the Arranger menu's title format: stock's ARR %d:%s, or SONG %d:%s in a setlist"), + *(SymbolRef(at, 0x400b4652, "songbook", "as_chain_text", + "the arranger rows' chain line reads the module's text (the next song's name), not CHAIN ARR. %d") + for at in CHAIN_ROWS), + *(SymbolRef(at, 0x400b45a3, "songbook", "as_count_fmt", + "the arranger position right of the name on the main screen reads the module's format: stock's, or none in a setlist") + for at in COUNTER), + SymbolRef(COUNTER_FILL, 0x40012254, "songbook", "as_pos_fill", + "the position's box is filled through the module: stock's, or not while a setlist plays"), + *(SymbolRef(at, 0x40012254, "songbook", "as_head_fill", + "the name bar is filled through the module: to x 88 as stock, or to x 116 while a setlist plays") + for at in HEAD_FILL), + SymbolRef(HEAD_FIT, 0x40012f88, "songbook", "as_head_fit", + "the name's width through the module: 37 px as stock, or to the right edge while a setlist plays"), + SymbolRef(HEAD_TEXT, 0x40012bd8, "songbook", "as_head_text", + "the name drawn through the module: 11 letters as stock, or 16 while a setlist plays"), + SymbolRef(LIST_ROW, 0x40013904, "songbook", "as_list_row", + "ARR > BOOKS rows through the module: rows 7 and 8 name the book's own arrangements while a setlist borrows their slots"),), gates=(Gate("modules/songbook/verify.py", remix_arg=False),), ) diff --git a/sdk/octatrack/modules/songbook/media/capture.json b/sdk/octatrack/modules/songbook/media/capture.json index 18274d25ab..ffedc678db 100644 --- a/sdk/octatrack/modules/songbook/media/capture.json +++ b/sdk/octatrack/modules/songbook/media/capture.json @@ -1,14 +1,14 @@ { "schemaVersion": 1, - "captured": "2026-11-18", + "captured": "2026-11-24", "moduleId": "songbook", - "moduleVersion": "0.1.0-experimental", - "packageSha256": "c6b2c9a40b82cae9b0c31dbc3c36c9eb0e160ac5ff7977df130ec6b7a16054df", - "sourceRevision": "5319d52b3", + "moduleVersion": "0.2.0-experimental", + "packageSha256": "346fd848f0094b45de2e3811417cacbc67fc3cd4ee96c7a826e7e1d8e2ee22fc", + "sourceRevision": "331dd4536", "firmware": "1.40C", - "imageSha256": "9c861d6f30aa6adeab6d536ae91b2a926405857495e16b422b5e74acd4d3cc24", + "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", "emulatorSha256": "5d4323b7b29c20d9b1d6251df39a668923bf17788eacb1f60ac9b61c7f43d29c", - "setup": "Headless ot_emu (octabam f7d72906, the adapted emulator), MKI panel, --dsp --dsp-rt, stopped transport; the Modwerk beta base 0.7.5 built from the developer's own 1.40C with the package installed over the emulated USB; a project created on an empty Set, arrangements 1-3 of book 1 named SONG ALPHA, BRAVO and CHARLIE through the emulator's memory poke; the LCD as the panel link carries it (module_draw included), 128x64 at integer scale 6.", + "setup": "Headless ot_emu (octabam f7d72906, the adapted emulator), MKI panel, --dsp --dsp-rt, stopped transport; the Modwerk beta base 0.7.13 built from the developer's own 1.40C with the package installed over the emulated USB; a project created on an empty Set, arranger mode on, arrangements 1 and 2 of book 1 given two rows each, arrangements 1-3 named SONG ALPHA, BRAVO and CHARLIE through the emulator's memory poke; the LCD as the panel link carries it (module_draw included), 128x64 at integer scale 6.", "palette": { "on": [ 240, @@ -28,11 +28,27 @@ "mainOsSha256": "164f31224bf61181e3f50e7dec40df9afcae5b16dbf6e4c0d0cc5e986af0a84e" }, "captureMethod": "A private ot_emu session (--interactive --usb-host): npm run device -- try --accept --emulator, panel keys as key rows, the screen rebuilt from UART A's transmit bytes with octabam's tools/panel/panel_link.py (capture-module-ui.py reads stock's LCD plane, which misses module_draw).", - "plan": "ARR > CHANGE on book 1, arrangement 3 chosen; RIGHT to book 2; LEFT back to book 1.", + "plan": "ARR > BOOKS on book 1: CUE + YES on arrangements 1 and 2 (added to setlist 1); SETLSTS opened; YES on song 1, NO; the main screen (the emulator's sequencer does not advance, so song 1 stays playing); CUE held, YES, DOWN: the setlist window.", "screenshots": [ { - "file": "ot-change-book.png", - "shows": "ARR > CHANGE after returning to book 1: BOOK 1 at the top right, the list redrawn with book 1's names, arrangement 3 chosen with the cursor on it." + "file": "ot-books-list.png", + "shows": "ARR > BOOKS on book 1: BOOK 1 at the top right, LIST 1 at the bottom right, arrangement 2 chosen." + }, + { + "file": "ot-books-added.png", + "shows": "ARR > BOOKS after CUE + YES on arrangement 1: B1 1 ADDED TO LIST 1, BOOK 1 at the top right, LIST 1 at the bottom right." + }, + { + "file": "ot-setlists-page.png", + "shows": "The SETLSTS page from the Arranger menu: SETLIST 1 with its two songs as book.arrangement and name, 2/16 used, the cursor on song 2." + }, + { + "file": "ot-setlist-main.png", + "shows": "The main screen with setlist 1 started: LIST 1 in the Part box, the setlist sign and 1/2 on the pattern line, the playing song's rows and the chain line >SONG BRAVO." + }, + { + "file": "ot-setlist-window.png", + "shows": "CUE + YES on the main screen while the setlist plays: the playing song marked with a filled triangle, the next with >, the cursor on song 2." } ] } diff --git a/sdk/octatrack/modules/songbook/media/ot-books-added.png b/sdk/octatrack/modules/songbook/media/ot-books-added.png new file mode 100644 index 0000000000..1879017603 Binary files /dev/null and b/sdk/octatrack/modules/songbook/media/ot-books-added.png differ diff --git a/sdk/octatrack/modules/songbook/media/ot-books-list.png b/sdk/octatrack/modules/songbook/media/ot-books-list.png new file mode 100644 index 0000000000..955e644eab Binary files /dev/null and b/sdk/octatrack/modules/songbook/media/ot-books-list.png differ diff --git a/sdk/octatrack/modules/songbook/media/ot-change-book.png b/sdk/octatrack/modules/songbook/media/ot-change-book.png deleted file mode 100644 index 842b93f6d9..0000000000 Binary files a/sdk/octatrack/modules/songbook/media/ot-change-book.png and /dev/null differ diff --git a/sdk/octatrack/modules/songbook/media/ot-setlist-main.png b/sdk/octatrack/modules/songbook/media/ot-setlist-main.png new file mode 100644 index 0000000000..f127197f25 Binary files /dev/null and b/sdk/octatrack/modules/songbook/media/ot-setlist-main.png differ diff --git a/sdk/octatrack/modules/songbook/media/ot-setlist-window.png b/sdk/octatrack/modules/songbook/media/ot-setlist-window.png new file mode 100644 index 0000000000..8fe6a5d56e Binary files /dev/null and b/sdk/octatrack/modules/songbook/media/ot-setlist-window.png differ diff --git a/sdk/octatrack/modules/songbook/media/ot-setlists-page.png b/sdk/octatrack/modules/songbook/media/ot-setlists-page.png new file mode 100644 index 0000000000..a0338ba58d Binary files /dev/null and b/sdk/octatrack/modules/songbook/media/ot-setlists-page.png differ diff --git a/sdk/octatrack/modules/songbook/octamod.module.json b/sdk/octatrack/modules/songbook/octamod.module.json index 962221905c..1ba23cb792 100644 --- a/sdk/octatrack/modules/songbook/octamod.module.json +++ b/sdk/octatrack/modules/songbook/octamod.module.json @@ -3,7 +3,7 @@ "id": "songbook", "key": "SONGBOOK", "name": "Songbook", - "version": "0.1.0-experimental", + "version": "0.2.0-experimental", "category": "system", "author": { "github": "Andrey-Sidorkin", @@ -39,43 +39,59 @@ "uiClaims": [ "key:LEFT@ARR CHANGE", "key:RIGHT@ARR CHANGE", - "screen:ARR CHANGE" + "screen:ARR CHANGE", + "key:CUE+YES@ARR CHANGE", + "key:CUE+LEFT@ARR CHANGE", + "key:CUE+RIGHT@ARR CHANGE", + "screen:ARR MENU CHAIN", + "screen:SETLSTS", + "screen:ARR MENU CHANGE", + "key:CUE+YES@MAIN", + "screen:MAIN PART BOX", + "screen:ARR MENU TITLE", + "screen:ARR ROWS CHAIN LINE", + "key:TRIG@ARR CHANGE", + "key:TRIG@SETLSTS", + "screen:MAIN ARR NAME BAR", + "screen:MAIN ARR POSITION" ], "limitations": [ - "OS 1.40C, tested on an MKI (the developer's own checks, build f068cd608, base 0.7.13); not tested on an MKII.", + "OS 1.40C, tested on an MKI (the package tests.qualification names: the test procedure on the base 0.8.2 twin and the developer's own checks on the flashed base 0.8.2); not tested on an MKII.", "Books change only while the transport is stopped: the switch writes and reads the card, which stock itself does only stopped.", "Switch back to book 1 before removing the module: without it, stock's next save writes the book in use into arr01 to arr08. Book 1 is kept in a backup (arr01.bak to arr08.bak) and comes back the next time the module is installed and book 1 is chosen.", "A project comes back to the book and arrangement it was saved or left on; a power cycle keeps the book in use. Without the module a project opens on book 1.", - "Stock's project copy functions copy book 1 only; copying the project folder copies every book." + "Stock's project copy functions copy book 1 only; copying the project folder copies every book.", + "Setlists borrow the open book's arrangements 7 and 8 while they play; end a setlist (open ARR > BOOKS) before removing the module, or stock's next save writes the setlist's copies into those two arrangements.", + "Edits made while a setlist plays are written when it ends; a RELOAD or power cycle before that drops them, as stock drops unsaved changes." ], "effectId": null }, "resources": { - "recorded": "Not measured", + "recorded": "2026-12-01", "storage": { - "label": "Storage", - "display": "Not measured", + "label": "ColdFire code", + "display": "129408 bytes", "value": null, - "unit": "unknown", - "method": "unmeasured", - "conditions": "No measurements exist yet. Add exact conditions and source evidence when available.", + "unit": "see display", + "method": "static", + "conditions": "The USB package e06c9f98 (builder's report): 28,252 bytes of ColdFire code and data and 101,156 of bss, 90,432 of it the setlist's 16 song blocks (5,652 bytes each) held ready so the next song starts without a gap; plus the 20-byte battery RAM record. No DSP memory.", "source": "TESTING.md" }, "processing": { - "label": "CPU / DSP load", - "display": "Not measured", + "label": "ColdFire worst event", + "display": "13950460 cycles/event", "value": null, - "unit": "unknown", - "method": "unmeasured", - "conditions": "No measurements exist yet. Add exact conditions and source evidence when available.", - "source": "TESTING.md" + "unit": "see display", + "method": "emulator", + "conditions": "perf:audit record (evidence/performance.json): the dearest event, a book switch from book 1 to 2 while stopped, 13,950,460 executed ColdFire instructions under ot_emu on the 0.8.2 twin, of a 26,600,000 budget (100 ms at 266 MHz); back to book 1, 7,817,335. It runs in stock's SYNC TO CARD job on the card task, never in the audio frame; at rest the unit's frame interrupt did not rise (evidence/cpu-price.json).", + "source": "evidence/performance.json" }, "impact": { "conditions": "A book switch at its dearest (book 1 to another, stopped): stock's save of arr01-08, book 1's backup, the next book read and the slots fingerprinted. Between switches the UI tick re-fingerprints the slots every 2 s off book 1.", "cpu": { "level": "low", "basis": "measured-comparison", - "rationale": "A switch runs inside stock's SYNC TO CARD job, stopped: 13.8 million executed ColdFire instructions under ot_emu from book 1 to 2, 7.8 million back, most of it stock's own file writes and reads. Off book 1 the UI tick fingerprints the 8 slots every 2 s (about 543,000 instructions, counted from the unit). Time on the unit is not measured.", + "rationale": "A switch runs inside stock's SYNC TO CARD job, stopped: 14.0 million executed ColdFire instructions under ot_emu from book 1 to 2, 7.8 million back, most of it stock's own file writes and reads. Off book 1 the UI tick fingerprints the 8 slots every 2 s (about 543,000 instructions, counted from the unit). Time on the unit is not measured.", "source": "TESTING.md" }, "dsp": { @@ -85,9 +101,9 @@ "source": "TESTING.md" }, "memory": { - "level": "minimal", + "level": "low", "basis": "measured-comparison", - "rationale": "7,292 bytes of ColdFire code and data and 4,728 of state, plus a 20-byte battery RAM record; on the card, stock arrangement files for books 2-16, book 1's backup and a 24-byte place file per project.", + "rationale": "28,252 bytes of ColdFire code and data and 101,156 of state (90,432 of it the setlist's 16 songs held ready), plus a 20-byte battery RAM record; on the card, stock arrangement files for books 2-16, book 1's backup, a place file and the setlists per project.", "source": "TESTING.md" } }, @@ -95,9 +111,9 @@ "value": 0, "unit": "percent-of-frame", "measure": "frame-interrupt", - "tool": "npm run device:price", - "date": "2026-11-24", - "conditions": "MKI (OS 1.40C), the developer's test project in pattern mode, transport stopped, T1 selected; installed as a trial and used by no key press; development twin 4c7eb79b of the beta base (main 3043f8339); 8 s per reading. Frame interrupt 58.1 % before, 57.7 % installed; CPU meter 68.3 % before, 66.9 % at rest: within the reading's noise. On that twin the module's UI hooks were not seen to run (no BOOK label in ARR > CHANGE, RIGHT switched nothing): re-measure on a twin where they do.", + "tool": "npm run device:price -- --write", + "date": "2026-12-01", + "conditions": "the bank, pattern and Part the unit was on, transport stopped, arranger mode off (test:procedure); base development twin 46c30886 of base 0.8.2 (release 24e480c4 flashed), MKI, OS 1.40C; 3 readings of 8 s a state. Frame interrupt 57 % before, 56.6 % installed and used nowhere; CPU meter 65.5 % before, 65.5 % at rest.", "source": "evidence/cpu-price.json" } }, @@ -105,28 +121,27 @@ "report": "TESTING.md", "summary": "Host gate (verify.py, 97 checks, a missing, unreadable or partly written book 1 backup, a file that fails to open once and a reload after it among them; several replaying the unit's event orders and stock's two load jobs); stock's file format for arr09 and up, the list redraw and per-book choice under ot_emu. On the developer's MKI (OS 1.40C): switching books 1-16, per-book choice, the playing refusal, ARR SAVE/RELOAD, FUNC + PLAY clears and their undo, a power cycle and arranger mode after LOAD (build c5027552c, base 0.7.5); LOAD and RELOAD returning to book 2 in arranger mode with book 1 intact, the main screen and PLAY on the returned book (build f068cd608, base 0.7.13, beside USB AUDIO), as the developer reported them; distinct books 1 and 2 kept through a power cycle and through a trial of another build with Undo, each followed by SYNC TO CARD (build b976e98ff, package 37f7e94f, base 0.7.13), as the developer reported them; a LOAD of another project and back, each on its own book and arrangement with the list cursor on it, PLAY and LEFT/RIGHT after it (build 85d544a68, package 81eb7172, base 0.7.13), as the developer reported them.", "hardwareStatus": "reported", - "evidenceRevision": "c642ca25548f9248a4059f2c5a2e004484447903", + "evidenceRevision": "3a0b10d2e2465a9887d72bea5c32f34983f04c34", "gates": [ "Worst-case cycles under parameter modulation and maximum load", "Exact memory region and maximum-instance totals", "Owner-reviewed real-hardware evidence with actual coverage and limitations" ], "qualification": { - "moduleVersion": "0.1.0-experimental", - "sourceSha256": "688b91a1b0fb9361b1adf43b92942dada8c88e56b27ff1c9fe049ff4096fca49", - "imageSha256": "84a8ba8ac39f74aaa8cd842f3179a1f8b0d38a24ffb32b56765daeb417c4ac47", + "moduleVersion": "0.2.0-experimental", + "sourceSha256": "eed30812035a0716fcc9a3e97d07e63ae7ef195a36afa3e701c4f25f4260fd2e", "cycles": [ { "processor": "coldfire", - "worstCase": 13754188, - "maxConfiguration": 13754188, + "worstCase": 13950460, + "maxConfiguration": 13950460, "maxInstances": 1, "budget": 26600000, "unit": "cycles/event", "method": "emulator", "conditions": { - "parameterExtremes": "The dearest event is a book switch away from book 1: stock's writer saves arr01-08, the module writes book 1's backup (arr01.bak-arr08.bak) and reads the next book's 8 files, then fingerprints the 8 slots (90,440 bytes). 13,754,188 instructions from the writer's entry (0x400915ac) to its return (0x40091a76) on book 1 to 2; book 2 to 1 (backup read back) 7,849,450.", - "parameterModulation": "Not applicable: no parameters or audio; one switch per LEFT/RIGHT press in ARR > CHANGE, stopped, or one return after a project load.", + "parameterExtremes": "The dearest event is a book switch away from book 1: stock's writer saves arr01-08, the module writes book 1's backup (arr01.bak-arr08.bak) and reads the next book's 8 files, then fingerprints the 8 slots (90,440 bytes). 13,950,460 instructions from the writer's entry (0x400915ac) to its return (0x40091a76) on book 1 to 2; book 2 to 1 (backup read back) 7,817,335.", + "parameterModulation": "Not applicable: no parameters or audio; one switch per LEFT/RIGHT or trig press in ARR > BOOKS, stopped, or one return after a project load.", "modeSwitching": "Both directions measured; a switch between two other books writes and reads 8 files each and no backup, so it lies between the two.", "maxLoad": "Executed ColdFire instructions under ot_emu, interrupts and every other task in that window included; one instance (the module is project-wide). Budget: 100 ms of ColdFire time at 266 MHz, a responsiveness target for a key press, as Apply Scene's; the switch runs inside stock's SYNC TO CARD job on the card task, refused while playing.", "inputConditions": "Empty arrangements; the arrangement blocks are fixed-size, so their content does not change the writes, reads or the fingerprint. Executed instructions, not cycles: cache and wait states are not modelled, and card time on the unit is not measured." @@ -139,17 +154,17 @@ { "name": "ColdFire code and data (one linked unit)", "space": "sdram", - "words": 7292, + "words": 28252, "wordBits": 8, - "bytes": 7292, + "bytes": 28252, "scope": "shared" }, { "name": "ColdFire state (bss)", "space": "sdram", - "words": 4728, + "words": 101156, "wordBits": 8, - "bytes": 4728, + "bytes": 101156, "scope": "shared" }, { @@ -162,25 +177,28 @@ } ], "perInstanceBytes": 0, - "sharedBytes": 12040, + "sharedBytes": 129428, "maxInstances": 1, - "totalBytes": 12040, - "conditions": "The unit as the USB package carries it: 7,292 bytes of code and data and 4,728 of bss (the builder's report), plus the 20-byte battery RAM record at 0x100f8f10. On the card: arr09.work-arr128.work and their .strd copies (stock arrangement files), arr01.bak-arr08.bak and arrbook.work/.strd in the project folder. No DSP memory.", + "totalBytes": 129428, + "conditions": "The unit as the USB package e06c9f98 carries it: 28,252 bytes of code and data and 101,156 of bss (the builder's report; 90,432 of it the setlist's 16 song blocks), plus the 20-byte battery RAM record at 0x100f8f10. On the card: arr09.work-arr128.work and their .strd copies (stock arrangement files), arr01.bak-arr08.bak, arrbook.work/.strd, the setlist file, and arrNN.sl with arrlend.work (the book's arrangements 7 and 8 while a setlist borrows them) in the project folder. No DSP memory.", "report": "TESTING.md" }, + "imageSha256": "e06c9f98668142f1b1ff79b2501c124ebcb30b0dd8832c79de95ba0dce736bfa", "hardware": { "kind": "functional", "status": "reported", "model": "MKI", - "testedOn": "2026-11-24", + "testedOn": "2026-12-01", "tester": "Andrey-Sidorkin", - "sourceRevision": "c642ca25548f9248a4059f2c5a2e004484447903", - "imageSha256": "84a8ba8ac39f74aaa8cd842f3179a1f8b0d38a24ffb32b56765daeb417c4ac47", - "summary": "On the developer's Octatrack MKI (OS 1.40C, base 0.7.13 6d23e888), this exact package kept over USB beside USB AUDIO and Arr Rows: switching books, the per-book choice with the CHANGE list's cursor and YES on it after a switch and after closing and reopening the list, a LOAD of another project and back (each on its own book and arrangement, one card job of the module's, no NOW SAFE TO EJECT!), PLAY from the returned arrangement. Earlier builds of the same lineage covered SAVE/RELOAD PROJECT, ARR SAVE/RELOAD, FUNC + PLAY clears and undo, a power cycle and arranger mode (TESTING.md). As the developer reported them.", + "sourceRevision": "3a0b10d2e2465a9887d72bea5c32f34983f04c34", + "imageSha256": "e06c9f98668142f1b1ff79b2501c124ebcb30b0dd8832c79de95ba0dce736bfa", + "summary": "On the developer's Octatrack MKI (OS 1.40C), package e06c9f98 built from 3a0b10d2: npm run test:procedure steps 1-10 passed on the development twin 46c30886 of base 0.8.2 (emulator rehearsal, scripted pass, 90 s soak, cost at rest 0, put back). By hand on the flashed base 0.8.2 (this package in a trial; the setlist features on 8f9c50a6, kept beside Arr Rows and Smart Reload): setlists from several books played without a gap, empty songs passed over; trig keys picking the book and the setlist with the lit trig, two together ignored, stock's lights back after NO; CUE + YES never offering the playing song; the setlist box hidden over messages and in pattern mode; the whole 16-letter name with no counter; after LOAD, RELOAD and a power cycle back in the setlist at its first row. With c8eb7186: while a setlist plays ARR > BOOKS names rows 7 and 8 by the book's own arrangements; a power cycle while a setlist played, then SAVE PROJECT with Songbook 0.1.0 kept, left the book's arrangements 7 and 8 intact (the project load put them back into the slots before the save); and Songbook 0.1.0 kept on book 2, then c8eb7186 kept beside Arr Rows and Smart Reload: book 2 and its arrangements came through, book 2 to 1 to 2 and a power cycle too. e06c9f98 differs from c8eb7186 only in the give-back, which now restores a slot only while arrNN.work holds a setlist's copy (host-tested).", "limitations": [ "No MKII.", - "The test procedure's scripted pass, soak and cost on the unit (steps 7-9) have not run yet (#2099, fixed in #2103); a trial of this package under the scripted pass ran about two minutes twice with no crash, stall, freeze or skipped track.", - "Removing the module on a book other than 1 is a documented limitation, not tested." + "Not recorded over USB for dropouts: the module makes no sound and runs no audio-frame code.", + "Not tested with MIDI program changes landing during the soak (the project's MIDI program change receive was off).", + "The repair of arrangements 7 and 8 from arrNN.sl after stock alone saved the setlist's copies is host-tested only (on the unit the project load restored them first); a power cycle on the stock OS with no Songbook at all was not run.", + "One report not reproduced: copies of setlist songs once seen in book 2's slots 7 and 8; the paths that could write them are closed and backed up (#2431), the cause not found." ], "report": "TESTING.md" }, @@ -188,15 +206,15 @@ "tutorial": { "title": "Quick tutorial", "steps": [ - "In ARR > CHANGE, press RIGHT: BOOK 2, with 8 empty arrangements.", + "In ARR > BOOKS, press RIGHT: BOOK 2, with 8 empty arrangements.", "Choose arrangement 1, open the editor and add a few rows.", - "Back in ARR > CHANGE, press LEFT: BOOK 1, your original arrangements.", + "Back in ARR > BOOKS, press LEFT: BOOK 1, your original arrangements.", "Press RIGHT again: book 2's rows are back.", "Press LEFT to return to book 1 before you finish." ] }, "screenshots": [ - "media/ot-change-book.png" + "media/ot-books-list.png" ], "screenshotStyle": "black-and-white" } @@ -209,20 +227,88 @@ }, "media": [ { - "path": "media/ot-change-book.png", + "path": "media/ot-books-list.png", + "captureType": "emulator", + "caption": "ARR > BOOKS (stock's CHANGE, renamed): BOOK 1 at the top right, the open setlist (LIST 1) at the bottom right. LEFT/RIGHT step the book.", + "alt": "ARR > BOOKS list of book 1 with SONG ALPHA, BRAVO and CHARLIE, BOOK 1 top right and LIST 1 bottom right.", + "credit": "Andrey Sidorkin (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "ARR > BOOKS", + "shows": "location", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", + "setup": "Headless ot_emu; MKI panel; stopped transport; Modwerk beta base 0.7.13 with the package over the emulated USB; 128x64 LCD as the panel link carries it, integer scale 6." + } + }, + { + "path": "media/ot-books-added.png", "captureType": "emulator", - "caption": "ARR > CHANGE after returning to book 1: BOOK 1 at the top right, the list redrawn with book 1's names, arrangement 3 chosen with the cursor on it. LEFT and RIGHT step the book, stopped.", - "alt": "ARR > CHANGE list of book 1 with SONG ALPHA, BRAVO and CHARLIE and BOOK 1 at the top right.", + "caption": "CUE + YES on an arrangement adds it to the open setlist.", + "alt": "ARR > BOOKS with the message B1 1 ADDED TO LIST 1.", "credit": "Andrey Sidorkin (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "ARR > CHANGE", + "page": "ARR > BOOKS", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", + "setup": "Headless ot_emu; MKI panel; stopped transport; Modwerk beta base 0.7.13 with the package over the emulated USB; 128x64 LCD as the panel link carries it, integer scale 6." + } + }, + { + "path": "media/ot-setlists-page.png", + "captureType": "emulator", + "caption": "The SETLSTS page from the Arranger menu: the setlist's songs as book.arrangement and name. YES starts it from the cursor.", + "alt": "SETLIST 1 page with 1.1 SONG ALPHA and 1.2 SONG BRAVO, 2/16.", + "credit": "Andrey Sidorkin (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "SETLSTS", "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "9c861d6f30aa6adeab6d536ae91b2a926405857495e16b422b5e74acd4d3cc24", - "setup": "Headless ot_emu; MKI panel; stopped transport; Modwerk beta base 0.7.5 with the package over the emulated USB; 128x64 LCD as the panel link carries it, integer scale 6." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", + "setup": "Headless ot_emu; MKI panel; stopped transport; Modwerk beta base 0.7.13 with the package over the emulated USB; 128x64 LCD as the panel link carries it, integer scale 6." + } + }, + { + "path": "media/ot-setlist-main.png", + "captureType": "emulator", + "caption": "While a setlist plays: its name in the Part box, its sign and the song's place on the pattern line, the next song on the chain line.", + "alt": "Main screen with LIST 1 in the Part box, 1/2 under it and >SONG BRAVO after the rows.", + "credit": "Andrey Sidorkin (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "MAIN", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", + "setup": "Headless ot_emu; MKI panel; stopped transport; Modwerk beta base 0.7.13 with the package over the emulated USB; 128x64 LCD as the panel link carries it, integer scale 6." + } + }, + { + "path": "media/ot-setlist-window.png", + "captureType": "emulator", + "caption": "Hold CUE and press YES on the main screen: the playing song (filled triangle), the next one (>); YES makes the song under the cursor the next.", + "alt": "Setlist window over the main screen with song 1 playing and song 2 next.", + "credit": "Andrey Sidorkin (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "MAIN", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", + "setup": "Headless ot_emu; MKI panel; stopped transport; Modwerk beta base 0.7.13 with the package over the emulated USB; 128x64 LCD as the panel link carries it, integer scale 6." } } ], @@ -236,7 +322,11 @@ "Before removing the module, step back to book 1." ], "screenshots": [ - "media/ot-change-book.png" + "media/ot-books-list.png", + "media/ot-books-added.png", + "media/ot-setlists-page.png", + "media/ot-setlist-main.png", + "media/ot-setlist-window.png" ] } } diff --git a/sdk/octatrack/modules/songbook/presentation/thumbnail.svg b/sdk/octatrack/modules/songbook/presentation/thumbnail.svg index 59a2665162..536b396caa 100644 --- a/sdk/octatrack/modules/songbook/presentation/thumbnail.svg +++ b/sdk/octatrack/modules/songbook/presentation/thumbnail.svg @@ -1,6 +1,6 @@ -Songbook — 16 books of 8 arrangements -Sixteen book spines in a row, the second one marked and opened below into eight arrangement lines, with arrows for stepping left and right between books. An illustration, not an Octatrack screenshot. +Songbook — books of arrangements and setlists +Sixteen book spines with the second lit, a row of sixteen trig keys with the same one lit, and a setlist of songs from several books chained one into the next, the playing song marked. An illustration, not an Octatrack screenshot. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -16 BOOKS OF 8 ARRANGEMENTS + + + + + + + + + + + + + + + + +BOOK 2 + + + + + + + + + + + + + + + + +TRIG = BOOK +SETLIST 1 + +1 B1 OPENER + + + +2 B4 RUMBLE + + + + +3 B2 BREAKS + + + +4 B9 CLOSER + +16 BOOKS · 16 SETLISTS diff --git a/sdk/octatrack/modules/songbook/songbook.c b/sdk/octatrack/modules/songbook/songbook.c index a245e065b3..7864d18acc 100644 --- a/sdk/octatrack/modules/songbook/songbook.c +++ b/sdk/octatrack/modules/songbook/songbook.c @@ -32,6 +32,14 @@ #define K_LEFT 0x34 #define K_FUNC 0x2d #define K_PATTERN 0x2e +#define K_CUE 0x2a +#define K_YES 0x31 +#define K_NO 0x32 +#define K_UP 0x33 +#define K_DOWN 0x20 +#define K_PLAY 0x28 +#define K_STOP 0x27 +#define K_REC 0x29 #define BOOKS 16u #define SLOTS 8u @@ -59,6 +67,8 @@ #define DRAW_CHANGE 0x40036e18u /* draws ARR > CHANGE's list into its open window (stock: once, when it opens) */ #define ARR_STATE 0x800066a0u /* the arranger's run state: 1 playing, 2 held by STOP; select_arr refuses unless 0 */ #define ARR_RESET 0x4009ae48u /* stock's arranger reset, run at start-up and for each new project (0x40025af2) */ +#define CUR_NAME 0x100f8378u /* the project in use, as projdir() builds on it */ +#define JOB_NAME 0x460bdec1u /* the project a LOAD job loads (from the LOAD request, 0x40023b68) */ #define SELECT_ARR 0x400a03a0u /* select_arr(n): stock's choice of arrangement n (index, pointer, playback reset) */ #define INDEX 0x100b14d1u /* the arrangement chosen, 0-7 */ #define ARR_MODE 0x460d1aecu /* arranger mode on (FUNC + PATTERN) */ @@ -67,6 +77,12 @@ #define ARR_MODE_ON 0x4005200cu /* stock's switch into arranger mode (FUNC + PATTERN's, 0x4006103e); nothing if on */ #define LIST_TOP 0x400c0ba0u /* ARR > CHANGE: the first row shown */ #define LIST_CURSOR 0x400c0ba4u /* ARR > CHANGE: the cursor's row (stock opens the list with it on the choice) */ +#define POST_EVENT 0x40000c3cu /* post(queue, token): an event to a task's queue */ +#define UI_QUEUE 0x460d17aeu /* the UI task's queue */ +#define ARR_EVENT 0x400c0c41u /* the token stock posts as the arranger takes a chain (0x4004a834): the rows drawn again */ +#define CHAIN 0x80006694u /* stock's CHAIN: the slot the arranger moves to past its last row, -1 none (0x4004a7e2) */ +#define KEYS 0x46c7d8deu /* each key code's routed press handler, 0x18 apart (as arr-rows reads it) */ +#define MAIN_YES 0x4005e4c8u /* YES's handler on the main screen (measured under ot_emu: menu 0x4003395c, editor 0x40058f34) */ #define LIST_CHOICE 0x400c0ba8u /* ARR > CHANGE: the arrangement under the cursor, as YES selects it (0x400612b4) */ #define REC_MAGIC 0x41534231u /* "ASB1" */ @@ -100,10 +116,26 @@ static void wr8(uint32_t a, uint32_t v) { *(volatile uint8_t *)a = (uint8_t)v; } static uint32_t rd32(uint32_t a) { return (uint32_t)rd8(a) << 24 | (uint32_t)rd8(a + 1) << 16 | (uint32_t)rd8(a + 2) << 8 | rd8(a + 3); } static void wr32(uint32_t a, uint32_t v) { wr8(a, v >> 24); wr8(a + 1, v >> 16); wr8(a + 2, v >> 8); wr8(a + 3, v); } -#define MAGIC 0x41535332u /* "ASS2": card builds do not zero .bss */ +#define MAGIC 0x41535335u /* "ASS5": card builds do not zero .bss; the size beside it catches a layout change */ + +/* Setlists: 16 of up to 16 songs, each a book, its slot and the name it had (arrlists.work). */ +#define LISTS 16u +#define LIST_LEN 16u +#define NAME_LEN 16u +struct sl_entry { uint8_t book, slot; char name[NAME_LEN]; }; +struct sl_lists { + uint8_t magic[4]; /* "ASL2" ("ASSL": the same without the names, still read) */ + uint8_t open; /* the setlist CUE + YES adds to, 0 = 1 */ + uint8_t reserved[3]; + uint8_t count[LISTS]; + struct sl_entry e[LISTS][LIST_LEN]; + char name[LISTS][16]; /* stock's name editor's (15 characters and its end); empty: "SETLIST n" */ +}; +#define LISTS_V1_BYTES (8u + LISTS + LISTS * LIST_LEN * sizeof (struct sl_entry)) struct as_state { uint32_t magic; + uint32_t size; /* sizeof (struct as_state) when it was set up: another layout starts afresh */ uint8_t book; /* the book in the slots, 0 = book 1 */ int8_t pending; /* the book a posted write job loads, -1 none */ uint8_t failed; /* the card task could not finish a switch: the UI task says so */ @@ -125,12 +157,58 @@ struct as_state { uint8_t loading; /* a load or reload began: the slots hold the old book until stock's new-project step */ uint8_t reloaded_slots; /* that step came: stock now puts arr01-08 in the slots, and a return may follow it */ uint8_t hush; /* frames after a switch of ours in which the job's NOW SAFE TO EJECT! is closed */ + uint8_t ours; /* the card job posted is the module's own (its NOW SAFE TO EJECT! is closed) */ int8_t restore_rc; /* the last answer to posting the return after a load, for the diagnostic word */ uint8_t loads, reloads; /* project loads and reloads seen, for the diagnostic word */ - uint8_t load_read; /* a LOAD began: the new project's arrbook.work still to be read (ev_banks_loaded) */ - uint8_t load_posted; - uint8_t reloading; /* RELOAD read the (same) project's arrbook.work already: a later ev_banks_load keeps it */ uint8_t place[24]; /* arrbook.work: magic, book, the 16 last choices */ + struct sl_lists lists; /* the setlists, as in arrlists.work once lists_dirty is 0 */ + uint8_t lists_dirty; /* changed since written: the card task writes them with the next sync */ + uint8_t lists_unread; /* installed into an open project: arrlists.work not read yet (the next card job reads it) */ + uint8_t lists_req; /* a card job posted only to read them */ + uint8_t reread_posted; + uint8_t reread; /* installed while a setlist played (the record says so): slots 7 and 8 hold its songs, not + * the book's; the next card job reads the book again and writes none of it */ + uint8_t cue_down; /* CUE held: YES adds to the setlist, LEFT/RIGHT move an arrangement in the book */ + uint8_t cue_yes; /* a YES taken with CUE: its release is ours too */ + char msg[24]; /* the text of the module's last message box (stock may draw it again later) */ + uint8_t page; /* the SETLSTS page is open (the Arranger menu's CHAIN item, replaced) */ + uint8_t page_cur, page_top; /* its cursor (a song of the open setlist) and the first song shown */ + uint16_t trig_held; /* frames since the last trig key press */ + uint8_t trig_alone; /* the trig just pressed was the only one held */ + uint8_t page_seen; /* the song playing when the page last looked: the cursor follows a change */ + uint8_t page_play; /* a FUNC + PLAY taken on the page: PLAY's release is ours too */ + uint8_t page_stop; /* a FUNC + STOP taken on the page: STOP's release is ours too */ + uint8_t clip_n; /* songs copied on the page (FUNC + REC one, CUE + FUNC + REC the setlist), 0 none */ + struct sl_entry clip[LIST_LEN]; + /* A setlist playing: its songs in the module's memory, two of them at a time in slots 7 and 8 (SL_A, SL_B), the + * next one chained by stock's own CHAIN. The book's other slots stay; its files are not written meanwhile. */ + int8_t sl_req; /* YES on the page: the song to start from, for the card job; -1 none */ + uint8_t sl_active; /* the slots hold setlist songs */ + uint8_t sl_go; /* loaded: the UI task selects the first song and sets the chain */ + uint8_t sl_end; /* ending: the card job writes edited songs back and reads the book again */ + int8_t sl_restart; /* YES on the page while one plays: after ending, start again from this song; -1 none */ + uint8_t sl_n, sl_cur; /* its songs, and the one playing (or chosen) */ + uint8_t sl_list; /* the setlist playing (0 = 1) */ + uint8_t foreign; /* times a setlist slot held something other than its song when it was taken back */ + int8_t resume; /* a load of a project left in a setlist: that setlist (0 = 1), started again once the load is + * done; -1 none */ + uint8_t resume_cur; /* and the song it was on */ + uint8_t rec7; /* the record's setlist byte as this copy found it (a power cycle's: the song it was on) */ + uint8_t boot_place; /* a power cycle in a setlist (no load hook comes): the next card job reads arrbook.work */ + uint8_t load_read; /* a load began: the new project's arrbook.work and arrlists.work still to be read */ + uint8_t load_posted; + uint8_t go_tries; /* frames stock refused a setlist's first song */ + uint32_t page_keys[2]; /* keys whose press the SETLSTS page took: their releases are its too */ + uint8_t reloading; /* RELOAD read the (same) project's files already: a later ev_banks_load keeps that */ + uint8_t peek; /* CUE + YES on the main screen: the playing setlist shown while CUE is held */ + uint8_t peek_cur; /* there, the cursor (UP/DOWN) */ + uint8_t peek_next; /* and the song marked to come next ('>'; a further YES moves it to the cursor); 0xff none */ + uint8_t cue_main; /* CUE went down on the main screen (stock routes YES elsewhere once CUE is held) */ + uint8_t sl_cur_slot; /* the slot that song is in (SL_A or SL_B) */ + uint8_t song_at[2]; /* the song in SL_A, SL_B; 0xff none */ + uint16_t sl_edited; /* songs changed while they played: written to their own files at the end */ + struct sl_entry sl_e[LIST_LEN]; + uint8_t songs[LIST_LEN][BLOCK]; uint16_t ticks; char path[260]; char path2[260]; @@ -140,7 +218,7 @@ struct as_state { static struct as_state st; /* The last four project events, newest lowest (the diagnostic word's top half): 1 load begins, 2 load done, 3 reload * done, 4 save done, 5 arrbook read (then its book), 6 arrbook missing, 7 return posted, 8 refused, 9 switch done, - * A write without a switch, B nothing to return to, C arranger mode went on, D it went off, E a new project, + * A write without a switch, B a setlist slot no longer held its song (not taken back), C arranger mode went on, D it went off, E a new project, * F the install handler fell back to book 1. */ static uint32_t evlog; static void ev(unsigned code) @@ -157,11 +235,13 @@ void as_host_keep_memory(void) { saved_st = st; } /* another build runs a tr void as_host_back_memory(void) { st = saved_st; } /* ... and this one comes back with its memory as it was */ #endif +static void title_follow(const struct as_state *s); + static void load_read(struct as_state *s); -/* A LOAD of a project other than the one in use: stock's load job's record names it (0x460bdec1, from the LOAD request - * 0x40023b68) while the project name projdir() builds on (0x100f8378) still names the last one. */ -#define CUR_NAME 0x100f8378u -#define JOB_NAME 0x460bdec1u +static int post_write(void); +static int our_post(struct as_state *s) { int rc = post_write(); if (rc >= 0) s->ours = 1; return rc; } +/* A LOAD of a project other than the one in use: stock's project name still names the last one until the load is over, + * the load job's record the new one (the developer's MKI, 24 November 2026). */ static int loading_other(void) { for (uint32_t i = 0; i < 256u; ++i) { @@ -171,24 +251,37 @@ static int loading_other(void) } return 0; } +static char *put_text(char *t, const char *x); +static char *put_num(char *t, unsigned n); +static char *list_title(const struct as_state *s, char *t, unsigned l); static struct as_state *ready(void) { struct as_state *s = st_at; - if (s->magic == MAGIC) return s; + if (s->magic == MAGIC && s->size == sizeof *s) return s; uint8_t *p = (uint8_t *)s; for (unsigned i = 0; i < sizeof *s; ++i) p[i] = 0; s->magic = MAGIC; + s->size = sizeof *s; s->pending = -1; evlog = rd32(RECORD + 16); /* the events before a power cycle */ s->restore = -1; + s->sl_req = -1; + s->sl_restart = -1; + s->resume = -1; + s->rec7 = rd8(RECORD + 7); /* before this copy writes the record: a power cycle's song */ + s->lists_unread = 1; /* a project may be open already: its setlists not read */ s->mode_pref = rd32(ARR_MODE) ? 1 : 0; s->since_hook = 4000; + s->trig_held = 0xffffu; + title_follow(s); return s; } /* ---------------------------------------------------------------- stock calls */ #ifdef AS_HOST static int post_write(void) { return host_post_write(); } +void host_post_event(void); +static void post_event(void) { host_post_event(); } static const char *projdir(void) { return host_projdir(); } static void clear_arr(unsigned slot) { host_clear_arr(slot); } static void message(const char *t) { host_message(t); } @@ -211,10 +304,11 @@ static int file_exists(struct as_state *s) { return host_exists(s->path); } static int read_slot(struct as_state *s, unsigned slot) { return host_read_slot(s->path, slot) > 0; } static void close_read(struct as_state *s) { (void)s; } static int copy_file(struct as_state *s) { return host_copy(s->path2, s->path); } -static int put_place(struct as_state *s) { return host_put(s->path, s->place, sizeof s->place); } -static int get_place(struct as_state *s) { return host_get(s->path, s->place, sizeof s->place); } +static int put_data(struct as_state *s, const void *p, unsigned n) { return host_put(s->path, p, n); } +static int get_data(struct as_state *s, void *p, unsigned n) { return host_get(s->path, p, n); } #else static int post_write(void) { return ((int (*)(int))POST_WRITE)(0); } +static void post_event(void) { ((void (*)(uint32_t, uint32_t))POST_EVENT)(UI_QUEUE, ARR_EVENT); } static const char *projdir(void) { return ((const char *(*)(int, int))PROJDIR)(0, 0); } static void clear_arr(unsigned slot) { ((void (*)(int))CLEAR_ARR)((int)slot); } static void message(const char *t) { ((void (*)(const char *, int))MESSAGE)(t, 0x30); } @@ -232,17 +326,17 @@ static int f_open(struct as_state *s, const char *mode) { return ((f_open_t *)F_ static int f_close(struct as_state *s) { return ((int (*)(void *))F_CLOSE)(s->fo); } typedef int f_io_t(void *, void *, unsigned); -/* s->place to s->path / from it, through the module's own buffer. 1 when done. */ -static int put_place(struct as_state *s) +/* n bytes to s->path / from it, through the module's own buffer. 1 when done. */ +static int put_data(struct as_state *s, const void *p, unsigned n) { if (f_open(s, "w") < 0) return 0; - int ok = ((f_io_t *)F_WRITE)(s->fo, s->place, sizeof s->place) == 1; + int ok = ((f_io_t *)F_WRITE)(s->fo, (void *)p, n) == 1; return f_close(s) >= 0 && ok; } -static int get_place(struct as_state *s) +static int get_data(struct as_state *s, void *p, unsigned n) { if (f_open(s, "r") < 0) return 0; - int ok = ((f_io_t *)F_READ)(s->fo, s->place, sizeof s->place) == 1; + int ok = ((f_io_t *)F_READ)(s->fo, p, n) == 1; f_close(s); return ok; } @@ -286,17 +380,20 @@ static void arr_path(char *out, unsigned number, const char *ext) static unsigned arr_number(unsigned book, unsigned slot) { return book * SLOTS + slot + 1; } -/* "/arrbook.": where the project was left, so a load comes back to it. */ -static void place_path(char *out, const char *ext) +/* "/.": arrbook (where the project was left, so a load comes back to it), arrlists (the setlists). */ +static void project_file(char *out, const char *name, const char *ext) { const char *dir = projdir(); char *t = out; while (*dir && t < out + 240) *t++ = *dir++; - const char *name = "/arrbook."; + *t++ = '/'; while (*name) *t++ = *name++; + *t++ = '.'; while (*ext) *t++ = *ext++; *t = 0; } +static void place_path(char *out, const char *ext) { project_file(out, "arrbook", ext); } +static void lists_path(char *out, const char *ext) { project_file(out, "arrlists", ext); } static void write_place(struct as_state *s) { @@ -304,20 +401,29 @@ static void write_place(struct as_state *s) s->place[4] = s->book; for (unsigned b = 0; b < BOOKS; ++b) s->place[5 + b] = s->last[b]; s->place[21] = s->mode_pref; /* not stock's flag: LOAD clears it before its own save */ + s->place[22] = (uint8_t)(s->sl_active ? 0x80u | s->sl_list : 0u); /* a setlist, so a load comes back into it */ + s->place[23] = s->sl_cur; place_path(s->path, "work"); - put_place(s); + put_data(s, s->place, sizeof s->place); } /* arrbook.work into the memory of choices: the book the project was left on, or -1 when it has none. */ static int read_place(struct as_state *s) { + s->resume = -1; place_path(s->path, "work"); - if (!get_place(s)) { ev(6); return -1; } + if (!get_data(s, s->place, sizeof s->place)) { ev(6); return -1; } ev(5); ev(s->place[4]); if (s->place[0] != 'A' || s->place[1] != 'S' || s->place[2] != 'B' || s->place[3] != 'P' || s->place[4] >= BOOKS) return -1; for (unsigned b = 0; b < BOOKS; ++b) s->last[b] = (uint8_t)(s->place[5 + b] & 7u); s->mode_on = s->place[21] == 1; + s->resume = (int8_t)(s->place[22] & 0x80u ? s->place[22] & 15u : -1); + s->resume_cur = (uint8_t)(s->place[23] & 15u); + /* After a power cycle the record knows the song it was on: the file only the song a setlist started on (a song + * change writes no file while playing). */ + if (s->resume >= 0 && (s->rec7 & 0x80u)) s->resume_cur = (uint8_t)(s->rec7 & 15u); + s->rec7 = 0; s->mode_pref = s->mode_on; return s->place[4]; } @@ -338,14 +444,26 @@ static void remember(struct as_state *s) wr8(RECORD + 4, s->book); wr8(RECORD + 5, s->backup); wr8(RECORD + 6, s->damaged); /* a book read only in part: kept through a reload (#1737) */ + /* Byte 7 (slots 7 and 8 hold setlist songs) is set and cleared only by slots_foreign(). */ wr32(RECORD + 8, slots_sum()); } +/* Slots 7 and 8 hold setlist copies (the record's byte 7): nothing writes them to a book's files then, whatever asked + * (a mid-load save of the last project, a book switch, stock's writer with its mask). The owner's review of #2431. */ +static int lent(void) { return (rd8(RECORD + 7) & 0x80u) != 0; } +static uint32_t lend_mask(uint32_t a2) { return lent() ? a2 & ~0xc0u : a2; } + +/* The book's own names of arrangements 7 and 8 while a setlist borrows their slots: ARR > BOOKS shows these, not the + * setlist's copies (the developer's MKI, 1 December 2026). Taken as the setlist starts (lend()). */ +char as_own_names[2][17]; +uint8_t as_own_ok; + /* The 8 slots to a book's 8 files (book 0: book 1's backup, arr01.bak .. arr08.bak). 1 when all were written. */ static int write_book(struct as_state *s, unsigned book) { int ok = 1; for (unsigned n = 0; n < SLOTS; ++n) { + if (n >= 6u && lent()) continue; /* setlist copies: never a book's arrangements 7 and 8 */ arr_path(s->path, arr_number(book, n), book ? "work" : "bak"); ok &= arr_write(s, n); } @@ -404,39 +522,624 @@ static int write_changed(struct as_state *s, unsigned book) { int ok = 1; for (unsigned n = 0; n < SLOTS; ++n) if (rd8(CHANGED) >> n & 1) { + if (n >= 6u && lent()) continue; /* setlist copies: never a book's arrangements 7 and 8 */ arr_path(s->path, arr_number(book, n), "work"); ok &= arr_write(s, n); } return ok; } +/* ---------------------------------------------------------------- setlists */ +/* An entry copied byte by byte: a struct assignment can compile to a call of memcpy, which the module has not got. */ +static void entry_copy(struct sl_entry *to, const struct sl_entry *from) +{ + const uint8_t *f = (const uint8_t *)from; + uint8_t *t = (uint8_t *)to; + for (unsigned i = 0; i < sizeof *to; ++i) t[i] = f[i]; +} + +static void sl_clear(struct as_state *s) +{ + uint8_t *p = (uint8_t *)&s->lists; + for (unsigned i = 0; i < sizeof s->lists; ++i) p[i] = 0; + s->lists_dirty = 0; + s->lists_unread = 0; +} + +/* A slot's name, as stock's list shows it ("%.16s" of the block's first bytes). */ +static void slot_name(char *out, unsigned slot) +{ + for (unsigned i = 0; i < NAME_LEN; ++i) out[i] = (char)rd8(WORKING + slot * BLOCK + i); +} + +/* The arrangement at slot of book, added at the end of the open setlist: its position (1-16), 0 when full. */ +static unsigned sl_add(struct as_state *s, unsigned book, unsigned slot) +{ + unsigned l = s->lists.open, n = s->lists.count[l]; + if (n >= LIST_LEN) return 0; + struct sl_entry *e = &s->lists.e[l][n]; + e->book = (uint8_t)book; + e->slot = (uint8_t)slot; + slot_name(e->name, slot); + s->lists.count[l] = (uint8_t)(n + 1); + s->lists_dirty = 1; + return n + 1; +} + +/* Two arrangements of a book changed places: every setlist keeps pointing at the same songs. */ +static void sl_swapped(struct as_state *s, unsigned book, unsigned a, unsigned b) +{ + for (unsigned l = 0; l < LISTS; ++l) for (unsigned i = 0; i < s->lists.count[l]; ++i) { + struct sl_entry *e = &s->lists.e[l][i]; + if (e->book != book) continue; + if (e->slot == a) { e->slot = (uint8_t)b; s->lists_dirty = 1; } + else if (e->slot == b) { e->slot = (uint8_t)a; s->lists_dirty = 1; } + } +} + +/* Song i of setlist l one place up (dir -1) or down: its new place. */ +static unsigned sl_move(struct as_state *s, unsigned l, unsigned i, int dir) +{ + int j = (int)i + dir; + if (j < 0 || j >= (int)s->lists.count[l]) return i; + struct sl_entry t; + entry_copy(&t, &s->lists.e[l][i]); + entry_copy(&s->lists.e[l][i], &s->lists.e[l][j]); + entry_copy(&s->lists.e[l][j], &t); + s->lists_dirty = 1; + return (unsigned)j; +} + +/* Song i out of setlist l; the arrangement itself stays in its book. */ +static void sl_remove(struct as_state *s, unsigned l, unsigned i) +{ + unsigned n = s->lists.count[l]; + if (i >= n) return; + for (unsigned k = i; k + 1 < n; ++k) entry_copy(&s->lists.e[l][k], &s->lists.e[l][k + 1]); + s->lists.count[l] = (uint8_t)(n - 1); + s->lists_dirty = 1; +} + +/* The book in the slots: its songs' names as they are now (a rename shows in the setlists). */ +static void sl_names(struct as_state *s) +{ + char name[NAME_LEN]; + for (unsigned l = 0; l < LISTS; ++l) for (unsigned i = 0; i < s->lists.count[l]; ++i) { + struct sl_entry *e = &s->lists.e[l][i]; + if (e->book != s->book) continue; + slot_name(name, e->slot); + for (unsigned k = 0; k < NAME_LEN; ++k) if (e->name[k] != name[k]) { e->name[k] = name[k]; s->lists_dirty = 1; } + } +} + +/* arrlists.work, in the card task: written when changed; read on a load (empty when missing or not ours). */ +static void write_lists(struct as_state *s) +{ + if (!s->lists_dirty) return; + s->lists.magic[0] = 'A'; s->lists.magic[1] = 'S'; s->lists.magic[2] = 'L'; s->lists.magic[3] = '2'; + lists_path(s->path, "work"); + if (put_data(s, &s->lists, sizeof s->lists)) s->lists_dirty = 0; +} +static void read_lists(struct as_state *s) +{ + lists_path(s->path, "work"); + int ok = get_data(s, &s->lists, sizeof s->lists) + && s->lists.magic[0] == 'A' && s->lists.magic[1] == 'S' && s->lists.magic[2] == 'L' && s->lists.magic[3] == '2'; + if (!ok) { /* the first format, without names */ + ok = get_data(s, &s->lists, LISTS_V1_BYTES) + && s->lists.magic[0] == 'A' && s->lists.magic[1] == 'S' && s->lists.magic[2] == 'S' && s->lists.magic[3] == 'L'; + for (unsigned l = 0; l < LISTS; ++l) for (unsigned i = 0; i < 16u; ++i) s->lists.name[l][i] = 0; + } + ok = ok && s->lists.open < LISTS; + for (unsigned l = 0; ok && l < LISTS; ++l) s->lists.name[l][15] = 0; + for (unsigned l = 0; ok && l < LISTS; ++l) { + if (s->lists.count[l] > LIST_LEN) ok = 0; + for (unsigned i = 0; ok && i < s->lists.count[l]; ++i) + if (s->lists.e[l][i].book >= BOOKS || s->lists.e[l][i].slot >= SLOTS) ok = 0; + } + if (!ok) sl_clear(s); + s->lists_dirty = 0; + s->lists_unread = 0; +} + +/* ---------------------------------------------------------------- a setlist playing */ +/* The battery record's byte 7: slots 7 and 8 hold setlist songs (bit 7) and the song playing (bits 0-3). Set when a + * setlist starts and at each song; cleared only once the book has been read back into its slots from its files. While + * it is set and no setlist is playing in this copy's memory (a power cycle, a reinstall, a load), every card job first + * reads the book back and writes none of it: the slots were written into book 1's arr07/arr08 after a power cycle on + * the developer's MKI (23 November 2026). */ +static void slots_foreign(int on, unsigned cur) { wr8(RECORD + 7, (uint8_t)(on ? 0x80u | (cur & 15u) : 0u)); } +static int slots_are_foreign(void) { return (rd8(RECORD + 7) & 0x80u) != 0; } +#define SL_A 6u +#define SL_B 7u +static uint32_t work_at(unsigned slot) { return WORKING + slot * BLOCK; } +static void block_from_slot(uint8_t *to, unsigned slot) { for (uint32_t i = 0; i < BLOCK; ++i) to[i] = rd8(work_at(slot) + i); } +static void block_to_slot(unsigned slot, const uint8_t *from) { for (uint32_t i = 0; i < BLOCK; ++i) wr8(work_at(slot) + i, from[i]); } + + +/* The chain row's text: stock's two arranger-row drawings take their format from here instead of "CHAIN ARR. %d" + * (manifest.py's SymbolRefs on their pea operands, 0x40048eb8 and 0x400496e6): the name of what is in the slot the chain + * names (">SONG BRAVO"). The module's own buffer: writing into a declared stock change made the loader's check of its + * bytes fail, and every later install was refused as busy until a power cycle (the developer's MKI, 23 November 2026). + * It is a format string, so a % in a name becomes a space; stock's own text and its shared "%d" stay untouched. */ +char as_chain_text[16]; +/* The arranger position drawn right of the name on the main screen (row:bar:beat, stock's "%d:%d:%d", 0x400b45a3, printed + * by 0x40045940; manifest.py's SymbolRef on its pea operand): none while a setlist plays in arranger mode, so the name has + * the room (the developer, 29 November 2026). */ +char as_count_fmt[10] = "%d:%d:%d"; +static void count_follow(const struct as_state *s) +{ + static const char stock[10] = "%d:%d:%d"; + int hide = s->sl_active && rd32(ARR_MODE); + for (unsigned i = 0; i < sizeof stock; ++i) as_count_fmt[i] = hide ? 0 : stock[i]; +} +/* The arranger's name bar on the main screen (0x4003ced4): stock fills x 45-88 and fits the name into 37 px, the position + * taking 90-116. While a setlist plays the position is left out, and the name runs to the bar's end (the developer, 29 + * November 2026). These stand in for stock's fill 0x40012254 and fit 0x40012f88 at their calls (manifest.py). */ +typedef int (*fill6)(uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t); +typedef int (*fit3)(uint32_t, uint32_t, uint32_t); +int as_pos_fill(uint32_t a, uint32_t b, uint32_t c, uint32_t d, uint32_t e, uint32_t f) +{ + if (!as_count_fmt[0]) return 0; +#ifdef AS_HOST + (void)a; (void)b; (void)c; (void)d; (void)e; (void)f; return 0; +#else + return ((fill6)0x40012254u)(a, b, c, d, e, f); +#endif +} +int as_head_fill(uint32_t a, uint32_t b, uint32_t c, uint32_t d, uint32_t e, uint32_t f) +{ + if (!as_count_fmt[0] && d == 0x58u) d = 0x74u; +#ifdef AS_HOST + (void)a; (void)b; (void)c; (void)d; (void)e; (void)f; return 0; +#else + return ((fill6)0x40012254u)(a, b, c, d, e, f); +#endif +} +/* The name's text (stock 0x40012bd8: font, surface, x, y, at most so many letters, text): 16 letters, not 11. */ +int as_head_text(uint32_t font, uint32_t surface, uint32_t x, uint32_t y, uint32_t most, uint32_t text) +{ + if (!as_count_fmt[0] && most == 0xbu) most = 16u; +#ifdef AS_HOST + (void)font; (void)surface; (void)x; (void)y; (void)most; (void)text; return 0; +#else + return ((fill6)0x40012bd8u)(font, surface, x, y, most, text); +#endif +} +/* A row of ARR > BOOKS (stock's list, 0x40036e18: "%c%d:%s" of its mark, number and the slot's name, through + * 0x40013904): rows 7 and 8 name the book's own arrangements while a setlist borrows their slots. */ +#ifdef AS_HOST +uint32_t host_row_name; +#endif +int as_list_row(uint32_t font, uint32_t win, uint32_t a2, uint32_t y, uint32_t a4, uint32_t a5, uint32_t lead, uint32_t fmt, + uint32_t mark, uint32_t number, uint32_t name) +{ + if (as_own_ok && lent()) { + if (name == work_at(SL_A)) name = (uint32_t)(uintptr_t)as_own_names[0]; + else if (name == work_at(SL_B)) name = (uint32_t)(uintptr_t)as_own_names[1]; + } +#ifdef AS_HOST + (void)font; (void)win; (void)a2; (void)y; (void)a4; (void)a5; (void)lead; (void)fmt; (void)mark; (void)number; + host_row_name = name; + return 0; +#else + return ((int (*)(uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, + uint32_t))0x40013904u)(font, win, a2, y, a4, a5, lead, fmt, mark, number, name); +#endif +} +int as_head_fit(uint32_t font, uint32_t width, uint32_t text) +{ + if (!as_count_fmt[0] && width == 0x25u) width = 0x74u - 0x34u; +#ifdef AS_HOST + (void)font; (void)text; return (int)width; +#else + return ((fit3)0x40012f88u)(font, width, text); +#endif +} + +/* The Arranger menu's title (stock: "ARR %d:%s" of its index + 1 and the name, 0x40057f1c): manifest.py's SymbolRefs + * point its index byte and its format here. A single arrangement: "ARR B2:3:NAME" (book, arrangement, name). A setlist: + * "STL:GIG IN:2:NAME" (its name, cut as far as the song's name needs the room but never under 7 characters, then the + * song's name cut instead; the song's place; its name). At most + * TITLE_MAX characters, the width of the menu's title bar. A % in a name becomes a space: this is a format. */ +#define TITLE_MAX 26u +uint8_t as_title_index; +char as_title_fmt[32]; +static void title_follow(const struct as_state *s) +{ + char *t = as_title_fmt; + if (!s->sl_active) { + t = put_text(t, "ARR B"); /* "ARR B12:8:" and 16 letters: 26 at most */ + t = put_num(t, s->book + 1u); + *t++ = ':'; + as_title_index = (uint8_t)rd8(0x80000005u); + } else { + unsigned song = 0, slot = s->sl_cur_slot; + while (song < NAME_LEN && rd8(WORKING + slot * BLOCK + song)) ++song; + unsigned place = s->sl_cur + 1u >= 10u ? 2u : 1u, used = 4u + 1u + place + 1u + song; /* "STL:" ":" n ":" */ + unsigned room = TITLE_MAX > used ? TITLE_MAX - used : 0; + char name[16], *e = list_title(s, name, s->sl_list); + unsigned k = (unsigned)(e - name); + if (k > 15u) k = 15u; + unsigned keep = k < 7u ? k : 7u; /* the setlist's name keeps at least 7 characters */ + while (k > room && k > keep) --k; + while (k && name[k - 1] == ' ') --k; + t = put_text(t, "STL:"); + for (unsigned i = 0; i < k; ++i) *t++ = name[i] == '%' ? ' ' : name[i]; + if (k) *t++ = ':'; + as_title_index = s->sl_cur; + if (k > room) { /* then the song's name is cut: "%.Ns" */ + unsigned fit = song - (k - room); + t = put_text(t, "%d:%."); + t = put_num(t, fit); + t = put_text(t, "s"); + *t = 0; + return; + } + } + t = put_text(t, "%d:%s"); + *t = 0; +} +static void next_text(unsigned slot) +{ + unsigned k = 0; + as_chain_text[k++] = '>'; + for (unsigned i = 0; i < NAME_LEN && k < sizeof as_chain_text - 1u; ++i) { + char c = (char)rd8(work_at(slot) + i); + if (!c) break; + as_chain_text[k++] = c == '%' ? ' ' : c; + } + while (k < sizeof as_chain_text) as_chain_text[k++] = 0; +} + +/* Stock's CHAIN to a slot, its row naming the song there, and the rows drawn again (the arranger draws them as it + * takes a chain, before the module sets the next one: the developer's MKI showed END OF ARR, 23 November 2026). */ +static void set_chain(unsigned slot) +{ + wr32(CHAIN, slot); + next_text(slot); + post_event(); +} + +/* Song k into one of the setlist's two slots: the arranger plays it from there. */ +static void put_song(struct as_state *s, unsigned which, unsigned k) +{ + block_to_slot(which ? SL_B : SL_A, s->songs[k]); + s->song_at[which] = (uint8_t)k; + wr8(CHANGED, (uint8_t)(rd8(CHANGED) & ~(1u << (which ? SL_B : SL_A)))); +} + +/* The first song from k on with rows: an empty arrangement in a setlist stopped playback until STOP (the developer's + * MKI, 25 November 2026), so the chain passes over it. s->sl_n when none is left. */ +static unsigned next_song(const struct as_state *s, unsigned k) +{ + while (k < s->sl_n && !(s->songs[k][0x12] | s->songs[k][0x13])) ++k; + return k; +} + +/* A song leaves its slot: what was edited in it while it played is kept, to be written to its own file at the end. */ +static void take_back(struct as_state *s, unsigned which) +{ + unsigned k = s->song_at[which], slot = which ? SL_B : SL_A; + if (k >= s->sl_n) return; + /* Still the song put there? Its name unchanged, and not emptied while it had rows. Anything else came into the slot + * from elsewhere (stock reloading the slots after a load, 23 November 2026: empty arrangements taken back as edits + * wiped songs 2-8 of a setlist): never kept as an edit, never written. A rename during a show is not kept either. */ + int rows_now = rd8(work_at(slot) + 0x12) << 8 | rd8(work_at(slot) + 0x13); + int rows_put = s->songs[k][0x12] << 8 | s->songs[k][0x13]; + int same = 1; + for (unsigned i = 0; i < NAME_LEN; ++i) if (rd8(work_at(slot) + i) != s->songs[k][i]) same = 0; + if (!same || (rows_put && !rows_now)) { ev(0xb); ++s->foreign; return; } + for (uint32_t i = 0; i < BLOCK; ++i) { + uint8_t v = rd8(work_at(slot) + i); + if (v != s->songs[k][i]) { s->songs[k][i] = v; s->sl_edited |= (uint16_t)(1u << k); } + } +} + +/* The file a setlist song lives in: arr.work, or book 1's backup while another book is in the slots. */ +static void song_path(struct as_state *s, const struct sl_entry *e, const char *ext) +{ + arr_path(s->path, arr_number(e->book, e->slot), ext); +} + +/* Before a setlist borrows slots 7 and 8: the book's own arrangements 7 and 8 into arrNN.sl, and arrlend.work saying + * this project lent them. Stock alone (a trial ended by a power cycle, the module removed) saves whatever the slots hold, + * so the setlist's copies may land in arrNN.work; when the module gives the slots back it restores a slot from arrNN.sl + * only while arrNN.work still holds such a copy: the note keeps each song's fingerprint and name and the book's own two + * names, so work saved later in arrNN.work (a week on 0.1.0 or the stock OS) is kept (the owner's review of #2431). + * The note is a file of the project's own, which neither stock nor Songbook 0.1.0 writes (0.1.0 rewrites arrbook.work + * after a power cycle). */ +struct lend_note { + uint8_t magic[4]; /* "ASL2" */ + uint8_t book, on, count, pad; + char own[2][NAME_LEN]; /* the book's own arrangements 7 and 8 */ + uint32_t fp[LIST_LEN]; /* the setlist's songs: a fingerprint of each working block ... */ + char name[LIST_LEN][NAME_LEN]; /* ... and its name */ +}; +static struct lend_note lend_buf; + +static uint32_t fp_bytes(const uint8_t *p) +{ + uint32_t h = 2166136261u; + for (uint32_t i = 0; i < BLOCK; ++i) h = (h ^ p[i]) * 16777619u; + return h; +} +static uint32_t fp_slot(unsigned slot) +{ + uint32_t h = 2166136261u; + for (uint32_t i = 0; i < BLOCK; ++i) h = (h ^ rd8(work_at(slot) + i)) * 16777619u; + return h; +} +static int note_read(struct as_state *s, struct lend_note *n) +{ + project_file(s->path, "arrlend", "work"); + if (!get_data(s, n, sizeof *n) || n->magic[0] != 'A' || n->magic[1] != 'S' || n->magic[2] != 'L' || n->magic[3] != '2' + || n->book >= BOOKS || n->count > LIST_LEN) { n->on = 0; return 0; } + return 1; +} +static int note_write(struct as_state *s, const struct lend_note *n) +{ + project_file(s->path, "arrlend", "work"); + return put_data(s, n, sizeof *n); +} +static int note_off(struct as_state *s) { lend_buf.on = 0; return note_write(s, &lend_buf); } + +/* Does the slot hold one of the setlist's copies (w: 0 for arrangement 7, 1 for 8)? Its exact block, or a song's name + * that is not the book's own name for it. */ +static int is_copy(const struct lend_note *n, unsigned slot, unsigned w) +{ + uint32_t h = fp_slot(slot); + char name[NAME_LEN]; + for (unsigned i = 0; i < NAME_LEN; ++i) name[i] = (char)rd8(work_at(slot) + i); + for (unsigned k = 0; k < n->count; ++k) if (n->fp[k] == h) return 1; + int own = 1; + for (unsigned i = 0; i < NAME_LEN; ++i) if (name[i] != n->own[w][i]) own = 0; + if (own) return 0; + for (unsigned k = 0; k < n->count; ++k) { + int same = 1; + for (unsigned i = 0; i < NAME_LEN; ++i) if (name[i] != n->name[k][i]) same = 0; + if (same) return 1; + } + return 0; +} + +/* The slots back from a setlist, after the book was read from arrNN.work: a slot still holding a setlist's copy comes + * from arrNN.sl, and arrNN.work is repaired; anything else in arrNN.work is kept. Then the note is cleared. */ +static int give_back(struct as_state *s) +{ + struct lend_note *n = &lend_buf; + if (!note_read(s, n) || !n->on || n->book != s->book) return 1; + int ok = 1; + for (unsigned w = 0; w < 2; ++w) { + unsigned slot = SL_A + w; + if (!is_copy(n, slot, w)) continue; + arr_path(s->path, arr_number(s->book, slot), "sl"); + int r = arr_read(s, slot); + if (r < 0) ok = 0; + if (r <= 0) continue; + arr_path(s->path, arr_number(s->book, slot), "work"); + ok &= arr_write(s, slot); + } + return ok && note_off(s); +} + +/* A note never given back, for another book (its record lost): that book's arrangements 7 and 8 repaired in its files + * the same way, through slot 8, which then gets this book's own arrangement 8 back from arrNN.sl. */ +static int give_back_other(struct as_state *s, const struct lend_note *n) +{ + int ok = 1; + for (unsigned w = 0; w < 2; ++w) { + unsigned number = arr_number(n->book, SL_A + w); + arr_path(s->path, number, "work"); + if (arr_read(s, SL_B) <= 0 || !is_copy(n, SL_B, w)) continue; + arr_path(s->path, number, "sl"); + int r = arr_read(s, SL_B); + if (r < 0) ok = 0; + if (r <= 0) continue; + arr_path(s->path, number, "work"); + ok &= arr_write(s, SL_B); + if (n->book == 0 && s->backup) { arr_path(s->path, number, "bak"); ok &= arr_write(s, SL_B); } + } + arr_path(s->path, arr_number(s->book, SL_B), "sl"); + if (arr_read(s, SL_B) <= 0) ok = 0; + return ok; +} + +static int lend(struct as_state *s) +{ + struct lend_note old; + note_read(s, &old); + int ok = 1; + if (old.on && old.book == s->book) ok &= give_back(s); /* this book's own, from an earlier setlist never ended */ + for (unsigned w = 0; w < 2; ++w) { + for (unsigned i = 0; i < NAME_LEN; ++i) as_own_names[w][i] = (char)rd8(work_at(w ? SL_B : SL_A) + i); + as_own_names[w][NAME_LEN] = 0; + } + as_own_ok = 1; + for (unsigned n = SL_A; n <= SL_B; ++n) { arr_path(s->path, arr_number(s->book, n), "sl"); ok &= arr_write(s, n); } + if (old.on && old.book != s->book) ok &= give_back_other(s, &old); + struct lend_note *n = &lend_buf; + n->magic[0] = 'A'; n->magic[1] = 'S'; n->magic[2] = 'L'; n->magic[3] = '2'; + n->book = s->book; n->on = 1; n->count = 0; n->pad = 0; + for (unsigned w = 0; w < 2; ++w) for (unsigned i = 0; i < NAME_LEN; ++i) n->own[w][i] = as_own_names[w][i]; + return ok && note_write(s, n); +} + +/* The note completed once the setlist's songs are in memory: what a copy of each looks like. */ +static int lend_songs(struct as_state *s) +{ + struct lend_note *n = &lend_buf; + n->count = s->sl_n; + for (unsigned k = 0; k < s->sl_n; ++k) { + n->fp[k] = fp_bytes(s->songs[k]); + for (unsigned i = 0; i < NAME_LEN; ++i) n->name[k][i] = (char)s->songs[k][i]; + } + return note_write(s, n); +} + +/* Card task, after the book in the slots was written: the open setlist's songs into memory, the first two into + * SL_A and SL_B. Songs of that book come from its slots; the others from their files, through SL_B. 1 when done. */ +static int sl_load(struct as_state *s) +{ + unsigned l = s->lists.open, n = s->lists.count[l], start = (unsigned)s->sl_req; + s->sl_req = -1; + if (!n || start >= n) return 1; + int lending = !lent(); + if (lending && !lend(s)) return 0; /* no backup of 7 and 8: the setlist does not start */ + int ok = 1; + for (unsigned k = 0; k < n; ++k) { + entry_copy(&s->sl_e[k], &s->lists.e[l][k]); + if (s->sl_e[k].book == s->book) block_from_slot(s->songs[k], s->sl_e[k].slot); + } + for (unsigned k = 0; k < n && ok; ++k) { + const struct sl_entry *e = &s->sl_e[k]; + if (e->book == s->book) continue; + song_path(s, e, e->book == 0 && s->backup ? "bak" : "work"); + int r = arr_read(s, SL_B); + if (r == 0) clear_arr(SL_B); /* never saved: an empty arrangement */ + if (r < 0) ok = 0; + else block_from_slot(s->songs[k], SL_B); + } + if (!ok) { /* the book as it was; the setlist does not start */ + read_book(s, s->book, "work"); + wr8(CHANGED, 0); + if (lending) note_off(s); /* nothing lent: arrNN.work still holds 7 and 8 */ + return 0; + } + s->sl_n = (uint8_t)n; + s->sl_list = (uint8_t)l; + if (lending) lend_songs(s); /* what the copies look like, should stock save them */ + if (next_song(s, start) < n) start = next_song(s, start); /* started on an empty song: the first with rows */ + s->sl_cur = (uint8_t)start; + s->sl_cur_slot = SL_A; + s->sl_edited = 0; + s->song_at[1] = 0xff; + put_song(s, 0, start); + unsigned after = next_song(s, start + 1u); + if (after < n) put_song(s, 1, after); + s->sl_active = 1; + s->sl_go = 1; + slots_foreign(1, start); + return 1; +} + +/* Card task, ending: songs edited while they played to their own files (read first, so their ARR SAVE copy stays), + * then the book back into its slots. 1 when every write and the reread succeeded. */ +static int sl_finish(struct as_state *s) +{ + take_back(s, 0); + take_back(s, 1); + int ok = 1; + for (unsigned k = 0; k < s->sl_n; ++k) if (s->sl_edited >> k & 1) { + const struct sl_entry *e = &s->sl_e[k]; + int backup = e->book == 0 && s->book != 0 && s->backup; + song_path(s, e, backup ? "bak" : "work"); + if (arr_read(s, SL_B) < 0) { ok = 0; continue; } /* missing: written new */ + block_to_slot(SL_B, s->songs[k]); + ok &= arr_write(s, SL_B); + if (backup) { song_path(s, e, "work"); ok &= arr_write(s, SL_B); } + if (e->book == s->book && e->slot >= SL_A) { song_path(s, e, "sl"); ok &= arr_write(s, SL_B); } + } + s->sl_active = 0; + s->sl_end = 0; + s->sl_go = 0; + int back = read_book(s, s->book, "work") & give_back(s); + ok &= back; + if (back) slots_foreign(0, 0); /* the book's own arrangements in slots 7 and 8 again */ + wr8(CHANGED, 0); + wr32(CHAIN, 0xffffffffu); + s->redraw = 1; + return ok; +} + /* ---------------------------------------------------------------- the card task */ /* Stock's arrangement writer, stepped into at its entry (the site's jmp reaches as_writer_entry below). */ +static int as_writer_(struct as_state *s, uint32_t a1, uint32_t a2, uint32_t a3, uint32_t a4); +/* A project left in a setlist: the return's job starts it again after the switch. 1 when it was handed over. */ +static int return_setlist(struct as_state *s) +{ + int8_t l = s->resume; + if (l < 0 || s->lists_unread || s->sl_active || s->resume_cur >= s->lists.count[l]) return 0; + s->lists.open = (uint8_t)l; + s->sl_req = (int8_t)s->resume_cur; + s->resume = -1; + return 1; +} +/* Every job the module posts (a switch, a setlist's start, end or restart, a load's read) borrows SYNC TO CARD's, which + * ends with NOW SAFE TO EJECT!: closed when it opens, counted from the job's end (the developer's MKI: it showed when a + * setlist was restarted from another song, 24 November 2026). */ int as_writer(uint32_t a1, uint32_t a2, uint32_t a3, uint32_t a4) { struct as_state *s = ready(); - int rc = 0; - int own_read = s->load_read && s->load_posted; /* the module's own job, after the whole load */ - if (own_read) load_read(s); - if (s->load_read) { /* mid-LOAD, the new project not read yet: none of the module's */ - if (s->book == 0) rc = stock_writer(a1, a2, a3, a4); /* files written (LOAD saved the last project before */ - remember(s); /* it began); book 1 is stock's own */ + if (s->ours) { s->ours = 0; s->hush = 1; } + int rc = as_writer_(s, a1, a2, a3, a4); + if (s->hush) s->hush = 1; + return rc; +} +static int as_writer_(struct as_state *s, uint32_t a1, uint32_t a2, uint32_t a3, uint32_t a4) +{ + int own_read = s->load_read && s->load_posted; /* the module's job after the whole load */ + if (s->load_read && (s->load_posted || (!s->loading && !loading_other()))) + load_read(s); /* the module's own job after the load, or any card job once + * stock's project name is the new one */ + if (s->load_read) { /* mid-load, the new project not read yet: none of the */ + int rc = s->book == 0 ? stock_writer(a1, lend_mask(a2), a3, a4) : 0; /* module's files written (LOAD saved the last */ + remember(s); /* project before it began); book 1 is stock's own */ return rc; } - if (own_read) { - s->hush = 1; /* our job: its NOW SAFE TO EJECT! is closed after */ - /* The same job takes the return to the book the project was left on: one card job of the module's after a - * LOAD of another project, not a second one (the developer's MKI, 24 November 2026). */ - if (s->restore >= 0 && s->reloaded_slots && s->pending < 0) { + if (s->lists_unread) read_lists(s); /* installed into an open project: its setlists first */ + if (s->boot_place) { /* after a power cycle in a setlist: where it was */ + s->boot_place = 0; + int b = read_place(s); + s->restore = (int8_t)(b > 0 ? b : -1); + s->restore_ticks = 0; + s->reloaded_slots = 1; /* the slots are as stock left them: a return may go now */ + } + /* That job also takes the return to where the project was left (its book, and its setlist): one card job of the + * module's after a LOAD of another project, not a second one (the developer's MKI, 24 November 2026). */ + if (own_read && s->pending < 0 && (s->restore < 0 || s->reloaded_slots)) { + if (s->restore >= 0) { s->pending = s->restore; s->reapply = 1; s->restore = -1; s->reloaded_slots = 0; ev(7u); } + return_setlist(s); /* book 1 too: the setlist in this job */ + } + if (s->lists_req) { s->lists_req = 0; s->hush = 1; } + if (!s->sl_active && slots_are_foreign()) { /* slots 7 and 8 hold a setlist's songs no one plays: */ + s->hush = 1; /* the book back from its files first, none of it written */ + int ok = read_book(s, s->book, "work") & give_back(s); + wr8(CHANGED, 0); + int only = s->reread_posted && s->pending < 0 && s->sl_req < 0; /* the job the module posted for this */ + s->reread = 0; + s->reread_posted = 0; + s->damaged = (uint8_t)!ok; + if (!ok) s->failed = 1; + else slots_foreign(0, 0); + s->redraw = 1; + remember(s); + if (!ok || only) { write_lists(s); return 0; } /* nothing more in this job */ + } + if (s->sl_active) { /* slots 7 and 8 hold setlist songs: no book file written */ + if (s->sl_end) { + s->hush = 1; + int ok = sl_finish(s); + if (ok && s->sl_restart >= 0) { s->sl_req = s->sl_restart; ok = sl_load(s); } + s->sl_restart = -1; + s->sl_req = -1; + if (!ok) s->failed = 1; + } + write_lists(s); + write_place(s); /* the setlist in it, or none once it ended */ + remember(s); + return 0; } + if (s->sl_req >= 0) s->hush = 1; /* our job: its NOW SAFE TO EJECT! is closed after */ + int rc = 0; if (s->pending >= 0) s->hush = 1; /* our job: its NOW SAFE TO EJECT! is closed after */ - if (s->book == 0 && !s->damaged) rc = stock_writer(a1, a2, a3, a4); /* book 1: arr01-08 as always */ + if (s->book == 0 && !s->damaged) rc = stock_writer(a1, lend_mask(a2), a3, a4); /* book 1: arr01-08 as always */ else if (s->book == 0) { /* Book 1 read only in part: stock's writer would write every slot its mask names (a sync: all 8), the empty * ones too, over arr01-08 (it chooses by the mask or a missing file, never by this byte). Only the edited ones. */ @@ -476,9 +1179,15 @@ int as_writer(uint32_t a1, uint32_t a2, uint32_t a3, uint32_t a4) } ev(switched ? 9u : 0xau); if (!switched) s->last[s->book] = (uint8_t)(rd8(INDEX) & 7u); /* the choice in the book in use, as saved */ + sl_names(s); /* the setlists: names as the book in the slots has them */ + write_lists(s); write_place(s); /* where the project is: a load comes back here */ + if (s->sl_req >= 0 && rc >= 0 && !s->damaged) { /* YES on the SETLSTS page */ + if (!sl_load(s)) s->failed = 1; + else write_place(s); /* the project says it is in this setlist, from its start */ + } + s->sl_req = -1; remember(s); - if (s->hush) s->hush = 1; /* its NOW SAFE TO EJECT! comes after stock's own part */ return rc; } @@ -503,6 +1212,17 @@ __asm__( "\tjmp 0x400915b4\n"); #endif +/* Stock replaces the slots (a load, a reload, a new project): a setlist playing ends in memory, nothing of it taken + * back or written (a reload drops unsaved edits anyway). Left running, the module took the arrangements stock reloads + * into slots 7 and 8 for its songs, as edited (the developer's MKI and ot_emu, 23 November 2026). A load comes back into + * the setlist afterwards (arrbook.work). */ +static void sl_drop(struct as_state *s) +{ + s->sl_active = 0; s->sl_req = -1; s->sl_go = 0; s->sl_end = 0; s->sl_restart = -1; + s->peek = 0; s->page = 0; s->reread = 0; + wr32(CHAIN, 0xffffffffu); /* its chain too: only setlists set one (SETLSTS replaces CHAIN) */ +} + /* A project load or a new project: stock reads arr01-08 into the slots, so they hold book 1. */ void as_project_load(void) { @@ -515,30 +1235,31 @@ void as_project_load(void) * book in use, so the module keeps it: a write in between must not save them as arr01-08. */ s->loading = 1; s->reloaded_slots = 0; - s->ready = 1; - if (s->reloading) return; /* RELOAD read its own (the same) project already */ - /* Where the new project was left is read once stock's project directory names it: at ev_banks_loaded when the load - * is of the project in use (RELOAD, LOAD of the same one), else by a card job the module posts after the whole - * load. Loading another project, the directory still names the last one at ev_banks_load and at ev_banks_loaded - * (the developer's MKI, 24 November 2026: the project came up on the other's book, read at either hook); stock - * takes the new name from its load job's own record. */ + /* Where the new project was left is read once stock's project directory names it: at ev_banks_loaded for a LOAD + * of the project in use, else by a card job the module posts after the whole load. Loading another project, the + * directory still names the last one at ev_banks_load and at ev_banks_loaded (the developer's MKI, 24 November + * 2026: project B came up on A's book and setlist, read at either hook, and A's setlists were saved into B). */ + sl_drop(s); /* stock replaces the slots: a setlist playing ends */ + if (s->reloading) { s->ready = 1; return; } /* RELOAD's own reading stands (the same project) */ for (unsigned b = 0; b < BOOKS; ++b) s->last[b] = 0; s->restore = -1; + s->resume = -1; s->mode_on = 0; s->load_read = 1; s->load_posted = 0; + s->lists_unread = 1; /* the old project's setlists are not shown or changed */ + s->ready = 1; } -/* The new project's arrbook.work: the book, the choices and arranger mode it was left on. The book is switched to once - * stock has finished; arranger mode goes into the byte stock applies as its load ends. */ +/* The new project's arrbook.work and arrlists.work: where it was left (book, choices, arranger mode, setlist). */ static void load_read(struct as_state *s) { s->load_read = 0; int b = read_place(s); + read_lists(s); s->restore = (int8_t)(b > 0 ? b : -1); s->restore_ticks = 0; - if (s->mode_on && s->loading) wr8(ARR_MODE_WANTED, 1); /* stock applies it as its load ends; after the load - * the tick turns it on once quiet */ + if (s->mode_on && s->loading) wr8(ARR_MODE_WANTED, 1); /* stock applies it as its load ends */ } /* A new project: empty, on book 1; nothing of the last one is read. */ @@ -553,6 +1274,7 @@ void as_project_new(void) s->backup = 0; s->damaged = 0; s->ready = 1; + sl_drop(s); /* the slots are stock's again, in a load too */ s->reloading = 0; int loading = s->loading && s->since_hook < 3600; /* LOAD and RELOAD run this step too (the developer's MKI) */ s->loading = 0; @@ -563,6 +1285,10 @@ void as_project_new(void) s->restore = -1; s->mode_on = 0; for (unsigned b = 0; b < BOOKS; ++b) s->last[b] = 0; + sl_clear(s); /* a new project has no setlists */ + s->resume = -1; + s->page = 0; + s->sl_active = 0; s->sl_req = -1; s->sl_go = 0; s->sl_end = 0; s->reread = 0; } /* Stock has read the banks; it reads arr01-08 next, so the slots will hold book 1. Where the project was left is read @@ -591,6 +1317,9 @@ unsigned as_project_stored(void) place_path(s->path, "work"); place_path(s->path2, "strd"); copy_file(s); + lists_path(s->path, "work"); + lists_path(s->path2, "strd"); + copy_file(s); return 0; } @@ -599,6 +1328,7 @@ unsigned as_project_reloaded(void) { struct as_state *s = ready(); ev(3); + sl_drop(s); /* stock reloads the slots next */ s->reloading = 1; s->load_read = 0; s->since_hook = 0; @@ -610,11 +1340,16 @@ unsigned as_project_reloaded(void) place_path(s->path, "strd"); place_path(s->path2, "work"); copy_file(s); + lists_path(s->path, "strd"); + lists_path(s->path2, "work"); + int lists_saved = copy_file(s); s->loading = 1; /* the slots change only at the new-project step */ s->reloaded_slots = 0; /* Where it was saved: RELOAD's own hook, after the copy. On the developer's MKI a RELOAD was followed by stock's * new-project step (which keeps this) and sometimes by no ev_banks_load at all. */ int b = read_place(s); + if (lists_saved != 0) read_lists(s); /* a copy that failed: what the card holds */ + else { sl_clear(s); s->lists_dirty = 1; } /* saved before it had setlists: none, as saved */ s->restore = (int8_t)(b > 0 ? b : -1); s->restore_ticks = 0; if (s->mode_on) wr8(ARR_MODE_WANTED, 1); @@ -637,7 +1372,16 @@ unsigned as_modules_ready(void) /* The book in the slots was read only in part: still write back only what is edited, after a reinstall or * after another build's trial (the owner's review, #1737). */ s->damaged = (uint8_t)(rd8(RECORD + 6) == 1); - } else { s->book = 0; ev(0xf); } + } else { + s->book = 0; + ev(0xf); + } + /* Fresh memory with the record saying slots 7 and 8 hold a setlist's songs: a power cycle (or a reinstall) in a + * setlist. No load hook tells the module where the project was, so the next card job reads arrbook.work, and the + * book and the setlist come back from it. Whether the slots still match the record does not tell a power cycle + * apart: base 0.8.1 brings the module up before stock touches them (the developer's MKI, 24 November 2026). */ + if ((s->rec7 & 0x80u) && slots_are_foreign()) s->boot_place = 1; + else s->rec7 = 0; remember(s); return 0; } @@ -646,25 +1390,346 @@ unsigned as_modules_ready(void) static int stopped(void) { if (rd32(PLAYING)) return 0; - for (unsigned i = 0; i < 16; ++i) if (rd8(0x80006500u + i) || rd8(0x80004f1eu + i * 84u)) return 0; + for (unsigned i = 0; i < 16; ++i) if (rd8(0x80006500u + i)) return 0; + /* A track recorder's state, in the buffer the track uses (bit t of 0x80004f18): the other buffer can keep a state + * after a load of an old project, and books then never switched, stopped (the developer's MKI, 25 November 2026). */ + uint32_t bank = rd32(0x80004f18u); + for (unsigned t = 0; t < 8; ++t) if (rd8(0x80004f1eu + t * 84u + (bank >> t & 1u) * 672u)) return 0; return 1; } +static char *put_text(char *t, const char *x) { while (*x) *t++ = *x++; return t; } +static char *put_num(char *t, unsigned n) { if (n >= 10) *t++ = (char)('0' + n / 10); *t++ = (char)('0' + n % 10); return t; } + +/* The setlists in memory? After an install into an open project they are read by a card job first: post one (once) + * and say so; 0 until it has run. */ +static int lists_ready(struct as_state *s) +{ + if (!s->lists_unread) return 1; + if (!stopped()) { message("STOP TO READ SETLISTS"); return 0; } /* stock's card job would stop playback */ + if (!s->lists_req && s->pending < 0) { + int rc = our_post(s); + if (rc == -7) { s->lists_unread = 0; return 1; } /* no project: nothing to read */ + if (rc >= 0) s->lists_req = 1; + } + message("READING SETLISTS"); + return 0; +} + +/* CUE + YES in ARR > CHANGE: the arrangement under the cursor to the end of the open setlist, and say so. */ +static void add_to_list(struct as_state *s) +{ + unsigned slot = rd32(LIST_CHOICE) & 7u, l = s->lists.open; + unsigned at = sl_add(s, s->book, slot); + char *t = s->msg; + if (!at) { t = put_text(t, "LIST "); t = put_num(t, l + 1); t = put_text(t, " IS FULL"); } + else { + *t++ = 'B'; t = put_num(t, s->book + 1u); *t++ = ' '; t = put_num(t, slot + 1u); + t = put_text(t, " ADDED TO LIST "); t = put_num(t, l + 1); + } + *t = 0; + message(s->msg); +} + +/* Two arrangements of the book in the slots change places: working and saved copies and their flags. */ +static void swap_slots(unsigned a, unsigned b) +{ + for (unsigned k = 0; k < 2; ++k) { + uint32_t pa = WORKING + (k * SLOTS + a) * BLOCK, pb = WORKING + (k * SLOTS + b) * BLOCK; + for (uint32_t i = 0; i < BLOCK; ++i) { uint8_t x = rd8(pa + i); wr8(pa + i, rd8(pb + i)); wr8(pb + i, x); } + } + uint32_t f = WORKING + 2u * SLOTS * BLOCK; + uint8_t x = rd8(f + a); wr8(f + a, rd8(f + b)); wr8(f + b, x); +} + +/* CUE + LEFT/RIGHT in ARR > CHANGE: the arrangement under the cursor one place up or down in its book. Both are + * marked changed, so the next sync writes them to their files; the setlists follow; the choice and cursor go with it. */ +static void move_arr(struct as_state *s, int dir) +{ + if (!stopped()) { message("STOP TO MOVE"); return; } + int a = (int)(rd32(LIST_CHOICE) & 7u), b = a + dir; + if (b < 0 || b >= (int)SLOTS) return; + swap_slots((unsigned)a, (unsigned)b); + wr8(CHANGED, (uint8_t)(rd8(CHANGED) | 1u << a | 1u << b)); + sl_swapped(s, s->book, (unsigned)a, (unsigned)b); + unsigned idx = rd8(INDEX) & 7u; + if (idx == (unsigned)a || idx == (unsigned)b) select_arr(idx == (unsigned)a ? (unsigned)b : (unsigned)a); + uint8_t *last = &s->last[s->book]; + if (*last == a) *last = (uint8_t)b; else if (*last == b) *last = (uint8_t)a; + wr32(LIST_CHOICE, (uint32_t)b); + wr32(LIST_CURSOR, (uint32_t)b - rd32(LIST_TOP)); + draw_change(); +} + +#define PAGE_ROWS 7u +#define NAME_EDIT 0x4007e664u /* stock's name editor (len, title, buffer, 1, done(ok)): RENAME's (0x40049c88) */ + +/* A setlist's title: its name, or "SETLIST n" without one. */ +static char *list_title(const struct as_state *s, char *t, unsigned l) +{ + const char *n = s->lists.name[l]; + unsigned k = 0; + while (k < 15u && n[k]) ++k; + while (k && n[k - 1] == ' ') --k; /* the editor pads with spaces */ + if (!k) { t = put_text(t, "SETLIST "); return put_num(t, l + 1u); } + for (unsigned i = 0; i < k; ++i) *t++ = n[i]; + return t; +} + +/* A setlist's title row (the page, the main screen's window): its number, then its name, cut where the right-hand count + * needs the room (x 25 to 101, 4 pixels a character). */ +static void title_row(const struct as_state *s, unsigned char *frame, unsigned l, const char *right); +/* An unnamed setlist's name, SETLIST 1 and so on, put into the name itself before stock's editor opens on it: the + * musician deletes it to type another (the developer's MKI, 24 November 2026). */ +static void default_name(struct as_state *s, unsigned l) +{ + char *n = s->lists.name[l]; + unsigned k = 0; + while (k < 15u && n[k]) ++k; + while (k && n[k - 1] == ' ') --k; + if (k) return; + char *t = put_text(n, "SETLIST "); + t = put_num(t, l + 1u); + *t = 0; +} + +/* Stock's name editor is done with a setlist's name: kept with the next sync. */ +void as_list_named(int ok) +{ + struct as_state *s = ready(); + s->cue_down = 0; /* keys in stock's editor never reach the module */ + s->func_down = 0; + if (ok) s->lists_dirty = 1; +} +#ifdef AS_HOST +void host_name_edit(char *buffer); +static void name_edit(char *buffer) { host_name_edit(buffer); } +#else +static void name_edit(char *buffer) +{ + static const char title[] = "SETLIST NAME"; + ((void (*)(int, const char *, char *, int, void (*)(int)))NAME_EDIT)(15, title, buffer, 1, as_list_named); +} +#endif + +/* The Arranger menu's fourth item (CHAIN in stock): its YES opens the SETLSTS page (manifest.py's SymbolRef). */ +void as_setlists_open(void) +{ + struct as_state *s = ready(); + s->page = 1; + s->page_keys[0] = s->page_keys[1] = 0; + s->page_cur = 0; + s->page_top = 0; + if (s->lists_unread) { lists_ready(s); return; } /* drawn as READING until the card job has read them */ + /* The cursor on the song playing, or else on the arrangement chosen now, when the setlist holds it. */ + unsigned l = s->lists.open, n = s->lists.count[l]; + if (s->sl_active && s->sl_list == l && s->sl_cur < n) s->page_cur = s->sl_cur; + else for (unsigned i = 0; i < n; ++i) + if (s->lists.e[l][i].book == s->book && s->lists.e[l][i].slot == (rd8(INDEX) & 7u)) { s->page_cur = (uint8_t)i; break; } + s->page_seen = s->sl_active ? s->sl_cur : 0xff; + if (s->page_cur >= PAGE_ROWS) s->page_top = (uint8_t)(s->page_cur - PAGE_ROWS + 1u); +} + + +/* FUNC + REC on the page: the song under the cursor copied, or with CUE held the whole setlist shown. */ +static void page_copy(struct as_state *s, unsigned l, unsigned n) +{ + char *t = s->msg; + if (!n) return; + if (s->cue_down) { + for (unsigned i = 0; i < n; ++i) entry_copy(&s->clip[i], &s->lists.e[l][i]); + s->clip_n = (uint8_t)n; + t = put_text(t, "COPIED LIST "); t = put_num(t, l + 1u); + } else { + entry_copy(&s->clip[0], &s->lists.e[l][s->page_cur]); + s->clip_n = 1; + t = put_text(t, "COPIED SONG"); + } + *t = 0; + message(s->msg); +} + +/* FUNC + STOP on the page: what was copied, after the cursor (at the top of an empty setlist), as far as it fits. */ +static void page_paste(struct as_state *s, unsigned l, unsigned n) +{ + if (!s->clip_n) return; + unsigned at = n ? s->page_cur + 1u : 0u, room = LIST_LEN - n, k = s->clip_n < room ? s->clip_n : room; + for (unsigned i = n; i-- > at;) entry_copy(&s->lists.e[l][i + k], &s->lists.e[l][i]); /* make room */ + for (unsigned i = 0; i < k; ++i) entry_copy(&s->lists.e[l][at + i], &s->clip[i]); + s->lists.count[l] = (uint8_t)(n + k); + if (k) { s->lists_dirty = 1; s->page_cur = (uint8_t)(at + k - 1u); } + if (k < s->clip_n) { + char *t = put_text(s->msg, "LIST "); t = put_num(t, l + 1u); t = put_text(t, " IS FULL"); *t = 0; + message(s->msg); + } +} + +/* Keys while the SETLSTS page is open: all but the transport, FUNC and CUE are the page's. A release is the page's + * only when its press was: the YES that opened the page is released to stock, which otherwise keeps YES routed to the + * Arranger menu, and the next YES anywhere opened SETLSTS again (the developer's MKI, PROJECT > CHANGE, 24 November + * 2026). */ +static int page_key_(struct as_state *s, int code, int pressed); +static int page_key(struct as_state *s, int code, int pressed) +{ + uint32_t *w = &s->page_keys[(code >> 5) & 1], bit = 1u << (code & 31); + if (!pressed) { + if (!(*w & bit)) return 0; /* pressed before the page opened: stock's */ + *w &= ~bit; + return page_key_(s, code, 0); + } + int taken = page_key_(s, code, 1); + if (taken) *w |= bit; + return taken; +} +static int page_key_(struct as_state *s, int code, int pressed) +{ + if (code == K_FUNC) return 0; + if (code == K_STOP && !s->page_stop && !(pressed && s->func_down)) return 0; /* STOP stays stock's */ + if (code == K_STOP && !pressed) { s->page_stop = 0; return 1; } + if (code == K_PLAY && !s->page_play && !(pressed && s->func_down)) return 0; /* PLAY stays stock's */ + if (!pressed) { if (code == K_PLAY) s->page_play = 0; return 1; } + unsigned l = s->lists.open, n = s->lists.count[l]; + if (s->lists_unread && code != K_NO) return 1; /* still reading them */ + if (code < 16) { /* a trig key: that setlist, as banks are chosen */ + if (s->trig_alone && !s->cue_down && (unsigned)code != l) { + s->lists.open = (uint8_t)code; + s->lists_dirty = 1; + s->page_cur = 0; + s->page_top = 0; + } + return 1; + } + switch (code) { + case K_NO: s->page = 0; break; + case K_UP: if (s->page_cur) --s->page_cur; break; + case K_DOWN: if (s->page_cur + 1u < n) ++s->page_cur; break; + case K_LEFT: case K_RIGHT: { + int dir = code == K_RIGHT ? 1 : -1; + if (s->cue_down) s->page_cur = (uint8_t)sl_move(s, l, s->page_cur, dir); + else if ((int)l + dir >= 0 && (int)l + dir < (int)LISTS) { + s->lists.open = (uint8_t)((int)l + dir); + s->lists_dirty = 1; + s->page_cur = 0; + s->page_top = 0; + } + break; + } + case K_REC: if (s->func_down) page_copy(s, l, n); break; + case K_STOP: /* FUNC + STOP: paste */ + if (s->page_stop) break; + s->page_stop = 1; + page_paste(s, l, n); + break; + case K_PLAY: /* FUNC + PLAY: the song out of the setlist */ + if (s->page_play) break; + s->page_play = 1; + sl_remove(s, l, s->page_cur); + if (s->page_cur && s->page_cur >= s->lists.count[l]) --s->page_cur; + break; + case K_YES: + if (s->func_down) { /* FUNC + YES: its name, in stock's editor, */ + s->page = 0; /* where no key reaches the module: CUE or FUNC */ + s->cue_down = 0; /* released there would stay held (the developer's */ + s->func_down = 0; /* MKI, 24 November 2026: LEFT/RIGHT moved songs) */ + default_name(s, l); + name_edit(s->lists.name[l]); + break; + } + if (!n) break; /* YES: the setlist from this song */ + if (!stopped()) { message("STOP TO START"); break; } + if (s->sl_active) { s->sl_end = 1; s->sl_restart = (int8_t)s->page_cur; our_post(s); s->page = 0; break; } + { + s->sl_req = (int8_t)s->page_cur; + int rc = our_post(s); + if (rc < 0) { s->sl_req = -1; message(rc == -7 ? "NO PROJECT" : "CARD BUSY"); break; } + s->page = 0; + } + break; + default: break; + } + if (s->page_cur < s->page_top) s->page_top = s->page_cur; + if (s->page_cur >= s->page_top + PAGE_ROWS) s->page_top = (uint8_t)(s->page_cur - PAGE_ROWS + 1u); + return 1; +} + +/* YES in the playing-setlist window: the song under the cursor comes next, at once (into the free slot, chained); the + * setlist goes on in order after it. */ +static void peek_choose(struct as_state *s) +{ + unsigned next = s->sl_cur_slot == SL_A ? 1u : 0u, k = s->peek_cur; + if (next_song(s, k) < s->sl_n) k = next_song(s, k); /* an empty song chosen: the first after it with rows */ + if (k == s->sl_cur) return; /* the song playing is not its own next */ + s->peek_next = (uint8_t)k; + if (!s->sl_active || s->sl_end || k >= s->sl_n || s->song_at[next] == k) return; + put_song(s, next, k); + set_chain(next ? SL_B : SL_A); +} + int as_key(int code, int pressed) { struct as_state *s = ready(); if (code == K_FUNC) s->func_down = (uint8_t)!!pressed; + if (code >= 0 && code < 16) { /* the trig keys: which are held */ + /* Pressed together: a second trig within a few frames of the first does nothing. Not counted from the + * releases, which do not always reach the module (the developer's MKI, 29 November 2026: trigs took a book + * only now and then). */ + if (pressed) { s->trig_alone = (uint8_t)(s->trig_held >= 6u); s->trig_held = 0; } + } if (code == K_PATTERN && pressed && s->func_down) { s->mode_key = 1; s->mode_key_ticks = 0; } /* stock's again */ - if (code != K_LEFT && code != K_RIGHT) return 0; - if (!rd32(CHANGE_WINDOW)) return 0; /* only in ARR > CHANGE */ + if (code == K_CUE) { + s->cue_down = (uint8_t)!!pressed; + if (pressed) s->cue_main = rd32(KEYS + K_YES * 0x18u) == MAIN_YES; /* before stock's CUE layer routes YES */ + if (!pressed) s->peek = 0; /* released: the window closes */ + return 0; + } + if (s->peek) { /* the playing setlist shown */ + if (code == K_UP || code == K_DOWN) { /* the cursor only */ + if (pressed) { + if (code == K_UP && s->peek_cur) --s->peek_cur; + if (code == K_DOWN && s->peek_cur + 1u < s->sl_n) ++s->peek_cur; + } + return 1; + } + if (code == K_YES) { /* a further YES: the '>' to the cursor */ + if (pressed && !s->cue_yes) peek_choose(s); + if (!pressed) s->cue_yes = 0; /* the opening YES's release changes nothing */ + return 1; + } + } + /* CUE + YES on the main screen while a setlist plays (stock does nothing with it there). */ + if (code == K_YES && pressed && s->cue_down && s->sl_active && !s->sl_go && !s->sl_end && !s->page && s->cue_main) { + unsigned next = s->sl_cur_slot == SL_A ? 1u : 0u; + s->peek = 1; + s->cue_yes = 1; /* this YES opens; its release is ours too */ + s->peek_cur = s->sl_cur; + s->peek_next = s->song_at[next] < s->sl_n ? s->song_at[next] : 0xff; + return 1; + } + if (!s->page && !pressed && (s->page_keys[(code >> 5) & 1] & (1u << (code & 31)))) { /* the page closed */ + s->page_keys[(code >> 5) & 1] &= ~(1u << (code & 31)); /* by this key's press: its release is the page's */ + return 1; + } + if (s->page) return page_key(s, code, pressed); + if (code == K_YES && (s->cue_yes || (s->cue_down && rd32(CHANGE_WINDOW)))) { + if (!pressed) { s->cue_yes = 0; return 1; } /* its release is ours too */ + if (s->cue_yes || s->pending >= 0) return 1; /* a repeat, or a switch under way */ + s->cue_yes = 1; + if (lists_ready(s)) add_to_list(s); + return 1; + } + int trig = code < 16 && !s->func_down; + if (code != K_LEFT && code != K_RIGHT && !trig) return 0; + if (!rd32(CHANGE_WINDOW)) return 0; /* only in ARR > BOOKS */ if (!pressed) return 1; /* its release is ours too */ + if (trig && (!s->trig_alone || s->cue_down || (unsigned)code == s->book)) return 1; /* held with another, or this book */ if (s->pending >= 0) return 1; /* a switch is under way */ + if (s->cue_down) { move_arr(s, code == K_RIGHT ? 1 : -1); return 1; } if (!stopped()) { message("STOP TO CHANGE BOOK"); return 1; } - int to = (int)s->book + (code == K_RIGHT ? 1 : -1); + int to = trig ? code : (int)s->book + (code == K_RIGHT ? 1 : -1); if (to < 0 || to >= (int)BOOKS) return 1; s->pending = (int8_t)to; s->failed = 0; - int rc = post_write(); /* stock: -7 no project, else busy or a save pending */ + int rc = our_post(s); /* stock: -7 no project, else busy or a save pending */ if (rc < 0) { s->pending = -1; message(rc == -7 ? "NO PROJECT" : "CARD BUSY"); } return 1; } @@ -675,6 +1740,8 @@ struct as_api { volatile uint32_t value; }; * book a switch is loading (+1; 0 none), 9 failed, 10 backup of book 1 kept. */ void as_tick(void *api) { + if (st_at->magic == MAGIC && st_at->trig_held < 0xffffu) ++st_at->trig_held; /* frames since the last trig */ + if (st_at->magic == MAGIC) count_follow(st_at); struct as_state *s = ready(); if (api) ((struct as_api *)api)->value = (uint32_t)s->book /* the book, then the last seven events, newest lowest */ | (evlog & 0x0fffffffu) << 4; @@ -683,7 +1750,10 @@ void as_tick(void *api) /* The book's own last choice, as YES in the list makes it. Stock refuses it while a change of its own is * pending (0x800066a0; right after a RELOAD in arranger mode, on the developer's MKI): again next frame, for up * to two seconds, so the main screen does not keep the old book's name. */ - int r = select_arr(s->last[s->book]); + /* A project going back into a setlist: its first song is chosen when the setlist starts, so the book's own + * choice is not made first (the developer's MKI, 24 November 2026: the pattern changed several times while + * the project came back). */ + int r = s->reapply && (s->resume >= 0 || s->sl_go || s->sl_active) ? 0 : select_arr(s->last[s->book]); /* Returning after a LOAD of another project, the arranger's run state can stay set with nothing playing (the * developer's MKI, 24 November 2026: the book came back on arrangement 1, every choice refused): once half a * second of refusals has passed, stopped, the arranger is reset as stock resets it for each new project, and @@ -704,9 +1774,9 @@ void as_tick(void *api) s->reapply = 0; /* The list's cursor on it, open or not: stock keeps the cursor while the list is closed, and after a LOAD * it would open on the last project's row (the developer's MKI, 24 November 2026). */ - if (rd32(LIST_TOP) == 0) { /* the row drawn and the one YES takes (the cursor */ - wr32(LIST_CURSOR, s->last[s->book]); /* alone left YES on another arrangement: the developer's */ - wr32(LIST_CHOICE, s->last[s->book]); /* MKI, 24 November 2026) */ + if (rd32(LIST_TOP) == 0) { /* the row drawn and the one YES and CUE + YES take */ + wr32(LIST_CURSOR, s->last[s->book]); + wr32(LIST_CHOICE, s->last[s->book]); /* (the cursor alone added arrangement 1: the developer's MKI) */ } if (rd32(CHANGE_WINDOW)) draw_change(); } @@ -718,22 +1788,38 @@ void as_tick(void *api) else if (stopped()) { s->pending = s->restore; s->reapply = 1; - int rc = post_write(); + /* A project left in a setlist: the same job starts it again, after the switch (one card job, not a second + * one once the book is back: the developer's MKI, 24 November 2026). */ + int8_t resume = s->resume; + return_setlist(s); + int rc = our_post(s); s->restore_rc = (int8_t)rc; ev(rc >= 0 ? 7u : 8u); if (rc >= 0) { s->restore = -1; s->reloaded_slots = 0; } else { s->pending = -1; + if (s->resume != resume) { s->resume = resume; s->sl_req = -1; } s->reapply = 0; /* stock still busy (a reload reads its samples): again */ if (rc == -7 || ++s->restore_ticks > 18000) s->restore = -1; /* no project, or busy for 5 minutes */ } } } + /* Left in a setlist on book 1: no switch to make, only the setlist to start again (a return waited for a book + * switch, so book 1's setlists never came back after a power cycle). */ + if (s->restore < 0 && s->resume >= 0 && s->reloaded_slots && s->since_hook >= 30 && s->pending < 0 + && !s->load_read && !s->sl_active && s->sl_req < 0 && stopped()) { + int8_t resume = s->resume; + if (return_setlist(s)) { + int rc = our_post(s); + if (rc >= 0) s->reloaded_slots = 0; + else { s->sl_req = -1; s->resume = rc == -7 ? -1 : resume; } + } + } /* The borrowed SYNC job ends with stock's NOW SAFE TO EJECT!: a switch of ours closes it as it opens (about a * second; any other message stays). */ if (s->hush && s->pending < 0) { if (rd32(MESSAGE_UP)) { close_message(); s->hush = 0; } - else if (++s->hush > 90) s->hush = 0; + else if (++s->hush > 250) s->hush = 0; /* stock's own part of the job can take a few seconds */ } /* Arranger mode as the musician leaves it. Stock's LOAD switches it off and saves that before it loads; only a * FUNC + PATTERN of the musician's own records it as off. */ @@ -751,31 +1837,172 @@ void as_tick(void *api) if (s->mode_pref && !rd32(ARR_MODE)) arr_mode_on(); } } + /* A setlist: its first song chosen and the next chained, once loaded; then each time stock has taken the chain + * (it moved to the other slot past the last row, and CHAIN went back to -1), the finished song's edits kept and + * the song after next put into the freed slot and chained. Opening ARR > CHANGE, stopped, ends it. */ + /* Stock refuses the choice while the arranger's run state is set: after a LOAD it can stay set with nothing + * playing, as can a STOP's hold. A setlist starts its first song from its first row, so after half a second of + * refusals, stopped, the arranger is reset as stock resets it for a new project (the chain is set just below). */ + int go = 0; + if (s->sl_go && s->pending < 0) { + /* Stopped, the song starts at its first row: after a power cycle the arranger kept the last position, and the + * list showed only END OF ARR (the developer's MKI, 26 November 2026). */ + if (!s->go_tries && stopped()) arr_reset(); + go = select_arr(SL_A) >= 0; + if (!go && ++s->go_tries >= 30 && stopped() && rd32(ARR_STATE)) { + ev(0xbu); + arr_reset(); + go = select_arr(SL_A) >= 0; + } + if (go || s->go_tries >= 30) s->go_tries = 0; + } + if (go) { + s->sl_go = 0; + if (s->song_at[1] != 0xff) set_chain(SL_B); + if (!rd32(ARR_MODE)) arr_mode_on(); + } + if (s->sl_active && !s->sl_go && !s->sl_end) { + unsigned next = s->sl_cur_slot == SL_A ? 1u : 0u, next_slot = next ? SL_B : SL_A; + /* Stock moved to the next song (its index is the next slot): the finished one's edits kept, the song after + * it (or the end) into the freed slot. Decided from the index alone, before the chain is set again below. */ + if ((rd8(INDEX) & 7u) == next_slot && s->song_at[next] < s->sl_n) { + unsigned done = next ^ 1u; + take_back(s, done); + s->sl_cur = s->song_at[next]; /* the next one, or the one chosen with CUE + YES */ + slots_foreign(1, s->sl_cur); /* a power cycle comes back to it */ + s->sl_cur_slot = (uint8_t)next_slot; + unsigned k = next_song(s, s->sl_cur + 1u); + if (k < s->sl_n) put_song(s, done, k); else s->song_at[done] = 0xff; + next = done; + next_slot = done ? SL_B : SL_A; + /* The window open over it follows: the '>' on the new next song. */ + if (s->peek) s->peek_next = s->song_at[next] < s->sl_n ? s->song_at[next] : 0xff; + } + /* The chain to the next slot, every frame: song 2 played with its chain gone on the developer's MKI (23 + * November 2026), and a chain cleared while a song plays would loop it instead of going on. */ + /* The last song has no chain: it ends as stock ends any arrangement, on its END OF ARR row. */ + if (s->song_at[next] == 0xff) { if (rd32(CHAIN) != 0xffffffffu) { wr32(CHAIN, 0xffffffffu); post_event(); } } + else if (rd32(CHAIN) != next_slot) set_chain(next_slot); + if (rd32(CHANGE_WINDOW) && stopped() && s->pending < 0) { + s->sl_end = 1; + if (our_post(s) < 0) s->sl_end = 0; /* busy: again next frame */ + } + } if (s->load_read && !s->loading && !s->load_posted && s->since_hook > 60 && s->pending < 0 && stopped() - && post_write() >= 0) s->load_posted = 1; /* the new project's arrbook.work, read by the card task */ + && our_post(s) >= 0) s->load_posted = 1; /* the new project's files, read by the card task */ + if (!s->sl_active && slots_are_foreign() && s->resume < 0 && s->sl_req < 0 && s->pending < 0 && !s->reread_posted + && !s->loading && s->since_hook > 240 && stopped() && our_post(s) >= 0) s->reread_posted = 1; /* the book back into slots 7 and 8 (a resume's job + * does it first anyway) */ + /* A project left in a setlist: once its load is over (the book back, arranger mode restored, quiet), that setlist + * again from the song it was on, stopped, as YES on the SETLSTS page starts it. */ + if (s->resume >= 0 && !s->loading && s->since_hook > 240 && s->restore < 0 && s->pending < 0 && !s->redraw + && !s->mode_on && !s->sl_active && !s->lists_unread && stopped()) { + unsigned l = (unsigned)s->resume; + if (!s->lists.count[l] || s->resume_cur >= s->lists.count[l]) s->resume = -1; /* changed since: not again */ + else { + s->lists.open = (uint8_t)l; + s->sl_req = (int8_t)s->resume_cur; + if (our_post(s) >= 0) s->resume = -1; + else s->sl_req = -1; /* stock still busy: again next frame */ + } + } + title_follow(s); if (s->failed) { s->failed = 0; message("BOOK FILE ERROR"); } if (s->book && s->pending < 0 && ++s->ticks >= 120) { s->ticks = 0; remember(s); } } /* ---------------------------------------------------------------- the screen */ -/* 3x5 glyphs, row-major, 15 bits each (top row in bits 14-12): the module's own. 0-9, then B, O, K. */ -static const uint16_t GLYPH[13] = { +/* The SETLSTS item's icon (the module's own, drawn as stock draws a menu icon, 0x400128a8): a sheet of three list + * lines; selected, the second line highlighted. Left normal, right selected: + * ........................... ........................... + * ....###################.... ....###################.... + * ....#.................#.... ....#.................#.... + * ....#.##..#########...#.... ....#.##..#########...#.... + * ....#.................#.... ....#.................#.... + * ....#.................#.... ....###################.... + * ....#.##..#########...#.... ....##..##.........####.... + * ....#.................#.... ....###################.... + * ....#.................#.... ....#.................#.... + * ....#.##..#########...#.... ....#.##..#########...#.... + * ....#.................#.... ....#.................#.... + * ....###################.... ....###################.... + * ........................... ........................... + * Each picture is 27 columns of one word, the top row in bit 31; its mask covers the 13 rows. */ +static const uint32_t ICON_NORMAL[27] = { + 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x7ff00000u, 0x40100000u, + 0x52500000u, 0x52500000u, 0x40100000u, 0x40100000u, 0x52500000u, 0x52500000u, + 0x52500000u, 0x52500000u, 0x52500000u, 0x52500000u, 0x52500000u, 0x52500000u, + 0x52500000u, 0x40100000u, 0x40100000u, 0x40100000u, 0x7ff00000u, 0x00000000u, + 0x00000000u, 0x00000000u, 0x00000000u, +}; +static const uint32_t ICON_SELECTED[27] = { + 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x7ff00000u, 0x47100000u, + 0x55500000u, 0x55500000u, 0x47100000u, 0x47100000u, 0x55500000u, 0x55500000u, + 0x55500000u, 0x55500000u, 0x55500000u, 0x55500000u, 0x55500000u, 0x55500000u, + 0x55500000u, 0x47100000u, 0x47100000u, 0x47100000u, 0x7ff00000u, 0x00000000u, + 0x00000000u, 0x00000000u, 0x00000000u, +}; +static const uint32_t ICON_MASK[27] = { + 0xfff80000u, 0xfff80000u, 0xfff80000u, 0xfff80000u, 0xfff80000u, 0xfff80000u, 0xfff80000u, 0xfff80000u, 0xfff80000u, + 0xfff80000u, 0xfff80000u, 0xfff80000u, 0xfff80000u, 0xfff80000u, 0xfff80000u, 0xfff80000u, 0xfff80000u, 0xfff80000u, + 0xfff80000u, 0xfff80000u, 0xfff80000u, 0xfff80000u, 0xfff80000u, 0xfff80000u, 0xfff80000u, 0xfff80000u, 0xfff80000u, +}; +/* As stock's entries hold it (0x400be5c2): width, height, 1, picture, mask; then the same for the selected one. The + * menu entry's icon pointer is this (manifest.py's SymbolRef). */ +struct icon_pic { uint32_t width, height, depth; const uint32_t *image, *mask; }; /* 20 bytes on the ColdFire */ +const struct icon_pic as_setlists_icon[2] = { + {27, 13, 1, ICON_NORMAL, ICON_MASK}, + {27, 13, 1, ICON_SELECTED, ICON_MASK}, +}; + +/* 3x5 glyphs, row-major, 15 bits each (top row in bits 14-12): the module's own. 0-9, then B, O, K, L, I, S, T. */ +static const uint16_t GLYPH[17] = { 0x7b6f, 0x2c97, 0x73e7, 0x72cf, 0x5bc9, 0x79cf, 0x79ef, 0x7292, 0x7bef, 0x7bcf, 0x6bae, 0x2b6a, 0x5bad, + 0x4927, 0x7497, 0x388e, 0x7492, }; #define G_B 10 #define G_O 11 #define G_K 12 +#define G_L 13 +#define G_I 14 +#define G_S 15 +#define G_T 16 #ifdef AS_HOST void host_set(unsigned char *frame, int x, int y, int on); +int host_pixel(const unsigned char *frame, int x, int y); +void host_text(unsigned char *frame, int x, int top, const char *t); static void put(unsigned char *frame, int x, int y, int on) { host_set(frame, x, y, on); } +static int get(const unsigned char *frame, int x, int y) { return host_pixel(frame, x, y); } +static void text(unsigned char *frame, int x, int top, const char *t) { host_text(frame, x, top, t); } #else static void put(unsigned char *frame, int x, int y, int on) { unsigned char *b = frame + x * 8 + 7 - (y >> 3), m = (unsigned char)(1u << (y & 7)); if (on) *b |= m; else *b &= (unsigned char)~m; } +static int get(const unsigned char *frame, int x, int y) { return frame[x * 8 + 7 - (y >> 3)] >> (y & 7) & 1; } +/* Text in stock's own list font (0x400ba876), top row at `top`, by stock's text routine on a copy of its drawing + * surface aimed at this frame (as pattern-sample-locks' native.c draws). */ +static void text(unsigned char *frame, int x, int top, const char *t) +{ + uint32_t surface[7]; + for (unsigned i = 0; i < 7u; ++i) surface[i] = rd32(0x400bf10au + 4u * i); + surface[3] = (uint32_t)(uintptr_t)frame; + ((void (*)(uint32_t, void *, int, int, int, const char *))0x40012bd8u)(0x400ba876u, surface, x, 59 - top, -1, t); +} #endif +/* The playing song's mark: a filled triangle pointing right, 3 wide and 5 high, its top-left at x, top. */ +static void playing_mark(unsigned char *frame, int x, int top) +{ + for (int r = 0; r < 5; ++r) put(frame, x, top + r, 1); + for (int r = 1; r < 4; ++r) put(frame, x + 1, top + r, 1); + put(frame, x + 2, top + 2, 1); +} +static void invert(unsigned char *frame, int x0, int y0, int x1, int y1) +{ + for (int y = y0; y <= y1; ++y) for (int x = x0; x <= x1; ++x) put(frame, x, y, !get(frame, x, y)); +} static void glyph(unsigned char *frame, int x, int y, unsigned g) { @@ -783,17 +2010,171 @@ static void glyph(unsigned char *frame, int x, int y, unsigned g) for (int r = 0; r < 5; ++r) for (int k = 0; k < 3; ++k) if (bits & (1u << (14 - r * 3 - k))) put(frame, x + k, y + r, 0); } -/* In ARR > CHANGE: "BOOK 12" knocked out of a solid box at the screen's top right, over whatever stock drew there. */ +/* A four-letter word and a number (1-16) knocked out of a solid box at the screen's right edge, rows top to top + 8. */ +static void label(unsigned char *frame, int top, const uint8_t word[4], unsigned n) +{ + int digits = n >= 10 ? 2 : 1; + int dx = 124 - 4 * (digits - 1), bx = dx - 19; /* right-aligned: the word, a space, the number */ + for (int y = top; y < top + 9; ++y) for (int x = bx - 2; x < 128; ++x) put(frame, x, y, 1); + for (int i = 0; i < 4; ++i) glyph(frame, bx + 4 * i, top + 2, word[i]); + if (digits == 2) glyph(frame, dx, top + 2, n / 10); + glyph(frame, 124, top + 2, n % 10); +} + +/* In ARR > CHANGE, over whatever stock drew there: "BOOK 12" at the top right, and "LIST 3" (the setlist CUE + YES + * adds to) at the bottom right. */ +/* The SETLSTS page, in a window where stock's lists open: "SETLIST 3" and its song count on an inverted title row, + * then seven songs as "book.arrangement name" ("2.5 SONG CHARLIE"), the cursor's row inverted. */ +static void title_row(const struct as_state *s, unsigned char *frame, unsigned l, const char *right) +{ + unsigned r = 0; + while (right[r]) ++r; + char line[24], name[24], *t = put_num(line, l + 1u); + *t++ = ':'; + unsigned k = (unsigned)(list_title(s, name, l) - name); + unsigned room = 19u - r - 1u - (unsigned)(t - line); /* 19 characters, a space before the count */ + if (k > room) k = room; + for (unsigned i = 0; i < k; ++i) *t++ = name[i]; + *t = 0; + text(frame, 25, 4, line); + text(frame, 101 - 4 * (int)r, 4, right); + invert(frame, 24, 3, 101, 9); +} + +static void draw_page(struct as_state *s, unsigned char *frame) +{ + for (int y = 2; y <= 62; ++y) for (int x = 23; x <= 103; ++x) put(frame, x, y, 0); + for (int y = 2; y <= 61; ++y) { put(frame, 23, y, 1); put(frame, 102, y, 1); put(frame, 103, y + 1, 1); } + for (int x = 23; x <= 102; ++x) { put(frame, x, 2, 1); put(frame, x, 61, 1); put(frame, x + 1, 62, 1); } + if (s->lists_unread) { text(frame, 25, 4, "SETLISTS"); invert(frame, 24, 3, 101, 9); text(frame, 25, 12, "READING..."); return; } + unsigned l = s->lists.open, n = s->lists.count[l]; + char line[24], *t = put_num(line, n); + t = put_text(t, "/16"); *t = 0; + title_row(s, frame, l, line); + if (!n) { text(frame, 25, 12, "EMPTY"); return; } + /* The setlist moved to another song (a restart from this page lands a job later): the cursor goes with it, or it + * stayed on the old song (the developer's MKI, 25 November 2026). */ + if (s->sl_active && s->sl_list == l && s->sl_cur != s->page_seen && s->sl_cur < n) { + s->page_cur = s->sl_cur; + if (s->page_cur < s->page_top) s->page_top = s->page_cur; + if (s->page_cur >= s->page_top + PAGE_ROWS) s->page_top = (uint8_t)(s->page_cur - PAGE_ROWS + 1u); + } + s->page_seen = s->sl_active ? s->sl_cur : 0xff; + for (unsigned r = 0; r < PAGE_ROWS && s->page_top + r < n; ++r) { + const struct sl_entry *e = &s->lists.e[l][s->page_top + r]; + t = put_num(line, e->book + 1u); *t++ = '.'; t = put_num(t, e->slot + 1u); *t++ = ' '; + for (unsigned k = 0; k < 12u && e->name[k]; ++k) *t++ = e->name[k]; + *t = 0; + int top = 12 + 7 * (int)r; + text(frame, 29, top, line); /* x 25-27: the playing song's mark */ + if (s->sl_active && s->sl_list == l && s->page_top + r == s->sl_cur) playing_mark(frame, 25, top); + if (s->page_top + r == s->page_cur) invert(frame, 24, top - 1, 101, top + 5); + } +} + +/* The playing setlist over the main screen while CUE is held: the cursor's row inverted, the song playing marked '*', + * the one to come next '>'. Seven rows, kept so the cursor is in view. */ +static void draw_peek(struct as_state *s, unsigned char *frame) +{ + for (int y = 2; y <= 62; ++y) for (int x = 23; x <= 103; ++x) put(frame, x, y, 0); + for (int y = 2; y <= 61; ++y) { put(frame, 23, y, 1); put(frame, 102, y, 1); put(frame, 103, y + 1, 1); } + for (int x = 23; x <= 102; ++x) { put(frame, x, 2, 1); put(frame, x, 61, 1); put(frame, x + 1, 62, 1); } + unsigned n = s->sl_n, cur = s->sl_cur, nx = s->peek_next, cs = s->peek_cur; + char line[24], *t = put_num(line, cur + 1u); + *t++ = '/'; t = put_num(t, n); *t = 0; + title_row(s, frame, s->sl_list, line); + unsigned top = cs >= PAGE_ROWS ? cs - PAGE_ROWS + 1u : 0; + for (unsigned r = 0; r < PAGE_ROWS && top + r < n; ++r) { + unsigned k = top + r; + const struct sl_entry *e = &s->sl_e[k]; + t = line; + *t++ = k == nx ? '>' : ' '; + t = put_num(t, e->book + 1u); *t++ = '.'; t = put_num(t, e->slot + 1u); *t++ = ' '; + for (unsigned i = 0; i < 12u && e->name[i]; ++i) *t++ = e->name[i]; + *t = 0; + int y = 12 + 7 * (int)r; + text(frame, 25, y, line); + if (k == cur && k != nx) playing_mark(frame, 25, y); /* the song playing */ + if (k == cs) invert(frame, 24, y - 1, 101, y + 5); + } +} + +/* While a setlist plays, the main screen's left column shows it instead of the Part and the pattern (no arrangement row is + * covered): the Part box (x 11-40, white on black) its name over two lines of 7 (broken at a space where it can; "LIST n" + * without one), and the pattern line under it (x 10-41) the setlist sign (a vertical line and three rules) and the + * song's place ("2/6"). */ +static void draw_mark(struct as_state *s, unsigned char *frame, unsigned list, unsigned cur, unsigned count) +{ + char a[8], b[8], nm[24], *t; + const char *n = nm; + unsigned k = (unsigned)(list_title(s, nm, list) - nm); /* its name, or SETLIST 1 and so on */ + a[0] = b[0] = 0; + { + unsigned cut = k <= 7u ? k : 7u; + if (k > 7u) for (unsigned i = 7u; i > 0; --i) /* at a space, when the rest then fits the second line */ + if (n[i] == ' ') { if (k - i - 1u <= 7u) cut = i; break; } + unsigned i = 0; + for (; i < cut; ++i) a[i] = n[i]; + a[i] = 0; + unsigned from = cut; + while (from < k && n[from] == ' ') ++from; + for (i = 0; i < 7u && from + i < k; ++i) b[i] = n[from + i]; + b[i] = 0; + } + for (int y = 33; y <= 46; ++y) for (int x = 11; x <= 40; ++x) put(frame, x, y, 0); + text(frame, 12, 34, a); + if (b[0]) text(frame, 12, 41, b); + invert(frame, 11, 33, 40, 46); + char line[8]; + t = put_num(line, cur + 1u); + *t++ = '/'; + t = put_num(t, count); + *t = 0; + for (int y = 48; y <= 56; ++y) for (int x = 10; x <= 41; ++x) put(frame, x, y, 0); + for (int y = 50; y <= 54; ++y) put(frame, 12, y, 1); /* the sign's vertical line */ + for (int r = 0; r < 5; r += 2) for (int x = 14; x <= 16; ++x) put(frame, x, 50 + r, 1); /* and its rules */ + text(frame, 42 - 4 * (int)(t - line), 50, line); +} + +/* The trig LEDs as banks show them: in ARR > BOOKS the book in use, on the SETLSTS page the setlist open, lit. Stock's + * LED bitmap (0x460ba98c, one bit an id; trig n's "current" LED is id 2n: led_on 0x400131a0) gets ids 0-31 redrawn + * by stock's running-light pass each frame, so they are set again here, after it. */ +#define LED_BITS 0x460ba98cu +static uint8_t leds_shown, leds_kept[4]; /* stock's trig LEDs as they were before the module lit its own */ +static void trig_leds(unsigned n) +{ + if (!leds_shown) for (unsigned b = 0; b < 4; ++b) leds_kept[b] = (uint8_t)rd8(LED_BITS + b); + leds_shown = 1; + for (unsigned b = 0; b < 4; ++b) wr8(LED_BITS + b, 0); + unsigned id = 2u * n; + wr8(LED_BITS + (id >> 3), (uint8_t)(1u << (id & 7u))); +} + void as_draw(unsigned char *frame) { struct as_state *s = ready(); + if (s->page && !s->lists_unread) trig_leds(s->lists.open); + else if (!s->page && !s->peek && rd32(CHANGE_WINDOW)) trig_leds(s->book); + else if (leds_shown) { /* closed (NO left one lit: the developer's MKI) */ + leds_shown = 0; + for (unsigned b = 0; b < 4; ++b) wr8(LED_BITS + b, leds_kept[b]); + } + if (s->peek) { draw_peek(s, frame); return; } + /* Not over a stock message (NO's DISARM ALL), and only in arranger mode (it stayed in pattern mode): the developer's + * MKI, 25 November 2026. */ + if (!s->page && !rd32(CHANGE_WINDOW) && rd32(KEYS + K_YES * 0x18u) == MAIN_YES && !rd32(MESSAGE_UP) && rd32(ARR_MODE)) { + if (s->sl_active && !s->sl_go) draw_mark(s, frame, s->sl_list, s->sl_cur, s->sl_n); + /* A project going back into a setlist after a load: shown from the start, not the book first and then the + * setlist (the developer's MKI, 24 November 2026). */ + else if (!s->sl_active && s->resume >= 0 && !s->lists_unread && s->resume_cur < s->lists.count[s->resume]) + draw_mark(s, frame, (unsigned)s->resume, s->resume_cur, s->lists.count[s->resume]); + else if (!s->sl_active && s->sl_req >= 0 && (unsigned)s->sl_req < s->lists.count[s->lists.open]) /* posted */ + draw_mark(s, frame, s->lists.open, (unsigned)s->sl_req, s->lists.count[s->lists.open]); + else if (s->sl_go) draw_mark(s, frame, s->sl_list, s->sl_cur, s->sl_n); + } + if (s->page) { draw_page(s, frame); return; } if (!rd32(CHANGE_WINDOW)) return; - unsigned n = s->book + 1u; - int digits = n >= 10 ? 2 : 1; - int dx = 124 - 4 * (digits - 1), bx = dx - 19; /* right-aligned: BOOK, a space, the number */ - for (int y = 0; y < 9; ++y) for (int x = bx - 2; x < 128; ++x) put(frame, x, y, 1); - static const uint8_t word[4] = {G_B, G_O, G_O, G_K}; - for (int i = 0; i < 4; ++i) glyph(frame, bx + 4 * i, 2, word[i]); - if (digits == 2) glyph(frame, dx, 2, n / 10); - glyph(frame, 124, 2, n % 10); + static const uint8_t book[4] = {G_B, G_O, G_O, G_K}, list[4] = {G_L, G_I, G_S, G_T}; + label(frame, 0, book, s->book + 1u); + label(frame, 55, list, s->lists.open + 1u); } diff --git a/sdk/octatrack/modules/songbook/songbook_core.s b/sdk/octatrack/modules/songbook/songbook_core.s index 5c6173f3a9..9e6fccff2d 100644 --- a/sdk/octatrack/modules/songbook/songbook_core.s +++ b/sdk/octatrack/modules/songbook/songbook_core.s @@ -25,22 +25,114 @@ as_stock_writer: #NO_APP .text .align 2 + .type put_data, @function +put_data: + subq.l #4,%sp + move.l %d2,-(%sp) + move.l 12(%sp),%d0 + move.l %d0,%d1 + pea 4096.w + add.l #96602,%d1 + move.l %d1,-(%sp) + pea .LC0 + move.l %d0,%d2 + add.l #96058,%d0 + move.l %d0,-(%sp) + add.l #96578,%d2 + move.l %d2,-(%sp) + jsr 1073834084 + lea (20,%sp),%sp + tst.l %d0 + jlt .L4 + move.l 20(%sp),-(%sp) + move.l 20(%sp),-(%sp) + move.l %d2,-(%sp) + jsr 1073833656 + move.l %d0,16(%sp) + move.l %d2,-(%sp) + jsr 1073833852 + lea (16,%sp),%sp + tst.l %d0 + jlt .L4 + mov3q.l #1,%d1 + cmp.l 4(%sp),%d1 + seq %d0 + move.l (%sp)+,%d2 + mvs.b %d0,%d0 + neg.l %d0 + addq.l #4,%sp + rts +.L4: + move.l (%sp)+,%d2 + clr.l %d0 + addq.l #4,%sp + rts + .size put_data, .-put_data + .section .rodata.str1.1 +.LC1: + .string "r" + .text + .align 2 + .type get_data, @function +get_data: + move.l %d2,-(%sp) + move.l 8(%sp),%d0 + move.l %d0,%d1 + pea 4096.w + add.l #96602,%d1 + move.l %d1,-(%sp) + pea .LC1 + move.l %d0,%d2 + add.l #96058,%d0 + move.l %d0,-(%sp) + add.l #96578,%d2 + move.l %d2,-(%sp) + jsr 1073834084 + lea (20,%sp),%sp + tst.l %d0 + jlt .L9 + move.l 16(%sp),-(%sp) + move.l 16(%sp),-(%sp) + move.l %d2,-(%sp) + jsr 1073833316 + lea (12,%sp),%sp + move.l %d2,-(%sp) + mov3q.l #1,%d1 + cmp.l %d0,%d1 + seq %d0 + mvs.b %d0,%d2 + jsr 1073833852 + addq.l #4,%sp + neg.l %d2 + move.l %d2,%d0 + move.l (%sp)+,%d2 + rts +.L9: + clr.l %d2 + move.l %d2,%d0 + move.l (%sp)+,%d2 + rts + .size get_data, .-get_data + .align 2 .type arr_write, @function arr_write: subq.l #4,%sp move.l %d2,-(%sp) - move.l 12(%sp),%a0 - move.l %a0,%d2 + move.l 12(%sp),%d0 + move.l %d0,%d1 pea 4096.w - add.l #604,%d2 - pea 628(%a0) + add.l #96602,%d1 + move.l %d1,-(%sp) pea .LC0 - pea 84(%a0) + move.l %d0,%d2 + add.l #96058,%d0 + move.l %d0,-(%sp) + add.l #96578,%d2 move.l %d2,-(%sp) jsr 1073834084 lea (20,%sp),%sp tst.l %d0 - jlt .L3 + jlt .L14 move.l 16(%sp),-(%sp) move.l %d2,-(%sp) jsr 1074304580 @@ -56,7 +148,7 @@ arr_write: neg.l %d0 addq.l #4,%sp rts -.L3: +.L14: move.l (%sp)+,%d2 clr.l %d0 addq.l #4,%sp @@ -75,21 +167,21 @@ arr_path: addq.l #8,%sp move.l %d0,%a0 move.b (%a0),%d0 - jeq .L7 + jeq .L18 move.l %a0,%d1 add.l #240,%d1 -.L9: +.L20: move.b %d0,(%a2)+ addq.l #1,%a0 move.b (%a0),%d0 - jeq .L7 + jeq .L18 cmp.l %d1,%a0 - jne .L9 -.L7: + jne .L20 +.L18: move.l #794915442,(%a2) moveq #99,%d0 cmp.l 20(%sp),%d0 - jcs .L10 + jcs .L21 move.l 20(%sp),%d0 moveq #10,%d1 lea (4,%a2),%a1 @@ -107,18 +199,18 @@ arr_path: move.b %d0,1(%a1) move.b %d1,(%a1) move.b (%a3),%d0 - jeq .L12 -.L13: + jeq .L23 +.L24: move.b %d0,(%a0)+ addq.l #1,%a3 move.b (%a3),%d0 - jne .L13 -.L12: + jne .L24 +.L23: clr.b (%a0) movem.l (%sp),#3076 lea (12,%sp),%sp rts -.L10: +.L21: move.l 20(%sp),%d0 moveq #100,%d2 lea (5,%a2),%a1 @@ -141,66 +233,180 @@ arr_path: move.b %d0,1(%a1) move.b %d1,(%a1) move.b (%a3),%d0 - jne .L13 - jra .L12 + jne .L24 + jra .L23 .size arr_path, .-arr_path - .section .rodata.str1.1 -.LC1: - .string "/arrbook." - .text .align 2 - .type place_path, @function -place_path: - move.l %a3,-(%sp) - move.l %a2,-(%sp) + .type project_file, @function +project_file: + lea (-12,%sp),%sp + movem.l #7168,(%sp) clr.l -(%sp) clr.l -(%sp) - move.l 20(%sp),%a2 - move.l 24(%sp),%a3 + move.l 24(%sp),%a2 + move.l 28(%sp),%a4 + move.l 32(%sp),%a3 jsr 1073893936 addq.l #8,%sp move.l %d0,%a0 move.b (%a0),%d0 - jeq .L28 + jeq .L39 move.l %a0,%d1 add.l #240,%d1 -.L30: +.L41: move.b %d0,(%a2)+ addq.l #1,%a0 move.b (%a0),%d0 - jeq .L28 - cmp.l %a0,%d1 - jne .L30 -.L28: - moveq #47,%d0 - move.l %a2,%a1 - lea .LC1,%a0 -.L31: - move.b %d0,(%a1)+ - addq.l #1,%a0 - move.b (%a0),%d0 - cmp.l #.LC1+9,%a0 - jne .L31 + jeq .L39 + cmp.l %d1,%a0 + jne .L41 +.L39: + move.b #47,(%a2)+ + move.b (%a4),%d0 + jeq .L42 +.L43: + move.b %d0,(%a2)+ + addq.l #1,%a4 + move.b (%a4),%d0 + jne .L43 +.L42: + move.b #46,(%a2)+ move.b (%a3),%d0 - lea (9,%a2),%a2 - tst.b %d0 - jeq .L32 -.L33: + jeq .L44 +.L45: move.b %d0,(%a2)+ addq.l #1,%a3 move.b (%a3),%d0 - jne .L33 -.L32: + jne .L45 +.L44: clr.b (%a2) - move.l (%sp)+,%a2 - move.l (%sp)+,%a3 + movem.l (%sp),#7168 + lea (12,%sp),%sp rts - .size place_path, .-place_path + .size project_file, .-project_file .section .rodata.str1.1 .LC2: - .string "r" + .string "work" +.LC3: + .string "arrbook" + .text + .align 2 + .type write_place, @function +write_place: + move.l %a2,-(%sp) + move.l #1095975504,%d0 + move.l 8(%sp),%a2 + move.l %a2,%d1 + add.l #38,%d1 + move.l %d0,59(%a2) + move.b 8(%a2),63(%a2) + lea (22,%a2),%a0 +.L64: + move.b (%a0)+,%d0 + move.b %d0,41(%a0) + cmp.l %a0,%d1 + jne .L64 + move.b 5302(%a2),%d0 + move.b 43(%a2),80(%a2) + tst.b %d0 + jeq .L65 + move.b 5308(%a2),%d0 + moveq #-128,%d1 + or.l %d1,%d0 +.L65: + move.b %d0,81(%a2) + move.b 5307(%a2),82(%a2) + move.l #96058,%a0 + add.l %a2,%a0 + pea .LC2 + pea .LC3 + move.l %a0,-(%sp) + jsr project_file + pea 24.w + pea 59(%a2) + move.l %a2,-(%sp) + jsr put_data + lea (24,%sp),%sp + move.l (%sp)+,%a2 + rts + .size write_place, .-write_place + .section .rodata.str1.1 +.LC4: + .string "bak" .text .align 2 + .type write_book, @function +write_book: + lea (-32,%sp),%sp + movem.l #15420,(%sp) + move.l 40(%sp),%a3 + move.l 36(%sp),%d3 + tst.l %a3 + sne %d0 + neg.l %d0 + tst.b %d0 + jeq .L73 + mvz.w %a3,%d0 + move.l %d3,%d5 + move.l #.LC2,%d4 + add.l #96058,%d5 + sub.l %a2,%a2 + lsl.l #3,%d0 + mov3q.l #1,%d2 + lea arr_path,%a5 + lea arr_write,%a4 + move.l %d0,%a3 + addq.l #1,%a3 +.L77: + mov3q.l #5,%d0 + cmp.l %a2,%d0 + jcs .L81 + move.l %d4,-(%sp) + pea (%a3,%a2.l) + move.l %d5,-(%sp) + jsr (%a5) + move.l %a2,-(%sp) + move.l %d3,-(%sp) + jsr (%a4) + lea (20,%sp),%sp + and.l %d0,%d2 +.L76: + addq.l #1,%a2 + moveq #8,%d0 + cmp.l %a2,%d0 + jne .L77 + move.l %d2,%d0 + movem.l (%sp),#15420 + lea (32,%sp),%sp + rts +.L81: + tst.b 269455127.l + jlt .L76 + move.l %d4,-(%sp) + pea (%a3,%a2.l) + move.l %d5,-(%sp) + jsr (%a5) + move.l %a2,-(%sp) + move.l %d3,-(%sp) + jsr (%a4) + lea (20,%sp),%sp + and.l %d0,%d2 + jra .L76 +.L73: + mvz.w %a3,%d0 + move.l %d3,%d5 + move.l #.LC4,%d4 + add.l #96058,%d5 + sub.l %a2,%a2 + lsl.l #3,%d0 + mov3q.l #1,%d2 + lea arr_path,%a5 + lea arr_write,%a4 + move.l %d0,%a3 + addq.l #1,%a3 + jra .L77 + .size write_book, .-write_book + .align 2 .type arr_read, @function arr_read: lea (-16,%sp),%sp @@ -209,20 +415,20 @@ arr_read: move.l %d0,%d4 pea 4096.w move.l #1073834084,%a2 - add.l #628,%d4 + add.l #96602,%d4 move.l %d4,-(%sp) - pea .LC2 + pea .LC1 move.l %d0,%d3 - add.l #84,%d3 + add.l #96058,%d3 move.l %d3,-(%sp) move.l %d0,%d2 - add.l #604,%d2 + add.l #96578,%d2 move.l %d2,-(%sp) jsr (%a2) lea (20,%sp),%sp tst.l %d0 - jlt .L56 -.L49: + jlt .L90 +.L83: clr.l -(%sp) move.l 28(%sp),-(%sp) move.l %d2,-(%sp) @@ -239,23 +445,23 @@ arr_read: or.l %d1,%d0 lea (16,%sp),%sp rts -.L56: +.L90: move.l 1187521530,%a0 move.l %d3,-(%sp) jsr (%a0) addq.l #4,%sp tst.l %d0 - jne .L52 + jne .L86 pea 4096.w move.l %d4,-(%sp) - pea .LC2 + pea .LC1 move.l %d3,-(%sp) move.l %d2,-(%sp) jsr (%a2) lea (20,%sp),%sp tst.l %d0 - jge .L49 -.L52: + jge .L83 +.L86: move.l 1187521530,%a0 move.l %d3,-(%sp) jsr (%a0) @@ -267,10 +473,6 @@ arr_read: lea (16,%sp),%sp rts .size arr_read, .-arr_read - .section .rodata.str1.1 -.LC3: - .string "work" - .text .align 2 .type write_changed, @function write_changed: @@ -283,25 +485,39 @@ write_changed: mov3q.l #1,%d3 lsl.l #3,%d0 lea arr_path,%a4 - add.l #84,%d5 + add.l #96058,%d5 lea arr_write,%a3 move.l %d0,%a2 addq.l #1,%a2 -.L59: +.L95: mvz.b 268525900,%d0 btst %d2,%d0 - jne .L66 + jeq .L94 + mov3q.l #5,%d0 + cmp.l %d2,%d0 + jcs .L102 + pea .LC2 + pea (%a2,%d2.l) + move.l %d5,-(%sp) + jsr (%a4) + move.l %d2,-(%sp) + move.l %d4,-(%sp) + jsr (%a3) + lea (20,%sp),%sp + and.l %d0,%d3 +.L94: addq.l #1,%d2 moveq #8,%d0 cmp.l %d2,%d0 - jne .L59 -.L67: + jne .L95 move.l %d3,%d0 movem.l (%sp),#7228 lea (28,%sp),%sp rts -.L66: - pea .LC3 +.L102: + tst.b 269455127.l + jlt .L94 + pea .LC2 pea (%a2,%d2.l) move.l %d5,-(%sp) jsr (%a4) @@ -309,1746 +525,7954 @@ write_changed: move.l %d4,-(%sp) jsr (%a3) lea (20,%sp),%sp - addq.l #1,%d2 and.l %d0,%d3 - moveq #8,%d0 - cmp.l %d2,%d0 - jne .L59 - jra .L67 + jra .L94 .size write_changed, .-write_changed + .section .rodata.str1.1 +.LC5: + .string "arrlists" + .text .align 2 - .type glyph.constprop.0, @function -glyph.constprop.0: - lea (-24,%sp),%sp - sub.l %a1,%a1 - mvz.w 34(%sp),%d0 - move.l 36(%sp),%d1 - movem.l #252,(%sp) - lea GLYPH,%a0 - mov3q.l #2,%d5 - lsl.l #3,%d0 - mvz.w (%a0,%d1.l*2),%d4 - move.l 28(%sp),%d6 - addq.l #7,%d6 - mov3q.l #1,%d7 - add.l %d0,%d6 -.L69: - move.l %d7,%d1 - move.l %a1,%d3 - lsl.l %d5,%d1 - move.l %d6,%a0 + .type read_lists, @function +read_lists: + lea (-28,%sp),%sp + movem.l #3196,(%sp) + move.l 32(%sp),%a3 + move.l #96058,%a0 + pea .LC2 + pea .LC5 + add.l %a3,%a0 + move.l %a0,-(%sp) + move.l %a3,%d2 + add.l #83,%d2 + lea get_data,%a2 + jsr project_file + pea 4888.w + move.l %d2,-(%sp) + move.l %a3,-(%sp) + jsr (%a2) + lea (24,%sp),%sp + tst.l %d0 + jeq .L104 + mvz.b 83(%a3),%d0 + moveq #65,%d1 + cmp.l %d0,%d1 + jeq .L133 +.L104: + pea 4632.w + move.l %d2,-(%sp) + move.l %a3,-(%sp) + jsr (%a2) + lea (12,%sp),%sp + tst.l %d0 + jeq .L107 +.L136: + mvz.b 83(%a3),%d0 + moveq #65,%d6 + cmp.l %d0,%d6 + jeq .L108 +.L109: clr.l %d0 - add.l #14,%d3 - not.l %d1 -.L71: - move.l %d3,%d2 - sub.l %d0,%d2 +.L107: + move.l %a3,%d1 + add.l #4731,%d1 + lea (4987,%a3),%a1 +.L110: + move.l %d1,%a0 + lea (-16,%a0),%a0 +.L111: + clr.b (%a0)+ + cmp.l %a0,%d1 + jne .L111 + move.l %a0,%d1 + add.l #16,%d1 + cmp.l %d1,%a1 + jne .L110 + tst.l %d0 + jeq .L106 +.L113: + mvz.b 87(%a3),%d0 + moveq #15,%d1 + cmp.l %d0,%d1 + jcs .L106 + move.l %a3,%d0 + add.l #4986,%d0 + lea (4730,%a3),%a0 +.L115: + clr.b (%a0) + lea (16,%a0),%a0 + cmp.l %a0,%d0 + jne .L115 + move.l %a3,%d5 + add.l #107,%d5 + lea (91,%a3),%a2 + move.l %d5,%d4 +.L118: + mvz.b (%a2),%d3 + moveq #16,%d0 + cmp.l %d3,%d0 + jcs .L106 + move.l %d4,%a0 + clr.l %d0 + move.l %a0,%a1 + cmp.l %d3,%d0 + jeq .L134 +.L117: + mvz.b (%a0),%d1 addq.l #1,%d0 - btst %d2,%d4 - jeq .L70 - move.b (%a0),%d2 - and.l %d1,%d2 - move.b %d2,(%a0) -.L70: - addq.l #8,%a0 - mov3q.l #3,%d2 - cmp.l %d0,%d2 - jne .L71 - addq.l #1,%d5 - subq.l #3,%a1 - moveq #-15,%d0 - cmp.l %a1,%d0 - jne .L69 - movem.l (%sp),#252 - lea (24,%sp),%sp + lea (18,%a0),%a0 + moveq #15,%d6 + cmp.l %d1,%d6 + jcc .L135 +.L106: + move.l %a3,%d0 + move.l %d2,%a0 + add.l #4971,%d0 +.L114: + clr.b (%a0)+ + cmp.l %a0,%d0 + jne .L114 + clr.w %d0 + move.w %d0,4971(%a3) + movem.l (%sp),#3196 + lea (28,%sp),%sp + rts +.L135: + mvz.b 1(%a1),%d1 + mov3q.l #7,%d6 + cmp.l %d1,%d6 + jcs .L106 + move.l %a0,%a1 + cmp.l %d3,%d0 + jne .L117 +.L134: + addq.l #1,%a2 + add.l #288,%d4 + cmp.l %d5,%a2 + jne .L118 + clr.w %d0 + move.w %d0,4971(%a3) + movem.l (%sp),#3196 + lea (28,%sp),%sp rts - .size glyph.constprop.0, .-glyph.constprop.0 +.L133: + mvz.b 84(%a3),%d0 + moveq #83,%d6 + cmp.l %d0,%d6 + jne .L104 + mvz.b 85(%a3),%d0 + moveq #76,%d1 + cmp.l %d0,%d1 + jne .L104 + mvz.b 86(%a3),%d0 + moveq #50,%d6 + cmp.l %d0,%d6 + jeq .L113 + pea 4632.w + move.l %d2,-(%sp) + move.l %a3,-(%sp) + jsr (%a2) + lea (12,%sp),%sp + tst.l %d0 + jeq .L107 + jra .L136 +.L108: + mvz.b 84(%a3),%d0 + moveq #83,%d1 + cmp.l %d0,%d1 + jne .L109 + mvz.b 85(%a3),%d0 + cmp.l %d0,%d1 + jne .L109 + move.b 86(%a3),%d0 + moveq #76,%d6 + move.l %a3,%d1 + add.l #4731,%d1 + lea (4987,%a3),%a1 + eor.l %d6,%d0 + tst.b %d0 + seq %d0 + mvs.b %d0,%d0 + neg.l %d0 + jra .L110 + .size read_lists, .-read_lists .align 2 - .type stopped, @function -stopped: + .type set_chain, @function +set_chain: + move.l %a2,-(%sp) + clr.b %d0 move.l %d2,-(%sp) - move.b -2147457608,%d0 - move.b -2147457607,%d1 - move.w %d1,%a0 - move.b -2147457606,%d1 - mvz.b -2147457605,%d2 - move.l %d2,%a1 - moveq #24,%d2 - lsl.l %d2,%d0 - move.w %a0,%d2 - mvz.b %d1,%d1 - lsl.l #8,%d1 - mvz.b %d2,%d2 - swap %d2 - clr.w %d2 - or.l %d2,%d0 - move.l %a1,%d2 - or.l %d2,%d0 - or.l %d1,%d0 - jne .L82 - move.l #-2147463394,%a0 - move.l #-2147457792,%a1 -.L80: - addq.l #1,%a1 - tst.b -1(%a1) - jne .L82 - lea (84,%a0),%a0 - tst.b -84(%a0) - jne .L82 - cmp.l #-2147462050,%a0 - jne .L80 + clr.b %d2 + mov3q.l #1,%a0 + move.l 12(%sp),%d1 + lea as_chain_text+1,%a1 + move.b %d0,-2147457388 + move.b %d0,-2147457387 + move.b %d2,-2147457386 + move.w %d1,%d0 + move.b %d1,-2147457385 + moveq #62,%d1 + mulu.w #5652,%d0 + move.b %d1,as_chain_text + move.l %d0,%a2 + add.l #268435459,%a2 +.L140: + move.b (%a2,%a0.l),%d0 + mvs.b %d0,%d1 + tst.b %d0 + jeq .L138 + addq.l #1,%a0 + moveq #37,%d2 + cmp.l %d1,%d2 + jeq .L152 + move.b %d0,(%a1)+ + moveq #15,%d0 + cmp.l %a0,%d0 + jne .L140 +.L138: + add.l #as_chain_text,%a0 +.L141: + clr.b (%a0)+ + cmp.l #as_chain_text+16,%a0 + jne .L141 + move.l #1074531393,-(%sp) + move.l #1175263150,-(%sp) + jsr 1073744956 + addq.l #8,%sp move.l (%sp)+,%d2 - mov3q.l #1,%d0 + move.l (%sp)+,%a2 rts -.L82: - move.l (%sp)+,%d2 +.L152: + moveq #32,%d0 + move.b %d0,(%a1)+ + moveq #15,%d0 + cmp.l %a0,%d0 + jne .L140 + jra .L138 + .size set_chain, .-set_chain + .section .rodata.str1.1 +.LC6: + .string "arrlend" + .text + .align 2 + .type note_read, @function +note_read: + move.l %a2,-(%sp) + move.l %d2,-(%sp) + pea .LC2 + pea .LC6 + move.l 20(%sp),%d0 + add.l #96058,%d0 + move.l %d0,-(%sp) + move.l 28(%sp),%a2 + jsr project_file + pea 360.w + move.l %a2,-(%sp) + move.l 32(%sp),-(%sp) + jsr get_data + lea (24,%sp),%sp + tst.l %d0 + jeq .L154 + mvz.b (%a2),%d1 + moveq #65,%d2 + cmp.l %d1,%d2 + jeq .L162 +.L154: + clr.b %d0 + move.b %d0,5(%a2) clr.l %d0 + move.l (%sp)+,%d2 + move.l (%sp)+,%a2 rts - .size stopped, .-stopped - .align 2 - .type remember, @function -remember: - lea (-32,%sp),%sp - movem.l #31772,(%sp) - move.l #269455132,%a6 - moveq #24,%d4 - move.l #269455133,%a5 - move.l #269455134,%a4 - move.l #269455135,%a3 - move.l 36(%sp),%a2 - move.l #268435460,%a0 - move.b (%a6),%d0 - move.b (%a5),%d2 - move.b (%a4),%d1 - mvz.b (%a3),%d3 - lsl.l %d4,%d0 - mvz.b %d2,%d2 - move.w %d1,%a1 - move.l #-2128831035,%d1 - swap %d2 - clr.w %d2 - move.w %a1,%d4 - or.l %d2,%d0 - mvz.b %d4,%d4 - or.l %d3,%d0 - lsl.l #8,%d4 - or.l %d4,%d0 - moveq #24,%d4 - addq.l #1,%d0 - move.l %d0,%d2 - lsr.l %d4,%d2 - move.l %d0,%d3 - clr.w %d3 - swap %d3 - move.l %d0,10(%a2) - move.l %d2,%a1 - move.l %d0,%d2 - move.w %a1,%d4 - lsr.l #8,%d2 - lea (4,%a2),%a1 - move.b %d4,(%a6) - move.b %d3,(%a5) - move.b %d2,(%a4) - move.b %d0,(%a3) - moveq #65,%d0 +.L162: + mvz.b 1(%a2),%d1 moveq #83,%d2 - moveq #66,%d4 - move.b %d0,269455120 - moveq #49,%d0 - move.b %d2,269455121 - move.b %d4,269455122 - move.b %d0,269455123 - move.b (%a1),269455124 - lea (7,%a2),%a1 - lea (14,%a2),%a2 - move.b (%a1),269455125 - move.b (%a2),269455126 -.L88: - mvz.b (%a0)+,%d0 - eor.l %d0,%d1 - move.l #16777619,%d0 - muls.l %d0,%d1 - cmp.l #268525900,%a0 - jne .L88 - move.l %d1,%d2 - moveq #24,%d4 - clr.w %d2 - swap %d2 - move.l %d1,%d3 - lsr.l %d4,%d3 - move.l %d1,%d0 - lsr.l #8,%d0 - move.b %d3,269455128 - move.b %d2,269455129 - move.b %d0,269455130 - move.b %d1,269455131 - movem.l (%sp),#31772 - lea (32,%sp),%sp + cmp.l %d1,%d2 + jne .L154 + mvz.b 2(%a2),%d1 + moveq #76,%d2 + cmp.l %d1,%d2 + jne .L154 + mvz.b 3(%a2),%d1 + moveq #50,%d2 + cmp.l %d1,%d2 + jne .L154 + mvz.b 4(%a2),%d1 + moveq #15,%d2 + cmp.l %d1,%d2 + jcs .L154 + mvz.b 6(%a2),%d1 + moveq #16,%d2 + cmp.l %d1,%d2 + jcs .L154 + move.l (%sp)+,%d2 + move.l (%sp)+,%a2 rts - .size remember, .-remember + .size note_read, .-note_read .align 2 - .type ready, @function -ready: - move.l st_at,%a1 - subq.l #4,%sp - move.l %d2,-(%sp) - move.l #1095979826,%d0 - cmp.l (%a1),%d0 - jeq .L92 - move.l %a1,%d1 - move.l %a1,%a0 - add.l #4724,%d1 -.L94: - clr.b (%a0)+ - cmp.l %d1,%a0 - jne .L94 - st %d1 - move.l #1095979826,(%a1) - move.b %d1,5(%a1) - move.b 269455136,%d0 - move.b 269455137,%d2 - move.b 269455138,%d1 - move.w %d2,%a0 - mvz.b 269455139,%d2 - mvz.b %d1,%d1 - move.l %d2,4(%sp) - st %d2 - lsl.l #8,%d1 - move.b %d2,34(%a1) - moveq #24,%d2 - lsl.l %d2,%d0 - move.w %a0,%d2 - mvz.b %d2,%d2 - swap %d2 - clr.w %d2 - or.l %d2,%d0 - or.l 4(%sp),%d0 - or.l %d1,%d0 - move.l %d0,evlog - move.b 1175263980,%d1 - move.b 1175263981,%d0 - move.w %d0,%a0 - move.b 1175263982,%d0 - mvz.b 1175263983,%d2 - move.l %d2,4(%sp) - move.w #4000,%d2 - mvz.b %d0,%d0 - lsl.l #8,%d0 - move.w %d2,46(%a1) - moveq #24,%d2 - lsl.l %d2,%d1 - move.w %a0,%d2 - mvz.b %d2,%d2 - swap %d2 - clr.w %d2 - or.l %d2,%d1 - or.l 4(%sp),%d1 - or.l %d0,%d1 - sne %d1 + .type is_copy, @function +is_copy: + lea (-44,%sp),%sp + movem.l #17532,(%sp) + move.w 54(%sp),%d3 + move.l 48(%sp),%d2 + mulu.w #5652,%d3 + cmp.l #33912,%d3 + seq %d0 + move.l %d3,%a0 + add.l #268435460,%a0 + neg.l %d0 + tst.b %d0 + jeq .L164 + move.l #268475024,%a1 + move.l #-2128831035,%d0 +.L166: + mvz.b (%a0)+,%d1 + eor.l %d1,%d0 + move.l #16777619,%d1 + muls.l %d1,%d0 + cmp.l %a0,%a1 + jne .L166 + move.l %sp,%d4 + add.l #28,%d4 + move.l %d3,%a1 + sub.l %d4,%a1 + add.l #268435460,%a1 + move.l %d4,%a0 + lea (44,%sp),%a6 +.L167: + move.b (%a1,%a0.l),%d1 + move.b %d1,(%a0)+ + cmp.l %a0,%a6 + jne .L167 + move.l %d2,%a0 + mvz.b 6(%a0),%d3 + tst.l %d3 + jeq .L168 + lea (40,%a0),%a0 + clr.l %d1 +.L170: + addq.l #4,%a0 + addq.l #1,%d1 + cmp.l -4(%a0),%d0 + jeq .L175 + cmp.l %d1,%d3 + jne .L170 +.L168: + mvz.w 58(%sp),%d1 + move.l %d2,%a2 + move.l %d4,%a0 + mov3q.l #1,%d0 + lsl.l #4,%d1 + lea 8(%a2,%d1.l),%a1 +.L171: + move.b (%a0)+,%d1 + move.b (%a1)+,%d5 + eor.l %d5,%d1 + tst.b %d1 + seq %d1 + mvs.b %d1,%d1 neg.l %d1 - move.b %d1,39(%a1) -.L92: - move.l (%sp)+,%d2 - move.l %a1,%d0 - addq.l #4,%sp + and.l %d1,%d0 + cmp.l %a0,%a6 + jne .L171 + tst.l %d0 + jne .L176 + tst.l %d3 + jeq .L163 + move.l %d2,%d5 + clr.l %d6 + add.l #104,%d5 +.L172: + move.l %d5,%a1 + move.l %d4,%a0 + mov3q.l #1,%d0 +.L173: + move.b (%a0)+,%d1 + move.b (%a1)+,%d2 + eor.l %d2,%d1 + tst.b %d1 + seq %d1 + mvs.b %d1,%d1 + neg.l %d1 + and.l %d1,%d0 + cmp.l %a0,%a6 + jne .L173 + tst.l %d0 + jne .L163 + addq.l #1,%d6 + add.l #16,%d5 + cmp.l %d6,%d3 + jne .L172 +.L163: + movem.l (%sp),#17532 + lea (44,%sp),%sp rts - .size ready, .-ready +.L164: + move.l #268480676,%a1 + move.l #-2128831035,%d0 + jra .L166 +.L175: + movem.l (%sp),#17532 + mov3q.l #1,%d0 + lea (44,%sp),%sp + rts +.L176: + movem.l (%sp),#17532 + clr.l %d0 + lea (44,%sp),%sp + rts + .size is_copy, .-is_copy + .section .rodata.str1.1 +.LC7: + .string "SETLIST " + .text .align 2 - .type read_place, @function -read_place: - lea (-28,%sp),%sp - movem.l #3100,(%sp) - move.l 32(%sp),%a2 - move.l %a2,%d3 - pea .LC3 - add.l #84,%d3 - move.l %d3,-(%sp) - move.l %a2,%d2 - add.l #604,%d2 - jsr place_path - pea 4096.w - pea 628(%a2) - pea .LC2 + .type list_title, @function +list_title: move.l %d3,-(%sp) move.l %d2,-(%sp) - jsr 1073834084 - lea (28,%sp),%sp + mvz.w 22(%sp),%d1 + clr.l %d0 + lsl.l #4,%d1 + move.l %d1,%a0 + lea (4715,%a0),%a0 + add.l 12(%sp),%a0 +.L191: + tst.b (%a0,%d0.l) + jeq .L195 + addq.l #1,%d0 + moveq #15,%d1 + cmp.l %d0,%d1 + jne .L191 +.L195: + move.l %d0,%d1 + subq.l #1,%d1 tst.l %d0 - jlt .L99 - pea 24.w - pea 57(%a2) - move.l %d2,-(%sp) - jsr 1073833316 - move.l %d2,-(%sp) - move.l %d0,%d3 - subq.l #1,%d3 - jsr 1073833852 - lea (16,%sp),%sp - tst.l %d3 - jne .L99 - move.l evlog,%d0 - mov3q.l #5,%d1 - move.l #269455136,%d3 - move.l %d3,%a3 - move.l #269455137,%d2 - lsl.l #4,%d0 - move.l #269455138,%a1 - move.l #269455139,%a0 - or.l %d1,%d0 - move.l %d0,%d4 - move.l %d0,%d1 - clr.w %d4 - swap %d4 - move.l %d0,evlog - move.l %d4,24(%sp) - moveq #24,%d4 - lsr.l %d4,%d1 - moveq #15,%d4 - move.l %d1,20(%sp) - move.b 23(%sp),(%a3) - move.l %d0,%d1 - lsr.l #8,%d1 - move.l %d2,%a3 - move.b 27(%sp),(%a3) - move.b %d1,(%a1) - move.b %d0,(%a0) - move.l %d3,%a3 - move.b 61(%a2),%d1 - move.l evlog,%d0 - lsl.l #4,%d0 - and.l %d4,%d1 - or.l %d1,%d0 - move.l %d0,%d1 - move.l %d0,%d4 - clr.w %d1 - swap %d1 - move.l %d0,evlog - move.l %d1,24(%sp) - moveq #24,%d1 - lsr.l %d1,%d4 + jeq .L194 +.L211: + mvs.b (%a0,%d1.l),%d2 + moveq #32,%d3 + cmp.l %d2,%d3 + jne .L210 + move.l %d1,%d0 move.l %d0,%d1 - lsr.l #8,%d1 - move.l %d4,20(%sp) - move.b %d4,(%a3) - move.l %d2,%a3 - move.b 27(%sp),(%a3) - move.b %d1,(%a1) - move.b %d0,(%a0) - moveq #65,%d1 - mvz.b 57(%a2),%d0 - cmp.l %d0,%d1 - jne .L101 - mvz.b 58(%a2),%d0 - moveq #83,%d2 - cmp.l %d0,%d2 - jne .L101 - mvz.b 59(%a2),%d0 - moveq #66,%d4 - cmp.l %d0,%d4 - jne .L101 - mvz.b 60(%a2),%d0 - moveq #80,%d1 - cmp.l %d0,%d1 - jne .L101 - mvz.b 61(%a2),%d0 - moveq #15,%d2 - cmp.l %d0,%d2 - jcs .L101 - lea (18,%a2),%a0 - lea (34,%a2),%a1 -.L104: - move.b 44(%a0),%d1 - mov3q.l #7,%d4 - and.l %d4,%d1 - move.b %d1,(%a0)+ - cmp.l %a0,%a1 - jne .L104 - move.b 78(%a2),%d1 - mov3q.l #1,%d2 - eor.l %d2,%d1 - tst.b %d1 - seq %d1 - neg.l %d1 + subq.l #1,%d1 + tst.l %d0 + jne .L211 +.L194: + moveq #83,%d1 + move.l 16(%sp),%a1 + move.l 16(%sp),%d0 + addq.l #8,%d0 + lea .LC7,%a0 +.L197: + move.b %d1,(%a1)+ + addq.l #1,%a0 + move.b (%a0),%d1 + cmp.l %a1,%d0 + jne .L197 + move.l 20(%sp),%d1 + moveq #9,%d2 + addq.l #1,%d1 + cmp.l %d1,%d2 + jcc .L198 move.l %d1,%d2 - lsl.l #8,%d2 - move.b %d1,%d2 - move.w %d2,38(%a2) - movem.l (%sp),#3100 - lea (28,%sp),%sp + moveq #10,%d3 + divu.l %d3,%d2 + move.l 16(%sp),%a0 + move.l 16(%sp),%d0 + add.l #9,%d0 + add.l #48,%d2 + move.b %d2,8(%a0) +.L198: + moveq #10,%d3 + remu.l %d3,%d2:%d1 + move.l %d0,%a0 + add.l #48,%d2 + move.b %d2,(%a0)+ + move.l (%sp)+,%d2 + move.l %a0,%d0 + move.l (%sp)+,%d3 rts -.L99: - move.l evlog,%d0 - mov3q.l #6,%d1 - moveq #24,%d4 - lsl.l #4,%d0 - or.l %d1,%d0 - move.l %d0,%d2 - move.l %d0,%d3 - clr.w %d2 - swap %d2 - lsr.l %d4,%d3 - move.l %d0,%d1 - lsr.l #8,%d1 - move.l %d0,evlog - move.b %d3,269455136 - move.b %d2,269455137 - move.b %d1,269455138 - move.b %d0,269455139 -.L101: - movem.l (%sp),#3100 - mov3q.l #-1,%d0 - lea (28,%sp),%sp +.L210: + move.l 16(%sp),%a1 + move.l %a0,%d1 + add.l %d0,%d1 +.L200: + move.b (%a0)+,(%a1)+ + cmp.l %a0,%d1 + jne .L200 + add.l 16(%sp),%d0 + move.l (%sp)+,%d2 + move.l (%sp)+,%d3 rts - .size read_place, .-read_place + .size list_title, .-list_title .section .rodata.str1.1 -.LC4: - .string "bak" +.LC8: + .string "ARR B" +.LC9: + .string "STL:" +.LC10: + .string "%d:%." +.LC11: + .string "%d:%s" .text .align 2 - .globl as_writer - .type as_writer, @function -as_writer: - lea (-48,%sp),%sp - movem.l #15420,(%sp) - jsr ready - move.l %d0,%a2 - tst.b 54(%a2) - jeq .L109 - tst.b 55(%a2) - jne .L177 -.L110: - tst.b 4(%a2) - jeq .L178 - clr.l 40(%sp) - move.l %a2,-(%sp) - jsr remember - addq.l #4,%sp -.L108: - movem.l (%sp),#15420 - move.l 40(%sp),%d0 - lea (48,%sp),%sp - rts -.L177: - clr.b %d0 - move.b %d0,54(%a2) - move.l %a2,-(%sp) - jsr read_place - addq.l #4,%sp - tst.l %d0 - jle .L179 -.L111: - clr.w %d3 - move.b %d0,%d1 - move.b %d0,34(%a2) - move.w %d3,36(%a2) - tst.b 38(%a2) - jeq .L170 - tst.b 48(%a2) - jne .L114 -.L170: - tst.b 54(%a2) - jne .L110 -.L115: - moveq #1,%d5 - move.b %d5,50(%a2) - tst.b %d1 - jlt .L109 - tst.b 49(%a2) - jeq .L109 - move.b 5(%a2),%d4 - jpl .L118 - move.l evlog,%d0 - mov3q.l #7,%d4 - clr.b %d3 - move.b %d1,5(%a2) - lsl.l #4,%d0 - st %d1 - move.b %d5,16(%a2) - moveq #24,%d5 - move.b %d3,49(%a2) - or.l %d4,%d0 - move.b %d1,34(%a2) - move.l %d0,%d2 - move.l %d0,%d3 - clr.w %d2 - swap %d2 - lsr.l %d5,%d3 + .type title_follow, @function +title_follow: + lea (-44,%sp),%sp + movem.l #19516,(%sp) + move.l 48(%sp),%a3 + tst.b 5302(%a3) + jne .L213 + moveq #65,%d0 + lea as_title_fmt,%a1 + lea .LC8,%a0 +.L214: + move.b %d0,(%a1)+ + addq.l #1,%a0 + move.b (%a0),%d0 + cmp.l #.LC8+5,%a0 + jne .L214 + mvz.b 8(%a3),%d0 + moveq #9,%d1 + addq.l #1,%d0 + cmp.l %d0,%d1 + jcc .L239 move.l %d0,%d1 - lsr.l #8,%d1 - move.l %d0,evlog - move.b %d3,269455136 - move.b %d2,269455137 - move.b %d1,269455138 - move.b %d0,269455139 -.L109: - move.b 5(%a2),%d4 - jmi .L119 -.L118: - moveq #1,%d0 - move.b %d0,50(%a2) -.L119: - move.b 4(%a2),%d0 - move.l %a2,%d2 - add.l #84,%d2 - tst.b %d0 - jne .L120 - tst.b 14(%a2) - jeq .L180 - move.b 268525900,%d0 - jne .L181 - tst.b %d4 - jlt .L134 - move.b 269161681,%d1 - mov3q.l #7,%d3 - mvs.b %d4,%d5 - clr.l 40(%sp) - lea arr_path,%a4 - move.l %d5,%a3 - and.l %d3,%d1 - move.b %d1,18(%a2) -.L137: - move.b %d0,7(%a2) -.L138: - tst.l %a3 - jne .L141 - tst.b 7(%a2) - jne .L182 -.L141: - mvz.w %a3,%d0 - mov3q.l #1,%d3 - sub.l %a3,%a3 - lea arr_read,%a5 - lsl.l #3,%d0 + moveq #10,%d3 + divu.l %d3,%d1 + moveq #10,%d4 + moveq #58,%d5 + lea as_title_fmt+6,%a0 + lea (2,%a0),%a2 + add.l #48,%d1 + move.b %d1,as_title_fmt+5 + remu.l %d4,%d1:%d0 + move.b %d5,1(%a0) + add.l #48,%d1 + move.b %d1,(%a0) + move.l #-2147483643,%a0 + move.b (%a0),as_title_index +.L216: + moveq #37,%d0 + move.l %a2,%d1 + move.l %a2,%a1 + addq.l #5,%d1 + lea .LC11,%a0 +.L238: + move.b %d0,(%a1)+ + addq.l #1,%a0 + move.b (%a0),%d0 + cmp.l %a1,%d1 + jne .L238 + clr.b %d3 + move.b %d3,5(%a2) + movem.l (%sp),#19516 + lea (44,%sp),%sp + rts +.L213: + mvz.b 5331(%a3),%d0 + sub.l %a6,%a6 + mulu.w #5652,%d0 + move.l %d0,%a0 + add.l #268435460,%a0 +.L217: + tst.b (%a6,%a0.l) + jeq .L254 + addq.l #1,%a6 + moveq #16,%d0 + cmp.l %a6,%d0 + jne .L217 + mov3q.l #4,%d3 +.L218: + mvz.b 5307(%a3),%d0 + moveq #9,%d1 addq.l #1,%d0 - move.l %d0,36(%sp) -.L147: - pea .LC3 - move.l 40(%sp),%d0 - pea (%a3,%d0.l) - move.l %d2,-(%sp) - jsr (%a4) - move.l %a3,-(%sp) - move.l %a2,-(%sp) - jsr (%a5) - lea (20,%sp),%sp - mov3q.l #1,%d1 cmp.l %d0,%d1 - jeq .L146 + jcc .L241 + mov3q.l #2,%d1 +.L220: + mvz.b 5308(%a3),%d0 + move.l %sp,%d4 + add.l #28,%d4 + sub.l %d1,%d3 + moveq #15,%d2 + move.l %d0,-(%sp) + move.l %d4,-(%sp) move.l %a3,-(%sp) - move.l %d0,36(%sp) - jsr 1074398236 - mov3q.l #-1,%d5 - addq.l #4,%sp - move.l 32(%sp),%d0 + jsr list_title + lea (12,%sp),%sp + sub.l %d4,%d0 + cmp.l %d0,%d2 + jcc .L221 + moveq #15,%d0 +.L221: + cmp.l %d3,%d0 + jls .L222 + move.l %d0,%d1 + mov3q.l #7,%d5 cmp.l %d0,%d5 - sne %d0 - mvs.b %d0,%d0 - neg.l %d0 - and.l %d0,%d3 -.L146: - addq.l #1,%a3 - moveq #8,%d0 - cmp.l %a3,%d0 - jne .L147 - clr.b %d1 - move.b %d1,268525900 -.L145: - move.b %d4,4(%a2) - mov3q.l #1,%d0 - eor.l %d3,%d0 - moveq #1,%d4 - move.b %d3,50(%a2) - move.b %d0,14(%a2) - move.b %d4,15(%a2) - tst.l %d3 - jne .L149 - move.b %d4,6(%a2) -.L149: - st %d0 - mov3q.l #1,%d3 - move.b %d0,5(%a2) - moveq #9,%d0 -.L123: - move.l evlog,%d1 - lsl.l #4,%d1 - or.l %d0,%d1 - moveq #24,%d0 - move.l %d1,%d4 - move.l %d1,%d5 - clr.w %d4 - swap %d4 - lsr.l %d0,%d5 + jcc .L224 + mov3q.l #7,%d1 +.L224: + cmp.l %d1,%d0 + jls .L222 + subq.l #1,%d0 + cmp.l %d3,%d0 + jne .L224 +.L222: + move.l %d0,%a0 + move.l %d0,%d1 + move.l %d4,%a1 + add.l %d4,%a0 + subq.l #1,%d1 + tst.l %d0 + jeq .L226 +.L255: + mvs.b -(%a0),%d2 + moveq #32,%d5 + cmp.l %d2,%d5 + jne .L226 move.l %d1,%d0 - lsr.l #8,%d0 - move.l %d1,evlog - move.b %d5,269455136 - move.b %d4,269455137 - move.b %d0,269455138 - move.b %d1,269455139 - move.b 4(%a2),%d0 - tst.l %d3 - jne .L150 - move.b 269161681,%d3 - mov3q.l #7,%d4 - mvz.b %d0,%d1 - and.l %d4,%d3 - move.b %d3,18(%a2,%d1.l) -.L150: - move.b %d0,61(%a2) - move.l #1095975504,%d5 - move.l %a2,%d0 - add.l #34,%d0 - move.l %d5,57(%a2) - lea (18,%a2),%a0 -.L151: - move.b (%a0)+,%d1 - move.b %d1,43(%a0) - cmp.l %a0,%d0 - jne .L151 - move.b 39(%a2),78(%a2) - move.l %a2,%d3 - add.l #604,%d3 - pea .LC3 - move.l %d2,-(%sp) - jsr place_path - pea 4096.w - pea 628(%a2) - pea .LC0 - move.l %d2,-(%sp) - move.l %d3,-(%sp) - jsr 1073834084 - lea (28,%sp),%sp + move.l %d0,%d1 + subq.l #1,%d1 tst.l %d0 - jlt .L152 - pea 24.w - pea 57(%a2) - move.l %d3,-(%sp) - jsr 1073833656 - move.l %d3,-(%sp) - jsr 1073833852 - lea (16,%sp),%sp -.L152: - move.l %a2,-(%sp) - jsr remember - addq.l #4,%sp - tst.b 50(%a2) - jeq .L108 - moveq #1,%d0 - move.b %d0,50(%a2) - move.l 40(%sp),%d0 - movem.l (%sp),#15420 - lea (48,%sp),%sp + jne .L255 +.L226: + moveq #83,%d1 + lea as_title_fmt,%a2 + lea .LC9,%a0 +.L228: + move.b %d1,(%a2)+ + addq.l #1,%a0 + move.b (%a0),%d1 + cmp.l #.LC9+4,%a0 + jne .L228 + tst.l %d0 + jeq .L229 + move.l %d0,%a2 + add.l %d4,%a2 + lea as_title_fmt+4,%a0 +.L231: + move.b (%a1)+,%d1 + moveq #37,%d4 + mvs.b %d1,%d2 + cmp.l %d2,%d4 + jeq .L256 + move.b %d1,(%a0)+ + cmp.l %a1,%a2 + jne .L231 +.L257: + moveq #58,%d5 + lea as_title_fmt+4,%a0 + move.l %d0,%d2 + add.l #as_title_fmt+3,%d2 + lea (5307,%a3),%a3 + move.l %d2,%a2 + addq.l #2,%a2 + move.b %d5,(%a0,%d0.l) + move.b (%a3),as_title_index + cmp.l %d3,%d0 + jls .L216 + moveq #37,%d1 + add.l %a6,%d3 + sub.l %d0,%d3 + lea .LC10,%a0 +.L234: + move.b %d1,(%a2) + addq.l #1,%a0 + addq.l #1,%a2 + move.b (%a0),%d1 + cmp.l #.LC10+5,%a0 + jne .L234 + moveq #9,%d0 + cmp.l %d3,%d0 + jcs .L235 + moveq #10,%d1 + remu.l %d1,%d0:%d3 + move.l %d2,%a0 + addq.l #7,%a0 + move.w #29440,%d2 + add.l #48,%d0 + move.b %d0,(%a0) + move.w %d2,1(%a0) +.L258: + movem.l (%sp),#19516 + lea (44,%sp),%sp rts -.L120: - tst.b 59(%sp) - jne .L127 - tst.b 268525900.l - jne .L127 - tst.b %d4 - jlt .L134 - move.b 269161681,%d1 +.L239: + moveq #10,%d4 + remu.l %d4,%d1:%d0 + moveq #58,%d5 + lea as_title_fmt+5,%a0 + lea (2,%a0),%a2 + add.l #48,%d1 + move.b %d1,(%a0) + move.b %d5,1(%a0) + move.l #-2147483643,%a0 + move.b (%a0),as_title_index + jra .L216 +.L256: + moveq #32,%d1 + move.b %d1,(%a0)+ + cmp.l %a1,%a2 + jne .L231 + jra .L257 +.L229: + lea as_title_fmt+4,%a2 + lea (5307,%a3),%a3 + move.l %a2,%d1 + move.l %a2,%a1 + move.b (%a3),as_title_index + moveq #37,%d0 + addq.l #5,%d1 + lea .LC11,%a0 + jra .L238 +.L241: + mov3q.l #1,%d1 + jra .L220 +.L254: + moveq #20,%d3 + sub.l %a6,%d3 + jra .L218 +.L235: + move.l %d3,%d0 + moveq #10,%d4 + divu.l %d4,%d0 + move.l %d2,%a1 + move.l %d2,%a0 + move.w #29440,%d2 + addq.l #8,%a0 + moveq #10,%d1 + add.l #48,%d0 + move.b %d0,7(%a1) + remu.l %d1,%d0:%d3 + move.w %d2,1(%a0) + add.l #48,%d0 + move.b %d0,(%a0) + jra .L258 + .size title_follow, .-title_follow + .align 2 + .type invert, @function +invert: + lea (-44,%sp),%sp + movem.l #31996,(%sp) + move.l 64(%sp),%a3 + move.l 48(%sp),%a0 + cmp.l 56(%sp),%a3 + jlt .L259 + mvz.w 54(%sp),%d1 + mvz.w 62(%sp),%d0 + addq.l #1,%a3 + mov3q.l #1,%a6 + lsl.l #3,%d1 + lsl.l #3,%d0 + lea 7(%a0,%d1.l),%a5 + lea 15(%a0,%d0.l),%a4 +.L264: + mov3q.l #7,%d3 + and.l 56(%sp),%d3 + move.l %a6,%d6 + mov3q.l #7,%a2 + move.l 56(%sp),%d2 + asr.l #3,%d2 + move.l %a5,%a0 + move.l %a4,%d5 + sub.l %d2,%a2 + sub.l %d2,%a0 + sub.l %d2,%d5 + lsl.l %d3,%d6 + move.b %d6,%d4 + not.l %d6 +.L263: + move.b (%a0),%d0 + mvz.b %d0,%d7 + move.l %d0,%d1 + or.l %d4,%d1 + btst %d3,%d7 + jeq .L262 + move.l %d0,%d1 + and.l %d6,%d1 +.L262: + lea (%a0,%d2.l),%a1 + addq.l #8,%a0 + move.b %d1,-7(%a1,%a2.l) + cmp.l %a0,%d5 + jne .L263 + addq.l #1,56(%sp) + cmp.l 56(%sp),%a3 + jne .L264 +.L259: + movem.l (%sp),#31996 + lea (44,%sp),%sp + rts + .size invert, .-invert + .align 2 + .type glyph, @function +glyph: + lea (-36,%sp),%sp + mvz.w 46(%sp),%d0 + movem.l #7420,(%sp) + lea GLYPH,%a0 + mov3q.l #1,%a4 + move.w #14,%a1 + lsl.l #3,%d0 + move.l 40(%sp),%a2 + move.l 48(%sp),%d4 + move.l %d0,%a3 + move.l %a3,%d6 + move.l 52(%sp),%d0 + add.l #24,%d6 + mvz.w (%a0,%d0.l*2),%d7 +.L270: + mov3q.l #7,%d2 + and.l %d4,%d2 + move.l %d4,%d3 + asr.l #3,%d3 mov3q.l #7,%d5 - mvz.b %d0,%d0 - mvs.b %d4,%d3 - clr.l 40(%sp) - lea arr_path,%a4 - move.l %d3,%a3 - and.l %d5,%d1 - move.b %d1,18(%a2,%d0.l) - jra .L138 -.L127: - mvz.b %d0,%d0 - tst.b 14(%a2) - jeq .L129 + move.l %a3,%d0 + move.l %a1,%d1 + sub.l %d3,%d5 + move.l %a4,%d3 + lsl.l %d2,%d3 + not.l %d3 +.L272: + move.l %d5,%a0 + add.l %d0,%a0 + add.l %a2,%a0 + addq.l #8,%d0 + btst %d1,%d7 + jeq .L271 + move.b (%a0),%d2 + and.l %d3,%d2 + move.b %d2,(%a0) +.L271: + subq.l #1,%d1 + cmp.l %d0,%d6 + jne .L272 + addq.l #1,%d4 + subq.l #3,%a1 + mov3q.l #-1,%d0 + cmp.l %a1,%d0 + jne .L270 + movem.l (%sp),#7420 + lea (36,%sp),%sp + rts + .size glyph, .-glyph + .align 2 + .type label, @function +label: + lea (-48,%sp),%sp + moveq #9,%d1 + movem.l #15612,(%sp) + move.l 60(%sp),%d0 + move.l 64(%sp),%a5 + move.l 52(%sp),%d6 + move.l 56(%sp),%d5 + move.l %d0,44(%sp) + cmp.l %a5,%d1 + jcc .L293 + move.w #101,%a1 + moveq #120,%d1 + mov3q.l #2,40(%sp) +.L281: + tst.l %d5 + seq %d0 + neg.l %d0 + tst.b %d0 + jeq .L283 + move.w #8,%a0 +.L284: + cmp.l %d5,%a0 + jlt .L282 + tst.b %d0 + jne .L299 + lsl.l #3,%d1 + move.w #64,%a4 + move.l %d6,%a2 + move.l %d5,%d3 + mov3q.l #1,%d7 + lea (1024,%a2),%a2 + move.l %d1,%d4 + add.l %d6,%d4 + add.l #-168,%d4 +.L288: + move.l %d3,%d0 + asr.l #3,%d0 + mov3q.l #7,%d1 + move.l %d7,%d2 + move.l %d4,%a0 + sub.l %d0,%d1 + mov3q.l #7,%d0 + and.l %d3,%d0 + add.l %d1,%a0 + add.l %a2,%d1 + lsl.l %d0,%d2 +.L287: + move.b (%a0),%d0 + addq.l #8,%a0 + or.l %d2,%d0 + move.b %d0,-8(%a0) + cmp.l %d1,%a0 + jne .L287 + addq.l #1,%d3 + cmp.l %a4,%d3 + jne .L288 +.L282: + moveq #101,%d1 + addq.l #2,%d5 + cmp.l %a1,%d1 + seq %d0 + move.l 44(%sp),%a2 + move.l %a1,%d2 + neg.l %d0 + tst.b %d0 + jeq .L289 + moveq #117,%d3 + lea glyph,%a3 +.L291: + mvz.b (%a2)+,%d0 move.l %d0,-(%sp) - move.l %a2,-(%sp) - jsr write_changed - addq.l #8,%sp - move.l %d0,%d3 -.L130: - tst.l %d3 - jeq .L125 + move.l %d5,-(%sp) + move.l %d2,-(%sp) + move.l %d6,-(%sp) + jsr (%a3) + addq.l #4,%d2 + lea (16,%sp),%sp + cmp.l %d2,%d3 + jne .L291 + mov3q.l #2,%d2 + cmp.l 40(%sp),%d2 + jeq .L300 + move.l %a5,%d7 + moveq #10,%d1 + remu.l %d1,%d0:%d7 + moveq #124,%d2 + move.l %d5,60(%sp) + move.l %d2,56(%sp) + move.l %d6,52(%sp) + movem.l (%sp),#15612 + move.l %d0,64(%sp) + lea (48,%sp),%sp + jra glyph +.L289: + moveq #121,%d3 + lea glyph,%a3 + jra .L291 +.L283: + move.w #63,%a0 + jra .L284 +.L293: + move.w #105,%a1 + moveq #124,%d1 + mov3q.l #1,40(%sp) + jra .L281 +.L299: + lsl.l #3,%d1 + move.l %d6,%a2 + move.l %d5,%d3 + move.w #9,%a4 + mov3q.l #1,%d7 + lea (1024,%a2),%a2 + move.l %d1,%d4 + add.l %d6,%d4 + add.l #-168,%d4 + jra .L288 +.L300: + move.l %a5,%d0 + moveq #10,%d2 + divu.l %d2,%d0 + move.l %a5,%d7 + moveq #124,%d2 + move.l %d0,-(%sp) + move.l %d5,-(%sp) + pea 120.w + move.l %d6,-(%sp) + jsr (%a3) + lea (16,%sp),%sp + move.l %d5,60(%sp) + move.l %d2,56(%sp) + moveq #10,%d1 + remu.l %d1,%d0:%d7 + move.l %d6,52(%sp) + movem.l (%sp),#15612 + move.l %d0,64(%sp) + lea (48,%sp),%sp + jra glyph + .size label, .-label + .align 2 + .type trig_leds, @function +trig_leds: + move.l %d2,-(%sp) + tst.b leds_shown.l + jne .L302 + move.l #1175169420,%a0 + move.b (%a0),leds_kept + move.l #1175169421,%a0 + move.b (%a0),leds_kept+1 + move.l #1175169422,%a0 + move.b (%a0),leds_kept+2 + move.l #1175169423,%a0 + move.b (%a0),leds_kept+3 +.L302: + mvz.w 10(%sp),%d0 + moveq #1,%d2 + move.l %d0,%d1 + lsr.l #2,%d1 + add.l %d0,%d0 + move.l %d1,%a0 + add.l #1175169420,%a0 clr.b %d1 - move.b %d1,268525900 - move.b 5(%a2),%d4 - jmi .L134 - clr.l 40(%sp) - move.b 269161681,%d1 - mvs.b %d4,%d3 - move.b 4(%a2),%d0 - lea arr_path,%a4 - move.l %d3,%a3 - mov3q.l #7,%d3 - and.l %d3,%d1 - mvz.b %d0,%d3 - move.b %d1,18(%a2,%d3.l) - tst.b %d0 - jne .L138 -.L183: - tst.b 14(%a2) - jne .L137 - lea arr_write,%a0 + move.b %d2,leds_shown + mov3q.l #7,%d2 + and.l %d2,%d0 + move.b %d1,1175169420 + move.b %d1,1175169421 + move.b %d1,1175169422 + move.b %d1,1175169423 + mov3q.l #1,%d1 + lsl.l %d0,%d1 + move.b %d1,(%a0) + move.l (%sp)+,%d2 + rts + .size trig_leds, .-trig_leds + .align 2 + .type playing_mark.constprop.0, @function +playing_mark.constprop.0: + lea (-20,%sp),%sp + move.l 24(%sp),%a1 + movem.l #124,(%sp) + move.l 28(%sp),%d2 + mov3q.l #1,%d6 + move.l %d2,%d5 + move.l %d2,%d0 + addq.l #5,%d5 +.L306: + mov3q.l #7,%d4 + and.l %d0,%d4 + move.l %d0,%d1 + asr.l #3,%d1 + sub.l %a0,%a0 + addq.l #1,%d0 + sub.l %d1,%a0 + add.l %a1,%a0 + move.l %d6,%d1 + move.b 207(%a0),%d3 + lsl.l %d4,%d1 + or.l %d3,%d1 + move.b %d1,207(%a0) + cmp.l %d5,%d0 + jne .L306 + move.l %d2,%d0 + move.l %d2,%d6 + addq.l #1,%d0 mov3q.l #1,%d3 - sub.l %a5,%a5 - move.l %a0,36(%sp) -.L140: - pea .LC4 - move.l %a5,48(%sp) - addq.l #1,%a5 - move.l %a5,-(%sp) - move.l %d2,-(%sp) - jsr (%a4) - move.l 56(%sp),-(%sp) - move.l %a2,-(%sp) - move.l 56(%sp),%a0 - jsr (%a0) + addq.l #4,%d6 +.L307: + mov3q.l #7,%d5 + and.l %d0,%d5 + move.l %d0,%d1 + asr.l #3,%d1 + sub.l %a0,%a0 + addq.l #1,%d0 + sub.l %d1,%a0 + add.l %a1,%a0 + move.l %d3,%d1 + move.b 215(%a0),%d4 + lsl.l %d5,%d1 + or.l %d4,%d1 + move.b %d1,215(%a0) + cmp.l %d0,%d6 + jne .L307 + addq.l #2,%d2 + mov3q.l #7,%d1 + and.l %d2,%d1 + asr.l #3,%d2 + clr.l %d0 + sub.l %d2,%d0 + add.l %d0,%a1 + move.b 223(%a1),%d0 + lsl.l %d1,%d3 + or.l %d0,%d3 + move.b %d3,223(%a1) + movem.l (%sp),#124 lea (20,%sp),%sp - and.l %d0,%d3 - moveq #8,%d0 - cmp.l %a5,%d0 - jne .L140 - move.b %d3,%d0 - move.b %d0,7(%a2) - jra .L138 -.L129: - lsl.l #3,%d0 - lea arr_write,%a0 + rts + .size playing_mark.constprop.0, .-playing_mark.constprop.0 + .align 2 + .type read_book.constprop.0, @function +read_book.constprop.0: + lea (-32,%sp),%sp + mvz.w 42(%sp),%d0 + movem.l #15420,(%sp) + move.l 36(%sp),%d4 mov3q.l #1,%d3 - sub.l %a3,%a3 - lea arr_path,%a4 - move.l %a0,36(%sp) - move.l %d0,%a5 - addq.l #1,%a5 -.L131: - pea .LC3 - pea (%a3,%a5.l) - move.l %d2,-(%sp) - jsr (%a4) - move.l %a3,-(%sp) - move.l %a2,-(%sp) + move.l %d4,%d5 + sub.l %a2,%a2 + lsl.l #3,%d0 + lea arr_path,%a5 + add.l #96058,%d5 + lea arr_read,%a4 + move.l %d0,%a3 addq.l #1,%a3 - move.l 56(%sp),%a0 - jsr (%a0) - lea (20,%sp),%sp - and.l %d0,%d3 - moveq #8,%d0 - cmp.l %a3,%d0 - jeq .L130 - pea .LC3 - pea (%a3,%a5.l) - move.l %d2,-(%sp) - jsr (%a4) - move.l %a3,-(%sp) +.L314: + pea .LC2 + pea (%a2,%a3.l) + move.l %d5,-(%sp) + jsr (%a5) move.l %a2,-(%sp) - addq.l #1,%a3 - move.l 56(%sp),%a0 - jsr (%a0) + move.l %d4,-(%sp) + jsr (%a4) lea (20,%sp),%sp - and.l %d0,%d3 - moveq #8,%d0 - cmp.l %a3,%d0 - jne .L131 - jra .L130 -.L181: - clr.l -(%sp) + move.l %d0,%d2 + mov3q.l #1,%d0 + cmp.l %d2,%d0 + jeq .L313 move.l %a2,-(%sp) - jsr write_changed + jsr 1074398236 + addq.l #4,%sp + mov3q.l #-1,%d0 + cmp.l %d2,%d0 + sne %d2 + mvs.b %d2,%d2 + neg.l %d2 + and.l %d2,%d3 +.L313: + addq.l #1,%a2 + moveq #8,%d0 + cmp.l %a2,%d0 + jne .L314 + move.l %d3,%d0 + movem.l (%sp),#15420 + lea (32,%sp),%sp + rts + .size read_book.constprop.0, .-read_book.constprop.0 + .section .rodata.str1.1 +.LC12: + .string "sl" + .text + .align 2 + .type give_back, @function +give_back: + lea (-16,%sp),%sp + move.l %d2,-(%sp) + pea lend_buf + move.l 28(%sp),-(%sp) + jsr note_read addq.l #8,%sp - move.l %d0,%d3 + move.l %d0,%d1 tst.l %d0 - jeq .L125 - clr.b %d1 - move.b %d1,268525900 - move.b 5(%a2),%d4 - jmi .L134 - clr.l 40(%sp) - move.b 269161681,%d1 - move.b 4(%a2),%d0 - mov3q.l #7,%d3 - mvs.b %d4,%d5 - lea arr_path,%a4 - move.l %d5,%a3 - and.l %d3,%d1 - mvz.b %d0,%d3 - move.b %d1,18(%a2,%d3.l) - tst.b %d0 - jne .L138 - jra .L183 -.L179: - mov3q.l #-1,%d0 - jra .L111 -.L182: - clr.l 44(%sp) - mov3q.l #1,%d3 - lea arr_read,%a5 -.L144: - pea .LC4 - move.l %a3,40(%sp) - addq.l #1,%a3 - move.l %a3,-(%sp) + jeq .L329 + tst.b lend_buf+5.l + jeq .L321 + mvz.b lend_buf+4,%d0 + move.l 24(%sp),%a1 + move.l %d0,%a0 + mvz.b 8(%a1),%d0 + cmp.l %a0,%d0 + jne .L321 + add.l #96058,%a1 + move.l %a1,16(%sp) + clr.l 8(%sp) +.L328: + move.l 8(%sp),-(%sp) + move.l 12(%sp),%d0 + addq.l #6,%d0 + move.l %d0,16(%sp) + move.l %d0,-(%sp) + pea lend_buf + move.l %d1,16(%sp) + jsr is_copy + lea (12,%sp),%sp + move.l 4(%sp),%d1 + tst.l %d0 + jeq .L326 + move.l 24(%sp),%a0 + mov3q.l #-1,%d2 + mvz.b 8(%a0),%d0 + pea .LC12 + move.l 16(%sp),%a1 + lsl.l #3,%d0 + pea 1(%a1,%d0.l) + move.l 24(%sp),-(%sp) + move.l %d1,16(%sp) + jsr arr_path + move.l 24(%sp),-(%sp) + move.l 40(%sp),-(%sp) + jsr arr_read + lea (20,%sp),%sp + move.l 4(%sp),%d1 + cmp.l %d0,%d2 + jeq .L330 + tst.l %d0 + jeq .L326 + move.l 24(%sp),%a0 + mvz.b 8(%a0),%d0 + pea .LC2 + move.l 16(%sp),%a1 + lsl.l #3,%d0 + pea 1(%a1,%d0.l) + move.l 24(%sp),-(%sp) + move.l %d1,16(%sp) + jsr arr_path + move.l 24(%sp),-(%sp) + move.l 40(%sp),-(%sp) + jsr arr_write + move.l 24(%sp),%d1 + lea (20,%sp),%sp + and.l %d0,%d1 +.L326: + mov3q.l #1,%d0 + cmp.l 8(%sp),%d0 + jne .L331 + tst.l %d1 + jne .L340 +.L321: + move.l (%sp)+,%d2 + move.l %d1,%d0 + lea (16,%sp),%sp + rts +.L329: + move.l (%sp)+,%d2 + mov3q.l #1,%d1 + move.l %d1,%d0 + lea (16,%sp),%sp + rts +.L331: + mov3q.l #1,8(%sp) + jra .L328 +.L340: + clr.b %d0 + pea .LC2 + pea .LC6 + move.l 32(%sp),%d2 + add.l #96058,%d2 move.l %d2,-(%sp) - jsr (%a4) - move.l 48(%sp),-(%sp) - move.l %a2,-(%sp) + move.b %d0,lend_buf+5 + jsr project_file + pea 360.w + pea lend_buf + move.l 44(%sp),-(%sp) + jsr put_data + lea (24,%sp),%sp + move.l (%sp)+,%d2 + move.l %d0,%d1 + move.l %d1,%d0 + lea (16,%sp),%sp + rts +.L330: + clr.l %d1 + jra .L326 + .size give_back, .-give_back + .align 2 + .type lend.constprop.0, @function +lend.constprop.0: + lea (-404,%sp),%sp + movem.l #31804,(%sp) + move.l 408(%sp),%a3 + pea 44(%sp) + move.l %a3,-(%sp) + jsr note_read + addq.l #8,%sp + tst.b 49(%sp) + jeq .L342 + mvz.b 48(%sp),%d1 + mvz.b 8(%a3),%d0 + cmp.l %d1,%d0 + jeq .L343 +.L342: + lea as_own_names,%a2 + mov3q.l #1,%d2 + move.l #268469372,%a1 + move.l %a2,%a0 + sub.l %a2,%a1 +.L345: + move.b (%a1,%a0.l),%d1 + move.b %d1,(%a0)+ + cmp.l #as_own_names+16,%a0 + jne .L345 + clr.b %d0 + lea as_own_names+17,%a6 + move.l #268475007,%a1 + sub.l %a2,%a1 + move.l %a6,%a0 + move.b %d0,as_own_names+16 +.L346: + move.b (%a1,%a0.l),%d1 + move.b %d1,(%a0)+ + cmp.l #as_own_names+33,%a0 + jne .L346 + clr.b %d1 + moveq #1,%d4 + move.l %a3,%d3 + mov3q.l #6,%a4 + add.l #96058,%d3 + lea arr_path,%a5 + move.b %d1,as_own_names+33 + move.b %d4,as_own_ok + move.l #arr_write,%d4 +.L347: + mvz.b 8(%a3),%d0 + pea .LC12 + lsl.l #3,%d0 + pea 1(%a4,%d0.l) + move.l %d3,-(%sp) + jsr (%a5) + move.l %a4,-(%sp) + move.l %a3,-(%sp) + move.l %d4,%a0 + jsr (%a0) + lea (20,%sp),%sp + and.l %d0,%d2 + mov3q.l #7,%d0 + cmp.l %a4,%d0 + jne .L361 + move.b 8(%a3),%d0 + tst.b 49(%sp) + jeq .L349 + mvz.b 48(%sp),%d1 + mvz.b %d0,%d5 + cmp.l %d1,%d5 + jne .L378 +.L349: + move.b %d0,lend_buf+4 + moveq #1,%d5 + clr.w %d0 + move.l #1095978034,%d1 + move.l %d1,lend_buf + lea lend_buf+8,%a0 + move.b %d5,lend_buf+5 + move.w %d0,lend_buf+6 +.L358: + move.l (%a2)+,(%a0)+ + cmp.l #as_own_names+16,%a2 + jne .L358 + lea lend_buf+24,%a0 +.L359: + move.b (%a6)+,(%a0)+ + cmp.l #as_own_names+33,%a6 + jne .L359 + tst.l %d2 + jne .L379 + move.l %d2,%d0 + movem.l (%sp),#31804 + lea (404,%sp),%sp + rts +.L361: + mov3q.l #7,%a4 + jra .L347 +.L379: + pea .LC2 + pea .LC6 + move.l %d3,-(%sp) + jsr project_file + pea 360.w + pea lend_buf + move.l %a3,-(%sp) + jsr put_data + lea (24,%sp),%sp + move.l %d0,%d2 + move.l %d2,%d0 + movem.l (%sp),#31804 + lea (404,%sp),%sp + rts +.L378: + lsl.l #3,%d1 + sub.l %a4,%a4 + mov3q.l #1,40(%sp) + pea .LC2 + lea 7(%a4,%d1.l),%a0 + move.l %a0,40(%sp) + move.l %a0,-(%sp) + move.l %d3,-(%sp) jsr (%a5) + mov3q.l #7,-(%sp) + move.l %a3,-(%sp) + jsr arr_read lea (20,%sp),%sp - mov3q.l #1,%d1 - cmp.l %d0,%d1 - jeq .L184 - pea .LC3 + subq.l #1,%d0 + tst.l %d0 + jeq .L380 +.L352: + mov3q.l #1,%d0 + cmp.l %a4,%d0 + jeq .L356 + mvz.b 48(%sp),%d1 + mov3q.l #1,%a4 + pea .LC2 + lsl.l #3,%d1 + lea 7(%a4,%d1.l),%a0 + move.l %a0,40(%sp) + move.l %a0,-(%sp) + move.l %d3,-(%sp) + jsr (%a5) + mov3q.l #7,-(%sp) move.l %a3,-(%sp) - move.l %d2,-(%sp) - jsr (%a4) - move.l 48(%sp),-(%sp) - move.l %a2,-(%sp) + jsr arr_read + lea (20,%sp),%sp + subq.l #1,%d0 + tst.l %d0 + jne .L352 + jra .L380 +.L356: + mvz.b 8(%a3),%d0 + pea .LC12 + mov3q.l #1,%d4 + moveq #1,%d5 + lsl.l #3,%d0 + move.l %d0,%a0 + pea 8(%a0) + move.l %d3,-(%sp) jsr (%a5) + mov3q.l #7,-(%sp) + move.l %a3,-(%sp) + jsr arr_read + and.l 60(%sp),%d2 + lea (20,%sp),%sp + move.b %d5,lend_buf+5 + cmp.l %d0,%d4 + seq %d1 + move.b 8(%a3),%d0 + lea lend_buf+8,%a0 + mvs.b %d1,%d1 + move.b %d0,lend_buf+4 + clr.w %d0 + neg.l %d1 + and.l %d1,%d2 + move.l #1095978034,%d1 + move.l %d1,lend_buf + move.w %d0,lend_buf+6 + jra .L358 +.L380: + move.l %a4,-(%sp) + mov3q.l #7,-(%sp) + pea 52(%sp) + jsr is_copy + lea (12,%sp),%sp + tst.l %d0 + jeq .L352 + pea .LC12 + move.l 40(%sp),-(%sp) + move.l %d3,-(%sp) + jsr (%a5) + mov3q.l #7,-(%sp) + move.l %a3,-(%sp) + jsr arr_read lea (20,%sp),%sp - mov3q.l #1,%d1 - cmp.l %d0,%d1 - jeq .L143 - move.l 36(%sp),-(%sp) - move.l %d0,36(%sp) - jsr 1074398236 mov3q.l #-1,%d5 - addq.l #4,%sp - move.l 32(%sp),%d0 cmp.l %d0,%d5 - sne %d0 - mvs.b %d0,%d0 - neg.l %d0 - and.l %d0,%d3 -.L143: - moveq #8,%d0 - cmp.l %a3,%d0 - jne .L144 - lea (47,%sp),%a0 - move.b (%a0),268525900 - jra .L145 -.L125: - tst.b 5(%a2) - jlt .L185 - mov3q.l #-1,40(%sp) -.L139: - st %d0 - moveq #1,%d5 - mov3q.l #1,%d3 - move.b %d0,5(%a2) - move.b %d5,6(%a2) - moveq #9,%d0 - jra .L123 -.L134: - clr.l 40(%sp) -.L172: - clr.l %d3 - moveq #10,%d0 - jra .L123 -.L184: - move.l 36(%sp),%d5 - lsl.l %d5,%d0 - or.l %d0,44(%sp) - jra .L143 -.L178: - move.l 64(%sp),-(%sp) - move.l 64(%sp),-(%sp) - move.l 64(%sp),-(%sp) - move.l 64(%sp),-(%sp) - jsr as_stock_writer - move.l %d0,56(%sp) - lea (16,%sp),%sp - move.l %a2,-(%sp) - jsr remember + jeq .L362 + tst.l %d0 + jeq .L352 + pea .LC2 + move.l 40(%sp),-(%sp) + move.l %d3,-(%sp) + jsr (%a5) + mov3q.l #7,-(%sp) + move.l %a3,-(%sp) + move.l %d4,%a0 + jsr (%a0) + lea (20,%sp),%sp + and.l %d0,40(%sp) + tst.b 48(%sp) + jne .L352 + tst.b 11(%a3) + jeq .L352 + pea .LC4 + move.l 40(%sp),-(%sp) + move.l %d3,-(%sp) + jsr (%a5) + mov3q.l #7,-(%sp) + move.l %a3,-(%sp) + move.l %d4,%a0 + jsr (%a0) + and.l %d0,60(%sp) + lea (20,%sp),%sp + jra .L352 +.L343: + move.l %a3,-(%sp) + jsr give_back + lea as_own_names,%a2 addq.l #4,%sp - jra .L108 -.L180: - move.l 64(%sp),-(%sp) - move.l 64(%sp),-(%sp) - move.l 64(%sp),-(%sp) - move.l 64(%sp),-(%sp) - jsr as_stock_writer - move.b 5(%a2),%d4 - move.l %d0,56(%sp) - lea (16,%sp),%sp - tst.b %d4 - jlt .L172 - tst.l 40(%sp) - jlt .L139 - move.b 269161681,%d1 - mvs.b %d4,%d0 - mov3q.l #7,%d3 - lea arr_path,%a4 - move.l %d0,%a3 - move.b 4(%a2),%d0 - and.l %d3,%d1 - mvz.b %d0,%d3 - move.b %d1,18(%a2,%d3.l) - tst.b %d0 - jne .L138 - jra .L183 -.L185: - mov3q.l #-1,40(%sp) - moveq #10,%d0 - jra .L123 -.L114: - moveq #1,%d4 - move.b %d4,-2147483632 - tst.b 54(%a2) - jne .L110 - move.b 34(%a2),%d1 - jra .L115 - .size as_writer, .-as_writer - .align 2 - .globl as_project_load - .type as_project_load, @function -as_project_load: - move.l %d2,-(%sp) - jsr ready - mov3q.l #1,%d1 - move.l %d0,%a1 - move.l evlog,%d0 - lsl.l #4,%d0 - or.l %d1,%d0 - moveq #24,%d1 - move.l %d0,%d2 - clr.w %d2 - swap %d2 - move.l %d0,evlog - move.l %d2,%a0 + move.l #268469372,%a1 move.l %d0,%d2 - lsr.l %d1,%d2 - move.l %d0,%d1 - lsr.l #8,%d1 - move.b %d2,269455136 - move.w %a0,%d2 - move.b %d2,269455137 - move.b %d1,269455138 - move.b %d0,269455139 - st %d0 - moveq #1,%d1 - mvz.w #256,%d2 - move.l %d2,46(%a1) - move.b %d0,5(%a1) - move.b %d1,8(%a1) - tst.b 56(%a1) - jne .L186 - move.l %a1,%d1 - add.l #34,%d1 - lea (18,%a1),%a0 -.L188: - clr.b (%a0)+ - cmp.l %d1,%a0 - jne .L188 + move.l %a2,%a0 + sub.l %a2,%a1 + jra .L345 +.L362: + clr.l 40(%sp) + jra .L352 + .size lend.constprop.0, .-lend.constprop.0 + .align 2 + .type sl_load, @function +sl_load: + lea (-64,%sp),%sp + movem.l #31996,(%sp) + move.l 68(%sp),%a5 st %d0 - clr.b %d1 - move.w #256,%d2 - move.b %d0,34(%a1) - move.b %d1,38(%a1) - move.w %d2,54(%a1) -.L186: - move.l (%sp)+,%d2 + move.b 87(%a5),%d1 + mvs.b 5301(%a5),%d3 + mvz.b %d1,%d2 + move.b %d1,46(%sp) + move.b 91(%a5,%d2.l),%d1 + move.b %d0,5301(%a5) + move.b %d1,45(%sp) + mvz.b %d1,%d1 + move.l %d1,%a2 + cmp.l %d1,%d3 + jcs .L441 + mov3q.l #1,%d0 +.L381: + movem.l (%sp),#31996 + lea (64,%sp),%sp rts - .size as_project_load, .-as_project_load - .align 2 - .globl as_project_new - .type as_project_new, @function -as_project_new: - move.l %a2,-(%sp) +.L441: + move.b 269455127,%d1 + move.b %d1,47(%sp) + jpl .L442 + move.w %d2,%d0 + move.w %a2,%d5 + lea (5624,%a5),%a0 + move.l %a5,%d7 + add.l #11276,%d7 + lea (5336,%a5),%a6 + move.l %a0,52(%sp) + move.l %a6,%a4 + move.l %d7,%d2 + move.l %a0,%d4 + mulu.w #288,%d0 + mulu.w #5652,%d5 + lea 125(%a5,%d0.l),%a1 + add.l %d7,%d5 +.L388: + lea (-18,%a1),%a0 + move.l %a4,%a3 +.L385: + move.b (%a0)+,(%a3)+ + cmp.l %a0,%a1 + jne .L385 + mvz.b (%a4),%d1 + mvz.b 8(%a5),%d0 + cmp.l %d1,%d0 + jeq .L443 +.L386: + add.l #5652,%d4 + add.l #5652,%d2 + lea (18,%a4),%a4 + lea (18,%a1),%a1 + cmp.l %d2,%d5 + jne .L388 + mvs.w #-5624,%d6 + move.l #96058,%a0 + clr.l %d4 + move.l 52(%sp),%d5 + add.l %a5,%a0 + move.l %d3,56(%sp) + move.l %a0,48(%sp) + sub.l %a5,%d6 + lea arr_path,%a4 + lea arr_read,%a3 + move.l %d7,60(%sp) + move.l %d7,%d3 + move.l %a0,%d2 +.L397: + move.b (%a6),%d1 + mvz.b 8(%a5),%d7 + mvz.b %d1,%d0 + cmp.l %d0,%d7 + jeq .L389 + tst.b %d1 + jne .L416 + tst.b 11(%a5) + jeq .L416 + lsl.l #3,%d0 + mvz.b 1(%a6),%d1 + lea .LC4,%a0 + move.l %a0,-(%sp) + move.l %d1,%a0 + pea 1(%a0,%d0.l) move.l %d2,-(%sp) + jsr (%a4) + mov3q.l #7,-(%sp) + move.l %a5,-(%sp) + jsr (%a3) + lea (20,%sp),%sp + tst.l %d0 + jne .L391 +.L445: + mov3q.l #7,-(%sp) + jsr 1074398236 + addq.l #4,%sp +.L392: + move.l %d6,%a1 + move.l %d5,%a0 + add.l #268475024,%a1 +.L394: + move.b (%a1,%a0.l),%d0 + move.b %d0,(%a0)+ + cmp.l %a0,%d3 + jne .L394 +.L389: + addq.l #1,%d4 + lea (18,%a6),%a6 + add.l #5652,%d5 + add.l #-5652,%d6 + add.l #5652,%d3 + cmp.l %a2,%d4 + jne .L397 + move.b 45(%sp),%d1 + move.b 46(%sp),%d2 + move.l 56(%sp),%d3 + move.l 60(%sp),%d7 + move.b %d1,5306(%a5) + move.b %d2,5308(%a5) + tst.b 47(%sp) + jge .L398 + move.l %d4,%d5 +.L399: + cmp.l %d3,%d5 + jls .L408 + mvz.w #5652,%d2 + move.l %a5,%d0 + add.l #5642,%d0 + move.l %d3,%d1 + muls.l %d3,%d2 + move.l %d2,%a1 + add.l %d0,%a1 + move.l %a1,%a0 +.L404: + move.b (%a0),%d0 + move.b 1(%a0),%d2 + lea (5652,%a0),%a0 + or.l %d2,%d0 + tst.b %d0 + jne .L405 + addq.l #1,%d1 + cmp.l %d1,%d5 + jne .L404 +.L405: + cmp.l %d4,%d1 + jcs .L407 +.L408: + moveq #6,%d0 + move.w %d3,%d6 + clr.w %d1 + move.b %d3,%d2 + move.b %d3,5307(%a5) + move.l #268469371,%a1 + move.b %d0,5331(%a5) + st %d0 + mulu.w #5652,%d6 + move.w %d1,5334(%a5) + move.l %d6,%d1 + add.l #5624,%d1 + add.l %a5,%d1 + move.b %d0,5333(%a5) + sub.l %d1,%a1 + move.l %d1,%a0 + add.l #5652,%d1 +.L410: + move.b (%a0)+,%d0 + move.b %d0,(%a1,%a0.l) + cmp.l %d1,%a0 + jne .L410 + move.b %d2,5332(%a5) + move.l #268525900,%a0 + moveq #-65,%d1 + addq.l #1,%d3 + move.b (%a0),%d0 + and.l %d1,%d0 + move.b %d0,(%a0) + mvz.b 5306(%a5),%d5 + cmp.l %d3,%d5 + jls .L411 + lea (11294,%a5),%a0 + add.l %d6,%a0 +.L412: + move.b (%a0),%d0 + move.b 1(%a0),%d1 + lea (5652,%a0),%a0 + or.l %d1,%d0 + tst.b %d0 + jne .L411 + addq.l #1,%d3 + cmp.l %d3,%d5 + jne .L412 +.L411: + cmp.l %d4,%d3 + jcs .L444 + moveq #15,%d0 + and.l %d0,%d2 + move.w #257,%d1 + moveq #-128,%d0 + or.l %d0,%d2 + move.w %d1,5302(%a5) + move.b %d2,269455127 +.L447: + mov3q.l #1,%d0 + jra .L381 +.L443: + mvz.b 1(%a4),%d0 + move.l %d4,%a0 + mulu.w #5652,%d0 + move.l %d0,%a3 + sub.l %d4,%a3 + add.l #268435460,%a3 +.L387: + move.b (%a3,%a0.l),%d0 + move.b %d0,(%a0)+ + cmp.l %a0,%d2 + jeq .L386 + move.b (%a3,%a0.l),%d0 + move.b %d0,(%a0)+ + cmp.l %a0,%d2 + jne .L387 + jra .L386 +.L416: + lsl.l #3,%d0 + mvz.b 1(%a6),%d1 + lea .LC2,%a0 + move.l %a0,-(%sp) + move.l %d1,%a0 + pea 1(%a0,%d0.l) + move.l %d2,-(%sp) + jsr (%a4) + mov3q.l #7,-(%sp) + move.l %a5,-(%sp) + jsr (%a3) + lea (20,%sp),%sp + tst.l %d0 + jeq .L445 +.L391: + addq.l #1,%d0 + tst.l %d0 + jne .L392 + clr.b %d2 + mvz.b 8(%a5),%d0 + move.l %d0,-(%sp) + move.l %a5,-(%sp) + jsr (read_book.constprop.0) + addq.l #8,%sp + move.b %d2,268525900 + tst.b 47(%sp) + jge .L446 + clr.l %d0 +.L448: + movem.l (%sp),#31996 + lea (64,%sp),%sp + rts +.L442: + move.l %a5,-(%sp) + jsr (lend.constprop.0) + addq.l #4,%sp + tst.l %d0 + jeq .L381 + move.w %d2,%d0 + move.w %a2,%d5 + lea (5624,%a5),%a0 + move.l %a5,%d7 + add.l #11276,%d7 + lea (5336,%a5),%a6 + move.l %a0,52(%sp) + move.l %a6,%a4 + move.l %d7,%d2 + move.l %a0,%d4 + mulu.w #288,%d0 + mulu.w #5652,%d5 + lea 125(%a5,%d0.l),%a1 + add.l %d7,%d5 + jra .L388 +.L407: + move.b (%a1),%d0 + move.b 1(%a1),%d1 + lea (5652,%a1),%a1 + or.l %d1,%d0 + tst.b %d0 + jne .L408 + addq.l #1,%d3 + cmp.l %d5,%d3 + jne .L407 + moveq #6,%d0 + move.w %d3,%d6 + clr.w %d1 + move.l #268469371,%a1 + move.b %d3,%d2 + move.b %d3,5307(%a5) + move.b %d0,5331(%a5) + st %d0 + mulu.w #5652,%d6 + move.w %d1,5334(%a5) + move.l %d6,%d1 + add.l #5624,%d1 + add.l %a5,%d1 + sub.l %d1,%a1 + move.l %d1,%a0 + add.l #5652,%d1 + move.b %d0,5333(%a5) + jra .L410 +.L398: + move.b 45(%sp),%d1 + mvz.w %d4,%d0 + lea lend_buf+40,%a2 + move.l 52(%sp),%d2 + move.l #lend_buf+104,%d5 + lea (5640,%a5),%a1 + lea (%a2,%d0.l*4),%a3 + move.l #-2128831035,%d6 + move.b %d1,lend_buf+6 +.L402: + move.l %d2,%a0 + move.l %d6,%d0 +.L400: + mvz.b (%a0)+,%d1 + eor.l %d1,%d0 + move.l #16777619,%d1 + muls.l %d1,%d0 + cmp.l %a0,%d7 + jne .L400 + move.l %d0,(%a2)+ + move.l %d5,%a4 + move.l %d2,%a0 +.L401: + move.b (%a0)+,(%a4)+ + cmp.l %a0,%a1 + jne .L401 + add.l #5652,%d2 + add.l #16,%d5 + lea (5652,%a0),%a1 + add.l #5652,%d7 + cmp.l %a2,%a3 + jne .L402 + pea .LC2 + move.l #96058,%a0 + pea .LC6 + add.l %a5,%a0 + move.l %a0,-(%sp) + jsr project_file + pea 360.w + pea lend_buf + move.l %a5,-(%sp) + jsr put_data + lea (24,%sp),%sp + mvz.b 5306(%a5),%d5 + jra .L399 +.L444: + move.w %d3,%d1 + move.l #268475023,%a1 + mulu.w #5652,%d1 + add.l #5624,%d1 + add.l %a5,%d1 + sub.l %d1,%a1 + move.l %d1,%a0 + add.l #5652,%d1 +.L415: + move.b (%a0)+,%d0 + move.b %d0,(%a1,%a0.l) + cmp.l %d1,%a0 + jne .L415 + move.b %d3,5333(%a5) + move.l #268525900,%a0 + moveq #127,%d1 + move.b (%a0),%d0 + and.l %d1,%d0 + move.w #257,%d1 + move.b %d0,(%a0) + moveq #15,%d0 + and.l %d0,%d2 + moveq #-128,%d0 + move.w %d1,5302(%a5) + or.l %d0,%d2 + move.b %d2,269455127 + jra .L447 +.L446: + clr.b %d0 + pea .LC2 + pea .LC6 + move.l 56(%sp),-(%sp) + move.b %d0,lend_buf+5 + jsr project_file + pea 360.w + pea lend_buf + move.l %a5,-(%sp) + jsr put_data + lea (24,%sp),%sp + clr.l %d0 + jra .L448 + .size sl_load, .-sl_load + .align 2 + .type text, @function +text: + lea (-44,%sp),%sp + movem.l #16412,(%sp) + move.l %sp,%d4 + add.l #16,%d4 + move.l #1074524426,%a0 + move.l %d4,%a6 +.L450: + move.l %a0,%a1 + moveq #24,%d1 + move.b (%a1)+,%d0 + addq.l #4,%a0 + move.b (%a1),%d2 + lsl.l %d1,%d0 + move.b -2(%a0),%d1 + mvz.b -1(%a0),%d3 + mvz.b %d2,%d2 + or.l %d3,%d0 + mvz.b %d1,%d1 + swap %d2 + clr.w %d2 + lsl.l #8,%d1 + or.l %d2,%d0 + or.l %d1,%d0 + move.l %d0,(%a6)+ + cmp.l #1074524454,%a0 + jne .L450 + move.l 60(%sp),-(%sp) + mov3q.l #-1,-(%sp) + moveq #59,%d0 + sub.l 64(%sp),%d0 + move.l %d0,-(%sp) + move.l 64(%sp),-(%sp) + move.l %d4,-(%sp) + move.l 68(%sp),48(%sp) + move.l #1074505846,-(%sp) + jsr 1073818584 + movem.l 24(%sp),#16412 + lea (68,%sp),%sp + rts + .size text, .-text + .align 2 + .type title_row, @function +title_row: + lea (-76,%sp),%sp + movem.l #19468,(%sp) + move.l 92(%sp),%a2 + move.l 88(%sp),%a1 + tst.b (%a2) + jeq .L461 + clr.l %d0 +.L456: + addq.l #1,%d0 + tst.b (%a2,%d0.l) + jne .L456 + move.l %d0,%d1 + moveq #18,%d2 + lsl.l #2,%d1 + moveq #101,%d3 + sub.l %d0,%d2 + move.l %d2,24(%sp) + sub.l %d1,%d3 + move.l %d3,20(%sp) +.L455: + move.l %a1,%d0 + moveq #9,%d3 + addq.l #1,%d0 + cmp.l %d0,%d3 + jcc .L462 + moveq #10,%d3 + move.l %d0,%d1 + divu.l %d3,%d1 + lea (29,%sp),%a0 + move.l %sp,%d3 + add.l #28,%d3 + add.l #48,%d1 + move.b %d1,28(%sp) +.L457: + moveq #10,%d2 + remu.l %d2,%d1:%d0 + moveq #58,%d0 + lea (52,%sp),%a6 + move.l %a0,%d2 + addq.l #2,%d2 + move.l %d2,%a3 + add.l #48,%d1 + move.b %d1,(%a0) + move.b %d0,1(%a0) + move.l %a1,-(%sp) + move.l %a6,-(%sp) + move.l 88(%sp),-(%sp) + jsr list_title + move.l 36(%sp),%d1 + move.l %d2,%a0 + sub.l %d3,%a0 + sub.l %a6,%d0 + sub.l %a0,%d1 + lea (12,%sp),%sp + cmp.l %d1,%d0 + jcc .L458 + move.l %d0,%d1 +.L458: + tst.l %d1 + jeq .L459 + move.l %a6,%d0 + move.l %d2,%a1 + add.l %d1,%d0 +.L460: + move.b (%a6)+,(%a1)+ + cmp.l %d0,%a6 + jne .L460 + move.l %d2,%a3 + add.l %d1,%a3 +.L459: + clr.b (%a3) + lea text,%a6 + move.l %d3,-(%sp) + mov3q.l #4,-(%sp) + pea 25.w + move.l 96(%sp),-(%sp) + jsr (%a6) + move.l %a2,-(%sp) + mov3q.l #4,-(%sp) + move.l 44(%sp),-(%sp) + move.l 112(%sp),-(%sp) + jsr (%a6) + lea (32,%sp),%sp + pea 9.w + pea 101.w + mov3q.l #3,-(%sp) + pea 24.w + move.l 100(%sp),-(%sp) + jsr invert + movem.l 20(%sp),#19468 + lea (96,%sp),%sp + rts +.L462: + move.l %sp,%d3 + add.l #28,%d3 + move.l %d3,%a0 + jra .L457 +.L461: + moveq #18,%d1 + moveq #101,%d2 + move.l %d1,24(%sp) + move.l %d2,20(%sp) + jra .L455 + .size title_row, .-title_row + .align 2 + .type draw_mark, @function +draw_mark: + lea (-92,%sp),%sp + movem.l #31996,(%sp) + move.l 104(%sp),-(%sp) + move.l %sp,%d2 + add.l #72,%d2 + move.l %d2,-(%sp) + move.l 104(%sp),-(%sp) + mov3q.l #7,%d3 + move.l 112(%sp),%a6 + move.l 124(%sp),%d7 + jsr list_title + clr.b %d1 + move.l %d0,%a1 + sub.l %d2,%a1 + move.b %d1,64(%sp) + move.b %d1,56(%sp) + lea (12,%sp),%sp + cmp.l %a1,%d3 + jcc .L471 + lea (75,%sp),%a0 + mov3q.l #7,%d0 +.L474: + mvs.b (%a0),%d1 + subq.l #1,%a0 + moveq #32,%d3 + cmp.l %d1,%d3 + jeq .L507 + subq.l #1,%d0 + tst.l %d0 + jne .L474 +.L503: + move.l %sp,%d5 + add.l #44,%d5 + mov3q.l #7,%d0 + clr.l %d1 + move.l %d5,%a2 + move.l %d2,%a0 +.L476: + move.b (%a0)+,(%a2)+ + addq.l #1,%d1 + cmp.l %d0,%d1 + jcs .L476 + clr.b %d1 + move.b %d1,44(%sp,%d0.l) + cmp.l %d0,%a1 + jls .L475 + move.l %d2,%a0 + add.l %d0,%a0 +.L477: + mvs.b (%a0),%d1 + addq.l #1,%a0 + moveq #32,%d3 + cmp.l %d1,%d3 + jne .L475 + addq.l #1,%d0 + cmp.l %a1,%d0 + jne .L477 +.L475: + move.l %d2,%a2 + sub.l %a0,%a0 + lea (52,%sp),%a3 + add.l %d0,%a2 +.L479: + move.l %a0,%d1 + add.l %d0,%d1 + cmp.l %a1,%d1 + jcc .L480 + move.b (%a2,%a0.l),(%a3)+ + addq.l #1,%a0 + mov3q.l #7,%d1 + cmp.l %a0,%d1 + jne .L479 +.L480: + clr.b %d2 + move.l %a6,%d4 + moveq #33,%d3 + mov3q.l #1,%d6 + add.l #88,%d4 + lea (328,%a6),%a1 + move.b %d2,52(%sp,%a0.l) +.L482: + mov3q.l #7,%d0 + and.l %d3,%d0 + move.l %d3,%d2 + asr.l #3,%d2 + mov3q.l #7,%d1 + move.l %d4,%a0 + sub.l %d2,%d1 + move.l %d6,%d2 + add.l %d1,%a0 + add.l %a1,%d1 + lsl.l %d0,%d2 + not.l %d2 +.L483: + move.b (%a0),%d0 + addq.l #8,%a0 + and.l %d2,%d0 + move.b %d0,-8(%a0) + cmp.l %a0,%d1 + jne .L483 + addq.l #1,%d3 + moveq #47,%d0 + cmp.l %d3,%d0 + jne .L482 + move.l %d5,-(%sp) + pea 34.w + pea 12.w + move.l %a6,-(%sp) + lea text,%a4 + jsr (%a4) + lea (16,%sp),%sp + tst.b 52(%sp) + jne .L508 + pea 46.w + pea 40.w + pea 33.w + pea 11.w + move.l %a6,-(%sp) + jsr invert + move.l 128(%sp),%d0 + moveq #9,%d1 + addq.l #1,%d0 + lea (20,%sp),%sp + cmp.l %d0,%d1 + jcc .L494 +.L509: + move.l %d0,%d1 + moveq #10,%d3 + divu.l %d3,%d1 + moveq #47,%d3 + lea (61,%sp),%a0 + lea (60,%sp),%a5 + moveq #10,%d2 + add.l #48,%d1 + move.b %d1,60(%sp) + remu.l %d2,%d1:%d0 + move.b %d3,1(%a0) + moveq #9,%d0 + add.l #48,%d1 + move.b %d1,(%a0) + cmp.l %d7,%d0 + jcs .L487 +.L510: + moveq #10,%d3 + mov3q.l #1,%d5 + remu.l %d3,%d1:%d7 + clr.b %d7 + lea (2,%a0),%a3 + moveq #48,%d3 + move.l %a3,%a2 + move.l %a6,%d6 + lea (336,%a6),%a1 + add.l #80,%d6 + add.l #48,%d1 + move.b %d1,(%a2)+ + move.b %d7,1(%a3) +.L489: + mov3q.l #7,%d0 + and.l %d3,%d0 + move.l %d3,%d2 + asr.l #3,%d2 + mov3q.l #7,%d1 + move.l %d6,%a0 + sub.l %d2,%d1 + move.l %d5,%d2 + add.l %d1,%a0 + add.l %a1,%d1 + lsl.l %d0,%d2 + not.l %d2 +.L490: + move.b (%a0),%d0 + addq.l #8,%a0 + and.l %d2,%d0 + move.b %d0,-8(%a0) + cmp.l %a0,%d1 + jne .L490 + addq.l #1,%d3 + moveq #57,%d0 + cmp.l %d3,%d0 + jne .L489 + move.b 97(%a6),%d0 + moveq #124,%d2 + moveq #50,%d1 + move.b 113(%a6),%d4 + move.b 121(%a6),%d6 + move.b 129(%a6),%d5 + mov3q.l #1,%a1 + or.l %d2,%d0 + move.b %d0,97(%a6) +.L492: + mov3q.l #7,%d2 + and.l %d1,%d2 + move.l %a1,%d0 + addq.l #2,%d1 + moveq #56,%d7 + lsl.l %d2,%d0 + move.l %d0,%d3 + move.l %d0,%d2 + or.l %d4,%d3 + or.l %d6,%d2 + or.l %d5,%d0 + move.b %d3,%d4 + move.b %d2,%d6 + move.b %d0,%d5 + cmp.l %d1,%d7 + jne .L492 + sub.l %a5,%a2 + move.l %a2,%d1 + move.b %d0,129(%a6) + move.b %d3,113(%a6) + move.b %d2,121(%a6) + lsl.l #2,%d1 + moveq #42,%d0 + move.l %a5,-(%sp) + pea 50.w + sub.l %d1,%d0 + move.l %d0,-(%sp) + move.l %a6,-(%sp) + jsr (%a4) + movem.l 16(%sp),#31996 + lea (108,%sp),%sp + rts +.L508: + pea 52(%sp) + pea 41.w + pea 12.w + move.l %a6,-(%sp) + jsr (%a4) + lea (16,%sp),%sp + pea 46.w + pea 40.w + pea 33.w + pea 11.w + move.l %a6,-(%sp) + jsr invert + move.l 128(%sp),%d0 + moveq #9,%d1 + addq.l #1,%d0 + lea (20,%sp),%sp + cmp.l %d0,%d1 + jcs .L509 +.L494: + moveq #10,%d2 + remu.l %d2,%d1:%d0 + moveq #47,%d3 + lea (60,%sp),%a5 + move.l %a5,%a0 + moveq #9,%d0 + add.l #48,%d1 + move.b %d1,(%a0) + move.b %d3,1(%a0) + cmp.l %d7,%d0 + jcc .L510 +.L487: + move.l %d7,%d0 + moveq #10,%d2 + divu.l %d2,%d0 + moveq #10,%d3 + mov3q.l #1,%d5 + remu.l %d3,%d1:%d7 + clr.b %d7 + lea (3,%a0),%a3 + add.l #48,%d0 + move.b %d0,2(%a0) + move.l %a3,%a2 + move.l %a6,%d6 + moveq #48,%d3 + add.l #80,%d6 + add.l #48,%d1 + move.b %d1,(%a2)+ + lea (336,%a6),%a1 + move.b %d7,1(%a3) + jra .L489 +.L471: + tst.l %a1 + jeq .L493 + move.l %sp,%d5 + add.l #44,%d5 + move.l %a1,%d0 + clr.l %d1 + move.l %d5,%a2 + move.l %d2,%a0 + jra .L476 +.L493: + clr.l %d0 + move.l %sp,%d5 + move.l %d2,%a2 + add.l #44,%d5 + sub.l %a0,%a0 + lea (52,%sp),%a3 + add.l %d0,%a2 + jra .L479 +.L507: + move.l %a1,%d1 + subq.l #1,%d1 + sub.l %d0,%d1 + mov3q.l #7,%d3 + cmp.l %d1,%d3 + jcs .L503 + move.l %sp,%d5 + add.l #44,%d5 + clr.l %d1 + move.l %d5,%a2 + move.l %d2,%a0 + jra .L476 + .size draw_mark, .-draw_mark + .align 2 + .type remember, @function +remember: + lea (-32,%sp),%sp + movem.l #31772,(%sp) + move.l #269455132,%a6 + moveq #24,%d4 + move.l #269455133,%a5 + move.l #269455134,%a4 + move.l #269455135,%a3 + move.l 36(%sp),%a2 + move.l #268435460,%a0 + move.b (%a6),%d0 + move.b (%a5),%d2 + move.b (%a4),%d1 + mvz.b (%a3),%d3 + lsl.l %d4,%d0 + mvz.b %d2,%d2 + move.w %d1,%a1 + move.l #-2128831035,%d1 + swap %d2 + clr.w %d2 + move.w %a1,%d4 + or.l %d2,%d0 + mvz.b %d4,%d4 + or.l %d3,%d0 + lsl.l #8,%d4 + or.l %d4,%d0 + moveq #24,%d4 + addq.l #1,%d0 + move.l %d0,%d2 + lsr.l %d4,%d2 + move.l %d0,%d3 + clr.w %d3 + swap %d3 + move.l %d0,14(%a2) + move.l %d2,%a1 + move.l %d0,%d2 + move.w %a1,%d4 + lsr.l #8,%d2 + lea (8,%a2),%a1 + move.b %d4,(%a6) + move.b %d3,(%a5) + move.b %d2,(%a4) + move.b %d0,(%a3) + moveq #65,%d0 + moveq #83,%d2 + moveq #66,%d4 + move.b %d0,269455120 + moveq #49,%d0 + move.b %d2,269455121 + move.b %d4,269455122 + move.b %d0,269455123 + move.b (%a1),269455124 + lea (11,%a2),%a1 + lea (18,%a2),%a2 + move.b (%a1),269455125 + move.b (%a2),269455126 +.L512: + mvz.b (%a0)+,%d0 + eor.l %d0,%d1 + move.l #16777619,%d0 + muls.l %d0,%d1 + cmp.l #268525900,%a0 + jne .L512 + move.l %d1,%d2 + moveq #24,%d4 + clr.w %d2 + swap %d2 + move.l %d1,%d3 + lsr.l %d4,%d3 + move.l %d1,%d0 + lsr.l #8,%d0 + move.b %d3,269455128 + move.b %d2,269455129 + move.b %d0,269455130 + move.b %d1,269455131 + movem.l (%sp),#31772 + lea (32,%sp),%sp + rts + .size remember, .-remember + .align 2 + .type ready, @function +ready: + move.l %a2,-(%sp) + move.l #1095979829,%d0 + move.l st_at,%a2 + move.l %d2,-(%sp) + cmp.l (%a2),%d0 + jeq .L523 + move.l %a2,%d1 + move.l %a2,%a0 + add.l #100698,%d1 +.L519: + clr.b (%a0)+ + cmp.l %d1,%a0 + jne .L519 + st %d2 + move.l #100698,%a0 + move.l %a0,4(%a2) + move.l #1095979829,(%a2) + move.b %d2,9(%a2) + move.b 269455136,%d0 + move.b 269455137,%d1 + move.w %d1,%a0 + move.b 269455138,%d1 + mvz.b 269455139,%d2 + move.l %d2,%a1 + st %d2 + mvz.b %d1,%d1 + lsl.l #8,%d1 + move.b %d2,38(%a2) + move.b %d2,5301(%a2) + move.b %d2,5305(%a2) + move.b %d2,5310(%a2) + moveq #24,%d2 + lsl.l %d2,%d0 + move.w %a0,%d2 + move.l #269455127,%a0 + mvz.b %d2,%d2 + swap %d2 + clr.w %d2 + or.l %d2,%d0 + move.l %a1,%d2 + or.l %d2,%d0 + or.l %d1,%d0 + move.l %d0,evlog + moveq #1,%d0 + move.b (%a0),5312(%a2) + move.b %d0,4972(%a2) + move.b 1175263980,%d0 + move.b 1175263981,%d1 + move.w %d1,%a0 + move.b 1175263982,%d1 + mvz.b 1175263983,%d2 + move.l %d2,%a1 + move.w #4000,%d2 + mvz.b %d1,%d1 + lsl.l #8,%d1 + move.w %d2,50(%a2) + moveq #-1,%d2 + move.w %d2,5006(%a2) + moveq #24,%d2 + lsl.l %d2,%d0 + move.w %a0,%d2 + mvz.b %d2,%d2 + swap %d2 + clr.w %d2 + or.l %d2,%d0 + move.l %a1,%d2 + or.l %d2,%d0 + or.l %d1,%d0 + sne %d0 + neg.l %d0 + move.b %d0,43(%a2) + move.l %a2,-(%sp) + jsr title_follow + addq.l #4,%sp +.L516: + move.l (%sp)+,%d2 + move.l %a2,%d0 + move.l (%sp)+,%a2 + rts +.L523: + move.l #100698,%d1 + cmp.l 4(%a2),%d1 + jeq .L516 + move.l %a2,%d1 + move.l %a2,%a0 + add.l #100698,%d1 + jra .L519 + .size ready, .-ready + .align 2 + .globl as_list_named + .type as_list_named, @function +as_list_named: + jsr ready + move.l %d0,%a0 + clr.b %d0 + move.b %d0,4976(%a0) + move.b %d0,44(%a0) + tst.l 4(%sp) + jeq .L524 + moveq #1,%d0 + move.b %d0,4971(%a0) +.L524: + rts + .size as_list_named, .-as_list_named + .align 2 + .type stopped, @function +stopped: + subq.l #4,%sp + move.l %d3,-(%sp) + moveq #24,%d3 + move.l %d2,-(%sp) + move.b -2147457608,%d0 + move.b -2147457607,%d1 + move.b -2147457606,%d2 + lsl.l %d3,%d0 + mvz.b %d1,%d1 + move.w %d2,%a0 + move.l %d1,%a1 + mvz.b -2147457605,%d2 + move.w %a0,%d3 + mvz.b %d3,%d1 + move.l %a1,%d3 + swap %d3 + clr.w %d3 + lsl.l #8,%d1 + or.l %d3,%d0 + or.l %d2,%d0 + or.l %d1,%d0 + jne .L534 + move.l #-2147457792,%a0 +.L532: + addq.l #1,%a0 + tst.b -1(%a0) + jne .L534 + cmp.l #-2147457776,%a0 + jne .L532 + move.b -2147463400,%d1 + move.b -2147463399,%d2 + move.l #-2147463394,%a0 + move.b %d2,8(%sp) + move.b -2147463398,%d3 + mvz.b -2147463397,%d2 + move.w %d3,%a1 + moveq #24,%d3 + lsl.l %d3,%d1 + mvz.b 8(%sp),%d3 + move.l %d3,8(%sp) + move.w %a1,%d3 + mvz.b %d3,%d3 + move.l %d3,%a1 + move.l 8(%sp),%d3 + swap %d3 + clr.w %d3 + move.l %d3,8(%sp) + or.l 8(%sp),%d1 + move.l %a1,%d3 + lsl.l #8,%d3 + or.l %d1,%d2 + or.l %d3,%d2 +.L535: + move.l %d2,%d1 + lsr.l %d0,%d1 + mov3q.l #1,%d3 + addq.l #1,%d0 + and.l %d3,%d1 + mulu.w #672,%d1 + tst.b (%a0,%d1.l) + jne .L534 + lea (84,%a0),%a0 + moveq #8,%d1 + cmp.l %d0,%d1 + jne .L535 + move.l (%sp)+,%d2 + mov3q.l #1,%d0 + move.l (%sp)+,%d3 + addq.l #4,%sp + rts +.L534: + move.l (%sp)+,%d2 + clr.l %d0 + move.l (%sp)+,%d3 + addq.l #4,%sp + rts + .size stopped, .-stopped + .section .rodata.str1.1 +.LC13: + .string "STOP TO READ SETLISTS" +.LC14: + .string "READING SETLISTS" + .text + .align 2 + .type lists_ready, @function +lists_ready: + subq.l #4,%sp + move.l %d2,-(%sp) + move.l 12(%sp),%a0 + tst.b 4972(%a0) + jne .L550 + move.l (%sp)+,%d2 + mov3q.l #1,%d1 + move.l %d1,%d0 + addq.l #4,%sp + rts +.L550: + jsr stopped + tst.l %d0 + jeq .L551 + move.l 12(%sp),%a0 + tst.b 4973(%a0) + jne .L544 + tst.b 9(%a0) + jge .L544 + clr.l -(%sp) + move.l %d0,8(%sp) + jsr 1073884372 + addq.l #4,%sp + move.l 4(%sp),%d1 + tst.l %d0 + jlt .L545 + moveq #1,%d0 + move.l 12(%sp),%a0 + move.b %d0,55(%a0) + move.b %d0,4973(%a0) +.L544: + pea 48.w + pea .LC14 + jsr 1074111160 + addq.l #8,%sp + move.l (%sp)+,%d2 + clr.l %d1 + move.l %d1,%d0 + addq.l #4,%sp + rts +.L551: + pea 48.w + pea .LC13 + move.l %d0,12(%sp) + jsr 1074111160 + addq.l #8,%sp + move.l 4(%sp),%d1 + move.l %d1,%d0 + move.l (%sp)+,%d2 + addq.l #4,%sp + rts +.L545: + addq.l #7,%d0 + tst.l %d0 + jne .L544 + clr.b %d0 + move.l 12(%sp),%a0 + move.b %d0,4972(%a0) + move.l %d1,%d0 + move.l (%sp)+,%d2 + addq.l #4,%sp + rts + .size lists_ready, .-lists_ready + .align 2 + .type take_back, @function +take_back: + lea (-36,%sp),%sp + movem.l #7292,(%sp) + move.l 40(%sp),%a1 + move.l 44(%sp),%a0 + add.l %a1,%a0 + mvz.b 5306(%a1),%d0 + mvz.b 5332(%a0),%d2 + cmp.l %d2,%d0 + jls .L552 + move.l 44(%sp),%d0 + addq.l #6,%d0 + mulu.w #5652,%d0 + move.w %d2,%d5 + mvz.w #5652,%d3 + move.l 44(%sp),%d1 + sub.l %d2,%d1 + lea (5624,%a1),%a0 + muls.l %d1,%d3 + move.l %d0,%d4 + add.l #268435478,%d4 + move.l %d4,%a4 + add.l #268435479,%d0 + move.b (%a4),%d4 + move.l %d0,%a4 + mov3q.l #1,%d1 + move.b (%a4),35(%sp) + mulu.w #5652,%d5 + move.l %d3,%a2 + move.l %a1,%d3 + sub.l %a1,%a2 + add.l #5640,%d3 + add.l #268463748,%a2 + add.l %d5,%a0 + add.l %d5,%d3 + move.l %a0,%a3 +.L554: + move.b (%a3,%a2.l),%d6 + move.b (%a3)+,%d0 + eor.l %d6,%d0 + tst.b %d0 + seq %d0 + mvs.b %d0,%d0 + neg.l %d0 + and.l %d0,%d1 + cmp.l %a3,%d3 + jne .L554 + tst.l %d1 + jeq .L555 + mvz.w #5652,%d0 + muls.l %d2,%d0 + lea (%a1,%d0.l),%a3 + mvz.b 5642(%a3),%d0 + mvz.b 5643(%a3),%d1 + lsl.l #8,%d0 + or.l %d1,%d0 + jeq .L556 + mvz.b %d4,%d0 + mvz.b 35(%sp),%d1 + lsl.l #8,%d0 + or.l %d1,%d0 + jeq .L555 +.L556: + mov3q.l #1,%d4 + lsl.l %d2,%d4 + move.l %a1,%d3 + add.l #11276,%d3 + add.l %d5,%d3 +.L558: + move.b (%a2,%a0.l),%d0 + mvz.b (%a0)+,%d2 + mvz.b %d0,%d1 + cmp.l %d2,%d1 + jeq .L557 + move.b %d0,-1(%a0) + move.w 5334(%a1),%d0 + or.l %d4,%d0 + move.w %d0,5334(%a1) +.L557: + cmp.l %d3,%a0 + jne .L558 +.L552: + movem.l (%sp),#7292 + lea (36,%sp),%sp + rts +.L555: + move.l evlog,%d0 + moveq #11,%d1 + lsl.l #4,%d0 + or.l %d1,%d0 + moveq #24,%d1 + move.l %d0,%d2 + move.l %d0,%d3 + clr.w %d2 + swap %d2 + lsr.l %d1,%d3 + move.l %d0,%d1 + lsr.l #8,%d1 + move.l %d0,evlog + move.b %d3,269455136 + move.b %d2,269455137 + move.b %d1,269455138 + move.b %d0,269455139 + move.b 5309(%a1),%d0 + addq.l #1,%d0 + move.b %d0,5309(%a1) + movem.l (%sp),#7292 + lea (36,%sp),%sp + rts + .size take_back, .-take_back + .align 2 + .type read_place, @function +read_place: + st %d0 + lea (-28,%sp),%sp + movem.l #7180,(%sp) + move.l 32(%sp),%a2 + move.l #96058,%a0 + pea .LC2 + pea .LC3 + add.l %a2,%a0 + move.b %d0,5310(%a2) + move.l %a0,-(%sp) + jsr project_file + pea 24.w + pea 59(%a2) + move.l %a2,-(%sp) + jsr get_data + lea (24,%sp),%sp + move.l evlog,%d1 + lsl.l #4,%d1 + tst.l %d0 + jeq .L582 + mov3q.l #5,%d0 + or.l %d1,%d0 + moveq #24,%d3 + move.l #269455136,%a4 + move.l #269455137,%a3 + move.l #269455138,%a1 + move.l #269455139,%a0 + move.l %d0,%d1 + move.l %d0,%d2 + clr.w %d1 + swap %d1 + lsr.l %d3,%d2 + move.l %d0,evlog + move.l %d1,24(%sp) + move.b %d2,(%a4) + move.l %d0,%d1 + lsr.l #8,%d1 + moveq #15,%d2 + move.b 27(%sp),(%a3) + move.b %d1,(%a1) + move.b %d0,(%a0) + move.b 63(%a2),%d1 + move.l evlog,%d0 + lsl.l #4,%d0 + and.l %d2,%d1 + moveq #24,%d2 + or.l %d1,%d0 + move.l %d0,%d3 + move.l %d0,%d1 + clr.w %d3 + swap %d3 + lsr.l %d2,%d1 + move.l %d0,evlog + move.l %d1,20(%sp) + move.l %d0,%d1 + lsr.l #8,%d1 + move.l %d3,24(%sp) + move.b 23(%sp),(%a4) + move.b %d3,(%a3) + move.b %d1,(%a1) + moveq #65,%d3 + move.b %d0,(%a0) + mvz.b 59(%a2),%d0 + cmp.l %d0,%d3 + jne .L571 + mvz.b 60(%a2),%d0 + moveq #83,%d1 + cmp.l %d0,%d1 + jne .L571 + mvz.b 61(%a2),%d0 + moveq #66,%d2 + cmp.l %d0,%d2 + jne .L571 + mvz.b 62(%a2),%d0 + moveq #80,%d3 + cmp.l %d0,%d3 + jne .L571 + mvz.b 63(%a2),%d0 + moveq #15,%d1 + cmp.l %d0,%d1 + jcs .L571 + lea (22,%a2),%a0 + lea (38,%a2),%a1 +.L574: + move.b 42(%a0),%d1 + mov3q.l #7,%d2 + and.l %d2,%d1 + move.b %d1,(%a0)+ + cmp.l %a1,%a0 + jne .L574 + move.b 82(%a2),%d3 + move.b 81(%a2),%d2 + move.b 80(%a2),%d1 + move.w %d3,%a0 + mov3q.l #1,%d3 + move.w %d2,%a1 + eor.l %d3,%d1 + moveq #15,%d3 + move.l %a0,%d2 + and.l %d3,%d2 + tst.b %d1 + seq %d1 + move.l %d2,%a0 + move.w %a1,%d2 + neg.l %d1 + move.b %d1,42(%a2) + tst.b %d2 + jlt .L583 + st %d2 + move.b %d2,5310(%a2) +.L577: + move.w %a0,%d3 + clr.b %d2 + move.b %d1,43(%a2) + move.b %d3,5311(%a2) + move.b %d2,5312(%a2) +.L569: + movem.l (%sp),#7180 + lea (28,%sp),%sp + rts +.L583: + move.l %a1,%d2 + and.l %d3,%d2 + move.b 5312(%a2),%d3 + move.b %d2,5310(%a2) + move.w %d3,%a3 + tst.b %d3 + jge .L577 + moveq #15,%d2 + move.l %a3,%d3 + and.l %d2,%d3 + clr.b %d2 + move.b %d1,43(%a2) + move.l %d3,%a0 + move.w %a0,%d3 + move.b %d2,5312(%a2) + move.b %d3,5311(%a2) + jra .L569 +.L582: + mov3q.l #6,%d0 + or.l %d0,%d1 + moveq #24,%d0 + move.l %d1,%d2 + move.l %d1,%d3 + clr.w %d2 + swap %d2 + lsr.l %d0,%d3 + move.l %d1,%d0 + lsr.l #8,%d0 + move.l %d1,evlog + move.b %d3,269455136 + move.b %d2,269455137 + move.b %d0,269455138 + move.b %d1,269455139 +.L571: + movem.l (%sp),#7180 + mov3q.l #-1,%d0 + lea (28,%sp),%sp + rts + .size read_place, .-read_place + .align 2 + .globl as_pos_fill + .type as_pos_fill, @function +as_pos_fill: + subq.l #8,%sp + move.l %d2,-(%sp) + move.l 32(%sp),%d2 + move.l 16(%sp),%d0 + move.l 20(%sp),%d1 + move.l %d2,4(%sp) + move.l 36(%sp),%d2 + move.l 24(%sp),%a0 + move.l 28(%sp),%a1 + move.l %d2,8(%sp) + tst.b as_count_fmt.l + jeq .L585 + move.l %d2,36(%sp) + move.l 4(%sp),%d2 + move.l %a1,28(%sp) + move.l %a0,24(%sp) + move.l %d2,32(%sp) + move.l %d1,20(%sp) + move.l %d0,16(%sp) + move.l (%sp)+,%d2 + addq.l #8,%sp + jmp 1073816148 +.L585: + move.l (%sp)+,%d2 + clr.l %d0 + addq.l #8,%sp + rts + .size as_pos_fill, .-as_pos_fill + .align 2 + .globl as_head_fill + .type as_head_fill, @function +as_head_fill: + subq.l #8,%sp + move.l %d2,-(%sp) + move.l 32(%sp),%d2 + move.l 16(%sp),%d1 + move.l 20(%sp),%a0 + move.l %d2,4(%sp) + move.l 36(%sp),%d2 + move.l 24(%sp),%a1 + move.l 28(%sp),%d0 + move.l %d2,8(%sp) + tst.b as_count_fmt.l + jne .L589 + moveq #88,%d2 + cmp.l %d0,%d2 + jeq .L593 +.L589: + move.l %d0,28(%sp) + move.l 8(%sp),%d2 + move.l %a1,24(%sp) + move.l %a0,20(%sp) + move.l %d2,36(%sp) + move.l 4(%sp),%d2 + move.l %d1,16(%sp) + move.l %d2,32(%sp) + move.l (%sp)+,%d2 + addq.l #8,%sp + jmp 1073816148 +.L593: + move.l 8(%sp),%d2 + moveq #116,%d0 + move.l %d0,28(%sp) + move.l %a1,24(%sp) + move.l %d2,36(%sp) + move.l 4(%sp),%d2 + move.l %a0,20(%sp) + move.l %d1,16(%sp) + move.l %d2,32(%sp) + move.l (%sp)+,%d2 + addq.l #8,%sp + jmp 1073816148 + .size as_head_fill, .-as_head_fill + .align 2 + .globl as_head_text + .type as_head_text, @function +as_head_text: + subq.l #8,%sp + move.l %d2,-(%sp) + move.l 28(%sp),%d0 + move.l 36(%sp),%d2 + move.l 16(%sp),%d1 + move.l %d0,4(%sp) + move.l 20(%sp),%a0 + move.l 24(%sp),%a1 + move.l 32(%sp),%d0 + move.l %d2,8(%sp) + tst.b as_count_fmt.l + jne .L595 + moveq #11,%d2 + cmp.l %d0,%d2 + jeq .L599 +.L595: + move.l %d0,32(%sp) + move.l 8(%sp),%d2 + move.l 4(%sp),%d0 + move.l %a1,24(%sp) + move.l %d2,36(%sp) + move.l %d0,28(%sp) + move.l %a0,20(%sp) + move.l %d1,16(%sp) + move.l (%sp)+,%d2 + addq.l #8,%sp + jmp 1073818584 +.L599: + moveq #16,%d0 + move.l %d0,32(%sp) + move.l 8(%sp),%d2 + move.l 4(%sp),%d0 + move.l %a1,24(%sp) + move.l %d2,36(%sp) + move.l %d0,28(%sp) + move.l %a0,20(%sp) + move.l %d1,16(%sp) + move.l (%sp)+,%d2 + addq.l #8,%sp + jmp 1073818584 + .size as_head_text, .-as_head_text + .align 2 + .globl as_list_row + .type as_list_row, @function +as_list_row: + lea (-28,%sp),%sp + move.l 48(%sp),%d0 + move.l 32(%sp),%d1 + move.l 36(%sp),%a0 + move.l %d0,4(%sp) + move.l 52(%sp),%d0 + move.l 40(%sp),%a1 + move.l 44(%sp),(%sp) + move.l %d0,8(%sp) + move.l 56(%sp),%d0 + move.l %d0,12(%sp) + move.l 60(%sp),%d0 + move.l %d0,16(%sp) + move.l 64(%sp),%d0 + move.l %d0,20(%sp) + move.l 68(%sp),%d0 + move.l %d0,24(%sp) + move.l 72(%sp),%d0 + tst.b as_own_ok.l + jeq .L602 + tst.b 269455127.l + jlt .L607 +.L602: + move.l %d0,72(%sp) + move.l 24(%sp),%d0 + move.l (%sp),44(%sp) + move.l %a1,40(%sp) + move.l %d0,68(%sp) + move.l 20(%sp),%d0 + move.l %a0,36(%sp) + move.l %d1,32(%sp) + move.l %d0,64(%sp) + move.l 16(%sp),%d0 + move.l %d0,60(%sp) + move.l 12(%sp),%d0 + move.l %d0,56(%sp) + move.l 8(%sp),%d0 + move.l %d0,52(%sp) + move.l 4(%sp),%d0 + move.l %d0,48(%sp) + lea (28,%sp),%sp + jmp 1073821956 +.L607: + cmp.l #268469372,%d0 + jeq .L608 + cmp.l #268475024,%d0 + jne .L602 + move.l #as_own_names+17,%d0 + move.l %d0,72(%sp) + move.l 24(%sp),%d0 + move.l (%sp),44(%sp) + move.l %a1,40(%sp) + move.l %d0,68(%sp) + move.l 20(%sp),%d0 + move.l %a0,36(%sp) + move.l %d1,32(%sp) + move.l %d0,64(%sp) + move.l 16(%sp),%d0 + move.l %d0,60(%sp) + move.l 12(%sp),%d0 + move.l %d0,56(%sp) + move.l 8(%sp),%d0 + move.l %d0,52(%sp) + move.l 4(%sp),%d0 + move.l %d0,48(%sp) + lea (28,%sp),%sp + jmp 1073821956 +.L608: + move.l #as_own_names,%d0 + move.l %d0,72(%sp) + move.l 24(%sp),%d0 + move.l (%sp),44(%sp) + move.l %a1,40(%sp) + move.l %d0,68(%sp) + move.l 20(%sp),%d0 + move.l %a0,36(%sp) + move.l %d1,32(%sp) + move.l %d0,64(%sp) + move.l 16(%sp),%d0 + move.l %d0,60(%sp) + move.l 12(%sp),%d0 + move.l %d0,56(%sp) + move.l 8(%sp),%d0 + move.l %d0,52(%sp) + move.l 4(%sp),%d0 + move.l %d0,48(%sp) + lea (28,%sp),%sp + jmp 1073821956 + .size as_list_row, .-as_list_row + .align 2 + .globl as_head_fit + .type as_head_fit, @function +as_head_fit: + move.l %d2,-(%sp) + move.l 8(%sp),%d1 + move.l 12(%sp),%d0 + move.l 16(%sp),%a0 + tst.b as_count_fmt.l + jne .L610 + moveq #37,%d2 + cmp.l %d0,%d2 + jeq .L614 +.L610: + move.l %a0,16(%sp) + move.l %d0,12(%sp) + move.l %d1,8(%sp) + move.l (%sp)+,%d2 + jmp 1073819528 +.L614: + moveq #64,%d0 + move.l %a0,16(%sp) + move.l %d0,12(%sp) + move.l %d1,8(%sp) + move.l (%sp)+,%d2 + jmp 1073819528 + .size as_head_fit, .-as_head_fit + .align 2 + .globl as_writer + .type as_writer, @function +as_writer: + lea (-64,%sp),%sp + movem.l #31996,(%sp) + move.l 72(%sp),%d3 + jsr ready + move.l %d0,%a6 + tst.b 55(%a6) + jeq .L616 + move.w #256,%d0 + move.w %d0,54(%a6) +.L616: + tst.b 5314(%a6) + jeq .L617 + move.b 5315(%a6),%d2 + jne .L618 + tst.b 52(%a6) + jeq .L769 +.L619: + tst.b 8(%a6) + jne .L711 + tst.b 269455127.l + jlt .L770 + move.l 80(%sp),-(%sp) + move.l 80(%sp),-(%sp) + move.l %d3,-(%sp) + move.l 80(%sp),-(%sp) + jsr as_stock_writer + lea (16,%sp),%sp + move.l %d0,%d4 +.L625: + move.l %a6,-(%sp) + jsr remember + addq.l #4,%sp +.L627: + tst.b 54(%a6) + jeq .L615 + moveq #1,%d5 + move.b %d5,54(%a6) +.L615: + move.l %d4,%d0 + movem.l (%sp),#31996 + lea (64,%sp),%sp + rts +.L617: + tst.b 4972(%a6) + jne .L628 + tst.b 5313(%a6) + jne .L771 +.L630: + move.b 5302(%a6),%d0 +.L635: + tst.b 4973(%a6) + jeq .L641 + clr.b %d4 + moveq #1,%d5 + move.b %d4,4973(%a6) + move.b %d5,54(%a6) +.L641: + tst.b %d0 + jeq .L710 + lea remember,%a2 + tst.b 5304(%a6) + jne .L772 +.L649: + tst.b 4971(%a6) + jne .L773 +.L664: + move.l %a6,-(%sp) + jsr write_place + move.l %a6,-(%sp) + jsr (%a2) + addq.l #8,%sp +.L648: + clr.l %d4 + jra .L627 +.L771: + clr.b %d7 + lea read_place,%a2 + clr.l %d2 + move.b %d7,5313(%a6) + move.l %a6,-(%sp) + jsr (%a2) + addq.l #4,%sp + tst.l %d0 + jle .L774 +.L633: + move.b %d0,38(%a6) + clr.w %d0 + moveq #1,%d1 + move.w %d0,40(%a6) + move.b %d1,53(%a6) +.L632: + tst.l %d2 + jeq .L630 + tst.b 9(%a6) + jge .L630 + move.b 38(%a6),%d0 + jmi .L636 + tst.b 53(%a6) + jeq .L630 + move.b %d0,9(%a6) + move.l evlog,%d0 + mov3q.l #7,%d7 + moveq #1,%d2 + st %d4 + lsl.l #4,%d0 + clr.b %d5 + moveq #24,%d1 + move.b %d2,20(%a6) + move.b %d4,38(%a6) + or.l %d7,%d0 + move.b %d5,53(%a6) + move.l %d0,%d2 + move.l %d0,%d4 + clr.w %d2 + swap %d2 + lsr.l %d1,%d4 + move.l %d0,%d1 + lsr.l #8,%d1 + move.l %d0,evlog + move.b %d4,269455136 + move.b %d2,269455137 + move.b %d1,269455138 + move.b %d0,269455139 +.L636: + move.b 5310(%a6),%d1 + move.b 5302(%a6),%d0 + tst.b %d1 + jlt .L635 + move.b 4972(%a6),%d2 + or.l %d0,%d2 + tst.b %d2 + jne .L635 + move.b 5311(%a6),%d0 + mvs.b %d1,%d2 + mvz.b 91(%a6,%d2.l),%d2 + mvz.b %d0,%d4 + cmp.l %d4,%d2 + jls .L640 + st %d2 + move.b %d1,87(%a6) + move.b %d0,5301(%a6) + move.b %d2,5310(%a6) +.L640: + tst.b 4973(%a6) + jeq .L710 + clr.b %d7 + moveq #1,%d0 + move.b %d7,4973(%a6) + move.b %d0,54(%a6) +.L710: + tst.b 269455127.l + jlt .L754 + lea remember,%a2 +.L643: + tst.b 5301(%a6) + jlt .L665 + moveq #1,%d1 + move.b %d1,54(%a6) +.L665: + move.b 9(%a6),%d2 + jmi .L666 + moveq #1,%d4 + move.b %d4,54(%a6) +.L666: + move.b 8(%a6),%d0 + jeq .L775 + tst.b %d3 + jeq .L776 +.L676: + mvz.b %d0,%d0 + tst.b 18(%a6) + jeq .L678 + move.l %d0,-(%sp) + move.l %a6,-(%sp) + jsr write_changed + addq.l #8,%sp +.L679: + tst.l %d0 + jeq .L673 + clr.b %d7 + move.b %d7,268525900 + move.b 9(%a6),%d2 + jmi .L716 +.L674: + mvs.b %d2,%d3 + clr.l %d4 +.L681: + move.b 269161681,%d1 + move.b 8(%a6),%d0 + mov3q.l #7,%d5 + and.l %d5,%d1 + mvz.b %d0,%d5 + move.b %d1,22(%a6,%d5.l) + tst.b %d0 + jne .L684 + tst.b 18(%a6) + jne .L685 + clr.l -(%sp) + move.l %a6,-(%sp) + jsr write_book + addq.l #8,%sp +.L685: + move.b %d0,11(%a6) +.L684: + tst.l %d3 + jne .L687 + tst.b 11(%a6) + jne .L777 +.L687: + move.l %d3,-(%sp) + move.l %a6,-(%sp) + jsr (read_book.constprop.0) + clr.b %d1 + addq.l #8,%sp + move.l %d0,%d5 + move.b %d1,268525900 +.L691: + move.b %d2,8(%a6) + mov3q.l #1,%d0 + eor.l %d5,%d0 + moveq #1,%d2 + move.b %d5,54(%a6) + move.b %d0,18(%a6) + move.b %d2,19(%a6) + tst.l %d5 + jne .L693 + move.b %d2,10(%a6) +.L693: + st %d7 + mov3q.l #1,%d0 + moveq #9,%d2 + move.b %d7,9(%a6) +.L671: + move.l evlog,%d1 + lsl.l #4,%d1 + or.l %d2,%d1 + moveq #24,%d2 + move.l %d1,%d3 + move.l %d1,%d5 + clr.w %d3 + swap %d3 + lsr.l %d2,%d5 + move.l %d1,%d2 + lsr.l #8,%d2 + move.l %d1,evlog + move.b %d5,269455136 + move.b %d3,269455137 + move.b %d2,269455138 + move.b %d1,269455139 + tst.l %d0 + jne .L694 + move.b 269161681,%d0 + mov3q.l #7,%d5 + mvz.b 8(%a6),%d1 + and.l %d5,%d0 + move.b %d0,22(%a6,%d1.l) +.L694: + move.l %a6,%d7 + add.l #107,%d7 + move.l %sp,%d1 + move.l %d7,%d6 + lea (91,%a6),%a4 + add.l #64,%d1 +.L695: + tst.b (%a4)+ + jeq .L702 + move.l %d6,%a3 + clr.l %d5 +.L700: + mvz.b (%a3),%d2 + mvz.b 8(%a6),%d0 + cmp.l %d2,%d0 + jeq .L778 + mvz.b -1(%a4),%d0 + addq.l #1,%d5 + lea (18,%a3),%a3 + cmp.l %d5,%d0 + jhi .L700 +.L702: + add.l #288,%d6 + cmp.l %d7,%a4 + jne .L695 + tst.b 4971(%a6) + jeq .L703 + move.l #1095978034,%d1 + move.l %d1,83(%a6) + move.l #96058,%a0 + pea .LC2 + pea .LC5 + add.l %a6,%a0 + move.l %a0,-(%sp) + jsr project_file + pea 4888.w + pea 83(%a6) + move.l %a6,-(%sp) + jsr put_data + lea (24,%sp),%sp + tst.l %d0 + jeq .L703 + clr.b %d0 + move.b %d0,4971(%a6) +.L703: + move.l %a6,-(%sp) + lea write_place,%a3 + jsr (%a3) + addq.l #4,%sp + tst.b 5301(%a6) + jlt .L704 + tst.l %d4 + jlt .L704 + tst.b 18(%a6) + jeq .L779 +.L704: + st %d2 + move.b %d2,5301(%a6) + move.l %a6,-(%sp) + jsr (%a2) + addq.l #4,%sp + jra .L627 +.L769: + move.l #269452152,%a0 +.L620: + move.b (%a0),%d0 + move.l #905730889,%a1 + add.l %a0,%a1 + mvz.b (%a1),%d1 + addq.l #1,%a0 + mvz.b %d0,%d4 + cmp.l %d4,%d1 + jne .L619 + tst.b %d0 + jeq .L618 + cmp.l #269452408,%a0 + jne .L620 +.L618: + clr.b %d1 + lea read_place,%a2 + lea read_lists,%a3 + move.b %d1,5314(%a6) + move.l %a6,-(%sp) + jsr (%a2) + move.l %a6,-(%sp) + move.l %d0,%d4 + jsr (%a3) + addq.l #8,%sp + tst.l %d4 + jle .L780 + move.b %d4,38(%a6) + clr.w %d4 + move.w %d4,40(%a6) + tst.b 42(%a6) + jeq .L622 +.L784: + tst.b 52(%a6) + jeq .L622 + moveq #1,%d5 + move.b %d5,-2147483632 +.L622: + tst.b 5314(%a6) + jne .L619 + tst.b %d2 + sne %d2 + mvs.b %d2,%d2 + neg.l %d2 + tst.b 4972(%a6) + jne .L781 + tst.b 5313(%a6) + jeq .L632 +.L789: + clr.b %d7 + move.b %d7,5313(%a6) + move.l %a6,-(%sp) + jsr (%a2) + addq.l #4,%sp + tst.l %d0 + jgt .L633 + jra .L774 +.L775: + tst.b 18(%a6) + jeq .L782 + move.b 268525900,%d0 + jne .L783 + tst.b %d2 + jlt .L716 + move.b 269161681,%d1 + mov3q.l #7,%d7 + move.b %d0,11(%a6) + mvs.b %d2,%d3 + clr.l %d4 + and.l %d7,%d1 + move.b %d1,22(%a6) + jra .L684 +.L711: + move.l %a6,-(%sp) + jsr remember + clr.l %d4 + addq.l #4,%sp + jra .L627 +.L628: + move.l %a6,-(%sp) + jsr read_lists + addq.l #4,%sp + tst.b 5313(%a6) + jeq .L630 + jra .L771 +.L780: + mov3q.l #-1,%d4 + move.b %d4,38(%a6) + clr.w %d4 + move.w %d4,40(%a6) + tst.b 42(%a6) + jeq .L622 + jra .L784 +.L774: + mov3q.l #-1,%d0 + move.b %d0,38(%a6) + clr.w %d0 + moveq #1,%d1 + move.w %d0,40(%a6) + move.b %d1,53(%a6) + jra .L632 +.L782: + tst.b 269455127.l + jlt .L785 +.L669: + move.l 80(%sp),-(%sp) + move.l 80(%sp),-(%sp) + move.l %d3,-(%sp) + move.l 80(%sp),-(%sp) + jsr as_stock_writer + lea (16,%sp),%sp + move.b 9(%a6),%d2 + move.l %d0,%d4 + tst.b %d2 + jlt .L762 + tst.l %d0 + jge .L786 + moveq #1,%d5 + move.b %d5,10(%a6) +.L792: + st %d7 + mov3q.l #1,%d0 + moveq #9,%d2 + move.b %d7,9(%a6) + jra .L671 +.L773: + move.l #1095978034,%d5 + move.l %d5,83(%a6) + move.l #96058,%a0 + pea .LC2 + pea .LC5 + add.l %a6,%a0 + move.l %a0,-(%sp) + jsr project_file + pea 4888.w + pea 83(%a6) + move.l %a6,-(%sp) + jsr put_data + lea (24,%sp),%sp + tst.l %d0 + jeq .L664 + clr.b %d0 + move.b %d0,4971(%a6) + move.l %a6,-(%sp) + jsr write_place + move.l %a6,-(%sp) + jsr (%a2) + addq.l #8,%sp + jra .L648 +.L772: + moveq #1,%d1 + lea take_back,%a3 + move.b %d1,54(%a6) + clr.l -(%sp) + move.l %a6,-(%sp) + jsr (%a3) + mov3q.l #1,-(%sp) + move.l %a6,-(%sp) + jsr (%a3) + lea (16,%sp),%sp + tst.b 5306(%a6) + jeq .L712 + mvs.w #-5624,%d4 + move.l %a6,%d6 + move.l %a6,%d5 + add.l #96058,%d6 + lea (5336,%a6),%a4 + add.l #11276,%d5 + sub.l %a6,%d4 + mov3q.l #1,%d2 + lea (5337,%a6),%a3 + clr.l %d3 + lea arr_write,%a5 +.L659: + mvz.w 5334(%a6),%d0 + mov3q.l #1,%d7 + asr.l %d3,%d0 + and.l %d0,%d7 + btst #0,%d0 + jeq .L651 + move.b (%a4),%d0 + jne .L760 + tst.b 8(%a6) + jeq .L760 + tst.b 11(%a6) + jeq .L760 + mvz.b %d0,%d0 + move.l #.LC4,%d1 + move.l %d1,-(%sp) + mvz.b (%a3),%d1 + lsl.l #3,%d0 + move.l %d1,%a0 + pea 1(%a0,%d0.l) + move.l %d6,-(%sp) + jsr arr_path + mov3q.l #7,-(%sp) + move.l %a6,-(%sp) + jsr arr_read + lea (20,%sp),%sp + addq.l #1,%d0 + tst.l %d0 + jeq .L714 +.L790: + move.l %d4,%d0 + neg.l %d0 + move.l %d4,%a1 + move.l %d0,%a0 + add.l #268475023,%a1 +.L655: + move.b (%a0)+,%d0 + move.b %d0,(%a1,%a0.l) + cmp.l %a0,%d5 + jne .L655 + mov3q.l #7,-(%sp) + move.l %a6,-(%sp) + jsr (%a5) + addq.l #8,%sp + and.l %d0,%d2 + tst.l %d7 + jne .L787 + mvz.b (%a4),%d0 + mvz.b 8(%a6),%d1 + cmp.l %d0,%d1 + jeq .L788 +.L651: + mvz.b 5306(%a6),%d0 + addq.l #1,%d3 + lea (18,%a4),%a4 + add.l #-5652,%d4 + add.l #5652,%d5 + lea (18,%a3),%a3 + cmp.l %d3,%d0 + jhi .L659 +.L650: + clr.w %d1 + clr.b %d0 + move.w %d1,5302(%a6) + move.b %d0,5304(%a6) + mvz.b 8(%a6),%d0 + move.l %d0,-(%sp) + move.l %a6,-(%sp) + jsr (read_book.constprop.0) + move.l %a6,-(%sp) + move.l %d0,%d3 + jsr give_back + lea (12,%sp),%sp + and.l %d0,%d3 + tst.l %d3 + jeq .L660 +.L794: + clr.b %d4 + st %d5 + moveq #1,%d7 + move.b %d4,269455127 + move.b %d4,268525900 + move.b %d5,-2147457388 + move.b %d5,-2147457387 + move.b %d5,-2147457386 + move.b %d5,-2147457385 + move.b %d7,19(%a6) + tst.l %d2 + jeq .L707 + move.b 5305(%a6),%d0 + jpl .L663 + st %d1 + move.b %d1,5305(%a6) + move.b %d1,5301(%a6) + tst.b 4971(%a6) + jeq .L664 + jra .L773 +.L770: + and.l #-193,%d3 + move.l 80(%sp),-(%sp) + move.l 80(%sp),-(%sp) + move.l %d3,-(%sp) + move.l 80(%sp),-(%sp) + jsr as_stock_writer + lea (16,%sp),%sp + move.l %d0,%d4 + jra .L625 +.L776: + tst.b 268525900.l + jne .L676 + tst.b %d2 + jlt .L716 + move.b 269161681,%d1 + mov3q.l #7,%d5 + mvz.b %d0,%d0 + mvs.b %d2,%d3 + clr.l %d4 + and.l %d5,%d1 + move.b %d1,22(%a6,%d0.l) + jra .L684 +.L778: + mvz.b 1(%a3),%d0 + lea (48,%sp),%a1 + move.l %a1,%a0 + mulu.w #5652,%d0 + move.l %d0,%a5 + sub.l %a1,%a5 + add.l #268435460,%a5 +.L697: + move.b (%a5,%a0.l),%d0 + move.b %d0,(%a0)+ + cmp.l %d1,%a0 + jne .L697 + lea (2,%a3),%a0 +.L699: + move.b (%a1)+,%d0 + mvs.b (%a0)+,%d3 + mvs.b %d0,%d2 + cmp.l %d3,%d2 + jeq .L698 + move.b %d0,-1(%a0) + moveq #1,%d0 + move.b %d0,4971(%a6) +.L698: + cmp.l %d1,%a1 + jne .L699 + mvz.b -1(%a4),%d0 + addq.l #1,%d5 + lea (18,%a3),%a3 + cmp.l %d5,%d0 + jhi .L700 + jra .L702 +.L781: + move.l %a6,-(%sp) + jsr (%a3) + addq.l #4,%sp + tst.b 5313(%a6) + jeq .L632 + jra .L789 +.L760: + mvz.b %d0,%d0 + move.l #.LC2,%d1 + clr.l %d7 + move.l %d1,-(%sp) + mvz.b (%a3),%d1 + lsl.l #3,%d0 + move.l %d1,%a0 + pea 1(%a0,%d0.l) + move.l %d6,-(%sp) + jsr arr_path + mov3q.l #7,-(%sp) + move.l %a6,-(%sp) + jsr arr_read + lea (20,%sp),%sp + addq.l #1,%d0 + tst.l %d0 + jne .L790 +.L714: + mvz.b 5306(%a6),%d0 + clr.l %d2 + addq.l #1,%d3 + lea (18,%a4),%a4 + add.l #-5652,%d4 + add.l #5652,%d5 + lea (18,%a3),%a3 + cmp.l %d3,%d0 + jhi .L659 + jra .L650 +.L788: + mvz.b (%a3),%d1 + mov3q.l #5,%d7 + cmp.l %d1,%d7 + jcc .L651 + lsl.l #3,%d0 + pea .LC12 + move.l %d1,%a0 + addq.l #1,%d3 + lea (18,%a4),%a4 + add.l #-5652,%d4 + add.l #5652,%d5 + lea (18,%a3),%a3 + pea 1(%a0,%d0.l) + move.l %d6,-(%sp) + jsr arr_path + mov3q.l #7,-(%sp) + move.l %a6,-(%sp) + jsr (%a5) + lea (20,%sp),%sp + and.l %d0,%d2 + mvz.b 5306(%a6),%d0 + cmp.l %d3,%d0 + jhi .L659 + jra .L650 +.L787: + pea .LC2 + mvz.b (%a4),%d0 + mvz.b (%a3),%d1 + lsl.l #3,%d0 + move.l %d0,%a0 + pea 1(%a0,%d1.l) + move.l %d6,-(%sp) + jsr arr_path + mov3q.l #7,-(%sp) + move.l %a6,-(%sp) + jsr (%a5) + mvz.b 8(%a6),%d1 + lea (20,%sp),%sp + and.l %d0,%d2 + mvz.b (%a4),%d0 + cmp.l %d0,%d1 + jne .L651 + jra .L788 +.L783: + clr.l -(%sp) + move.l %a6,-(%sp) + jsr write_changed + addq.l #8,%sp + tst.l %d0 + jeq .L673 + clr.b %d5 + move.b %d5,268525900 + move.b 9(%a6),%d2 + jpl .L674 +.L716: + clr.l %d4 +.L762: + clr.l %d0 +.L764: + moveq #10,%d2 + jra .L671 +.L754: + moveq #1,%d7 + mvz.b 8(%a6),%d0 + move.b %d7,54(%a6) + move.l %d0,-(%sp) + move.l %a6,-(%sp) + jsr (read_book.constprop.0) + move.l %a6,-(%sp) + move.l %d0,%d2 + jsr give_back + clr.b %d1 + lea (12,%sp),%sp + and.l %d2,%d0 + move.b %d1,268525900 + mov3q.l #1,%d1 + eor.l %d0,%d1 + tst.b 4974(%a6) + jeq .L644 + tst.b 9(%a6) + jge .L644 + clr.w %d4 + move.b 5301(%a6),%d2 + move.b %d1,18(%a6) + move.w %d4,4974(%a6) + tst.l %d0 + jeq .L708 + clr.b %d7 + moveq #1,%d0 + lea remember,%a2 + move.b %d7,269455127 + move.b %d0,19(%a6) + move.l %a6,-(%sp) + jsr (%a2) + addq.l #4,%sp + tst.b %d2 + jge .L647 +.L646: + tst.b 4971(%a6) + jeq .L648 + move.l #1095978034,%d1 + move.l %d1,83(%a6) + move.l #96058,%a0 + pea .LC2 + pea .LC5 + add.l %a6,%a0 + move.l %a0,-(%sp) + jsr project_file + pea 4888.w + pea 83(%a6) + move.l %a6,-(%sp) + jsr put_data + lea (24,%sp),%sp + move.l %d0,%d4 + tst.l %d0 + jeq .L627 + clr.b %d0 + clr.l %d4 + move.b %d0,4971(%a6) + jra .L627 +.L644: + clr.w %d5 + move.b %d1,18(%a6) + move.w %d5,4974(%a6) + tst.l %d0 + jne .L791 +.L708: + moveq #1,%d5 + move.b %d5,10(%a6) + move.b %d5,19(%a6) + move.l %a6,-(%sp) + jsr remember + addq.l #4,%sp + jra .L646 +.L673: + mov3q.l #-1,%d4 + tst.b 9(%a6) + jlt .L764 + moveq #1,%d5 + move.b %d5,10(%a6) + jra .L792 +.L678: + move.l %d0,-(%sp) + move.l %a6,-(%sp) + jsr write_book + addq.l #8,%sp + jra .L679 +.L779: + move.l %a6,-(%sp) + jsr sl_load + addq.l #4,%sp + tst.l %d0 + jne .L705 + moveq #1,%d1 + st %d2 + move.b %d1,10(%a6) + move.b %d2,5301(%a6) + move.l %a6,-(%sp) + jsr (%a2) + addq.l #4,%sp + jra .L627 +.L785: + and.l #-193,%d3 + jra .L669 +.L777: + move.l #96058,%a5 + clr.l %d7 + move.l %d4,44(%sp) + add.l %a6,%a5 + mov3q.l #1,%d5 + lea arr_path,%a4 + lea arr_read,%a3 + move.l %d3,%d4 +.L690: + pea .LC4 + move.l %d4,%d3 + addq.l #1,%d4 + move.l %d4,-(%sp) + move.l %a5,-(%sp) + jsr (%a4) + move.l %d3,-(%sp) + move.l %a6,-(%sp) + jsr (%a3) + lea (20,%sp),%sp + mov3q.l #1,%d1 + cmp.l %d0,%d1 + jeq .L793 + pea .LC2 + move.l %d4,-(%sp) + move.l %a5,-(%sp) + jsr (%a4) + move.l %d3,-(%sp) + move.l %a6,-(%sp) + jsr (%a3) + lea (20,%sp),%sp + move.l %d0,%d6 + mov3q.l #1,%d0 + cmp.l %d6,%d0 + jeq .L689 + move.l %d3,-(%sp) + jsr 1074398236 + addq.l #4,%sp + mov3q.l #-1,%d1 + cmp.l %d6,%d1 + sne %d0 + mvs.b %d0,%d0 + neg.l %d0 + and.l %d0,%d5 +.L689: + moveq #8,%d0 + cmp.l %d4,%d0 + jne .L690 + move.l 44(%sp),%d4 + move.b %d7,268525900 + jra .L691 +.L791: + clr.b %d2 + moveq #1,%d4 + lea remember,%a2 + move.b %d2,269455127 + move.b %d4,19(%a6) + move.l %a6,-(%sp) + jsr (%a2) + addq.l #4,%sp +.L647: + tst.b 5302(%a6) + jeq .L643 + tst.b 5304(%a6) + jeq .L649 + jra .L772 +.L660: + clr.b %d7 + st %d0 + moveq #1,%d1 + move.b %d7,268525900 + move.b %d0,-2147457388 + move.b %d0,-2147457387 + move.b %d0,-2147457386 + move.b %d0,-2147457385 + move.b %d1,19(%a6) +.L707: + st %d0 + move.b %d0,5305(%a6) + move.b %d0,5301(%a6) +.L662: + moveq #1,%d4 + move.b %d4,10(%a6) + tst.b 4971(%a6) + jeq .L664 + jra .L773 +.L793: + lsl.l %d3,%d0 + or.l %d0,%d7 + jra .L689 +.L705: + st %d2 + move.l %a6,-(%sp) + jsr (%a3) + addq.l #4,%sp + move.b %d2,5301(%a6) + move.l %a6,-(%sp) + jsr (%a2) + addq.l #4,%sp + jra .L627 +.L663: + move.b %d0,5301(%a6) + st %d2 + move.l %a6,-(%sp) + jsr sl_load + move.b %d2,5305(%a6) + move.b %d2,5301(%a6) + addq.l #4,%sp + tst.l %d0 + jeq .L662 + tst.b 4971(%a6) + jeq .L664 + jra .L773 +.L712: + clr.w %d1 + clr.b %d0 + mov3q.l #1,%d2 + move.w %d1,5302(%a6) + move.b %d0,5304(%a6) + mvz.b 8(%a6),%d0 + move.l %d0,-(%sp) + move.l %a6,-(%sp) + jsr (read_book.constprop.0) + move.l %a6,-(%sp) + move.l %d0,%d3 + jsr give_back + lea (12,%sp),%sp + and.l %d0,%d3 + tst.l %d3 + jeq .L660 + jra .L794 +.L786: + mvs.b %d2,%d3 + jra .L681 + .size as_writer, .-as_writer + .align 2 + .globl as_project_load + .type as_project_load, @function +as_project_load: + move.l %d2,-(%sp) + jsr ready + mov3q.l #1,%d1 + move.l %d0,%a1 + move.l evlog,%d0 + lsl.l #4,%d0 + or.l %d1,%d0 + moveq #24,%d1 + move.l %d0,%d2 + clr.w %d2 + swap %d2 + move.l %d0,evlog + move.l %d2,%a0 + move.l %d0,%d2 + lsr.l %d1,%d2 + move.l %d0,%d1 + lsr.l #8,%d1 + move.b %d2,269455136 + move.w %a0,%d2 + move.b %d2,269455137 + move.b %d1,269455138 + clr.b %d1 + move.b %d0,269455139 + st %d0 + mvz.w #256,%d2 + move.b %d1,5327(%a1) + move.b %d1,5002(%a1) + move.b %d1,4975(%a1) + st %d1 + move.b %d0,9(%a1) + move.b %d0,5305(%a1) + move.l #-16777216,%d0 + move.l %d2,50(%a1) + move.l %d0,5301(%a1) + move.b %d1,-2147457388 + move.b %d1,-2147457387 + move.b %d1,-2147457386 + move.b %d1,-2147457385 + tst.b 5326(%a1) + jne .L796 + move.l %a1,%d0 + add.l #38,%d0 + lea (22,%a1),%a0 +.L797: + clr.b (%a0)+ + cmp.l %d0,%a0 + jne .L797 + st %d2 + clr.b %d0 + move.w #256,%d1 + move.b %d2,38(%a1) + move.b %d2,5310(%a1) + moveq #1,%d2 + move.b %d0,42(%a1) + move.w %d1,5314(%a1) + move.b %d2,4972(%a1) +.L796: + moveq #1,%d0 + move.b %d0,12(%a1) + move.l (%sp)+,%d2 + rts + .size as_project_load, .-as_project_load + .align 2 + .globl as_project_new + .type as_project_new, @function +as_project_new: + move.l %a2,-(%sp) + move.l %d2,-(%sp) + jsr ready + moveq #14,%d1 + move.l %d0,%a2 + move.l evlog,%d0 + lsl.l #4,%d0 + or.l %d1,%d0 + move.l %d0,%d2 + move.l %d0,%d1 + clr.w %d2 + swap %d2 + move.l %d0,evlog + move.l %d2,%a0 + moveq #24,%d2 + lsr.l %d2,%d1 + move.l %d1,%a1 + move.l %d0,%d1 + move.w %a1,%d2 + lsr.l #8,%d1 + move.b %d2,269455136 + move.w %a0,%d2 + move.b %d2,269455137 + move.b %d1,269455138 + move.b %d0,269455139 + move.w #255,%d0 + clr.b %d1 + moveq #1,%d2 + move.w %d0,8(%a2) + st %d0 + move.b %d1,18(%a2) + move.b %d1,5327(%a2) + move.b %d1,5002(%a2) + move.b %d1,4975(%a2) + move.l #-16777216,%d1 + move.w %d2,11(%a2) + move.l %d1,5301(%a2) + clr.b %d2 + move.b %d0,5305(%a2) + move.b %d0,-2147457388 + move.b %d0,-2147457387 + move.b %d0,-2147457386 + move.b %d0,-2147457385 + move.b %d2,5326(%a2) + tst.b 52(%a2) + jeq .L802 + mvz.w 50(%a2),%d0 + cmp.l #3599,%d0 + jhi .L802 + clr.w %d0 + move.b %d2,52(%a2) + move.w %d0,50(%a2) + move.l %a2,-(%sp) + jsr remember + moveq #1,%d1 + addq.l #4,%sp + move.b %d1,53(%a2) + move.l (%sp)+,%d2 + move.l (%sp)+,%a2 + rts +.L802: + clr.w %d0 + clr.b %d2 + move.w %d0,50(%a2) + move.b %d2,52(%a2) + st %d2 + move.l %a2,-(%sp) + jsr remember + clr.b %d1 + move.b %d2,38(%a2) + addq.l #4,%sp + move.l %a2,%d0 + add.l #38,%d0 + lea (22,%a2),%a0 + move.b %d1,53(%a2) + move.b %d1,42(%a2) +.L804: + clr.b (%a0)+ + cmp.l %a0,%d0 + jne .L804 + move.l %a2,%d1 + add.l #4971,%d1 + lea (83,%a2),%a0 +.L805: + clr.b (%a0)+ + cmp.l %d1,%a0 + jne .L805 + clr.b %d2 + clr.w %d0 + st %d1 + move.b %d2,5002(%a2) + move.w %d0,4971(%a2) + move.b %d1,5310(%a2) + move.b %d2,4975(%a2) + move.l #-16777216,%d0 + move.l %d0,5301(%a2) + move.l (%sp)+,%d2 + move.l (%sp)+,%a2 + rts + .size as_project_new, .-as_project_new + .align 2 + .globl as_project_loaded + .type as_project_loaded, @function +as_project_loaded: + lea (-12,%sp),%sp + movem.l #1036,(%sp) + jsr ready + move.l evlog,%d1 + lsl.l #4,%d1 + move.l %d0,%a2 + mov3q.l #2,%d0 + or.l %d0,%d1 + moveq #24,%d0 + move.l %d1,%d2 + move.l %d1,%d3 + clr.w %d2 + swap %d2 + lsr.l %d0,%d3 + move.l %d1,%d0 + lsr.l #8,%d0 + move.l %d1,evlog + move.b %d3,269455136 + clr.w %d3 + move.b %d2,269455137 + move.b %d0,269455138 + move.b %d1,269455139 + move.w %d3,50(%a2) + tst.b 5314(%a2) + jne .L822 +.L811: + move.b 57(%a2),%d0 + addq.l #1,%d0 + move.b %d0,57(%a2) + move.l %a2,-(%sp) + jsr remember + movem.l 4(%sp),#1036 + clr.l %d0 + lea (16,%sp),%sp + rts +.L822: + move.l #269452152,%a0 +.L813: + move.b (%a0),%d1 + move.l #905730889,%a1 + add.l %a0,%a1 + mvz.b (%a1),%d0 + addq.l #1,%a0 + mvz.b %d1,%d2 + cmp.l %d2,%d0 + jne .L811 + tst.b %d1 + jeq .L812 + cmp.l #269452408,%a0 + jne .L813 +.L812: + clr.b %d0 + move.b %d0,5314(%a2) + move.l %a2,-(%sp) + jsr read_place + move.l %a2,-(%sp) + move.l %d0,%d2 + jsr read_lists + addq.l #8,%sp + tst.l %d2 + jle .L823 +.L814: + clr.w %d0 + move.b %d2,38(%a2) + move.w %d0,40(%a2) + tst.b 42(%a2) + jeq .L811 + tst.b 52(%a2) + jeq .L811 + moveq #1,%d3 + move.b %d3,-2147483632 + move.b 57(%a2),%d0 + addq.l #1,%d0 + move.b %d0,57(%a2) + move.l %a2,-(%sp) + jsr remember + movem.l 4(%sp),#1036 + clr.l %d0 + lea (16,%sp),%sp + rts +.L823: + mov3q.l #-1,%d2 + jra .L814 + .size as_project_loaded, .-as_project_loaded + .section .rodata.str1.1 +.LC15: + .string "strd" + .text + .align 2 + .globl as_project_stored + .type as_project_stored, @function +as_project_stored: + lea (-24,%sp),%sp + movem.l #3132,(%sp) + jsr ready + moveq #9,%d2 + lea arr_path,%a3 + mov3q.l #4,%d1 + move.l %d0,%d3 + move.l %d3,%d4 + move.l evlog,%d0 + add.l #96058,%d4 + add.l #96318,%d3 + lsl.l #4,%d0 + or.l %d1,%d0 + move.l %d0,%d5 + move.l %d0,%d1 + clr.w %d5 + swap %d5 + move.l %d0,evlog + move.l %d5,%a0 + moveq #24,%d5 + lsr.l %d5,%d1 + move.l %d1,%a1 + move.l %d0,%d1 + move.w %a1,%d5 + lsr.l #8,%d1 + move.b %d5,269455136 + move.w %a0,%d5 + move.b %d5,269455137 + move.b %d1,269455138 + move.b %d0,269455139 +.L825: + pea .LC2 + move.l #1073832840,%a2 + move.l %d2,-(%sp) + move.l %d4,-(%sp) + jsr (%a3) + pea .LC15 + move.l %d2,-(%sp) + move.l %d3,-(%sp) + jsr (%a3) + clr.l -(%sp) + move.l %d4,-(%sp) + move.l %d3,-(%sp) + jsr (%a2) + addq.l #1,%d2 + lea (36,%sp),%sp + cmp.l #129,%d2 + jne .L825 + pea .LC2 + pea .LC3 + move.l %d4,-(%sp) + lea project_file,%a3 + jsr (%a3) + pea .LC15 + pea .LC3 + move.l %d3,-(%sp) + jsr (%a3) + clr.l -(%sp) + move.l %d4,-(%sp) + move.l %d3,-(%sp) + jsr (%a2) + lea (32,%sp),%sp + move.l #.LC2,(%sp) + pea .LC5 + move.l %d4,-(%sp) + jsr (%a3) + pea .LC15 + pea .LC5 + move.l %d3,-(%sp) + jsr (%a3) + clr.l -(%sp) + move.l %d4,-(%sp) + move.l %d3,-(%sp) + jsr (%a2) + movem.l 36(%sp),#3132 + clr.l %d0 + lea (60,%sp),%sp + rts + .size as_project_stored, .-as_project_stored + .align 2 + .globl as_project_reloaded + .type as_project_reloaded, @function +as_project_reloaded: + lea (-32,%sp),%sp + movem.l #7228,(%sp) + jsr ready + moveq #9,%d2 + lea arr_path,%a3 + mov3q.l #3,%d1 + move.l %d0,%a4 + move.l %a4,%d4 + move.l evlog,%d0 + move.l %a4,%d3 + add.l #96058,%d4 + add.l #96318,%d3 + lsl.l #4,%d0 + or.l %d1,%d0 + move.l %d0,%d5 + move.l %d0,%d1 + clr.w %d5 + swap %d5 + move.l %d0,evlog + move.l %d5,%a0 + moveq #24,%d5 + lsr.l %d5,%d1 + move.l %d1,%a1 + move.l %d0,%d1 + move.w %a1,%d5 + lsr.l #8,%d1 + move.b %d5,269455136 + move.w %a0,%d5 + move.b %d5,269455137 + move.b %d1,269455138 + move.b %d0,269455139 + st %d0 + clr.b %d1 + move.l #-16777216,%d5 + move.l %d5,5301(%a4) + move.b %d0,5305(%a4) + move.b %d1,5327(%a4) + move.b %d1,5002(%a4) + move.b %d1,4975(%a4) + move.b %d0,-2147457388 + move.b %d0,-2147457387 + move.b %d0,-2147457386 + move.b %d0,-2147457385 + move.b %d1,5314(%a4) + moveq #1,%d0 + clr.w %d1 + move.b %d0,5326(%a4) + move.w %d1,50(%a4) +.L830: + pea .LC15 + move.l #1073832840,%a2 + move.l %d2,-(%sp) + move.l %d4,-(%sp) + jsr (%a3) + pea .LC2 + move.l %d2,-(%sp) + move.l %d3,-(%sp) + jsr (%a3) + clr.l -(%sp) + move.l %d4,-(%sp) + move.l %d3,-(%sp) + jsr (%a2) + addq.l #1,%d2 + lea (36,%sp),%sp + cmp.l #129,%d2 + jne .L830 + pea .LC15 + pea .LC3 + move.l %d4,-(%sp) + lea project_file,%a3 + jsr (%a3) + pea .LC2 + pea .LC3 + move.l %d3,-(%sp) + jsr (%a3) + clr.l -(%sp) + move.l %d4,-(%sp) + move.l %d3,-(%sp) + jsr (%a2) + lea (32,%sp),%sp + move.l #.LC15,(%sp) + pea .LC5 + move.l %d4,-(%sp) + jsr (%a3) + pea .LC2 + pea .LC5 + move.l %d3,-(%sp) + jsr (%a3) + clr.l -(%sp) + move.l %d4,-(%sp) + move.l %d3,-(%sp) + jsr (%a2) + lea (36,%sp),%sp + tst.l %d0 + jlt .L831 +.L840: + move.w #256,%d5 + move.w %d5,52(%a4) + move.l %a4,-(%sp) + jsr read_place + addq.l #4,%sp + move.l %a4,-(%sp) + move.l %d0,32(%sp) + jsr read_lists + addq.l #4,%sp + move.l 28(%sp),%d0 + tst.l %d0 + jle .L843 +.L836: + clr.w %d5 + move.b %d0,38(%a4) + move.w %d5,40(%a4) + tst.b 42(%a4) + jeq .L837 + moveq #1,%d0 + move.b %d0,-2147483632 +.L837: + move.b 58(%a4),%d1 + clr.l %d0 + addq.l #1,%d1 + move.b %d1,58(%a4) + movem.l (%sp),#7228 + lea (32,%sp),%sp + rts +.L843: + mov3q.l #-1,%d0 + jra .L836 +.L831: + moveq #-12,%d1 + cmp.l %d0,%d1 + jne .L840 + move.w #256,%d0 + move.w %d0,52(%a4) + move.l %a4,-(%sp) + jsr read_place + addq.l #4,%sp + move.l %a4,%d1 + add.l #4971,%d1 + lea (83,%a4),%a0 +.L834: + clr.b (%a0)+ + cmp.l %a0,%d1 + jne .L834 + move.w #256,%d1 + move.w %d1,4971(%a4) + tst.l %d0 + jgt .L836 + jra .L843 + .size as_project_reloaded, .-as_project_reloaded + .align 2 + .globl as_modules_ready + .type as_modules_ready, @function +as_modules_ready: + lea (-16,%sp),%sp + move.l %a2,-(%sp) + move.l %d2,-(%sp) + jsr ready + move.l %d0,%a1 + tst.b 12(%a1) + jeq .L845 + move.b 269455120,%d0 + move.b 269455121,%d1 + move.w %d1,%a0 + move.b 269455122,%d1 + mvz.b 269455123,%d2 + move.l %d2,10(%sp) + moveq #24,%d2 + lsl.l %d2,%d0 + move.w %a0,%d2 + mvz.b %d1,%d1 + lsl.l #8,%d1 + mvz.b %d2,%d2 + swap %d2 + clr.w %d2 + or.l %d2,%d0 + or.l 10(%sp),%d0 + or.l %d1,%d0 + cmp.l #1095975473,%d0 + jeq .L856 +.L845: + moveq #1,%d0 + move.b %d0,12(%a1) + move.b 269455120,%d1 + move.b 269455121,%d2 + move.b 269455122,%d0 + move.w %d2,%a0 + mvz.b 269455123,%d2 + mvz.b %d0,%d0 + move.l %d2,10(%sp) + moveq #24,%d2 + lsl.l %d2,%d1 + lsl.l #8,%d0 + move.w %a0,%d2 + mvz.b %d2,%d2 + swap %d2 + clr.w %d2 + or.l %d2,%d1 + or.l 10(%sp),%d1 + or.l %d0,%d1 + cmp.l #1095975473,%d1 + jne .L847 + mvz.b 269455124,%d0 + moveq #15,%d1 + cmp.l %d0,%d1 + jcc .L857 +.L847: + move.l evlog,%d1 + moveq #15,%d0 + clr.b %d2 + lea (13,%sp),%a2 + lsl.l #4,%d1 + move.b %d2,8(%a1) + or.l %d0,%d1 + move.l %d1,%d2 + move.l %d1,%d0 + clr.w %d2 + swap %d2 + move.l %d1,evlog + move.l %d2,%a0 + moveq #24,%d2 + lsr.l %d2,%d0 + move.w %a0,%d2 + move.l %d0,10(%sp) + move.l %d1,%d0 + lsr.l #8,%d0 + move.b (%a2),269455136 + move.b %d2,269455137 + move.b %d0,269455138 + move.b %d1,269455139 + tst.b 5312(%a1) + jlt .L858 +.L850: + clr.b %d1 + move.b %d1,5312(%a1) + move.l %a1,-(%sp) + jsr remember + addq.l #4,%sp +.L846: + move.l (%sp)+,%d2 + clr.l %d0 + move.l (%sp)+,%a2 + lea (16,%sp),%sp + rts +.L858: + tst.b 269455127.l + jge .L850 + moveq #1,%d0 + move.b %d0,5313(%a1) + move.l %a1,-(%sp) + jsr remember + addq.l #4,%sp + jra .L846 +.L857: + move.b 269455128,%d1 + move.b 269455129,%d2 + move.l #268435460,%a0 + move.b %d2,10(%sp) + move.b 269455130,%d0 + move.b %d0,19(%sp) + move.l #-2128831035,%d0 + mvz.b 269455131,%d2 + move.l %d2,20(%sp) + moveq #24,%d2 + lsl.l %d2,%d1 + mvz.b 10(%sp),%d2 + move.l %d2,14(%sp) + mvz.b 19(%sp),%d2 + move.l %d2,10(%sp) + move.l 14(%sp),%d2 + swap %d2 + clr.w %d2 + move.l %d2,14(%sp) + or.l 14(%sp),%d1 + move.l 10(%sp),%d2 + lsl.l #8,%d2 + or.l 20(%sp),%d1 + or.l %d2,%d1 + move.l %d1,10(%sp) +.L848: + mvz.b (%a0)+,%d1 + eor.l %d1,%d0 + move.l #16777619,%d1 + muls.l %d1,%d0 + cmp.l #268525900,%a0 + jne .L848 + cmp.l 10(%sp),%d0 + jne .L847 + move.l #269455124,%a0 + mov3q.l #1,%d1 + move.b (%a0),8(%a1) + move.l #269455125,%a2 + move.b (%a2),11(%a1) + move.b 269455126,%d0 + eor.l %d1,%d0 + tst.b %d0 + seq %d0 + neg.l %d0 + move.b %d0,18(%a1) + tst.b 5312(%a1) + jge .L850 + jra .L858 +.L856: + move.b 269455132,%d0 + move.b 269455133,%d1 + move.w %d1,%a0 + move.b 269455134,%d1 + mvz.b 269455135,%d2 + move.l %d2,10(%sp) + moveq #24,%d2 + lsl.l %d2,%d0 + move.w %a0,%d2 + mvz.b %d1,%d1 + lsl.l #8,%d1 + mvz.b %d2,%d2 + swap %d2 + clr.w %d2 + or.l %d2,%d0 + or.l 10(%sp),%d0 + or.l %d1,%d0 + cmp.l 14(%a1),%d0 + jne .L845 + move.l (%sp)+,%d2 + clr.l %d0 + move.l (%sp)+,%a2 + lea (16,%sp),%sp + rts + .size as_modules_ready, .-as_modules_ready + .align 2 + .globl as_setlists_open + .type as_setlists_open, @function +as_setlists_open: + lea (-20,%sp),%sp + movem.l #60,(%sp) + jsr ready + clr.b %d2 + move.l %d0,%a1 + move.w #256,%d0 + clr.l 5322(%a1) + clr.l 5318(%a1) + move.b %d2,5004(%a1) + move.w %d0,5002(%a1) + tst.b 4972(%a1) + jne .L878 + move.b 5302(%a1),%d5 + mvz.b 87(%a1),%d0 + mvz.b 91(%a1,%d0.l),%d2 + move.b %d5,19(%sp) + jeq .L862 + mvz.b 5308(%a1),%d1 + cmp.l %d0,%d1 + jeq .L863 + tst.l %d2 + jeq .L871 +.L864: + mulu.w #288,%d0 + mvz.b 8(%a1),%d3 + clr.l %d1 + lea 107(%a1,%d0.l),%a0 +.L869: + mvz.b (%a0),%d0 + cmp.l %d0,%d3 + jeq .L879 +.L867: + addq.l #1,%d1 + lea (18,%a0),%a0 + cmp.l %d2,%d1 + jcs .L869 + tst.b 19(%sp) + jne .L871 + st %d5 + move.b %d5,5009(%a1) +.L859: + movem.l (%sp),#60 + lea (20,%sp),%sp + rts +.L862: + tst.l %d2 + jne .L864 + st %d0 + move.b %d0,5009(%a1) + movem.l (%sp),#60 + lea (20,%sp),%sp + rts +.L879: + move.b 269161681,%d0 + mov3q.l #7,%d5 + mvz.b 1(%a0),%d4 + and.l %d5,%d0 + cmp.l %d4,%d0 + jne .L867 + move.b %d1,%d0 + move.b %d1,5003(%a1) + tst.b 19(%sp) + jne .L868 + st %d3 +.L866: + mvz.b %d0,%d1 + move.b %d3,5009(%a1) + mov3q.l #6,%d2 + cmp.l %d1,%d2 + jcc .L859 + subq.l #6,%d0 + move.b %d0,5004(%a1) + movem.l (%sp),#60 + lea (20,%sp),%sp + rts +.L871: + move.b 5307(%a1),5009(%a1) + movem.l (%sp),#60 + lea (20,%sp),%sp + rts +.L878: + move.l %a1,-(%sp) + jsr lists_ready + addq.l #4,%sp + movem.l (%sp),#60 + lea (20,%sp),%sp + rts +.L863: + move.b 5307(%a1),%d3 + mvz.b %d3,%d1 + cmp.l %d2,%d1 + jcc .L865 + move.b %d3,5003(%a1) + move.b %d3,%d0 + jra .L866 +.L868: + move.b 5307(%a1),%d3 + jra .L866 +.L865: + tst.l %d2 + jne .L864 + move.b %d3,5009(%a1) + movem.l (%sp),#60 + lea (20,%sp),%sp + rts + .size as_setlists_open, .-as_setlists_open + .section .rodata.str1.1 +.LC16: + .string "COPIED LIST " +.LC17: + .string "COPIED SONG" +.LC18: + .string "LIST " +.LC19: + .string " IS FULL" +.LC20: + .string "NO PROJECT" +.LC21: + .string "CARD BUSY" +.LC22: + .string " ADDED TO LIST " +.LC23: + .string "STOP TO START" +.LC24: + .string "STOP TO MOVE" +.LC25: + .string "STOP TO CHANGE BOOK" + .text + .align 2 + .globl as_key + .type as_key, @function +as_key: + lea (-72,%sp),%sp + movem.l #17436,(%sp) + jsr ready + move.l %d0,%a6 + moveq #45,%d0 + cmp.l 76(%sp),%d0 + jeq .L1242 + move.l 76(%sp),%a1 + moveq #15,%d1 + cmp.l %a1,%d1 + jcs .L884 + tst.l 80(%sp) + jeq .L1243 + mvz.w 5006(%a6),%d2 + moveq #1,%d1 + mov3q.l #5,%d3 + cmp.l %d2,%d3 + jcc .L1244 + clr.w %d4 + move.b %d1,5008(%a6) + move.w %d4,5006(%a6) + tst.b 5002(%a6) + jeq .L1077 +.L914: + moveq #39,%d0 + cmp.l 76(%sp),%d0 + jne .L952 + tst.b 5011(%a6) + jeq .L1245 + tst.b 4972(%a6) + jeq .L956 + mvz.w #128,%d3 + mov3q.l #1,24(%sp) + move.l %d3,28(%sp) +.L954: + move.l 24(%sp),%d2 + move.l 28(%sp),%d3 + lea (%a6,%d2.l*4),%a0 + or.l %d3,5318(%a0) +.L909: + mov3q.l #1,28(%sp) +.L880: + movem.l (%sp),#17436 + move.l 28(%sp),%d0 + lea (72,%sp),%sp + rts +.L1242: + tst.l 80(%sp) + sne %d0 + neg.l %d0 + move.b %d0,44(%a6) + tst.b 5327(%a6) + jeq .L1246 + tst.b 5002(%a6) + jne .L940 + move.w #45,%a1 +.L946: + tst.l 80(%sp) + jne .L942 +.L941: + move.l 76(%sp),%d0 + asr.l #5,%d0 + mov3q.l #1,%d4 + moveq #31,%d1 + and.l 76(%sp),%d1 + and.l %d0,%d4 + mov3q.l #1,%d0 + lsl.l %d1,%d0 + move.l %d4,%a0 + lea (%a6,%a0.l*4),%a2 + move.l 5318(%a2),%d1 + move.l %d1,%d2 + and.l %d0,%d2 + tst.l %d2 + jeq .L942 + move.l %a0,80(%sp) +.L1064: + move.l 80(%sp),%d4 + not.l %d0 + and.l %d1,%d0 + lea (%a6,%d4.l*4),%a0 + move.l %d0,5318(%a0) +.L1253: + mov3q.l #1,28(%sp) + jra .L880 +.L1243: + tst.b 5002(%a6) + jne .L888 + move.l 76(%sp),%d4 + mov3q.l #1,%d0 + move.l 5318(%a6),%d1 + lsl.l %d4,%d0 + move.l %d0,%d2 + and.l %d1,%d2 + tst.l %d2 + jne .L1064 +.L1077: + tst.b 44(%a6) + jne .L903 + mov3q.l #1,28(%sp) +.L1039: + move.b 1074531136,%d1 + move.b 1074531137,%d2 + moveq #24,%d4 + move.b 1074531138,%d0 + mvz.b 1074531139,%d3 + lsl.l %d4,%d1 + mvz.b %d2,%d2 + mvz.b %d0,%d0 + swap %d2 + clr.w %d2 + lsl.l #8,%d0 + or.l %d2,%d1 + or.l %d3,%d1 + or.l %d0,%d1 + jeq .L903 + tst.l 80(%sp) + jeq .L909 + tst.l 28(%sp) + jeq .L1040 + tst.b 5008(%a6) + jeq .L880 + tst.b 4976(%a6) + jne .L880 + mvz.b 8(%a6),%d0 + cmp.l %d0,%a1 + jeq .L880 + tst.b 9(%a6) + jge .L880 + jsr stopped + tst.l %d0 + jeq .L1074 +.L1076: + moveq #15,%d4 + cmp.l 76(%sp),%d4 + jcs .L909 + clr.b %d0 + move.b 79(%sp),9(%a6) + move.b %d0,10(%a6) + clr.l -(%sp) + jsr 1073884372 + addq.l #4,%sp + tst.l %d0 + jlt .L1247 + moveq #1,%d3 + mov3q.l #1,28(%sp) + move.b %d3,55(%a6) + jra .L880 +.L1246: + tst.b 5002(%a6) + jne .L940 + move.w #45,%a1 + tst.l 80(%sp) + jeq .L941 +.L903: + clr.l 28(%sp) +.L1251: + movem.l (%sp),#17436 + move.l 28(%sp),%d0 + lea (72,%sp),%sp + rts +.L1244: + clr.b %d1 + clr.w %d4 + move.b %d1,5008(%a6) + move.w %d4,5006(%a6) + tst.b 5002(%a6) + jne .L914 + jra .L1077 +.L893: + tst.b 5002(%a6) + jeq .L900 +.L888: + moveq #31,%d0 + mov3q.l #4,%d1 + and.l 76(%sp),%d0 + move.l %d0,%a0 + move.l %a0,%d2 + move.l 76(%sp),%d0 + lsr.l #3,%d0 + and.l %d1,%d0 + mov3q.l #1,%d1 + lsl.l %d2,%d1 + lea (%a6,%d0.l),%a0 + move.l 5318(%a0),%d0 + move.l %d1,%d3 + and.l %d0,%d3 + tst.l %d3 + jeq .L903 +.L1272: + not.l %d1 + and.l %d0,%d1 + moveq #45,%d0 + move.l %d1,5318(%a0) + cmp.l 76(%sp),%d0 + jeq .L903 + moveq #39,%d1 + cmp.l 76(%sp),%d1 + jeq .L1248 + moveq #40,%d3 + cmp.l 76(%sp),%d3 + jne .L909 + tst.b 5010(%a6) + jeq .L903 + clr.b %d4 + mov3q.l #1,28(%sp) + move.b %d4,5010(%a6) + jra .L880 +.L884: + moveq #46,%d0 + cmp.l 76(%sp),%d0 + jne .L892 + tst.l 80(%sp) + jeq .L893 + tst.b 44(%a6) + jeq .L897 + move.w #256,%d1 + move.w %d1,45(%a6) +.L897: + tst.b 5002(%a6) + jeq .L903 +.L935: + moveq #31,%d0 + mov3q.l #1,%d4 + and.l 76(%sp),%d0 + move.l 76(%sp),%d1 + asr.l #5,%d1 + and.l %d1,%d4 + mov3q.l #1,%d1 + lsl.l %d0,%d1 + move.l %d4,24(%sp) + move.l %d1,28(%sp) + tst.b 4972(%a6) + jne .L1070 + move.b 87(%a6),%d1 + moveq #15,%d4 + cmp.l 76(%sp),%d4 + jge .L1249 + mvz.b %d1,%d2 + move.b 91(%a6,%d2.l),%d3 + move.l %d2,36(%sp) + move.l %d2,32(%sp) + moveq #49,%d2 + mvz.b %d3,%d4 + move.b %d3,40(%sp) + move.l %d4,%a0 + move.l %d4,%d0 + cmp.l 76(%sp),%d2 + jeq .L962 + jlt .L965 + moveq #33,%d3 + cmp.l 76(%sp),%d3 + jeq .L966 + jlt .L967 + move.b 5003(%a6),%d0 + moveq #32,%d4 + cmp.l 76(%sp),%d4 + jne .L959 + mvz.b %d0,%d1 + addq.l #1,%d1 + cmp.l %a0,%d1 + jcc .L959 + addq.l #1,%d0 + move.b %d0,5003(%a6) +.L959: + mvz.b %d0,%d1 + move.l %d1,%a0 + mvz.b 5004(%a6),%d1 + cmp.l %a0,%d1 + jls .L1023 + move.b %d0,5004(%a6) + move.l %a0,%d1 +.L1023: + addq.l #7,%d1 + cmp.l %a0,%d1 + jhi .L954 + move.l 24(%sp),%d2 + subq.l #6,%d0 + move.b %d0,5004(%a6) + move.l 28(%sp),%d3 + lea (%a6,%d2.l*4),%a0 + or.l %d3,5318(%a0) + jra .L909 +.L892: + moveq #42,%d2 + cmp.l 76(%sp),%d2 + jne .L901 + tst.l 80(%sp) + sne %d0 + neg.l %d0 + move.b %d0,4976(%a6) + tst.l 80(%sp) + jne .L1250 + clr.b %d4 + clr.l 28(%sp) + move.b %d4,5327(%a6) + jra .L1251 +.L1250: + move.b 1187503478,%d0 + move.b 1187503479,%d3 + moveq #24,%d2 + move.b 1187503480,%d4 + mvz.b 1187503481,%d1 + clr.l 28(%sp) + move.l %d1,20(%sp) + lsl.l %d2,%d0 + mvz.b %d3,%d3 + mvz.b %d4,%d1 + swap %d3 + clr.w %d3 + lsl.l #8,%d1 + or.l %d3,%d0 + or.l 20(%sp),%d0 + or.l %d1,%d0 + cmp.l #1074128072,%d0 + seq %d0 + neg.l %d0 + move.b %d0,5330(%a6) + jra .L1251 +.L1040: + tst.b 9(%a6) + jge .L909 + tst.b 4976(%a6) + jeq .L1043 + moveq #33,%d3 + cmp.l 76(%sp),%d3 + jeq .L1252 + mov3q.l #-1,20(%sp) +.L1044: + jsr stopped + move.l %d0,28(%sp) + tst.l %d0 + jne .L1045 + pea 48.w + pea .LC24 + jsr 1074111160 + addq.l #8,%sp + mov3q.l #1,28(%sp) + jra .L880 +.L900: + move.l 5322(%a6),%d1 + btst #14,%d1 + jeq .L903 + mvz.w #16384,%d0 + mov3q.l #1,80(%sp) + move.l 80(%sp),%d4 + not.l %d0 + lea (%a6,%d4.l*4),%a0 + and.l %d1,%d0 + move.l %d0,5318(%a0) + jra .L1253 +.L1074: + pea 48.w + pea .LC25 + jsr 1074111160 + addq.l #8,%sp + mov3q.l #1,28(%sp) + jra .L880 +.L1045: + move.b 1074531240,%d0 + move.b 1074531241,%d0 + move.b 1074531242,%d0 + mov3q.l #7,%d4 + move.l 20(%sp),%d1 + mov3q.l #7,%d2 + mvz.b 1074531243,%d0 + and.l %d0,%d4 + add.l %d4,%d1 + move.l %d4,24(%sp) + move.l %d1,32(%sp) + cmp.l %d1,%d2 + jcs .L880 + move.w %d4,%d0 + mvz.w #5652,%d3 + clr.l 36(%sp) + move.l 20(%sp),%d1 + muls.l %d3,%d1 + mulu.w #5652,%d0 + add.l #268441112,%d0 + move.l %d0,20(%sp) + move.l 20(%sp),%a0 + lea (-5652,%a0),%a0 +.L1047: + move.b (%a0),%d0 + lea (%a0,%d1.l),%a1 + move.b (%a1),(%a0)+ + move.b %d0,(%a1) + cmp.l 20(%sp),%a0 + jne .L1047 + add.l #45216,%a0 + move.l %a0,20(%sp) + moveq #8,%d0 + cmp.l 36(%sp),%d0 + jne .L1092 + lea (108,%a6),%a1 + mov3q.l #1,%d1 + move.l %a1,20(%sp) + lea (91,%a6),%a0 + move.l 24(%sp),%d2 + move.l %d2,%a1 + add.l #268525892,%a1 + move.l %a0,36(%sp) + move.b (%a1),48(%sp) + move.l 32(%sp),%d3 + move.l %d3,%a0 + add.l #268525892,%a0 + move.l %d1,%d0 + move.b (%a0),(%a1) + move.b %d3,40(%sp) + lea (107,%a6),%a2 + move.l #268525900,%a1 + lsl.l %d2,%d0 + move.l %a2,44(%sp) + move.b 48(%sp),(%a0) + lsl.l %d3,%d1 + move.b (%a1),%d2 + move.w %d2,%a0 + move.l %a0,%d2 + or.l %d2,%d0 + or.l %d1,%d0 + move.b %d0,(%a1) + move.b 8(%a6),%d3 + move.b %d3,48(%sp) + mvz.b %d3,%d4 + move.l %d4,%a1 +.L1049: + move.l 36(%sp),%a2 + addq.l #1,36(%sp) + move.b (%a2)+,%d0 + jeq .L1055 + mvz.b %d0,%d0 + move.l 20(%sp),%a0 + move.l %a0,%d1 + mulu.w #18,%d0 + add.l %d0,%d1 +.L1052: + mvz.b -1(%a0),%d0 + cmp.l %a1,%d0 + jne .L1050 + mvz.b (%a0),%d0 + cmp.l 24(%sp),%d0 + jeq .L1254 + cmp.l 32(%sp),%d0 + jeq .L1255 +.L1050: + lea (18,%a0),%a0 + cmp.l %a0,%d1 + jne .L1052 +.L1055: + mvz.w #288,%d3 + move.l 36(%sp),%a0 + add.l %d3,20(%sp) + cmp.l 44(%sp),%a0 + jne .L1049 + move.b 269161681,%d0 + mov3q.l #7,%d1 + and.l %d1,%d0 + cmp.l 24(%sp),%d0 + jeq .L1093 + cmp.l 32(%sp),%d0 + jeq .L1256 +.L1057: + mvz.b 48(%sp),%d0 + mvz.b 22(%a6,%d0.l),%d1 + cmp.l 24(%sp),%d1 + jeq .L1257 + cmp.l 32(%sp),%d1 + jeq .L1258 + clr.b %d0 + lea (35,%sp),%a0 + moveq #24,%d4 + move.b %d0,1074531240 + move.b %d0,1074531241 + move.b %d0,1074531242 + move.b (%a0),1074531243 + move.b 1074531232,%d1 + move.b 1074531233,%d0 + move.b 1074531234,%d2 + mvz.b 1074531235,%d3 + lsl.l %d4,%d1 + mvz.b %d0,%d0 + move.l %d0,%a1 + mvz.b %d2,%d0 + move.l %a1,%d2 + swap %d2 + clr.w %d2 + lsl.l #8,%d0 + or.l %d2,%d1 + or.l %d3,%d1 + or.l %d0,%d1 + move.l 32(%sp),%d0 + sub.l %d1,%d0 + move.l %d0,%d1 + lsr.l %d4,%d1 + move.l %d0,%d3 + clr.w %d3 + swap %d3 + move.l %d1,%a1 + move.l %d0,%d1 + move.w %a1,%d2 + lsr.l #8,%d1 + move.b %d2,1074531236 + move.b %d3,1074531237 + move.b %d1,1074531238 + move.b %d0,1074531239 + jsr 1073966616 +.L1259: + movem.l (%sp),#17436 + move.l 28(%sp),%d0 + lea (72,%sp),%sp + rts +.L1255: + moveq #1,%d2 + move.b 27(%sp),(%a0) + lea (18,%a0),%a0 + move.b %d2,4971(%a6) + cmp.l %a0,%d1 + jne .L1052 + jra .L1055 +.L1258: + lea (27,%sp),%a1 + moveq #24,%d4 + move.b (%a1),22(%a6,%d0.l) + clr.b %d0 + lea (35,%sp),%a0 + move.b %d0,1074531240 + move.b %d0,1074531241 + move.b %d0,1074531242 + move.b (%a0),1074531243 + move.b 1074531232,%d1 + move.b 1074531233,%d0 + move.b 1074531234,%d2 + mvz.b 1074531235,%d3 + lsl.l %d4,%d1 + mvz.b %d0,%d0 + move.l %d0,%a1 + mvz.b %d2,%d0 + move.l %a1,%d2 + swap %d2 + clr.w %d2 + lsl.l #8,%d0 + or.l %d2,%d1 + or.l %d3,%d1 + or.l %d0,%d1 + move.l 32(%sp),%d0 + sub.l %d1,%d0 + move.l %d0,%d1 + lsr.l %d4,%d1 + move.l %d0,%d3 + clr.w %d3 + swap %d3 + move.l %d1,%a1 + move.l %d0,%d1 + move.w %a1,%d2 + lsr.l #8,%d1 + move.b %d2,1074531236 + move.b %d3,1074531237 + move.b %d1,1074531238 + move.b %d0,1074531239 + jsr 1073966616 + jra .L1259 +.L1256: + move.l 24(%sp),%d0 + move.l %d0,-(%sp) + jsr 1074398112 + move.b 8(%a6),52(%sp) + addq.l #4,%sp + jra .L1057 +.L1254: + moveq #1,%d0 + move.b 40(%sp),(%a0) + lea (18,%a0),%a0 + move.b %d0,4971(%a6) + cmp.l %a0,%d1 + jne .L1052 + jra .L1055 +.L1043: + jsr stopped + tst.l %d0 + jeq .L1074 + mvz.b 8(%a6),%d1 + moveq #33,%d3 + cmp.l 76(%sp),%d3 + jeq .L1060 + mov3q.l #-1,%d0 +.L1060: + add.l %d0,%d1 + move.l %d1,76(%sp) + jra .L1076 +.L1252: + mov3q.l #1,20(%sp) + jra .L1044 +.L1248: + tst.b 5011(%a6) + jeq .L903 + clr.b %d2 + mov3q.l #1,28(%sp) + move.b %d2,5011(%a6) + jra .L880 +.L1070: + moveq #50,%d4 + cmp.l 76(%sp),%d4 + jne .L954 + moveq #4,%d1 + swap %d1 + mov3q.l #1,24(%sp) + move.l %d1,28(%sp) +.L961: + clr.b %d0 + move.b %d0,5002(%a6) + move.b 5003(%a6),%d0 + jra .L959 +.L1092: + move.l 20(%sp),%a0 + moveq #8,%d4 + move.l %d4,36(%sp) + lea (-5652,%a0),%a0 + jra .L1047 +.L952: + moveq #40,%d1 + cmp.l 76(%sp),%d1 + jne .L935 + tst.b 5010(%a6) + jne .L957 + tst.b 44(%a6) + jeq .L903 + tst.b 4972(%a6) + jne .L1066 + mvz.b 87(%a6),%d0 + moveq #1,%d2 + move.l %d0,20(%sp) + move.l 20(%sp),%d1 + move.b 5003(%a6),%d0 + move.b 91(%a6,%d1.l),%d1 + move.b %d2,5010(%a6) + mvz.b %d0,%d3 + move.b %d1,27(%sp) + mvz.b %d1,%d1 + move.l %d3,%a0 + cmp.l %d3,%d1 + jls .L1068 + move.l %a0,%d0 + addq.l #1,%d0 + cmp.l %d1,%d0 + jcc .L1004 + move.w 22(%sp),%d3 + move.w %a0,%d2 + mulu.w #18,%d1 + move.l %a6,%d0 + add.l #143,%d0 + mulu.w #288,%d3 + mulu.w #18,%d2 + lea 125(%a6,%d3.l),%a1 + add.l %d2,%d0 + add.l %d3,%d0 + add.l %a1,%d1 +.L1006: + move.l %d0,%a0 + move.l %d0,%a1 + lea (-18,%a0),%a0 + lea (-36,%a1),%a1 +.L1005: + move.b (%a0)+,(%a1)+ + cmp.l %d0,%a0 + jne .L1005 + add.l #18,%d0 + cmp.l %d0,%d1 + jne .L1006 +.L1004: + move.b 27(%sp),%d0 + move.l 20(%sp),%d4 + subq.l #1,%d0 + move.b %d0,91(%a6,%d4.l) + moveq #1,%d0 + move.b %d0,4971(%a6) + move.b 5003(%a6),%d0 +.L1068: + tst.b %d0 + jeq .L1007 + move.l 20(%sp),%d2 + mvz.b %d0,%d3 + mvz.b 91(%a6,%d2.l),%d1 + cmp.l %d3,%d1 + jhi .L1087 + mvz.w #256,%d4 + subq.l #1,%d0 + move.b %d0,5003(%a6) + mov3q.l #1,24(%sp) + move.l %d4,28(%sp) + jra .L959 +.L1245: + tst.b 44(%a6) + jeq .L903 + tst.b 4972(%a6) + jeq .L1260 + mvz.w #128,%d2 + mov3q.l #1,24(%sp) + move.l %d2,28(%sp) + move.l 24(%sp),%d2 + move.l 28(%sp),%d3 + lea (%a6,%d2.l*4),%a0 + or.l %d3,5318(%a0) + jra .L909 +.L957: + tst.b 4972(%a6) + jne .L1085 + mvz.w #256,%d3 + move.b 5003(%a6),%d0 + mov3q.l #1,24(%sp) + move.l %d3,28(%sp) + jra .L959 +.L1249: + tst.b 5008(%a6) + jeq .L954 + tst.b 4976(%a6) + jne .L954 + mvz.b %d1,%d1 + cmp.l 76(%sp),%d1 + jeq .L954 + moveq #1,%d0 + clr.w %d1 + move.l 24(%sp),%d2 + move.b 79(%sp),87(%a6) + move.l 28(%sp),%d3 + lea (%a6,%d2.l*4),%a0 + move.b %d0,4971(%a6) + move.w %d1,5003(%a6) + or.l %d3,5318(%a0) + jra .L909 +.L1247: + st %d1 + addq.l #7,%d0 + move.b %d1,9(%a6) + tst.l %d0 + jeq .L1261 + pea 48.w + move.l #.LC21,%d0 + move.l %d0,-(%sp) + jsr 1074111160 + addq.l #8,%sp +.L1265: + mov3q.l #1,28(%sp) + jra .L880 +.L942: + moveq #15,%d3 + cmp.l 76(%sp),%d3 + jge .L1077 + moveq #52,%d4 + cmp.l 76(%sp),%d4 + jne .L1262 + clr.l 28(%sp) + jra .L1039 +.L1262: + moveq #33,%d0 + cmp.l 76(%sp),%d0 + jne .L903 + clr.l 28(%sp) + jra .L1039 +.L1085: + mov3q.l #1,24(%sp) + move.l 24(%sp),%d2 + mvz.w #256,%d4 + lea (%a6,%d2.l*4),%a0 + move.l %d4,28(%sp) + move.l 28(%sp),%d3 + or.l %d3,5318(%a0) + jra .L909 +.L956: + mvz.w #128,%d2 + move.b 5003(%a6),%d0 + mov3q.l #1,24(%sp) + move.l %d2,28(%sp) + jra .L959 +.L1257: + lea (35,%sp),%a0 + moveq #24,%d4 + move.b (%a0),22(%a6,%d0.l) + clr.b %d0 + lea (35,%sp),%a0 + move.b %d0,1074531240 + move.b %d0,1074531241 + move.b %d0,1074531242 + move.b (%a0),1074531243 + move.b 1074531232,%d1 + move.b 1074531233,%d0 + move.b 1074531234,%d2 + mvz.b 1074531235,%d3 + lsl.l %d4,%d1 + mvz.b %d0,%d0 + move.l %d0,%a1 + mvz.b %d2,%d0 + move.l %a1,%d2 + swap %d2 + clr.w %d2 + lsl.l #8,%d0 + or.l %d2,%d1 + or.l %d3,%d1 + or.l %d0,%d1 + move.l 32(%sp),%d0 + sub.l %d1,%d0 + move.l %d0,%d1 + lsr.l %d4,%d1 + move.l %d0,%d3 + clr.w %d3 + swap %d3 + move.l %d1,%a1 + move.l %d0,%d1 + move.w %a1,%d2 + lsr.l #8,%d1 + move.b %d2,1074531236 + move.b %d3,1074531237 + move.b %d1,1074531238 + move.b %d0,1074531239 + jsr 1073966616 + jra .L1259 +.L1093: + move.l 32(%sp),%d0 + move.l %d0,-(%sp) + jsr 1074398112 + move.b 8(%a6),52(%sp) + addq.l #4,%sp + jra .L1057 +.L965: + moveq #51,%d2 + cmp.l 76(%sp),%d2 + jeq .L971 + moveq #52,%d3 + cmp.l 76(%sp),%d3 + jeq .L972 + moveq #50,%d4 + cmp.l 76(%sp),%d4 + jeq .L961 +.L1228: + move.b 5003(%a6),%d0 + jra .L959 +.L1007: + tst.b 5004(%a6) + jeq .L1066 + clr.b %d4 + move.b %d4,5004(%a6) +.L1066: + mvz.w #256,%d2 + mov3q.l #1,24(%sp) + move.l %d2,28(%sp) + move.l 24(%sp),%d2 + move.l 28(%sp),%d3 + lea (%a6,%d2.l*4),%a0 + or.l %d3,5318(%a0) + jra .L909 +.L971: + move.b 5003(%a6),%d0 + jeq .L973 + subq.l #1,%d0 + move.b %d0,5003(%a6) + jra .L959 +.L931: + tst.b %d0 + jeq .L948 +.L943: + tst.b 4972(%a6) + jne .L1263 + moveq #2,%d3 + swap %d3 + mvz.b 87(%a6),%d2 + mov3q.l #1,24(%sp) + move.l %d2,32(%sp) + mvz.b 91(%a6,%d2.l),%d0 + move.l %d3,28(%sp) +.L962: + tst.b 44(%a6) + jne .L1264 + tst.l %d0 + jeq .L1228 + jsr stopped + tst.l %d0 + jne .L1018 + pea 48.w + pea .LC23 + jsr 1074111160 + move.b 5003(%a6),%d0 + addq.l #8,%sp + jra .L959 +.L1261: + pea 48.w + move.l #.LC20,%d0 + move.l %d0,-(%sp) + jsr 1074111160 + addq.l #8,%sp + jra .L1265 +.L1260: + mvz.b 87(%a6),%d2 + moveq #1,%d4 + move.b 5012(%a6),%d1 + move.b 91(%a6,%d2.l),%d3 + move.l %d2,36(%sp) + move.b %d4,5011(%a6) + move.b %d3,27(%sp) + tst.b %d1 + jeq .L956 + mvz.b %d1,%d1 + mvz.b %d3,%d0 + move.l %d1,%a0 + moveq #16,%d1 + sub.l %d0,%d1 + move.l %d0,32(%sp) + move.l %d1,20(%sp) + cmp.l %d1,%a0 + jcc .L991 + move.l %a0,20(%sp) +.L991: + tst.l %d0 + jeq .L992 + mvz.b 5003(%a6),%d1 + move.l %d1,%d2 + addq.l #1,%d2 + move.l %d2,32(%sp) + cmp.l %d2,%d0 + jls .L992 + mulu.w #18,%d0 + mulu.w #18,%d1 + moveq #18,%d3 + lea 107(%a6,%d0.l),%a1 + move.w 38(%sp),%d0 + move.l %d1,%a0 + lea 125(%a6,%a0.l),%a0 + move.l 20(%sp),%d1 + subq.l #1,%d1 + muls.l %d1,%d3 + move.l %a1,%d1 + mulu.w #288,%d0 + move.l %d3,40(%sp) + add.l %d0,%a0 + add.l %d0,%d1 + move.l %a0,28(%sp) +.L995: + move.l %d1,%d0 + add.l #-18,%d1 + move.l 40(%sp),%a1 + move.l %d1,%a0 + add.l %d0,%a1 +.L994: + move.b (%a0)+,(%a1)+ + cmp.l %d0,%a0 + jne .L994 + cmp.l 28(%sp),%d1 + jne .L995 +.L992: + move.b 27(%sp),%d0 + move.b 23(%sp),%d4 + add.l 20(%sp),%d0 + move.b %d4,51(%sp) + move.l %d0,44(%sp) + tst.l 20(%sp) + jeq .L996 + move.w 38(%sp),%d1 + move.w 22(%sp),%d2 + lea (5013,%a6),%a0 + move.w 34(%sp),%d3 + move.l %a6,%d0 + add.l #5031,%d0 + move.l %a0,28(%sp) + mulu.w #288,%d1 + mulu.w #18,%d2 + mulu.w #18,%d3 + lea 107(%a6,%d1.l),%a1 + move.l %d2,%a0 + add.l %d0,%a0 + move.l %a0,40(%sp) + add.l %d3,%a1 + move.l %a1,24(%sp) +.L998: + move.l 24(%sp),%a1 + move.l 28(%sp),%a0 +.L997: + move.b (%a0)+,(%a1)+ + cmp.l %d0,%a0 + jne .L997 + moveq #18,%d4 + add.l #18,%d0 + add.l %d4,28(%sp) + add.l %d4,24(%sp) + cmp.l 40(%sp),%d0 + jne .L998 + move.b 51(%sp),%d1 + lea (47,%sp),%a1 + move.l 32(%sp),%a0 + move.l 36(%sp),%a2 + move.b (%a1),91(%a6,%a2.l) + lea -1(%a0,%d1.l),%a0 + moveq #1,%d1 + move.l %a0,%d0 + move.b %d1,4971(%a6) + move.b %d0,5003(%a6) +.L1067: + mvz.b 5012(%a6),%d0 + cmp.l 20(%sp),%d0 + jls .L956 + moveq #76,%d3 + lea (4978,%a6),%a0 + move.l %a0,20(%sp) + move.l 20(%sp),%d0 + lea (4983,%a6),%a0 + lea .LC18,%a1 + move.b %d3,24(%sp) +.L1000: + move.l %d0,%a2 + addq.l #1,%a1 + move.b 24(%sp),(%a2)+ + move.b (%a1),24(%sp) + move.l %a2,%d0 + cmp.l %a0,%a2 + jne .L1000 + move.l 36(%sp),%d1 + moveq #9,%d0 + addq.l #1,%d1 + cmp.l %d1,%d0 + jcc .L1002 + move.l %d1,%d0 + moveq #10,%d2 + divu.l %d2,%d0 + lea (4984,%a6),%a0 + add.l #48,%d0 + move.b %d0,4983(%a6) +.L1002: + moveq #10,%d4 + remu.l %d4,%d0:%d1 + moveq #32,%d1 + move.l %a0,%a1 + lea (9,%a0),%a2 + move.l %a2,28(%sp) + add.l #48,%d0 + move.b %d0,(%a1)+ + move.b %d1,24(%sp) + move.l #.LC19,%d1 +.L1003: + move.b 24(%sp),(%a1)+ + addq.l #1,%d1 + move.l %d1,%a2 + move.b (%a2),24(%sp) + cmp.l 28(%sp),%a1 + jne .L1003 + clr.b %d0 + move.b %d0,9(%a0) + pea 48.w + move.l 24(%sp),-(%sp) + jsr 1074111160 + mvz.w #128,%d1 + addq.l #8,%sp + mov3q.l #1,24(%sp) + move.b 5003(%a6),%d0 + move.l %d1,28(%sp) + jra .L959 +.L972: + tst.b 4976(%a6) + jne .L976 + mov3q.l #-1,%a0 +.L975: + move.l 36(%sp),%d0 + moveq #15,%d2 + add.l %a0,%d0 + cmp.l %d0,%d2 + jcs .L1228 + moveq #1,%d3 + clr.w %d4 + move.l 24(%sp),%d2 + move.l %a0,%d0 + add.l %d1,%d0 + move.b %d0,87(%a6) + lea (%a6,%d2.l*4),%a0 + move.b %d3,4971(%a6) + move.w %d4,5003(%a6) + move.l 28(%sp),%d3 + or.l %d3,5318(%a0) + jra .L909 +.L967: + moveq #41,%d0 + cmp.l 76(%sp),%d0 + jne .L1228 + tst.b 44(%a6) + jeq .L1228 + tst.l %d4 + jeq .L1228 + move.w 38(%sp),%d1 + lea (4978,%a6),%a1 + move.l %a1,20(%sp) + mulu.w #288,%d1 + tst.b 4976(%a6) + jeq .L982 + lea 125(%a6,%d1.l),%a2 + move.w %d4,%d1 + move.l %a2,%d0 + mulu.w #18,%d1 + move.l %d1,%a0 + move.l %a6,%d1 + add.l #5013,%d1 + add.l %d1,%a0 + move.l %a0,32(%sp) +.L984: + move.l %d0,%a0 + move.l %d1,%a1 + lea (-18,%a0),%a0 +.L983: + move.b (%a0)+,(%a1)+ + cmp.l %a0,%d0 + jne .L983 + move.l %a0,%d0 + add.l #18,%d1 + add.l #18,%d0 + cmp.l 32(%sp),%d1 + jne .L984 + move.b 40(%sp),%d2 + moveq #67,%d0 + move.l 20(%sp),%a1 + lea .LC16,%a0 + move.b %d2,5012(%a6) +.L985: + move.b %d0,(%a1)+ + addq.l #1,%a0 + move.b (%a0),%d0 + cmp.l #.LC16+12,%a0 + jne .L985 + move.l 36(%sp),%d0 + moveq #9,%d3 + addq.l #1,%d0 + cmp.l %d0,%d3 + jcs .L986 + moveq #10,%d3 + remu.l %d3,%d1:%d0 + lea (4990,%a6),%a0 + add.l #48,%d1 + move.b %d1,(%a0)+ +.L988: + clr.b (%a0) + pea 48.w + move.l 24(%sp),-(%sp) + jsr 1074111160 + move.b 5003(%a6),%d0 + addq.l #8,%sp + jra .L959 +.L973: + tst.b 5004(%a6) + jeq .L954 + clr.b %d3 + move.l 24(%sp),%d2 + lea (%a6,%d2.l*4),%a0 + move.b %d3,5004(%a6) + move.l 28(%sp),%d3 + or.l %d3,5318(%a0) + jra .L909 +.L966: + tst.b 4976(%a6) + jne .L974 + mov3q.l #1,%a0 + jra .L975 +.L1264: + move.l 32(%sp),%d1 + clr.b %d0 + lsl.l #4,%d1 + move.b %d0,5002(%a6) + move.b %d0,4976(%a6) + move.b %d0,44(%a6) + add.l #4715,%d1 + clr.l %d0 + lea (%a6,%d1.l),%a1 +.L1009: + tst.b (%a1,%d0.l) + jeq .L1013 + addq.l #1,%d0 + moveq #15,%d1 + cmp.l %d0,%d1 + jne .L1009 +.L1013: + tst.l %d0 + jeq .L1012 + subq.l #1,%d0 + moveq #32,%d2 + mvs.b (%a1,%d0.l),%d1 + cmp.l %d1,%d2 + jeq .L1013 + pea as_list_named + mov3q.l #1,-(%sp) + move.l %a1,-(%sp) + pea (title.3) + pea 15.w + jsr 1074259556 + lea (20,%sp),%sp + move.b 5003(%a6),%d0 + jra .L959 +.L1012: + moveq #83,%d3 + move.l %a1,%d1 + move.l %a1,%d0 + addq.l #8,%d1 + lea .LC7,%a0 + move.b %d3,20(%sp) +.L1015: + move.l %d0,%a2 + addq.l #1,%a0 + move.b 20(%sp),(%a2)+ + move.b (%a0),20(%sp) + move.l %a2,%d0 + cmp.l %a2,%d1 + jne .L1015 + move.l 32(%sp),%d0 + moveq #9,%d2 + addq.l #1,%d0 + cmp.l %d0,%d2 + jcc .L1016 + move.l %d0,%d3 + moveq #10,%d4 + divu.l %d4,%d3 + move.l %a1,%d1 + add.l #9,%d1 + move.l %d3,%a0 + lea (48,%a0),%a0 + move.w %a0,%d2 + move.b %d2,8(%a1) +.L1016: + moveq #10,%d3 + remu.l %d3,%d4:%d0 + clr.b %d0 + move.l %d1,%a2 + move.b %d0,1(%a2) + move.l %d4,%d0 + add.l #48,%d0 + move.b %d0,(%a2) + pea as_list_named + mov3q.l #1,-(%sp) + move.l %a1,-(%sp) + pea (title.3) + pea 15.w + jsr 1074259556 + lea (20,%sp),%sp + move.b 5003(%a6),%d0 + jra .L959 +.L976: + mvz.b 5003(%a6),%d0 + move.l %d0,%d2 + subq.l #1,%d2 + move.l %d2,40(%sp) + tst.l %d0 + jeq .L978 +.L977: + cmp.l 40(%sp),%a0 + jle .L978 + move.w 38(%sp),%d1 + mulu.w #18,%d0 + lea (72,%sp),%a1 + lea (54,%sp),%a0 + move.l %a1,36(%sp) + move.l %a0,20(%sp) + mulu.w #288,%d1 + add.l #107,%d1 + add.l %d1,%d0 + lea (%a6,%d0.l),%a2 + move.l %a2,32(%sp) + move.l %a2,%a1 +.L979: + move.b (%a1)+,(%a0)+ + cmp.l 36(%sp),%a0 + jne .L979 + move.l 40(%sp),%d0 + move.w %d0,%d2 + mulu.w #18,%d2 + add.l %d2,%d1 + lea (%a6,%d1.l),%a0 + move.l %a0,%d1 + move.l %a0,%a1 + add.l #18,%d1 +.L980: + move.l 32(%sp),%a2 + addq.l #1,32(%sp) + move.b (%a1)+,(%a2)+ + cmp.l %a1,%d1 + jne .L980 +.L981: + move.l 20(%sp),%a1 + move.l 36(%sp),%a2 + addq.l #1,20(%sp) + move.b (%a1)+,(%a0)+ + cmp.l %a1,%a2 + jne .L981 + moveq #1,%d1 + move.b %d1,4971(%a6) +.L978: + move.b %d0,5003(%a6) + jra .L959 +.L982: + mvz.b 5003(%a6),%d0 + move.l %d1,%a2 + lea (5013,%a6),%a1 + mulu.w #18,%d0 + lea 107(%a2,%d0.l),%a0 + add.l %a6,%a0 + move.l %a0,%d0 + add.l #18,%d0 +.L989: + move.b (%a0)+,(%a1)+ + cmp.l %a0,%d0 + jne .L989 + moveq #1,%d0 + move.l 20(%sp),%a1 + lea .LC17,%a0 + move.b %d0,5012(%a6) + moveq #67,%d0 +.L990: + move.b %d0,(%a1)+ + addq.l #1,%a0 + move.b (%a0),%d0 + cmp.l #.LC17+11,%a0 + jne .L990 + lea (4989,%a6),%a0 + clr.b (%a0) + pea 48.w + move.l 24(%sp),-(%sp) + jsr 1074111160 + move.b 5003(%a6),%d0 + addq.l #8,%sp + jra .L959 +.L1018: + move.b 5003(%a6),%d0 + tst.b 5302(%a6) + jeq .L1019 + moveq #1,%d1 + move.b %d0,5305(%a6) + move.b %d1,5304(%a6) + clr.l -(%sp) + jsr 1073884372 + addq.l #4,%sp + tst.l %d0 + jlt .L1020 +.L1229: + moveq #1,%d2 + move.b %d2,55(%a6) +.L1020: + clr.b %d3 + move.b 5003(%a6),%d0 + move.b %d3,5002(%a6) + jra .L959 +.L974: + mvz.b 5003(%a6),%d0 + move.l %d0,%d1 + addq.l #1,%d1 + move.l %d1,40(%sp) + jra .L977 +.L1087: + mvz.w #256,%d4 + mov3q.l #1,24(%sp) + move.l %d4,28(%sp) + jra .L959 +.L1019: + move.b %d0,5301(%a6) + clr.l -(%sp) + jsr 1073884372 + addq.l #4,%sp + tst.l %d0 + jge .L1229 + st %d4 + addq.l #7,%d0 + move.b %d4,5301(%a6) + tst.l %d0 + jeq .L1266 + pea 48.w + move.l #.LC21,%d0 + move.l %d0,-(%sp) + jsr 1074111160 + addq.l #8,%sp +.L1276: + move.b 5003(%a6),%d0 + jra .L959 +.L986: + move.l %d0,%d1 + moveq #10,%d4 + divu.l %d4,%d1 + moveq #10,%d3 + lea (4991,%a6),%a0 + add.l #48,%d1 + move.b %d1,4990(%a6) + remu.l %d3,%d1:%d0 + add.l #48,%d1 + move.b %d1,(%a0)+ + jra .L988 +.L901: + tst.b 5327(%a6) + jeq .L905 + moveq #51,%d0 + cmp.l 76(%sp),%d0 + jeq .L906 + moveq #32,%d1 + cmp.l 76(%sp),%d1 + jne .L907 + tst.l 80(%sp) + jeq .L909 + move.b 5328(%a6),%d1 + mvz.b 5306(%a6),%d2 + mvz.b %d1,%d0 + addq.l #1,%d0 + cmp.l %d0,%d2 + jls .L909 + addq.l #1,%d1 + move.b %d1,5328(%a6) + mov3q.l #1,28(%sp) + jra .L880 +.L906: + tst.l 80(%sp) + jeq .L909 + move.b 5328(%a6),%d0 + jeq .L909 + subq.l #1,%d0 + move.b %d0,5328(%a6) + mov3q.l #1,28(%sp) + jra .L880 +.L905: + move.b 5002(%a6),%d0 + moveq #49,%d4 + cmp.l 76(%sp),%d4 + jne .L929 + tst.l 80(%sp) + jeq .L930 + tst.b 4976(%a6) + jeq .L931 + tst.b 5302(%a6) + jeq .L932 + tst.b 5303(%a6) + jne .L931 + tst.b 5304(%a6) + jne .L932 + tst.b %d0 + jne .L935 + tst.b 5330(%a6) + jne .L1267 +.L936: + tst.b 4977(%a6) + jne .L909 + move.b 1074531136,%d3 + move.b 1074531137,%d0 + move.b 1074531138,%d1 + mvz.b 1074531139,%d4 + move.w %d3,%a0 + mvz.b %d0,%d0 + moveq #24,%d3 + mvz.b %d1,%d1 + swap %d0 + clr.w %d0 + lsl.l #8,%d1 + move.l %a0,%d2 + lsl.l %d3,%d2 + or.l %d2,%d0 + or.l %d4,%d0 + or.l %d1,%d0 + jeq .L903 +.L1027: + tst.b 9(%a6) + jge .L909 + moveq #1,%d1 + move.b %d1,4977(%a6) + move.l %a6,-(%sp) + jsr lists_ready + move.l %d0,32(%sp) + addq.l #4,%sp + tst.l %d0 + jeq .L909 + mvz.b 87(%a6),%d2 + lea (4978,%a6),%a0 + move.b 91(%a6,%d2.l),%d3 + move.l %d2,20(%sp) + moveq #15,%d2 + move.b 1074531240,%d0 + move.b 1074531241,%d0 + move.b 1074531242,%d0 + move.b %d3,27(%sp) + mvz.b %d3,%d1 + move.b 1074531243,%d0 + move.l %a0,32(%sp) + cmp.l %d1,%d2 + jcs .L1028 + mov3q.l #7,%d3 + and.l %d0,%d3 + moveq #18,%d4 + move.b 27(%sp),%d0 + move.w 22(%sp),%d2 + muls.l %d4,%d1 + mvz.w #288,%d4 + move.l %d3,36(%sp) + ext.w %d0 + mulu.w #288,%d2 + mulu.w #18,%d0 + move.l %d2,%a0 + lea 109(%a0,%d0.l),%a0 + move.w %d3,%d0 + move.l 20(%sp),%d3 + muls.l %d4,%d3 + add.l %a6,%a0 + mulu.w #5652,%d0 + move.l %d3,%a1 + add.l %d1,%a1 + add.l %a6,%a1 + move.b 8(%a6),107(%a1) + move.b 39(%sp),108(%a1) + move.l %a0,%d1 + add.l #16,%d1 + move.l %d0,%a1 + sub.l %a0,%a1 + add.l #268435460,%a1 +.L1029: + move.b (%a1,%a0.l),%d0 + move.b %d0,(%a0)+ + cmp.l %a0,%d1 + jne .L1029 + move.b 27(%sp),%d0 + move.l 20(%sp),%a0 + moveq #9,%d2 + moveq #66,%d1 + addq.l #1,%d0 + move.b %d0,91(%a6,%a0.l) + moveq #1,%d0 + move.b %d1,4978(%a6) + move.b %d0,4971(%a6) + mvz.b 8(%a6),%d0 + addq.l #1,%d0 + cmp.l %d0,%d2 + jcc .L1268 + move.l %d0,%d3 + moveq #10,%d4 + divu.l %d4,%d3 + move.l %a6,%d1 + add.l #4980,%d1 + move.l %d3,%a0 + moveq #10,%d3 + remu.l %d3,%d4:%d0 + lea (48,%a0),%a0 + move.w %a0,%d2 + move.l %d1,%a1 + move.l %d1,%a2 + move.l 36(%sp),%d0 + add.l #49,%d0 + addq.l #3,%a1 + move.l %d4,%a0 + lea (48,%a0),%a0 + move.b %d2,4979(%a6) + moveq #32,%d2 + move.b %d0,-1(%a1) + moveq #32,%d0 + move.b %d2,-2(%a1) + move.w %a0,%d2 + lea .LC22,%a0 + move.b %d2,(%a2) +.L1036: + move.b %d0,(%a1)+ + addq.l #1,%a0 + move.b (%a0),%d0 + cmp.l #.LC22+15,%a0 + jne .L1036 + move.l 20(%sp),%d0 + moveq #9,%d2 + addq.l #1,%d0 + cmp.l %d0,%d2 + jcs .L1037 + move.l %d1,%a6 + moveq #10,%d1 + remu.l %d1,%d2:%d0 + lea (18,%a6),%a6 + move.l %d2,%d0 + add.l #48,%d0 + move.b %d0,(%a6)+ +.L1035: + clr.b (%a6) + pea 48.w + move.l 36(%sp),-(%sp) + jsr 1074111160 + addq.l #8,%sp + movem.l (%sp),#17436 + move.l 28(%sp),%d0 + lea (72,%sp),%sp + rts +.L1267: + move.b 5331(%a6),%d0 + mov3q.l #6,%d2 + moveq #1,%d1 + move.b 5307(%a6),5328(%a6) + move.l %a6,%a0 + eor.l %d2,%d0 + move.b %d1,5327(%a6) + move.b %d1,4977(%a6) + mvz.b 5306(%a6),%d1 + tst.b %d0 + seq %d0 + mvs.b %d0,%d0 + sub.l %d0,%a0 + move.b 5332(%a0),%d0 + mvz.b %d0,%d3 + cmp.l %d3,%d1 + jhi .L937 + st %d0 +.L937: + move.b %d0,5329(%a6) + mov3q.l #1,28(%sp) + jra .L880 +.L930: + tst.b %d0 + jne .L1269 + move.l 5322(%a6),%d1 + btst #17,%d1 + jne .L1270 + tst.b 4977(%a6) + jeq .L1080 + clr.b %d0 + move.b %d0,4977(%a6) +.L1271: + mov3q.l #1,28(%sp) + jra .L880 +.L948: + tst.b 4977(%a6) + jne .L909 +.L1080: + tst.b 4976(%a6) + jeq .L903 + move.b 1074531136,%d0 + move.b 1074531137,%d4 + moveq #24,%d3 + move.b 1074531138,%d1 + mvz.b 1074531139,%d2 + lsl.l %d3,%d0 + mvz.b %d4,%d4 + mvz.b %d1,%d1 + swap %d4 + clr.w %d4 + lsl.l #8,%d1 + or.l %d4,%d0 + or.l %d2,%d0 + or.l %d1,%d0 + jeq .L903 + tst.l 80(%sp) + jne .L1027 + clr.b %d0 + move.b %d0,4977(%a6) + jra .L1271 +.L1269: + move.l 5322(%a6),%d0 + btst #17,%d0 + jeq .L903 + bclr #17,%d0 + mov3q.l #1,28(%sp) + move.l %d0,5322(%a6) + jra .L880 +.L932: + tst.b %d0 + jeq .L936 + jra .L943 +.L1268: + moveq #10,%d3 + remu.l %d3,%d4:%d0 + moveq #32,%d2 + move.l %a6,%d1 + add.l #4979,%d1 + move.l %d1,%a1 + move.l %d1,%a2 + move.l 36(%sp),%d0 + add.l #49,%d0 + move.b %d0,2(%a1) + move.l %d4,%a0 + addq.l #3,%a1 + lea (48,%a0),%a0 + moveq #32,%d0 + move.b %d2,-2(%a1) + move.w %a0,%d2 + lea .LC22,%a0 + move.b %d2,(%a2) + jra .L1036 +.L1028: + moveq #76,%d1 + move.l 32(%sp),%d0 + lea (4983,%a6),%a0 + lea .LC18,%a1 +.L1032: + move.l %d0,%a2 + addq.l #1,%a1 + move.b %d1,(%a2)+ + move.b (%a1),%d1 + move.l %a2,%d0 + cmp.l %a2,%a0 + jne .L1032 + move.l 20(%sp),%d0 + moveq #9,%d1 + addq.l #1,%d0 + cmp.l %d0,%d1 + jcc .L1033 + move.l %d0,%d2 + moveq #10,%d3 + divu.l %d3,%d2 + lea (4984,%a6),%a0 + move.l %d2,%a1 + lea (48,%a1),%a1 + move.w %a1,%d4 + move.b %d4,4983(%a6) +.L1033: + moveq #10,%d2 + remu.l %d2,%d1:%d0 + lea (9,%a0),%a6 + moveq #32,%d0 + lea .LC19,%a1 + add.l #48,%d1 + move.b %d1,(%a0)+ +.L1034: + move.b %d0,(%a0)+ + addq.l #1,%a1 + move.b (%a1),%d0 + cmp.l %a0,%a6 + jeq .L1035 + move.b %d0,(%a0)+ + addq.l #1,%a1 + move.b (%a1),%d0 + cmp.l %a0,%a6 + jne .L1034 + jra .L1035 +.L1037: + move.l %d0,%d3 + moveq #10,%d4 + divu.l %d4,%d3 + move.l %d1,%a6 + move.l %d1,%a1 + moveq #10,%d1 + remu.l %d1,%d2:%d0 + move.l %d3,%a0 + lea (48,%a0),%a0 + move.w %a0,%d3 + lea (19,%a6),%a6 + move.l %d2,%d0 + add.l #48,%d0 + move.b %d3,18(%a1) + move.b %d0,(%a6)+ + jra .L1035 +.L1263: + moveq #2,%d1 + swap %d1 + mov3q.l #1,24(%sp) + move.l 24(%sp),%d2 + lea (%a6,%d2.l*4),%a0 + move.l %d1,28(%sp) + move.l 28(%sp),%d3 + or.l %d3,5318(%a0) + jra .L909 +.L1270: + moveq #2,%d0 + swap %d0 + mov3q.l #1,80(%sp) + move.l 80(%sp),%d4 + lea (%a6,%d4.l*4),%a0 + not.l %d0 + and.l %d1,%d0 + move.l %d0,5318(%a0) + jra .L1253 +.L929: + tst.b %d0 + jeq .L946 +.L1234: + tst.l 80(%sp) + jne .L914 + moveq #31,%d0 + mov3q.l #4,%d1 + and.l 76(%sp),%d0 + move.l %d0,%a0 + move.l %a0,%d2 + move.l 76(%sp),%d0 + lsr.l #3,%d0 + and.l %d1,%d0 + mov3q.l #1,%d1 + lsl.l %d2,%d1 + lea (%a6,%d0.l),%a0 + move.l 5318(%a0),%d0 + move.l %d1,%d3 + and.l %d0,%d3 + tst.l %d3 + jeq .L903 + jra .L1272 +.L907: + moveq #49,%d3 + cmp.l 76(%sp),%d3 + jne .L1273 + tst.l 80(%sp) + jeq .L915 + tst.b 4977(%a6) + jne .L909 + mvz.b 5306(%a6),%d4 + mvz.b 5328(%a6),%d0 + move.l %d4,28(%sp) + cmp.l %d0,%d4 + jls .L917 + move.w %d0,%d2 + move.l %a6,%d1 + add.l #5642,%d1 + move.l %d0,%a1 + mulu.w #5652,%d2 + move.l %d2,%a0 + add.l %d1,%a0 + move.l %a0,20(%sp) +.L918: + move.b (%a0),%d1 + move.b 1(%a0),%d3 + lea (5652,%a0),%a0 + or.l %d3,%d1 + tst.b %d1 + jne .L1274 + addq.l #1,%a1 + cmp.l 28(%sp),%a1 + jcs .L918 +.L917: + mvz.b 5307(%a6),%d1 + cmp.l %d1,%d0 + jeq .L909 + move.b 5331(%a6),%d1 + move.b %d0,24(%sp) + move.b %d0,5329(%a6) + move.b %d1,23(%sp) + tst.b 5302(%a6) + jeq .L909 + tst.b 5304(%a6) + jne .L909 + cmp.l 28(%sp),%d0 + jcc .L909 + mov3q.l #6,%d2 + eor.l %d2,%d1 + tst.b %d1 + seq %d1 + neg.l %d1 + mvz.b %d1,%d3 + move.w %d1,%a1 + lea (%a6,%d3.l),%a2 + mvz.b 5332(%a2),%d1 + move.l %d3,%a0 + move.l %a2,28(%sp) + cmp.l %d0,%d1 + jeq .L909 + mulu.w #5652,%d0 + addq.l #6,%a0 + move.l %a0,32(%sp) + move.l %d0,%a0 + move.w %a1,%d0 + lea (5624,%a0),%a0 + add.l %a6,%a0 + move.l %a0,%d1 + add.l #5652,%d1 + tst.b %d0 + jeq .L923 + mvz.w #5652,%d0 + sub.l %a0,%d0 + move.l %d0,%a1 + add.l #268469371,%a1 +.L925: + move.b (%a0)+,%d0 + move.b %d0,(%a1,%a0.l) + cmp.l %a0,%d1 + jne .L925 + move.b 24(%sp),%d1 + move.l 28(%sp),%a0 + mvz.b 23(%sp),%d0 + subq.l #6,%d0 + move.b %d1,5332(%a0) + move.b 268525900,%d1 + tst.l %d0 + jne .L1081 + moveq #127,%d0 + and.l %d0,%d1 + move.b %d1,268525900 + move.l 32(%sp),-(%sp) + jsr set_chain + addq.l #4,%sp +.L1275: + mov3q.l #1,28(%sp) + jra .L880 +.L915: + clr.b %d3 + mov3q.l #1,28(%sp) + move.b %d3,4977(%a6) + jra .L880 +.L1274: + cmp.l 28(%sp),%a1 + jcc .L917 +.L921: + move.l 20(%sp),%a0 + mvz.w #5652,%d3 + move.b 1(%a0),%d2 + move.b (%a0),%d1 + add.l %d3,20(%sp) + move.w %d2,%a0 + move.l %a0,%d4 + or.l %d4,%d1 + tst.b %d1 + jne .L917 + addq.l #1,%d0 + cmp.l 28(%sp),%d0 + jcs .L921 + jra .L917 +.L1081: + moveq #-65,%d0 + and.l %d0,%d1 + move.b %d1,268525900 + move.l 32(%sp),-(%sp) + jsr set_chain + addq.l #4,%sp + jra .L1275 +.L923: + clr.l %d0 + sub.l %a0,%d0 + move.l %d0,%a1 + add.l #268469371,%a1 + jra .L925 +.L1273: + tst.b 5002(%a6) + jne .L1234 + tst.l 80(%sp) + jeq .L941 + jra .L942 +.L996: + move.l 36(%sp),%a1 + lea (47,%sp),%a0 + move.b (%a0),91(%a6,%a1.l) + jra .L1067 +.L940: + tst.l 80(%sp) + jeq .L888 + clr.l 28(%sp) + jra .L1251 +.L1266: + pea 48.w + move.l #.LC20,%d0 + move.l %d0,-(%sp) + jsr 1074111160 + addq.l #8,%sp + jra .L1276 + .size as_key, .-as_key + .section .rodata.str1.1 +.LC26: + .string "BOOK FILE ERROR" + .text + .align 2 + .globl as_tick + .type as_tick, @function +as_tick: + lea (-24,%sp),%sp + move.l st_at,%a0 + move.l #1095979829,%d0 + movem.l #3084,(%sp) + move.l 28(%sp),%a3 + cmp.l (%a0),%d0 + jeq .L1451 +.L1278: + move.l st_at,%a0 + move.l #1095979829,%d1 + cmp.l (%a0),%d1 + jeq .L1452 +.L1279: jsr ready - moveq #14,%d1 move.l %d0,%a2 + tst.l %a3 + jeq .L1284 + move.l evlog,%d0 + mvz.b 8(%a2),%d1 + lsl.l #4,%d0 + or.l %d1,%d0 + move.l %d0,(%a3) +.L1284: + tst.b 19(%a2) + jeq .L1285 + tst.b 9(%a2) + jlt .L1453 +.L1285: + move.w 50(%a2),%d0 + mvz.w %d0,%d1 + cmp.l #3999,%d1 + jhi .L1298 + addq.l #1,%d0 + move.w %d0,50(%a2) +.L1298: + move.b 38(%a2),%d2 + jmi .L1299 + tst.b 9(%a2) + jlt .L1454 +.L1300: + move.b 1175263980,%d0 + move.b 1175263981,%d2 + move.b 1175263982,%d3 + mvz.b 47(%a2),%d1 + move.l %d1,%a3 + move.w %d2,%a1 + move.w %d3,%a0 + moveq #24,%d3 + lsl.l %d3,%d0 + mvz.b 1175263983,%d2 + move.w %a1,%d1 + move.w %a0,%d3 + mvz.b %d1,%d1 + move.l %d1,%a1 + mvz.b %d3,%d1 + move.l %a1,%d3 + swap %d3 + clr.w %d3 + lsl.l #8,%d1 + or.l %d3,%d0 + or.l %d2,%d0 + or.l %d1,%d0 + sne %d1 + neg.l %d1 + mvz.b %d1,%d2 + cmp.l %a3,%d2 + jeq .L1314 + move.b %d1,47(%a2) + clr.b %d1 + move.b %d1,48(%a2) + tst.l %d0 + jeq .L1369 move.l evlog,%d0 + moveq #12,%d1 lsl.l #4,%d0 or.l %d1,%d0 + moveq #24,%d1 move.l %d0,%d2 - move.l %d0,%d1 + move.l %d0,%d3 clr.w %d2 swap %d2 - move.l %d0,evlog - move.l %d2,%a0 - moveq #24,%d2 - lsr.l %d2,%d1 - move.l %d1,%a1 + lsr.l %d1,%d3 move.l %d0,%d1 - move.w %a1,%d2 lsr.l #8,%d1 - move.b %d2,269455136 - move.w %a0,%d2 + move.l %d0,evlog + move.b %d3,269455136 move.b %d2,269455137 move.b %d1,269455138 move.b %d0,269455139 - clr.b %d1 - move.w #255,%d0 - moveq #1,%d2 - move.b %d1,14(%a2) - move.w %d0,4(%a2) - move.w %d2,7(%a2) - move.b %d1,56(%a2) - tst.b 48(%a2) - jeq .L193 - mvz.w 46(%a2),%d0 - cmp.l #3599,%d0 - jhi .L193 - clr.w %d0 - move.b %d1,48(%a2) - move.w %d0,46(%a2) - move.l %a2,-(%sp) - jsr remember - moveq #1,%d1 - addq.l #4,%sp - move.b %d1,49(%a2) -.L192: - move.l (%sp)+,%d2 - move.l (%sp)+,%a2 - rts -.L193: - clr.b %d2 - clr.w %d0 - move.b %d2,48(%a2) - move.w %d0,46(%a2) - st %d2 - move.l %a2,-(%sp) - jsr remember - clr.b %d1 - move.b %d2,34(%a2) - addq.l #4,%sp - lea (18,%a2),%a0 - lea (34,%a2),%a2 - move.b %d1,15(%a2) - move.b %d1,4(%a2) -.L195: - clr.b (%a0)+ - cmp.l %a0,%a2 - jeq .L192 - clr.b (%a0)+ - cmp.l %a0,%a2 - jne .L195 - jra .L192 - .size as_project_new, .-as_project_new - .align 2 - .globl as_project_loaded - .type as_project_loaded, @function -as_project_loaded: - lea (-12,%sp),%sp - movem.l #1036,(%sp) - jsr ready - move.l evlog,%d1 - lsl.l #4,%d1 - move.l %d0,%a2 - mov3q.l #2,%d0 - or.l %d0,%d1 - moveq #24,%d0 - move.l %d1,%d2 - move.l %d1,%d3 - clr.w %d2 - swap %d2 - lsr.l %d0,%d3 - move.l %d1,%d0 - lsr.l #8,%d0 - move.l %d1,evlog - move.b %d3,269455136 +.L1314: + move.b 1175263980,%d0 + move.b 1175263981,%d2 + move.b 1175263982,%d1 + mvz.b 1175263983,%d3 + move.l %d3,%a1 + moveq #24,%d3 + lsl.l %d3,%d0 + move.w %d2,%a0 + mvz.b %d1,%d1 + move.b 45(%a2),%d2 + lsl.l #8,%d1 + move.w %a0,%d3 + mvz.b %d3,%d3 + swap %d3 clr.w %d3 - move.b %d2,269455137 - move.b %d0,269455138 - move.b %d1,269455139 - move.w %d3,46(%a2) - tst.b 54(%a2) - jne .L212 -.L201: - move.b 52(%a2),%d0 + or.l %d3,%d0 + move.l %a1,%d3 + or.l %d3,%d0 + or.l %d1,%d0 + jeq .L1316 + moveq #1,%d0 + move.b %d0,43(%a2) + tst.b %d2 + jeq .L1318 + move.b 46(%a2),%d0 + moveq #60,%d2 addq.l #1,%d0 - move.b %d0,52(%a2) - move.l %a2,-(%sp) - jsr remember - movem.l 4(%sp),#1036 - clr.l %d0 - lea (16,%sp),%sp - rts -.L212: - move.l #269452152,%a0 -.L203: - move.b (%a0),%d1 - move.l #905730889,%a1 - add.l %a0,%a1 - mvz.b (%a1),%d0 - addq.l #1,%a0 - mvz.b %d1,%d2 - cmp.l %d2,%d0 - jne .L201 - tst.b %d1 - jeq .L202 - cmp.l #269452408,%a0 - jne .L203 -.L202: + mvz.b %d0,%d1 + move.b %d0,46(%a2) + cmp.l %d1,%d2 + jcs .L1455 +.L1318: + tst.b 42(%a2) + jeq .L1319 + tst.b 9(%a2) + jlt .L1456 +.L1320: clr.b %d0 - move.b %d0,54(%a2) + move.b %d0,48(%a2) +.L1319: + tst.b 5303(%a2) + jeq .L1323 +.L1480: + tst.b 9(%a2) + jlt .L1364 + tst.b 5302(%a2) + jeq .L1332 +.L1333: + tst.b 5314(%a2) + jeq .L1352 +.L1361: + tst.b 52(%a2) + jne .L1351 +.L1464: + tst.b 5315(%a2) + jne .L1351 + mvz.w 50(%a2),%d0 + moveq #60,%d2 + cmp.l %d0,%d2 + jcc .L1351 + tst.b 9(%a2) + jlt .L1457 +.L1351: + tst.b 5302(%a2) + jeq .L1362 +.L1352: + move.b 5310(%a2),%d2 + jmi .L1354 +.L1353: + tst.b 52(%a2) + jeq .L1458 +.L1354: move.l %a2,-(%sp) - jsr read_place + jsr title_follow addq.l #4,%sp - tst.l %d0 - jle .L213 -.L204: - move.b %d0,34(%a2) - clr.w %d0 - move.w %d0,36(%a2) + tst.b 10(%a2) + jeq .L1358 + clr.b %d3 + move.b %d3,10(%a2) + pea 48.w + pea .LC26 + jsr 1074111160 + addq.l #8,%sp +.L1358: + tst.b 8(%a2) + jeq .L1277 + tst.b 9(%a2) + jlt .L1459 +.L1277: + movem.l (%sp),#3084 + lea (24,%sp),%sp + rts +.L1456: tst.b 38(%a2) - jeq .L201 - tst.b 48(%a2) - jeq .L201 - moveq #1,%d3 - move.b %d3,-2147483632 - move.b 52(%a2),%d0 + jge .L1320 + tst.b 19(%a2) + jne .L1320 + tst.b 54(%a2) + jne .L1320 + move.b 48(%a2),%d0 + moveq #119,%d2 addq.l #1,%d0 - move.b %d0,52(%a2) - move.l %a2,-(%sp) - jsr remember - movem.l 4(%sp),#1036 - clr.l %d0 - lea (16,%sp),%sp - rts -.L213: - mov3q.l #-1,%d0 - jra .L204 - .size as_project_loaded, .-as_project_loaded - .section .rodata.str1.1 -.LC5: - .string "strd" - .text - .align 2 - .globl as_project_stored - .type as_project_stored, @function -as_project_stored: - lea (-24,%sp),%sp - movem.l #3132,(%sp) - jsr ready - moveq #9,%d2 - lea arr_path,%a3 - mov3q.l #4,%d1 - move.l %d0,%d3 - move.l %d3,%d4 - move.l evlog,%d0 - add.l #84,%d4 - add.l #344,%d3 - lsl.l #4,%d0 + mvz.b %d0,%d1 + move.b %d0,48(%a2) + cmp.l %d1,%d2 + jcc .L1322 + clr.b %d3 + move.b %d3,42(%a2) + move.b %d3,48(%a2) + tst.b 43(%a2) + jne .L1460 +.L1322: + tst.b 5303(%a2) + jne .L1364 +.L1323: + tst.b 5302(%a2) + jeq .L1332 +.L1363: + tst.b 5304(%a2) + jne .L1333 + mvz.b 5331(%a2),%d0 + subq.l #6,%d0 + tst.l %d0 + jeq .L1461 + move.b 269161681,%d0 + mov3q.l #7,%d3 + clr.l %d2 + lea (%a2,%d2.l),%a0 + mov3q.l #6,%a3 + move.b 5332(%a0),%d1 + and.l %d3,%d0 + cmp.l %d0,%a3 + jeq .L1441 +.L1443: + mvz.b %d1,%d0 +.L1344: + cmp.l #255,%d0 + jeq .L1342 +.L1346: + move.b -2147457388,%d0 + move.b -2147457387,%d2 + move.b -2147457386,%d1 + mvz.b -2147457385,%d3 + move.l %d3,%a0 + moveq #24,%d3 + lsl.l %d3,%d0 + mvz.b %d2,%d2 + mvz.b %d1,%d1 + swap %d2 + clr.w %d2 + lsl.l #8,%d1 + or.l %d2,%d0 + move.l %a0,%d2 + or.l %d2,%d0 or.l %d1,%d0 - move.l %d0,%d5 - move.l %d0,%d1 - clr.w %d5 - swap %d5 - move.l %d0,evlog - move.l %d5,%a0 - moveq #24,%d5 - lsr.l %d5,%d1 - move.l %d1,%a1 - move.l %d0,%d1 - move.w %a1,%d5 - lsr.l #8,%d1 - move.b %d5,269455136 - move.w %a0,%d5 - move.b %d5,269455137 - move.b %d1,269455138 - move.b %d0,269455139 -.L215: - pea .LC3 - move.l #1073832840,%a2 - move.l %d2,-(%sp) - move.l %d4,-(%sp) - jsr (%a3) - pea .LC5 - move.l %d2,-(%sp) - move.l %d3,-(%sp) - jsr (%a3) - clr.l -(%sp) - move.l %d4,-(%sp) - move.l %d3,-(%sp) - jsr (%a2) - addq.l #1,%d2 - lea (36,%sp),%sp - cmp.l #129,%d2 - jne .L215 - pea .LC3 - move.l %d4,-(%sp) - lea place_path,%a3 - jsr (%a3) - pea .LC5 - move.l %d3,-(%sp) - jsr (%a3) + cmp.l %a3,%d0 + jne .L1462 +.L1348: + move.b 1074531136,%d0 + move.b 1074531137,%d2 + move.b 1074531138,%d1 + mvz.b 1074531139,%d3 + move.l %d3,%a0 + moveq #24,%d3 + lsl.l %d3,%d0 + mvz.b %d2,%d2 + mvz.b %d1,%d1 + swap %d2 + clr.w %d2 + lsl.l #8,%d1 + or.l %d2,%d0 + move.l %a0,%d2 + or.l %d2,%d0 + or.l %d1,%d0 + jne .L1463 +.L1349: + tst.b 5314(%a2) + jeq .L1351 +.L1478: + tst.b 52(%a2) + jne .L1351 + jra .L1464 +.L1332: + tst.b 5314(%a2) + jne .L1361 +.L1362: + tst.b 269455127.l + jge .L1352 + move.b 5310(%a2),%d2 + jpl .L1353 + tst.b 5301(%a2) + jge .L1354 + tst.b 9(%a2) + jge .L1354 + tst.b 4974(%a2) + jne .L1354 + tst.b 52(%a2) + jne .L1354 + mvz.w 50(%a2),%d0 + cmp.l #240,%d0 + jls .L1354 + jsr stopped + tst.l %d0 + jeq .L1354 clr.l -(%sp) - move.l %d4,-(%sp) - move.l %d3,-(%sp) - jsr (%a2) - movem.l 28(%sp),#3132 - clr.l %d0 - lea (52,%sp),%sp - rts - .size as_project_stored, .-as_project_stored - .align 2 - .globl as_project_reloaded - .type as_project_reloaded, @function -as_project_reloaded: - lea (-28,%sp),%sp - movem.l #7228,(%sp) - jsr ready - moveq #9,%d2 - lea arr_path,%a3 - mov3q.l #3,%d1 - move.l %d0,%a4 - move.l %a4,%d4 + jsr 1073884372 + addq.l #4,%sp + tst.l %d0 + jlt .L1352 + moveq #1,%d0 + move.b 5310(%a2),%d2 + move.b %d0,55(%a2) + move.b %d0,4974(%a2) + tst.b %d2 + jge .L1353 + jra .L1354 +.L1316: + tst.b %d2 + jeq .L1318 + clr.b %d1 + move.b %d1,43(%a2) + move.b %d1,45(%a2) + jra .L1318 +.L1451: + move.l st_at,%a0 + mvz.w 5006(%a0),%d0 + cmp.l #65535,%d0 + jeq .L1278 + move.l st_at,%a0 + move.l #1095979829,%d1 + move.w 5006(%a0),%d0 + addq.l #1,%d0 + move.w %d0,5006(%a0) + move.l st_at,%a0 + cmp.l (%a0),%d1 + jne .L1279 + jra .L1452 +.L1369: move.l evlog,%d0 - move.l %a4,%d3 - add.l #84,%d4 - add.l #344,%d3 + moveq #13,%d1 lsl.l #4,%d0 or.l %d1,%d0 - move.l %d0,%d5 - move.l %d0,%d1 - clr.w %d5 - swap %d5 - move.l %d0,evlog - move.l %d5,%a0 - moveq #24,%d5 - lsr.l %d5,%d1 - move.l %d1,%a1 + moveq #24,%d1 + move.l %d0,%d2 + move.l %d0,%d3 + clr.w %d2 + swap %d2 + lsr.l %d1,%d3 move.l %d0,%d1 - move.w %a1,%d5 lsr.l #8,%d1 - move.b %d5,269455136 - move.w %a0,%d5 - move.b %d5,269455137 + move.l %d0,evlog + move.b %d3,269455136 + move.b %d2,269455137 move.b %d1,269455138 move.b %d0,269455139 - moveq #1,%d0 - clr.b %d1 - clr.w %d5 - move.b %d0,56(%a4) - move.b %d1,54(%a4) - move.w %d5,46(%a4) -.L220: - pea .LC5 - move.l #1073832840,%a2 - move.l %d2,-(%sp) - move.l %d4,-(%sp) - jsr (%a3) - pea .LC3 - move.l %d2,-(%sp) - move.l %d3,-(%sp) - jsr (%a3) - clr.l -(%sp) - move.l %d4,-(%sp) - move.l %d3,-(%sp) - jsr (%a2) - addq.l #1,%d2 - lea (36,%sp),%sp - cmp.l #129,%d2 - jne .L220 - pea .LC5 - move.l %d4,-(%sp) - lea place_path,%a3 - jsr (%a3) - pea .LC3 - move.l %d3,-(%sp) - jsr (%a3) - clr.l -(%sp) - move.l %d4,-(%sp) - move.l %d3,-(%sp) - jsr (%a2) - move.w #256,%d0 - move.w %d0,48(%a4) - move.l %a4,-(%sp) - jsr read_place - lea (32,%sp),%sp + jra .L1314 +.L1458: + mvz.w 50(%a2),%d0 + cmp.l #240,%d0 + jls .L1354 + tst.b 38(%a2) + jge .L1354 + tst.b 9(%a2) + jge .L1354 + tst.b 19(%a2) + jne .L1354 + tst.b 42(%a2) + jne .L1354 + tst.b 5302(%a2) + jne .L1354 + tst.b 4972(%a2) + jne .L1354 + jsr stopped tst.l %d0 - jle .L226 -.L221: - clr.w %d1 - move.b %d0,34(%a4) - move.w %d1,36(%a4) - tst.b 38(%a4) - jeq .L222 - moveq #1,%d5 - move.b %d5,-2147483632 -.L222: - move.b 53(%a4),%d1 - clr.l %d0 - addq.l #1,%d1 - move.b %d1,53(%a4) - movem.l (%sp),#7228 - lea (28,%sp),%sp - rts -.L226: - mov3q.l #-1,%d0 - jra .L221 - .size as_project_reloaded, .-as_project_reloaded - .align 2 - .globl as_modules_ready - .type as_modules_ready, @function -as_modules_ready: - lea (-16,%sp),%sp - move.l %a2,-(%sp) - move.l %d2,-(%sp) - jsr ready - move.l %d0,%a1 - tst.b 8(%a1) - jeq .L228 - move.b 269455120,%d0 - move.b 269455121,%d1 + jeq .L1354 + mvs.b %d2,%d0 + move.b 91(%a2,%d0.l),%d0 + jeq .L1444 + move.b 5311(%a2),%d1 + mvz.b %d0,%d0 move.w %d1,%a0 - move.b 269455122,%d1 - mvz.b 269455123,%d2 - move.l %d2,10(%sp) - moveq #24,%d2 - lsl.l %d2,%d0 - move.w %a0,%d2 mvz.b %d1,%d1 + cmp.l %d0,%d1 + jcc .L1444 + move.w %a0,%d3 + move.b %d2,87(%a2) + move.b %d3,5301(%a2) + clr.l -(%sp) + jsr 1073884372 + addq.l #4,%sp + tst.l %d0 + jlt .L1465 + moveq #1,%d1 + move.b %d1,55(%a2) +.L1444: + st %d2 + move.b %d2,5310(%a2) + jra .L1354 +.L1455: + clr.b %d3 + move.b %d3,45(%a2) + jra .L1318 +.L1454: + tst.b 53(%a2) + jne .L1466 +.L1301: + move.b 54(%a2),%d0 + jeq .L1300 +.L1365: + move.b 1175264880,%d1 + move.b 1175264881,%d2 + move.w %d2,%a0 + move.b 1175264882,%d2 + mvz.b 1175264883,%d3 + move.l %d3,%a1 + moveq #24,%d3 + lsl.l %d3,%d1 + move.w %a0,%d3 + mvz.b %d2,%d2 + lsl.l #8,%d2 + mvz.b %d3,%d3 + swap %d3 + clr.w %d3 + or.l %d3,%d1 + move.l %a1,%d3 + or.l %d3,%d1 + or.l %d2,%d1 + jeq .L1312 + jsr 1074097132 + clr.b %d0 + move.b %d0,54(%a2) + jra .L1300 +.L1453: + tst.b 20(%a2) + jeq .L1286 + tst.b 5310(%a2) + jlt .L1287 + clr.b %d3 + move.b %d3,21(%a2) + move.b %d3,19(%a2) + move.b 1175263980,%d0 + move.b 1175263981,%d2 + move.b 1175263982,%d1 + mvz.b 1175263983,%d3 + move.l %d3,%a0 + moveq #24,%d3 + lsl.l %d3,%d0 + mvz.b %d2,%d2 + mvz.b %d1,%d1 + swap %d2 + clr.w %d2 lsl.l #8,%d1 + or.l %d2,%d0 + move.l %a0,%d2 + or.l %d2,%d0 + or.l %d1,%d0 + jne .L1467 +.L1296: + clr.b %d3 + move.b %d3,20(%a2) + move.b 1074531232,%d0 + move.b 1074531233,%d2 + move.b 1074531234,%d1 + mvz.b 1074531235,%d3 + move.l %d3,%a0 + moveq #24,%d3 + lsl.l %d3,%d0 mvz.b %d2,%d2 + mvz.b %d1,%d1 swap %d2 clr.w %d2 + lsl.l #8,%d1 + or.l %d2,%d0 + move.l %a0,%d2 or.l %d2,%d0 - or.l 10(%sp),%d0 or.l %d1,%d0 - cmp.l #1095975473,%d0 - jeq .L237 -.L228: + jne .L1297 + mvz.b 8(%a2),%d0 + clr.b %d3 + move.b 22(%a2,%d0.l),%d0 + move.b %d3,1074531236 + move.b %d3,1074531237 + move.b %d3,1074531238 + move.b %d0,1074531239 + mvz.b 8(%a2),%d0 + move.b 22(%a2,%d0.l),%d0 + move.b %d3,1074531240 + move.b %d3,1074531241 + move.b %d3,1074531242 + move.b %d0,1074531243 +.L1297: + move.b 1074531136,%d0 + move.b 1074531137,%d2 + move.b 1074531138,%d1 + mvz.b 1074531139,%d3 + move.l %d3,%a0 + moveq #24,%d3 + lsl.l %d3,%d0 + mvz.b %d2,%d2 + mvz.b %d1,%d1 + swap %d2 + clr.w %d2 + lsl.l #8,%d1 + or.l %d2,%d0 + move.l %a0,%d2 + or.l %d2,%d0 + or.l %d1,%d0 + jeq .L1285 + jsr 1073966616 + jra .L1285 +.L1459: + move.l #96056,%d1 + moveq #119,%d3 + move.w (%a2,%d1.l),%d0 + addq.l #1,%d0 + mvz.w %d0,%d2 + cmp.l %d2,%d3 + jcs .L1360 + move.w %d0,(%a2,%d1.l) + movem.l (%sp),#3084 + lea (24,%sp),%sp + rts +.L1452: + move.l st_at,%a0 + tst.b 5302(%a0) + jne .L1468 + clr.l %d0 + lea as_count_fmt,%a0 + lea (stock.2),%a1 + move.l #as_count_fmt+10,%d1 +.L1283: + tst.l %d0 + jeq .L1282 +.L1281: + clr.b (%a0)+ + addq.l #1,%a1 + cmp.l #as_count_fmt+10,%a0 + jeq .L1279 + tst.l %d0 + jne .L1281 +.L1282: + move.b (%a1)+,(%a0)+ + cmp.l %d1,%a0 + jeq .L1279 + move.b (%a1)+,(%a0)+ + cmp.l %d1,%a0 + jne .L1282 + jra .L1279 +.L1304: + st %d3 + mvs.b 20(%sp),%d1 + mvs.b 5310(%a2),%d2 + move.b %d3,9(%a2) + cmp.l %d1,%d2 + jeq .L1306 + move.b 20(%sp),%d1 + move.b %d3,5301(%a2) + move.b %d1,5310(%a2) +.L1306: + clr.b %d2 + addq.l #7,%d0 + move.b %d2,20(%a2) + tst.l %d0 + jeq .L1307 + move.w 40(%a2),%d0 + addq.l #1,%d0 + mvz.w %d0,%d1 + move.w %d0,40(%a2) + cmp.l #18000,%d1 + jls .L1308 +.L1307: + st %d0 + move.b %d0,38(%a2) +.L1299: + move.b 5310(%a2),%d2 + jmi .L1305 + tst.b 53(%a2) + jeq .L1305 + mvz.w 50(%a2),%d0 + moveq #29,%d1 + cmp.l %d0,%d1 + jcc .L1305 + tst.b 9(%a2) + jge .L1300 + tst.b 5314(%a2) + jne .L1301 + tst.b 5302(%a2) + jne .L1301 + tst.b 5301(%a2) + jge .L1301 + jsr stopped + tst.l %d0 + jeq .L1301 + tst.b 4972(%a2) + jne .L1301 + move.b 5311(%a2),%d0 + mvs.b %d2,%d1 + mvz.b 91(%a2,%d1.l),%d1 + mvz.b %d0,%d3 + cmp.l %d3,%d1 + jls .L1301 + move.b %d0,5301(%a2) + st %d0 + move.b %d2,87(%a2) + move.b %d0,5310(%a2) + clr.l -(%sp) + jsr 1073884372 + addq.l #4,%sp + tst.l %d0 + jlt .L1469 moveq #1,%d0 - move.b %d0,8(%a1) - move.b 269455120,%d1 - move.b 269455121,%d2 - move.b 269455122,%d0 - move.w %d2,%a0 - mvz.b 269455123,%d2 - mvz.b %d0,%d0 - move.l %d2,10(%sp) - moveq #24,%d2 - lsl.l %d2,%d1 - lsl.l #8,%d0 - move.w %a0,%d2 + clr.b %d1 + move.b %d0,55(%a2) + move.b %d1,53(%a2) +.L1305: + move.b 54(%a2),%d0 + jeq .L1300 +.L1472: + tst.b 9(%a2) + jge .L1300 + jra .L1365 +.L1364: + tst.b 5316(%a2) + jeq .L1470 +.L1325: + mov3q.l #6,-(%sp) + move.l #1074398112,%a3 + jsr (%a3) + addq.l #4,%sp + tst.l %d0 + jlt .L1471 +.L1326: + clr.b %d1 + mvz.b 5333(%a2),%d0 + move.b %d1,5316(%a2) + move.b %d1,5303(%a2) + cmp.l #255,%d0 + jeq .L1331 + mov3q.l #7,-(%sp) + jsr set_chain + addq.l #4,%sp +.L1331: + move.b 1175263980,%d0 + move.b 1175263981,%d2 + move.b 1175263982,%d1 + mvz.b 1175263983,%d3 + move.l %d3,%a0 + moveq #24,%d3 + lsl.l %d3,%d0 mvz.b %d2,%d2 + mvz.b %d1,%d1 swap %d2 clr.w %d2 - or.l %d2,%d1 - or.l 10(%sp),%d1 - or.l %d0,%d1 - cmp.l #1095975473,%d1 - jne .L230 - mvz.b 269455124,%d0 - moveq #15,%d1 - cmp.l %d0,%d1 - jcc .L238 -.L230: + lsl.l #8,%d1 + or.l %d2,%d0 + move.l %a0,%d2 + or.l %d2,%d0 + or.l %d1,%d0 + jne .L1327 + jsr 1074077708 +.L1327: + tst.b 5302(%a2) + jeq .L1332 + tst.b 5303(%a2) + jeq .L1363 + tst.b 5314(%a2) + jne .L1361 + jra .L1352 +.L1466: + mvz.w 50(%a2),%d0 + moveq #29,%d3 + cmp.l %d0,%d3 + jcc .L1301 + jsr stopped + tst.l %d0 + jeq .L1301 + move.b %d2,9(%a2) + move.b 5310(%a2),%d1 + moveq #1,%d2 + move.b %d1,20(%sp) + move.b %d2,20(%a2) + tst.b %d1 + jlt .L1302 + tst.b 4972(%a2) + jne .L1302 + tst.b 5302(%a2) + jne .L1302 + move.b 5311(%a2),%d0 + mvs.b %d1,%d1 + mvz.b 91(%a2,%d1.l),%d1 + mvz.b %d0,%d3 + cmp.l %d3,%d1 + jls .L1302 + move.b 20(%sp),%d1 + st %d2 + move.b %d0,5301(%a2) + move.b %d1,87(%a2) + move.b %d2,5310(%a2) +.L1302: + clr.l -(%sp) + jsr 1073884372 + addq.l #4,%sp + tst.l %d0 + jlt .L1367 + moveq #1,%d3 + mov3q.l #7,%a0 + move.b %d3,55(%a2) +.L1303: move.l evlog,%d1 - moveq #15,%d0 - clr.b %d2 - lea (13,%sp),%a2 + move.l %a0,%d2 + move.b %d0,56(%a2) lsl.l #4,%d1 - move.b %d2,4(%a1) - or.l %d0,%d1 + or.l %d2,%d1 + move.l %d1,%d3 move.l %d1,%d2 - move.l %d1,%d0 - clr.w %d2 - swap %d2 + clr.w %d3 + swap %d3 move.l %d1,evlog + move.l %d3,%a1 + moveq #24,%d3 + lsr.l %d3,%d2 + move.l %d2,%a3 + move.l %d1,%d2 + move.w %a3,%d3 + lsr.l #8,%d2 move.l %d2,%a0 - moveq #24,%d2 - lsr.l %d2,%d0 - move.w %a0,%d2 - move.l %d0,10(%sp) - move.l %d1,%d0 - lsr.l #8,%d0 - move.b (%a2),269455136 + move.w %a1,%d2 + move.b %d3,269455136 + move.w %a0,%d3 move.b %d2,269455137 - move.b %d0,269455138 + move.b %d3,269455138 move.b %d1,269455139 - move.l %a1,-(%sp) - jsr remember + tst.l %d0 + jlt .L1304 + st %d0 + clr.b %d1 + move.b %d0,38(%a2) + move.b 54(%a2),%d0 + move.b %d1,53(%a2) + tst.b %d0 + jne .L1472 + jra .L1300 +.L1287: + tst.b 5303(%a2) + jne .L1289 + tst.b 5302(%a2) + jne .L1289 +.L1286: + mvz.b 8(%a2),%d0 + move.l #1074398112,%a3 + mvz.b 22(%a2,%d0.l),%d0 + move.l %d0,-(%sp) + jsr (%a3) + move.b 20(%a2),%d1 addq.l #4,%sp -.L229: - move.l (%sp)+,%d2 - clr.l %d0 - move.l (%sp)+,%a2 - lea (16,%sp),%sp - rts -.L238: - move.b 269455128,%d1 - move.b 269455129,%d2 - move.l #268435460,%a0 - move.b %d2,10(%sp) - move.b 269455130,%d0 - move.b %d0,19(%sp) - move.l #-2128831035,%d0 - mvz.b 269455131,%d2 - move.l %d2,20(%sp) - moveq #24,%d2 - lsl.l %d2,%d1 - mvz.b 10(%sp),%d2 - move.l %d2,14(%sp) - mvz.b 19(%sp),%d2 - move.l %d2,10(%sp) - move.l 14(%sp),%d2 + tst.l %d0 + jlt .L1473 + clr.b %d3 + move.b %d3,21(%a2) + move.b %d3,19(%a2) + tst.b %d1 + jeq .L1296 +.L1479: + move.b 1175263980,%d0 + move.b 1175263981,%d2 + move.b 1175263982,%d1 + mvz.b 1175263983,%d3 + move.l %d3,%a0 + moveq #24,%d3 + lsl.l %d3,%d0 + mvz.b %d2,%d2 + mvz.b %d1,%d1 swap %d2 clr.w %d2 - move.l %d2,14(%sp) - or.l 14(%sp),%d1 - move.l 10(%sp),%d2 - lsl.l #8,%d2 - or.l 20(%sp),%d1 - or.l %d2,%d1 - move.l %d1,10(%sp) -.L231: - mvz.b (%a0)+,%d1 - eor.l %d1,%d0 - move.l #16777619,%d1 - muls.l %d1,%d0 - cmp.l #268525900,%a0 - jne .L231 - cmp.l 10(%sp),%d0 - jne .L230 - move.l #269455124,%a0 - mov3q.l #1,%d1 - move.b (%a0),4(%a1) - move.l #269455125,%a2 - move.b (%a2),7(%a1) - move.b 269455126,%d0 - eor.l %d1,%d0 - tst.b %d0 - seq %d0 - neg.l %d0 - move.b %d0,14(%a1) - move.l %a1,-(%sp) - jsr remember + lsl.l #8,%d1 + or.l %d2,%d0 + move.l %a0,%d2 + or.l %d2,%d0 + or.l %d1,%d0 + jeq .L1296 + jra .L1467 +.L1471: + move.b 5316(%a2),%d0 + moveq #29,%d3 + addq.l #1,%d0 + mvz.b %d0,%d1 + move.b %d0,5316(%a2) + cmp.l %d1,%d3 + jcc .L1327 + jsr stopped + tst.l %d0 + jne .L1474 +.L1328: + clr.b %d3 + move.b %d3,5316(%a2) + jra .L1327 +.L1360: + clr.w %d0 + move.w %d0,(%a2,%d1.l) + move.l %a2,28(%sp) + movem.l (%sp),#3084 + lea (24,%sp),%sp + jra remember +.L1470: + jsr stopped + tst.l %d0 + jeq .L1325 + jsr 1074376264 + mov3q.l #6,-(%sp) + move.l #1074398112,%a3 + jsr (%a3) addq.l #4,%sp - jra .L229 -.L237: - move.b 269455132,%d0 - move.b 269455133,%d1 - move.w %d1,%a0 - move.b 269455134,%d1 - mvz.b 269455135,%d2 - move.l %d2,10(%sp) - moveq #24,%d2 - lsl.l %d2,%d0 - move.w %a0,%d2 + tst.l %d0 + jge .L1326 + jra .L1471 +.L1468: + move.b 1175263980,%d0 + move.b 1175263981,%d2 + move.b 1175263982,%d1 + mvz.b 1175263983,%d3 + lea (stock.2),%a1 + move.l %d3,%a0 + moveq #24,%d3 + lsl.l %d3,%d0 + mvz.b %d2,%d2 mvz.b %d1,%d1 + swap %d2 + clr.w %d2 lsl.l #8,%d1 + or.l %d2,%d0 + move.l %a0,%d2 + lea as_count_fmt,%a0 + or.l %d2,%d0 + or.l %d1,%d0 + move.l #as_count_fmt+10,%d1 + tst.l %d0 + sne %d0 + mvs.b %d0,%d0 + neg.l %d0 + jra .L1283 +.L1312: + addq.l #1,%d0 + mvz.b %d0,%d1 + cmp.l #250,%d1 + jls .L1475 + clr.b %d1 + move.b %d1,54(%a2) + jra .L1300 +.L1473: + move.b 21(%a2),%d2 + tst.b %d1 + jeq .L1294 + mvz.b %d2,%d0 + moveq #29,%d1 + cmp.l %d0,%d1 + jcs .L1292 + addq.l #1,%d2 + move.b %d2,21(%a2) + jra .L1285 +.L1441: + mvz.b 5306(%a2),%d0 + move.l %d0,%a1 + mvz.b %d1,%d0 + cmp.l %a1,%d0 + jcc .L1344 + mov3q.l #1,%d1 + eor.l %d2,%d1 + moveq #-128,%d3 + move.l %d1,20(%sp) + move.l %d1,-(%sp) + move.l %a2,-(%sp) + move.l %a0,24(%sp) + jsr take_back + move.l 24(%sp),%a0 + moveq #15,%d0 + addq.l #8,%sp + move.b 5332(%a0),%d1 + and.l %d1,%d0 + move.b %d1,5307(%a2) + or.l %d3,%d0 + move.b %d0,269455127 + move.w %a3,%d0 + mvz.b 5306(%a2),%d1 + move.b %d0,5331(%a2) + mvz.b 5307(%a2),%d0 + move.l %d1,%a1 + move.l %d0,%a3 + addq.l #1,%a3 + cmp.l %a3,%d1 + jls .L1336 + mulu.w #5652,%d0 + lea (11294,%a2),%a0 + add.l %d0,%a0 +.L1337: + move.b (%a0),%d0 + move.b 1(%a0),%d1 + lea (5652,%a0),%a0 + or.l %d1,%d0 + tst.b %d0 + jne .L1476 + addq.l #1,%a3 + cmp.l %a3,%a1 + jhi .L1337 +.L1336: + st %d0 + move.l 20(%sp),%a0 + add.l %a2,%a0 + move.b %d0,5332(%a0) + tst.b 5327(%a2) + jeq .L1342 + move.b %d0,5329(%a2) +.L1342: + move.b -2147457388,%d0 + move.b -2147457387,%d2 + move.b -2147457386,%d1 + mvz.b -2147457385,%d3 + move.l %d3,%a0 + moveq #24,%d3 + lsl.l %d3,%d0 mvz.b %d2,%d2 + mvz.b %d1,%d1 swap %d2 clr.w %d2 + lsl.l #8,%d1 or.l %d2,%d0 - or.l 10(%sp),%d0 - or.l %d1,%d0 - cmp.l 10(%a1),%d0 - jne .L228 - move.l (%sp)+,%d2 - clr.l %d0 - move.l (%sp)+,%a2 - lea (16,%sp),%sp - rts - .size as_modules_ready, .-as_modules_ready - .section .rodata.str1.1 -.LC6: - .string "NO PROJECT" -.LC7: - .string "CARD BUSY" -.LC8: - .string "STOP TO CHANGE BOOK" - .text - .align 2 - .globl as_key - .type as_key, @function -as_key: - lea (-12,%sp),%sp - move.l %d2,-(%sp) - jsr ready - move.l %d0,%a0 - moveq #45,%d0 - cmp.l 20(%sp),%d0 - jeq .L265 - moveq #46,%d2 - cmp.l 20(%sp),%d2 - jne .L242 - tst.l 24(%sp) - jeq .L251 - tst.b 40(%a0) - jeq .L251 - move.w #256,%d0 - move.w %d0,41(%a0) -.L251: - clr.l %d1 -.L239: - move.l (%sp)+,%d2 - move.l %d1,%d0 - lea (12,%sp),%sp - rts -.L242: - moveq #52,%d2 - cmp.l 20(%sp),%d2 - jeq .L244 - moveq #33,%d0 - cmp.l 20(%sp),%d0 - jne .L251 -.L244: - move.b 1074531136,%d1 + move.l %a0,%d2 + or.l %d2,%d0 + or.l %d1,%d0 + addq.l #1,%d0 + tst.l %d0 + jeq .L1348 + st %d0 + move.b %d0,-2147457388 + move.b %d0,-2147457387 + move.b %d0,-2147457386 + move.b %d0,-2147457385 + move.l #1074531393,-(%sp) + move.l #1175263150,-(%sp) + jsr 1073744956 + move.b 1074531136,%d0 + addq.l #8,%sp move.b 1074531137,%d2 - move.b 1074531138,%d0 - move.w %d2,%a1 - mvz.b 1074531139,%d2 - mvz.b %d0,%d0 - move.l %d2,12(%sp) - moveq #24,%d2 - lsl.l %d2,%d1 - lsl.l #8,%d0 - move.w %a1,%d2 + move.b 1074531138,%d1 + mvz.b 1074531139,%d3 + move.l %d3,%a0 + moveq #24,%d3 + lsl.l %d3,%d0 mvz.b %d2,%d2 + mvz.b %d1,%d1 swap %d2 clr.w %d2 - or.l %d2,%d1 - or.l 12(%sp),%d1 - or.l %d0,%d1 - jeq .L251 - tst.l 24(%sp) - jeq .L245 - tst.b 5(%a0) - jlt .L266 -.L245: - mov3q.l #1,%d1 -.L270: - move.l (%sp)+,%d2 - move.l %d1,%d0 - lea (12,%sp),%sp - rts -.L265: - tst.l 24(%sp) - sne %d0 - clr.l %d1 - neg.l %d0 - move.b %d0,40(%a0) - jra .L239 -.L266: - move.l %a0,4(%sp) + lsl.l #8,%d1 + or.l %d2,%d0 + move.l %a0,%d2 + or.l %d2,%d0 + or.l %d1,%d0 + jeq .L1349 +.L1463: jsr stopped - move.l 4(%sp),%a0 - move.l %d0,%d1 tst.l %d0 - jeq .L267 - mvz.b 4(%a0),%d0 - moveq #33,%d2 - move.l %d0,%a1 - cmp.l 20(%sp),%d2 - jeq .L268 - mov3q.l #-1,%d0 -.L247: - add.l %a1,%d0 - moveq #15,%d2 - cmp.l %d0,%d2 - jcs .L239 - move.b %d0,5(%a0) - clr.b %d0 - move.b %d0,6(%a0) + jeq .L1349 + tst.b 9(%a2) + jge .L1349 + moveq #1,%d3 + move.b %d3,5304(%a2) clr.l -(%sp) - move.l %d1,12(%sp) - move.l %a0,8(%sp) jsr 1073884372 addq.l #4,%sp - move.l 8(%sp),%d1 - move.l 4(%sp),%a0 tst.l %d0 - jge .L239 - st %d2 - addq.l #7,%d0 - move.b %d2,5(%a0) - tst.l %d0 - jeq .L269 - pea 48.w - move.l #.LC7,%d0 - move.l %d0,-(%sp) - move.l %d1,16(%sp) - jsr 1074111160 - addq.l #8,%sp - move.l 8(%sp),%d1 -.L271: - move.l (%sp)+,%d2 - move.l %d1,%d0 - lea (12,%sp),%sp - rts -.L268: - move.l %d1,%d0 - jra .L247 -.L267: - pea 48.w - pea .LC8 - jsr 1074111160 - addq.l #8,%sp - mov3q.l #1,%d1 - jra .L270 -.L269: - pea 48.w - move.l #.LC6,%d0 - move.l %d0,-(%sp) - move.l %d1,16(%sp) - jsr 1074111160 - addq.l #8,%sp - move.l 8(%sp),%d1 - jra .L271 - .size as_key, .-as_key - .section .rodata.str1.1 -.LC9: - .string "BOOK FILE ERROR" - .text - .align 2 - .globl as_tick - .type as_tick, @function -as_tick: - lea (-16,%sp),%sp - movem.l #3084,(%sp) - move.l 20(%sp),%a3 - jsr ready - move.l %d0,%a2 - tst.l %a3 - jeq .L273 - move.l evlog,%d0 - mvz.b 4(%a2),%d1 - lsl.l #4,%d0 - or.l %d1,%d0 - move.l %d0,(%a3) -.L273: - tst.b 15(%a2) - jeq .L274 - tst.b 5(%a2) - jlt .L337 -.L274: - move.w 46(%a2),%d0 - mvz.w %d0,%d1 - cmp.l #3999,%d1 - jhi .L282 - addq.l #1,%d0 - move.w %d0,46(%a2) -.L282: - move.b 34(%a2),%d2 - jmi .L283 - tst.b 5(%a2) - jlt .L338 -.L284: - move.b 1175263980,%d0 - move.b 1175263981,%d1 - move.b 1175263982,%d2 - mvz.b 43(%a2),%d3 - move.l %d3,%a3 - move.w %d1,%a1 - move.w %d2,%a0 - moveq #24,%d1 - lsl.l %d1,%d0 - mvz.b 1175263983,%d2 - move.w %a1,%d3 - mvz.b %d3,%d3 - move.l %d3,%a1 - move.w %a0,%d3 - mvz.b %d3,%d1 - move.l %a1,%d3 - swap %d3 - clr.w %d3 + jlt .L1477 + moveq #1,%d1 + move.b %d1,55(%a2) + tst.b 5314(%a2) + jne .L1478 + jra .L1351 +.L1462: + move.l %a3,-(%sp) + jsr set_chain + move.b 1074531136,%d0 + move.b 1074531137,%d2 + addq.l #4,%sp + move.b 1074531138,%d1 + mvz.b 1074531139,%d3 + move.l %d3,%a0 + moveq #24,%d3 + lsl.l %d3,%d0 + mvz.b %d2,%d2 + mvz.b %d1,%d1 + swap %d2 + clr.w %d2 lsl.l #8,%d1 - or.l %d3,%d0 + or.l %d2,%d0 + move.l %a0,%d2 or.l %d2,%d0 or.l %d1,%d0 - sne %d1 - neg.l %d1 - mvz.b %d1,%d2 - cmp.l %a3,%d2 - jeq .L290 - move.b %d1,43(%a2) - clr.b %d1 - move.b %d1,44(%a2) + jeq .L1349 + jra .L1463 +.L1475: + move.b %d0,54(%a2) + jra .L1300 +.L1467: + mov3q.l #1,-(%sp) + jsr 1074094040 + addq.l #4,%sp + jra .L1296 +.L1292: + jsr stopped tst.l %d0 - jeq .L305 - move.l evlog,%d0 - moveq #12,%d1 - lsl.l #4,%d0 - or.l %d1,%d0 - moveq #24,%d1 - move.l %d0,%d2 - move.l %d0,%d3 - clr.w %d2 - swap %d2 - lsr.l %d1,%d3 - move.l %d0,%d1 - lsr.l #8,%d1 - move.l %d0,evlog - move.b %d3,269455136 - move.b %d2,269455137 - move.b %d1,269455138 - move.b %d0,269455139 -.L290: - move.b 1175263980,%d0 - move.b 1175263981,%d2 - move.b 1175263982,%d1 - mvz.b 1175263983,%d3 - move.l %d3,%a3 + jeq .L1294 + move.b -2147457376,%d0 + move.b -2147457375,%d3 + move.b -2147457374,%d1 + move.w %d3,%a0 + mvz.b -2147457373,%d3 + mvz.b %d1,%d1 + move.l %d3,%a1 moveq #24,%d3 lsl.l %d3,%d0 - move.w %d2,%a0 - mvz.b %d1,%d1 - move.b 41(%a2),%d2 lsl.l #8,%d1 move.w %a0,%d3 mvz.b %d3,%d3 swap %d3 clr.w %d3 or.l %d3,%d0 - move.l %a3,%d3 + move.l %a1,%d3 or.l %d3,%d0 or.l %d1,%d0 - jeq .L292 - moveq #1,%d0 - move.b %d0,39(%a2) - tst.b %d2 - jeq .L294 - move.b 42(%a2),%d0 - moveq #60,%d2 - addq.l #1,%d0 - mvz.b %d0,%d1 - move.b %d0,42(%a2) - cmp.l %d1,%d2 - jcs .L339 -.L294: - tst.b 38(%a2) - jeq .L295 - tst.b 5(%a2) - jlt .L340 -.L296: - clr.b %d0 - move.b %d0,44(%a2) -.L295: - tst.b 54(%a2) - jeq .L298 - tst.b 48(%a2) - jeq .L341 -.L298: - tst.b 6(%a2) - jeq .L299 - clr.b %d1 - move.b %d1,6(%a2) - pea 48.w - pea .LC9 - jsr 1074111160 - addq.l #8,%sp -.L299: - tst.b 4(%a2) - jeq .L272 - tst.b 5(%a2) - jlt .L342 -.L272: - movem.l (%sp),#3084 - lea (16,%sp),%sp - rts -.L292: - tst.b %d2 - jeq .L294 - clr.b %d1 - move.b %d1,39(%a2) - move.b %d1,41(%a2) - jra .L294 -.L305: + jeq .L1294 move.l evlog,%d0 - moveq #13,%d1 + moveq #11,%d1 lsl.l #4,%d0 or.l %d1,%d0 moveq #24,%d1 @@ -2064,94 +8488,100 @@ as_tick: move.b %d2,269455137 move.b %d1,269455138 move.b %d0,269455139 - jra .L290 -.L339: + jsr 1074376264 + mvz.b 8(%a2),%d0 + mvz.b 22(%a2,%d0.l),%d0 + move.l %d0,-(%sp) + jsr (%a3) + addq.l #4,%sp + tst.l %d0 + jge .L1442 + move.b 21(%a2),%d2 +.L1294: + addq.l #1,%d2 + mvz.b %d2,%d0 + move.b %d2,21(%a2) + moveq #119,%d2 + cmp.l %d0,%d2 + jcc .L1285 +.L1442: clr.b %d3 - move.b %d3,41(%a2) - jra .L294 -.L341: - tst.b 55(%a2) - jne .L298 - mvz.w 46(%a2),%d0 - moveq #60,%d3 - cmp.l %d0,%d3 - jcc .L298 - tst.b 5(%a2) - jge .L298 + move.b 20(%a2),%d1 + move.b %d3,21(%a2) + move.b %d3,19(%a2) + tst.b %d1 + jeq .L1296 + jra .L1479 +.L1457: jsr stopped tst.l %d0 - jeq .L298 + jeq .L1351 clr.l -(%sp) jsr 1073884372 addq.l #4,%sp tst.l %d0 - jlt .L298 - moveq #1,%d0 - move.b %d0,55(%a2) - jra .L298 -.L338: - tst.b 49(%a2) - jne .L343 -.L285: - move.b 50(%a2),%d0 - jeq .L284 -.L302: - move.b 1175264880,%d1 - move.b 1175264881,%d2 - move.w %d2,%a0 - move.b 1175264882,%d2 - mvz.b 1175264883,%d3 - move.l %d3,%a1 + jlt .L1351 + moveq #1,%d3 + move.b %d3,55(%a2) + move.b %d3,5315(%a2) + tst.b 5302(%a2) + jne .L1352 + jra .L1362 +.L1474: + move.b -2147457376,%d0 + move.b -2147457375,%d2 + move.b -2147457374,%d1 + mvz.b -2147457373,%d3 + move.l %d3,%a0 moveq #24,%d3 - lsl.l %d3,%d1 - move.w %a0,%d3 + lsl.l %d3,%d0 mvz.b %d2,%d2 - lsl.l #8,%d2 - mvz.b %d3,%d3 - swap %d3 - clr.w %d3 - or.l %d3,%d1 - move.l %a1,%d3 - or.l %d3,%d1 - or.l %d2,%d1 - jeq .L288 - jsr 1074097132 - clr.b %d0 - move.b %d0,50(%a2) - jra .L284 -.L342: - move.w 82(%a2),%d0 - moveq #119,%d2 - addq.l #1,%d0 - mvz.w %d0,%d1 - cmp.l %d1,%d2 - jcs .L301 - move.w %d0,82(%a2) - movem.l (%sp),#3084 - lea (16,%sp),%sp - rts -.L337: - mvz.b 4(%a2),%d0 - move.l #1074398112,%a3 - mvz.b 18(%a2,%d0.l),%d0 - move.l %d0,-(%sp) + mvz.b %d1,%d1 + swap %d2 + clr.w %d2 + lsl.l #8,%d1 + or.l %d2,%d0 + move.l %a0,%d2 + or.l %d2,%d0 + or.l %d1,%d0 + jeq .L1328 + move.l evlog,%d0 + moveq #11,%d3 + lsl.l #4,%d0 + or.l %d3,%d0 + moveq #24,%d3 + move.l %d0,%d1 + lsr.l %d3,%d1 + move.l %d0,%d2 + clr.w %d2 + swap %d2 + move.l %d0,evlog + move.l %d1,%a0 + move.l %d0,%d1 + move.w %a0,%d3 + lsr.l #8,%d1 + move.b %d3,269455136 + move.b %d2,269455137 + move.b %d1,269455138 + move.b %d0,269455139 + jsr 1074376264 + mov3q.l #6,-(%sp) jsr (%a3) addq.l #4,%sp tst.l %d0 - jlt .L344 -.L275: - clr.b %d3 - move.b %d3,17(%a2) - move.b %d3,15(%a2) - tst.b 16(%a2) - jne .L345 -.L280: + jge .L1326 + mvz.b 5316(%a2),%d0 + moveq #29,%d2 + cmp.l %d0,%d2 + jcc .L1327 clr.b %d3 - move.b %d3,16(%a2) - move.b 1074531232,%d0 - move.b 1074531233,%d2 - move.b 1074531234,%d1 - mvz.b 1074531235,%d3 + move.b %d3,5316(%a2) + jra .L1327 +.L1460: + move.b 1175263980,%d0 + move.b 1175263981,%d2 + move.b 1175263982,%d1 + mvz.b 1175263983,%d3 move.l %d3,%a0 moveq #24,%d3 lsl.l %d3,%d0 @@ -2164,25 +8594,30 @@ as_tick: move.l %a0,%d2 or.l %d2,%d0 or.l %d1,%d0 - jne .L281 - mvz.b 4(%a2),%d0 - clr.b %d3 - move.b 18(%a2,%d0.l),%d0 - move.b %d3,1074531236 - move.b %d3,1074531237 - move.b %d3,1074531238 - move.b %d0,1074531239 - mvz.b 4(%a2),%d0 - move.b 18(%a2,%d0.l),%d0 - move.b %d3,1074531240 - move.b %d3,1074531241 - move.b %d3,1074531242 - move.b %d0,1074531243 -.L281: - move.b 1074531136,%d0 - move.b 1074531137,%d2 - move.b 1074531138,%d1 - mvz.b 1074531139,%d3 + jne .L1322 + jsr 1074077708 + tst.b 5303(%a2) + jeq .L1323 + jra .L1480 +.L1461: + move.b 269161681,%d0 + mov3q.l #7,%d3 + mov3q.l #1,%d2 + lea (%a2,%d2.l),%a0 + mov3q.l #7,%a3 + move.b 5332(%a0),%d1 + and.l %d3,%d0 + cmp.l %d0,%a3 + jne .L1443 + jra .L1441 +.L1289: + clr.b %d1 + move.b %d1,21(%a2) + move.b %d1,19(%a2) + move.b 1175263980,%d0 + move.b 1175263981,%d2 + move.b 1175263982,%d1 + mvz.b 1175263983,%d3 move.l %d3,%a0 moveq #24,%d3 lsl.l %d3,%d0 @@ -2195,32 +8630,55 @@ as_tick: move.l %a0,%d2 or.l %d2,%d0 or.l %d1,%d0 - jeq .L274 - jsr 1073966616 - jra .L274 -.L340: - tst.b 34(%a2) - jge .L296 - tst.b 15(%a2) - jne .L296 - tst.b 50(%a2) - jne .L296 - move.b 44(%a2),%d0 - moveq #119,%d2 - addq.l #1,%d0 - mvz.b %d0,%d1 - move.b %d0,44(%a2) - cmp.l %d1,%d2 - jcc .L295 - clr.b %d3 - move.b %d3,38(%a2) - move.b %d3,44(%a2) - tst.b 39(%a2) - jeq .L295 - move.b 1175263980,%d0 - move.b 1175263981,%d2 - move.b 1175263982,%d1 - mvz.b 1175263983,%d3 + jeq .L1296 + jra .L1467 +.L1476: + cmp.l %a3,%a1 + jls .L1336 + move.w %a3,%d3 + mov3q.l #7,%d0 + sub.l %d2,%d0 + mulu.w #5652,%d0 + mulu.w #5652,%d3 + move.l %d0,%a1 + move.l %d3,%a0 + lea (5624,%a0),%a0 + add.l %a2,%a0 + sub.l %a0,%a1 + move.l %a0,%d1 + add.l #268435459,%a1 + add.l #5652,%d1 +.L1339: + move.b (%a0)+,%d0 + move.b %d0,(%a1,%a0.l) + cmp.l %a0,%d1 + jne .L1339 + move.w %a3,%d0 + move.l 20(%sp),%a0 + add.l %a2,%a0 + move.l #268525900,%a1 + subq.l #1,%d2 + move.b %d0,5332(%a0) + move.b (%a1),%d0 + tst.l %d2 + jne .L1340 + moveq #-65,%d2 + mov3q.l #6,%a3 + and.l %d2,%d0 + move.b %d0,(%a1) +.L1341: + move.b 5332(%a0),%d1 + tst.b 5327(%a2) + jeq .L1443 + mvz.b 5306(%a2),%d2 + mvz.b %d1,%d0 + cmp.l %d2,%d0 + jcc .L1345 + move.b %d1,5329(%a2) + move.b -2147457388,%d0 + move.b -2147457387,%d2 + move.b -2147457386,%d1 + mvz.b -2147457385,%d3 move.l %d3,%a0 moveq #24,%d3 lsl.l %d3,%d0 @@ -2233,352 +8691,979 @@ as_tick: move.l %a0,%d2 or.l %d2,%d0 or.l %d1,%d0 - jne .L295 - jsr 1074077708 - jra .L295 -.L343: - mvz.w 46(%a2),%d0 - moveq #29,%d3 - cmp.l %d0,%d3 - jcc .L285 - jsr stopped - tst.l %d0 - jeq .L285 - moveq #1,%d0 - move.b %d2,5(%a2) - move.b %d0,16(%a2) - clr.l -(%sp) - jsr 1073884372 - addq.l #4,%sp - move.l evlog,%d1 - move.b %d0,51(%a2) - lsl.l #4,%d1 + cmp.l %a3,%d0 + jeq .L1348 + jra .L1462 +.L1367: + move.w #8,%a0 + jra .L1303 +.L1308: + tst.b 38(%a2) + jlt .L1299 + move.b 54(%a2),%d0 + jeq .L1300 + jra .L1365 +.L1477: + clr.b %d0 + move.b %d0,5304(%a2) + tst.b 5314(%a2) + jne .L1478 + jra .L1351 +.L1340: + moveq #127,%d3 + mov3q.l #7,%a3 + and.l %d3,%d0 + move.b %d0,(%a1) + jra .L1341 +.L1465: + st %d0 + move.b %d0,5301(%a2) + jra .L1354 +.L1469: + st %d1 + addq.l #7,%d0 + move.b %d1,5301(%a2) tst.l %d0 - jlt .L346 + jeq .L1481 + move.b %d2,5310(%a2) +.L1482: + move.b 54(%a2),%d0 + jne .L1472 + jra .L1300 +.L1345: + st %d1 + move.b %d1,5329(%a2) + cmp.l #255,%d0 + jne .L1346 + jra .L1342 +.L1481: + st %d2 + move.b %d2,5310(%a2) + jra .L1482 + .size as_tick, .-as_tick + .section .rodata.str1.1 +.LC27: + .string "SETLISTS" +.LC28: + .string "READING..." +.LC29: + .string "EMPTY" + .text + .align 2 + .globl as_draw + .type as_draw, @function +as_draw: + lea (-80,%sp),%sp + movem.l #31996,(%sp) + move.l 84(%sp),%a6 + jsr ready + move.l %d0,%a2 + tst.b 5002(%a2) + jne .L1583 + tst.b 5327(%a2) + jeq .L1584 + tst.b leds_shown.l + jeq .L1543 +.L1542: + clr.b %d5 + lea leds_kept,%a0 + lea leds_kept+1,%a4 + move.b %d5,leds_shown + move.b (%a0),1175169420 + lea leds_kept+2,%a0 + move.b (%a4),1175169421 + lea leds_kept+3,%a4 + move.b (%a0),1175169422 + move.b (%a4),1175169423 +.L1486: + tst.b 5327(%a2) + jne .L1543 + tst.b 5002(%a2) + jeq .L1544 + move.l %a6,%d3 + mov3q.l #2,%d4 + mov3q.l #1,%d5 + lea (184,%a6),%a1 + add.l #832,%d3 +.L1518: + mov3q.l #7,%d6 + and.l %d4,%d6 + move.l %d5,%d2 + move.l %d4,%d0 + asr.l #3,%d0 + mov3q.l #7,%d1 + move.l %a1,%a3 + sub.l %d0,%d1 + lea (%a1,%d1.l),%a0 + add.l %d3,%d1 + lsl.l %d6,%d2 + not.l %d2 +.L1519: + move.b (%a0),%d0 + addq.l #8,%a0 + and.l %d2,%d0 + move.b %d0,-8(%a0) + cmp.l %a0,%d1 + jne .L1519 + addq.l #1,%d4 + moveq #63,%d6 + cmp.l %d4,%d6 + jne .L1518 + mov3q.l #2,%d0 + clr.l %d2 + mov3q.l #2,%d4 + mov3q.l #1,%d5 +.L1520: + sub.l %a4,%a4 + sub.l %d2,%a4 + add.l %a6,%a4 + move.l %d5,%d1 + sub.l %a1,%a1 + move.b 191(%a4),%d6 + lsl.l %d4,%d1 + sub.l %d2,%a1 + add.l %a6,%a1 + addq.l #1,%d0 + mov3q.l #7,%d4 + and.l %d0,%d4 + move.l %d0,%d2 + asr.l #3,%d2 + sub.l %a0,%a0 + move.l %d5,%d3 + moveq #62,%d7 + or.l %d1,%d6 + sub.l %d2,%a0 + add.l %a6,%a0 + lsl.l %d4,%d3 + move.b %d6,191(%a4) + move.b 823(%a1),%d6 + or.l %d6,%d1 + move.b %d1,823(%a1) + move.b 831(%a0),%d1 + or.l %d3,%d1 + move.b %d1,831(%a0) + cmp.l %d0,%d7 + jne .L1520 + move.b 184(%a6),%d1 + lea (824,%a6),%a0 +.L1521: + move.b 7(%a3),%d2 + move.b 8(%a3),%d0 + moveq #32,%d3 + mov3q.l #4,%d4 + or.l %d3,%d1 + moveq #64,%d5 + addq.l #8,%a3 + or.l %d4,%d2 + or.l %d5,%d0 + move.b %d1,-8(%a3) + move.b %d2,-1(%a3) + move.b %d0,(%a3) + move.b %d0,%d1 + cmp.l %a3,%a0 + jne .L1521 + tst.b 4972(%a2) + jne .L1585 + mvz.b 87(%a2),%d3 + moveq #10,%d6 + moveq #9,%d7 + move.l %sp,%d2 + add.l #56,%d2 + mvz.b 91(%a2,%d3.l),%d5 + move.l %d5,%d1 + remu.l %d6,%d0:%d1 + divu.l %d6,%d1 + add.l #48,%d0 + cmp.l %d5,%d7 + jcc .L1524 + move.l %d2,-(%sp) + move.l #791754240,%a0 + move.l %d3,-(%sp) + move.l %a6,-(%sp) + move.l %a0,70(%sp) + move.l %a2,-(%sp) + add.l #48,%d1 + move.b %d1,72(%sp) + move.b %d0,73(%sp) + jsr title_row + lea (16,%sp),%sp +.L1525: + move.b 5004(%a2),%d0 + tst.b 5302(%a2) + jeq .L1550 + mvz.b 5308(%a2),%d4 + move.b 5307(%a2),%d1 + cmp.l %d3,%d4 + jeq .L1527 +.L1579: + mvz.b %d0,%d0 +.L1526: + move.b %d1,5009(%a2) + mvz.w #288,%d1 + move.w #11,%a3 + clr.l %d4 + lea text,%a5 + muls.l %d3,%d1 + move.l %d1,44(%sp) + move.w %d3,%d1 + mulu.w #288,%d1 + lea 109(%a2,%d1.l),%a4 +.L1530: + add.l %d4,%d0 + move.l %d0,52(%sp) + cmp.l %d5,%d0 + jcc .L1483 + move.l 52(%sp),%d7 + moveq #18,%d6 + moveq #9,%d0 + muls.l %d7,%d6 + move.l %d6,%d1 + add.l 44(%sp),%d1 + move.l %d6,48(%sp) + mvz.b 107(%a2,%d1.l),%d1 + addq.l #1,%d1 + cmp.l %d1,%d0 + jcc .L1551 + move.l %d1,%d6 + moveq #10,%d7 + divu.l %d7,%d6 + lea (57,%sp),%a1 + move.l %d6,%a0 + lea (48,%a0),%a0 + move.w %a0,%d6 + move.b %d6,56(%sp) +.L1531: + moveq #10,%d7 + moveq #9,%d6 + remu.l %d7,%d0:%d1 + moveq #46,%d1 + move.l 48(%sp),%d7 + add.l 44(%sp),%d7 + move.b %d1,1(%a1) + move.l %d0,%d1 + add.l #48,%d1 + move.b %d1,(%a1) + mvz.b 108(%a2,%d7.l),%d1 + addq.l #1,%d1 + cmp.l %d1,%d6 + jcs .L1532 + moveq #10,%d0 + remu.l %d0,%d7:%d1 + move.w 54(%sp),%d0 + moveq #32,%d1 + lea (2,%a1),%a0 + lea (2,%a0),%a1 + add.l #48,%d7 + move.b %d7,(%a0) + mulu.w #18,%d0 + move.b %d1,1(%a0) + move.l %a0,%d1 + add.l #14,%d1 + lea (%a4,%d0.l),%a0 +.L1534: + move.b (%a0),%d0 + addq.l #1,%a0 + tst.b %d0 + jeq .L1586 + move.b %d0,(%a1)+ + cmp.l %a1,%d1 + jne .L1534 +.L1535: + move.l %d1,%a0 + move.l %a3,%d7 + clr.b (%a0) + addq.l #1,%d7 + move.l %d2,-(%sp) + move.l %d7,-(%sp) + pea 29.w + move.l %a6,-(%sp) + jsr (%a5) + lea (16,%sp),%sp + mvz.b 5004(%a2),%d0 + add.l %d4,%d0 + tst.b 5302(%a2) + jeq .L1538 + mvz.b 5308(%a2),%d1 + cmp.l %d3,%d1 + jeq .L1587 +.L1538: + mvz.b 5003(%a2),%d1 + cmp.l %d1,%d0 + jeq .L1588 +.L1540: + addq.l #1,%d4 mov3q.l #7,%d0 + cmp.l %d4,%d0 + jeq .L1483 + mvz.b 5004(%a2),%d0 + addq.l #7,%a3 + jra .L1530 +.L1583: + tst.b 4972(%a2) + jeq .L1589 + tst.b leds_shown.l + jeq .L1486 + clr.b %d5 + lea leds_kept,%a0 + lea leds_kept+1,%a4 + move.b %d5,leds_shown + move.b (%a0),1175169420 + lea leds_kept+2,%a0 + move.b (%a4),1175169421 + lea leds_kept+3,%a4 + move.b (%a0),1175169422 + move.b (%a4),1175169423 + jra .L1486 +.L1584: + move.b 1074531136,%d0 + move.b 1074531137,%d2 + moveq #24,%d4 + move.b 1074531138,%d1 + mvz.b 1074531139,%d3 + lsl.l %d4,%d0 + mvz.b %d2,%d2 + mvz.b %d1,%d1 + swap %d2 + clr.w %d2 + lsl.l #8,%d1 + or.l %d2,%d0 + or.l %d3,%d0 or.l %d1,%d0 - moveq #24,%d3 - move.l %d0,%d1 - lsr.l %d3,%d1 - move.l %d0,%d2 + jne .L1590 + tst.b leds_shown.l + jne .L1542 +.L1544: + move.b 1074531136,%d0 + move.b 1074531137,%d2 + moveq #24,%d4 + move.b 1074531138,%d1 + mvz.b 1074531139,%d3 + lsl.l %d4,%d0 + mvz.b %d2,%d2 + mvz.b %d1,%d1 + swap %d2 clr.w %d2 + lsl.l #8,%d1 + or.l %d2,%d0 + or.l %d3,%d0 + or.l %d1,%d0 + jeq .L1591 +.L1512: + move.b 1074531136,%d0 + move.b 1074531137,%d2 + moveq #24,%d4 + move.b 1074531138,%d1 + mvz.b 1074531139,%d3 + lsl.l %d4,%d0 + mvz.b %d2,%d2 + mvz.b %d1,%d1 swap %d2 - move.l %d0,evlog - move.l %d1,%a0 + clr.w %d2 + lsl.l #8,%d1 + or.l %d2,%d0 + or.l %d3,%d0 + or.l %d1,%d0 + jeq .L1483 + mvz.b 8(%a2),%d0 + lea label,%a3 + move.l %d0,%a0 + pea 1(%a0) + pea (book.1) + clr.l -(%sp) + move.l %a6,-(%sp) + jsr (%a3) + mvz.b 87(%a2),%d0 + move.l %d0,%a4 + pea 1(%a4) + pea (list.0) + pea 55.w + move.l %a6,-(%sp) + jsr (%a3) + lea (32,%sp),%sp +.L1483: + movem.l (%sp),#31996 + lea (80,%sp),%sp + rts +.L1543: + move.l %a6,%d3 + mov3q.l #2,%d4 + mov3q.l #1,%d5 + lea (184,%a6),%a1 + add.l #832,%d3 +.L1490: + mov3q.l #7,%d6 + and.l %d4,%d6 + move.l %d5,%d2 + move.l %d4,%d0 + asr.l #3,%d0 + mov3q.l #7,%d1 + move.l %a1,%a3 + sub.l %d0,%d1 + lea (%a1,%d1.l),%a0 + add.l %d3,%d1 + lsl.l %d6,%d2 + not.l %d2 +.L1491: + move.b (%a0),%d0 + addq.l #8,%a0 + and.l %d2,%d0 + move.b %d0,-8(%a0) + cmp.l %a0,%d1 + jne .L1491 + addq.l #1,%d4 + moveq #63,%d0 + cmp.l %d4,%d0 + jne .L1490 + mov3q.l #2,%d0 + clr.l %d2 + mov3q.l #2,%d4 + mov3q.l #1,%d5 +.L1492: + sub.l %a4,%a4 + sub.l %d2,%a4 + add.l %a6,%a4 + move.l %d5,%d1 + sub.l %a1,%a1 + move.b 191(%a4),%d6 + lsl.l %d4,%d1 + sub.l %d2,%a1 + add.l %a6,%a1 + addq.l #1,%d0 + mov3q.l #7,%d4 + and.l %d0,%d4 + move.l %d0,%d2 + asr.l #3,%d2 + sub.l %a0,%a0 + move.l %d5,%d3 + or.l %d1,%d6 + sub.l %d2,%a0 + add.l %a6,%a0 + lsl.l %d4,%d3 + move.b %d6,191(%a4) + move.b 823(%a1),%d6 + or.l %d6,%d1 + move.b %d1,823(%a1) + move.b 831(%a0),%d1 + or.l %d3,%d1 + move.b %d1,831(%a0) + moveq #62,%d1 + cmp.l %d0,%d1 + jne .L1492 + move.b 184(%a6),%d1 + lea (824,%a6),%a0 +.L1493: + move.b 7(%a3),%d2 + move.b 8(%a3),%d0 + moveq #32,%d3 + mov3q.l #4,%d4 + or.l %d3,%d1 + moveq #64,%d5 + addq.l #8,%a3 + or.l %d4,%d2 + or.l %d5,%d0 + move.b %d1,-8(%a3) + move.b %d2,-1(%a3) + move.b %d0,(%a3) + move.b %d0,%d1 + cmp.l %a3,%a0 + jne .L1493 + mvz.b 5307(%a2),%d6 + mvz.b 5329(%a2),%d7 + mvz.b 5306(%a2),%d3 + mvz.b 5328(%a2),%d4 + move.l %d6,%d0 + moveq #9,%d1 + move.l %d6,52(%sp) + move.l %d7,48(%sp) + addq.l #1,%d0 + cmp.l %d0,%d1 + jcc .L1546 move.l %d0,%d1 - move.w %a0,%d3 - lsr.l #8,%d1 - move.b %d3,269455136 - move.b %d2,269455137 - move.b %d1,269455138 - move.b %d0,269455139 - st %d0 - clr.b %d1 - move.b %d0,34(%a2) - move.b %d1,49(%a2) -.L283: - move.b 50(%a2),%d0 - jeq .L284 - tst.b 5(%a2) - jge .L284 - jra .L302 -.L344: - move.b 17(%a2),%d2 - tst.b 16(%a2) - jeq .L279 - mvz.b %d2,%d0 - moveq #29,%d1 + moveq #10,%d5 + divu.l %d5,%d1 + moveq #10,%d6 + moveq #47,%d7 + lea (57,%sp),%a0 + move.l %sp,%d2 + add.l #56,%d2 + add.l #48,%d1 + move.b %d1,56(%sp) + remu.l %d6,%d1:%d0 + move.b %d7,1(%a0) + moveq #9,%d0 + add.l #48,%d1 + move.b %d1,(%a0) + cmp.l %d3,%d0 + jcs .L1495 +.L1596: + lea (2,%a0),%a1 +.L1496: + move.l %d3,%d1 + moveq #10,%d6 + remu.l %d6,%d0:%d1 + clr.b %d7 + add.l #48,%d0 + move.b %d0,(%a1) + move.b %d7,1(%a1) + move.l %d4,%d7 + move.l %d2,-(%sp) + mvz.b 5308(%a2),%d0 + move.l %d0,-(%sp) + move.l %a6,-(%sp) + move.l %a2,-(%sp) + jsr title_row + lea (16,%sp),%sp + mov3q.l #6,%d0 + cmp.l %d4,%d0 + jls .L1497 + mov3q.l #6,%d7 +.L1497: + move.w %d7,%d0 + move.w #11,%a3 + lea (5228,%a2),%a2 + subq.l #6,%d7 + mulu.w #18,%d0 + add.l %d0,%a2 +.L1498: + cmp.l %d7,%d3 + jls .L1483 + cmp.l 48(%sp),%d7 + jeq .L1592 + moveq #32,%d0 +.L1499: + move.b %d0,56(%sp) + moveq #9,%d1 + mvz.b (%a2),%d0 + addq.l #1,%d0 cmp.l %d0,%d1 - jcs .L277 - addq.l #1,%d2 - move.b %d2,17(%a2) - jra .L274 -.L301: - clr.w %d3 - move.w %d3,82(%a2) - move.l %a2,20(%sp) - movem.l (%sp),#3084 + jcc .L1548 + move.l %d0,%d1 + moveq #10,%d5 + divu.l %d5,%d1 + lea (58,%sp),%a0 + add.l #48,%d1 + move.b %d1,57(%sp) +.L1500: + moveq #10,%d5 + remu.l %d5,%d1:%d0 + moveq #46,%d6 + add.l #48,%d1 + move.b %d1,(%a0) + move.b %d6,1(%a0) + mvz.b 1(%a2),%d0 + move.l %d0,%a4 + moveq #9,%d0 + addq.l #1,%a4 + cmp.l %a4,%d0 + jcs .L1501 + move.l %a4,%d5 + moveq #10,%d6 + remu.l %d6,%d0:%d5 + moveq #32,%d5 + move.l %a0,%d1 + addq.l #2,%d1 + move.l %d1,%a0 + move.l %d1,%a4 + move.l %d1,%a5 + move.l %d1,%a1 + lea (14,%a5),%a5 + addq.l #2,%a1 + add.l #48,%d0 + move.b %d5,1(%a0) + move.b %d0,(%a4) + lea (2,%a2),%a0 +.L1503: + move.b (%a0),%d0 + addq.l #1,%a0 + tst.b %d0 + jeq .L1593 + move.b %d0,(%a1)+ + cmp.l %a5,%a1 + jne .L1503 + clr.b (%a5) + lea (1,%a3),%a5 + move.l %d2,-(%sp) + move.l %a5,-(%sp) + pea 25.w + move.l %a6,-(%sp) + jsr text + lea (16,%sp),%sp + cmp.l 52(%sp),%d7 + jeq .L1594 +.L1506: + cmp.l %d7,%d4 + jeq .L1595 +.L1507: + addq.l #1,%d7 + addq.l #7,%a3 + lea (18,%a2),%a2 + moveq #60,%d0 + cmp.l %a3,%d0 + jne .L1498 +.L1582: + movem.l (%sp),#31996 + lea (80,%sp),%sp + rts +.L1546: + moveq #10,%d6 + remu.l %d6,%d1:%d0 + moveq #47,%d7 + move.l %sp,%d2 + add.l #56,%d2 + move.l %d2,%a0 + moveq #9,%d0 + add.l #48,%d1 + move.b %d1,(%a0) + move.b %d7,1(%a0) + cmp.l %d3,%d0 + jcc .L1596 +.L1495: + move.l %d3,%d0 + moveq #10,%d5 + divu.l %d5,%d0 + lea (3,%a0),%a1 + add.l #48,%d0 + move.b %d0,2(%a0) + jra .L1496 +.L1594: + cmp.l 48(%sp),%d7 + jeq .L1506 + move.l %a5,-(%sp) + move.l %a6,-(%sp) + jsr (playing_mark.constprop.0) + addq.l #8,%sp + cmp.l %d7,%d4 + jne .L1507 +.L1595: + pea 6(%a3) + pea 101.w + move.l %a3,-(%sp) + pea 24.w + move.l %a6,-(%sp) + jsr invert + lea (20,%sp),%sp + addq.l #1,%d7 + addq.l #7,%a3 + lea (18,%a2),%a2 + moveq #60,%d0 + cmp.l %a3,%d0 + jne .L1498 + jra .L1582 +.L1524: + move.l %d2,-(%sp) + move.l #791754240,%a4 + move.l %d3,-(%sp) + move.l %a6,-(%sp) + move.b %d0,68(%sp) + move.l %a4,69(%sp) + move.l %a2,-(%sp) + jsr title_row lea (16,%sp),%sp - jra remember -.L345: - move.b 1175263980,%d0 - move.b 1175263981,%d2 - move.b 1175263982,%d1 - mvz.b 1175263983,%d3 - move.l %d3,%a0 - moveq #24,%d3 - lsl.l %d3,%d0 + tst.l %d5 + jne .L1525 + pea .LC29 + pea 12.w + pea 25.w + move.l %a6,-(%sp) + jsr text + lea (16,%sp),%sp + movem.l (%sp),#31996 + lea (80,%sp),%sp + rts +.L1591: + move.b 1187503478,%d0 + move.b 1187503479,%d2 + move.b 1187503480,%d1 + mvz.b 1187503481,%d3 + lsl.l %d4,%d0 mvz.b %d2,%d2 mvz.b %d1,%d1 swap %d2 clr.w %d2 lsl.l #8,%d1 or.l %d2,%d0 - move.l %a0,%d2 - or.l %d2,%d0 + or.l %d3,%d0 or.l %d1,%d0 - jeq .L280 - mov3q.l #1,-(%sp) - jsr 1074094040 - addq.l #4,%sp - jra .L280 -.L288: - addq.l #1,%d0 - mvz.b %d0,%d1 - moveq #90,%d2 - cmp.l %d1,%d2 - jcc .L347 - clr.b %d3 - move.b %d3,50(%a2) - jra .L284 -.L277: - jsr stopped - tst.l %d0 - jeq .L279 - move.b -2147457376,%d0 - move.b -2147457375,%d3 - move.b -2147457374,%d1 - move.w %d3,%a0 - mvz.b -2147457373,%d3 + cmp.l #1074128072,%d0 + jne .L1512 + move.b 1175264880,%d0 + move.b 1175264881,%d2 + move.b 1175264882,%d1 + mvz.b 1175264883,%d3 + lsl.l %d4,%d0 + mvz.b %d2,%d2 mvz.b %d1,%d1 - move.l %d3,%a1 - moveq #24,%d3 - lsl.l %d3,%d0 + swap %d2 + clr.w %d2 lsl.l #8,%d1 - move.w %a0,%d3 - mvz.b %d3,%d3 - swap %d3 - clr.w %d3 - or.l %d3,%d0 - move.l %a1,%d3 + or.l %d2,%d0 or.l %d3,%d0 or.l %d1,%d0 - jeq .L279 - move.l evlog,%d0 - moveq #11,%d1 - lsl.l #4,%d0 - or.l %d1,%d0 - moveq #24,%d1 - move.l %d0,%d2 - move.l %d0,%d3 - clr.w %d2 + jne .L1512 + move.b 1175263980,%d0 + move.b 1175263981,%d2 + move.b 1175263982,%d1 + mvz.b 1175263983,%d3 + lsl.l %d4,%d0 + mvz.b %d2,%d2 + mvz.b %d1,%d1 swap %d2 - lsr.l %d1,%d3 - move.l %d0,%d1 - lsr.l #8,%d1 - move.l %d0,evlog - move.b %d3,269455136 - move.b %d2,269455137 - move.b %d1,269455138 - move.b %d0,269455139 - jsr 1074376264 - mvz.b 4(%a2),%d0 - mvz.b 18(%a2,%d0.l),%d0 + clr.w %d2 + lsl.l #8,%d1 + or.l %d2,%d0 + or.l %d3,%d0 + or.l %d1,%d0 + jeq .L1512 + tst.b 5302(%a2) + jne .L1514 + move.b 5310(%a2),%d0 + jmi .L1516 + tst.b 4972(%a2) + jne .L1516 + mvs.b %d0,%d0 + mvz.b 5311(%a2),%d1 + mvz.b 91(%a2,%d0.l),%d2 + cmp.l %d1,%d2 + jhi .L1597 +.L1516: + move.b 5301(%a2),%d0 + jmi .L1517 + mvz.b 87(%a2),%d1 + mvs.b %d0,%d0 + mvz.b 91(%a2,%d1.l),%d2 + cmp.l %d0,%d2 + jhi .L1598 +.L1517: + tst.b 5303(%a2) + jeq .L1512 +.L1514: + mvz.b 5306(%a2),%d0 move.l %d0,-(%sp) - jsr (%a3) + mvz.b 5307(%a2),%d0 + move.l %d0,-(%sp) + mvz.b 5308(%a2),%d0 + move.l %d0,-(%sp) +.L1578: + move.l %a6,-(%sp) + move.l %a2,-(%sp) + jsr draw_mark + lea (20,%sp),%sp + move.b 5002(%a2),%d0 + jeq .L1512 +.L1599: + move.l %a6,%d3 + mov3q.l #2,%d4 + mov3q.l #1,%d5 + lea (184,%a6),%a1 + add.l #832,%d3 + jra .L1518 +.L1589: + mvz.b 87(%a2),%d0 + move.l %d0,-(%sp) + jsr trig_leds addq.l #4,%sp - tst.l %d0 - jge .L275 - move.b 17(%a2),%d2 -.L279: - addq.l #1,%d2 - mvz.b %d2,%d0 - move.b %d2,17(%a2) - moveq #119,%d2 - cmp.l %d0,%d2 - jcc .L274 - clr.b %d3 - move.b %d3,17(%a2) - move.b %d3,15(%a2) - tst.b 16(%a2) - jeq .L280 - jra .L345 -.L347: - move.b %d0,50(%a2) - jra .L284 -.L346: - moveq #8,%d2 - addq.l #7,%d0 - or.l %d2,%d1 - move.l %d1,%d3 - move.l %d1,%d2 - clr.w %d3 - swap %d3 - move.l %d1,evlog - move.l %d3,%a0 - moveq #24,%d3 - lsr.l %d3,%d2 - move.l %d2,%a1 - move.l %d1,%d2 - move.w %a1,%d3 - lsr.l #8,%d2 - move.b %d3,269455136 - move.w %a0,%d3 - move.b %d3,269455137 - move.b %d2,269455138 - move.b %d1,269455139 - st %d1 - clr.b %d2 - move.b %d1,5(%a2) - move.b %d2,16(%a2) - tst.l %d0 - jeq .L303 - move.w 36(%a2),%d0 - addq.l #1,%d0 - mvz.w %d0,%d1 - move.w %d0,36(%a2) - cmp.l #18000,%d1 - jls .L285 -.L303: - st %d1 - move.b 50(%a2),%d0 - move.b %d1,34(%a2) - tst.b %d0 - jne .L302 - jra .L284 - .size as_tick, .-as_tick - .align 2 - .globl as_draw - .type as_draw, @function -as_draw: - lea (-32,%sp),%sp - movem.l #1276,(%sp) - move.l 36(%sp),%d4 - moveq #24,%d6 - jsr ready - move.b 1074531136,%d1 - move.b 1074531137,%d3 - move.b 1074531138,%d2 - mvz.b 1074531139,%d5 - lsl.l %d6,%d1 - mvz.b %d3,%d3 - mvz.b %d2,%d2 - swap %d3 - clr.w %d3 - lsl.l #8,%d2 - or.l %d3,%d1 - or.l %d5,%d1 - or.l %d2,%d1 - jeq .L348 - move.l %d0,%a0 - moveq #9,%d0 - mvz.b 4(%a0),%d5 - addq.l #1,%d5 - cmp.l %d5,%d0 - jcc .L357 - moveq #99,%d0 - clr.l %d3 - lsl.l #3,%d0 - move.w #101,%a1 - move.l %d4,%a2 - mov3q.l #1,%d7 - mov3q.l #2,28(%sp) - lea (1024,%a2),%a2 - move.l %d0,%d6 - add.l %d4,%d6 -.L352: - move.l %d3,%d0 - asr.l #3,%d0 - mov3q.l #7,%d1 - move.l %d7,%d2 - sub.l %d0,%d1 - mov3q.l #7,%d0 - and.l %d3,%d0 + jra .L1486 +.L1501: + move.l %a4,%d5 + moveq #10,%d6 + divu.l %d6,%d5 + moveq #10,%d6 + move.l %a0,%d1 + addq.l #3,%d1 + move.l %d5,%a1 + move.l %a4,%d5 + lea (48,%a1),%a1 + move.w %a1,%d0 + move.l %d1,%a5 + move.l %d1,%a4 + move.l %d1,%a1 + addq.l #2,%a1 + lea (14,%a5),%a5 + move.b %d0,2(%a0) + remu.l %d6,%d0:%d5 + moveq #32,%d5 move.l %d1,%a0 - add.l %a2,%d1 - add.l %d6,%a0 - lsl.l %d0,%d2 -.L351: - move.b (%a0),%d0 - addq.l #8,%a0 - or.l %d2,%d0 - move.b %d0,-8(%a0) - cmp.l %d1,%a0 - jne .L351 - addq.l #1,%d3 - moveq #9,%d1 - cmp.l %d3,%d1 - jne .L352 - moveq #101,%d6 - cmp.l %a1,%d6 - seq %d0 - move.l %a1,%d2 - lea (word.0),%a2 - neg.l %d0 - tst.b %d0 - jeq .L353 - moveq #117,%d6 - move.l #glyph.constprop.0,%d3 -.L355: - mvz.b (%a2)+,%d0 - move.l %d3,%a0 - move.l %d0,-(%sp) + add.l #48,%d0 + move.b %d5,1(%a0) + move.b %d0,(%a4) + lea (2,%a2),%a0 + jra .L1503 +.L1548: + lea (57,%sp),%a0 + jra .L1500 +.L1593: + move.l %a1,%a5 + clr.b (%a5) + lea (1,%a3),%a5 move.l %d2,-(%sp) - move.l %d4,-(%sp) - jsr (%a0) - addq.l #4,%d2 - lea (12,%sp),%sp - cmp.l %d2,%d6 - jne .L355 - mov3q.l #2,%d0 - cmp.l 28(%sp),%d0 - jeq .L366 - moveq #10,%d1 - remu.l %d1,%d0:%d5 - move.l %d3,%a0 - move.l %d0,-(%sp) - pea 124.w - move.l %d4,-(%sp) - jsr (%a0) - lea (12,%sp),%sp -.L348: - movem.l (%sp),#1276 + move.l %a5,-(%sp) + pea 25.w + move.l %a6,-(%sp) + jsr text + lea (16,%sp),%sp + cmp.l 52(%sp),%d7 + jne .L1506 + jra .L1594 +.L1592: + moveq #62,%d0 + jra .L1499 +.L1588: + pea 6(%a3) + pea 101.w + move.l %a3,-(%sp) + pea 24.w + move.l %a6,-(%sp) + jsr invert + lea (20,%sp),%sp + jra .L1540 +.L1587: + mvz.b 5307(%a2),%d1 + cmp.l %d1,%d0 + jne .L1538 + move.l %d7,-(%sp) + move.l %a6,-(%sp) + jsr (playing_mark.constprop.0) + mvz.b 5004(%a2),%d0 + addq.l #8,%sp + mvz.b 5003(%a2),%d1 + add.l %d4,%d0 + cmp.l %d1,%d0 + jne .L1540 + jra .L1588 +.L1532: + move.l %d1,%d7 + moveq #10,%d0 + divu.l %d0,%d7 + moveq #10,%d0 + lea (3,%a1),%a0 + add.l #48,%d7 + move.b %d7,2(%a1) + remu.l %d0,%d7:%d1 + move.w 54(%sp),%d0 + moveq #32,%d1 + lea (2,%a0),%a1 + add.l #48,%d7 + move.b %d7,(%a0) + mulu.w #18,%d0 + move.b %d1,1(%a0) + move.l %a0,%d1 + add.l #14,%d1 + lea (%a4,%d0.l),%a0 + jra .L1534 +.L1551: + move.l %d2,%a1 + jra .L1531 +.L1586: + move.l %a1,%d1 + jra .L1535 +.L1550: + st %d1 + mvz.b %d0,%d0 + jra .L1526 +.L1585: + pea .LC27 + mov3q.l #4,-(%sp) + pea 25.w + move.l %a6,-(%sp) + lea text,%a2 + jsr (%a2) + pea 9.w + pea 101.w + mov3q.l #3,-(%sp) + pea 24.w + move.l %a6,-(%sp) + jsr invert lea (32,%sp),%sp + move.l #.LC28,(%sp) + pea 12.w + pea 25.w + move.l %a6,-(%sp) + jsr (%a2) + lea (16,%sp),%sp + movem.l (%sp),#31996 + lea (80,%sp),%sp rts -.L357: - moveq #103,%d0 - clr.l %d3 - lsl.l #3,%d0 - move.l %d4,%a2 - mov3q.l #1,%d7 - move.w #105,%a1 - mov3q.l #1,28(%sp) - lea (1024,%a2),%a2 - move.l %d0,%d6 - add.l %d4,%d6 - jra .L352 -.L353: - moveq #121,%d6 - move.l #glyph.constprop.0,%d3 - jra .L355 -.L366: - move.l %d5,%d0 - moveq #10,%d2 - divu.l %d2,%d0 - move.l %d3,%a0 +.L1590: + mvz.b 8(%a2),%d0 move.l %d0,-(%sp) - pea 120.w - move.l %d4,-(%sp) - jsr (%a0) - lea (12,%sp),%sp - moveq #10,%d1 - remu.l %d1,%d0:%d5 - move.l %d3,%a0 + jsr trig_leds + addq.l #4,%sp + jra .L1486 +.L1527: + mvz.b 5009(%a2),%d6 + mvz.b %d1,%d4 + cmp.l %d6,%d4 + jeq .L1579 + mvz.b %d0,%d0 + cmp.l %d5,%d4 + jcc .L1526 + move.b %d1,5003(%a2) + cmp.l %d4,%d0 + jls .L1529 + move.b %d1,5004(%a2) + move.l %d4,%d0 +.L1529: + move.l %d0,%a0 + addq.l #7,%a0 + cmp.l %d4,%a0 + jhi .L1526 + move.l %d1,%d0 + subq.l #6,%d0 + move.b %d1,5009(%a2) + mvz.w #288,%d1 + move.b %d0,5004(%a2) + mvz.b %d0,%d0 + move.w #11,%a3 + muls.l %d3,%d1 + clr.l %d4 + lea text,%a5 + move.l %d1,44(%sp) + move.w %d3,%d1 + mulu.w #288,%d1 + lea 109(%a2,%d1.l),%a4 + jra .L1530 +.L1598: + move.l %d2,-(%sp) move.l %d0,-(%sp) - pea 124.w - move.l %d4,-(%sp) - jsr (%a0) - lea (12,%sp),%sp - jra .L348 + move.l %d1,-(%sp) + move.l %a6,-(%sp) + move.l %a2,-(%sp) + jsr draw_mark + lea (20,%sp),%sp + move.b 5002(%a2),%d0 + jeq .L1512 + jra .L1599 +.L1597: + move.l %d2,-(%sp) + move.l %d1,-(%sp) + move.l %d0,-(%sp) + jra .L1578 .size as_draw, .-as_draw .section .rodata - .type word.0, @object - .size word.0, 4 -word.0: + .type list.0, @object + .size list.0, 4 +list.0: + .base64 "DQ4PEA==" + .type book.1, @object + .size book.1, 4 +book.1: .base64 "CgsLDA==" + .type stock.2, @object + .size stock.2, 10 +stock.2: + .string "%d:%d:%d" + .zero 1 + .type title.3, @object + .size title.3, 13 +title.3: + .string "SETLIST NAME" + .local leds_kept + .comm leds_kept,4,1 + .local leds_shown + .comm leds_shown,1,1 .align 2 .type GLYPH, @object - .size GLYPH, 26 + .size GLYPH, 34 GLYPH: .word 31599 .word 11415 @@ -2593,6 +9678,155 @@ GLYPH: .word 27566 .word 11114 .word 23469 + .word 18727 + .word 29847 + .word 14478 + .word 29842 + .globl as_setlists_icon + .align 2 + .type as_setlists_icon, @object + .size as_setlists_icon, 40 +as_setlists_icon: + .long 27 + .long 13 + .long 1 + .long ICON_NORMAL + .long ICON_MASK + .long 27 + .long 13 + .long 1 + .long ICON_SELECTED + .long ICON_MASK + .align 2 + .type ICON_MASK, @object + .size ICON_MASK, 108 +ICON_MASK: + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .long -524288 + .align 2 + .type ICON_SELECTED, @object + .size ICON_SELECTED, 108 +ICON_SELECTED: + .long 0 + .long 0 + .long 0 + .long 0 + .long 2146435072 + .long 1192230912 + .long 1431306240 + .long 1431306240 + .long 1192230912 + .long 1192230912 + .long 1431306240 + .long 1431306240 + .long 1431306240 + .long 1431306240 + .long 1431306240 + .long 1431306240 + .long 1431306240 + .long 1431306240 + .long 1431306240 + .long 1192230912 + .long 1192230912 + .long 1192230912 + .long 2146435072 + .long 0 + .long 0 + .long 0 + .long 0 + .align 2 + .type ICON_NORMAL, @object + .size ICON_NORMAL, 108 +ICON_NORMAL: + .long 0 + .long 0 + .long 0 + .long 0 + .long 2146435072 + .long 1074790400 + .long 1380974592 + .long 1380974592 + .long 1074790400 + .long 1074790400 + .long 1380974592 + .long 1380974592 + .long 1380974592 + .long 1380974592 + .long 1380974592 + .long 1380974592 + .long 1380974592 + .long 1380974592 + .long 1380974592 + .long 1074790400 + .long 1074790400 + .long 1074790400 + .long 2146435072 + .long 0 + .long 0 + .long 0 + .long 0 + .local lend_buf + .comm lend_buf,360,4 + .globl as_title_fmt + .section .bss + .type as_title_fmt, @object + .size as_title_fmt, 32 +as_title_fmt: + .zero 32 + .globl as_title_index + .type as_title_index, @object + .size as_title_index, 1 +as_title_index: + .zero 1 + .globl as_count_fmt + .data + .type as_count_fmt, @object + .size as_count_fmt, 10 +as_count_fmt: + .string "%d:%d:%d" + .zero 1 + .globl as_chain_text + .section .bss + .type as_chain_text, @object + .size as_chain_text, 16 +as_chain_text: + .zero 16 + .globl as_own_ok + .type as_own_ok, @object + .size as_own_ok, 1 +as_own_ok: + .zero 1 + .globl as_own_names + .align 4 + .type as_own_names, @object + .size as_own_names, 34 +as_own_names: + .zero 34 .data .align 2 .type st_at, @object @@ -2602,4 +9836,4 @@ st_at: .local evlog .comm evlog,4,2 .local st - .comm st,4724,2 + .comm st,100698,2 diff --git a/sdk/octatrack/modules/songbook/songbook_host.c b/sdk/octatrack/modules/songbook/songbook_host.c index 6227bb789b..31381fc754 100644 --- a/sdk/octatrack/modules/songbook/songbook_host.c +++ b/sdk/octatrack/modules/songbook/songbook_host.c @@ -12,6 +12,8 @@ int as_key(int code, int pressed); void as_tick(void *api); void as_draw(unsigned char *frame); int as_writer(uint32_t a1, uint32_t a2, uint32_t a3, uint32_t a4); +void as_setlists_open(void); +void as_list_named(int ok); void as_project_load(void); void as_project_new(void); unsigned as_project_loaded(void); @@ -19,11 +21,23 @@ unsigned as_project_stored(void); unsigned as_project_reloaded(void); unsigned as_modules_ready(void); void as_host_reinstall(void); +int as_list_row(uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t); +extern uint32_t host_row_name; +extern char as_own_names[2][17]; void as_host_keep_memory(void); void as_host_back_memory(void); #define LEFT 0x34 #define RIGHT 0x21 +#define CUE 0x2a +#define YES 0x31 +#define NO 0x32 +#define UP 0x33 +#define DOWN 0x20 +#define PLAY 0x28 +#define FUNC 0x2d +#define REC 0x29 +#define STOP 0x27 #define BLOCK 5652u #define SLOTS 8u #define W(n) (4u + (n) * BLOCK) /* offsets into cs1 */ @@ -34,17 +48,25 @@ void as_host_back_memory(void); static uint8_t cs1[0x16200]; /* 0x10000000 .. : the slots, their flags, the changed mask */ static uint8_t rec[20]; /* 0x100f8f10 */ static uint8_t misc[0x2000]; /* 0x80004f00 .. */ -static uint32_t change_window, playing; +static uint32_t change_window, playing, yes_handler; static char cur_name[256] = "PROJ", job_name[256] = "PROJ"; /* the project in use; the one a load job loads */ +static uint32_t arr_state; /* 0x800066a0: the arranger's run state */ +static int resets; static uint8_t chosen; /* 0x100b14d1: the arrangement chosen */ static uint8_t arr_mode; /* 0x460d1aec's low byte: arranger mode */ static uint8_t mode_wanted; /* 0x80000010: the mode stock applies when a load ends */ static uint8_t msg_up; /* 0x460d1e70's low byte: a message box is open */ -static int closes; +static int closes, events; +extern char as_chain_text[16]; +extern uint8_t as_title_index; +extern char as_title_fmt[32]; +#define chain_text as_chain_text +static int shared_writes; +static char *named; /* the buffer stock's name editor was opened on */ +void host_name_edit(char *buffer) { named = buffer; } +void host_post_event(void) { ++events; } static uint8_t list[16]; /* 0x400c0ba0: the CHANGE list's first row shown, then its cursor */ static int failures, checks; -static uint32_t arr_state; /* 0x800066a0: the arranger's run state */ -static int resets; uint8_t host_rd8(uint32_t a) { @@ -53,15 +75,18 @@ uint8_t host_rd8(uint32_t a) if (a >= 0x400c0b40u && a < 0x400c0b44u) return (uint8_t)(change_window >> (8 * (3 - (a - 0x400c0b40u)))); if (a >= 0x800065b8u && a < 0x800065bcu) return (uint8_t)(playing >> (8 * (3 - (a - 0x800065b8u)))); if (a >= 0x800066a0u && a < 0x800066a4u) return (uint8_t)(arr_state >> (8 * (3 - (a - 0x800066a0u)))); + if (a >= 0x100f8378u && a < 0x100f8378u + 256u) return (uint8_t)cur_name[a - 0x100f8378u]; + if (a >= 0x460bdec1u && a < 0x460bdec1u + 256u) return (uint8_t)job_name[a - 0x460bdec1u]; if (a >= 0x80004f00u && a < 0x80004f00u + sizeof misc) return misc[a - 0x80004f00u]; if (a == 0x100b14d1u) return chosen; + if (a == 0x80000005u) return chosen; /* stock's other copy of the index */ if (a == 0x460d1aefu) return arr_mode; if (a >= 0x460d1aecu && a < 0x460d1aefu) return 0; if (a == 0x460d1e73u) return msg_up; if (a >= 0x460d1e70u && a < 0x460d1e73u) return 0; if (a >= 0x400c0ba0u && a < 0x400c0bb0u) return list[a - 0x400c0ba0u]; - if (a >= 0x100f8378u && a < 0x100f8378u + 256u) return (uint8_t)cur_name[a - 0x100f8378u]; /* stock's project name */ - if (a >= 0x460bdec1u && a < 0x460bdec1u + 256u) return (uint8_t)job_name[a - 0x460bdec1u]; /* its load job's */ + if (a >= 0x46c7d8deu + 0x31u * 0x18u && a < 0x46c7d8deu + 0x31u * 0x18u + 4u) /* YES's routed handler */ + return (uint8_t)((yes_handler ? yes_handler : 0x4003395cu) >> (8 * (3 - (a - (0x46c7d8deu + 0x31u * 0x18u))))); /* 0: the Arranger menu */ fprintf(stderr, "read of 0x%08x\n", a); return 0; } @@ -71,6 +96,8 @@ void host_wr8(uint32_t a, uint8_t v) if (a >= 0x100f8f10u && a <= 0x100f8f23u) { rec[a - 0x100f8f10u] = v; return; } if (a == 0x80000010u) { mode_wanted = v; return; } if (a >= 0x400c0ba0u && a < 0x400c0bb0u) { list[a - 0x400c0ba0u] = v; return; } + if (a >= 0x80006694u && a < 0x80006698u) { misc[a - 0x80004f00u] = v; return; } /* stock's CHAIN */ + if (a >= 0x400b4652u && a < 0x400b4660u) { ++shared_writes; return; } /* stock's "CHAIN ARR. %d": never written */ fprintf(stderr, "write of 0x%08x\n", a); } @@ -169,6 +196,19 @@ int host_stock_writer(uint32_t a1, uint32_t a2, uint32_t a3, uint32_t a4) return 0; } static unsigned char lcd[1024]; +/* Stock's text routine, as the module calls it: what was drawn where, in order. */ +static struct { int x, top; char t[32]; } texts[16]; +static int ntexts; +void host_text(unsigned char *frame, int x, int top, const char *s) +{ + (void)frame; + if (ntexts < 16) { texts[ntexts].x = x; texts[ntexts].top = top; snprintf(texts[ntexts].t, sizeof texts[ntexts].t, "%s", s); ++ntexts; } +} +static const char *text_at(int top) { for (int i = 0; i < ntexts; ++i) if (texts[i].top == top) return texts[i].t; return ""; } +static uint32_t chain(void) { const uint8_t *c = &misc[0x80006694u - 0x80004f00u]; return (uint32_t)c[0] << 24 | c[1] << 16 | c[2] << 8 | c[3]; } +/* The arranger past its last row: stock takes the CHAIN (0x4004a7e2) */ +static void stock_chain(void) { if (chain() != 0xffffffffu) { chosen = (uint8_t)chain(); memset(&misc[0x80006694u - 0x80004f00u], 0xff, 4); } } +static void page_draw(void) { memset(lcd, 0, sizeof lcd); ntexts = 0; as_draw(lcd); } void host_set(unsigned char *frame, int x, int y, int on) { unsigned char *b = frame + x * 8 + 7 - (y >> 3), m = (unsigned char)(1u << (y & 7)); if (on) *b |= m; else *b &= (unsigned char)~m; } static int lit(int x, int y) { return lcd[x * 8 + 7 - (y >> 3)] >> (y & 7) & 1; } int host_pixel(const unsigned char *frame, int x, int y) { return frame[x * 8 + 7 - (y >> 3)] >> (y & 7) & 1; } @@ -208,6 +248,11 @@ static int tap(int code) { int t = as_key(code, 1); as_key(code, 0); return t; } static void job(void) { as_writer(0x100b14f0u, 0xff, 0, 0); } /* the card task runs the posted job */ static unsigned diag(void) { struct { volatile uint32_t value; } api = {0}; as_tick((void *)&api); return api.value; } static unsigned book(void) { return diag() & 15; } +/* ARR > CHANGE's cursor on arrangement n (all 8 shown: the first row is 1) */ +static void choose(unsigned n) { memset(list, 0, sizeof list); list[7] = (uint8_t)n; list[11] = (uint8_t)n; } +/* arrlists.work as written: setlist l's song count, and its entry i (book, slot, name) */ +static int lists_count(unsigned l) { struct file *f = find("/SET/PROJ/arrlists.work"); return f ? f->work[8 + l] : -1; } +static const uint8_t *entry(unsigned l, unsigned i) { return &find("/SET/PROJ/arrlists.work")->work[24 + (l * 16 + i) * 18]; } static void settle(void) { for (int i = 0; i < 125; ++i) as_tick(0); } /* stock's load is over */ int main(void) @@ -254,6 +299,19 @@ int main(void) host_clear_arr(4); cs1[CHG] = 0; tap(LEFT); job(); as_tick(0); tap(RIGHT); job(); as_tick(0); check("a clear the list did not mark changed stays cleared after leaving the book", book() == 1 && cs1[W(4) + 30] == 0 && cs1[W(3) + 30] != 0); + /* trig keys choose the book, as banks are chosen: the lit one does nothing, two held together nothing */ + for (int i = 0; i < 10; ++i) as_tick(0); + tap(2); job(); as_tick(0); + check("trig 3 in BOOKS: book 3", book() == 2); + { int pp = posted; for (int i = 0; i < 10; ++i) as_tick(0); tap(2); as_tick(0); check("the trig of the book in use does nothing", posted == pp && book() == 2); } + { int pp = posted; for (int i = 0; i < 10; ++i) as_tick(0); as_key(0, 1); as_key(2, 1); as_key(2, 0); as_key(0, 0); job(); as_tick(0); + check("two trigs held together: only the first one's book", book() == 0 && posted == pp + 1); } + for (int i = 0; i < 10; ++i) as_tick(0); + tap(1); job(); as_tick(0); + last_message[0] = 0; misc[0x1e + 672] = 1; /* a recorder state left in a track's other buffer (an old project) */ + tap(LEFT); job(); as_tick(0); tap(RIGHT); job(); as_tick(0); + check("a state in a recorder's other buffer does not stop a book switch", book() == 1 && strcmp(last_message, "STOP TO CHANGE BOOK") != 0); + misc[0x1e + 672] = 0; mark(0x20); job(); /* book 2 as before, for the checks below */ tap(RIGHT); job(); /* to book 3, new */ @@ -515,46 +573,607 @@ int main(void) post_refuse = 0; change_window = 0x46c7d384u; tap(LEFT); change_window = 0; job(); as_tick(0); check("a switch that ends with the list closed draws nothing", list_draws == d); - /* LOAD of another project (the developer's MKI, 24 November 2026): stock's project directory is still the last - * project's at ev_banks_load and the new one's from ev_banks_loaded */ + /* setlists: CUE + YES adds, CUE + LEFT/RIGHT moves an arrangement in its book, arrlists.work with the project */ + as_project_new(); mark(0x10); cs1[CHG] = 0; chosen = 0; /* a new project: book 1, no setlists */ + files_remove("/SET/PROJ/arrlists.work"); files_remove("/SET/PROJ/arrlists.strd"); + for (unsigned n = 0; n < SLOTS; ++n) { char nm[17]; snprintf(nm, sizeof nm, "SONG %c", 'A' + n); memset(&cs1[W(n)], 0, 16); memcpy(&cs1[W(n)], nm, strlen(nm)); } + change_window = 0x46c7d384u; + choose(2); + as_key(CUE, 1); + check("CUE + YES in ARR > CHANGE is taken", tap(YES) == 1); + as_key(CUE, 0); + check("and says what it added where", !strcmp(last_message, "B1 3 ADDED TO LIST 1")); + check("YES alone stays stock's", tap(YES) == 0); + { struct file *f = find("/SET/PROJ/arrlists.work"); check("nothing written before the next sync", !f); } + job(); + { struct file *f = find("/SET/PROJ/arrlists.work"); + check("the next sync writes arrlists.work: one song, book 1 arrangement 3, its name", f && !memcmp(f->work, "ASL2", 4) && f->work[8] == 1 && f->work[24] == 0 && f->work[25] == 2 && !memcmp(&f->work[26], "SONG C", 6)); } + choose(5); + as_key(CUE, 1); as_key(YES, 1); as_key(YES, 1); as_key(YES, 0); as_key(CUE, 0); /* a held YES repeats */ + job(); + check("a held YES adds once", lists_count(0) == 2 && !strcmp(last_message, "B1 6 ADDED TO LIST 1")); + memcpy(&cs1[W(2)], "INTRO", 6); job(); + check("a renamed song's new name is in the setlist after the next sync", !memcmp(entry(0, 0) + 2, "INTRO", 6)); + /* moving: arrangement 3 (in the setlist, chosen) one place down */ + chosen = 2; choose(2); + uint8_t a3 = cs1[W(2) + 100], a4 = cs1[W(3) + 100], s3 = cs1[S(2) + 100], f3 = cs1[FLAGS + 2], f4 = cs1[FLAGS + 3]; + int q0 = posted; + as_key(CUE, 1); + check("CUE + RIGHT in ARR > CHANGE is taken", tap(RIGHT) == 1); + as_key(CUE, 0); + check("arrangements 3 and 4 changed places, working and saved copies and flags", cs1[W(3) + 100] == a3 && cs1[W(2) + 100] == a4 && cs1[S(3) + 100] == s3 && cs1[FLAGS + 3] == f3 && cs1[FLAGS + 2] == f4); + check("both are marked changed, so the next sync writes them", (cs1[CHG] & 0x0c) == 0x0c && posted == q0); + check("the choice, the list's cursor and the chosen arrangement go with it", list[11] == 3 && list[7] == 3 && chosen == 3); + job(); + check("the setlist still points at the same song, now arrangement 4", entry(0, 0)[1] == 3 && !memcmp(entry(0, 0) + 2, "INTRO", 6)); + check("and arr03/arr04 hold the swapped arrangements", find("/SET/PROJ/arr04.work")->work[100] == a3 && find("/SET/PROJ/arr03.work")->work[100] == a4); + choose(0); cs1[CHG] = 0; /* the sync before set its bits, as stock's writer does */ + as_key(CUE, 1); tap(LEFT); as_key(CUE, 0); + check("nothing moves above arrangement 1", list[11] == 0 && cs1[CHG] == 0); + playing = 1; choose(3); cs1[CHG] = 0; + as_key(CUE, 1); tap(LEFT); as_key(CUE, 0); + playing = 0; + check("while playing it says so and moves nothing", !strcmp(last_message, "STOP TO MOVE") && cs1[CHG] == 0 && cs1[W(3) + 100] == a3); + p0 = posted; + as_key(CUE, 1); tap(RIGHT); as_key(CUE, 0); + check("CUE + RIGHT never switches the book", book() == 0 && posted == p0); + as_key(CUE, 1); tap(LEFT); as_key(CUE, 0); job(); /* back as they were */ + /* a full setlist */ + for (int i = 0; i < 14; ++i) { as_key(CUE, 1); tap(YES); as_key(CUE, 0); } + job(); + check("16 songs fill a setlist", lists_count(0) == 16); + as_key(CUE, 1); tap(YES); as_key(CUE, 0); job(); + check("a 17th is refused, and it says so", lists_count(0) == 16 && !strcmp(last_message, "LIST 1 IS FULL")); + /* SAVE, RELOAD, LOAD, a new project */ + as_project_stored(); + check("SAVE PROJECT copies arrlists.work to arrlists.strd", find("/SET/PROJ/arrlists.strd") && find("/SET/PROJ/arrlists.strd")->work[8] == 16); + find("/SET/PROJ/arrlists.work")->work[8] = 3; /* edited since */ + as_project_reloaded(); as_project_new(); job(); + as_key(CUE, 1); tap(YES); as_key(CUE, 0); job(); + check("RELOAD PROJECT brings the saved setlists back", lists_count(0) == 16 && !strcmp(last_message, "LIST 1 IS FULL")); + as_project_new(); job(); + as_key(CUE, 1); tap(YES); as_key(CUE, 0); job(); + check("a new project starts with empty setlists", lists_count(0) == 1); + as_project_stored(); + find("/SET/PROJ/arrlists.work")->work[8] = 5; + as_project_load(); as_project_new(); job(); + as_key(CUE, 1); tap(YES); as_key(CUE, 0); job(); + check("a project load reads arrlists.work", lists_count(0) == 6); + files_remove("/SET/PROJ/arrlists.strd"); + as_project_reloaded(); as_project_new(); job(); + check("RELOAD of a project saved before it had setlists: none, written so", lists_count(0) == 0); + find("/SET/PROJ/arrlists.work")->work[0] = 'X'; + as_project_load(); as_project_new(); job(); + as_key(CUE, 1); tap(YES); as_key(CUE, 0); job(); + check("an arrlists.work that is not ours reads as no setlists", lists_count(0) == 1); + memset(lcd, 0, sizeof lcd); + as_draw(lcd); + check("LIST 1 knocked out of a solid box at the bottom right", lit(105, 55) && !lit(102, 55) && lit(127, 63) && !lit(105, 57) && !lit(105, 61) && lit(106, 57) && !lit(124, 58) && lit(123, 57)); + check("BOOK 1 still at the top right", lit(103, 0) && !lit(105, 2)); + change_window = 0; + as_key(CUE, 1); + check("CUE + YES outside ARR > CHANGE stays stock's", tap(YES) == 0); + as_key(CUE, 0); + + /* the SETLSTS page (the Arranger menu's CHAIN item): setlist 1 holds one song here (INTRO, now arrangement 4) */ change_window = 0x46c7d384u; - while (book() < 2) { tap(RIGHT); job(); as_tick(0); } - while (book() > 2) { tap(LEFT); job(); as_tick(0); } + for (unsigned n = 0; n < 3; ++n) { choose(n == 0 ? 0 : n == 1 ? 4 : 7); as_key(CUE, 1); tap(YES); as_key(CUE, 0); } change_window = 0; - chosen = 4; job(); /* project A left on book 3, arrangement 5 */ + job(); + check("four songs in setlist 1 for the page checks", lists_count(0) == 4); + page_draw(); + check("nothing of the page before it is opened", ntexts == 0); + as_setlists_open(); + page_draw(); + check("the page: SETLIST 1 and its count on the title row", !strcmp(text_at(4), "1:SETLIST 1") && !strcmp(texts[1].t, "4/16")); + check("its songs as book.arrangement and name", !strcmp(text_at(12), "1.4 INTRO") && !strcmp(text_at(19), "1.1 SONG A") && !strcmp(text_at(26), "1.5 SONG E") && !strcmp(text_at(33), "1.8 SONG H")); + check("the title row inverted, the first song under the cursor too", lit(60, 3) && lit(100, 11) && !lit(100, 18)); + check("UP/DOWN are the page's; PLAY stays stock's", tap(DOWN) == 1 && tap(UP) == 1 && tap(PLAY) == 0); + tap(DOWN); tap(DOWN); page_draw(); + check("DOWN moves the cursor", lit(100, 25) && !lit(100, 11)); + as_key(CUE, 1); tap(LEFT); as_key(CUE, 0); job(); + check("CUE + LEFT moves the song up, and the cursor with it", entry(0, 1)[1] == 4 && entry(0, 2)[1] == 0 && (page_draw(), lit(100, 18))); + as_key(FUNC, 1); + check("FUNC + PLAY is the page's", tap(PLAY) == 1); + as_key(FUNC, 0); job(); + check("and takes the song out of the setlist, the arrangement left in its book", lists_count(0) == 3 && entry(0, 1)[1] == 0 && !memcmp(&cs1[W(4)], "SONG E", 6)); + for (int i = 0; i < 5; ++i) tap(DOWN); + page_draw(); + check("the cursor stops at the last song", lit(100, 25) && !lit(100, 32)); + /* FUNC + YES: the setlist's name, in stock's name editor */ + as_key(FUNC, 1); + check("FUNC + YES on the page is the page's", tap(YES) == 1); + as_key(FUNC, 0); + check("and opens stock's name editor on the setlist's name, the page closed", named != 0 && (page_draw(), ntexts == 0)); + memcpy(named, "GIG 1 ", 16); named[15] = 0; /* typed, padded with spaces as the editor does */ + as_list_named(1); job(); + as_setlists_open(); page_draw(); + check("the page's title is its number and name", !strcmp(text_at(4), "1:GIG 1")); + check("kept in arrlists.work with the next sync", !memcmp(find("/SET/PROJ/arrlists.work")->work + 24 + 16 * 16 * 18, "GIG 1", 5)); + tap(UP); tap(UP); tap(DOWN); /* the cursor on song 2 of 3 */ + as_key(FUNC, 1); tap(REC); as_key(FUNC, 0); + check("FUNC + REC copies the song under the cursor", !strcmp(last_message, "COPIED SONG")); + check("STOP alone stays the transport's", tap(STOP) == 0); + as_key(FUNC, 1); + check("FUNC + STOP is the page's", tap(STOP) == 1); + as_key(FUNC, 0); job(); + check("and pastes it after the cursor: four songs, the copy third", lists_count(0) == 4 && entry(0, 2)[0] == entry(0, 1)[0] && entry(0, 2)[1] == entry(0, 1)[1]); + as_key(FUNC, 1); tap(PLAY); as_key(FUNC, 0); job(); /* the copy out again */ + check("FUNC + PLAY takes the pasted copy out again", lists_count(0) == 3); + as_key(CUE, 1); as_key(FUNC, 1); tap(REC); as_key(FUNC, 0); as_key(CUE, 0); + check("CUE + FUNC + REC copies the whole setlist", !strcmp(last_message, "COPIED LIST 1")); + tap(RIGHT); as_key(FUNC, 1); tap(STOP); as_key(FUNC, 0); job(); + check("FUNC + STOP on setlist 2 pastes all three", lists_count(1) == 3 && entry(1, 0)[1] == entry(0, 0)[1] && entry(1, 2)[1] == entry(0, 2)[1]); + for (int i = 0; i < 3; ++i) { as_key(FUNC, 1); tap(PLAY); as_key(FUNC, 0); } /* setlist 2 empty again */ + job(); tap(LEFT); + tap(RIGHT); page_draw(); + check("RIGHT shows setlist 2, empty", !strcmp(text_at(4), "2:SETLIST 2") && !strcmp(text_at(12), "EMPTY")); + tap(NO); page_draw(); + check("NO closes the page", ntexts == 0); + change_window = 0x46c7d384u; choose(1); + as_key(CUE, 1); tap(YES); as_key(CUE, 0); + check("and CUE + YES now adds to setlist 2", !strcmp(last_message, "B1 2 ADDED TO LIST 2")); + memset(lcd, 0, sizeof lcd); as_draw(lcd); + check("LIST 2 shown in ARR > CHANGE", !lit(124, 57) && !lit(126, 57)); + change_window = 0; job(); + for (int i = 0; i < 9; ++i) { change_window = 0x46c7d384u; choose(i % 8); as_key(CUE, 1); tap(YES); as_key(CUE, 0); } + change_window = 0; job(); + as_setlists_open(); for (int i = 0; i < 9; ++i) tap(DOWN); page_draw(); + check("a long setlist scrolls: the cursor's song on the last row", lit(100, 54) && !lit(100, 47) && !strcmp(text_at(54), "1.1 SONG A") && !strcmp(text_at(12), "1.3 SONG D")); + /* installed into an open project: its setlists are read by a card job before they are shown or added to */ + as_host_reinstall(); as_modules_ready(); + { int pp = posted; change_window = 0x46c7d384u; choose(1); + as_key(CUE, 1); tap(YES); as_key(CUE, 0); change_window = 0; + check("after an install, CUE + YES first reads the setlists: a card job, READING SETLISTS, nothing added", posted == pp + 1 && !strcmp(last_message, "READING SETLISTS")); + as_setlists_open(); page_draw(); + check("the page meanwhile says READING", !strcmp(text_at(12), "READING...") && posted == pp + 1); + job(); page_draw(); + check("once read, the page shows setlist 2 with its ten songs", !strcmp(text_at(4), "2:SETLIST 2") && !strcmp(texts[1].t, "10/16")); + tap(NO); } + as_project_load(); page_draw(); + check("a project load closes the page", ntexts == 0); + as_project_new(); job(); + + /* playing a setlist: B2 3, B1 2, B1 5 (one song from another book's file, two from the slots) */ + memset(&misc[0x80006694u - 0x80004f00u], 0xff, 4); + files_remove("/SET/PROJ/arrlists.work"); + as_project_new(); /* a new project, not a load: no setlists */ + mark(0x10); cs1[CHG] = 0xff; job(); /* book 1, saved */ + change_window = 0x46c7d384u; + tap(RIGHT); job(); as_tick(0); + mark(0x20); cs1[CHG] = 0xff; job(); /* book 2, saved as arr09-16 */ + choose(2); as_key(CUE, 1); tap(YES); as_key(CUE, 0); + tap(LEFT); job(); as_tick(0); /* back to book 1 */ + choose(1); as_key(CUE, 1); tap(YES); as_key(CUE, 0); + choose(4); as_key(CUE, 1); tap(YES); as_key(CUE, 0); + change_window = 0; job(); + check("the setlist: B2 3, B1 2, B1 5", book() == 0 && lists_count(0) == 3 && entry(0, 0)[0] == 1 && entry(0, 0)[1] == 2 && entry(0, 2)[1] == 4); + uint8_t s0 = find("/SET/PROJ/arr11.work")->work[100], s1 = cs1[W(1) + 100], s2 = cs1[W(4) + 100], b7 = cs1[W(6) + 100], b8 = cs1[W(7) + 100]; + uint8_t saved2 = find("/SET/PROJ/arr02.work")->saved[100]; + chosen = 4; as_setlists_open(); page_draw(); + check("the page opened stopped: the cursor on the arrangement chosen now (B1 5, the third song)", lit(100, 25) && !lit(100, 11)); + tap(NO); chosen = 0; + playing = 1; as_setlists_open(); tap(UP); tap(UP); tap(YES); + check("YES while playing: it says so and starts nothing", !strcmp(last_message, "STOP TO START") && (page_draw(), ntexts > 0)); + playing = 0; + int pp = posted; tap(YES); + check("YES on the first song posts the card job and closes the page", posted == pp + 1 && (page_draw(), ntexts == 0)); + job(); + check("the first two songs in slots 7 and 8: one from book 2's file, one from book 1's slot", cs1[W(6) + 100] == s0 && cs1[W(7) + 100] == s1); + as_tick(0); + check("the first song chosen, the second chained, arranger mode on", chosen == 6 && chain() == 7 && arr_mode == 1); + stock_chain(); as_tick(0); + check("past the first song: the third into the freed slot 7, chained", chosen == 7 && cs1[W(6) + 100] == s2 && chain() == 6); + as_setlists_open(); page_draw(); + check("the page opened while it plays: the cursor on the song playing (the second)", lit(100, 18) && !lit(100, 11)); + tap(NO); + memset(&misc[0x80006694u - 0x80004f00u], 0xff, 4); as_tick(0); /* something clears the chain mid-song */ + { int e0 = events; + memset(&misc[0x80006694u - 0x80004f00u], 0xff, 4); as_tick(0); + check("and stock's arranger event is posted, so the rows are drawn with it", chain() == 6 && events == e0 + 1); + check("the chain row names the next song (its first 14 characters)", chain_text[0] == '>' && !memcmp(&chain_text[1], &cs1[W(6)], 14) && chain_text[15] == 0); } + check("a chain cleared while a song plays is set again the next frame", chain() == 6 && cs1[W(6) + 100] == s2); + cs1[W(7) + 200] ^= 0xff; /* the second song edited while it plays */ + uint8_t edited = cs1[W(7) + 200]; + { int w = writes; job(); + check("a save while the setlist plays writes none of the book's files", writes == w && find("/SET/PROJ/arr07.work")->work[100] == b7); } + stock_chain(); as_tick(0); + check("past the second song: the last one plays, nothing chained (it ends as stock ends any arrangement)", chosen == 6 && chain() == 0xffffffffu); + { int e0 = events; memset(&misc[0x80006694u - 0x80004f00u], 0, 4); as_tick(0); + check("a chain that appears on the last song is taken away again, the rows drawn again", chain() == 0xffffffffu && events == e0 + 1); } + playing = 0; as_tick(0); + check("stopped at its end, the last song stays chosen", chosen == 6 && cs1[W(6) + 100] == s2); + change_window = 0x46c7d384u; pp = posted; as_tick(0); + check("opening ARR > CHANGE, stopped, ends the setlist with a card job", posted == pp + 1); + job(); as_tick(0); + check("the edited song saved to its own file, arr02.work", find("/SET/PROJ/arr02.work")->work[200] == edited); + check("its ARR SAVE copy kept", find("/SET/PROJ/arr02.work")->saved[100] == saved2); + check("the book back in its slots: slots 7 and 8 its own again, the edit in slot 2", cs1[W(6) + 100] == b7 && cs1[W(7) + 100] == b8 && cs1[W(1) + 200] == edited && cs1[CHG] == 0); + check("songs not edited are not written", find("/SET/PROJ/arr11.work")->work[100] == s0 && chain() == 0xffffffffu); + change_window = 0; + /* installed again while a setlist plays: slots 7 and 8 hold its songs; nothing of them is written, the book read */ + as_setlists_open(); tap(UP); tap(UP); tap(YES); job(); as_tick(0); + check("a setlist playing again: its songs in slots 7 and 8, the record says so", cs1[W(6) + 100] == s0 && (rec[7] & 0x80)); + as_host_reinstall(); as_modules_ready(); + { int w = writes, sw = stock_writes, pp = posted; as_tick(0); + check("installed again: a card job is posted to read the book back", posted == pp + 1); + job(); as_tick(0); + check("and it reads the book, slots 7 and 8 its own again (arr07.work, arr08.work hold no copy, so nothing is written)", writes == w && stock_writes == sw && cs1[W(6) + 100] == b7 && cs1[W(7) + 100] == b8 && rec[7] == 0 + && find("/SET/PROJ/arr07.work")->work[100] == b7 && find("/SET/PROJ/arr08.work")->work[100] == b8); } + { int sw = stock_writes; cs1[CHG] = 1; job(); + check("after it the book is written as usual", stock_writes == sw + 1); } + /* The owner's review of #2431: a trial ended by a power cycle while a setlist plays, then SAVE PROJECT on the stock OS + * alone. Stock saves whatever its slots hold, so the setlist's copies land in arr07.work and arr08.work; the module, + * once installed again, puts the book's own arrangements 7 and 8 back from the backup it took at the setlist's start. */ + as_setlists_open(); tap(UP); tap(UP); tap(YES); job(); as_tick(0); + check("a setlist on book 1: copies in slots 7 and 8, the book's own 7 and 8 in arr07.sl and arr08.sl", + (rec[7] & 0x80) && cs1[W(6) + 100] == s0 && find("/SET/PROJ/arr07.sl") && find("/SET/PROJ/arr07.sl")->work[100] == b7 + && find("/SET/PROJ/arr08.sl") && find("/SET/PROJ/arr08.sl")->work[100] == b8); + as_list_row(0, 0, 4, 0, 0, 0, 0, 0, ' ', 7, 0x10000004u + 6u * BLOCK); + check("ARR > BOOKS names row 7 by the book's own arrangement 7, not the setlist's copy", + host_row_name == (uint32_t)(uintptr_t)as_own_names[0] && !memcmp(as_own_names[0], find("/SET/PROJ/arr07.sl")->work, 16) + && memcmp(as_own_names[0], &cs1[W(6)], 16)); + as_list_row(0, 0, 4, 0, 0, 0, 0, 0, ' ', 2, 0x10000004u + 1u * BLOCK); + check("and row 2 as stock does", host_row_name == 0x10000004u + 1u * BLOCK); + check("and arrlend.work notes that book 1 lent them", find("/SET/PROJ/arrlend.work") && !memcmp(find("/SET/PROJ/arrlend.work")->work, "ASL2\0\1", 6)); + host_stock_writer(0, 0xffu, 0, 0); /* the module gone: stock alone saves its 8 slots */ + find("/SET/PROJ/arrbook.work")->work[22] = 0; /* and Songbook 0.1.0, kept, rewrote arrbook.work without the setlist */ + check("stock alone writes the copies over arr07.work and arr08.work", find("/SET/PROJ/arr07.work")->work[100] != b7); + as_host_reinstall(); as_modules_ready(); + as_tick(0); job(); as_tick(0); + check("installed again: arrangements 7 and 8 back from their backup, in slots 7 and 8 and in arr07.work, arr08.work", + cs1[W(6) + 100] == b7 && cs1[W(7) + 100] == b8 && find("/SET/PROJ/arr07.work")->work[100] == b7 + && find("/SET/PROJ/arr08.work")->work[100] == b8 && rec[7] == 0 && find("/SET/PROJ/arrlend.work")->work[5] == 0); + /* The owner's review: newer work saved over arrangement 7 after the module was gone is kept, not the old backup. */ + as_setlists_open(); tap(UP); tap(UP); tap(YES); job(); as_tick(0); + for (int i = 0; i < 3 && !(rec[7] & 0x80); ++i) { job(); as_tick(0); } + { struct file *a7 = find("/SET/PROJ/arr07.work"); + memcpy(a7->work, find("/SET/PROJ/arr07.sl")->work, BLOCK); a7->work[400] ^= 0x33; /* its own 7, edited and saved */ + uint8_t mine = a7->work[400]; + host_stock_writer(0, 0x80u, 0, 0); /* stock alone: only 8 saved with the setlist's copy */ + as_host_reinstall(); as_modules_ready(); as_tick(0); job(); as_tick(0); + check("installed again after a week's edit of arrangement 7: arr07.work keeps the edit, arr08.work gets its own back", + find("/SET/PROJ/arr07.work")->work[400] == mine && cs1[W(6) + 400] == mine && find("/SET/PROJ/arr08.work")->work[100] == b8 + && cs1[W(7) + 100] == b8 && find("/SET/PROJ/arrlend.work")->work[5] == 0); } + /* The owner's review: a note never given back (the record lost), then a setlist on another book: the first book's + * arrangements 7 and 8 are repaired in its files (and book 1's backup) before the note is written for the new book. */ + as_setlists_open(); tap(UP); tap(UP); tap(YES); job(); as_tick(0); + for (int i = 0; i < 3 && !(rec[7] & 0x80); ++i) { job(); as_tick(0); } + host_stock_writer(0, 0xc0u, 0, 0); /* stock alone saves the copies over arr07, arr08 */ + rec[7] = 0; /* and the record no longer says the slots are lent */ + as_host_reinstall(); as_modules_ready(); as_tick(0); + change_window = 0x46c7d384u; tap(RIGHT); job(); as_tick(0); change_window = 0; /* on to book 2 */ + check("book 2 after the lost record: book 1's arr07.work still holds the copy", book() == 1 && find("/SET/PROJ/arr07.work")->work[100] != b7); + as_setlists_open(); tap(UP); tap(UP); tap(YES); job(); as_tick(0); + for (int i = 0; i < 3 && !(rec[7] & 0x80); ++i) { job(); as_tick(0); } + check("a setlist on book 2: book 1's arrangements 7 and 8 repaired first, in arr07/08.work and their backup", + find("/SET/PROJ/arr07.work")->work[100] == b7 && find("/SET/PROJ/arr08.work")->work[100] == b8 + && find("/SET/PROJ/arr07.bak")->work[100] == b7 && find("/SET/PROJ/arr08.bak")->work[100] == b8); + check("and the note is book 2's now", find("/SET/PROJ/arrlend.work")->work[4] == 1 && find("/SET/PROJ/arrlend.work")->work[5] == 1); + { uint32_t y = yes_handler; yes_handler = 0; change_window = 0x46c7d384u; as_tick(0); job(); as_tick(0); /* the setlist ends */ + tap(LEFT); job(); as_tick(0); change_window = 0; yes_handler = y; as_tick(0); } /* back to book 1 */ + check("then the setlist ended and back on book 1, its 7 and 8 its own", book() == 0 && !(rec[7] & 0x80) && cs1[W(6) + 100] == b7 && cs1[W(7) + 100] == b8); + { int sw = stock_writes; cs1[W(6) + 300] ^= 0x5a; uint8_t ed = cs1[W(6) + 300]; cs1[CHG] = 0x40; job(); + check("after that an edit of arrangement 7 is saved as usual, to arr07.work", stock_writes == sw + 1 && find("/SET/PROJ/arr07.work")->work[300] == ed); } + /* A card job inside a LOAD while a setlist plays on book 1 (the module's mid-load path hands it to stock's writer): + * with slots 7 and 8 lent, their bits come off its mask, so no setlist copy is written as arrangement 7 or 8. */ + as_setlists_open(); tap(UP); tap(UP); tap(YES); job(); as_tick(0); + for (int i = 0; i < 3 && !(rec[7] & 0x80); ++i) { job(); as_tick(0); } + check("a setlist playing on book 1 again", (rec[7] & 0x80) && cs1[W(6) + 100] == s0); + { uint8_t a7 = find("/SET/PROJ/arr07.work")->work[100], a8 = find("/SET/PROJ/arr08.work")->work[100]; + as_project_load(); as_project_loaded(); + cs1[CHG] = 0xff; job(); + check("a write inside a LOAD in a setlist: slots 7 and 8 (the copies) not written to arr07.work, arr08.work", + find("/SET/PROJ/arr07.work")->work[100] == a7 && find("/SET/PROJ/arr08.work")->work[100] == a8); + as_project_new(); mark(0x10); settle(); job(); for (int i = 0; i < 300; ++i) as_tick(0); job(); as_tick(0); } + + /* a song whose file does not read: the setlist does not start, the book stays */ + fail_read_path = "/SET/PROJ/arr11.work"; + as_setlists_open(); tap(YES); job(); as_tick(0); + check("a song file that does not read: reported, the book as it was", !strcmp(last_message, "BOOK FILE ERROR") && cs1[W(6) + 100] == b7); + { int sw = stock_writes; cs1[CHG] = 1; job(); + check("and no setlist: the next save writes the book again", stock_writes == sw + 1); } + fail_read_path = 0; + /* starting from the last song: nothing chained */ + as_setlists_open(); tap(DOWN); tap(DOWN); tap(YES); job(); as_tick(0); + check("from the last song: it alone, nothing chained", chosen == 6 && cs1[W(6) + 100] == s2 && chain() == 0xffffffffu); + { int sw = stock_writes; job(); + check("while it plays, the next save leaves the book's files alone", stock_writes == sw); } + /* CUE + YES on the main screen: the setlist playing; UP/DOWN the cursor, a further YES the '>' to it, CUE released applies it */ + { uint32_t y = yes_handler; yes_handler = 0; change_window = 0x46c7d384u; as_tick(0); job(); change_window = 0; yes_handler = y; as_tick(0); } /* ARR > BOOKS opened and closed */ /* the last run ended */ + as_setlists_open(); tap(UP); tap(UP); tap(YES); job(); as_tick(0); /* again from the first song */ + check("a setlist from the first song: song 2 next", chosen == 6 && chain() == 7 && cs1[W(7) + 100] == s1); + check("the Arranger menu's title in a setlist: its name kept to 7 characters, the song's 16-letter name cut to 12 instead (26 in all)", !strcmp(as_title_fmt, "STL:SETLIST:%d:%.12s") && as_title_index == 0); + yes_handler = 0x40058f34u; /* the editor's: not the main screen */ + as_key(CUE, 1); + check("CUE + YES in the editor is not the setlist's", tap(YES) == 0); + as_key(CUE, 0); + yes_handler = 0x4005e4c8u; /* the main screen's */ + as_key(CUE, 1); + check("CUE + YES on the main screen opens the playing setlist", tap(YES) == 1); + page_draw(); + check("its title; the cursor on the song playing; the next marked >", !strcmp(text_at(4), "1:SETLIST 1") && !strcmp(texts[1].t, "1/3") && lit(100, 11) && text_at(19)[0] == '>'); + check("the opening YES moved nothing", text_at(19)[0] == '>'); + tap(DOWN); tap(DOWN); page_draw(); + check("UP/DOWN move the cursor only: the third row inverted, the > still on the second, * on the first", lit(100, 25) && !lit(100, 11) && text_at(19)[0] == '>' && text_at(12)[0] == ' ' && lit(25, 14) && lit(27, 14) && !lit(28, 14) && text_at(26)[0] == ' '); + check("YES is the window's", tap(YES) == 1); + page_draw(); + check("and moves the > to the cursor", text_at(26)[0] == '>' && text_at(19)[0] == ' '); + check("the third song is next at once, chained, before CUE is released", cs1[W(7) + 100] == s2 && chain() == 7); + as_key(CUE, 0); page_draw(); + check("releasing CUE only closes it", text_at(4)[0] == 0 && cs1[W(7) + 100] == s2 && chain() == 7); + stock_chain(); as_tick(0); + check("past the first song the third plays, and it is the last: nothing chained", chosen == 7 && chain() == 0xffffffffu); + /* the developer's MKI, 23 November 2026: stock put other (empty) arrangements into slots 7 and 8 under a setlist; the + * arranger then ran through the chain. Nothing of that may be taken back as an edit or written to a song's file. */ + { uint32_t y = yes_handler; yes_handler = 0; change_window = 0x46c7d384u; as_tick(0); job(); change_window = 0; yes_handler = y; as_tick(0); } /* ARR > BOOKS opened and closed */ + as_setlists_open(); tap(UP); tap(UP); tap(YES); job(); as_tick(0); /* from the first song */ + { uint8_t f0 = find("/SET/PROJ/arr11.work")->work[100], f1 = find("/SET/PROJ/arr02.work")->work[100], f2 = find("/SET/PROJ/arr05.work")->work[100]; + memset(&cs1[W(6)], 0, BLOCK); memset(&cs1[W(7)], 0, BLOCK); /* stock reloads the slots: empty arrangements */ + stock_chain(); as_tick(0); stock_chain(); as_tick(0); /* and runs through the chain */ + int w = writes; + { uint32_t y = yes_handler; yes_handler = 0; change_window = 0x46c7d384u; as_tick(0); job(); change_window = 0; yes_handler = y; as_tick(0); } /* ARR > BOOKS opened and closed */ /* the setlist ends */ + check("slots emptied under a setlist: no song's file written when it ends", find("/SET/PROJ/arr11.work")->work[100] == f0 && find("/SET/PROJ/arr02.work")->work[100] == f1 && find("/SET/PROJ/arr05.work")->work[100] == f2); + check("only the book read back, nothing written", writes == w); } + + /* RELOAD while a setlist plays (ot_emu, 23 November 2026): stock reloads the slots ~10 s later and the arranger runs + * on; the module must have let go of the setlist, take nothing back and write nothing, then come back into it */ + { uint32_t y = yes_handler; yes_handler = 0; change_window = 0x46c7d384u; as_tick(0); job(); change_window = 0; yes_handler = y; as_tick(0); } /* ARR > BOOKS opened and closed */ + as_setlists_open(); tap(UP); tap(UP); tap(DOWN); tap(YES); job(); as_tick(0); /* from song 2 */ + job(); /* SAVE's sync: arrbook.work says setlist 1, song 2 */ + as_project_stored(); + { uint8_t f0 = find("/SET/PROJ/arr11.work")->work[100], f1 = find("/SET/PROJ/arr02.work")->work[100], f2 = find("/SET/PROJ/arr05.work")->work[100]; + int w = writes; + as_project_reloaded(); as_project_new(); + memset(&cs1[W(6)], 0, BLOCK); memset(&cs1[W(7)], 0, BLOCK); /* stock's reload puts arr07/arr08 (empty) in */ + stock_chain(); as_tick(0); + check("RELOAD in a setlist: it is let go at once, nothing taken back or written", writes == w && find("/SET/PROJ/arr11.work")->work[100] == f0 && find("/SET/PROJ/arr02.work")->work[100] == f1 && find("/SET/PROJ/arr05.work")->work[100] == f2); + mark(0x10); as_project_loaded(); + int pp = posted; for (int i = 0; i < 400; ++i) as_tick(0); + check("then, the load over, the setlist starts again on song 2", posted == pp + 1); + job(); as_tick(0); + check("song 2 in slot 7 from its file, song 3 chained", chosen == 6 && cs1[W(6) + 100] == s1 && chain() == 7); } + + /* a power cycle in a setlist, no sync since it started: it comes back on the song it was on (the record's) */ + { uint32_t y = yes_handler; yes_handler = 0; change_window = 0x46c7d384u; as_tick(0); job(); change_window = 0; yes_handler = y; as_tick(0); } /* ARR > BOOKS opened and closed */ + as_setlists_open(); tap(UP); tap(UP); tap(YES); job(); as_tick(0); /* from the first song */ + check("starting a setlist writes it into arrbook.work at once", find("/SET/PROJ/arrbook.work")->work[22] == 0x80); + stock_chain(); as_tick(0); /* song 2 plays; no sync */ + check("the record knows song 2", rec[7] == 0x81); + as_host_reinstall(); mark(0x10); as_modules_ready(); /* a power cycle: fresh memory, stock's book 1 in the slots */ + as_project_load(); as_project_new(); mark(0x10); as_project_loaded(); chosen = 0; + { int pp = posted; for (int i = 0; i < 400; ++i) as_tick(0); + check("after the power cycle's load the setlist starts again", posted == pp + 1); } + job(); as_tick(0); + check("on song 2, the song it was on", chosen == 6 && cs1[W(6) + 100] == s1 && chain() == 7); + + /* the developer's MKI, 23 November 2026: a power cycle in a setlist keeps the setlist's copies in slots 7 and 8 + * (battery RAM) while the fingerprint is stale; the resume's card job must not write them into book 1's arr07/08 */ + { uint32_t y = yes_handler; yes_handler = 0; change_window = 0x46c7d384u; as_tick(0); job(); change_window = 0; yes_handler = y; as_tick(0); } /* ARR > BOOKS opened and closed */ + { uint8_t a7 = find("/SET/PROJ/arr07.work")->work[100], a8 = find("/SET/PROJ/arr08.work")->work[100]; + as_setlists_open(); tap(UP); tap(UP); tap(YES); job(); as_tick(0); /* from the first song */ + stock_chain(); as_tick(0); /* song 2: slot 7 now holds song 3 */ + cs1[W(3) + 5] ^= 1; /* the fingerprint stale */ + as_host_reinstall(); as_modules_ready(); /* the power cycle: the slots kept as they were */ + as_project_load(); as_project_new(); as_project_loaded(); chosen = 0; + for (int i = 0; i < 400; ++i) as_tick(0); + job(); as_tick(0); + check("a power cycle in a setlist: book 1's arr07/arr08 never get the setlist's copies", find("/SET/PROJ/arr07.work")->work[100] == a7 && find("/SET/PROJ/arr08.work")->work[100] == a8); + check("and it comes back into the setlist on song 2", chosen == 6 && cs1[W(6) + 100] == s1); + cs1[W(3) + 5] ^= 1; } + + /* a power cycle in a setlist where no load hook reaches the module (it comes up after stock's load, as on the + * developer's MKI): arrbook.work read in the first card job, the setlist back on the song it was on */ + { uint32_t y = yes_handler; yes_handler = 0; change_window = 0x46c7d384u; as_tick(0); job(); change_window = 0; yes_handler = y; as_tick(0); } /* ARR > BOOKS opened and closed */ + { uint8_t a7 = find("/SET/PROJ/arr07.work")->work[100], a8 = find("/SET/PROJ/arr08.work")->work[100]; + as_setlists_open(); tap(UP); tap(UP); tap(YES); job(); as_tick(0); /* from the first song */ + stock_chain(); as_tick(0); /* song 2 */ + cs1[W(3) + 5] ^= 1; /* the fingerprint stale */ + as_host_reinstall(); as_modules_ready(); chosen = 1; /* the power cycle, no load hook */ + int pp = posted; + for (int i = 0; i < 10; ++i) as_tick(0); + check("after a power cycle in a setlist, a card job is posted at once", posted == pp + 1); + job(); + check("it reads the book back and writes none of it", find("/SET/PROJ/arr07.work")->work[100] == a7 && find("/SET/PROJ/arr08.work")->work[100] == a8); + for (int i = 0; i < 400; ++i) as_tick(0); + check("then the setlist is started again", posted == pp + 2); + job(); as_tick(0); + check("on song 2, the song it was on", chosen == 6 && cs1[W(6) + 100] == s1 && chain() == 7); + { uint8_t am = arr_mode, mu = msg_up; arr_mode = 1; msg_up = 0; page_draw(); int shown = ntexts; + msg_up = 1; page_draw(); int over_msg = ntexts; msg_up = 0; arr_mode = 0; page_draw(); int in_pattern = ntexts; + arr_mode = am; msg_up = mu; + check("the setlist box is drawn in arranger mode, not over a message or in pattern mode", shown && !over_msg && !in_pattern); } + cs1[W(3) + 5] ^= 1; } + /* the same on base 0.8.1, where the module comes up before stock touches the slots: they still match the record + * (the developer's MKI, 24 November 2026: it came back in BOOKS) */ + { as_setlists_open(); tap(YES); job(); as_tick(0); /* the same setlist again, from the first song */ + stock_chain(); as_tick(0); /* song 2 */ + as_host_reinstall(); as_modules_ready(); chosen = 1; /* the power cycle, slots as the record has them */ + int pp = posted; + for (int i = 0; i < 10; ++i) as_tick(0); + check("base 0.8.1 power cycle in a setlist: a card job is posted at once", posted == pp + 1); + job(); + for (int i = 0; i < 400; ++i) as_tick(0); + check("base 0.8.1: then the setlist is started again", posted == pp + 2); + job(); as_tick(0); + check("base 0.8.1: back in the setlist on the song it was on", chosen == 6); } + + uint32_t yes_was = yes_handler; yes_handler = 0; /* the Arranger menu in front */ + /* the YES that opened the page (stock's menu took its press): its release is stock's, or stock keeps YES routed to + * the Arranger menu and the next YES anywhere opens SETLSTS (the developer's MKI, PROJECT > CHANGE) */ + as_setlists_open(); + check("the release of the YES that opened the page goes to stock", as_key(YES, 0) == 0); + check("NO's press and release are the page's, and close it", as_key(NO, 1) == 1 && (page_draw(), ntexts == 0) && as_key(NO, 0) == 1); + check("a YES after that is stock's", as_key(YES, 1) == 0 && as_key(YES, 0) == 0); + /* Stock re-routes YES while FUNC or CUE is held: the page stays open (the developer's MKI, 24 November 2026: FUNC + * closed the page with a check on YES's route) */ + as_setlists_open(); as_tick(0); + as_key(FUNC, 1); yes_handler = 0x400402ecu; as_tick(0); + check("FUNC held, YES re-routed: the page stays open", (page_draw(), ntexts > 0)); + yes_handler = 0; as_key(FUNC, 0); tap(NO); as_tick(0); + /* FUNC + YES's name editor takes every key: a CUE released in it is not left held */ + as_setlists_open(); as_key(CUE, 1); as_key(FUNC, 1); tap(YES); + memcpy(named, "LIST 1 ", 16); named[15] = 0; as_list_named(1); job(); + as_setlists_open(); { unsigned char e0[64]; memcpy(e0, entry(0, 0), 32); memcpy(e0 + 32, entry(0, 1), 32); + page_draw(); char t0[24]; strcpy(t0, text_at(4)); + tap(RIGHT); page_draw(); + check("after the editor, RIGHT switches setlists", strcmp(text_at(4), t0) != 0); + tap(LEFT); page_draw(); + check("LEFT back, nothing moved", !strcmp(text_at(4), t0) && !memcmp(e0, entry(0, 0), 32) && !memcmp(e0 + 32, entry(0, 1), 32)); } + tap(NO); as_tick(0); + yes_handler = yes_was; + + /* LOAD of another project while in a setlist (the developer's MKI, 24 November 2026): stock's project directory + * names the last project at ev_banks_load and at ev_banks_loaded, and the new one only after the whole load */ + { uint32_t y = yes_handler; yes_handler = 0; change_window = 0x46c7d384u; as_tick(0); job(); change_window = 0; yes_handler = y; as_tick(0); } /* ARR > BOOKS opened and closed */ + as_setlists_open(); tap(UP); tap(UP); tap(YES); job(); as_tick(0); /* project A, from the first song */ + stock_chain(); as_tick(0); /* song 2 */ + job(); /* LOAD's save of project A first */ strcpy(job_name, "PROJB"); /* LOAD of project B: its job names B */ as_project_load(); as_project_loaded(); as_project_new(); mark(0x30); chosen = 0; /* B, never used */ - host_dir = "/SET/PROJB"; strcpy(cur_name, "PROJB"); /* the directory names B only once the load is over */ - settle(); job(); for (int i = 0; i < 300; ++i) as_tick(0); - check("project B comes up on book 1, not on project A's book 3", book() == 0 && marked(0x30)); - job(); - check("and B's arrbook.work says book 1, nothing of A's", find("/SET/PROJB/arrbook.work") && find("/SET/PROJB/arrbook.work")->work[4] == 0); - strcpy(job_name, "PROJ"); - as_project_load(); as_project_loaded(); as_project_new(); mark(0x10); chosen = 0; /* back to A */ - host_dir = "/SET/PROJ"; strcpy(cur_name, "PROJ"); - settle(); /* stock's jobs are over: the module posts its own */ - { int pp = posted, c0 = closes; - job(); msg_up = 1; for (int i = 0; i < 300; ++i) as_tick(0); /* A's arrbook.work, and the switch, in that job */ - check("back in project A: book 3, arrangement 5", book() == 2 && chosen == 4); - check("in one card job of the module's, its NOW SAFE TO EJECT! closed", posted == pp && closes == c0 + 1); msg_up = 0; } - check("with no arranger reset", resets == 0); - /* LOAD of another project with the arranger's run state left set: every choice refused until it is reset */ - strcpy(job_name, "PROJB"); - as_project_load(); as_project_loaded(); as_project_new(); mark(0x30); chosen = 0; - host_dir = "/SET/PROJB"; strcpy(cur_name, "PROJB"); - settle(); job(); for (int i = 0; i < 300; ++i) as_tick(0); - strcpy(job_name, "PROJ"); + host_dir = "/SET/PROJB"; strcpy(cur_name, "PROJB"); /* the directory names B once the load is over */ + for (int i = 0; i < 400; ++i) as_tick(0); + job(); for (int i = 0; i < 400; ++i) as_tick(0); /* the job reading B's book back into slots 7 and 8 */ + check("project B: no setlist started (B has none), nothing chained", chosen == 0 && chain() == 0xffffffffu); + as_setlists_open(); page_draw(); + check("and B's setlists are its own: empty, not A's", !strcmp(text_at(12), "EMPTY")); tap(NO); + job(); /* a sync in B */ + check("no file of B gets A's setlists or place", !find("/SET/PROJB/arrlists.work") && !(find("/SET/PROJB/arrbook.work") && find("/SET/PROJB/arrbook.work")->work[22])); + job(); /* LOAD's save of project B */ + { uint32_t y = yes_handler; yes_handler = 0x4005e4c8u; page_draw(); + check("in B: no setlist shown in the Part box", text_at(34)[0] == 0); + yes_handler = y; } + strcpy(job_name, "PROJ"); /* back to A */ as_project_load(); as_project_loaded(); as_project_new(); mark(0x10); chosen = 0; host_dir = "/SET/PROJ"; strcpy(cur_name, "PROJ"); - arr_state = 2; - settle(); job(); for (int i = 0; i < 300; ++i) as_tick(0); - job(); for (int i = 0; i < 300; ++i) as_tick(0); - check("a run state left set after the load: reset once, and back on book 3, arrangement 5", book() == 2 && chosen == 4 && resets == 1 && arr_state == 0); - check("and the closed list's cursor on arrangement 5, and the arrangement YES takes too", list[7] == 4 && list[3] == 0 && list[11] == 4); - arr_state = 2; select_busy = 0; - tap(LEFT); job(); for (int i = 0; i < 200; ++i) as_tick(0); - check("a LEFT/RIGHT switch never resets the arranger", resets == 1); - arr_state = 0; for (int i = 0; i < 200; ++i) as_tick(0); + arr_state = 2; /* the arranger's run state left set after the load */ + { int pp = posted; for (int i = 0; i < 400; ++i) as_tick(0); /* the module's job reads A's files */ + job(); as_tick(0); + { uint32_t y = yes_handler; yes_handler = 0x4005e4c8u; page_draw(); + check("back in A, before its setlist starts: the setlist already in the Part box, not the book", text_at(34)[0] != 0 && !strcmp(text_at(50), "2/3")); + yes_handler = y; } + for (int i = 0; i < 400; ++i) as_tick(0); + check("back in project A: its setlist started again, in the job that read its files", posted == pp + 1); } + job(); for (int i = 0; i < 60; ++i) as_tick(0); + check("on song 2, A's own, the run state reset (a stopped start begins at the first row)", chosen == 6 && cs1[W(6) + 100] == s1 && resets >= 1 && arr_state == 0); + check("and song 3 chained after the reset", chain() == 7); + + /* a project left in a setlist comes back into it after a load, on the song it was on */ + { uint32_t y = yes_handler; yes_handler = 0; change_window = 0x46c7d384u; as_tick(0); job(); change_window = 0; yes_handler = y; as_tick(0); } /* ARR > BOOKS opened and closed */ + as_setlists_open(); tap(UP); tap(UP); tap(YES); job(); as_tick(0); /* from the first song */ + stock_chain(); as_tick(0); job(); /* song 2 plays; a sync writes where the project is */ + check("arrbook.work says: setlist 1, song 2", find("/SET/PROJ/arrbook.work")->work[22] == 0x80 && find("/SET/PROJ/arrbook.work")->work[23] == 1); + as_project_load(); as_project_new(); mark(0x10); as_project_loaded(); chosen = 0; + { int pp = posted; for (int i = 0; i < 400; ++i) as_tick(0); + check("after the load, once it is over, the setlist is started again", posted == pp + 1); } + job(); as_tick(0); + check("on song 2: it in slot 7, chosen, song 3 chained", chosen == 6 && cs1[W(6) + 100] == s1 && chain() == 7 && cs1[W(7) + 100] == s2); + { uint32_t y = yes_handler; yes_handler = 0; change_window = 0x46c7d384u; as_tick(0); job(); change_window = 0; yes_handler = y; as_tick(0); } /* ARR > BOOKS opened and closed */ + check("ended, arrbook.work says no setlist", find("/SET/PROJ/arrbook.work")->work[22] == 0); + { int pp = posted; as_project_load(); as_project_new(); mark(0x10); as_project_loaded(); + for (int i = 0; i < 400; ++i) as_tick(0); + check("a load of a project left outside a setlist starts none", posted == pp); } + /* the window open across a song change: the * and the > follow, unless a song was chosen with YES */ + { uint32_t y = yes_handler; yes_handler = 0; change_window = 0x46c7d384u; as_tick(0); job(); change_window = 0; yes_handler = y; as_tick(0); } /* ARR > BOOKS opened and closed */ + as_setlists_open(); tap(UP); tap(UP); tap(YES); job(); as_tick(0); /* from the first song */ + as_key(CUE, 1); tap(YES); /* open, nothing chosen */ + stock_chain(); as_tick(0); page_draw(); /* song 2 starts while it is open */ + check("open across a song change: the playing mark on song 2, > on song 3", text_at(19)[0] == ' ' && lit(27, 21) && text_at(26)[0] == '>' && text_at(12)[0] == ' ' && !strcmp(texts[1].t, "2/3")); + as_key(CUE, 0); + check("released with nothing chosen: song 3 stays next", chain() == 6 && cs1[W(6) + 100] == s2); + { uint32_t y = yes_handler; yes_handler = 0; change_window = 0x46c7d384u; as_tick(0); job(); change_window = 0; yes_handler = y; as_tick(0); } /* ARR > BOOKS opened and closed */ + as_setlists_open(); tap(UP); tap(UP); tap(YES); job(); as_tick(0); /* from the first song again */ + as_key(CUE, 1); tap(YES); tap(DOWN); tap(DOWN); tap(YES); /* song 3 chosen to follow song 1 */ + stock_chain(); as_tick(0); page_draw(); /* but song 2 starts before CUE is released */ + check("song 3 was chosen at once, so song 3 starts: the mark on it (white on the cursor's row), nothing after it", lit(100, 28) && !lit(27, 28) && chain() == 0xffffffffu); + as_key(CUE, 0); + page_draw(); + check("while a setlist plays: its name in the Part box", !strcmp(text_at(34), "LIST 1") && lit(40, 33) && lit(15, 42)); + check("and the sign and the song's place on the pattern line", !strcmp(text_at(50), "3/3") && lit(12, 50) && lit(12, 54) && lit(15, 52) && !lit(13, 52)); + as_setlists_open(); as_key(FUNC, 1); tap(YES); as_key(FUNC, 0); /* a name for the playing setlist */ + memcpy(named, "GIG IN KYIV ", 16); named[15] = 0; as_list_named(1); + page_draw(); + check("a long name over the Part box's two lines, broken at a space", !strcmp(text_at(34), "GIG IN") && !strcmp(text_at(41), "KYIV")); + yes_handler = 0; + page_draw(); + check("no mark off the main screen", text_at(34)[0] == 0 && text_at(50)[0] == 0); + + as_project_load(); as_project_new(); mark(0x10); as_tick(0); + { int sw = stock_writes; cs1[CHG] = 1; job(); + check("a project load ends it: the next save writes the book again", stock_writes == sw + 1); } + check("and the title is a single arrangement's: ARR, the book, stock's index", !strcmp(as_title_fmt, "ARR B1:%d:%s") && as_title_index == chosen); + /* the first file format (no names, "ASSL") is still read */ + { struct file *f = find("/SET/PROJ/arrlists.work"); + memcpy(f->work, "ASSL", 4); memset(f->work + 24 + 16 * 16 * 18, 'X', 256); + as_project_load(); as_project_new(); job(); + as_setlists_open(); page_draw(); + check("a setlists file of the first format keeps its songs, the names empty", text_at(12)[0] != 0 && !strncmp(text_at(4), "1:SETLIST", 9)); + tap(NO); } + + check("stock's CHAIN ARR. %d text (and its shared %d) was never written", shared_writes == 0); + /* A setlist restarted from another song while one plays: that job's NOW SAFE TO EJECT! is closed too (the + * developer's MKI, 24 November 2026) */ + { uint32_t y = yes_handler; yes_handler = 0; change_window = 0x46c7d384u; as_tick(0); job(); change_window = 0; yes_handler = y; as_tick(0); } + as_setlists_open(); tap(UP); tap(UP); tap(YES); job(); for (int i = 0; i < 300; ++i) as_tick(0); /* from song 1 */ + as_setlists_open(); tap(DOWN); tap(YES); /* again, from song 2 */ + { int c0 = closes; job(); msg_up = 1; for (int i = 0; i < 5; ++i) as_tick(0); + check("restarting a playing setlist from another song: its NOW SAFE TO EJECT! closed", closes == c0 + 1); msg_up = 0; } + + /* A project left in a setlist on a book other than 1: the load's return switches the book and starts the setlist + * in one card job (the developer's MKI, 24 November 2026: a second job after the book was back) */ + { uint32_t y = yes_handler; yes_handler = 0; change_window = 0x46c7d384u; as_tick(0); job(); /* the setlist ended */ + tap(RIGHT); job(); for (int i = 0; i < 200; ++i) as_tick(0); /* book 2 */ + change_window = 0; yes_handler = y; as_tick(0); } + as_setlists_open(); tap(UP); tap(UP); tap(YES); job(); for (int i = 0; i < 300; ++i) as_tick(0); /* from song 1 */ + stock_chain(); as_tick(0); job(); /* song 2; a sync writes where the project is */ + { unsigned bk = book(); + as_project_load(); as_project_loaded(); as_project_new(); mark(0x10); chosen = 0; + int pp = posted; for (int i = 0; i < 700; ++i) as_tick(0); + check("left on book 2 in a setlist: one card job brings both back", posted == pp + 1); + job(); for (int i = 0; i < 60; ++i) as_tick(0); + check("after it: the book back and the setlist on song 2", book() == bk && bk != 0 && chosen == 6 && chain() == 7); + for (int i = 0; i < 700; ++i) as_tick(0); + check("and no second job", posted == pp + 1); } + /* the same after a LOAD of another project and back: the job that reads the files also switches and starts */ + { unsigned bk = book(); + job(); /* LOAD's save of A */ + strcpy(job_name, "PROJB"); + as_project_load(); as_project_loaded(); as_project_new(); mark(0x30); chosen = 0; + host_dir = "/SET/PROJB"; strcpy(cur_name, "PROJB"); + for (int i = 0; i < 700; ++i) as_tick(0); job(); for (int i = 0; i < 700; ++i) as_tick(0); + job(); /* LOAD's save of B */ + strcpy(job_name, "PROJ"); + as_project_load(); as_project_loaded(); as_project_new(); mark(0x10); chosen = 0; + host_dir = "/SET/PROJ"; strcpy(cur_name, "PROJ"); + int pp = posted; for (int i = 0; i < 700; ++i) as_tick(0); + check("back in A from B: one card job of the module's", posted == pp + 1); + job(); for (int i = 0; i < 700; ++i) as_tick(0); + check("which brings back A's book 2 and its setlist on song 2, and no second job", book() == bk && chosen == 6 && chain() == 7 && posted == pp + 1); } + + /* An unnamed setlist's name is SETLIST n: stock's editor opens on it, to be deleted for another (the developer's MKI, + * 24 November 2026); the title row shows the setlist's number before its name, cut to fit */ + { uint32_t y = yes_handler; yes_handler = 0; + as_setlists_open(); for (int i = 0; i < 4; ++i) tap(RIGHT); /* setlist 5, never named */ + page_draw(); + check("an unnamed setlist's title row: 5:SETLIST 5", !strcmp(text_at(4), "5:SETLIST 5")); + named = 0; as_key(FUNC, 1); tap(YES); as_key(FUNC, 0); + check("FUNC + YES opens stock's editor on SETLIST 5", named && !strcmp(named, "SETLIST 5")); + memcpy(named, "GIG IN KYIV 2026", 15); named[15] = 0; as_list_named(1); job(); + as_setlists_open(); page_draw(); + check("a 15-letter name cut where the count needs the room", !strncmp(text_at(4), "5:GIG IN KYIV", 13) && strlen(text_at(4)) <= 14u); + tap(NO); yes_handler = y; as_tick(0); } + + /* A switch with ARR > BOOKS closed: the list's cursor and the arrangement YES and CUE + YES take are both on the + * book's choice (the developer's MKI, 24 November 2026: the cursor alone was moved, CUE + YES added arrangement 1) */ + { uint32_t y = yes_handler; yes_handler = 0; + change_window = 0x46c7d384u; as_tick(0); job(); for (int i = 0; i < 60; ++i) as_tick(0); /* any setlist ended */ + chosen = 5; tap(RIGHT); job(); for (int i = 0; i < 60; ++i) as_tick(0); /* the next book */ + list[11] = 0; list[7] = 0; change_window = 0; + tap(LEFT); /* nothing: the list is closed */ + change_window = 0x46c7d384u; tap(LEFT); change_window = 0; /* back, and the list closes before the redraw */ + job(); for (int i = 0; i < 200; ++i) as_tick(0); + check("after a switch, the closed list's cursor and choice both on the book's arrangement 6", list[7] == 5 && list[11] == 5 && list[3] == 0); + yes_handler = y; as_tick(0); } printf("%d checks, %d failed\n", checks, failures); return failures != 0; diff --git a/src/catalog/module-documents.json b/src/catalog/module-documents.json index 1162ac56dc..43f2c70841 100644 --- a/src/catalog/module-documents.json +++ b/src/catalog/module-documents.json @@ -16603,7 +16603,7 @@ "id": "songbook", "key": "SONGBOOK", "name": "Songbook", - "version": "0.1.0-experimental", + "version": "0.2.0-experimental", "category": "system", "access": { "location": "ARR > CHANGE", @@ -16615,7 +16615,11 @@ "Before removing the module, step back to book 1." ], "screenshots": [ - "media/ot-change-book.png" + "media/ot-books-list.png", + "media/ot-books-added.png", + "media/ot-setlists-page.png", + "media/ot-setlist-main.png", + "media/ot-setlist-window.png" ] }, "author": { @@ -16653,42 +16657,58 @@ "uiClaims": [ "key:LEFT@ARR CHANGE", "key:RIGHT@ARR CHANGE", - "screen:ARR CHANGE" + "screen:ARR CHANGE", + "key:CUE+YES@ARR CHANGE", + "key:CUE+LEFT@ARR CHANGE", + "key:CUE+RIGHT@ARR CHANGE", + "screen:ARR MENU CHAIN", + "screen:SETLSTS", + "screen:ARR MENU CHANGE", + "key:CUE+YES@MAIN", + "screen:MAIN PART BOX", + "screen:ARR MENU TITLE", + "screen:ARR ROWS CHAIN LINE", + "key:TRIG@ARR CHANGE", + "key:TRIG@SETLSTS", + "screen:MAIN ARR NAME BAR", + "screen:MAIN ARR POSITION" ], "limitations": [ - "OS 1.40C, tested on an MKI (the developer's own checks, build f068cd608, base 0.7.13); not tested on an MKII.", + "OS 1.40C, tested on an MKI (the package tests.qualification names: the test procedure on the base 0.8.2 twin and the developer's own checks on the flashed base 0.8.2); not tested on an MKII.", "Books change only while the transport is stopped: the switch writes and reads the card, which stock itself does only stopped.", "Switch back to book 1 before removing the module: without it, stock's next save writes the book in use into arr01 to arr08. Book 1 is kept in a backup (arr01.bak to arr08.bak) and comes back the next time the module is installed and book 1 is chosen.", "A project comes back to the book and arrangement it was saved or left on; a power cycle keeps the book in use. Without the module a project opens on book 1.", - "Stock's project copy functions copy book 1 only; copying the project folder copies every book." + "Stock's project copy functions copy book 1 only; copying the project folder copies every book.", + "Setlists borrow the open book's arrangements 7 and 8 while they play; end a setlist (open ARR > BOOKS) before removing the module, or stock's next save writes the setlist's copies into those two arrangements.", + "Edits made while a setlist plays are written when it ends; a RELOAD or power cycle before that drops them, as stock drops unsaved changes." ] }, "resources": { - "recorded": "Not measured", + "recorded": "2026-12-01", "storage": { - "label": "Storage", - "display": "Not measured", + "label": "ColdFire code", + "display": "129408 bytes", "value": null, - "unit": "unknown", - "method": "unmeasured", - "conditions": "No measurements exist yet. Add exact conditions and source evidence when available.", + "unit": "see display", + "method": "static", + "conditions": "The USB package e06c9f98 (builder's report): 28,252 bytes of ColdFire code and data and 101,156 of bss, 90,432 of it the setlist's 16 song blocks (5,652 bytes each) held ready so the next song starts without a gap; plus the 20-byte battery RAM record. No DSP memory.", "source": "TESTING.md" }, "processing": { - "label": "CPU / DSP load", - "display": "Not measured", + "label": "ColdFire worst event", + "display": "13950460 cycles/event", "value": null, - "unit": "unknown", - "method": "unmeasured", - "conditions": "No measurements exist yet. Add exact conditions and source evidence when available.", - "source": "TESTING.md" + "unit": "see display", + "method": "emulator", + "conditions": "perf:audit record (evidence/performance.json): the dearest event, a book switch from book 1 to 2 while stopped, 13,950,460 executed ColdFire instructions under ot_emu on the 0.8.2 twin, of a 26,600,000 budget (100 ms at 266 MHz); back to book 1, 7,817,335. It runs in stock's SYNC TO CARD job on the card task, never in the audio frame; at rest the unit's frame interrupt did not rise (evidence/cpu-price.json).", + "source": "evidence/performance.json" }, "impact": { "conditions": "A book switch at its dearest (book 1 to another, stopped): stock's save of arr01-08, book 1's backup, the next book read and the slots fingerprinted. Between switches the UI tick re-fingerprints the slots every 2 s off book 1.", "cpu": { "level": "low", "basis": "measured-comparison", - "rationale": "A switch runs inside stock's SYNC TO CARD job, stopped: 13.8 million executed ColdFire instructions under ot_emu from book 1 to 2, 7.8 million back, most of it stock's own file writes and reads. Off book 1 the UI tick fingerprints the 8 slots every 2 s (about 543,000 instructions, counted from the unit). Time on the unit is not measured.", + "rationale": "A switch runs inside stock's SYNC TO CARD job, stopped: 14.0 million executed ColdFire instructions under ot_emu from book 1 to 2, 7.8 million back, most of it stock's own file writes and reads. Off book 1 the UI tick fingerprints the 8 slots every 2 s (about 543,000 instructions, counted from the unit). Time on the unit is not measured.", "source": "TESTING.md" }, "dsp": { @@ -16698,9 +16718,9 @@ "source": "TESTING.md" }, "memory": { - "level": "minimal", + "level": "low", "basis": "measured-comparison", - "rationale": "7,292 bytes of ColdFire code and data and 4,728 of state, plus a 20-byte battery RAM record; on the card, stock arrangement files for books 2-16, book 1's backup and a 24-byte place file per project.", + "rationale": "28,252 bytes of ColdFire code and data and 101,156 of state (90,432 of it the setlist's 16 songs held ready), plus a 20-byte battery RAM record; on the card, stock arrangement files for books 2-16, book 1's backup, a place file and the setlists per project.", "source": "TESTING.md" } }, @@ -16708,9 +16728,9 @@ "value": 0, "unit": "percent-of-frame", "measure": "frame-interrupt", - "tool": "npm run device:price", - "date": "2026-11-24", - "conditions": "MKI (OS 1.40C), the developer's test project in pattern mode, transport stopped, T1 selected; installed as a trial and used by no key press; development twin 4c7eb79b of the beta base (main 3043f8339); 8 s per reading. Frame interrupt 58.1 % before, 57.7 % installed; CPU meter 68.3 % before, 66.9 % at rest: within the reading's noise. On that twin the module's UI hooks were not seen to run (no BOOK label in ARR > CHANGE, RIGHT switched nothing): re-measure on a twin where they do.", + "tool": "npm run device:price -- --write", + "date": "2026-12-01", + "conditions": "the bank, pattern and Part the unit was on, transport stopped, arranger mode off (test:procedure); base development twin 46c30886 of base 0.8.2 (release 24e480c4 flashed), MKI, OS 1.40C; 3 readings of 8 s a state. Frame interrupt 57 % before, 56.6 % installed and used nowhere; CPU meter 65.5 % before, 65.5 % at rest.", "source": "evidence/cpu-price.json" } }, @@ -16718,7 +16738,7 @@ "report": "TESTING.md", "summary": "Host gate (verify.py, 97 checks, a missing, unreadable or partly written book 1 backup, a file that fails to open once and a reload after it among them; several replaying the unit's event orders and stock's two load jobs); stock's file format for arr09 and up, the list redraw and per-book choice under ot_emu. On the developer's MKI (OS 1.40C): switching books 1-16, per-book choice, the playing refusal, ARR SAVE/RELOAD, FUNC + PLAY clears and their undo, a power cycle and arranger mode after LOAD (build c5027552c, base 0.7.5); LOAD and RELOAD returning to book 2 in arranger mode with book 1 intact, the main screen and PLAY on the returned book (build f068cd608, base 0.7.13, beside USB AUDIO), as the developer reported them; distinct books 1 and 2 kept through a power cycle and through a trial of another build with Undo, each followed by SYNC TO CARD (build b976e98ff, package 37f7e94f, base 0.7.13), as the developer reported them; a LOAD of another project and back, each on its own book and arrangement with the list cursor on it, PLAY and LEFT/RIGHT after it (build 85d544a68, package 81eb7172, base 0.7.13), as the developer reported them.", "hardwareStatus": "reported", - "evidenceRevision": "c642ca25548f9248a4059f2c5a2e004484447903", + "evidenceRevision": "3a0b10d2e2465a9887d72bea5c32f34983f04c34", "gates": [ "Worst-case cycles under parameter modulation and maximum load", "Exact memory region and maximum-instance totals", @@ -16729,33 +16749,33 @@ "tutorial": { "title": "Quick tutorial", "steps": [ - "In ARR > CHANGE, press RIGHT: BOOK 2, with 8 empty arrangements.", + "In ARR > BOOKS, press RIGHT: BOOK 2, with 8 empty arrangements.", "Choose arrangement 1, open the editor and add a few rows.", - "Back in ARR > CHANGE, press LEFT: BOOK 1, your original arrangements.", + "Back in ARR > BOOKS, press LEFT: BOOK 1, your original arrangements.", "Press RIGHT again: book 2's rows are back.", "Press LEFT to return to book 1 before you finish." ] }, "screenshots": [ - "media/ot-change-book.png" + "media/ot-books-list.png" ], "screenshotStyle": "black-and-white" }, - "moduleVersion": "0.1.0-experimental", - "sourceSha256": "688b91a1b0fb9361b1adf43b92942dada8c88e56b27ff1c9fe049ff4096fca49", - "imageSha256": "84a8ba8ac39f74aaa8cd842f3179a1f8b0d38a24ffb32b56765daeb417c4ac47", + "moduleVersion": "0.2.0-experimental", + "sourceSha256": "eed30812035a0716fcc9a3e97d07e63ae7ef195a36afa3e701c4f25f4260fd2e", + "imageSha256": "e06c9f98668142f1b1ff79b2501c124ebcb30b0dd8832c79de95ba0dce736bfa", "cycles": [ { "processor": "coldfire", - "worstCase": 13754188, - "maxConfiguration": 13754188, + "worstCase": 13950460, + "maxConfiguration": 13950460, "maxInstances": 1, "budget": 26600000, "unit": "cycles/event", "method": "emulator", "conditions": { - "parameterExtremes": "The dearest event is a book switch away from book 1: stock's writer saves arr01-08, the module writes book 1's backup (arr01.bak-arr08.bak) and reads the next book's 8 files, then fingerprints the 8 slots (90,440 bytes). 13,754,188 instructions from the writer's entry (0x400915ac) to its return (0x40091a76) on book 1 to 2; book 2 to 1 (backup read back) 7,849,450.", - "parameterModulation": "Not applicable: no parameters or audio; one switch per LEFT/RIGHT press in ARR > CHANGE, stopped, or one return after a project load.", + "parameterExtremes": "The dearest event is a book switch away from book 1: stock's writer saves arr01-08, the module writes book 1's backup (arr01.bak-arr08.bak) and reads the next book's 8 files, then fingerprints the 8 slots (90,440 bytes). 13,950,460 instructions from the writer's entry (0x400915ac) to its return (0x40091a76) on book 1 to 2; book 2 to 1 (backup read back) 7,817,335.", + "parameterModulation": "Not applicable: no parameters or audio; one switch per LEFT/RIGHT or trig press in ARR > BOOKS, stopped, or one return after a project load.", "modeSwitching": "Both directions measured; a switch between two other books writes and reads 8 files each and no backup, so it lies between the two.", "maxLoad": "Executed ColdFire instructions under ot_emu, interrupts and every other task in that window included; one instance (the module is project-wide). Budget: 100 ms of ColdFire time at 266 MHz, a responsiveness target for a key press, as Apply Scene's; the switch runs inside stock's SYNC TO CARD job on the card task, refused while playing.", "inputConditions": "Empty arrangements; the arrangement blocks are fixed-size, so their content does not change the writes, reads or the fingerprint. Executed instructions, not cycles: cache and wait states are not modelled, and card time on the unit is not measured." @@ -16768,17 +16788,17 @@ { "name": "ColdFire code and data (one linked unit)", "space": "sdram", - "words": 7292, + "words": 28252, "wordBits": 8, - "bytes": 7292, + "bytes": 28252, "scope": "shared" }, { "name": "ColdFire state (bss)", "space": "sdram", - "words": 4728, + "words": 101156, "wordBits": 8, - "bytes": 4728, + "bytes": 101156, "scope": "shared" }, { @@ -16791,25 +16811,27 @@ } ], "perInstanceBytes": 0, - "sharedBytes": 12040, + "sharedBytes": 129428, "maxInstances": 1, - "totalBytes": 12040, - "conditions": "The unit as the USB package carries it: 7,292 bytes of code and data and 4,728 of bss (the builder's report), plus the 20-byte battery RAM record at 0x100f8f10. On the card: arr09.work-arr128.work and their .strd copies (stock arrangement files), arr01.bak-arr08.bak and arrbook.work/.strd in the project folder. No DSP memory.", + "totalBytes": 129428, + "conditions": "The unit as the USB package e06c9f98 carries it: 28,252 bytes of code and data and 101,156 of bss (the builder's report; 90,432 of it the setlist's 16 song blocks), plus the 20-byte battery RAM record at 0x100f8f10. On the card: arr09.work-arr128.work and their .strd copies (stock arrangement files), arr01.bak-arr08.bak, arrbook.work/.strd, the setlist file, and arrNN.sl with arrlend.work (the book's arrangements 7 and 8 while a setlist borrows them) in the project folder. No DSP memory.", "report": "TESTING.md" }, "hardware": { "kind": "functional", "status": "reported", "model": "MKI", - "testedOn": "2026-11-24", + "testedOn": "2026-12-01", "tester": "Andrey-Sidorkin", - "sourceRevision": "c642ca25548f9248a4059f2c5a2e004484447903", - "imageSha256": "84a8ba8ac39f74aaa8cd842f3179a1f8b0d38a24ffb32b56765daeb417c4ac47", - "summary": "On the developer's Octatrack MKI (OS 1.40C, base 0.7.13 6d23e888), this exact package kept over USB beside USB AUDIO and Arr Rows: switching books, the per-book choice with the CHANGE list's cursor and YES on it after a switch and after closing and reopening the list, a LOAD of another project and back (each on its own book and arrangement, one card job of the module's, no NOW SAFE TO EJECT!), PLAY from the returned arrangement. Earlier builds of the same lineage covered SAVE/RELOAD PROJECT, ARR SAVE/RELOAD, FUNC + PLAY clears and undo, a power cycle and arranger mode (TESTING.md). As the developer reported them.", + "sourceRevision": "3a0b10d2e2465a9887d72bea5c32f34983f04c34", + "imageSha256": "e06c9f98668142f1b1ff79b2501c124ebcb30b0dd8832c79de95ba0dce736bfa", + "summary": "On the developer's Octatrack MKI (OS 1.40C), package e06c9f98 built from 3a0b10d2: npm run test:procedure steps 1-10 passed on the development twin 46c30886 of base 0.8.2 (emulator rehearsal, scripted pass, 90 s soak, cost at rest 0, put back). By hand on the flashed base 0.8.2 (this package in a trial; the setlist features on 8f9c50a6, kept beside Arr Rows and Smart Reload): setlists from several books played without a gap, empty songs passed over; trig keys picking the book and the setlist with the lit trig, two together ignored, stock's lights back after NO; CUE + YES never offering the playing song; the setlist box hidden over messages and in pattern mode; the whole 16-letter name with no counter; after LOAD, RELOAD and a power cycle back in the setlist at its first row. With c8eb7186: while a setlist plays ARR > BOOKS names rows 7 and 8 by the book's own arrangements; a power cycle while a setlist played, then SAVE PROJECT with Songbook 0.1.0 kept, left the book's arrangements 7 and 8 intact (the project load put them back into the slots before the save); and Songbook 0.1.0 kept on book 2, then c8eb7186 kept beside Arr Rows and Smart Reload: book 2 and its arrangements came through, book 2 to 1 to 2 and a power cycle too. e06c9f98 differs from c8eb7186 only in the give-back, which now restores a slot only while arrNN.work holds a setlist's copy (host-tested).", "limitations": [ "No MKII.", - "The test procedure's scripted pass, soak and cost on the unit (steps 7-9) have not run yet (#2099, fixed in #2103); a trial of this package under the scripted pass ran about two minutes twice with no crash, stall, freeze or skipped track.", - "Removing the module on a book other than 1 is a documented limitation, not tested." + "Not recorded over USB for dropouts: the module makes no sound and runs no audio-frame code.", + "Not tested with MIDI program changes landing during the soak (the project's MIDI program change receive was off).", + "The repair of arrangements 7 and 8 from arrNN.sl after stock alone saved the setlist's copies is host-tested only (on the unit the project load restored them first); a power cycle on the stock OS with no Songbook at all was not run.", + "One report not reproduced: copies of setlist songs once seen in book 2's slots 7 and 8; the paths that could write them are closed and backed up (#2431), the cause not found." ], "report": "TESTING.md" } @@ -16822,20 +16844,88 @@ }, "media": [ { - "path": "media/ot-change-book.png", + "path": "media/ot-books-list.png", "captureType": "emulator", - "caption": "ARR > CHANGE after returning to book 1: BOOK 1 at the top right, the list redrawn with book 1's names, arrangement 3 chosen with the cursor on it. LEFT and RIGHT step the book, stopped.", - "alt": "ARR > CHANGE list of book 1 with SONG ALPHA, BRAVO and CHARLIE and BOOK 1 at the top right.", + "caption": "ARR > BOOKS (stock's CHANGE, renamed): BOOK 1 at the top right, the open setlist (LIST 1) at the bottom right. LEFT/RIGHT step the book.", + "alt": "ARR > BOOKS list of book 1 with SONG ALPHA, BRAVO and CHARLIE, BOOK 1 top right and LIST 1 bottom right.", "credit": "Andrey Sidorkin (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "ARR > CHANGE", + "page": "ARR > BOOKS", + "shows": "location", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", + "setup": "Headless ot_emu; MKI panel; stopped transport; Modwerk beta base 0.7.13 with the package over the emulated USB; 128x64 LCD as the panel link carries it, integer scale 6." + } + }, + { + "path": "media/ot-books-added.png", + "captureType": "emulator", + "caption": "CUE + YES on an arrangement adds it to the open setlist.", + "alt": "ARR > BOOKS with the message B1 1 ADDED TO LIST 1.", + "credit": "Andrey Sidorkin (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "ARR > BOOKS", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", + "setup": "Headless ot_emu; MKI panel; stopped transport; Modwerk beta base 0.7.13 with the package over the emulated USB; 128x64 LCD as the panel link carries it, integer scale 6." + } + }, + { + "path": "media/ot-setlists-page.png", + "captureType": "emulator", + "caption": "The SETLSTS page from the Arranger menu: the setlist's songs as book.arrangement and name. YES starts it from the cursor.", + "alt": "SETLIST 1 page with 1.1 SONG ALPHA and 1.2 SONG BRAVO, 2/16.", + "credit": "Andrey Sidorkin (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "SETLSTS", "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "9c861d6f30aa6adeab6d536ae91b2a926405857495e16b422b5e74acd4d3cc24", - "setup": "Headless ot_emu; MKI panel; stopped transport; Modwerk beta base 0.7.5 with the package over the emulated USB; 128x64 LCD as the panel link carries it, integer scale 6." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", + "setup": "Headless ot_emu; MKI panel; stopped transport; Modwerk beta base 0.7.13 with the package over the emulated USB; 128x64 LCD as the panel link carries it, integer scale 6." + } + }, + { + "path": "media/ot-setlist-main.png", + "captureType": "emulator", + "caption": "While a setlist plays: its name in the Part box, its sign and the song's place on the pattern line, the next song on the chain line.", + "alt": "Main screen with LIST 1 in the Part box, 1/2 under it and >SONG BRAVO after the rows.", + "credit": "Andrey Sidorkin (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "MAIN", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", + "setup": "Headless ot_emu; MKI panel; stopped transport; Modwerk beta base 0.7.13 with the package over the emulated USB; 128x64 LCD as the panel link carries it, integer scale 6." + } + }, + { + "path": "media/ot-setlist-window.png", + "captureType": "emulator", + "caption": "Hold CUE and press YES on the main screen: the playing song (filled triangle), the next one (>); YES makes the song under the cursor the next.", + "alt": "Setlist window over the main screen with song 1 playing and song 2 next.", + "credit": "Andrey Sidorkin (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "MAIN", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", + "setup": "Headless ot_emu; MKI panel; stopped transport; Modwerk beta base 0.7.13 with the package over the emulated USB; 128x64 LCD as the panel link carries it, integer scale 6." } } ] diff --git a/src/community/module-changelogs/songbook.json b/src/community/module-changelogs/songbook.json index 5fe11eec79..11ffceec85 100644 --- a/src/community/module-changelogs/songbook.json +++ b/src/community/module-changelogs/songbook.json @@ -1,4 +1,15 @@ [ + { + "version": "0.2.0-experimental", + "date": "2026-11-29", + "changes": [ + "16 setlists of up to 16 songs from any book, played one after the other without a gap; empty songs are passed over.", + "SETLSTS in the arranger menu: start, reorder, copy, paste and name setlists; CUE + YES in BOOKS (was CHANGE) adds a song.", + "Trig keys pick the book in BOOKS and the setlist in SETLSTS, the lit trig showing the one in use.", + "While a setlist plays, the main screen shows it and the song's full name, and CUE + YES picks the next song.", + "A project comes back into its setlist, on the song it was on, after LOAD, RELOAD or a power cycle." + ] + }, { "version": "0.1.0-experimental", "date": "2026-11-18", diff --git a/src/engine/assets/module-build.json b/src/engine/assets/module-build.json index df8f21bfc9..46404872ac 100644 --- a/src/engine/assets/module-build.json +++ b/src/engine/assets/module-build.json @@ -1,9 +1,9 @@ { "schemaVersion": 1, "kind": "source-packages", - "sourceCommit": "03a42eb572b2c0e6efbc760aa5abd8337d800870", + "sourceCommit": "1257939eae2c36e5285520b621a29b87aba3b5d8", "nativeRevision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", - "sourceTreeSha256": "097e86f9561b84393b3163d58f798b866dd5c8f4b8cfdbf47a2cdc5b20d7be1d", + "sourceTreeSha256": "6b3803650d4c4597144ddd9a4c919ef66085387a7e978b239779567799e08a36", "compilerSha256": "0e551e6b74358839d17507b7d11165f655289b06afbf444d30874c63954f06cb", "moduleVersions": { "miniverb": "0.2.3-experimental", @@ -45,7 +45,7 @@ "slow-lfo": "0.1.0-experimental", "bar-led": "0.1.0-experimental", "stem-rec": "0.1.0-experimental", - "songbook": "0.1.0-experimental", + "songbook": "0.2.0-experimental", "arr-rows": "0.2.0-experimental", "smart-reload": "0.1.0-experimental" }, @@ -83,8 +83,8 @@ "sha256": "6f4823e51ae30e79f387f2e83dc684c74c7547be223f2e4246c7d51096aa6df5" }, "requested-packages.json": { - "bytes": 1475258, - "sha256": "8371b56fe724d943d4ac26152b4d0739a80656b8bab16a8bd9e8e15542ea80f5" + "bytes": 1529741, + "sha256": "bfe349cc327455d322b1fbe3ae4a43c2011efef51586c020070d9f9d66239383" }, "utility-packages.json": { "bytes": 11735, diff --git a/src/engine/assets/octatrack-module-packages.json b/src/engine/assets/octatrack-module-packages.json index acab3edcd1..801f0091c6 100644 --- a/src/engine/assets/octatrack-module-packages.json +++ b/src/engine/assets/octatrack-module-packages.json @@ -883,17 +883,17 @@ { "id": "songbook", "octabam": true, - "version": "0.1.0-experimental", - "path": "octatrack-modules/songbook/0.1.0-experimental.mwrm", + "version": "0.2.0-experimental", + "path": "octatrack-modules/songbook/0.2.0-experimental.mwrm", "abi": 8, "features": 129, - "sites": 1, + "sites": 16, "copies": 0, "fills": 0, "name": "Songbook", "module": "008010d8", - "bytes": 7894, - "sha256": "84a8ba8ac39f74aaa8cd842f3179a1f8b0d38a24ffb32b56765daeb417c4ac47" + "bytes": 30240, + "sha256": "e06c9f98668142f1b1ff79b2501c124ebcb30b0dd8832c79de95ba0dce736bfa" }, { "id": "midiverb", diff --git a/src/engine/assets/requested-packages.json b/src/engine/assets/requested-packages.json index efcb07ecf7..e1caa99135 100644 --- a/src/engine/assets/requested-packages.json +++ b/src/engine/assets/requested-packages.json @@ -1456,7 +1456,7 @@ { "label": "songbook", "moduleId": "songbook", - "version": "0.1.0-experimental", + "version": "0.2.0-experimental", "key": "SONGBOOK", "author": "Andrey-Sidorkin", "nativeAuthor": "Andrey-Sidorkin", @@ -1465,12 +1465,12 @@ "caveAddress": null, "source": "modules/songbook/songbook_core.s", "sources": { - "modules/songbook/songbook_core.s": "9868b948c4f3845378431a1a140cffd6cc18fee5bad28830d634c7941ade4272", - "modules/songbook/manifest.py": "bb91111754510e6e95f484eed693183dac85bb0d794e8cd1f6841378958cbcf2" + "modules/songbook/songbook_core.s": "c03977cc612bbea52a104d1e3af23564b8bfd523cc47273eca86d7a636d10a60", + "modules/songbook/manifest.py": "6fc4762c564192f71ac3df8e9611d9605f8f80da0aee8fb9debc2e15668a850d" }, - "bytes": 9544, - "code": "7f454c460102010000000000000000000001000400000001000000000000000000002390000000140034000000000028000b000a2f2f00102f2f00102f2f00102f2f00104eba07304fef00104e754e56febc48d73cfc4ef9400915b4598f2f02206f000c24084878100006820000025c48680274487900000000486800542f024eb9400168644fef00144a806d2e2f2f00102f024eb9400896442f40000c2f024eb94001677c80af00104fef000c241f4680d08091804480588f4e75241f4280588f4e754feffff448d70c0442a742a7246f0018266f00204eb940025230508f20401010671422080681000000f014c0528810106704b1c166f424bc2f6172727063b0af00146550202f0014720a43ea000441e900034c4100024c410000722e2442740a134100024c420001200a0680000000300681000000301340000112811013670810c0528b101366f842104cd70c044fef000c4e75202f0014746443ea000541e900034c420000720a06800000003015400004202f00144c4100024c410000722e2442740a134100024c420001200a0680000000300681000000301340000112811013669c60a22f0b2f0a42a742a7246f0014266f00184eb940025230508f20401010671422080681000000f014c0528810106704b28866f4702f224a41f90000000012c052881010b1fc0000000066f2101345ea00094a00670814c0528b101366f84212245f265f4e754feffff048d7041c202f0014280048781000247c400168640684000002742f0448790000000026000683000000542f03240006820000025c2f024e924fef00144a806d3042a72f2f001c2f024eb94008b4d42f0226004eb94001677c4fef00102003a341d08091804cd7041c80814fef00104e75207946c823fa2f034e90588f4a80661a487810002f044879000000002f032f024e924fef00144a806ca6207946c823fa2f034e90588f4cd7041c4a8056c071004fef00104e754fefffe471ef002648d71c3c282f002042822a04a343e78849fafde206850000005447fafd702440528a71b91001614c0500661452827008b08266ee20034cd71c3c4fef001c4e75487900000000487228002f054e942f022f044e934fef00145282c6807008b08266c060d04fefffe893c971ef0022222f002448d700fc41f900000000a545e78879f01a002c2f001c5e86a347dc8022072609eba92046428006830000000e4681240394805280050467061410c48110825088a742b48066e85285578970f1b08966cc4cd700fc4fef00184e752f021039800065b81239800065b930411239800065ba75b9800065bb22427418e5a834087381e1897582484242428082240980828081662c207c80004f1e227c8000650052894a29ffff661841e800544a28ffac660eb1fc8000545e66e6241fa3404e75241f42804e754fefffe048d77c1c2c7c100f8f1c78182a7c100f8f1d287c100f8f1e267c100f8f1f246f0024207c100000041016141512147793e9a875823241223c811c9dc5484242423809808279848083e18c8084781852802400e8aa2600424348432540000a224224003809e08a43ea00041c841a831882168070417453784213c0100f8f10703113c2100f8f1113c4100f8f1213c0100f8f1313d1100f8f1443ea000745ea000e13d1100f8f1513d2100f8f167198b181203c010001934c001800b1fc1001614c66ea24017818424248422601e8ab2001e08813c3100f8f1813c2100f8f1913c0100f8f1a13c1100f8f1b4cd77c1c4fef00204e75227900000000598f2f02203c41535332b091670000a6220920490681000012744218b1c166fa50c122bc41535332134100051039100f8f201439100f8f211239100f8f22304275b9100f8f2373812f42000450c2e189134200227418e5a83408758248424242808280af0004808123c0000000001239460d1aec1039460d1aed30401039460d1aee75b9460d1aef2f420004343c0fa07180e1883342002e7418e5a93408758248424242828282af0004828056c1448113410027241f2009588f4e754fefffe448d70c1c246f0020260a4879000000000683000000542f03240a06820000025c4ebafbc448781000486a02744879000000002f032f024eb9400168644fef001c4a806d00012848780018486a00392f024eb9400165642f02260053834eb94001677c4fef00104a8366000102203900000000ab41263c100f8f202643243c100f8f21e988227c100f8f22207c100f8f238081280022004244484423c0000000002f4400187818e8a9780f2f41001416af00172200e089264216af001b128110802643122a003d203900000000e988c2848081220028004241484123c0000000002f4100187218e2ac2200e0892f4400141684264216af001b12811080724171aa0039b280660000a071aa003a7453b4806600009471aa003b7842b8806600008871aa003c7250b280667c71aa003d740fb480657241ea001243ea00221228002caf44c28410c1b3c866f2122a004ea342b5814a0157c144812401e18a1401354200264cd70c1c4fef001c4e75203900000000ad417818e98880812400260042424842e8ab2200e08923c00000000013c3100f8f2013c2100f8f2113c1100f8f2213c0100f8f234cd70c1ca1404fef001c4e754fefffd048d73c3c4ebafd7e24404a2a0036670000c24a2a003766224a2a0004670004cc42af00282f0a4ebafc64588f4cd73c3c202f00284fef00304e754200154000362f0a4ebafe02588f4a806f0003e04243120015400022354300244a2a002667084a2a0030660005064a2a003666aa7a01154500324a016d5a4a2a00316754182a00056a54203900000000af44420315410005e98850c1154500107a18154300318084154100222400260042424842eaab2200e08923c00000000013c3100f8f2013c2100f8f2113c1100f8f2213c0100f8f23182a00056b06700115400032102a0004240a0682000000544a00660001bc4a2a000e6700041c10391001614c660002e04a046d0003cc1239100b14d1af437b0442af002849faf8322645c28315410012154000074a8b66084a2a00076600030271cba34397cb4bfaf95ae78852802f400024487900000000202f0028487308002f024e942f0b2f0a4e954fef0014a341b280671e2f0b2f4000244eb9400a041ca145588f202f0020ba8056c071004480c680528b7008b08b66b8420113c11001614c15440004a340b7807801154300321540000e1544000f4a8366041544000650c0a343154000057009223900000000e9898280701828012a0142444844e0ad2001e08823c10000000013c5100f8f2013c4100f8f2113c0100f8f2213c1100f8f23102a00044a8366101639100b14d1af447380c684158318121540003d2a3c41534250200a0680000000222545003941ea001212181141002bb08866f6156a0027004e260a06830000025c4879000000002f024ebaf7e848781000486a02744879000000002f022f034eb9400168644fef001c4a806d1c48780018486a00392f034eb9400166b82f034eb94001677c4fef00102f0a4ebafa02588f4a2a00326700fd98700115400032202f00284cd73c3c4fef00304e754a2f003b662e4a391001614c66264a046d0002161239100b14d1af457180770442af002849faf67a2643c285158108126000fe4a71804a2a000e670000922f002f0a4ebaf860508f26004a83670001ba420113c11001614c182a00056b0001ca42af00281239100b14d17704102a000449faf62e2643af43c2837780158138124a006600fdf84a2a000e6600fdec41faf5a8a3439bcd2f4800244879000000002f4d0030528d2f0d2f024e942f2f00382f0a206f00384e904fef0014c6807008b08d66d61003154000076000fdb0e78841faf566a34397cb49faf5c62f4800242a40528d4879000000004873d8002f024e942f0b2f0a528b206f00384e904fef0014c6807008b08b6700ff404879000000004873d8002f024e942f0b2f0a528b206f00384e904fef0014c6807008b08b66b26000ff1642a72f0a4ebaf768508f26004a80670000c2420113c11001614c182a00056b0000d242af00281239100b14d1102a0004af437b0449faf5342645c2837780158138124a006600fd006000ff06a1406000fc1e42af002ca3434bfaf65a4879000000002f4b0028528b2f0b2f024e942f2f00302f0a4e954fef0014a341b280677e4879000000002f0b2f024e942f2f00302f0a4e954fef0014a341b28067202f2f00242f4000244eb9400a041ca145588f202f0020ba8056c071004480c6807008b08b669841ef002f13d01001614c6000fce44a2a00056d0000aaa16f002850c07a01a343154000051545000670096000fcec42af00284283700a6000fce02a2f0024eba881af002c60b42f2f00402f2f00402f2f00402f2f00404ebaf3d82f4000384fef00102f0a4ebaf782588f6000fb1c2f2f00402f2f00402f2f00402f2f00404ebaf3b0182a00052f4000384fef00104a046da04aaf00286d821239100b14d17104af4349faf4022640102a0004c2837780158138124a006600fbca6000fdd0a16f0028700a6000fc52780113c4800000104a2a00366600fa9e122a00226000faec2f024ebaf7fca3412240203900000000e9888081721824004242484223c00000000020422400e2aa2200e08913c2100f8f20340813c2100f8f2113c1100f8f2213c0100f8f2350c0720175fc01002342002e13400005134100084a2900386626220906810000002241e900124218b1c166fa50c04201343c0100134000221341002633420036241f4e752f0a2f024ebaf770720e2440203900000000e9888081240022004242484223c00000000020427418e4a9224122003409e08913c2100f8f20340813c2100f8f2113c1100f8f2213c0100f8f234201303c00ff74011541000e3540000435420007154100384a2a0030672a71ea002e0c8000000e0f621e4240154100303540002e2f0a4ebaf5fa7201588f15410031241f245f4e7542024240154200303540002e50c22f0a4ebaf5d8420115420022588f41ea001245ea00221541000f154100044218b5c867c84218b5c866f460c04feffff448d7040c4ebaf69e223900000000e9892440a540828070182401260142424842e0ab2001e08823c10000000013c3100f8f20424313c2100f8f2113c0100f8f2213c1100f8f233543002e4a2a0036661e102a00345280154000342f0a4ebaf54e4cef040c000442804fef00104e75207c100f83781210227c35fc5b49d3c8719152887581b08266c84a016708b1fc100f847866e04200154000362f0a4ebaf6c8588f4a806f3c154000224240354000244a2a0026679a4a2a00306794760113c380000010102a00345280154000342f0a4ebaf4da4cef040c000442804fef00104e75a14060c04fefffe848d70c3c4ebaf5b4740947faf174a94126002803203900000000068400000054068300000158e98880812a0022004245484523c00000000020457a18eaa9224122003a09e08913c5100f8f203a0813c5100f8f2113c1100f8f2213c0100f8f23487900000000247c400163882f022f044e934879000000002f022f034e9342a72f042f034e9252824fef00240c820000008166cc4879000000002f0447faf1c84e934879000000002f034e9342a72f042f034e924cef0c3c001c42804fef00344e754fefffe448d71c3c4ebaf4ee740947faf0aea7412840280c203900000000260c068400000054068300000158e98880812a0022004245484523c00000000020457a18eaa9224122003a09e08913c5100f8f203a0813c5100f8f2113c1100f8f2213c0100f8f2370014201424519400038194100363945002e487900000000247c400163882f022f044e934879000000002f022f034e9342a72f042f034e9252824fef00240c820000008166cc4879000000002f0447faf0ee4e934879000000002f034e9342a72f042f034e92303c0100394000302f0c4ebaf4e24fef00204a806f2e424119400022394100244a2c002667087a0113c580000010122c003542805281194100354cd71c3c4fef001c4e75a14060ce4feffff02f0a2f024ebaf3da22404a29000867401039100f8f101239100f8f1130411239100f8f1275b9100f8f132f42000a7418e5a834087381e189758248424242808280af000a80810c8041534231670001687001134000081239100f8f101439100f8f111039100f8f12304275b9100f8f1371802f42000a7418e5a9e1883408758248424242828282af000a82800c8141534231660c71b9100f8f14720fb2806460223900000000700f420245ef000de989134200048280240120014242484223c10000000020427418e4a834082f40000a2001e08813d2100f8f2013c2100f8f2113c0100f8f2213c1100f8f232f094ebaf1f8588f241f4280245f4fef00104e751239100f8f181439100f8f19207c100000041f42000a1039100f8f1a1f400013203c811c9dc575b9100f8f1b2f4200147418e5a975af000a2f42000e75af00132f42000a242f000e484242422f42000e82af000e242f000ae18a82af001482822f41000a7398b380223c010001934c010800b1fc1001614c66eab0af000a6600ff20207c100f8f14a34113500004247c100f8f15135200071039100f8f16b3804a0057c044801340000e2f094ebaf13a588f6000ff401039100f8f1c1239100f8f1d30411239100f8f1e75b9100f8f1f2f42000a7418e5a834087381e189758248424242808280af000a8081b0a9000a6600fe5e241f4280245f4fef00104e754feffff42f024ebaf1d82040702db0af00146700008a742eb4af001466204aaf0018670e4a2800286708303c0100314000294281241f20014fef000c4e757434b4af001467087021b0af001466e41239400c0b401439400c0b411039400c0b42324275b9400c0b4371802f42000c7418e5a9e1883409758248424242828282af000c828067ac4aaf001867064a2800056d1ca341241f20014fef000c4e754aaf001856c0428144801140002860862f4800044ebaefca206f000422004a80677a71a8000474212240b4af00146768a140d089740fb4806500ff5c1140000542001140000642a72f41000c2f4800084eb940022cd4588f222f0008206f00044a806c00ff3250c25e80114200054a80674248780030203c000000002f002f4100104eb94005a2b8508f222f0008241f20014fef000c4e7520016096487800304879000000004eb94005a2b8508fa3416000ff4448780030203c000000002f002f4100104eb94005a2b8508f222f000860bc4feffff048d70c0c266f00144ebaf06224404a8b671020390000000073aa0004e988808126804a2a000f67084a2a00056d000276302a002e73c00c8100000f9f620652803540002e142a00226b0004384a2a00056d0001dc1039460d1aec1239460d1aed1439460d1aee77aa002b2643324130427218e3a875b9460d1aef36097783224336087383260948434243e18980838082808156c144817581b48b674a1541002b42011541002c4a80670000fc203900000000720ce988808172182400260042424842e2ab2200e08923c00000000013c3100f8f2013c2100f8f2113c1100f8f2213c0100f8f231039460d1aec1439460d1aed1239460d1aee77b9460d1aef26437618e7a830427381142a0029e18936087783484342438083260b8083808167767001154000274a026714102a002a743c528073801540002ab481650000a84a2a0026670e4a2a00056d00023e42001540002c4a2a003667084a2a0030670000904a2a00066718420115410006487800304879000000004eb94005a2b8508f4a2a000467084a2a00056d0000fc4cd70c0c4fef00104e754a0267a4420115410027154100296098203900000000720de988808172182400260042424842e2ab2200e08923c00000000013c3100f8f2013c2100f8f2113c1100f8f2213c0100f8f236000ff044203154300296000ff524a2a00376600ff6c71ea002e763cb6806400ff604a2a00056c00ff584ebaecfe4a806700ff4e42a74eb940022cd4588f4a806d00ff3e7001154000376000ff344a2a0031660001d0102a00326700fe181239460d1e701439460d1e7130421439460d1e7277b9460d1e7322437618e7a936087582e18a7783484342438283260982838282670002984eb940056bec4200154000326000fdd0302a00527477528073c0b48165000220354000524cd70c0c4fef00104e7571aa0004267c400a03a071b208122f004e93588f4a806d0001da4203154300111543000f4a2a0010660001fc4203154300101039400c0ba01439400c0ba11239400c0ba277b9400c0ba320437618e7a87582738148424242e1898082240880828081664271aa000442031032081213c3400c0ba413c3400c0ba513c3400c0ba613c0400c0ba771aa00041032081213c3400c0ba813c3400c0ba913c3400c0baa13c0400c0bab1039400c0b401439400c0b411239400c0b4277b9400c0b4320437618e7a87582738148424242e18980822408808280816700fcb44eb940036e186000fcaa4a2a00226c00fdbe4a2a000f6600fdb64a2a00326600fdae102a002c7477528073801540002cb4816400fda04203154300261543002c4a2a00276700fd8e1039460d1aec1439460d1aed1239460d1aee77b9460d1aef20437618e7a87582738148424242e18980822408808280816600fd5a4eb94005200c6000fd5071ea002e761db6806400fe284ebaeaf84a806700fe1e7001154200051540001042a74eb940022cd4588f22390000000015400033e9894a806d0001aaaf40808176182200e6a924004242484223c000000000204122003608e08913c3100f8f2013c2100f8f2113c1100f8f2213c0100f8f2350c042011540002215410031102a00326700fbcc4a2a00056c00fbc46000fdaa142a00114a2a00106700011a7182721db28065785282154200116000fb7e4243354300522f4a00144cd70c0c4fef00106000eaac1039460d1aec1439460d1aed1239460d1aee77b9460d1aef20437618e7a87582738148424242e18980822408808280816700fdd4a3674eb940055fd8588f6000fdc652807380745ab481640000ca4203154300326000fb344ebae9e64a80670000901039800066a01639800066a11239800066a2304377b9800066a3738122437618e7a8e189360877834843424380832609808380816758203900000000720be988808172182400260042424842e2ab2200e08923c00000000013c3100f8f2013c2100f8f2113c1100f8f2213c0100f8f234eb94009ae4871aa000471b208122f004e93588f4a806c00fd0a142a001152827182154200117477b4806400fa684203154300111543000f4a2a00106700fcf66000feec154000326000fa6e74085e808282260124014243484323c10000000020437618e6aa224224013609e08a13c3100f8f20360813c3100f8f2113c2100f8f2213c1100f8f2350c1420215410005154200104a806716302a0024528073c0354000240c81000046506300fbee50c1102a0032154100224a006600fbe66000f9f84fefffe048d704fc282f00247c184ebae9fe1239400c0b401639400c0b411439400c0b427bb9400c0b43eda97783758248434243e18a828382858282670000a8204070097ba800045285b085640000a270634283e788327c00652444a347a56f001c45ea04002c00dc842003e680af4124079280af40c0832041d28ad1c6e1aa1010508880821140fff8b1c166f252837209b28366d47c65bc8957c0240945f90000000044804a0067647c75263c00000000719a20432f002f022f044e9058824fef000cbc8266eaa540b0af001c6748720a4c41500020432f004878007c2f044e904fef000c4cd704fc4fef00204e7570674283e7882444a347327c0069a36f001c45ea04002c00dc846000ff5e7c79263c00000000609a2005740a4c42000020432f00487800782f044e904fef000c720a4c41500020432f004878007c2f044e904fef000c609e0000000077002f617272626f6f6b2e007200776f726b0062616b0073747264004e4f2050524f4a454354004341524420425553590053544f5020544f204348414e474520424f4f4b00424f4f4b2046494c45204552524f5200000a0b0b0c7b6f2c9773e772cf5bc979cf79ef72927bef7bcf6bae2b6a5bad000000000000000000000000000000000000000100000000000000000400fff1000000000000000000000000030000010000000000000000000000000300000300000000000000000000000003000005000000000000000000000000030000060000000c0000002800000068020000010000001600000090000000e6020000010000001f000000020000000000000006000000240000017600000064020000010000002f000001da000000ba0200000100000038000002940000006c020000010000004600000300000000680200000100000058000000040000001a010000070000005e000003680000006a0200000100000066000003d2000000f8020000010000011c000004ca000000c2020000010000006f000000000000000401000003000000750000000000000004010000050000007b0000058c000001b60200000100000086000000000000000401000007000000000000000000000000030000070000008d00000004000012740100000500000090000000000000000010000001000000a0000007420000058812000001000000aa0000001a0000000010000001000000ba00000cca0000008a12000001000000ca00000d54000000ce12000001000000d900000e22000000ea12000001000000eb00000f0c000000c612000001000000fd00000fd2000001141200000100000111000010e6000002041200000100000122000012ea0000017012000001000001290000145a00000662120000010000013100001abc000001481200000100736f6e67626f6f6b2e63006172725f7772697465006172725f70617468002e4c433100706c6163655f70617468006172725f726561640077726974655f6368616e67656400676c7970682e636f6e737470726f702e3000474c5950480073746f707065640072656d656d6265720073745f61740065766c6f6700726561645f706c61636500776f72642e300073740061735f7772697465725f656e7472790061735f7772697465720061735f73746f636b5f7772697465720061735f70726f6a6563745f6c6f61640061735f70726f6a6563745f6e65770061735f70726f6a6563745f6c6f616465640061735f70726f6a6563745f73746f7265640061735f70726f6a6563745f72656c6f616465640061735f6d6f64756c65735f72656164790061735f6b65790061735f7469636b0061735f6472617700000000000001ba00000801000000090000053a00000401000000000000062c00000401000000000000066c00000401000000000000071a0000040100000000000007fc00000401000000000000091e000004010000000000000ce8000004010000000000000d74000004010000000000000e4e000004010000000000000f4400000401000000000000100c0000040100000000000011aa000004010000000000001400000005010000002700001442000005010000001c000015280000040100000000000016220000040100000000000018b00000040100000000000019de000004010000000000001a56000004010000000000001b6a000002010000030000001bce0000020100000300000000420000050100000000000001ae0000050100000002000001fc000005010000000c00000266000005010000000c000002de000005010000000e000003140000150100000004000004cc00000301000000000000059c000005010000000e000005be000005010000000c000005fe0000040100000000000006580000040100000000000006fe0000040100000000000007cc00000401000000000000088c000005010000000e00000904000004010000000000000986000005010000000e0000099a000005010000000000000a8c000005010000001300000ad6000005010000000e00000afe000005010000000e00000b84000005010000001300000ba8000005010000000e00000cd6000004010000000000000d62000004010000000000000e30000004010000000000000f26000004010000000000000f72000005010000000e00000f84000005010000001700000fa6000005010000000e00000fb4000005010000001700000fec00000401000000000000104c00000501000000170000105e000005010000000e0000108000000501000000170000108e000005010000000e0000118c00000401000000000000142a00000501000000310000147200000401000000000000150c0000040100000000000015d000000501000000450000160600000401000000000000188e0000040100000000000019c2000004010000000000001b5c0000150100000000000000000000040100000004002e73796d746162002e737472746162002e7368737472746162002e72656c612e74657874002e72656c612e64617461002e627373002e726f646174612e737472312e31002e726f646174610000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000100000006000000000000003400001c04000000000000000000000004000000000000001b0000000400000040000000000000201c000003180000000800000001000000040000000c0000002b00000001000000030000000000001c38000000040000000000000000000000040000000000000026000000040000004000000000000023340000000c0000000800000003000000040000000c0000003100000008000000030000000000001c3c00001278000000000000000000000004000000000000003600000001000000320000000000001c3c00000055000000000000000000000001000000010000004500000001000000020000000000001c920000001e000000000000000000000002000000000000000100000002000000000000000000001cb000000230000000090000001700000004000000100000000900000003000000000000000000001ee0000001390000000000000000000000010000000000000011000000030000000000000000000023400000004d00000000000000000000000100000000", - "sha256": "ed66a92fbd441e6d8e53259de6ea1f6af8767d77ee48b7f9812a17ceddfbc208", + "bytes": 34000, + "code": "7f454c4601020100000000000000000000010004000000010000000000000000000082f0000000140034000000000028000c000b2f2f00102f2f00102f2f00102f2f00104eba273e4fef00104e754e56febc48d73cfc4ef9400915b4598f2f02202f000c22004878100006810001795a2f01487900000000240006800001773a2f000682000179422f024eb9400168644fef00144a806d362f2f00142f2f00142f024eb9400166b82f4000102f024eb94001677c4fef00104a806d12a341b2af000457c0241f71004480588f4e75241f4280588f4e752f02202f000822004878100006810001795a2f01487900000000240006800001773a2f000682000179422f024eb9400168644fef00144a806d2e2f2f00102f2f00102f024eb9400165644fef000c2f02a341b28057c075004eb94001677c588f44822002241f4e7542822002241f4e75598f2f02202f000c22004878100006810001795a2f01487900000000240006800001773a2f000682000179422f024eb9400168644fef00144a806d2e2f2f00102f024eb9400896442f40000c2f024eb94001677c80af00104fef000c241f4680d08091804480588f4e75241f4280588f4e754feffff448d70c0442a742a7246f0018266f00204eb940025230508f20401010671422080681000000f014c0528810106704b1c166f424bc2f6172727063b0af00146550202f0014720a43ea000441e900034c4100024c410000722e2442740a134100024c420001200a0680000000300681000000301340000112811013670810c0528b101366f842104cd70c044fef000c4e75202f0014746443ea000541e900034c420000720a06800000003015400004202f00144c4100024c410000722e2442740a134100024c420001200a0680000000300681000000301340000112811013669c60a24feffff448d71c0042a742a7246f0018286f001c266f00204eb940025230508f20401010671422080681000000f014c0528810106704b1c166f414fc002f1014670814c0528c101466f814fc002e1013670814c0528b101366f842124cd71c004fef000c4e752f0a203c41534250246f0008220a0681000000262540003b156a0008003f41ea0016101811400029b28866f6102a14b6156a002b00504a006708102a14bc7280808115400051156a14bb0052207c0001773ad1ca4879000000004879000000002f084ebaff3648780018486a003b2f0a4ebafce64fef0018245f4e754fefffe048d73c3c266f0028262f00244a8b56c044804a00677271cb2a03283c0000000006850001773a95cae788a3424bfafe0649fafd902640528bab40b08a652a2f044873a8002f054e952f0a2f034e944fef0014c480528a7008b08a66dc20024cd73c3c4fef00204e754a39100f8f176de42f044873a8002f054e952f0a2f034e944fef0014c48060cc71cb2a03283c0000000006850001773a95cae788a3424bfafd9449fafd1e2640528b608c4feffff048d7041c202f0014280048781000247c4001686406840001795a2f04487900000000260006830001773a2f0324000682000179422f024e924fef00144a806d3042a72f2f001c2f024eb94008b4d42f0226004eb94001677c4fef00102003a341d08091804cd7041c80814fef00104e75207946c823fa2f034e90588f4a80661a487810002f044879000000002f032f024e924fef00144a806ca6207946c823fa2f034e90588f4cd7041c4a8056c071004fef00104e754fefffe471ef002648d71c3c282f002042822a04a343e78849fafcb406850001773a47fafc382440528a71b91001614c05006720ab40b082652e487900000000487228002f054e942f022f044e934fef0014c68052827008b08266ce20034cd71c3c4fef001c4e754a39100f8f176de4487900000000487228002f054e942f022f044e934fef0014c68060c84fefffe448d70c7c266f0020207c0001773a487900000000487900000000d1cb2f08240b06820000005345fafb344ebafcf8487813182f022f0b4e924fef00184a80670c71ab00537241b280670000e4487812182f022f0b4e924fef000c4a80670e71ab00537c41bc80670001024280220b06810000127b43eb137b204141e8fff04218b28866fa2208068100000010b3c166e84a80674e71ab0057720fb2806544200b06800000137a41eb127a421041e80010b08866f62a0b06850000006b45eb005b280577927010b0836518204442802248b083673e7390528041e800127c0fbc816420200b204206800000136b4218b08866fa42403740136b4cd70c7c4fef001c4e7573a90001af46bc8165d62248b08366c2528a068400000120b5c566a442403740136b4cd70c7c4fef001c4e7571ab00547c53bc806600ff1471ab0055724cb2806600ff0871ab00567c32bc806700ff44487812182f022f0b4e924fef000c4a806700ff086000fef671ab00547253b2806600fef671ab0055b2806600feec102b00567c4c220b06810000127b43eb137bbd804a0057c0710044806000feda2f0a42002f024202a348222f000c43f90000000013c08000669413c08000669513c280006696300113c180006697723ec0fc161413c1000000002440d5fc100000031032880073004a00671052887425b481673212c0700fb08866e6d1fc000000004218b1fc0000000066f62f3c400c0c412f3c460d17ae4eb940000c3c508f241f245f4e75702012c0700fb08866b260ca2f0a2f02487900000000487900000000202f001406800001773a2f00246f001c4ebafad0487801682f0a2f2f00204ebaf8fa4fef00184a80670873927441b481670e4200154000054280241f245f4e7573aa00017453b48166e873aa0002744cb48166de73aa00037432b48166d473aa0004740fb48165ca73aa00067410b48165c0241f245f4e754fefffd448d7447c362f0036242f0030c6fc16140c830000847857c02043d1fc1000000444804a00670000ca227c10009a90203c811c9dc57398b380223c010001934c010800b3c866ee280f06840000001c224393c4d3fc1000000420444def002c1231880010c1bdc866f6204277a800064a83671441e80028428158885281b0a8fffc677eb68166f273ef003a24422044a340e98943f2180812181a19bb814a0157c173014481c081bdc866ec4a80665e4a8367342a02428606850000006822452044a34012181419b5814a0157c173014481c081bdc866ec4a80660c5286068500000010b68666d64cd7447c4fef002c4e75227c1000b0a4203c811c9dc56000ff364cd7447ca3404fef002c4e754cd7447c42804fef002c4e752f032f0273ef00164280e989204141e8126bd1ef000c4a30080067085280720fb28066f2220053814a806714753018007620b682666a2001220053814a8066ec7253226f0010202f0010508041f90000000012c152881210b08966f6222f001474095281b48164202401760a4c432002206f0010202f001006800000000906820000003011420008760a4c431002204006820000003010c2241f2008261f4e75226f00102208d28012d8b28866fad0af0010241f261f4e754fefffd448d74c3c266f00304a2b14b666000092704143f90000000041f90000000012c052881010b1fc0000000066f271ab000872095280b280640001a82200760a4c431001780a7a3a41f90000000045e8000206810000003013c1000000004c440001114500010681000000301081207c8000000513d0000000007025220a224a5a8141f90000000012c052881010b28966f64203154300054cd74c3c4fef002c4e7571ab14d39dcec0fc16142040d1fc100000044a3688006700018c528e7010b08e66f0a94371ab14bb72095280b2806400016ea54171ab14bc280f06840000001c9681740f2f002f042f0b4ebafe584fef000c9084b4806402700fb08363142200af45ba806402af41b08163065380b08366f6204022002244d1c453814a80671275207a20ba82660a2001220053814a8066ee725345f90000000041f90000000014c152881210b1fc0000000066f24a80670000ca2440d5c441f900000000121978257501b882670000a610c1b5c966ee7a3a41f900000000240006820000000047eb14bb2442548a1185080013d300000000b0836300fee27225d68e968041f90000000014815288528a1210b1fc0000000066f07009b08365000092720a4c41300020425e88343c73000680000000301080314200014cd74c3c4fef002c4e75780a4c4400017a3a41f90000000045e80002068100000030108111450001207c8000000513d0000000006000fe6c722010c1b5c96600ff486000ff5645f90000000047eb14bb220a224a13d30000000070255a8141f9000000006000fe4aa3416000fe927614968e6000fe7a2003780a4c44000022422042343c73005088720a068000000030134000074c4130003142000106800000003010806000ff5a4fefffd448d77cfc266f0040206f0030b7ef00386d6073ef003671ef003e528ba34ee789e7884bf0180749f0080faf43c6af00382c0eaf4a242f0038e682204d2a0c95c291c29a82e7ae1806468610107f8022008284070767042200c28643f0280050881381a8f9ba8866e252af0038b7ef003866b84cd77cfc4fef002c4e754fefffdc71ef002e48d71cfc41f900000000a34c327c000ee788246f0028282f003026402c0b202f00340686000000187ff00a00af42c4842604e683af45200b22099a83260ce5ab46832045d1c0d1ca5080030767061410c48310825381bc8066e852845789a140b08966c84cd71cfc4fef00244e754fefffd0720948d73cfc202f003c2a6f00402c2f00342a2f00382f40002cb28d640000d8327c00657278a56f00284a8557c044804a00670000ba307c0008b1c56d4a4a00660000c2e789387c004024462605a34745ea04002801d8860684ffffff582003e680af41240720449280af40c083d1c1d28ae1aa1010508880821140fff8b1c166f25283b68c66d672655485b28957c0246f002c240944804a00674a767547fafee6719a2f002f052f022f064e9358824fef0010b68266eaa542b4af002867622e0d720a4c417000747c2f45003c2f4200382f4600344cd73cfc2f4000404fef00306000fea2767947fafe9c60b4307c003f6000ff46327c0069727ca36f00286000ff28e78924462605387c0009a34745ea04002801d8860684ffffff586000ff3e200d740a4c4200002e0d747c2f002f05487800782f064e934fef00102f45003c2f420038720a4c4170002f4600344cd73cfc2f4000404fef00306000fe282f024a39000000006630207c460ba98c13d000000000207c460ba98d13d000000000207c460ba98e13d000000000207c460ba98f13d00000000071ef000a74012200e489d0802041d1fc460ba98c420113c200000000af42c08213c1460ba98c13c1460ba98d13c1460ba98e13c1460ba98fa341e1a91081241f4e754fefffec226f001848d7007c242f001ca3462a0220025a85af44c8802200e68191c8528091c1d1c92206162800cfe9a98283114100cfb08566de20022c025280a3435886af45ca802200e68191c8528091c1d1c92203182800d7eba98284114100d7bc8066de5482af41c282e68242809082d3c0102900dfe3ab8680134300df4cd7007c4fef00144e754fefffe071ef002a48d73c3c282f0024a3432a0495cae7884bfaf1b406850001773a49faf4222640528b4879000000004872b8002f054e952f0a2f044e944fef00142400a340b08267162f0a4eb9400a041c588fa140b08256c275024482c682528a7008b08a66c220034cd73c3c4fef00204e754feffff02f024879000000002f2f001c4ebaf73c508f22004a80670000ee4a3900000000670000da71b900000000226f0018204071a90008b088660000c4d3fc0001773a2f49001042af00082f2f0008202f000c5c802f4000102f004879000000002f4100104ebaf76e4fef000c222f00044a80677e206f0018a14271a80008487900000000226f0010e788487108012f2f00182f4100104ebaf0c02f2f00182f2f00284ebaf32c4fef0014222f0004b480670000b04a80673a206f001871a80008487900000000226f0010e788487108012f2f00182f4100104ebaf07e2f2f00182f2f00284ebaf000222f00184fef0014c280a340b0af0008661a4a81661e241f20014fef00104e75241fa34120014fef00104e75a36f00086000ff304200487900000000487900000000242f002006820001773a2f0213c0000000004ebaf100487801684879000000002f2f002c4ebaeeac4fef0018241f220020014fef00104e754281608c4feffe6c48d77c3c266f0198486f002c2f0b4ebaf5d2508f4a2f0031670e73af003071ab0008b0816700028a45f900000000a342227c1000847c204a93ca1231880010c1b1fc0000000066f242004df900000000227c10009a7f93ca204e13c0000000001231880010c1b1fc0000000066f242017801260bad4c06830001773a4bfaef7013c10000000013c400000000283c0000000071ab0008487900000000e788487408012f034e952f0c2f0b20444e904fef0014c480af40b08c6668102b00084a2f0031670c73af00307b80ba816600008e13c0000000007a014240223c41534c3223c10000000041f90000000013c50000000033c00000000020dab5fc0000000066f641f90000000010debdfc0000000066f64a82661220024cd77c3c4fef01944e75af4c6000ff6c4879000000004879000000002f034ebaef9c487801684879000000002f0b4ebaed4a4fef0018240020024cd77c3c4fef01944e75e78999cca36f002848790000000041f418072f4800282f082f034e95af672f0b4ebaf0e84fef001453804a806700009aa340b08c673073af0030a34c487900000000e78941f418072f4800282f082f034e95af672f0b4ebaf0b24fef001453804a8066cc606271ab0008487900000000a3447a01e7882040486800082f034e95af672f0b4ebaf084c4af003c4fef001413c500000000b88057c1102b000841f900000000730113c00000000042404481c481223c41534c3223c10000000033c0000000006000fed62f0caf67486f00344ebaf43c4fef000c4a806700ff544879000000002f2f00282f034e95af672f0b4ebaf0184fef0014a145ba8067744a806700ff2e4879000000002f2f00282f034e95af672f0b20444e904fef0014c1af00284a2f00306600ff084a2b000b6700ff004879000000002f2f00282f034e95af672f0b20444e90c1af003c4fef00146000fede2f0b4ebafbe045f900000000588f227c1000847c2400204a93ca6000fd6e42af00286000feb84fefffc048d77cfc2a6f004450c0122d0057772d14b575811f41002e1235285b1b4014b51f41002d73812441b681650ca3404cd77cfc4fef00404e751239100f8f171f41002f6a00028430023a0a41ed15f82e0d068700002c0c4ded14d82f480034284e24072808c0fc0120cafc161443f5087dda8741e9ffee264c16d8b3c866fa739471ad0008b081670001b806840000161406820000161449ec001243e90012ba8266d07d7cea08207c0001773a42842a2f0034d1cd2f4300382f4800309c8d49faec5447faeec82f47003c2607240812167fad00087181be8067544a01660001904a2d000b67000188e78873ae000141f9000000002f082041487008012f024e94af672f0d4e934fef00144a8066000188af674eb9400a041c588f22462045d3fc10009a901031880010c0b68866f652844dee00120685000016140686ffffe9ec068300001614b88a6684122f002d142f002e262f00382e2f003c1b4114ba1b4214bc4a2f002f6c0001f22a04ba83633475fc1614200d06800000160a22034c0328002242d3c0204910101428000141e8161480824a0066065281ba8166eab2846500016470063c03424114031b4314bb227c1000847b1b4014d350c0ccfc16143b4114d622060681000015f8d28d1b4014d593c12041068100001614101813808800b1c166f61b4214d4207c1001614c72bf52831010c08110807bad14baba83631c41ed2c1ed1c610101228000141e8161480814a0066065283ba8366eab684650001d4700fc480323c0101708084803b4114b613c2100f8f17a3406000fdf071ac00012044c0fc1614264097c4d7fc100000041033880010c0b4886700fe2c1033880010c0b48866ea6000fe1ee78873ae000141f9000000002f082041487008012f024e94af672f0d4e934fef00144a806700fe7c52804a806600fe7e420271ad00082f002f0d4ebaf89c508f13c21001614c4a2f002f6c00019042804cd77cfc4fef00404e752f0d4ebafa56588f4a806700fd5a30023a0a41ed15f82e0d068700002c0c4ded14d82f480034284e24072808c0fc0120cafc161443f5087dda876000fd6e10111229000143e9161480814a006600fe8e5283b68566e870063c034241227c1000847b14031b4314bb1b4014d350c0ccfc16143b4114d622060681000015f8d28d93c120410681000016141b4014d56000fe84122f002d71c445f900000000242f00342a3c0000000043ed160847f20c002c3c811c9dc513c100000000204220067398b380223c010001934c010800be8866ee24c02845204218d8b3c866fa06820000161406850000001043e81614068700001614b7ca66c4487900000000207c0001773a487900000000d1cd2f084ebaea22487801684879000000002f0d4ebae7d04fef00187bad14ba6000fd783203227c10009a8fc2fc16140681000015f8d28d93c12041068100001614101813808800b1c166f61b4314d5207c1001614c727f1010c081323c01011080700fc48070803b4114b6848013c2100f8f176000fdf242004879000000004879000000002f2f003813c0000000004ebae996487801684879000000002f0d4ebae7444fef001842806000fe404fefffd448d7401c280f068400000010207c400bf10a2c4422487218101958881411e3a81228fffe77a8ffff75828083738148424242e189808280812cc0b1fc400bf12666d22f2f003ca167703b90af00402f002f2f00402f042f6f004400302f3c400ba8764eb940012bd84cef401c00184fef00444e754fefffb448d74c0c246f005c226f00584a12670000f4428052804a32080066f822007412e589766594802f42001896812f430014200976095280b680640000bc760a22004c43100141ef001d260f06830000001c0681000000301f41001c740a4c420001703a4def00342408548226420681000000301081114000012f092f0e2f2f00584ebaef2e222f0024204291c3908e92884fef000cb081640222004a816710200e2242d08112debdc066fa2642d7c142134dfafed22f03a967487800192f2f00604e962f0aa9672f2f002c2f2f00704e964fef00204878000948780065a767487800182f2f00644ebaf2024cef4c0c00144fef00604e75260f06830000001c20436000ff58721274652f4100182f4200146000ff1e4fefffa448d77cfc2f2f0068240f0682000000482f022f2f0068af432c6f00702e2f007c4ebaee764201224093c21f4100401f4100384fef000cb6896400028e41ef004baf40731053887620b681670002ac53804a8066ee2a0f06850000002caf4042812445204214d85281b28065f842011f81082cb3c063142042d1c0731052887620b68166065280b08966f0244291c847ef0034d5c02208d280b289640c16f288005288af41b28866ec4202280e7621a34606840000005843ee01481f828834af40c0832403e682af41204492822406d1c1d289e1aa468210105088c0821140fff8b28866f25283702fb08366d22f05487800224878000c2f0e49fafd724e944fef00104a2f0034660001224878002e48780028487800214878000b2f0e4ebaf0b4202f0080720952804fef0014b280640001362200760a4c431001762f41ef003d4bef003c740a0681000000301f41003c4c4200011143000170090681000000301081b08765000122760aa3454c437001420747e800027630244b2c0e43ee015006860000005006810000003014c117470001af40c0832403e682af41204692822405d1c1d289e1aa468210105088c0821140fff8b28866f252837039b08366d2102e0061747c7232182e00711c2e00791a2e0081a34980821d400061af42c481200954817e38e5a82600240086848486808518031c021a00be8166e095cd220a1d4000811d4300711d420079e589702a2f0d4878003290812f002f0e4e944cef7cfc00104fef006c4e75486f0034487800294878000c2f0e4e944fef00104878002e48780028487800214878000b2f0e4ebaef80202f0080720952804fef0014b2806500fece740a4c420001762f4bef003c204d7009068100000030108111430001b0876400fee22007740a4c420000760aa3454c437001420747e8000306800000003011400002244b2c0e763006860000005006810000003014c143ee0150174700016000fecc4a8967142a0f06850000002c20094281244520426000fd8642802a0f244206850000002c91c847ef0034d5c06000fd9e220953819280af43b6816500fd502a0f06850000002c4281244520426000fd4e4fefffe048d77c1c2c7c100f8f1c78182a7c100f8f1d287c100f8f1e267c100f8f1f246f0024207c100000041016141512147793e9a875823241223c811c9dc5484242423809808279848083e18c8084781852802400e8aa2600424348432540000e224224003809e08a43ea00081c841a831882168070417453784213c0100f8f10703113c2100f8f1113c4100f8f1213c0100f8f1313d1100f8f1443ea000b45ea001213d1100f8f1513d2100f8f167198b181203c010001934c001800b1fc1001614c66ea24017818424248422601e8ab2001e08813c3100f8f1813c2100f8f1913c0100f8f1a13c1100f8f1b4cd77c1c4fef00204e752f0a203c415353352479000000002f02b092670000de220a204a06810001895a4218b1c166fa50c2207c0001895a2548000424bc41535335154200091039100f8f201239100f8f2130411239100f8f2275b9100f8f23224250c27381e18915420026154214b5154214b9154214be7418e5a83408207c100f8f17758248424242808224098082808123c0000000007001155014c01540136c1039460d1aec1239460d1aed30411239460d1aee75b9460d1aef2242343c0fa07381e1893542003274ff3542138e7418e5a83408758248424242808224098082808156c044801540002b2f0a4ebaea5a588f241f200a245f4e75223c0001895ab2aa000467ec220a204a06810001895a6000ff164ebafef220404200114013701140002c4aaf0004670670011140136b4e75598f2f0376182f021039800065b81239800065b91439800065bae7a873813042224175b9800065bb36087383260948434243e1898083808280816600008e207c8000650052884a28ffff667eb1fc8000651066f0123980004f18143980004f19207c80004f1e1f420008163980004f1a75b980004f1b32437618e7a977af00082f430008360977832243262f0008484342432f43000882af00082609e18b848184832202e0a9a3435280c283c2fc02a04a301800661441e800547208b28066e2241fa340261f588f4e75241f4280261f588f4e75598f2f02206f000c4a28136c660a241fa3412001588f4e754ebaff124a806750206f000c4a28136d662a4a2800096c2442a72f4000084eb940022cd4588f222f00044a806d4c7001206f000c114000371140136d487800304879000000004eb94005a2b8508f241f42812001588f4e75487800304879000000002f40000c4eb94005a2b8508f222f00042001241f588f4e755e804a8066bc4200206f000c1140136c2001241f588f4e754fefffdc48d71c7c226f0028206f002cd1c971a914ba75a814d4b082630000c2202f002c5c80c0fc16143a0277fc1614222f002c928241e915f84c0138002800068410000016284406801000001718142840a3411f540023cafc16142443260995c9068300001608d5fc10006e84d1c5d68526481c33a800101bbd804a0057c071004480c280b68b66ea4a81675c71fc16144c02080047f1080071ab160a73ab160be1888081670c718473af0023e18880816736a344e5ac2609068300002c0cd6851032880075987380b282670e1140ffff302914d68084334014d6b1c366e24cd71c7c4fef00244e75203900000000720be988808172182400260042424842e2ab2200e08923c00000000013c3100f8f2013c2100f8f2113c1100f8f2213c0100f8f23102914bd5280134014bd4cd71c7c4fef00244e7550c04fefffe448d71c0c246f0020207c0001773a487900000000487900000000d1ca154014be2f084ebadfcc48780018486a003b2f0a4ebaddf64fef0018223900000000e9894a8067000146ab4080817618287c100f8f20267c100f8f21227c100f8f22207c100f8f232200240042414841e6aa23c0000000002f41001818822200e089740f16af001b12811080122a003f203900000000e988c282741880812600220042434843e4a923c0000000002f4100142200e0892f43001818af0017168312817641108071aa003bb680660000f271aa003c7253b280660000e671aa003d7442b480660000da71aa003e7650b680660000ce71aa003f720fb280650000c241ea001643ea00261228002aaf42c28210c1b1c966f2162a0052142a0051122a00503043a3433242b781760f2408c4834a0157c12042340944811541002a4a026d2050c2154214be360842021541002b154314bf154214c04cd71c0c4fef001c4e752409c483162a14c0154214be36434a036cd4740f260bc68242021541002b20433608154214c0154314bf60caad40828070182401260142424842e0ab2001e08823c10000000013c3100f8f2013c2100f8f2113c0100f8f2213c1100f8f234cd71c0ca1404fef001c4e75518f2f02242f0020202f0010222f00142f420004242f0024206f0018226f001c2f4200084a390000000067262f420024242f00042f49001c2f4800182f4200202f4100142f400010241f508f4ef940012254241f4280508f4e75518f2f02242f0020222f0010206f00142f420004242f0024226f0018202f001c2f4200084a390000000066067458b480672a2f40001c242f00082f4900182f4800142f420024242f00042f4100102f420020241f508f4ef940012254242f000870742f40001c2f4900182f420024242f00042f4800142f4100102f420020241f508f4ef940012254518f2f02202f001c242f0024222f00102f400004206f0014226f0018202f00202f4200084a39000000006606740bb480672a2f400020242f0008202f00042f4900182f4200242f40001c2f4800142f410010241f508f4ef940012bd870102f400020242f0008202f00042f4900182f4200242f40001c2f4800142f410010241f508f4ef940012bd84fefffe4202f0030222f0020206f00242f400004202f0034226f00282eaf002c2f400008202f00382f40000c202f003c2f400010202f00402f400014202f00442f400018202f00484a390000000067084a39100f8f176d4e2f400048202f00182f57002c2f4900282f400044202f00142f4800242f4100202f400040202f00102f40003c202f000c2f400038202f00082f400034202f00042f4000304fef001c4ef9400139040c801000847c675c0c8010009a9066a2203c000000002f400048202f00182f57002c2f4900282f400044202f00142f4800242f4100202f400040202f00102f40003c202f000c2f400038202f00082f400034202f00042f4000304fef001c4ef940013904203c000000002f400048202f00182f57002c2f4900282f400044202f00142f4800242f4100202f400040202f00102f40003c202f000c2f400038202f00082f400034202f00042f4000304fef001c4ef9400139042f02222f0008202f000c206f00104a390000000066067425b48067142f4800102f40000c2f410008241f4ef940012f8870402f4800102f40000c2f410008241f4ef940012f884fefffc048d77cfc262f00484ebaf7362c404a2e00376708303c01003d4000364a2e14c2675a142e14c36600037a4a2e00346700034a4a2e00086600040c4a39100f8f176d0006582f2f00502f2f00502f032f2f00504ebad8724fef001028002f0e4ebaf5e8588f4a2e003667067a011d45003620044cd77cfc4fef00404e754a2e136c660003d04a2e14c16640102e14b64a2e136d670c42047a011d44136d1d4500364a00670000fe45faf5a04a2e14b86600047c4a2e136b660004222f0e4ebadabe2f0e4e92508f4284609a420745fafa5242821d4714c12f0e4e92588f4a806f00039e1d400026424072013d4000281d4100354a8267944a2e00096c8e102e00266b564a2e003567821d400009203900000000af47740150c4e988420572181d4200141d44002680871d4500352400280042424842e2ac2200e08923c00000000013c4100f8f2013c2100f8f2113c1100f8f2213c0100f8f23122e14be102e14b64a016d00ff2a142e136c84804a026600ff1e102e14bf750175b6285b7980b484630e50c21d4100571d4014b51d4214be4a2e136d670c420770011d47136d1d4000364a39100f8f176d00069e45faf49a4a2e14b56d0672011d410036142e00096b0678011d440036102e0008670002464a03670004e871804a2e0012670007622f002f0e4ebadb7c508f4a806700073e420713c71001614c142e00096b000640770242841239100b14d1102e0008af45c2857b801d8158164a0066144a2e0012660a42a72f0e4ebad9d0508f1d40000b4a8366084a2e000b660007422f032f0e4ebae6204201508f2a0013c11001614c1d420008a340bb8074011d4500361d4000121d4200134a8566041d42000a50c7a34074091d470009223900000000e9898282741826012a0142434843e4ad2401e08a23c10000000013c5100f8f2013c3100f8f2113c2100f8f2213c1100f8f234a8066121039100b14d1af4573ae0008c0851d8018162e0e06870000006b220f2c0749ee005b0681000000404a1c671e26464285759371ae0008b082670003f671acffff528547eb0012b08562e6068600000120b9c766d44a2e136b6740223c41534c322d410053207c0001773a487900000000487900000000d1ce2f084ebad7e648781318486e00532f0e4ebad5964fef00184a80670642001d40136b2f0e47fad82a4e93588f4a2e14b56d0c4a846d084a2e0012670005e650c21d4214b52f0e4e92588f6000fcec207c100f83781010227c35fc5b49d3c8739152887980b2846600fc9e4a006708b1fc100f847866de420145faf77a47fada441d4114c22f0e4e922f0e28004e93508f4a846f0000a61d44002642443d4400284a2e002a670e4a2e003467087a0113c5800000104a2e14c26600fc4c4a0256c2750244824a2e136c660003404a2e14c16700fcf442071d4714c12f0e4e92588f4a806e00fcd2606a4a2e0012677a10391001614c660003fc4a026d0004161239100b14d1af471d40000b77024284c2871d4100166000fdee2f0e4ebaf2004284588f6000fc142f0e4ebad998588f4a2e14c16700fc2a6000fc66a1441d44002642443d4400284a2e002a6700ff686000ff56a1401d400026424072013d4000281d4100356000fc604a39100f8f176d0004d62f2f00502f2f00502f032f2f00504ebad4184fef0010142e000928004a026d0003824a806c0006227a011d45000a50c7a34074091d4700096000fda02a3c41534c322d450053207c0001773a487900000000487900000000d1ce2f084ebad61a48781318486e00532f0e4ebad3ca4fef00184a806700fba642001d40136b2f0e4ebad65c2f0e4e92508f6000fb9c720147faf4b81d41003642a72f0e4e93a3672f0e4e934fef00104a2e14ba67000568797cea082c0e2a0e06860001773a49ee14d8068500002c0c988ea34247ee14d942834bfad44c71ee14d6a347e6a0ce800800000067781014660001c04a2e0008670001b84a2e000b670001b07180223c000000002f017393e7882041487008012f064ebad47eaf672f0e4ebad6ee4fef001452804a80670001b22004448022442040d3fc10009a8f101813808800ba8866f6af672f0e4e95508fc4804a87660001fe719473ae0008b280670001a471ae14ba528349ec00120684ffffe9ec06850000161447eb0012b0836200ff5a424142003d4114b61d4014b871ae00082f002f0e4ebae2302f0e26004ebae29c4fef000cc6804a83670003e6420450c57e0113c4100f8f1713c41001614c13c58000669413c58000669513c58000669613c5800066971d4700134a82670003da102e14b96a00040c50c11d4114b91d4114b54a2e136b6700fa266000fe420283ffffff3f2f2f00502f2f00502f032f2f00504ebad2164fef001028006000f9a24a391001614c6600fb124a026d0001741239100b14d1af45718077024284c2851d8108166000fb4e71ab000143ef00302049c0fc16142a409bc9dbfc100000041035880010c0b1c166f641eb0002101977187500b483670a1140ffff70011d40136bb3c166e871acffff528547eb0012b0856200fbb46000fbca2f0e4e93588f4a2e14c16700f9b06000fcba7180223c0000000042872f017393e7882041487008012f064ebad2ceaf672f0e4ebad53e4fef001452804a806600fe5271ae14ba4282528349ec00120684ffffe9ec06850000161447eb0012b0836200fddc6000fe807393ab47be816400fe56e7884879000000002041528349ec00120684ffffe9ec06850000161447eb0012487008012f064ebad260af672f0e4e954fef0014c48071ae14bab0836200fd8e6000fe3248790000000071947393e7882040487018012f064ebad22eaf672f0e4e9573ae00084fef0014c4807194b2806600fde2608042a72f0e4ebad53e508f4a8067000100420513c51001614c142e00096a00f9c442844280740a6000fa327e0171ae00081d4700362f002f0e4ebae00a2f0e24004ebae07642014fef000cc08213c11001614ca341b1814a2e136e6700008e4a2e00096c0000864244142e14b51d4100123d44136e4a80670000824207700145faedaa13c7100f8f171d4000132f0e4e92588f4a026c0001644a2e136b6700f80a223c41534c322d410053207c0001773a487900000000487900000000d1ce2f084ebad23648781318486e00532f0e4ebacfe64fef001828004a806700f76a420042841d40136b6000f75e42451d4100123d45136e4a80660000ea7a011d45000a1d4500132f0e4ebaed22588f608aa1444a2e00096d00ff0e7a011d45000a6000fb8e2f002f0e4ebad2b2508f6000f89e2f0e4ebae3c6588f4a806600011e720150c21d41000a1d4214b52f0e4e92588f6000f6f40283ffffff3f6000fb242a7c0001773a42872f44002cdbcea34549fad0a247fad3162803487900000000260452842f042f0d4e942f032f0e4e934fef0014a341b280670000ba4879000000002f042f0d4e942f032f0e4e934fef00142c00a340b08667162f034eb9400a041c588fa141b28656c071004480ca807008b08466a4282f002c13c71001614c6000f8524202780145faec4213c2100f8f171d4400132f0e4e92588f4a2e14b66700f7924a2e14b86700f68c6000fb02420750c0720113c71001614c13c08000669413c08000669513c08000669613c0800066971d41001350c01d4014b91d4014b578011d44000a4a2e136b6700f6506000fa6ce7a88e806000ff7650c22f0e4e93588f1d4214b52f0e4e92588f6000f5d81d4014b550c22f0e4ebae2801d4214b91d4214b5588f4a8067b64a2e136b6700f60c6000fa2842414200a3423d4114b61d4014b871ae00082f002f0e4ebadd962f0e26004ebade024fef000cc6804a836700ff4c6000fb6477026000f71a2f024ebaec50a3412240203900000000e9888081721824004242484223c00000000020422400e2aa2200e08913c2100f8f20340813c2100f8f2113c1100f8f22420113c0100f8f2350c075fc0100134114cf1341138a1341136f50c113400009134014b9203cff00000023420032234014b513c18000669413c18000669513c18000669613c1800066974a2914ce6630200906800000002641e900164218b1c066fa50c24200323c010013420026134214be74011340002a334114c21342136c70011340000c241f4e752f0a2f024ebaeb84720e2440203900000000e9888081240022004242484223c00000000020427418e4a9224122003409e08913c2100f8f20340813c2100f8f2113c1100f8f2213c0100f8f23303c00ff420174013540000850c015410012154114cf1541138a1541136f223cff0000003542000b254114b54202154014b913c08000669413c08000669513c08000669613c080006697154214ce4a2a0034672a71ea00320c8000000e0f621e424015420034354000322f0a4ebae9d87201588f15410035241f245f4e7542404202354000321542003450c22f0a4ebae9b6420115420026588f200a06800000002641ea0016154100351541002a4218b08866fa220a06810000136b41ea00534218b1c166fa4202424050c11542138a3540136b154114be1542136f203cff000000254014b5241f245f4e754feffff448d7040c4ebaea48223900000000e9892440a540828070182401260142424842e0ab2001e08823c10000000013c3100f8f20424313c2100f8f2113c0100f8f2213c1100f8f23354300324a2a14c2661e102a00395280154000392f0a4ebae8f84cef040c000442804fef00104e75207c100f83781210227c35fc5b49d3c8719152887581b08266c84a016708b1fc100f847866e04200154014c22f0a4ebaed902f0a24004ebad056508f4a826f3c424015420026354000284a2a002a67924a2a0034678c760113c380000010102a00395280154000392f0a4ebae87c4cef040c000442804fef00104e75a14260c04fefffe848d70c3c4ebae956740947facc40a9412600280320390000000006840001773a06830001783ee98880812a0022004245484523c00000000020457a18eaa9224122003a09e08913c5100f8f203a0813c5100f8f2113c1100f8f2213c0100f8f23487900000000247c400163882f022f044e934879000000002f022f034e9342a72f042f034e9252824fef00240c820000008166cc4879000000004879000000002f0447facc8e4e934879000000004879000000002f034e9342a72f042f034e924fef00202ebc000000004879000000002f044e934879000000004879000000002f034e9342a72f042f034e924cef0c3c002442804fef003c4e754fefffe048d71c3c4ebae858740947facb42a7412840280c203900000000260c06840001773a06830001783ee98880812a0022004245484523c00000000020457a18eaa9224122003a09e08913c5100f8f203a0813c5100f8f2113c1100f8f2213c0100f8f2350c042012a3cff000000294514b5194014b9194114cf1941138a1941136f13c08000669413c08000669513c08000669613c080006697194114c270014241194014ce39410032487900000000247c400163882f022f044e934879000000002f022f034e9342a72f042f034e9252824fef00240c820000008166cc4879000000004879000000002f0447facb484e934879000000004879000000002f034e9342a72f042f034e924fef00202ebc000000004879000000002f044e934879000000004879000000002f034e9342a72f042f034e924fef00244a806d563a3c0100394500342f0c4ebaeaf6588f2f0c2f4000204ebacdb8588f202f001c4a806f2e424519400026394500284a2c002a6708700113c080000010122c003a428052811941003a4cd71c3c4fef00204e75a14060ce72f4b28066a4303c0100394000342f0c4ebaea9a588f220c06810000136b41ec00534218b28866fa323c01003941136b4a806e9a60c64feffff02f0a2f024ebae68c22404a29000c67401039100f8f101239100f8f1130411239100f8f1275b9100f8f132f42000a7418e5a834087381e189758248424242808280af000a80810c80415342316700018e70011340000c1239100f8f101439100f8f111039100f8f12304275b9100f8f1371802f42000a7418e5a9e1883408758248424242828282af000a82800c8141534231660e71b9100f8f14720fb28064000086223900000000700f420245ef000de989134200088280240120014242484223c10000000020427418e4a834082f40000a2001e08813d2100f8f2013c2100f8f2113c0100f8f2213c1100f8f234a2914c06d1a4201134114c02f094ebae49c588f241f4280245f4fef00104e754a39100f8f176cde7001134014c12f094ebae47a588f60dc1239100f8f181439100f8f19207c100000041f42000a1039100f8f1a1f400013203c811c9dc575b9100f8f1b2f4200147418e5a975af000a2f42000e75af00132f42000a242f000e484242422f42000e82af000e242f000ae18a82af001482822f41000a7398b380223c010001934c010800b1fc1001614c66eab0af000a6600fefc207c100f8f14a34113500008247c100f8f151352000b1039100f8f16b3804a0057c04480134000124a2914c06c00ff1e6000ff341039100f8f1c1239100f8f1d30411239100f8f1e75b9100f8f1f2f42000a7418e5a834087381e189758248424242808280af000a8081b0a9000e6600fe38241f4280245f4fef00104e754fefffec48d7003c4ebae46242022240303c010042a914ca42a914c61342138c3340138a4a29136c660000b81a2914b671a9005775b1085b1f450013674473a914bcb280670000ae4a8267000086c0fc012077a90008428141f1086b7190b6806734528141e80012b28265f04a2f0013666050c5134513914cd7003c4fef00144e754a8266c850c0134013914cd7003c4fef00144e751039100b14d1af4579a80001c085b08466ba10011341138b4a2f0013665250c3738013431391ad42b48164b65d801340138c4cd7003c4fef00144e75136914bb13914cd7003c4fef00144e752f094ebae584588f4cd7003c4fef00144e75162914bb7383b282640e1343138b100360b0162914bb60aa4a826600ff3e134313914cd7003c4fef00144e754fefffb848d7441c4ebae3422c40702db0af004c677c226f004c720fb2896500024c4aaf0050670000d475ee138e7201ab43b682640001b442441d4113903d44138e4a2e138a670000d07027b0af004c6600072e4a2e1393670007fc4a2e136c670008f677fc0080a36f00182f43001c242f0018262f001c41f62c0087a814c6a36f001c4cd7441c202f001c4fef00484e754aaf005056c044801d40002c4a2e14cf670001204a2e138a6600164a327c002d4aaf005066000854202f004cea80a344721fc2af004cc880a340e3a8204445f68c00222a14c62401c4804a826700082c2f480050282f00504680c08141f64c00214014c6a36f001c60884a2e138a66000108282f004ca340222e14c6e9a82400c4814a8266ce4a2e002c660000baa36f001c1239400c0b401439400c0b4178181039400c0b4277b9400c0b43e9a97582718048424242e188828282838280670000864aaf00506700ff264aaf001c670002564a2e13906700ff1a4a2e13706600ff1271ae0008b3c06700ff084a2e00096c00ff004ebae2ee4a8067000296780fb8af004c6500fee842001d6f004f00091d40000a42a74eb940022cd4588f4a806d00072e7601a36f001c1d4300376000fec24a2e138a6600152c327c002d4aaf00506700fee442af001c4cd7441c202f001c4fef00484e75420142441d4113903d44138e4a2e138a6600fe4e6000ff184a2e138a670001f4701fa941c0af004c20402408202f004ce688c081a341e5a941f60800202814c62601c6804a8367a64681c280702d214114c6b0af004c67967227b2af004c670004ea7628b6af004c6600fe2c4a2e13926700ff7c4204a36f001c1d4413926000fe1a702eb0af004c660000d24aaf005067864a2e002c6708323c01003d41002d4a2e138a6700ff48701fa344c0af004c222f004cea81c881a341e1a92f4400182f41001c4a2e136c66000496122e0057780fb8af004c6c0005e075811636285b2f4200242f420020743179831f43002820442004b4af004c670007b86d00072c7621b6af004c67000b166d000a26102e138b7820b8af004c660e73805281b288640652801d40138b7380204173ae138cb28863061d40138c22085e81b2886200fd46242f00185d801d40138c262f001c41f62c0087a814c66000fd3c742ab4af004c66000d604aaf005056c044801d4013704aaf0050660e420442af001c1d4414cf6000fe6e103946c7dd76163946c7dd777418183946c7dd7873b946c7dd7942af001c2f410014e5a87783738448434243e189808380af001480810c804005e4c857c044801d4014d26000fe264a2e00096c00fcc24a2e1370670003447621b6af004c6700035ca16f00144ebae09e2f40001c4a80665c487800304879000000004eb94005a2b8508fa36f001c6000fc8a222e14ca0801000e6700fdd271fc4000a36f0050282f0050468041f64c00c081214014c66000fcd4487800304879000000004eb94005a2b8508fa36f001c6000fc481039400c0ba81039400c0ba91039400c0baaaf44222f0014af4271b9400c0babc880d2842f4400182f410020b4816500fc16300477fc161442af0024222f00144c031800c0fc16140680100016182f400014206f001441e8e9ec101043f0180010d11280b1ef001466f0d1fc0000b0a02f4800147008b0af0024660002b443ee006ca3412f49001441ee005b242f00182242d3fc100161442f4800241f510030262f00202043d1fc10016144200112901f43002845ee006b227c1001614ce5a82f4a002c10af0030e7a9141130422408808280811280162e00081f43003079832244246f002452af0024101a67307180206f00142208c0fc0012d28071a8ffffb08966127190b0af0018670001a8b0af0020670000e041e80012b28866de77fc0120206f0024d7af0014b1ef002c66b21039100b14d1af41c081b0af00186700047eb0af00206700015471af003073b60816b2af0018670003d6b2af0020670000ac420041ef0023781813c0400c0ba813c0400c0ba913c0400c0baa13d0400c0bab1239400c0ba01039400c0ba11439400c0ba277b9400c0ba3e9a9718022407182240948424242e188828282838280202f002090812200e8a9260042434843224122003409e08913c2400c0ba413c3400c0ba513c1400c0ba613c0400c0ba74eb940036e184cd7441c202f001c4fef00484e75740110af001b41e800121d42136bb2886600fef66000ff1443ef001b78181d910816420041ef002313c0400c0ba813c0400c0ba913c0400c0baa13d0400c0bab1239400c0ba01039400c0ba11439400c0ba277b9400c0ba3e9a9718022407182240948424242e188828282838280202f002090812200e8a9260042434843224122003409e08913c2400c0ba413c3400c0ba513c1400c0ba613c0400c0ba74eb940036e186000ff4c202f00182f004eb9400a03a01f6e00080034588f6000fe98700110af002841e800121d40136bb2886600fe366000fe544ebadd6a4a806700fd1273ae00087621b6af004c6702a140d2802f41004c6000fa66a36f00146000fca44a2e13936700fa9e4202a36f001c1d4213936000f93c7832b8af004c6600f91e72044841a36f00182f41001c42001d40138a102e138b6000fba6206f001478082f44002441e8e9ec6000fd1a7228b2af004c6600fb0a4a2e1392660000f64a2e002c6700fa404a2e136c660002a471ae005774012f400014222f0014102e138b1236185b1d42139277801f41001b73812043b283636020085280b0816440362f00163408c2fc0012200e06800000008fc6fc0120c4fc001243f6387dd082d083d2892040224041e8ffee43e9ffdc12d8b1c066fa068000000012b28066e4102f001b282f001453801d80485b70011d40136b102e138b4a006700020a242f0014778073b6285bb283620007fc79fc010053801d40138ba36f00182f44001c6000fabe4a2e002c6700f97c4a2e136c6700028075fc0080a36f00182f42001c242f0018262f001c41f62c0087a814c66000f7fc4a2e136c660000ac77fc0100102e138ba36f00182f43001c6000fa724a2e13906700f7c84a2e13706600f7c07381b2af004c6700f7b670014241242f00181d6f004f0057262f001c41f62c001d40136b3d41138b87a814c66000f7a050c15e801d4100094a80670001de48780030203c000000002f004eb94005a2b8508fa36f001c6000f77a760fb6af004c6c00f8047834b8af004c660842af001c6000f8007021b0af004c6600f8aa42af001c6000f7eea36f0018242f001879fc010041f62c002f44001c262f001c87a814c66000f72a75fc0080102e138ba36f00182f42001c6000f9a841ef002378181d900816420041ef002313c0400c0ba813c0400c0ba913c0400c0baa13d0400c0bab1239400c0ba01039400c0ba11439400c0ba277b9400c0ba3e9a9718022407182240948424242e188828282838280202f002090812200e8a9260042434843224122003409e08913c2400c0ba413c3400c0ba513c1400c0ba613c0400c0ba74eb940036e186000fc2a202f00202f004eb9400a03a01f6e00080034588f6000fb767433b4af004c67487634b6af004c670002b87832b8af004c6700fd32102e138b6000f8dc4a2e138c670642041d44138c75fc0100a36f00182f42001c242f0018262f001c41f62c0087a814c66000f61e102e138b6700037c53801d40138b6000f89e4a00670008fe4a2e136c66000a507602484375ae0057a36f00182f42002071b6285b2f43001c4a2e002c660003744a8067884ebad9cc4a8066000544487800304879000000004eb94005a2b8102e138b508f6000f84848780030203c000000002f004eb94005a2b8508f6000fe2275ae00577801122e13941636285b2f4200241d4413931f43001b4a016700fe56738171832041721092802f4000202f410014b1c164042f4800144a80676073ae138b240152822f420020b0826350c0fc0012c2fc0012761243f6086b302f0026204141f6887d222f001453814c0138002209c0fc01202f430028d1c0d2802f48001c20010681ffffffee226f00282041d3c012d8b1c066fab2af001c66e4102f001b182f0017d0af00141f4400332f40002c4aaf001467000b4a322f0026342f001641ee1395362f0022200e0680000013a72f48001cc2fc0120c4fc0012c6fc001243f6186b2042d1c02f480028d3c32f490018226f0018206f001c12d8b1c066fa7812068000000012d9af001cd9af0018b0af002866dc122f003343ef002f206f0020246f00241d91a85b41f018ff720120081d41136b1d40138b71ae1394b0af00146300fd2e764c41ee13722f480014202f001441ee137743f9000000001f4300182440528914ef00181f510018200ab5c866ee222f002470095281b08164162001740a4c42000041ee13780680000000301d401377780a4c4410007220224845e800092f4a001c06800000003012c01f410018223c0000000012ef0018528124411f520018b3ef001c66ee420011400009487800302f2f00184eb94005a2b873fc0080508fa36f0018102e138b2f41001c6000f6384a2e13706600021ea148202f0024740fd088b4806500fd3e76014244242f00182008d0811d40005741f62c001d43136b3d44138b262f001c87a814c66000f3667029b0af004c6600fd0c4a2e002c6700fd044a846700fcfe322f002643ee13722f490014c2fc01204a2e13706700024a45f6187d3204200ac2fc00122041220e068100001395d1c12f4800202040224141e8ffee12d8b08866fa2008068100000012068000000012b2af002066de142f00287043226f001441f9000000001d42139412c052881010b1fc0000000066f2202f002476095280b680650002ce760a4c43000141ee137e06810000003010c14210487800302f2f00184eb94005a2b8102e138b508f6000f52e4a2e138c6700f2844203242f001841f62c001d43138c262f001c87a814c66000f27a4a2e13706600021ca3486000fed2222f00204200e9891d40138a1d4013701d40002c06810000126b428043f618004a31080067085280720fb28066f24a8067305380742073310800b48167f0487ad602a3672f094879000000004878000f4eb94007e6644fef0014102e138b6000f49c765322092009508141f9000000001f4300142440528814ef00141f500014200ab28a66ee202f002074095280b480641c2600780a4c4430032209068100000009204341e80030340813420008760a4c430004420024411540000120040680000000301480487ad57aa3672f094879000000004878000f4eb94007e6644fef0014102e138b6000f41471ae138b240053822f4200284a80677cb1ef00286f76322f0026c0fc001243ef004841ef00362f4900242f480014c2fc012006810000006bd08145f608002f4a0020224a10d9b1ef002466f8202f00283400c4fc0012d28241f6180022082248068100000012246f002052af002014d9b28966f2226f0014246f002452af001410d9b5c966ee72011d41136b1d40138b6000f38071ae138b244143ee1395c0fc001241f2086bd1ce200806800000001212d8b08866fa7001226f001441f9000000001d401394704312c052881010b1fc0000000066f241ee137d4210487800302f2f00184eb94005a2b8102e138b508f6000f320102e138b4a2e14b6674c72011d4014b91d4114b842a74eb940022cd4588f4a806d0674011d4200374203102e138b1d43138a6000f2ea71ae138b220052812f4100286000fed879fc0100a36f00182f44001c6000f2ca1d4014b542a74eb940022cd4588f4a806cba50c45e801d4414b54a806700069e48780030203c000000002f004eb94005a2b8508f102e138b6000f28e2200780a4c441001760a41ee137f0681000000301d41137e4c43000106810000003010c16000fd204a2e14cf67587033b0af004c67327220b2af004c660004864aaf00506700efb4122e14d075ae14ba71815280b4806300efa252811d4114d0a36f001c6000ef984aaf00506700ef8c102e14d06700ef8453801d4014d0a36f001c6000ef7a102e138a7831b8af004c660003f64aaf0050670002344a2e13706700f94e4a2e14b6670002b44a2e14b76600f93e4a2e14b8660002a44a006600f14c4a2e14d2660001c84a2e13716600ef2a1639400c0b401039400c0b411239400c0b4279b9400c0b43304371807618738148404240e1892408e7aa8082808480816700f04e4a2e00096c00eeee72011d4113712f0e4ebad3ac2f400020588f4a806700eed675ae005741ee13721636285b2f420014740f1039400c0ba81039400c0ba91039400c0baa1f43001b73831039400c0bab2f480020b48165000248af43c6807812102f001b342f00164c04180079fc01202f4300244880c4fc0120c0fc0012204241f0086d3003262f00144c043800d1cec0fc16142243d3c1d3ce136e0008006b136f0027006c2208068100000010224093c8d3fc100000041031880010c0b28866f6102f001b206f00147409724252801d80885b70011d4113721d40136b71ae00085280b4806400017a2600780a4c443003220e0681000013742043760a4c43000441e80030340822412441202f00240680000000315689204441e800301d42137374201340ffff70201342fffe340841f900000000148212c052881010b1fc0000000066f2202f001474095280b480650001c42c41720a4c4100024dee001220020680000000301cc04216487800302f2f00244eb94005a2b8508f4cd7441c202f001c4fef00484e75102e14d3ad4272011d6e14bb14d0204eb5801d4114cf1d41137173ae14ba4a0057c0710091c0102814d47780b283620250c01d4014d1a36f001c6000ed324a006670222e14ca08010011660001904a2e1371671642001d401371a36f001c6000ed0e4a2e13716600ed024a2e13706700ee521039400c0b401839400c0b4176181239400c0b4275b9400c0b43e7a87984738148444244e1898084808280816700ee224aaf00506600fdce42001d40137160a8202e14ca080000116700ee0608800011a36f001c2d4014ca6000eca24a006700fd686000f690760a4c4300047420220e06810000137322412441202f0024068000000031134000022044568941e8003070201342fffe340841f90000000014826000fe9a724c202f002041ee137743f9000000002440528914c11211200ab1ca66f2202f001472095280b28064182400760a4c43200241ee1378224243e9003038091d441377740a4c4200014de80009702043f90000000006810000003010c110c052891011bdc86700fe6410c052891011bdc866ea6000fe562600780a4c4430032c412241720a4c410002204341e8003036084dee00132002068000000030134300121cc06000fe2672024841a36f0018242f001841f62c002f41001c262f001c87a814c66000eb9070024840a36f0050282f005041f64c004680c081214014c66000ebea4a006700eba04aaf00506600eb30701fa941c0af004c20402408202f004ce688c081a341e5a941f60800202814c62601c6804a836700ec946000ecea7631b6af004c660001804aaf0050670001124a2e13716600eb1e79ae14ba71ae14d02f44001cb88063323400220e06810000160a2240c4fc16142042d1c12f48001412101628000141e8161482834a01660000de5289b3ef001c65e673ae14bbb0816700ead2122e14d31f4000181d4014d11f4100174a2e14b66700eaba4a2e14b86600eab2b0af001c6400eaaaad42b5814a0157c144817781324145f6380073aa14d420432f4a001cb2806700ea88c0fc16145c882f4800202040300941e815f8d1ce22080681000016144a00670000a871fc161490882240d3fc1000847b101813808800b28866f6122f0018206f001c71af00175d80114114d412391001614c4a80665c707fc28013c11001614c2f2f00204ebab53e588fa36f001c6000ea1a4203a36f001c1d4313716000ea0cb3ef001c6400ff26206f001477fc1614142800011210d7af00143042280882844a016600ff085280b0af001c65da6000fefc70bfc28013c11001614c2f2f00204ebab4e2588f60a2428090882240d3fc1000847b6000ff5a4a2e138a6600fe3c4aaf00506700e9da6000f228226f002441ef002f1d90985b6000f52c4aaf00506700eb0e42af001c6000ead848780030203c000000002f004eb94005a2b8508f6000f9624fefffe8207900000000203c4153533548d70c0c266f001cb09067000384207900000000223c41535335b290670005fe4ebacbfc24404a8b671020390000000073aa0008e988808126804a2a001367084a2a00096d0004ac302a003273c00c8100000f9f6206528035400032142a00266b00064a4a2a00096d0004301039460d1aec1439460d1aed1639460d1aee73aa002f2641324230437618e7a875b9460d1aef32093608738122417383260948434243e18980838082808156c144817581b48b674a1541002f4201154100304a8067000308203900000000720ce988808172182400260042424842e2ab2200e08923c00000000013c3100f8f2013c2100f8f2113c1100f8f2213c0100f8f231039460d1aec1439460d1aed1239460d1aee77b9460d1aef22437618e7a830427381142a002de189360877834843424380832609808380816700024470011540002b4a026714102a002e743c528073801540002eb4816500033a4a2a002a670e4a2a00096d0000984200154000304a2a14b7670000ce4a2a00096d0005ca4a2a14b6670001804a2a14c267264a2a003466184a2a14c3661271ea0032743cb48064084a2a00096d000ad64a2a14b66700015c142a14be6b084a2a00346700024c2f0a4ebab59c588f4a2a000a671842031543000a487800304879000000004eb94005a2b8508f4a2a000867084a2a00096d0004084cd70c0c4fef00184e754a2a00266c00ff644a2a00136600ff5c4a2a00366600ff54102a003074775280738015400030b481641242031543002a154300304a2a002b66000b104a2a14b7660005064a2a14b6670000bc4a2a14b86600ff3671aa14d35d804a8067000b321039100b14d1af43428241f22800ad4b122814d4c083b7c06700079271810c80000000ff6700081410398000669414398000669512398000669677b98000669720437618e7a87582738148424242e1898082240880828081b08b660008b21039400c0b401439400c0b411239400c0b4277b9400c0b4320437618e7a87582738148424242e1898082240880828081660008444a2a14c26700feb44a2a00346600feac6000fe904a2a14c26600fe824a39100f8f176c00fe9e142a14be6a00fe9c4a2a14b56c00fe9c4a2a00096c00fe944a2a136e6600fe8c4a2a00346600fe8471ea00320c80000000f06300fe764ebac9fc4a806700fe6c42a74eb940022cd4588f4a806d00fe4e7001142a14be154000371540136e4a026c00fe406000fe444a026700fdd842011541002b1541002d6000fdca20790000000071e8138e0c800000ffff6700fc6c207900000000223c415353353028138e52803140138e207900000000b2906600fc5c60000254203900000000720de988808172182400260042424842e2ab2200e08923c00000000013c3100f8f2013c2100f8f2113c1100f8f2213c0100f8f236000fcf871ea00320c80000000f06300fdaa4a2a00266c00fda24a2a00096c00fd9a4a2a00136600fd924a2a002a6600fd8a4a2a14b66600fd824a2a136c6600fd7a4ebac9004a806700fd7071021032085b672e122a14bf718030417381b2806420360815420057154314b542a74eb940022cd4588f4a806d000a5c72011541003750c2154214be6000fd3042031543002d6000fcc04a2a003566000330102a00366700fbc41239460d1e701439460d1e7130421439460d1e7277b9460d1e7322437618e7a936087582e18a7783484342438283260982838282670004f24eb940056bec4200154000366000fb7c4a2a0014670003c44a2a14be6d0003ac420315430015154300131039460d1aec1439460d1aed1239460d1aee77b9460d1aef20437618e7a87582738148424242e1898082240880828081660006724203154300141039400c0ba01439400c0ba11239400c0ba277b9400c0ba320437618e7a87582738148424242e1898082240880828081664271aa000842031032081613c3400c0ba413c3400c0ba513c3400c0ba613c0400c0ba771aa00081032081613c3400c0ba813c3400c0ba913c3400c0baa13c0400c0bab1039400c0b401439400c0b411239400c0b4277b9400c0b4320437618e7a87582738148424242e18980822408808280816700fa5c4eb940036e186000fa52223c00017738767730321800528075c0b6826500033e358018004cd70c0c4fef00184e752079000000004a2814b66600035c428041f90000000043f900000000223c000000004a80671242185289b1fc000000006700f9d24a8066ee10d9b1c16700f9c610d9b1c166f26000f9bc50c3732f0014752a14be15430009b481670c122f0014154314b5154114be42025e80154200144a806716302a0028528073c0354000280c81000046506300080450c015400026142a14be6b7e4a2a0035677871ea0032721db280646e4a2a00096c00f9a44a2a14c26600fdd24a2a14b66600fdca4a2a14b56c00fdc24ebac6644a806700fdb84a2a136c6600fdb0102a14bf730273b2185b7780b2836300fd9e154014b550c015420057154014be42a74eb940022cd4588f4a806d0007c2700142011540003715410035102a00366700f9364a2a00096c00f92e6000fd684a2a14c467000216ad67267c400a03a04e93588f4a806d0001c6420171aa14d5154114c4154114b70c80000000ff6708af674ebaacf8588f1039460d1aec1439460d1aed1239460d1aee77b9460d1aef20437618e7a87582738148424242e189808224088082808166064eb94005200c4a2a14b66700fb484a2a14b76700fa864a2a14c26600f9c06000f9e271ea0032761db6806400fcc84ebac56a4a806700fcbe15420009122a14be74011f410014154200144a016d2e4a2a136c66284a2a14b66622102a14bf730173b2185b7780b2836312122f001450c2154014b515410057154214be42a74eb940022cd4588f4a806d0006687601af4815430037223900000000240815400038e9898282260124014243484323c10000000022437618e6aa26422401360be08a2042340913c3100f8f20360813c2100f8f2113c3100f8f2213c1100f8f234a806d00fdd650c0420115400026102a0036154100354a006600fe926000f7c24a2a14b7660004fa4a2a14b6660004f271aa0008267c400a03a071b208162f004e93122a0014588f4a806d000112420315430015154300134a016700fc581039460d1aec1439460d1aed1239460d1aee77b9460d1aef20437618e7a87582738148424242e18980822408808280816700fc2460000290102a14c4761d52807380154014c4b6816400fe804ebac4104a806600036e4203154314c46000fe6c4240358018002f4a001c4cd70c0c4fef00186000c1c84ebac3e64a806700fde44eb94009ae48ad67267c400a03a04e93588f4a806c00fdde609e1039460d1aec1439460d1aed1239460d1aee77b9460d1aef43f90000000020437618e7a87582738148424242e1898082240841f90000000080828081223c000000004a8056c0710044806000fc6e528073800c81000000fa630001ca4201154100366000f684142a00154a01670002627182721db280650001c25282154200156000f64271aa14ba22407181b0896400f866a341b58176802f4100142f012f0a2f4800184ebac49c206f0018700f508f122814d4c081154114bb808313c0100f8f17300b73aa14ba154014d371aa14bb22412640528bb28b6322c0fc161441ea2c1ed1c010101228000141e8161480814a0066000376528bb3cb62e850c0206f0014d1ca114014d44a2a14cf6704154014d110398000669414398000669512398000669677b98000669720437618e7a87582738148424242e189808224088082808152804a806700f7ee50c013c08000669413c08000669513c08000669613c0800066972f3c400c0c412f3c460d17ae4eb940000c3c1039400c0b40508f1439400c0b411239400c0b4277b9400c0b4320437618e7a87582738148424242e18980822408808280816700f7c04ebac2164a806700f7b64a2a00096c00f7ae7601154314b842a74eb940022cd4588f4a806d0003667201154100374a2a14c26600f7926000f6402f0b4ebaa9021039400c0b401439400c0b41588f1239400c0b4277b9400c0b4320437618e7a87582738148424242e18980822408808280816700f74a6088154000366000f4bea3674eb940055fd8588f6000f9844ebac1884a806700008e1039800066a01639800066a11239800066a2304377b9800066a3738122437618e7a8e189360877834843424380832609808380816756203900000000720be988808172182400260042424842e2ab2200e08923c00000000013c3100f8f2013c2100f8f2113c1100f8f2213c0100f8f234eb94009ae4871aa000871b208162f004e93588f4a806c14142a001552827182154200157477b4806400f3e64203122a001415430015154300134a016700f8ca6000fc704ebac0ca4a806700f52442a74eb940022cd4588f4a806d00f514760115430037154314c34a2a14b66600f50a6000f6601039800066a01439800066a11239800066a277b9800066a320437618e7a87582738148424242e18980822408808280816700fc62203900000000760be988808376182200e6a924004242484223c000000000204122003608e08913c3100f8f2013c2100f8f2113c1100f8f2213c0100f8f234eb94009ae48ad674e93588f4a806c00fa3071aa14c4741db4806400fa7a4203154314c46000fa701039460d1aec1439460d1aed1239460d1aee77b9460d1aef20437618e7a87582738148424242e18980822408808280816600f4c04eb94005200c4a2a14b76700f4ba6000f3ea1039100b14d1af43a34241f22800af4b122814d4c083b7c06600f4d26000fc5e420115410015154100131039460d1aec1439460d1aed1239460d1aee77b9460d1aef20437618e7a87582738148424242e18980822408808280816700f7586000fdc4b3cb6300fc8e360baf409082c0fc1614c6fc16142240204341e815f8d1ca93c82208d3fc10000003068100001614101813808800b28866f6300b206f0014d1ca227c1001614c5382114014d410114a826600008e74bfad4bc0821280122814d44a2a14cf6700f42475aa14ba7181b082640000a0154114d110398000669414398000669512398000669677b98000669720437618e7a87582738148424242e1898082240880828081b08b6700f4206000fccc307c00086000f99c4a2a00266d00f7fe102a00366700f1b66000f5f04200154014b84a2a14c26600f42e6000f2dc767faf4bc08312806000ff7250c0154014b56000f2dc50c15e80154114b54a806724154214be102a00366600f83e6000f16e50c1154114d10c80000000ff6600f3766000fb8450c2154214be60d84fefffb048d77cfc2c6f00544ebabcf424404a2a138a660002b24a2a14cf670002f84a3900000000670003c6420541f90000000049f90000000013c50000000013d0460ba98c41f90000000013d4460ba98d49f90000000013d0460ba98e13d4460ba98f4a2a14cf660003864a2a138a670002e0260ea544a34543ee00b8068300000340af46cc8424052004e680af412649928041f11800d283edaa468210105088c0821140fff8b28866f252847c3fbc8466d0a5404282a544a34599cc99c2d9ce220593c91c2c00bfe9a993c2d3ce5280af44c8802400e68291c826057e3e8c8191c2d1cee9ab194600bf1c2903378286134103371228033f82831141033fbe8066b8122e00b841ee0338142b0007102b00087620a94482837a40508b848480851741fff81742ffff16801200b1cb66da4a2a136c660007e477aa00577c0a7e09240f0682000000387bb2385b22054c4610004c461001068000000030be85640005462f02207c2f3136002f032f0e2f4800462f0a0681000000301f4100481f4000494ebab6504fef0010102a138c4a2a14b66700077e79aa14bc122a14bbb883670007d471801541139173fc0120367c000b42844bfab5a64c0318002f41002c3203c2fc012049f2186dd0842f400034b085640002102e2f00347c1270094c0768002206d2af002c2f46003073b2186b5281b081640007102c017e0a4c47600643ef0039204641e800303c081f4600387e0a7c094c471000722e2e2f0030deaf002c134100012200068100000030128173b2786c5281bc8165000686700a4c401007302f0036722041e9000243e800020687000000301087c0fc001211410001220806810000000e41f40800101052884a006700069812c0b28966f020412e0b421052872f022f074878001d2f0e4e954fef001071aa138cd0844a2a14b6670a73aa14bcb283670005f273aa138bb081670005cc5284af40b0846700012871aa138c5e8b6000ff044a2a136c670005284a39000000006700fd8a420541f90000000049f90000000013c50000000013d0460ba98c41f90000000013d4460ba98d49f90000000013d0460ba98e13d4460ba98f6000fd4e1039400c0b401439400c0b4178181239400c0b4277b9400c0b43e9a87582738148424242e189808280838081660006224a39000000006600fcdc1039400c0b401439400c0b4178181239400c0b4277b9400c0b43e9a87582738148424242e1898082808380816700036e1039400c0b401439400c0b4178181239400c0b4277b9400c0b43e9a87582738148424242e189808280838081673671aa000847faa80420404868000148790000000042a72f0e4e9371aa00572840486c0001487900000000487800372f0e4e934fef00204cd77cfc4fef00504e75260ea544a34543ee00b8068300000340af46cc8424052004e680af412649928041f11800d283edaa468210105088c0821140fff8b28866f25284703fb08466d0a5404282a544a34599cc99c2d9ce220593c91c2c00bfe9a993c2d3ce5280af44c8802400e68291c826058c8191c2d1cee9ab194600bf1c2903378286134103371228033f82831141033f723eb28066b8122e00b841ee0338142b0007102b00087620a94482837a40508b848480851741fff81742ffff16801200b1cb66da7daa14bb7faa14d177aa14ba79aa14d0200672092f4600342f4700305280b2806400015822007a0a4c4510017c0a7e2f41ef0039240f0682000000380681000000301f4100384c4600011147000170090681000000301081b0836500014443e8000222037c0a4c46100042070680000000301280134700012e042f0271aa14bc2f002f0e2f0a4ebab2a04fef0010ad40b0846302ad473007367c000b45ea146c5d87c0fc0012d5c0b6876300fe8cbeaf00306700031870201f400038720971925280b280640002d822007a0a4c45100141ef003a0681000000301f4100397a0a4c4500017c2e06810000003010811146000171aa000128407009528cb08c6500025a2a0c7c0a4c4650007a2022085481204128412a4122414bed000e548906800000003011450001188041ea0002101052884a006700027012c0b3cd66f042154beb00012f022f0d487800192f0e4ebab1604fef0010beaf0034675eb887676e52875e8b45ea0012703cb08b6600ff3a4cd77cfc4fef00504e757c0a4c4600017e2f240f06820000003820427009068100000030108111470001b0836400fec020037a0a4c45000043e80003068000000030114000026000feaabeaf0030679c2f0d2f0e4ebaa726508fb8876692486b0006487800652f0b487800182f0e4ebaa4364fef001452875e8b45ea0012703cb08b6600feb46000ff782f02287c2f3136002f032f0e1f4000442f4c00452f0a4ebab1164fef00104a856600fac24879000000004878000c487800192f0e4ebab0804fef00104cd77cfc4fef00504e75103946c7dd76143946c7dd77123946c7dd7877b946c7dd79e9a87582738148424242e1898082808380810c804005e4c86600fc621039460d1e701439460d1e711239460d1e7277b9460d1e73e9a87582738148424242e1898082808380816600fc341039460d1aec1439460d1aed1239460d1aee77b9460d1aefe9a87582738148424242e1898082808380816700fc064a2a14b6663a102a14be6b164a2a136c6610710073aa14bf75b2085bb48162000256102a14b56b1073aa0057710075b2185bb480620002224a2a14b76700fbc671aa14ba2f0071aa14bb2f0071aa14bc2f002f0e2f0a4ebab1184fef0014102a138a6700fba0260ea544a34543ee00b80683000003406000f88e71aa00572f004ebaa51e588f6000f85e2a0c7c0a4c4650057c0a2208568122452a0c43e9003030092a412841224154894bed000e114000024c4650007a20204106800000003011450001188041ea00026000fd9241ef00396000fd3a2a4942154beb00012f022f0d487800192f0e4ebaaef64fef0010beaf00346600fd966000fdf0703e6000fce8486b0006487800652f0b487800182f0e4ebaa2324fef00146000fa1c73aa14bbb0816600fa082f072f0e4ebaa4ee71aa138c508f73aa138bd084b0816600f9f860be2e01700a4c407007700a41e90003068700000030134700024c401007302f0036722043e800020687000000301087c0fc001211410001220806810000000e41f408006000f96822426000f90622096000f96c50c171806000f88e487900000000a967487800192f0e45faae324e924878000948780065a767487800182f0e4ebaa1824fef00202ebc000000004878000c487800192f0e4e924fef00104cd77cfc4fef00504e7571aa00082f004ebaa3ae588f6000f6ee7daa13917981b8866700f8247180b8856400f81e1541138bb08463061541138c200420405e88b1c46200f80620015d801541139173fc01201540138c7180367c000b4c03180042844bfaad9c2f41002c3203c2fc012049f2186d6000f7f82f022f002f012f0e2f0a4ebaaf0c4fef0014102a138a6700f9946000fdf22f022f012f006000fdd425643a25643a2564000000000000000077007200776f726b00617272626f6f6b0062616b006172726c69737473006172726c656e64005345544c495354200041525220420053544c3a0025643a252e0025643a257300736c0053544f5020544f2052454144205345544c495354530052454144494e47205345544c49535453007374726400434f50494544204c4953542000434f5049454420534f4e47004c49535420002049532046554c4c004e4f2050524f4a454354004341524420425553590020414444454420544f204c495354200053544f5020544f2053544152540053544f5020544f204d4f56450053544f5020544f204348414e474520424f4f4b00424f4f4b2046494c45204552524f52005345544c495354530052454144494e472e2e2e00454d50545900000d0e0f100a0b0b0c25643a25643a256400005345544c495354204e414d4500007b6f2c9773e772cf5bc979cf79ef72927bef7bcf6bae2b6a5bad49277497388e74920000001b0000000d0000000100000000000000000000001b0000000d000000010000000000000000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000000000000000000000000000000000007ff0000047100000555000005550000047100000471000005550000055500000555000005550000055500000555000005550000055500000555000004710000047100000471000007ff0000000000000000000000000000000000000000000000000000000000000000000007ff0000040100000525000005250000040100000401000005250000052500000525000005250000052500000525000005250000052500000525000004010000040100000401000007ff00000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000400fff1000000000000000000000000030000010000000000000000000000000300000300000000000000000000000003000005000000000000000000000000030000060000000c000000280000007a0200000100000015000000a200000070020000010000001e0000011200000072020000010000002800000184000000e602000001000000310000026a00000066020000010000003e000002d00000007c020000010000004a0000034c000000b00200000100000055000003fc000000ba020000010000005e000004b60000008c020000010000006c00000542000001a40200000100000077000006e60000009202000001000000810000077800000088020000010000008b000008000000011c02000001000000930000091c000000b8020000010000009e0000002f0000000000000006000000a3000000350000000000000006000000a80000003a0000000000000006000000ae000009d40000028202000001000000bb00000c560000008002000001000000c200000cd60000007602000001000000c8000000200000002201000007000000ce00000d4c0000016402000001000000d400000eb00000007c02000001000000de0000005a0000000101000005000000e9000000560000000401000005000000f300000f2c0000008a020000010000010c00000fb60000007402000001000001220000102a00000168020000010000012c0000005c00000168010000050000013500001192000002da02000001000001460000146c00000484020000010000029e000018f000000078020000010000014e0000196800000118020000010000015800001a800000031c020000010000016200001d9c000000f8020000010000031d00001e940000010c020000010000016b0000000a000000040100000300000171000001c400000004010000050000017700001fbe000000d4020000010000017f00002092000000aa020000010000018b0000213c00000138020000010000019500002274000001ce02000001000001a0000000750000000000000006000001a6000000820000000000000006000001ac000000b20000000000000006000001b2000000120000000d01000007000001ba000000080000000a01000007000001c2000000040000000401000007000001c900000000000000040100000700000000000000000000000003000007000001d0000001420000006c01000007000001dc0000006a0000006c01000007000001e6000000d60000006c01000007000001f4000001c80001895a01000005000001f7000000000000000010000001000002070000275000000af012000001000002110000001a0000000010000001000002210000002100000010110000050000022f0000000000000020110000050000023c0000002000000001110000050000024b000000340000002211000005000002580000003100000001110000050000026200001fa00000001e1200000100000270000024420000005a120000010000027c000000000000000a11000003000002890000249c000000881200000100000296000025240000008812000001000002a3000025ac0000015e12000001000002af0000270a0000004612000001000002bb00003240000000ca12000001000002cb0000330a0000013812000001000002da00003442000000f212000001000002ec00003534000000fe12000001000002fe00003632000001cc1200000100000312000037fe0000022a120000010000032300003a2800000120120000010000033400003b480000171e120000010000033b0000526600000f2c120000010000034300006192000009fe120000010000034b00000042000000281100000700736f6e67626f6f6b2e63007075745f64617461006765745f64617461006172725f7772697465006172725f706174680070726f6a6563745f66696c650077726974655f706c6163650077726974655f626f6f6b006172725f726561640077726974655f6368616e67656400726561645f6c69737473007365745f636861696e006e6f74655f726561640069735f636f7079006c6973745f7469746c65002e4c4338002e4c4339002e4c433130007469746c655f666f6c6c6f7700696e7665727400676c79706800474c595048006c6162656c00747269675f6c656473006c6564735f73686f776e006c6564735f6b65707400706c6179696e675f6d61726b2e636f6e737470726f702e3000726561645f626f6f6b2e636f6e737470726f702e3000676976655f6261636b006c656e645f627566006c656e642e636f6e737470726f702e3000736c5f6c6f6164007469746c655f726f7700647261775f6d61726b0072656d656d6265720073745f61740065766c6f670073746f70706564006c697374735f72656164790074616b655f6261636b00726561645f706c616365002e4c433136002e4c433137002e4c433232007469746c652e330073746f636b2e3200626f6f6b2e31006c6973742e300049434f4e5f4e4f524d414c0049434f4e5f4d41534b0049434f4e5f53454c45435445440073740061735f7772697465725f656e7472790061735f7772697465720061735f73746f636b5f7772697465720061735f636861696e5f746578740061735f7469746c655f666d740061735f7469746c655f696e6465780061735f6f776e5f6e616d65730061735f6f776e5f6f6b0061735f6c6973745f6e616d65640061735f706f735f66696c6c0061735f636f756e745f666d740061735f686561645f66696c6c0061735f686561645f746578740061735f6c6973745f726f770061735f686561645f6669740061735f70726f6a6563745f6c6f61640061735f70726f6a6563745f6e65770061735f70726f6a6563745f6c6f616465640061735f70726f6a6563745f73746f7265640061735f70726f6a6563745f72656c6f616465640061735f6d6f64756c65735f72656164790061735f7365746c697374735f6f70656e0061735f6b65790061735f7469636b0061735f647261770061735f7365746c697374735f69636f6e000000036c0000050100000004000003de00000501000000110000071c00000401000000210000074400000401000000210000074c0000040100000031000009fe000014010000000500000a30000004010000000500000a4c000004010000002000000b20000015010000000400000b54000004010000000300000b66000004010000002000000b86000016010000000500000bde000004010000002000000c04000004010000002000000eb4000004010000005a00000ec2000004010000005600000ece000004010000005700000eda000004010000005800000ee6000004010000005900000f02000004010000005a0000104a0000040100000061000011640000040100000061000011d80000040100000044000011f20000040100000044000011fe00000401000000550000121800000401000000550000121e000004010000003100001224000002010000011200001268000004010000006000001278000004010000005c0000128400000401000000610000128a0000040100000062000012920000040100000044000012a200000401000000550000138400000401000000610000139a0000040100000060000013ac000004010000005c000013b20000040100000062000017dc00000401000000c4000017f00000040100000062000018ce000004010000006100001f1e00000401000001c40000224400000401000001c4000022ea00000401000001c40000232000000401000001c40000241a00000401000001c4000024680000030100000000000024c200000301000000000000254a0000030100000000000025f60000040100000031000026640000040100000045000026b800000401000000340000271a00000301000000000000289000000401000001c4000029e800000401000001c400002cf2000005010000001100002ea000000501000000040000325e00000401000001c40000332a00000401000001c40000346e00000401000001c40000356c00000401000001c4000035fe00000501000000040000366c00000401000001c4000037440000050100000070000038c400000401000001c40000443e00000501000000a80000461a000005010000009d000047e40000050100000094000048ee000030010000000c00004b18000031010000000b00004bb800000501000000a800004e14000032010000000f00005254000005010000009d0000535800000401000001c40000565e00000401000001c4000058b0000003010000000a000058be000003010000000a00005ad200000401000001c400005c38000003010000000a00005e9200000401000001c400005f7000000401000001c4000061b6000004010000005a000061ce000004010000005a00006466000004010000005a0000647e000004010000005a000064dc000004010000005a00006adc000005010000010a000000400000050100000000000000b800000501000000020000012a00000501000000000000032600000501000000040000032c00000501000000090000041e0000050100000002000004880000050100000002000004f200000501000000040000052800000501000000040000055600000501000000040000055c0000050100000015000006f600000401000000220000077e000005010000000400000784000005010000001e0000096a0000050100000026000009ec0000040100000000000009f2000005010000002f00000a20000004010000000600000a5a000005010000004000000b0e000004010000000000000b14000005010000003500000b32000004010000000400000b4c000004010000000400000b78000005010000003a00000bc2000004010000000500000bf6000004010000000400000c0e000005010000004000000ce4000037010000002000000fe2000005010000000400001032000004010000005c00001054000004010000006000001088000004010000005c000010ac0000050100000046000010ee00000501000000040000114c000005010000000400001152000005010000001e00001172000004010000005c000011c00000040100000034000011e200000401000000450000122e00000501000000460000127e00000401000000640000129a0000040100000074000012c00000050100000004000012c6000005010000001e000012d6000004010000005c000012fc00000501000000040000133000000501000000040000135e0000050100000046000013920000040100000064000013d20000050100000046000013f800000501000000040000142600000501000000110000144e0000040100000034000015600000050100000011000016e60000050100000004000017d200000401000000840000183200000501000000040000183e000005010000001e00001850000004010000005c000018be0000050100000004000018c4000005010000001e000018dc000004010000005c00001e9e000003010000000a000020ec000005010000005f0000210800000501000000490000222800000401000001c40000228a0000050100000004000022900000050100000009000022b400000401000001c40000230800000401000001c40000286200000401000001c4000029ce00000401000001c400002a74000005010000000400002a7a000005010000001500002c40000005010000000400002c46000005010000001500002f00000005010000004600002f4200000501000000040000302400000501000000040000302a0000050100000015000030ec00000501000000110000310e00000501000000040000324c00000401000001c40000331800000401000001c40000345000000401000001c40000354e00000401000001c40000359a0000050100000004000035ac0000050100000070000035ce0000050100000004000035d40000050100000009000035e20000050100000070000035e800000501000000090000360400000501000000150000360e00000501000000700000361400000501000000150000364c00000401000001c4000036e00000050100000070000036f200000501000000040000371400000501000000700000371a00000501000000090000372800000501000000040000372e00000501000000090000374a00000501000000150000375400000501000000040000375a0000050100000015000038a600000401000001c400003f3000000501000000d000003f7200000501000000dd0000460000000501000000c200004788000005010000008e000048de0000050100000075000049a60000370100000012000049ca000005010000002600004a2e000037010000001200004b06000005010000008200004e0600000501000000b200004f6a00000501000000b200004f80000005010000008e00004fc400000501000000940000526c000003010000000a00005286000003010000000a000052a200000401000001c40000533c00000401000001c40000544e00000501000000f100005608000003010000000a0000561c000003010000000a00005632000003010000000a0000564200000401000001c400005894000003010000000a000058a40000030100000000000058aa000037010000000800005aba00000401000001c400005c14000037010000000800005c2e000003010000000000005e7600000401000001c400005f5800000401000001c4000061c20000040100000056000061c80000040100000057000061da0000040100000058000061e600000401000000590000647200000401000000560000647800000401000000570000648a000004010000005800006496000004010000005900006552000037010000000400006568000037010000000000006860000005010000011500006ab000000501000001010000000a00000401000001c80000004e000037010000014200000052000037010000006a0000006200003701000000d600000066000037010000006a002e73796d746162002e737472746162002e7368737472746162002e72656c612e74657874002e72656c612e64617461002e627373002e726f646174612e737472312e31002e72656c612e726f6461746100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000100000006000000000000003400006b90000000000000000000000004000000000000001b0000000400000040000000000000775c00000b040000000900000001000000040000000c0000002b00000001000000030000000000006bc40000000e0000000000000000000000040000000000000026000000040000004000000000000082600000000c0000000900000003000000040000000c0000003100000008000000030000000000006bd400018b22000000000000000000000004000000000000003600000001000000320000000000006bd40000011b000000000000000000000001000000010000004a00000001000000020000000000006cf0000001ae00000000000000000000000200000000000000450000000400000040000000000000826c000000300000000900000007000000040000000c0000000100000002000000000000000000006ea0000005600000000a0000003c000000040000001000000009000000030000000000000000000074000000035c00000000000000000000000100000000000000110000000300000000000000000000829c0000005200000000000000000000000100000000", + "sha256": "ba2dfb0424910b90e168d6281905708b99ffa261faaf7f48f571e1522490b3f2", "stockCopies": [], "placement": "linked", "poolBaseLiterals": 0, @@ -6007,8 +6007,141 @@ "note": "stock's arrangement writer: on book 1 stock's own, on another book its arr files; a switch's load" } ], - "refs": [], - "pokes": [], + "refs": [ + { + "address": 1074522018, + "guardLength": 4, + "guardSha256": "287ffea447755e17f0a18c206957c58befe5884e51aeacd01b1288b68977b8b8", + "unit": "songbook", + "symbol": "as_setlists_open", + "addend": 0, + "note": "the Arranger menu's CHAIN item opens the SETLSTS page instead of stock's CHAIN list" + }, + { + "address": 1074522014, + "guardLength": 4, + "guardSha256": "275b1a56ca5e1bcab85d9cf841ab703a3c460c75e3df375775731595d91ba3bf", + "unit": "songbook", + "symbol": "as_setlists_icon", + "addend": 0, + "note": "the Arranger menu's CHAIN item shows the module's list icon" + }, + { + "address": 1074102088, + "guardLength": 4, + "guardSha256": "795dc6cfb1685921bc7b4f9daa63057e86aeaaf4db9f8eade7c1905ad2264d24", + "unit": "songbook", + "symbol": "as_title_index", + "addend": 0, + "note": "the Arranger menu's title reads the module's index byte: stock's, or a setlist song's place" + }, + { + "address": 1074102100, + "guardLength": 4, + "guardSha256": "36090234aaf8da6473ef6287c669d45b122df464dc6e362e4fb57b96434c7ce3", + "unit": "songbook", + "symbol": "as_title_fmt", + "addend": 0, + "note": "the Arranger menu's title format: stock's ARR %d:%s, or SONG %d:%s in a setlist" + }, + { + "address": 1074040504, + "guardLength": 4, + "guardSha256": "e2e89d18ed05746774e2245fe0c4de629eff4a2fd2d2f6b9ddf329761393466b", + "unit": "songbook", + "symbol": "as_chain_text", + "addend": 0, + "note": "the arranger rows' chain line reads the module's text (the next song's name), not CHAIN ARR. %d" + }, + { + "address": 1074042598, + "guardLength": 4, + "guardSha256": "e2e89d18ed05746774e2245fe0c4de629eff4a2fd2d2f6b9ddf329761393466b", + "unit": "songbook", + "symbol": "as_chain_text", + "addend": 0, + "note": "the arranger rows' chain line reads the module's text (the next song's name), not CHAIN ARR. %d" + }, + { + "address": 1074026872, + "guardLength": 4, + "guardSha256": "6d1e8d40fec40c031c7d0e1243a5febcb4b4c0681f3d427a5e14eb39f677bd45", + "unit": "songbook", + "symbol": "as_count_fmt", + "addend": 0, + "note": "the arranger position right of the name on the main screen reads the module's format: stock's, or none in a setlist" + }, + { + "address": 1074026964, + "guardLength": 4, + "guardSha256": "cbde940c1c033965c21702d7f9c4da32c289c07e1eb72a1421fccdf362660df9", + "unit": "songbook", + "symbol": "as_pos_fill", + "addend": 0, + "note": "the position's box is filled through the module: stock's, or not while a setlist plays" + }, + { + "address": 1073991446, + "guardLength": 4, + "guardSha256": "cbde940c1c033965c21702d7f9c4da32c289c07e1eb72a1421fccdf362660df9", + "unit": "songbook", + "symbol": "as_head_fill", + "addend": 0, + "note": "the name bar is filled through the module: to x 88 as stock, or to x 116 while a setlist plays" + }, + { + "address": 1073991682, + "guardLength": 4, + "guardSha256": "cbde940c1c033965c21702d7f9c4da32c289c07e1eb72a1421fccdf362660df9", + "unit": "songbook", + "symbol": "as_head_fill", + "addend": 0, + "note": "the name bar is filled through the module: to x 88 as stock, or to x 116 while a setlist plays" + }, + { + "address": 1073991496, + "guardLength": 4, + "guardSha256": "ae8b4ae8ac913d4912b6768fcbf6dcf3e7dcd18236eb0b178067b08a5831dfbb", + "unit": "songbook", + "symbol": "as_head_fit", + "addend": 0, + "note": "the name's width through the module: 37 px as stock, or to the right edge while a setlist plays" + }, + { + "address": 1073991534, + "guardLength": 4, + "guardSha256": "14835e0ccc743a5602678941ce85deed53dc9a8632b411667b682711a9c73994", + "unit": "songbook", + "symbol": "as_head_text", + "addend": 0, + "note": "the name drawn through the module: 11 letters as stock, or 16 while a setlist plays" + }, + { + "address": 1073966690, + "guardLength": 4, + "guardSha256": "367515128060dc0fc0aedcc71f667765efa1a4f6258dc45f5d32dee4b46bc27a", + "unit": "songbook", + "symbol": "as_list_row", + "addend": 0, + "note": "ARR > BOOKS rows through the module: rows 7 and 8 name the book's own arrangements while a setlist borrows their slots" + } + ], + "pokes": [ + { + "address": 1074521990, + "guardLength": 8, + "guardSha256": "605d9de7d5f7c77f5f9df4320ac47c4d5ebe3cd971d7aa18e1438edb2a31b12b", + "code": "424f4f4b53000000", + "note": "the Arranger menu's CHANGE item renamed BOOKS: its list shows the book in use (LEFT/RIGHT the others)" + }, + { + "address": 1074522006, + "guardLength": 8, + "guardSha256": "78048c5f30cf2d55c3a3b36c966c7e6b6c55d55df4295ee1c9129101860b71c9", + "code": "5345544c53545300", + "note": "the Arranger menu's CHAIN item renamed SETLSTS (stock draws the name with %s: 7 letters)" + } + ], "tables": [] }, {