File: highlight.asm-6502.html

package info (click to toggle)
kf6-syntax-highlighting 6.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 47,568 kB
  • sloc: xml: 197,750; cpp: 12,850; python: 3,023; sh: 955; perl: 546; ruby: 488; pascal: 393; javascript: 161; php: 150; jsp: 132; lisp: 131; haskell: 124; ada: 119; ansic: 107; makefile: 96; f90: 94; ml: 85; cobol: 81; yacc: 71; csh: 62; erlang: 54; sql: 51; java: 47; objc: 37; awk: 31; asm: 30; tcl: 29; fortran: 18; cs: 10
file content (85 lines) | stat: -rw-r--r-- 7,110 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>highlight.asm-6502</title>
<meta name="generator" content="KF5::SyntaxHighlighting - Definition (Asm6502) - Theme (Breeze Light)"/>
</head><body style="background-color:#ffffff;color:#1f1c1b"><pre>
<span style="color:#0057ae">.MEMORYMAP</span>
        <span style="font-weight:bold">SLOTSIZE</span> <span style="color:#b08000">$8000</span> <span style="color:#898887">; The slot is $8000 bytes in size. More details on slots later.</span>
        <span style="font-weight:bold">DEFAULTSLOT</span> <span style="color:#b08000">0</span> <span style="color:#898887">; There's only 1 slot in SNES, there are more in other consoles.</span>
        <span style="font-weight:bold">SLOT</span> <span style="color:#b08000">0</span> <span style="color:#b08000">$8000</span> <span style="color:#898887">; Defines Slot 0's starting address.</span>
<span style="color:#0057ae">.</span><span style="color:#0057ae">ENDME</span>

<span style="color:#0057ae">.</span><span style="color:#0057ae">SNESHEADER</span>
        <span style="font-weight:bold">ID</span>    <span style="color:#bf0303">"SNES"</span>
        <span style="font-weight:bold">NAME</span>  <span style="color:#bf0303">"Test Demo Mode 7     "</span>
        <span style="color:#898887">;     "123456789012345678901"</span>
        <span style="font-weight:bold">LOROM</span>
        <span style="font-weight:bold">SLOWROM</span>
        <span style="font-weight:bold">CARTRIDGETYPE</span> <span style="color:#b08000">$00</span>
        <span style="font-weight:bold">ROMSIZE</span> <span style="color:#b08000">$09</span> <span style="color:#898887">;size rom 09-0d</span>
        <span style="font-weight:bold">VERSION</span> <span style="color:#b08000">00</span>
<span style="color:#0057ae">.</span><span style="color:#0057ae">ENDSNES</span>

<span style="color:#0057ae">.MACRO</span> Clear_RAM
    <span style="font-weight:bold">ldx</span> <span style="font-weight:bold">#</span><span style="color:#b08000">$0</span>
        <span style="font-weight:bold">ldy</span> <span style="font-weight:bold">#</span><span style="color:#b08000">0</span>
        <span style="color:#644a9b">-:</span>
                <span style="font-weight:bold">sty</span> <span style="color:#b08000">0</span><span style="font-weight:bold">,x</span>
                <span style="font-weight:bold">inx</span>
                <span style="font-weight:bold">inx</span>
                <span style="font-weight:bold">cpx</span> <span style="font-weight:bold">#</span><span style="color:#b08000">$2000</span>
        <span style="font-weight:bold">bne</span> <span style="color:#ca60ca">-</span>
<span style="color:#0057ae">.ENDM</span>

<span style="color:#0057ae">.include</span> <span style="color:#bf0303">"header.asm"</span>

<span style="color:#0057ae">.</span><span style="color:#0057ae">bank</span> <span style="color:#b08000">0</span> slot <span style="color:#b08000">0</span>
<span style="color:#0057ae">.org</span> <span style="color:#b08000">0</span>

<span style="color:#644a9b">Main:</span>
        <span style="font-weight:bold">sei</span>
        <span style="font-weight:bold">clc</span>
        <span style="font-weight:bold">xce</span>

        <span style="font-weight:bold">rep</span> <span style="font-weight:bold">#</span><span style="color:#b08000">$10</span>        <span style="color:#898887">;16 bit xy</span>
        <span style="font-weight:bold">sep</span> <span style="font-weight:bold">#</span><span style="color:#b08000">$20</span>        <span style="color:#898887">; 8 bit a</span>

        <span style="color:#0057ae">.dw</span> <span style="color:#b08000">$1C02</span><span style="color:#ca60ca">,</span><span style="color:#b08000">$1C02</span><span style="color:#ca60ca">,</span><span style="color:#b08000">$1C02</span><span style="color:#ca60ca">,</span><span style="color:#b08000">$1C02</span>

        <span style="font-weight:bold">lda</span> sincos.l <span style="color:#ca60ca">+</span> <span style="color:#b08000">$80</span><span style="font-weight:bold">,X</span>

<span style="color:#644a9b">sincos2:</span>
        <span style="color:#0057ae">.include</span> <span style="color:#bf0303">"DATA/dsincos.asm"</span>

        <span style="font-weight:bold">lda</span> <span style="font-weight:bold">#</span><span style="color:#ca60ca">\</span><span style="color:#b08000">1</span><span style="color:#ca60ca">&amp;</span><span style="color:#b08000">$FF</span>
        <span style="font-weight:bold">sta</span> <span style="color:#b08000">$211B</span>

        <span style="font-weight:bold">cmp</span> <span style="font-weight:bold">#</span><span style="color:#b08000">$04</span>
        <span style="font-weight:bold">bne</span> <span style="color:#ca60ca">+++</span>
                <span style="font-weight:bold">lda</span> <span style="font-weight:bold">#</span><span style="color:#b08000">$04</span>
                <span style="font-weight:bold">bra</span> lab
        <span style="color:#644a9b">+++:</span>

<span style="font-weight:bold">TMP</span>      EQU <span style="color:#b08000">$6</span>

<span style="color:#644a9b">XY:</span>
         <span style="font-weight:bold">BCC</span> MOD7
         <span style="font-weight:bold">CPX</span> <span style="font-weight:bold">#</span><span style="color:#b08000">3</span>          <span style="color:#898887">; bla bla</span>
         <span style="font-weight:bold">BCS</span> MARCH
         <span style="font-weight:bold">DEY</span>
<span style="font-weight:bold">MARCH</span>    EOR <span style="font-weight:bold">#</span><span style="color:#b08000">$7F</span>        <span style="color:#898887">; bla bla</span>
         <span style="font-weight:bold">JSR</span> MOD7
         <span style="font-weight:bold">CPY</span> <span style="font-weight:bold">#</span><span style="color:#b08000">200</span>
         <span style="font-weight:bold">ADC</span> MTAB<span style="color:#ca60ca">-</span><span style="color:#b08000">1</span><span style="font-weight:bold">,X</span>
         <span style="font-weight:bold">STA</span> TMP
         <span style="font-weight:bold">TYA</span>
         <span style="font-weight:bold">SBC</span> TMP
         <span style="font-weight:bold">LSR</span>
         <span style="font-weight:bold">TYA</span>
         <span style="font-weight:bold">STA</span> TMP
<span style="font-weight:bold">MOD7</span>     ADC <span style="font-weight:bold">#</span><span style="color:#b08000">7</span>
         <span style="font-weight:bold">RTS</span>
         <span style="font-weight:bold">CLC</span>
<span style="font-weight:bold">MTAB</span>     DB <span style="color:#b08000">1</span><span style="color:#ca60ca">,</span><span style="color:#b08000">4</span><span style="color:#ca60ca">,</span><span style="color:#b08000">23</span><span style="color:#ca60ca">,</span><span style="color:#b08000">34</span><span style="color:#ca60ca">,</span><span style="color:#b08000">3</span><span style="color:#ca60ca">,</span><span style="color:#b08000">12</span>
</pre></body></html>