Xkas Tool
Oct 11th, 2017
Never
Xkas 0.06: Command line SNES cross assembler. Byuu: Download: xkas+ 14.1: Fork of xkas that add syntax support and improve things. Revenant: Download: Asar: SNES assembler based on xkas. Alcaro: Download: DUDE: 65816 GUI disassembler. Drakkhen: Download: bsnes-plus 0.73-3a: Fork of bsnes-classic with new debugging features and improvements. Free Randomizer Tools. Lottery Quick Pick is perhaps the Internet's most popular with over 120 lotteries. Number Generator makes random numbers in configurable intervals.
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- ;this file made for xkas
- ;variable locations (these are lowrom addresses) (these addresses should match the ones on the include below)
- !CodeOffset = $B08000
- !SetBank = #$B1
- !SetBank2 = #$B2 ;should always be 1 more than SetBank1 (not sure if it's same with HiRom)
- !MapOffset = #$8000
- !ColBank = #$B3
- org $B18000
- incbin introfiles/intro.map
- org $B39000
- ;start of rom position, should be 00:FF00 if it's HiRom (use LunarAdress to tell which it is)
- JMP !CodeOffset
- org !CodeOffset
- CLC
- SEP #$30
- LDA #$00
- PLB
- STA $2100
- STA $2101
- STA $2103
- STA $2106
- STA $2108
- STA $210A
- STA $210C
- STA $210D
- STA $210E
- STA $210F
- STA $2110
- STA $2111
- STA $2112
- STA $2113
- STA $2114
- LDA #$80
- LDA #$00
- STA $2117
- STA $211B
- STA $211B
- STA $211C
- STA $211D
- STA $211E
- STA $211E
- STA $211F
- STA $2120
- STA $2121
- STA $2124
- STA $2126
- STA $2128
- STA $212A
- LDA #$01
- LDA #$00
- STA $212E
- LDA #$30
- LDA #$00
- LDA #$E0
- LDA #$00
- LDA #$01 ;auto read joypads
- STA $4200
- STA $4201
- STA $4202
- STA $4204
- STA $4206
- STA $4208
- STA $420A
- STA $420C
- REP #$30
- LDA #$03
- LDA #$01
- LDA #$00
- LDA #$01
- ;JSR $2201
- LDX #$8000
- LDX #$1801
- LDX !MapOffset
- LDA !MapBank
- LDX #$0C00
- LDA #$01
- LDA #$00
- LDX #$2200
- LDX !ColOffset
- LDA !ColBank
- LDX #$0200 ;512 colors
- LDA #$01
- JSR Jump1
- ;copy first half #$8000
- STX $2116
- STX $4300
- STX $4302
- STA $4304
- STX $4305
- STA $420B
- ;copy bottom half #$6000 in size
- STX $4302
- STA $4304
- STX $4305
- STA $420B
- STA $2100
- JSR Jump2
- CMP #$10
- {
- LDX #$0030
- Jump3:
- LDY #$FFFF
- Jump4:
- BNE Jump4
- Jump5:
- LDA $4212
- BEQ Jump5
- Jump6:
- AND #$01
- LDA $4218
- BNE Jump7
- ;BNE Jump3 ;don't wait for keypress
- SEP #$20
- AND #$80
- LDA #$0F
- Jump10:
- DEC A
- JSR Jump2
- CMP #$00
- LDX #$0000
- ;old code from beginning of unchanged rom
- XCE
- REP #$10
- Jump1:
- Jump11:
- AND #$80
- PLA
- Jump2:
- Jump8:
- BNE Jump8
- pha
- sep #$20
- ; sta.l $4200
- Vloop:
- and #$80
- ; sta.l $4200
- plp
- rts
RAW Paste Data