Warning, /frameworks/syntax-highlighting/autotests/folding/highlight.asm-6502.fold is written in an unsupported language. File is not indexed.

0001 .MEMORYMAP
0002         SLOTSIZE $8000 ; The slot is $8000 bytes in size. More details on slots later.
0003         DEFAULTSLOT 0 ; There's only 1 slot in SNES, there are more in other consoles.
0004         SLOT 0 $8000 ; Defines Slot 0's starting address.
0005 .ENDME
0006 
0007 .SNESHEADER
0008         ID    "SNES"
0009         NAME  "Test Demo Mode 7     "
0010         ;     "123456789012345678901"
0011         LOROM
0012         SLOWROM
0013         CARTRIDGETYPE $00
0014         ROMSIZE $09 ;size rom 09-0d
0015         VERSION 00
0016 .ENDSNES
0017 
0018 .MACRO Clear_RAM
0019     ldx #$0
0020         ldy #0
0021         -:
0022                 sty 0,x
0023                 inx
0024                 inx
0025                 cpx #$2000
0026         bne -
0027 .ENDM
0028 
0029 .include "header.asm"
0030 
0031 .bank 0 slot 0
0032 .org 0
0033 
0034 Main:
0035         sei
0036         clc
0037         xce
0038 
0039         rep #$10        ;16 bit xy
0040         sep #$20        ; 8 bit a
0041 
0042         .dw $1C02,$1C02,$1C02,$1C02
0043 
0044         lda sincos.l + $80,X
0045 
0046 sincos2:
0047         .include "DATA/dsincos.asm"
0048 
0049         lda #\1&$FF
0050         sta $211B
0051 
0052         cmp #$04
0053         bne +++
0054                 lda #$04
0055                 bra lab
0056         +++:
0057 
0058 TMP      EQU $6
0059 
0060 XY:
0061          BCC MOD7
0062          CPX #3          ; bla bla
0063          BCS MARCH
0064          DEY
0065 MARCH    EOR #$7F        ; bla bla
0066          JSR MOD7
0067          CPY #200
0068          ADC MTAB-1,X
0069          STA TMP
0070          TYA
0071          SBC TMP
0072          LSR
0073          TYA
0074          STA TMP
0075 MOD7     ADC #7
0076          RTS
0077          CLC
0078 MTAB     DB 1,4,23,34,3,12