Specifications
AMD Geode⢠GeodeROM Functional Specification 249
Configuring/Customizing
32087C
18.9.2 Programming Reference
18.9.2.1 Sample SMENU.ASM file:
INIT_MENU
MENU m_menu,"Main Menu",3,1,24,80,TOP_MENU
ITEM "A. Time "
SPECIAL_RTC_TIME "Time"
ITEM_HELP "Set the current time in the RTC"
ITEM "B. Date "
SPECIAL_RTC_DATE "Date"
ITEM_HELP"Set the current date in the RTC"
SKIP_LINE
ITEM "C. Motherboard I/O Device Configuration"
GOTO_MENU io_menu
ITEM_HELP "Set addresses for motherboard devices"
SKIP_LINE
ITEM "L. Load Defaults"
DO_FUNCTION load_defaults
ITEM_HELP "Load Default Values"
SKIP_LINE
ITEM "S. Save Values Without Exit"
LABEL_ITEM no_exit_save
DO_FUNCTION save_changed_values
ITEM_HELP "Saved the changed values (if any) to CMOS"
ITEM "Q. Exit Without Save"
DO_FUNCTION exit_no_save
ITEM_HELP "Exit without saving changes."
LONG_HELP "Exit without saving any changes except for Date And Time. "
ITEM "X. Save values and Exit"
DO_FUNCTION exit_with_save
ITEM_HELP "Save all changes and Exit"
LONG_HELP "Save all changed values and then re-boot the system "
LONG_HELP "in order that the changed values will take effect."
MENU io_menu,"Motherboard I/O Device Configuration",3,1,25,80,NO_DIRECT
ITEM "Serial Port A: "
ITEM_HELP "Configure the 1st on-board UART"
LABEL_ITEM uart1_port
FIELD_DEF TOKEN,TOKEN_UART1_CONFIG,UART_CONFIG_WIDTH,1 or ZERO_OK
CHOICE"Disabled",TVALUE_UART_CONFIG_DIS
CHOICE"0x3f8 IRQ 4",TVALUE_UART_CONFIG_3F8
CHOICE"0x2f8 IRQ 3",TVALUE_UART_CONFIG_2F8
CHOICE"0x3e8 IRQ 4",TVALUE_UART_CONFIG_3E8
CHOICE"0x2e8 IRQ 3",TVALUE_UART_CONFIG_2E8
ITEM "Serial Port B: "
ITEM_HELP "Configure the 2nd on-board UART"
LABEL_ITEMuart2_port
FIELD_DEF TOKEN,TOKEN_UART2_CONFIG,UART_CONFIG_WIDTH,1 or ZERO_OK
SAME_CHOICES
SKIP_LINE
ITEM "TV Horizontal Position: "
LABEL_ITEM tv_hpos
FIELD_DEF TOKEN,TOKEN_TV_HPOS,TV_HPOS_WIDTH
RANGE "TV Horizontal Position (0-255) ",DECIMAL,0,255
END_MENU