Relative Content

Tag Archive for debuggingassembly

Why are the debugger and the code contradicting?

I am trying to make a bomberman style game in assembly language. In this game I have a fixed map made up from ‘*, spaces and ‘b. To move the players I have created two byte-type variables called player1 and player2, that store the current position of the players (up to 250). When you enter a valid input, the corresponding movement function will activate and load in the register b the position of said player, decrement it or decrement it depending on the movement and leave a trace in the position it currently is (‘.’ for p1 and ‘,’ for p2) which doesn’t work either due to the same problem.