cpu-simulator/build/editor/js/items/alu.js

7 lines
770 B
JavaScript
Executable File

function loadChip(){
chip=new Component('main',true,'{"type":"main","inputs":21,"tooltips":[],"pins":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"subComponents":[],"positions":[],"wires":[]}');
chip.groups = [[0,1,2,3,4,5,6,7],[8,9,10,11,12,13,14,15],[16,17,18,19],[20],[21,22,23,24,25,26,27,28],[29,30,31,32]];
chip.no=[29,30,31,32];
chip.tooltips = ["operand 0","operand 0","operand 0","operand 0","operand 0","operand 0","operand 0","operand 0","operand 1","operand 1","operand 1","operand 1","operand 1","operand 1","operand 1","operand 1","opcode","opcode","opcode","opcode","carry/borrow in","result","result","result","result","result","result","result","result","overflow flag","negative flag","carry/borrow flag","zero flag"];
}