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
> Xdk-free Development Of Xbe
ldotsfan
post Jun 12 2008, 01:36 PM
Post #1


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3098
Joined: 23-March 08
Member No.: 376711
Xbox Version: v1.1
360 version: unknown



This is from the ASM Community - ASM Book -XBOX NASM , I take no credit for it.

CODE

%include "kernel.inc"
%include "xbe.inc"

IMPORT    KeTickCount
IMPORT    HalReturnToFirmware

;##### XBOX Program Entry Point #####
XBE_START

;#### Paint the Screen ####
    mov    ebx,VIDEO_MEMORY
    mov    ecx,VIDEO_LIMIT
fill:
    mov    BYTE[ebx+1],0xFF
    add    ebx,4
    cmp    ebx,ecx
    jl    fill

;#### Small Wait Loop (5 seconds) ####
    mov    ebx,DWORD[KeTickCount]
    mov    ecx,DWORD[ebx]
    add    ecx,5000
.wait_loop:
    cmp    DWORD[ebx],ecx
    jl    .wait_loop

;#### Return to Dashboard ####
    push    DWORD    0x02
    call    [HalReturnToFirmware]
jmp $

;##### End of XBOX Program #####
XBE_END


The two .inc files can be found at the website and exports the xbox kernel's API like NtOpenFile and HalWriteSMBusValue and also the XBE header etc. So you can do XDK-free programming with NASM which is freely available.




User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic
ldotsfan   Xdk-free Development Of Xbe   Jun 12 2008, 01:36 PM






Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 24th May 2013 - 10:25 AM