11 March 2016 - Forum Rules
Started by Videogamer555, April 25, 2013, 06:37:17 PM
Quote from: Videogamer555 on April 25, 2013, 06:37:17 PMNote: I thought the concept of assembly language was supposed to be a STANDARD SET OF INSTRUCTIONS, but I'm getting tons of incompatiabilities here between WLA and XKAS.
hirom;add a quick header to the ROM. For HiROM mapping, it is expected to be at $ffc0 in the first bank.;You should also be able to use use $00ffc0, but I forget if xkas maps that correctly offhand.org $c0ffc0 db 'ROM TITLE ' db $31 ;lorom ($31 = hirom) db $02 ;rom+save ram db $0a ;8mbit rom db $03 ;64kb sram db $00 ;japan db $00 ;no developer db $01 ;version 1.1 dw $0000 ;inverse checksum dw $ffff ;checksum dw $ffff,$ffff,$ffff dw $ffff ;brk dw $ffff dw $8800 ;nmi dw $ffff dw $8800 ;irq dw $ffff,$ffff dw $ffff ;cop dw $ffff,$ffff,$ffff dw $8000 ;reset dw $ffff;Your nmi and interrupt vectors point here. Right now, it does nothing but return in the event they run.org $c08800 rti;Your reset vector points here. This is thus the beginning of code execution.org $c08000 sei ;disable interrupts clc xce ;switch to native mode jsl $c10000 ;jump to initialization routine.loopme: jmp loopmeorg $c10000 ;Your Initialization Code Could Go Here. rtl
Page created in 0.034 seconds with 19 queries.