Heaven/TQA Posted December 22, 2018 Share Posted December 22, 2018 restarted to code on 7800... what I don't get is why my code runs with color changes on pro system but not on mame? the DLI is not triggered? any ideas? demo1.a78 demo1.asm Quote Link to comment Share on other sites More sharing options...
John Stamos Mullet Posted December 22, 2018 Share Posted December 22, 2018 Most recent versions of MAME run the 7800 using an algorithm to generate the color burst signals, so that it is accurate to what a real 7800 produces. Prosystem uses a fixed, hard coded color palette that is not as accurate. Quote Link to comment Share on other sites More sharing options...
Trebor Posted December 22, 2018 Share Posted December 22, 2018 restarted to code on 7800... what I don't get is why my code runs with color changes on pro system but not on mame? the DLI is not triggered? any ideas? Console Hardware: Latest version of MAME, the demo works relatively fine: It also runs fine under A7800, which is even closer to precise hardware accurate behavior: While results for this demo have went well regarding the ProSystem emulator, it is highly discouraged to develop leveraging it. In the past, as well as in more recent times, at least a couple of developers and hackers obtained results under the ProSystem emulator that did not reflect the same when tried with real hardware and much closer to hardware accurate emulators such as A7800. 1 Quote Link to comment Share on other sites More sharing options...
RevEng Posted December 22, 2018 Share Posted December 22, 2018 [edit - scooped by Trebor! ] How old is the MAME version you're using? Your color changes seem to be working fine with A7800, which is based on MAME 1.88. (there are some emulation enhancements that are part of the MAME->A7800 update, but I don't believe any of them would impact this issue.) Quote Link to comment Share on other sites More sharing options...
RushJet1 Posted December 22, 2018 Share Posted December 22, 2018 How does it run in BupSystem? I can't tell because I just have my phone. Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted December 22, 2018 Author Share Posted December 22, 2018 ??? Now that becomes interesting... Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted December 22, 2018 Author Share Posted December 22, 2018 (edited) I am using Mame 0.204 https://www.mamedev.org/ Edited December 22, 2018 by Heaven/TQA Quote Link to comment Share on other sites More sharing options...
Trebor Posted December 22, 2018 Share Posted December 22, 2018 How does it run in BupSystem? I can't tell because I just have my phone. A blank screen: Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted December 22, 2018 Author Share Posted December 22, 2018 i don't need mame but used to dev with emulators incl. debugger... Quote Link to comment Share on other sites More sharing options...
RevEng Posted December 22, 2018 Share Posted December 22, 2018 Are you running the NTSC "a7800" driver, or the PAL "a7800p" driver? I actually get a pink screen and hang at the following bit of code, in the a7800p driver with a7800 and mame. Not sure if Bup defaults to NTSC or PAL. I'm guessing this might represent what happens on a real PAL deck too. 1 Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted December 22, 2018 Author Share Posted December 22, 2018 del %1.a78 del mame\software\a7800p\%1.a78 mads %1.asm -o:%1.bin 7800sign %1.bin 7800header %1.bin copy %1.a78 mame\software\a7800p\%1.a78 cd mame\ mame64.exe a7800p -debug -cartridge software\a7800p\%1.a78 cd .. Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted December 22, 2018 Author Share Posted December 22, 2018 Are you running the NTSC "a7800" driver, or the PAL "a7800p" driver? I actually get a pink screen and hang at the following bit of code, in the a7800p driver with a7800 and mame. hang.png Not sure if Bup defaults to NTSC or PAL. I'm guessing this might represent what happens on a real PAL deck too. that's exactly what's happening on my sight... the DLI is not triggered... (the jmp * is correct). Quote Link to comment Share on other sites More sharing options...
Trebor Posted December 22, 2018 Share Posted December 22, 2018 I am using name 0.204 https://www.mamedev.org/ *EDIT: RevEng beat me to the punch this time...LOL* The same version of MAME is utilized in the captures provided above; however, I just realized you may be leveraging the PAL system and not the NTSC one. The ROM provided is currently set to NTSC. I tried that NTSC ROM, as well as a modified header to PAL version, under MAME and A7800 for the PAL region, and it results in a solid/frozen color screen. Under the ProSystem emulator, force setting the console emulation to PAL or NTSC, and utilizing either a header set to NTSC or PAL ROM, works regardless. That is likely incorrect behavior, rather than accurate hardware results. If someone with a PAL console can test the ROM that would ensure what should be experienced. Plain binary and respective NTSC/PAL header versions attached below: demo1.bindemo1_NTSC.a78demo1_PAL.a78 1 Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted December 22, 2018 Author Share Posted December 22, 2018 same happening with A7800 1.88 in pal "cold"... Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted December 22, 2018 Author Share Posted December 22, 2018 well... I am adding "set tvpal" in with 7800header tool... save the a78 file and load that... i only got a pink screen. Quote Link to comment Share on other sites More sharing options...
TailChao Posted December 22, 2018 Share Posted December 22, 2018 I'll look into why BupSystem isn't following the hardware later, but something stuck out in your source : ;******** Atari recommended startup procedure lda #$02 ; !!! 2 !!! sta INPTCTRL ; Lock into 7800 mode lda #$7F sta CTRL sta BACKGRND ;Disable DMA lda #$00 sta OFFSET sta INPTCTRL The "Atari Recommended" value for INPTCTRL is actually $07. Writing $02 only enables Maria, leaves the register unlocked, and could possibly re-enable the BIOS and cause a bus fight. 2 Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted December 22, 2018 Author Share Posted December 22, 2018 I'll look into why BupSystem isn't following the hardware later, but something stuck out in your source : ;******** Atari recommended startup procedure lda #$02 ; !!! 2 !!! sta INPTCTRL ; Lock into 7800 mode lda #$7F sta CTRL sta BACKGRND ;Disable DMA lda #$00 sta OFFSET sta INPTCTRL The "Atari Recommended" value for INPTCTRL is actually $07. Writing $02 only enables Maria, leaves the register unlocked, and could possibly re-enable the BIOS and cause a bus fight. that was it!!! thx. I thought it's correct value as my source had those $02 !!!!! now Mame has the colors... and a7800 3 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.