Hi!
I got a little further. Had some problems with MAME crashing after running my code for a few frames. Tried to compile MAME with Visual Studio to be able to track the crash so I could get an idea of what was wrong. That was harder than expected. MAME is so big that my machine ran out of memory multiple times and also disk space! Finally I managed to get a stripped down MAME working that only emulates System 32. A lot easier to work with!
The issue turned out that I got a timer interrrupt and the code to handle that just did a 'halt' and then MAME basically gives up. Got that fixed and then tried to something on screen. That turned out a little harder than expected - mostly due to an error in the System32 docs I have. I also encountered some small bugs in the assembler I'm using, but I can work around those for now.
Anyway, got stuff running using the TEXT layer! It's amazing stuff!
View: https://youtu.be/4qS053XpdyA
Next task will be to try getting the other tile layers working. The docs don't really mention where they get their data from, so I guess I have to dive down into the MAME sources..
I got a little further. Had some problems with MAME crashing after running my code for a few frames. Tried to compile MAME with Visual Studio to be able to track the crash so I could get an idea of what was wrong. That was harder than expected. MAME is so big that my machine ran out of memory multiple times and also disk space! Finally I managed to get a stripped down MAME working that only emulates System 32. A lot easier to work with!
The issue turned out that I got a timer interrrupt and the code to handle that just did a 'halt' and then MAME basically gives up. Got that fixed and then tried to something on screen. That turned out a little harder than expected - mostly due to an error in the System32 docs I have. I also encountered some small bugs in the assembler I'm using, but I can work around those for now.
Anyway, got stuff running using the TEXT layer! It's amazing stuff!

Next task will be to try getting the other tile layers working. The docs don't really mention where they get their data from, so I guess I have to dive down into the MAME sources..