xboxscene.org forums

Author Topic: @xman Re. Nkp11_config_open.bin And Virtual Eeprom  (Read 115 times)

xman954

  • Archived User
  • Hero Member
  • *
  • Posts: 835
@xman Re. Nkp11_config_open.bin And Virtual Eeprom
« on: June 12, 2011, 12:56:00 PM »

make the changes and recompile NKP11

dont use eeprom_off.bin it will override new setings

 

CODE


;-----------------------------------------------------------------
;IN VIRTEEPROM.ASM FILE
;-----------------------------------------------------------------

installvirteeprom:
               push eax  ; save them
               push ebx

               mov ebx,[options+4] ; reload tray options   <<<<<< add !!!!!!!
               test ebx,256  ; eeprom off mask       <<<<<< add !!!!!!!
               jne short ee_off.          ;                       <<<<<< add !!!!!!!

               lea eax,[ee_fp] ; eeprom off file name
               call open_file ; go try to open eeprom_off file
               cmp     [esi+4],dword 01h; status was put here by NtOpenfile (8 bytes total)
               jne short do_ve. ; file not there !
;---------------------------------------
               push dword [ebx]
               call dword [NtClose]
ee_off.        add esp,4+4  ; unwind stack       ; <<<<<< add ee_off.
               ret   ; were done, no virtual eeprom
;---------------------------------------
do_ve.         pop ebx
               pop eax


;-----------------------------------------------------------------
;IN RTC.ASM FILE
;-----------------------------------------------------------------

%ifdef BOOT_DASH_ONLY
%define TV7 128
%endif

 

%ifdef EEPROM_OFF_NIGHTBIRD           ; <<<<<<<<<<<<<<<<<<<< add !!!!!!!
%define TV8 256         ; <<<<<<<<<<<<<<<<<<<< add !!!!!!!
%endif    ; <<<<<<<<<<<<<<<<<<<< add !!!!!!!

;------------------------------
%ifdef  VIDEO_FORCE_PROGRESSIVE
%define VFP 1
%endif
%ifdef  VIDEO_FORCE_RGB
%define VFR 2
%endif
%ifdef  FLICKER_FILTER
%define VFF 4
%endif
%ifdef  FLICKER_FILTER_VALUE
%define FF_VAL FLICKER_FILTER_VALUE
%endif
;------------------------------
%define VID_SET  VFR+VFP+VFF
%define TRAY_VAL        TV0+TV1+TV2+TV3+TV4+TV5+TV6+TV7+TV8  ; <<<<<<< add (+TV8)

;-----------------------------------------------------------------
;IN THE CONFIG_RUNTIME.INC FILE THAT YOU WANT THE EEPROM OFF
;-----------------------------------------------------------------

%define EEPROM_OFF_NIGHTBIRD



Logged

xman954

  • Archived User
  • Hero Member
  • *
  • Posts: 835
@xman Re. Nkp11_config_open.bin And Virtual Eeprom
« Reply #1 on: June 12, 2011, 03:04:00 PM »

glad to hear it

to fix error

CODE


;----------------------------------------------------------

;    IN rtc.asm

;---------------------------------------------------------

%define TV6 0
%define TV7 0

%define TV8 0            ; <<<<<<<<<< add

%define VFR 0


Logged

Nightbird

  • Archived User
  • Newbie
  • *
  • Posts: 44
@xman Re. Nkp11_config_open.bin And Virtual Eeprom
« Reply #2 on: June 12, 2011, 03:29:00 PM »

Just added that and it now works spot on.
Much appreciated.
Logged