SHENZHEN I/O

SHENZHEN I/O

评价数不足
C2S-RF902 BLOCKING XBUS BUFFER
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
4.006 KB
2022 年 2 月 20 日 上午 12:17
2022 年 2 月 20 日 上午 2:16
3 项改动说明 ( 查看 )

订阅以下载
C2S-RF902 BLOCKING XBUS BUFFER

描述
Sequel to C2S-RF901 XBUS BUFFER
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2759165536

Your non-blocking buffer for the C2S-RF901 was a great success, by which I mean it annoyed the hell out of engineers everywhere. We're now being paid very good money to develop a brand-spaking-new C2S-RF902 radio with a blocking XBus buffer. This bad boy will combine the buffering ability of the C2S-RF901 with the wonders of blocking XBus outputs, saving upwards of three lines of code in the average radio-controlled MCX program!

Don't tell anyone, but we're just swapping out the buffer chips on the radios and painting a "2" on the side. Unfortunately, that means your new blocking buffer design will need to fit on the same-sized chip as the previous one. That shouldn't be a problem, right?

In-game Description:
  • in is a blocking XBus input connected to a radio reciever.
  • out is an XBus output connected to a device that wishes to read values from the reciever, such as a microcontroller.
  • read is a blocking XBus input indicating the number of values the reader is attempting to read.
  • When a value is received on in, it should be stored in the buffer.
  • When a value is recieved on read, that many values in the buffer should be sent to out. If there are not enough values in the buffer, the available values should be sent immediately and the remaining values should be sent as they arrive.
2 条留言
Pausbrak  [作者] 2022 年 4 月 1 日 上午 7:32 
Glad you enjoyed this one too, and found it a challenge! I was originally planning on only making the first one (for the "make a spec" mission), but I found it too easy for my liking, so I went ahead and put this one together too. I expected it to be a bit harder, but I didn't realize how hard it would be until I tried to solve it! Space constraints were my biggest issue, hence the "That shouldn't be a problem, right?" line in the description, heh.

My solution was 16/1170/22
s7eph4n 2022 年 4 月 1 日 上午 4:03 
Like the prequel, a clever idea and a nice back story that integrates perfectly into the story of the game. To me, this blocking XBus buffer puzzle, was so much more of a challenge than the previous non-blocking XBus buffer. This felt like a genuine level, far into the regular campaign of the game.
I've got it solved with a score of 13/1211/21
Very nice one, thank you for creating that puzzle.