How can I unlock sub-menus?

Discussion in 'BIOS Mods' started by Recursion, Jan 13, 2013.

  1. Recursion

    Recursion MDL Junior Member

    Dec 26, 2012
    75
    4
    0
    I have read the phoenix tutorial about unlocking hidden menus it's great. Thank you very much, but how can I unlock sub-menus? Because in the template00.rom file where I can find the main menu, advanced menu I can feel there is also some sub-menus but I don't know how can you unlock it?
     
  2. Recursion

    Recursion MDL Junior Member

    Dec 26, 2012
    75
    4
    0
    #2 Recursion, Jan 14, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    From the template00.rom file at address $d4 this code creates a sub-menu with 2 child menu:

    Code:
    57 11 00 00 33 11 00 00 FF 11 00 00 97 11 00 00 AD 11 00 00 03 11 00 00 6F 11 94 03 63 11 88 03
    This
    Code:
    6F 11 94 03 
    and
    Code:
    63 11 88 03
    is the sub-menu with 2 bytes title and 2 bytes pointer to sub-menu structure.

    This part makes a sub-menu parent and child tree, but how?
    Code:
    57 11 00 00 33 11 00 00 FF 11 00 00 97 11 00 00 AD 11 00 00 03 11 00 00
    Update: At address $200 is the main menu:

    Code:
    23 09 1C 02 A3 11 48 02 DB 10 64 02 D5 11 94 02 B7 13 10 03 4D 11 88 03 00 00 00 00
    
    First 2 bytes is title (little endian), next 2 bytes is pointer (little endian)


    Problem solved! Submenu is created with pointer in the gap. Here in this example the gap is filled with pointer 94 03 and 88 03 (little endian):

    Code:
    6F 11 94 03 63 11 88 03
    In this example the gap is empty hence no submenu:

    Code:
    57 11 00 00 33 11 00 00 FF 11 00 00 97 11 00 00 AD 11 00 00 03 11 00 00 
    Unfortunately in the Phoenix bios there is only room for 3 submenus because there is only keys f1,f9,10. Maybe is possible for more submenus but I don't know.