Question: Can someone help me with x86 programming ? First picture shows how to do the lab. and 2nd picture has programming Part, after semicolumns there
Can someone help me with x86 programming ? First picture shows how to do the lab. and 2nd picture has programming Part, after semicolumns there is instruction which thing to do in that line. You have to write before semi column the x86 programming statemnt for that.
Thanks.


CS11 Lab 8 game of Snake This lab which is in 3 parts. You will code a video game program Snake using x86 assembly language and console output. You are required to do parts 1 and 2 Part 3 is optional. SNAKE A line made of green squares move about on the screen directed by arrow keys, turn left, right, turn up, down. There is a red apple square. If the snake "eats" the apple it grows and a new apple appears at a random location on screen. if the snake goes outside the screen boundary or if the snake "eats" itself (gets tangled up) then the snake "dies" and game is over. Objective is to grow the as big as possible without dying. Some reminders about coding assembly language program. Assembly programs are hard to read and understand (and hard to write). Do these things to make your program easier to read. 1. 2 Begin labels in column 1 Indent operations and directives so that they line up in a vertical format that is easier to scan down. 3. use extensive comments C) to explain what you are doing: does a register hold a value; or does t contain the address of something? lab 8: part 1 define data structures and basic routines to draw and move the snake code and test the draw, grow and move methods. define the data structures and array for the program. The "snake" will be an array of (xy) values. The (xy) will be coordinates where a green square will be displayed. The snake can vary in size. The starting value is 3 coordinates and then the snake can grow when it "eats an apple". The apple is red square at a random (x,y) coordinate. Define a structure for an (x.y) coordinate. Define a label for a memory location which has 100 such coordinates. Define a label for a memory location for the "apple". The snake consists of the 3 coordinates (20,40), (21,40), (22,40) and is moving in the UP direction
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
