Keep vblank lines consistently at 36 each field.

This commit is contained in:
Lo Def 2021-06-11 01:01:51 -04:00 committed by Stephen Anthony
parent 252a93281b
commit 0b11658f9e
1 changed files with 22 additions and 15 deletions
src/emucore

37
src/emucore/CartMVC.cxx Normal file → Executable file
View File

@ -324,12 +324,13 @@ class MovieInputs : public Serializable
#define addr_set_aud_endlines 0xa8c
#define addr_set_overscan_size 0xa90
#define addr_set_vblank_size 0xaa6
#define addr_pick_transport 0xaaf
#define addr_transport_direction 0xab2
#define addr_transport_buttons 0xabb
// #define addr_transport_done 0xac4
// #define addr_wait_lines 0xac9
// #define addr_transport_done1 0xada
#define addr_pick_extra_lines 0xaaf
#define addr_pick_transport 0xab6
#define addr_transport_direction 0xab9
#define addr_transport_buttons 0xac2
// #define addr_transport_done 0xacb
// #define addr_wait_lines 0xad0
// #define addr_transport_done1 0xae1
// #define addr_draw_title 0xb00
#define addr_title_loop 0xb50
// #define addr_black_bar 0xb52
@ -427,12 +428,12 @@ static constexpr unsigned char kernelROM[] = {
6, 133, 4, 169, 2, 133, 5, 169, 1, 133, 38, 169, 0, 133, 32, 169,
240, 133, 33, 133, 42, 162, 5, 202, 208, 253, 133, 43, 76, 128, 250, 255,
160, 0, 132, 27, 132, 28, 132, 27, 169, 0, 169, 0, 169, 0, 133, 25,
162, 29, 32, 201, 250, 169, 2, 133, 0, 162, 3, 32, 201, 250, 169, 0,
133, 0, 169, 2, 133, 1, 162, 37, 32, 201, 250, 162, 0, 134, 1, 76,
187, 250, 173, 128, 2, 74, 74, 74, 76, 196, 250, 165, 12, 10, 173, 130,
2, 42, 41, 23, 133, 129, 76, 70, 249, 133, 2, 169, 0, 177, 130, 133,
25, 165, 129, 240, 5, 198, 129, 173, 128, 20, 200, 202, 208, 235, 96, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
162, 29, 32, 208, 250, 169, 2, 133, 0, 162, 3, 32, 208, 250, 169, 0,
133, 0, 169, 2, 133, 1, 162, 37, 32, 208, 250, 162, 0, 134, 1, 162,
0, 240, 3, 32, 208, 250, 76, 194, 250, 173, 128, 2, 74, 74, 74, 76,
203, 250, 165, 12, 10, 173, 130, 2, 42, 41, 23, 133, 129, 76, 70, 249,
133, 2, 169, 0, 177, 130, 133, 25, 165, 129, 240, 5, 198, 129, 173, 128,
20, 200, 202, 208, 235, 96, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
162, 30, 32, 82, 251, 169, 2, 133, 0, 162, 3, 32, 82, 251, 169, 0,
133, 0, 169, 2, 133, 1, 162, 37, 32, 82, 251, 169, 0, 133, 1, 198,
@ -1135,17 +1136,23 @@ void MovieCart::fill_addr_end_lines()
if(!myOdd)
myFirstAudioVal = myStream.readAudio();
// normally overscan=30, vblank=37
// todo: clicky noise..
// keep at overscan=29, vblank=36
// or overscan=30, vblank=36 + 1 blank line
if(myOdd)
{
writeROM(addr_set_overscan_size + 1, 29);
writeROM(addr_set_vblank_size + 1, 36);
writeROM(addr_pick_extra_lines + 1, 0);
}
else
{
writeROM(addr_set_overscan_size + 1, 30);
writeROM(addr_set_vblank_size + 1, 37);
writeROM(addr_set_vblank_size + 1, 36);
// extra line after vblank
writeROM(addr_pick_extra_lines + 1, 1);
}
if(!myBufferIndex)