here is the fix for the green LED not blinking when ejecting
any other color setting still will not blink (only blinks in auto mode)
CODE
;;;--------------------------------------------------------------------------
set_led:
cmp eax, 000fh ; green value
je short set_auto ; if green set to auto
;-------
push eax ; must be dword size
push byte 0
push byte 8 ; led_register
push byte 20h ; pic_address
call dword [HalWriteSMBusValue]
push byte 1 ; manual mode
push byte 0
push byte 7 ; led_mode
push byte 20h ; pic_address
call dword [HalWriteSMBusValue]
ret
set_auto:
push byte 0 ; auto mode
push byte 0
push byte 7 ; led_mode
push byte 20h ; pic_address
call dword [HalWriteSMBusValue]
ret
;;;--------------------------------------------------------------------------
just replace set_led in NKP_top.asm with this one
also the clock check bug is due to the msdash missing one or more of it's support files
OR
shadowC failing to load and then trying to run C:\xboxdash.xbe
this is changed to look for E:\
NKP11\clock.xbe (MS xboxdash.xbe)
if not there then no clock testing will be done...
also added extra code to test for the needed files before calling the ms dash to set the clock
so far it only spot checks for some of the files need
CODE
clk_f1 : db '\Device\Harddisk0\Partition2\fonts\Xbox book.xtf',0,0
clk_f2 : db '\Device\Harddisk0\Partition2\xboxdashdata.185ead00\settings_clock.xip',0,0
clk_f3 : db '\Device\Harddisk0\Partition2\media\content\english\locale.103',0,0
if any one wants to post a list of the files needed that would be nice
as i am short on time
and will add a test for them and release the fix