xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
 
Reply to this topicStart new topic
> @xman Re. Nkp11_config_open.bin And Virtual Eeprom
Nightbird
post Jun 11 2011, 11:16 PM
Post #1


X-S Member
*

Group: Members
Posts: 113
Joined: 3-January 03
Member No.: 16353
Xbox Version: v1.0
360 version: v1 (xenon)



Xman. I've been using 'NKP11_config_open.bin' to boot into VGA mode and a VGA configured XBMC using code below:
CODE
%define OPEN_PATH          '\Device\Harddisk0\Partition6\VGA\default.xbe'
;;; use this to enable all of NKP (disable to boot some other HACK)
%define    OPEN_DASH_WITH_NKP    
;;; use this to disable shadowC in open (alt) dash
;%define    OPEN_DASH_shadowC_OFF
;;;---------------------------------------------------------------------------
%define VIDEO_FORCE_RGB

It works really well, but my question is, is there a way of either enabling or disabling the virtual eeprom in the 'config_runtime.inc'? The reason is, I have my real eeprom set to 480p and 720p and my virtual eeprom set to 480p only. When I boot with the tray closed, I also use 'eeprom_off.bin' and the xbox boots to XBMC in 720p with the real eeprom. When I i boot with the tray open, I remove 'eeprom_off.bin', and the xbox boots to a 480p VGA configured XBMC using the virtual eeprom. The reason I use different eeprom's is because when in VGA mode if 720p is enabled it causes some emulators and games to black screen because they detect and use the highest resolution set in the eeprom.
At the moment I'm just using ''eeprom_off.bin' to control things, but is there a way to either enable or disable the virtual eeprom using the tray, like you can with the video mode and shadow_c. It would make things easier for me.
Thanks in advance.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
xman954
post Jun 12 2011, 07:56 PM
Post #2


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3028
Joined: 10-April 04
From: the bottom of Tampa Bay
Member No.: 113422
Xbox Version: v1.0
360 version: v1 (xenon)



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



User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Nightbird
post Jun 12 2011, 09:41 PM
Post #3


X-S Member
*

Group: Members
Posts: 113
Joined: 3-January 03
Member No.: 16353
Xbox Version: v1.0
360 version: v1 (xenon)



Xman, you're a star. Thank you very much for that piece of code. It works perfect. I've saved it on a text file on my xbox in case I ever lose it. Now I can control everything I need to with the tray. It's made things so much easier for me. It's saved me having to keep moving the 'eeprom_off.bin' in and out of the 'NKP11' folder.
Thanks again.

Note: If you omit 'EEPROM_OFF_NIGHTBIRD' in 'config_runtime.inc' it gives 'error: symbol 'TV8' undefined'. Although it makes no difference to me as it will be permanently defined.
Cheers.

This post has been edited by Nightbird: Jun 12 2011, 09:53 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
xman954
post Jun 12 2011, 10:04 PM
Post #4


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3028
Joined: 10-April 04
From: the bottom of Tampa Bay
Member No.: 113422
Xbox Version: v1.0
360 version: v1 (xenon)



glad to hear it

to fix error

CODE


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

;    IN rtc.asm

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

%define TV6 0
%define TV7 0

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

%define VFR 0


User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Nightbird
post Jun 12 2011, 10:29 PM
Post #5


X-S Member
*

Group: Members
Posts: 113
Joined: 3-January 03
Member No.: 16353
Xbox Version: v1.0
360 version: v1 (xenon)



Just added that and it now works spot on.
Much appreciated.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post





Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 19th May 2013 - 09:15 PM