Skip to content

Commit 079f186

Browse files
committed
Fix reset button
It wouldn't actually reset the bus because the filt it dray'd in was overwritten in the next frame by the ldtc.
1 parent 1e82d16 commit 079f186

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

r3/comp/cpu/init.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,10 @@ local function build_internal(params)
895895
local x_reset = x_storage_slot(14)
896896
local y_reset = y_call_sites + (core_count - 1) * core_pitch + 6
897897
local x_reset_io = x_storage_slot(84)
898-
part({ type = pt.FILT, x = x_reset_io + 3, y = y_reset , ctype = 0x10000000 })
898+
part({ type = pt.BRAY, x = x_reset_io + 3, y = y_reset , ctype = 0x10000000, life = 4 })
899+
part({ type = pt.LSNS, x = x_reset_io + 3, y = y_reset - 1, tmp = 3 })
900+
part({ type = pt.CONV, x = x_reset_io , y = y_reset - 2, ctype = pt.FILT, tmp = pt.BRAY })
901+
part({ type = pt.FILT, x = x_reset_io + 4, y = y_reset - 2, ctype = 0x10000004 })
899902
part({ type = pt.DRAY, x = x_reset_io + 4, y = y_reset + 1, tmp = 1, tmp2 = 2 })
900903
local reset_2_sprk = spark({ type = pt.PSCN, x = x_reset_io + 5, y = y_reset + 2, life = 2 })
901904
part({ type = pt.FILT, x = x_reset , y = y_reset - 1, ctype = 0x10000000 })

0 commit comments

Comments
 (0)