Assembly language help
So with assembler you are directly manipulating memory, so with the code above you are worried about the data being stored in accumulator AL. This is because your OUT function takes the value of AL and sends it to the traffic lights.
So, with that said... All your code above is doing is storing new decimal values (55, 56, 57, 58, 60, 65) into the accumulator AL and transmitting each of those values to the traffic light.
From your code and the hardware you would be working with I'm not entirely sure what AA is, but it doesn't really seem to matter as it is only ever resetting the value inside AL and then being transmitted to the traffic lights, so i'd assume its probably a memory location (accumulator / register) that stores a reset or value that represents an off state... just a guess...
So the main thing you need to worry about is what values you will be storing in accumulator AL to then send using the OUT instruction to the traffic lights.
This should get you started, although it is a bit tricky to really give you a definitive guide without more context...
Hope this helps!
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now