@@ -23,21 +23,21 @@ local includes = {
2323
2424local dw_bits = 30
2525
26- local nop = opcode .make (32 ):merge (0x10000000 , 0 )
26+ local nop = opcode .make (32 ):merge (0 , 0 )
2727
2828local entities = {}
2929local mnemonics = {}
3030
3131local mnemonic_to_class_code = {
32- [ " add " ] = { operands = 1 , code = 0x14000000 },
33- [ " sub " ] = { operands = 1 , code = 0x16000000 },
34- [ " upd " ] = { operands = 1 , code = 0x20000000 },
35- [ " upd0 " ] = { operands = 1 , code = 0x22000000 },
36- [ " nop " ] = { operands = 0 , code = 0x10000000 },
37- [ " halt " ] = { operands = 0 , code = 0x3E000000 },
38- [ " jlz " ] = { operands = 1 , code = 0x02000000 },
39- [ " jgz " ] = { operands = 1 , code = 0x04000000 },
40- [ " jez " ] = { operands = 1 , code = 0x06000000 },
32+ [ " A " ] = { operands = 1 , code = 0x14000000 },
33+ [ " S " ] = { operands = 1 , code = 0x16000000 },
34+ [ " U " ] = { operands = 1 , code = 0x20000000 },
35+ [ " T " ] = { operands = 1 , code = 0x22000000 },
36+ [ " X " ] = { operands = 0 , code = 0x10000000 },
37+ [ " Z " ] = { operands = 0 , code = 0x3E000000 },
38+ [ " G " ] = { operands = 1 , code = 0x02000000 },
39+ [ " E " ] = { operands = 1 , code = 0x04000000 },
40+ [ " J " ] = { operands = 1 , code = 0x06000000 },
4141}
4242
4343local mnemonic_desc = {}
@@ -107,8 +107,8 @@ local function flash(model, target, opcodes)
107107 end
108108
109109 for index = 0 , space_available - 1 do
110- local id = sim .partID (x + 525 - index , y - 137 )
111- local opcode = opcodes [index ] and opcodes [index ].dwords [1 ] or nop . dwords [ 1 ]
110+ local id = sim .partID (x + 16 - index , y + 4 )
111+ local opcode = opcodes [index ] and opcodes [index ].dwords [1 ] or 0x11FFFFFF
112112 sim .partProperty (id , " ctype" , opcode )
113113 end
114114end
0 commit comments