This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; CRC-16 calculation | |
; Polynomial x^16 + x^12 + x^5 + 1 | |
; Based on description at https://www.ccsinfo.com/forum/viewtopic.php?t=24977 | |
; Intel 8080 assembly version by Lukas Petru, 2020 | |
; HL points to input data | |
; DE is CRC | |
; de=0 | |
LXI D,0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//jshell epromgen.jsh >eprom-list.txt | |
// Generates Eprom contents with basic 4-bit ALU functions. | |
// Programmed by Lukas Petru, 2020 | |
void main(){ | |
var tableOutput=false; | |
var s="; Address format: ffff c bbbb aaaa, f is function, c is carry,"+ | |
" b, a are operands"+ | |
"\n; Value format: e l z c rrrr"+ | |
"\n; e is A=B, l is A<B, z is zero flag, c is carry flag, r is result"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<svg width=640 height=400 viewbox=-.5,-.5,320,200 stroke=#000 stroke-width=.71 fill=none style=border:solid> | |
<path id=g d=''/><use href=#g x=-319 transform=scale(-1,1) /></svg> | |
<script> | |
f=[] | |
s=t=u=v=0 | |
ds=dt=du=dv=-1 | |
,(paint=_=>{ | |
var n=[0,0,0,0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 REM EDGE MATCHING TILE PUZZLE | |
51 REM SEE WWW.REDDIT.COM/R/DAILYPROGRAMMER #183 | |
52 REM SOLUTION BY LUKZ | |
53 REM PROGRAM AVAILABLE UNDER MIT LICENSE (EXPAT) | |
54 REM TESTED ON WWW.CALORMEN.COM/JSBASIC | |
56 DATA CYMk,CmKm,cKyM,cYkY,CMky,ckyM,CYMK,CMKy,CkmY | |
63 REM COLORS, 8 CHARACTERS (4 COLORS X 2 VARIANTS) | |
64 REM MATCHING PAIRS MUST BE NESTED (I.E. Xx INSIDE Y..y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<title>Gen Dsk 800</title> | |
<style> | |
body{font:caption} | |
input{margin-top:.3em} | |
td{padding:0 .5em 0 0} | |
#all{color:#666} | |
</style> | |
<div style="float:left;padding:2px 3px;border:.8px solid"> |