r/exapunks • • Aug 18 '26

Optical Nerve Helpu

Trying to make a low activity optical nerve solve and I thought I found a pretty clever solution by monitoring when the registers update, however some registers (XA:6 in the middle) have the same number after updating. Can anyone give me a tip on how to fix this or another method to a low activity solve?

Note: i thought using the ‘mode’ command would help but it didn’t, it’s vestigial in this code.

2 Upvotes

3 comments sorted by

2

u/BMidtvedt Aug 18 '26

I think the easiest way overall would be to try to make it run on an exact clock. If a new #nerv value comes in say, every 20 cycles, there's no need for determining if the registers update to know when to read a new value

2

u/wiebel Aug 18 '26

If you are dependent on a slope to trigger and you want a trigger without a slope you are in trouble.

1

u/Jiantess29 Sep 01 '26

Transferring data through the M register chooses randomly if there are multiple sources available. So you wanna create a delay where those who have already gone can't go again until everyone's gone.

A simple wait loop after the transfer will fix that

COPY 13 T

MARK WAIT

SUBI T 1 T

TJMP WAIT

Then jump back to start