I set the SCU interrupt mask register ($25FE00A0) to $0000BFFE, wrote the address of a routine at $6000100, and cleared the CPU`s status register interrupt mask bits. In Yabause I can use the interrupt for timing an animation. On Saturn my program shows one frame and stops, there is no interrupt.
v-blank interrupt
Sega Saturn Programming and DevelopmentJust writing to that register won't do much. It probably works on Yabause because the registers might of have been (properly) set by the BIOS after loading your binary.
I would suggest you just use the BIOS functions. Really, it'll make your life a lot easier.
I have working code for (any) interrupt without the use of BIOS functions. Though, I'd have to go through my backups...
Also, no one can deduce what the problem is without giving us all the information. Show us code, provide us with debugging info!
I would suggest you just use the BIOS functions. Really, it'll make your life a lot easier.
I have working code for (any) interrupt without the use of BIOS functions. Though, I'd have to go through my backups...

Also, no one can deduce what the problem is without giving us all the information. Show us code, provide us with debugging info!
Um, licensing? You`ve got to be fucking kidding me. You put a 25-line copyright notice ahead of 3 instructions? Not only does this not answer my question, but now I`m sorry that I asked. Thanks, but no thanks.
I hope you've at least read the license.
Yes, of course someone is entitled to put a copyright notice on his code. It is his copy right, so you have to respect it. Don't use it if you can't do that.
*EDIT*
The code is 164 lines, including the copyright notice. Learn to count.
I apologize for blowing up. I should have stated simply that I am not interested in using any code in Saturn homebrew that someone else is asserting control over.
By looking at the disassembly of the BIOS` own interrupt service routine, I noticed that the register $25FE00A0 is being written during the routine, and that bits 16-31 were also set. So now I write $FFFFBFFE at the beginning of the program and during the interrupt service routine. Problem solved.
By looking at the disassembly of the BIOS` own interrupt service routine, I noticed that the register $25FE00A0 is being written during the routine, and that bits 16-31 were also set. So now I write $FFFFBFFE at the beginning of the program and during the interrupt service routine. Problem solved.
Original thread: https://assemblergames.com/threads/v-blank-interrupt.31410/