jgrillout Posted March 4, 2022 Share Posted March 4, 2022 It would be helpful if I could use the brk opcode and stella would open the debugger at that point. I tried putting a brk opcode in my code but nothing happens. If I press the ` key. then the debugger window appears but the program counter is not on the brk line or anywhere close to it. I tried the stella break command but it rejects labels and says it requires an address. the documentation I read implies you can use labels for break. Quote Link to comment Share on other sites More sharing options...
alex_79 Posted March 4, 2022 Share Posted March 4, 2022 (edited) 3 hours ago, jgrillout said: It would be helpful if I could use the brk opcode and stella would open the debugger at that point. That would "break" any game that uses the brk instruction... Stella emulates the Atari 2600 and when it finds a "brk" opcode it behaves like a real console does: it pushes the program counter and the status register onto the stack, then jumps to the address defined in the IRQ vector. Quote the documentation I read implies you can use labels for break. Indeed you can *if* you created a symbol file with the same filename as the rom and ".sym" extension. Else Stella doesn't know what address your label corresponds to. You can do that with dasm using the "-s" option. e.g. dasm game.asm -f3 -ogame.bin -sgame.sym Creates the rom "game.bin" and the corresponding symbol file "game.sym". Edited March 4, 2022 by alex_79 1 Quote Link to comment Share on other sites More sharing options...
jgrillout Posted March 5, 2022 Author Share Posted March 5, 2022 works beautiful. Thanks that is just what I needed ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.