Page 1 of 2 12 LastLast
Results 1 to 25 of 212

Thread: 161in1 understanding its logic.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Divine Hand of the UniBIOS
    Razoola's Avatar
    Join Date
    Nov 2002
    Location
    Finland, Earth

    Posts
    4,619

    icon15.gif 161in1 understanding its logic.

    I have decided to take a look how the 161in1 multicarts work and post details here. Hopefully this info will be helpful in the event somone works out how to reprogram devices holding game into.

    I will update this thread as and when I get new information. I reveived one this morning which I bought from ebay last week, total cost 72.99 euro including the shipping.

    Ok, lets get started with the basics. From cold boot the carts NGH is 0x9237

    Moving quickly on, decided to first look at how the trigger works once a game is playing. Selected AOF2 and then using PC-2-NEO dumped the sucker and quickly isolated the injected code. It is placed into the game by altering the games vector table and then returns to the games vblank when execution iscomplete.

    As follows;

    Code:
    161vbl	MOVEM.L  D0-D7/A0-A6,-(A7)
    	MOVE.B   0x380000,D0
    	CMPI.B   #0xFE,D0		; ! this why reset dosen't work !
    	BEQ      timer			; ! when a memory card is present ! 
    	MOVE.W   #0x0,0x10FF20
    	BRA      exit
    
    timer	ADDI.W   #0x1,0x10FF20		; only trigger after 0x12C frames.
    	MOVE.W   0x10FF20,D0
    	CMPI.W   #0x12C,D0
    	BEQ      break
    	BRA      exit
    
    break	MOVE.W   #0x0,0x10FF20		; put code in RAM and execute,
    	MOVE.W   #0x0,D3		; see RAM routine below for code.
    	LEA      0x100200,A4
    	MOVEA.L  A4,A5
    	MOVE.L   #0x33FC0F0F,(A4)+
    	MOVE.L   #0x2FFFF0,(A4)+
    	MOVE.L   #0x4E7133C3,(A4)+
    	MOVE.L   #0x2FFFF2,(A4)+
    	MOVE.L   #0x4E7133C3,(A4)+
    	MOVE.L   #0x2FFFF6,(A4)+
    	MOVE.L   #0x4E7133C3,(A4)+
    	MOVE.L   #0x2FFF00,(A4)+
    	MOVE.L   #0x4E714E70,(A4)+
    	MOVE.L   #0x4EF900C0,(A4)+
    	MOVE.W   #0x402,(A4)
    	JMP      (A5)
    
    exit	NOP
    	MOVEM.L  (A7)+,D0-D7/A0-A6
    	JMP      0x8F84			; original game vbl start.	
    
    
    / Generated code in RAM /
    
    ram	MOVE.W   #0x0F0F,0x2FFFF0	; ports controlling multicart, D3=0x0000
    	NOP
    	MOVE.w   D3,0x2FFFF2
    	NOP
    	MOVE.w   D3,0x2FFFF6
    	NOP
    	MOVE.w   D3,0x2FFF00
    	NOP
    	RESET
    	JMP      0x00C00402		; restart neogeo boot cycle.
    It is really quite straight forward and its clear what is happening. The custom ports are not currently understood (I only had the cart 10 minutes now) but I suspect they control start offsets in the flash ROM space.

    Things to note here is the very poor check of the 1UP start button which breaks when a memory card present and the uneeded storing of some registers to the stack. Only four registers are used but they save them all. In fact the entire code could have been written using only two resgisters easily (or even none).

    Who knows what my next post on this multicart will discover.
    Last edited by Razoola; 01-11-2018 at 11:35 AM.
    THE UNIVERSE BIOS ( MVS / AES, and now also for CD )
    www.universebios.com. Also on facebook, please like http://www.facebook.com/UniverseBios.

  2. #2
    Divine Hand of the UniBIOS
    Razoola's Avatar
    Join Date
    Nov 2002
    Location
    Finland, Earth

    Posts
    4,619
    Looking a little deeper selecting a game is really quite simple...

    If one wants to select game 04 (KOF 94) then use the following;

    Code:
    	MOVE.W   #0x0F0F,0x2FFFF0
    	NOP
    	MOVE.w   #0x0004,0x2FFFF2
    	NOP
    	MOVE.w   #0x0004,0x2FFFF6
    	NOP
    	MOVE.w   #0x0004,0x2FFF00
    	NOP
    To select game 17 (KOF 98);

    Code:
    	MOVE.W   #0x0F0F,0x2FFFF0
    	NOP
    	MOVE.w   #0x0011,0x2FFFF2
    	NOP
    	MOVE.w   #0x0011,0x2FFFF6
    	NOP
    	MOVE.w   #0x0011,0x2FFF00
    	NOP
    On one side this is very straight forward. On the other it means start offsets (in flash chips) of each games data is stored inside the PCB's ICs and probably cannot be changed without reprogramming it. I was kind of hoping for a table in the menu UI coding so these offsets could be easily manipulated.

    There is another custom port 0x2FFFE0 which looks to allow the reading of data from the PCBs IC (which may pull data directly from the flash chips). I have not looked into this properly but it seems to allow the reading of SoftDIPs and backupRAM for stored games without the need to move the entire game into the NeoGeo memory space first. This is entirely speculation on my part but does look about right from what I see so far.
    THE UNIVERSE BIOS ( MVS / AES, and now also for CD )
    www.universebios.com. Also on facebook, please like http://www.facebook.com/UniverseBios.

  3. #3
    Somewhere in Europe.

    Join Date
    Jul 2005
    Location
    Neo Geo World

    Posts
    629
    Exciting stuff, Raz. I'm assuming the point of this is to figure out exactly how things work and possibly improve upon what's already there. Would be nice if a cheapo multigame could be turned into a mostly bug free multi with a better game selection.

  4. #4
    Angel's Love Slave
    daskrabs's Avatar
    Join Date
    Aug 2010
    Location
    Phatal Philly

    Posts
    1,065
    Which revision of the 161 are you using?
    Sony PVM Club, Blast City Club, Egret II Club, Neo Candy Club
    WTB: Neo Geo MVS-U4 or MVS-U4/29

  5. #5
    Divine Hand of the UniBIOS
    Razoola's Avatar
    Join Date
    Nov 2002
    Location
    Finland, Earth

    Posts
    4,619
    Quote Originally Posted by daskrabs View Post
    Which revision of the 161 are you using?
    I am really not sure, how can one tell the difference?
    THE UNIVERSE BIOS ( MVS / AES, and now also for CD )
    www.universebios.com. Also on facebook, please like http://www.facebook.com/UniverseBios.

  6. #6
    Angel's Love Slave
    daskrabs's Avatar
    Join Date
    Aug 2010
    Location
    Phatal Philly

    Posts
    1,065
    Quote Originally Posted by Razoola View Post
    I am really not sure, how can one tell the difference?
    I don't know for sure either, but there's been at least 2 revisions. GadgetUK's thread has lots of pics in it. That might help.
    Sony PVM Club, Blast City Club, Egret II Club, Neo Candy Club
    WTB: Neo Geo MVS-U4 or MVS-U4/29

  7. #7
    Somewhere in Europe.

    Join Date
    Jul 2005
    Location
    Neo Geo World

    Posts
    629
    Is this simply exploratory, or do you have plans for the 161-in-1, granted its architecture meets your expectations? If it were possible to turn this into a greatly improved multi, with a better game selection and a better menu, this could be a low cost alternative to the currently available flash devices. I wonder if this would be a feasable business model. Buying a stock of these, making the alterations, possibly adding new labels, and re-selling the improved version.

  8. #8
    Divine Hand of the UniBIOS
    Razoola's Avatar
    Join Date
    Nov 2002
    Location
    Finland, Earth

    Posts
    4,619
    Looking a little more at the custom port 0x2FFFE0, it seems related to SoftDIPs only. From what I can tell thus far, the cart stores and recalls set SoftDIPs using it. I do not know at this point if this means the multicart is able to remember the softdips for all games it holds or if it comes with default softDIPs already stored.

    It seems SoftDIPS are only saved when you return to the menu to choose a new game.

    I'm not to sure about it at all at the moment, I seem to remember reading somewhere at some point there was a way to set easy, medium or hard levels with the multicart in one go for all games. Is that right?
    Last edited by Razoola; 01-11-2018 at 08:50 AM.
    THE UNIVERSE BIOS ( MVS / AES, and now also for CD )
    www.universebios.com. Also on facebook, please like http://www.facebook.com/UniverseBios.

  9. #9
    Avid Neo-Expert
    Montatez's Avatar
    Join Date
    Jun 2012
    Location
    The North.

    Posts
    1,977
    Quote Originally Posted by Morden View Post
    Is this simply exploratory, or do you have plans for the 161-in-1, granted its architecture meets your expectations? If it were possible to turn this into a greatly improved multi, with a better game selection and a better menu, this could be a low cost alternative to the currently available flash devices. I wonder if this would be a feasable business model. Buying a stock of these, making the alterations, possibly adding new labels, and re-selling the improved version.
    Not sure it would be cost effective though. The 161 has some problems but being to replace most of the games for games not on the cart would be nice.
    Spoiler:
    Quote Originally Posted by gusmoney View Post
    "[M]ost agggressive gaming sites" has to be one of the strangest statements I have ever heard.

    A bunch of forty-something video-gaming nerds that are only keyboard commandos and mostly sedate pussies any other hour of the day cannot really be all that aggressive, can they? (My self included.)

    I love the lads here, this forum in general, and the mentality but lets not kid ourselves about this being some sort of dark web tough corner of the world.

  10. #10
    Member
    Join Date
    Nov 2016
    Location
    Canada

    Posts
    38
    Nice work. I think I'll pick up a 161 cart.

  11. #11
    Divine Hand of the UniBIOS
    Razoola's Avatar
    Join Date
    Nov 2002
    Location
    Finland, Earth

    Posts
    4,619
    Another quick question for those with a 161in1. Is it normal to see the unibios exception handling screen when you choose the game puzzle bobble 2? Then once you choose the reset option the game starts normally?
    THE UNIVERSE BIOS ( MVS / AES, and now also for CD )
    www.universebios.com. Also on facebook, please like http://www.facebook.com/UniverseBios.

  12. #12
    If I could have
    My time back
    I'd keep it in ma' pants
    c0nn0r's Avatar
    Join Date
    Jul 2012
    Location
    Canada

    Posts
    688
    Quote Originally Posted by Razoola View Post
    Another quick question for those with a 161in1. Is it normal to see the unibios exception handling screen when you choose the game puzzle bobble 2? Then once you choose the reset option the game starts normally?
    No, this is not normal. I just tried it with my 161-in-1 and it boots directly to the parental advisoly screen.
    Last edited by c0nn0r; 01-18-2018 at 11:30 AM. Reason: advisoly

  13. #13
    Divine Hand of the UniBIOS
    Razoola's Avatar
    Join Date
    Nov 2002
    Location
    Finland, Earth

    Posts
    4,619
    Quote Originally Posted by c0nn0r View Post
    No, this is not normal. I just tried it with my 161-in-1 and it boots directly to the parental advisory screen.
    What version of the universebios are you using when you test that?
    THE UNIVERSE BIOS ( MVS / AES, and now also for CD )
    www.universebios.com. Also on facebook, please like http://www.facebook.com/UniverseBios.

  14. #14
    Mitt Romney's Hairdresser
    Lemony Vengeance's Avatar
    Join Date
    Jan 2012
    Location
    Happy Valley

    Posts
    5,070
    This is amazing work RAZ! keep it up!
    It's impossible to be a nice guy on the internet.

  15. #15
    If I could have
    My time back
    I'd keep it in ma' pants
    c0nn0r's Avatar
    Join Date
    Jul 2012
    Location
    Canada

    Posts
    688
    Quote Originally Posted by Razoola View Post
    What version of the universebios are you using when you test that?
    3.0

  16. #16
    Lazy SNK Employee
    DuffCon's Avatar
    Join Date
    May 2015
    Location
    Bay Area, CA

    Posts
    59
    Just noticed the site update; will the orders going out from May 2nd come with the new 4.0 unibios?


    Sent from my iPad using Tapatalk
    Current Arcade: Capcom Big Blue - 2nd Gen NQS | Atari Family MVS conversion

  17. #17
    Divine Hand of the UniBIOS
    Razoola's Avatar
    Join Date
    Nov 2002
    Location
    Finland, Earth

    Posts
    4,619
    All I did on the site a few days ago is mention I could start still orders again from tomorrow. 4.0 is close.

    Raz
    THE UNIVERSE BIOS ( MVS / AES, and now also for CD )
    www.universebios.com. Also on facebook, please like http://www.facebook.com/UniverseBios.

  18. #18
    Divine Hand of the UniBIOS
    Razoola's Avatar
    Join Date
    Nov 2002
    Location
    Finland, Earth

    Posts
    4,619
    rockstarrunner who has been helping with beta testing on AES has made a demo video of a beta PICKnMIX running on AES if anyone is intrested.

    THE UNIVERSE BIOS ( MVS / AES, and now also for CD )
    www.universebios.com. Also on facebook, please like http://www.facebook.com/UniverseBios.

  19. #19
    Crazed MVS Addict
    J-P's Avatar
    Join Date
    May 2017
    Location
    Montreal, Canada

    Posts
    148
    Looks pretty interesting - will wait until you release 4.0 if it's so close as I need to grab a few chips from you. Will definitely be cool for a cheap cab setup with an evil banana-cart.

  20. #20
    Cheng's Errand Boy
    bochi's Avatar
    Join Date
    Feb 2012
    Location
    Puerto Rico

    Posts
    117
    Man can't wait

  21. #21
    Lazy SNK Employee
    DuffCon's Avatar
    Join Date
    May 2015
    Location
    Bay Area, CA

    Posts
    59
    Just bought one, canít wait!
    Current Arcade: Capcom Big Blue - 2nd Gen NQS | Atari Family MVS conversion

  22. #22
    Cheng's Errand Boy
    phoenixdownita's Avatar
    Join Date
    Jun 2015
    Location
    United States

    Posts
    111
    Just got my 4.0 file from Raz, as promised here early I sent a "donation for beer", even if the upgrade program is free (which is awesome btw) I put my money where my mouth is, a donation is a good sign of that and I think it allows Raz to continue innovating on that work of beauty called Unibios.

  23. #23
    Divine Hand of the UniBIOS
    Razoola's Avatar
    Join Date
    Nov 2002
    Location
    Finland, Earth

    Posts
    4,619
    Many many thanks for that
    THE UNIVERSE BIOS ( MVS / AES, and now also for CD )
    www.universebios.com. Also on facebook, please like http://www.facebook.com/UniverseBios.

  24. #24
    Cheng's Errand Boy
    phoenixdownita's Avatar
    Join Date
    Jun 2015
    Location
    United States

    Posts
    111
    Totally worth it.
    If anyone with an AES already has an MVS converter, Uni4 + "banana" cart is hard to beat.
    For MVS is just a slam dunk as one doesn't even need a converter.
    That instant game switch of the PickNMix is a killer feature, a pity really they didn't cut some of the hacks and included some more original releases (I venture the hacks are "simple" overlay on the actual games so they take little to no space .... just a speculation).

    Only pain is the need to go and "fix" the levels of the games but to be fair one can do it as it actually plays them now, no need to do it upfront (I wonder if what we experience in terms of "default banana settings" is a side effect of the flash being set to FF or maybe just random garbage?)
    Last edited by phoenixdownita; 05-09-2018 at 01:07 AM.

  25. #25
    Lazy SNK Employee
    DuffCon's Avatar
    Join Date
    May 2015
    Location
    Bay Area, CA

    Posts
    59
    Just got this a few minutes ago, I know what Iím doing tonight!



    Side note: i really admire Razís ingenuitive packing method for the chip!
    Current Arcade: Capcom Big Blue - 2nd Gen NQS | Atari Family MVS conversion

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •