converting small thing into ASM

For general discussion related FlowStone
Post Reply
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

converting small thing into ASM

Post by tester »

I just found another piece, that could save (very little but some) CPU due to need of reusing pack/unpack on the go. How to convert this one into mono4 single ASM piece? (Multipliers are used instead of selectors/multiplexers to avoid code resets on switch; I guess this one is not doable in code due to different operations on channels?). Correct me if I'm wrong (i.e. if there is no benefit from such conversion).
Attachments
leds.fsm
(2.13 KiB) Downloaded 908 times
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: converting small thing into ASM

Post by MyCo »

This one only works with the first 2 channels of packed mono. The other 2 channels are overwritten, by a copy of the first 2.
Attachments
leds (MyCo).fsm
(2.41 KiB) Downloaded 919 times
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: converting small thing into ASM

Post by tester »

Thanks!

Good learning tool for getting some basics on the go.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Post Reply