Question: 1. Problem In this lab, we are going to simulate a robot with some specific tasks in a constrained world. For that purpose, in emu8086

 1. Problem In this lab, we are going to simulate a

1. Problem In this lab, we are going to simulate a robot with some specific tasks in a constrained world. For that purpose, in "emu8086" program you should locate example assembly program called robot.asm'. Program path should be similar like this: C: emu8086 examples robot.asm. In this program, the robot is designed in a way that randomly moves in the world and interacts with objects with each iteration. There are some objects in this world that the robot can interact which are Lamps and Walls. Lamps can be in two states: on or off. They are donated as a circle with a cross in it. Another item is Wall. Walls are inaccessible places for the robot which are donated as multiple crosses. Also the world is surrounded with walls so that the robot have limited space to move in this world. The robot have ability to change the state of the lamps on to off or off to on. The robot can rotate 90 degrees with each iteration Rotations are occurring to left, to right or no change. Rotations are defined with I/O addressing mode. After each rotation the robot tries to move I square from its position. If it encounters with a wall, the robot does nothing. However, if it encounters with a lamp, it tries to switch it on/off according to the lamp's current state. You can construct a customized world by using tools that is located in the bottom UI. By using these UI tools, create a world similar like this: robot on port 903... X 76543210 port command: 09090109 9 data: 11111111 status: 30000001 11 18 Lamps should start with off state. To set off state every lamp in this world, simply right click program and set off every lamp. If you run the robot.asm program, you will see that robot tries to move randomly in this world and do the interactions in a same way. Your task is to give the robot ability to move with predefined mapping. This mapping will give the ability to the robot light up every lamp in this world with a shortest way. 1. Problem In this lab, we are going to simulate a robot with some specific tasks in a constrained world. For that purpose, in "emu8086" program you should locate example assembly program called robot.asm'. Program path should be similar like this: C: emu8086 examples robot.asm. In this program, the robot is designed in a way that randomly moves in the world and interacts with objects with each iteration. There are some objects in this world that the robot can interact which are Lamps and Walls. Lamps can be in two states: on or off. They are donated as a circle with a cross in it. Another item is Wall. Walls are inaccessible places for the robot which are donated as multiple crosses. Also the world is surrounded with walls so that the robot have limited space to move in this world. The robot have ability to change the state of the lamps on to off or off to on. The robot can rotate 90 degrees with each iteration Rotations are occurring to left, to right or no change. Rotations are defined with I/O addressing mode. After each rotation the robot tries to move I square from its position. If it encounters with a wall, the robot does nothing. However, if it encounters with a lamp, it tries to switch it on/off according to the lamp's current state. You can construct a customized world by using tools that is located in the bottom UI. By using these UI tools, create a world similar like this: robot on port 903... X 76543210 port command: 09090109 9 data: 11111111 status: 30000001 11 18 Lamps should start with off state. To set off state every lamp in this world, simply right click program and set off every lamp. If you run the robot.asm program, you will see that robot tries to move randomly in this world and do the interactions in a same way. Your task is to give the robot ability to move with predefined mapping. This mapping will give the ability to the robot light up every lamp in this world with a shortest way

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!