The Let's Play Archive

SHENZHEN I/O

by Quackles

Part 6: Assignment #2: Replacement Factory Module

Replacement Factory Module



SMASHED?

OK, sheer bloody-minded curiosity aside, it is nice to know that Longteng has its own factory floor, as opposed to leaving production to a subsidiary or partner. I suppose this way, it allows for vertical integration and also better quality control. That said, I'm running through all the ways you could get a factory part smashed in my head, and I'm torn between some sort of accident (robot having a bad day?) and the possibility of, like, some poor assembly line guy run amok in there.

I hope it was an accident.







Another super-easy-looking spec. You can't tell from the image, but the input signals are always only 0, 25, or 50 (meaning, the outputs are only 0, 50, or 100). I'm thinking all that's really necessary is a single MC that does exactly what the spec says, in order: read in the input value, multiply it by 2, and push it to the output.

In a way, this feels like on-the-job training— teaching me how to do math on a MC all over again.





They say a straight path is the shortest line between two points, and I think that accurately describes this design. At risk of sounding like a skipping CD, all it does is read in the input value, multiply it, and output it - with the unavoidable slp in there to finish the code.

...wait, is my audience going to know what a CD is? I had a friend in college who used to joke about 'broken records', but I ended up having to look up what a record was to get the joke.

Anyway, design sent off to Jie.