The first program and.asm reads the two inputs IN1 and IN2, uses the boolean operation AND and finally writes the result to OUT0.
It includes the init.asm file.
INIT LD IN1 AND IN2 STO OUT0 JMP X Resets Program Counter
The command ./mc14500.py --html and.asm produces the and.html file that contains the link https://www.linurs.org/mc14500sim/index.html?rom=60A0B0113280C0&program=and&ilsb=False&iowidth=4&pcwidth=8&endian=little that starts the simulator with the program.
Similar commands can be written using the OR and XNOR commands. Inputs can be inverted using LDC, ANDC or ORC. The output can be inverted using STOC instead of STO. This way NAND, NOR and XOR can be made.