Các bạn ơi, mình đang phải làm project assembly trên Mips mô phỏng, có bạn nào biết giúp mình với, cho mình biết nguyên lý để làm bài dạng này với
1. Using keyboard to change the led effect scenarios
The program should detects characters inputed from console, and show the led effect scenarios
respectively as below: (∘: led off, O: led on)
„1‟: Flash: all 8 leds turn on in a moment, and turn off after.
∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘ → O O O O O O O O → ∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘
„2‟: Running spot R: Each led turns on, one by one, from the left to the right.
∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘ → O ∘ ∘ ∘ ∘ ∘ ∘ ∘ → ∘ O ∘ ∘ ∘ ∘ ∘ ∘ → ∘ ∘ O ∘ ∘ ∘ ∘ ∘ →
∘ ∘ ∘ O ∘ ∘ ∘ ∘ → …... → ∘ ∘ ∘ ∘ ∘ ∘ ∘ O → ∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘
„3‟: Running spot L: Each led turns on, one by one, from the right to the left.
∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘ → ∘ ∘ ∘ ∘ ∘ ∘ ∘ O → ∘ ∘ ∘ ∘ ∘ ∘ O ∘ → ∘ ∘ ∘ ∘ ∘ O ∘ ∘ →
∘ ∘ ∘ ∘ O ∘ ∘ ∘ → …... → O ∘ ∘ ∘ ∘ ∘ ∘ ∘ → ∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘
„4‟: Spot bumber: consists of both running spot R and L.
∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘ → O ∘ ∘ ∘ ∘ ∘ ∘ O → ∘ O ∘ ∘ ∘ ∘ O ∘ → ∘ ∘ O ∘ ∘ O ∘ ∘ →
∘ ∘ ∘ O O ∘ ∘ ∘ → ∘ ∘ ∘ O O ∘ ∘ ∘ → ∘ ∘ O ∘ ∘ O ∘ ∘ → ∘ O ∘ ∘ ∘ ∘ O ∘ →
O ∘ ∘ ∘ ∘ ∘ ∘ O → ∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘
Mình cảm ơn nhiều
1. Using keyboard to change the led effect scenarios
The program should detects characters inputed from console, and show the led effect scenarios
respectively as below: (∘: led off, O: led on)
„1‟: Flash: all 8 leds turn on in a moment, and turn off after.
∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘ → O O O O O O O O → ∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘
„2‟: Running spot R: Each led turns on, one by one, from the left to the right.
∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘ → O ∘ ∘ ∘ ∘ ∘ ∘ ∘ → ∘ O ∘ ∘ ∘ ∘ ∘ ∘ → ∘ ∘ O ∘ ∘ ∘ ∘ ∘ →
∘ ∘ ∘ O ∘ ∘ ∘ ∘ → …... → ∘ ∘ ∘ ∘ ∘ ∘ ∘ O → ∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘
„3‟: Running spot L: Each led turns on, one by one, from the right to the left.
∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘ → ∘ ∘ ∘ ∘ ∘ ∘ ∘ O → ∘ ∘ ∘ ∘ ∘ ∘ O ∘ → ∘ ∘ ∘ ∘ ∘ O ∘ ∘ →
∘ ∘ ∘ ∘ O ∘ ∘ ∘ → …... → O ∘ ∘ ∘ ∘ ∘ ∘ ∘ → ∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘
„4‟: Spot bumber: consists of both running spot R and L.
∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘ → O ∘ ∘ ∘ ∘ ∘ ∘ O → ∘ O ∘ ∘ ∘ ∘ O ∘ → ∘ ∘ O ∘ ∘ O ∘ ∘ →
∘ ∘ ∘ O O ∘ ∘ ∘ → ∘ ∘ ∘ O O ∘ ∘ ∘ → ∘ ∘ O ∘ ∘ O ∘ ∘ → ∘ O ∘ ∘ ∘ ∘ O ∘ →
O ∘ ∘ ∘ ∘ ∘ ∘ O → ∘ ∘ ∘ ∘ ∘ ∘ ∘ ∘
Mình cảm ơn nhiều
Comment