You are Black: tap a piece, then a square, or type rank and file
To the Sinclair ZX81 (1981): a Z80A, 1 KB of RAM and an 8 KB ROM in a little black wedge, and to David Horne, who fitted chess into it. 1982 Chess Lab is an HTML emulator of that world. The CPU, memory map and display file are original JavaScript; no Sinclair ROM is used.
RAND USR 16570.RST 16, PRINT AT (2293) and PR-STRING (2923) are rewritten in JavaScript to the ROM's rules, including padding short lines.DJNZ at 16581 runs 182 times, painting 182 grey cells one at a time.PUSH AF/POP AF. The pencilled "DEC" over "INC HL" in PAWN matches the misprint found in Part 2.INC HL, but the byte is 43, DEC HL: the pawn tables are read backwards, which is how 16778–16780 (15, 16, 14) can share a byte with the DP2 routine.DEC C. The article's mnemonic says INC C, but the byte is right, which is why the letters read HGFEDCBA.The MIT License Copyright © 2010-2024 three.js authors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.