Initial upload
7
com.wudsn.ide.asm.compilers.test/.classpath
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
28
com.wudsn.ide.asm.compilers.test/.project
Normal file
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>com.wudsn.ide.asm.compilers.test</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.ManifestBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.SchemaBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
@ -0,0 +1,7 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
|
||||
org.eclipse.jdt.core.compiler.compliance=1.6
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.source=1.6
|
10
com.wudsn.ide.asm.compilers.test/META-INF/MANIFEST.MF
Normal file
@ -0,0 +1,10 @@
|
||||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: WUDSN IDE Assembler Test Compilers Plug-in
|
||||
Bundle-SymbolicName: com.wudsn.ide.asm.compilers.test;singleton:=true
|
||||
Bundle-Version: 1.7.0.qualifier
|
||||
Bundle-Vendor: Peter Dell
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
|
||||
Bundle-Localization: plugin
|
||||
Require-Bundle: com.wudsn.ide.asm
|
||||
Bundle-ActivationPolicy: lazy
|
1
com.wudsn.ide.asm.compilers.test/bin/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/com
|
16
com.wudsn.ide.asm.compilers.test/build.properties
Normal file
@ -0,0 +1,16 @@
|
||||
source.. = src/
|
||||
output.. = bin/
|
||||
bin.includes = .,\
|
||||
plugin.xml,\
|
||||
icons/,\
|
||||
META-INF/,\
|
||||
plugin.properties,\
|
||||
src/,\
|
||||
build.properties,\
|
||||
plugin_de_DE.properties,\
|
||||
.classpath,\
|
||||
.project
|
||||
jars.compile.order = .
|
||||
src.includes = bin/,\
|
||||
icons/
|
||||
|
BIN
com.wudsn.ide.asm.compilers.test/icons/editor-test-16x16.gif
Normal file
After Width: | Height: | Size: 160 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_acorn.gif
Normal file
After Width: | Height: | Size: 214 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_alambik.gif
Normal file
After Width: | Height: | Size: 632 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_amiga.gif
Normal file
After Width: | Height: | Size: 634 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_amiga_aga.gif
Normal file
After Width: | Height: | Size: 631 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_amiga_ppc.gif
Normal file
After Width: | Height: | Size: 640 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_amplus.gif
Normal file
After Width: | Height: | Size: 375 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_apple2.gif
Normal file
After Width: | Height: | Size: 619 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_atari_falcon.gif
Normal file
After Width: | Height: | Size: 211 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_atari_st.gif
Normal file
After Width: | Height: | Size: 214 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_atari_ste.gif
Normal file
After Width: | Height: | Size: 207 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_atari_vcs.gif
Normal file
After Width: | Height: | Size: 293 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_atari_xl_xe.gif
Normal file
After Width: | Height: | Size: 211 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_bbcmicro.gif
Normal file
After Width: | Height: | Size: 640 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_beos.gif
Normal file
After Width: | Height: | Size: 274 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_bk.gif
Normal file
After Width: | Height: | Size: 962 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_c16.gif
Normal file
After Width: | Height: | Size: 216 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_coco.gif
Normal file
After Width: | Height: | Size: 626 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_commodore.gif
Normal file
After Width: | Height: | Size: 614 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_cpc.gif
Normal file
After Width: | Height: | Size: 265 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_dreamcast.gif
Normal file
After Width: | Height: | Size: 288 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_ds.gif
Normal file
After Width: | Height: | Size: 208 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_dtv.gif
Normal file
After Width: | Height: | Size: 621 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_ent.gif
Normal file
After Width: | Height: | Size: 625 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_flash.gif
Normal file
After Width: | Height: | Size: 217 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_freebsd.gif
Normal file
After Width: | Height: | Size: 628 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_gameboy.gif
Normal file
After Width: | Height: | Size: 408 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_gamepark32.gif
Normal file
After Width: | Height: | Size: 215 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_gba.gif
Normal file
After Width: | Height: | Size: 624 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_gbc.gif
Normal file
After Width: | Height: | Size: 279 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_gg.gif
Normal file
After Width: | Height: | Size: 378 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_gp2x.gif
Normal file
After Width: | Height: | Size: 979 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_gus.gif
Normal file
After Width: | Height: | Size: 309 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_iigs.gif
Normal file
After Width: | Height: | Size: 407 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_intellivision.gif
Normal file
After Width: | Height: | Size: 417 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_ipod.gif
Normal file
After Width: | Height: | Size: 212 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_jag.gif
Normal file
After Width: | Height: | Size: 382 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_java.gif
Normal file
After Width: | Height: | Size: 630 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_js.gif
Normal file
After Width: | Height: | Size: 201 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_linux.gif
Normal file
After Width: | Height: | Size: 634 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_lynx.gif
Normal file
After Width: | Height: | Size: 639 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_mac.gif
Normal file
After Width: | Height: | Size: 282 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_macb.gif
Normal file
After Width: | Height: | Size: 439 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_macosx.gif
Normal file
After Width: | Height: | Size: 292 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_mastersystem.gif
Normal file
After Width: | Height: | Size: 273 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_megadrive.gif
Normal file
After Width: | Height: | Size: 273 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_mobiles.gif
Normal file
After Width: | Height: | Size: 285 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_msdos.gif
Normal file
After Width: | Height: | Size: 276 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_msx.gif
Normal file
After Width: | Height: | Size: 169 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_msx2.gif
Normal file
After Width: | Height: | Size: 171 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_msx2p.gif
Normal file
After Width: | Height: | Size: 171 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_msxt.gif
Normal file
After Width: | Height: | Size: 171 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_n64.gif
Normal file
After Width: | Height: | Size: 640 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_neogeopocket.gif
Normal file
After Width: | Height: | Size: 215 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_nes.gif
Normal file
After Width: | Height: | Size: 263 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_ngc.gif
Normal file
After Width: | Height: | Size: 635 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_oric.gif
Normal file
After Width: | Height: | Size: 280 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_palmos.gif
Normal file
After Width: | Height: | Size: 631 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_pce.gif
Normal file
After Width: | Height: | Size: 268 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_php.gif
Normal file
After Width: | Height: | Size: 204 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_pocketpc.gif
Normal file
After Width: | Height: | Size: 301 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_pokemon.gif
Normal file
After Width: | Height: | Size: 394 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_processing.gif
Normal file
After Width: | Height: | Size: 194 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_ps1.gif
Normal file
After Width: | Height: | Size: 634 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_ps2.gif
Normal file
After Width: | Height: | Size: 285 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_ps3.gif
Normal file
After Width: | Height: | Size: 289 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_psp.gif
Normal file
After Width: | Height: | Size: 202 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_samcoupe.gif
Normal file
After Width: | Height: | Size: 616 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_sgi.gif
Normal file
After Width: | Height: | Size: 228 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_snes.gif
Normal file
After Width: | Height: | Size: 286 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_solaris.gif
Normal file
After Width: | Height: | Size: 649 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_sv.gif
Normal file
After Width: | Height: | Size: 278 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_thomson.gif
Normal file
After Width: | Height: | Size: 222 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_ti8x.gif
Normal file
After Width: | Height: | Size: 277 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_tt.gif
Normal file
After Width: | Height: | Size: 397 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_vb.gif
Normal file
After Width: | Height: | Size: 221 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_vectrex.gif
Normal file
After Width: | Height: | Size: 209 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_vic20.gif
Normal file
After Width: | Height: | Size: 287 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_wii.gif
Normal file
After Width: | Height: | Size: 212 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_wild.gif
Normal file
After Width: | Height: | Size: 275 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_win.gif
Normal file
After Width: | Height: | Size: 286 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_wonderswan.gif
Normal file
After Width: | Height: | Size: 214 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_xbox.gif
Normal file
After Width: | Height: | Size: 405 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_xbox360.gif
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_zx.gif
Normal file
After Width: | Height: | Size: 394 B |
BIN
com.wudsn.ide.asm.compilers.test/icons/os/k_zx81.gif
Normal file
After Width: | Height: | Size: 396 B |
10
com.wudsn.ide.asm.compilers.test/plugin.properties
Normal file
@ -0,0 +1,10 @@
|
||||
com.wudsn.ide.asm.preferences.test.AssemblerPreferencesTestCompilersPage.name=Test Compilers
|
||||
|
||||
com.wudsn.ide.asm.compiler.test.TestCompiler.name=TEST
|
||||
|
||||
com.wudsn.ide.asm.editor.test.TestEditor.name=Test Editor
|
||||
|
||||
com.wudsn.ide.asm.editor.test.TestSourceFile.name=Test Source File
|
||||
|
||||
com.wudsn.ide.asm.runner.test.runner1.name=First Application
|
||||
com.wudsn.ide.asm.runner.test.runner2.name=Second Application
|
64
com.wudsn.ide.asm.compilers.test/plugin.xml
Normal file
@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?eclipse version="3.4"?>
|
||||
<plugin>
|
||||
<extension
|
||||
point="org.eclipse.ui.preferencePages">
|
||||
<page
|
||||
category="com.wudsn.ide.asm.preferences.AssemblerPreferencesPage"
|
||||
class="com.wudsn.ide.asm.preferences.test.AssemblerPreferencesTestCompilersPage"
|
||||
id="com.wudsn.ide.asm.preferences.test.AssemblerPreferencesTestCompilersPage"
|
||||
name="%com.wudsn.ide.asm.preferences.test.AssemblerPreferencesTestCompilersPage.name">
|
||||
</page>
|
||||
</extension>
|
||||
<extension point="com.wudsn.ide.asm.compilers">
|
||||
<compiler
|
||||
class="com.wudsn.ide.asm.compiler.test.TestCompiler"
|
||||
defaultParameters="-o${outputFilePath} ${sourceFilePath}"
|
||||
defaultHardware="TEST"
|
||||
homePageURL="http://www.wudsn.com"
|
||||
id="test"
|
||||
name="%com.wudsn.ide.asm.compiler.test.TestCompiler.name"
|
||||
version="none">
|
||||
<supportedCPU
|
||||
cpu="MOS6502">
|
||||
</supportedCPU>
|
||||
<supportedCPU
|
||||
cpu="MOS6502_ILLEGAL">
|
||||
</supportedCPU>
|
||||
</compiler>
|
||||
|
||||
</extension>
|
||||
|
||||
<extension point="org.eclipse.core.contenttype.contentTypes">
|
||||
<content-type base-type="com.wudsn.ide.asm.editor.AssemblerSourceFile"
|
||||
file-extensions="asm" id="com.wudsn.ide.asm.editor.test.TestSourceFile"
|
||||
name="%com.wudsn.ide.asm.editor.test.TestSourceFile.name" priority="normal">
|
||||
</content-type>
|
||||
</extension>
|
||||
|
||||
<extension point="org.eclipse.ui.editors">
|
||||
<editor class="com.wudsn.ide.asm.editor.test.TestEditor"
|
||||
contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
|
||||
default="false" extensions="asm" icon="icons/editor-test-16x16.gif"
|
||||
id="com.wudsn.ide.asm.editor.test.TestEditor" name="%com.wudsn.ide.asm.editor.test.TestEditor.name">
|
||||
<contentTypeBinding contentTypeId="com.wudsn.ide.asm.editor.test.TestSourceFile">
|
||||
</contentTypeBinding>
|
||||
</editor>
|
||||
</extension>
|
||||
<extension
|
||||
point="com.wudsn.ide.asm.runners">
|
||||
<runner
|
||||
defaultCommandLine="${runnerExecutablePath} ${outputFilePath}"
|
||||
hardware="TEST"
|
||||
id="runner1"
|
||||
name="%com.wudsn.ide.asm.runner.test.runner1.name">
|
||||
</runner>
|
||||
<runner
|
||||
defaultCommandLine="${runnerExecutablePath} ${outputFilePath}"
|
||||
hardware="TEST"
|
||||
id="runner2"
|
||||
name="%com.wudsn.ide.asm.runner.test.runner2.name">
|
||||
</runner>
|
||||
</extension>
|
||||
|
||||
</plugin>
|
10
com.wudsn.ide.asm.compilers.test/plugin_de_DE.properties
Normal file
@ -0,0 +1,10 @@
|
||||
com.wudsn.ide.asm.preferences.test.AssemblerPreferencesTestCompilersPage.name=Test Kompiler
|
||||
|
||||
com.wudsn.ide.asm.compiler.test.TestCompiler.name=TEST
|
||||
|
||||
com.wudsn.ide.asm.editor.test.TestEditor.name=Test Editor
|
||||
|
||||
com.wudsn.ide.asm.editor.test.TestSourceFile.name=Test Quell-Datei
|
||||
|
||||
com.wudsn.ide.asm.runner.test.runner1.name=Erste Anwendung
|
||||
com.wudsn.ide.asm.runner.test.runner2.name=Zweite Anwendung
|
@ -0,0 +1,50 @@
|
||||
/**
|
||||
* Copyright (C) 2009 - 2014 <a href="http://www.wudsn.com" target="_top">Peter Dell</a>
|
||||
*
|
||||
* This file is part of WUDSN IDE.
|
||||
*
|
||||
* WUDSN IDE is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* WUDSN IDE is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with WUDSN IDE. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.wudsn.ide.asm.compiler.test;
|
||||
|
||||
import com.wudsn.ide.asm.compiler.Compiler;
|
||||
import com.wudsn.ide.asm.compiler.CompilerProcessLogParser;
|
||||
import com.wudsn.ide.asm.compiler.parser.CompilerSourceParser;
|
||||
|
||||
/**
|
||||
* Compiler class for TEST.
|
||||
*
|
||||
* @author Peter Dell
|
||||
*/
|
||||
public final class TestCompiler extends Compiler {
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
*/
|
||||
public TestCompiler() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public CompilerSourceParser createSourceParser() {
|
||||
return new TestCompilerSourceParser();
|
||||
}
|
||||
|
||||
@Override
|
||||
public CompilerProcessLogParser createLogParser() {
|
||||
|
||||
return new TestCompilerProcessLogParser();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,362 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<instructionset
|
||||
completionProposalAutoActivationCharacters="."
|
||||
singleLineCommentDelimiters=";"
|
||||
multipleLinesCommentDelimiters=""
|
||||
stringDelimiterCharacters="""
|
||||
blockDefinitionCharacters=""
|
||||
identifiersCaseSensitive="false"
|
||||
identifierStartCharacters="?@_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
|
||||
identifierPartCharacters="_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
|
||||
identifierSeparatorCharacter="."
|
||||
labelDefinitionSuffixCharacter=""
|
||||
macroUsagePrefixCharacter=""
|
||||
instructionsCaseSensitive="false"
|
||||
sourceIncludeDefaultExtension="">
|
||||
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".AND"
|
||||
title="Logical _a_n_d"
|
||||
type="DIRECTIVE"
|
||||
proposal=".AND _"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".BANK"
|
||||
title="Start a new _b_a_n_k"
|
||||
type="DIRECTIVE"
|
||||
proposal=".BANK_"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".BANKNUM"
|
||||
title="Current _b_a_n_k _n_u_mber"
|
||||
type="DIRECTIVE"
|
||||
proposal=".BANKNUM_"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".BYTE"
|
||||
title="Define _b_y_t_es"
|
||||
type="DIRECTIVE"
|
||||
proposal=".BYTE _"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".CBYTE"
|
||||
title="Define _character _b_y_t_es"
|
||||
type="DIRECTIVE"
|
||||
proposal=".CBYTE _"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".DBYTE"
|
||||
title="Define _double _b_y_t_es"
|
||||
type="DIRECTIVE"
|
||||
proposal=".DBYTE _"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".DEF"
|
||||
title="Determine if label is _d_e_fined"
|
||||
type="DIRECTIVE"
|
||||
proposal=".DEF _"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".DC"
|
||||
title="_Define _constant storage"
|
||||
type="DIRECTIVE"
|
||||
proposal=".DC _"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".DS"
|
||||
title="_Define _storage"
|
||||
type="DIRECTIVE"
|
||||
proposal=".DS _"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".ELSE"
|
||||
title="_E_l_s_e"
|
||||
type="DIRECTIVE"
|
||||
proposal=".ELSE_"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".END"
|
||||
title="_E_n_d assembly"
|
||||
type="DIRECTIVE"
|
||||
proposal=".END_"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".ENDIF"
|
||||
title="_E_n_d of _I_F"
|
||||
type="END_FOLDING_BLOCK_DIRECTIVE"
|
||||
proposal=".ENDIF_"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".ENDM"
|
||||
title="_E_n_d of _macro"
|
||||
type="END_SECTION_DIRECTIVE"
|
||||
proposal=".ENDM_"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".ENDR"
|
||||
title="_E_n_d of _repeat block"
|
||||
type="END_SECTION_DIRECTIVE"
|
||||
proposal=".ENDR_"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".ERROR"
|
||||
title="Generate _e_r_r_o_r"
|
||||
type="DIRECTIVE"
|
||||
proposal=".ERROR "_" _"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".FLOAT"
|
||||
title="Define _f_l_o_a_ting point number"
|
||||
type="DIRECTIVE"
|
||||
proposal=".FLOAT _"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".IF"
|
||||
title="_I_f"
|
||||
type="BEGIN_FOLDING_BLOCK_DIRECTIVE"
|
||||
proposal=".IF _\n.ENDIF"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".INCBIN"
|
||||
title="_I_n_clude _b_i_nary file"
|
||||
type="BINARY_INCLUDE_DIRECTIVE"
|
||||
proposal=".INCBIN "_""/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".INCLUDE"
|
||||
title="_I_n_c_l_u_d_e source file"
|
||||
type="SOURCE_INCLUDE_DIRECTIVE"
|
||||
proposal=".INCLUDE "_""/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".LOCAL"
|
||||
title="Start new _l_o_c_a_l label region"
|
||||
type="DIRECTIVE"
|
||||
proposal=".LOCAL_"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".MACRO"
|
||||
title="Define _m_a_c_r_o"
|
||||
type="BEGIN_MACRO_DEFINITION_SECTION_DIRECTIVE"
|
||||
proposal=".MACRO _\n.ENDM _"/>
|
||||
/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".NOT"
|
||||
title="Logical _n_o_t"
|
||||
type="DIRECTIVE"
|
||||
proposal=".NOT _"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".OPT"
|
||||
title="Set or clear compiler _o_p_tions"
|
||||
type="DIRECTIVE"
|
||||
proposal=".OPT _"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".OR"
|
||||
title="Logical _o_r"
|
||||
type="DIRECTIVE"
|
||||
proposal=".OR _"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".PAGE"
|
||||
title="Set _p_a_g_e options"
|
||||
type="DIRECTIVE"
|
||||
proposal=".PAGE _"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".REF"
|
||||
title="Determine if label has been _r_e_ferenced"
|
||||
type="DIRECTIVE"
|
||||
proposal=".REF _"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".REPT"
|
||||
title="Begin _R_e_pea_t block"
|
||||
type="BEGIN_REPEAT_SECTION_DIRECTIVE"
|
||||
proposal=".REPT _\n.ENDR"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".SBYTE"
|
||||
title="Define _screen _b_y_t_es"
|
||||
type="DIRECTIVE"
|
||||
proposal=".SBYTE _"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".SET"
|
||||
title="_S_e_t compiler offset"
|
||||
type="DIRECTIVE"
|
||||
proposal=".SET _"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".TAB"
|
||||
title="Set _t_a_b size"
|
||||
type="DIRECTIVE"
|
||||
proposal=".TAB _"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".TITLE"
|
||||
title="Set page _t_i_t_l_e"
|
||||
type="DIRECTIVE"
|
||||
proposal=".TITLE _"/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".WARN"
|
||||
title="Generate _w_a_r_ning"
|
||||
type="DIRECTIVE"
|
||||
proposal=".WARN "_""/>
|
||||
<directive
|
||||
cpus="*"
|
||||
name=".WORD"
|
||||
title="Define _w_o_r_ds"
|
||||
type="DIRECTIVE"
|
||||
proposal=".WORD _"/>
|
||||
|
||||
<pseudoopcode
|
||||
cpus="*"
|
||||
name="BGE"
|
||||
title="_Branch _greater than or _equal"
|
||||
proposal="BGE _"/>
|
||||
<pseudoopcode
|
||||
cpus="*"
|
||||
name="BLT"
|
||||
title="_Branch _less _than"
|
||||
proposal="BLT _"/>
|
||||
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="ANC"
|
||||
title="_A_nd byte with accumulator and set _carry"
|
||||
proposal="ANC _"
|
||||
flags="N,Z,C"
|
||||
addressing="Immediate"/>
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="ARR"
|
||||
title="_And byte with accumulator then _rotate one bit _right in accumulator"
|
||||
proposal="ARR _"
|
||||
flags="N,V,Z,C"
|
||||
addressing="Immediate"/>
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="ATX"
|
||||
title="_And byte with accumulator, then _transfer accumulator to _X register"
|
||||
proposal="ATX _"
|
||||
flags="N,Z"
|
||||
addressing="Immediate"/>
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="AXS"
|
||||
title="_And _X register with accumulator and store result in X register, then _subtract byte from X register (without borrow)"
|
||||
proposal="AXS _"
|
||||
flags="N,Z,C"
|
||||
addressing="Immediate"/>
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="AX7"
|
||||
title="_And _X register with accumulator then and result with _7 and store in memory"
|
||||
proposal="AX7 _"
|
||||
flags="-"
|
||||
addressing="Absolute,Y ;(Indirect),Y"/>
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="AXE"
|
||||
title="_And _X register with accumulator but _exact operation unknown"
|
||||
proposal="AXE _"
|
||||
addressing="Immediate"/>
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="DCP"
|
||||
title="_De_crement memory by one and com_pare with memory"
|
||||
proposal="DCP _"
|
||||
flags="C"
|
||||
addressing="Zero Page; Zero Page,X; Absolute; Absolute,X; Absolute,Y;(Indirect,X); (Indirect),Y"/>
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="ISB"
|
||||
title="_Increase memory by one, then _subtract memory from accumulator (with _borrow)"
|
||||
proposal="ISB _"
|
||||
flags="N,V,Z,C"
|
||||
addressing="Zero Page; Zero Page,X; Absolute; Absolute,X; Absolute,Y;(Indirect,X); (Indirect),Y"/>
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="JAM"
|
||||
title="_J_a_m processor, i.e. stop program counter"
|
||||
proposal="JAM_"
|
||||
flags="-"
|
||||
addressing="Implied"/>
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="LAS"
|
||||
title="_Load _accumulator, X register and _stack pointer with with memory anded stack pointer"
|
||||
proposal="LAS _"
|
||||
flags="N,Z"
|
||||
addressing="Absolute,Y"/>
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="LAX"
|
||||
title="_Load _accumulator and _X register with memory"
|
||||
proposal="LAX _"
|
||||
flags="N,Z"
|
||||
addressing="Zero Page; Zero Page,Y; Absolute; Absolute,Y;(Indirect,X);(Indirect),Y"/>
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="RLA"
|
||||
title="_Rotate one bit _left in memory, then and _accumulator with memory"
|
||||
proposal="RLA _"
|
||||
flags="N,Z,C"
|
||||
addressing="Zero Page; Zero Page,X; Absolute; Absolute,X; Absolute,Y;(Indirect,X); (Indirect),Y"/>
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="RRA"
|
||||
title="_Rotate one bit _right in memory, then add memory to _accumulator (with carry)"
|
||||
proposal="RRA _"
|
||||
flags="N,V,Z,C"
|
||||
addressing="Zero Page; Zero Page,X; Absolute; Absolute,X; Absolute,Y;(Indirect,X); (Indirect),Y"/>
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="SAX"
|
||||
title="_Store _accumulator anded with _X register"
|
||||
proposal="SAX _"
|
||||
flags="N,Z"
|
||||
addressing="Zero Page;Zero Page,Y;(Indirect,X);Absolute"/>
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="SLO"
|
||||
title="_Shift _left one bit in memory, then _or accumulator with memory"
|
||||
proposal="SLO _"
|
||||
flags="N,Z,C"
|
||||
addressing="Zero Page; Zero Page,X; Absolute; Absolute,X; Absolute,Y; (Indirect,X); (Indirect),Y"/>
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="SRE"
|
||||
title="_Shift _right one bit in memory, then _eor accumulator with memory"
|
||||
proposal="SRE _"
|
||||
flags="N,Z,C"
|
||||
addressing="Zero Page; Zero Page,X; Absolute; Absolute,X; Absolute,Y;(Indirect,X);(Indirect),Y"/>
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="SXA"
|
||||
title="_Store _X register _anded with high byte of the target address of the argument +1"
|
||||
proposal="SXA _"
|
||||
flags="-"
|
||||
addressing="Absolute,Y"/>
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="SYA"
|
||||
title="_Store _Y register _anded with high byte of the target address of the argument +1"
|
||||
proposal="SYA _"
|
||||
flags="-"
|
||||
addressing="Absolute,x"/>
|
||||
<illegalopcode
|
||||
cpus="MOS6502_ILLEGAL"
|
||||
name="XAS"
|
||||
title="Transfer _X register anded with _accumulator in stack pointer, then and stack pointer with the high byte of the target address of the argument +1. _Store result in memory."
|
||||
proposal="XAS _"
|
||||
flags="-"
|
||||
addressing="Absolute,Y"/>
|
||||
|
||||
</instructionset>
|
@ -0,0 +1,174 @@
|
||||
/**
|
||||
* Copyright (C) 2009 - 2014 <a href="http://www.wudsn.com" target="_top">Peter Dell</a>
|
||||
*
|
||||
* This file is part of WUDSN IDE.
|
||||
*
|
||||
* WUDSN IDE is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* WUDSN IDE is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with WUDSN IDE. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.wudsn.ide.asm.compiler.test;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.StringTokenizer;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.eclipse.core.resources.IMarker;
|
||||
|
||||
import com.wudsn.ide.asm.compiler.CompilerProcessLogParser;
|
||||
import com.wudsn.ide.asm.compiler.CompilerSymbol;
|
||||
|
||||
/**
|
||||
* Process log parser for {@link TestCompiler}.
|
||||
*
|
||||
*
|
||||
* Sample error message:
|
||||
*
|
||||
* "Pass 1: In Abbuc99-NetBalls-Init.asm, line 24-- Warning: Resizing
|
||||
* 'BALLSCOLORTAB1', forcing another pass"
|
||||
*
|
||||
* "Pass 2: In Abbuc99-NetBalls-Init.asm, line 25-- Warning: Resizing
|
||||
* 'BALLSCOLORTAB2', forcing another pass"
|
||||
*
|
||||
* @author Peter Dell
|
||||
*/
|
||||
final class TestCompilerProcessLogParser extends CompilerProcessLogParser {
|
||||
|
||||
private Pattern pattern;
|
||||
private String sourceFilePattern;
|
||||
|
||||
@Override
|
||||
protected void initialize() {
|
||||
pattern = Pattern.compile("In .* line ");
|
||||
sourceFilePattern = "In " + mainSourceFilePath + ", line ";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void findNextMarker() {
|
||||
|
||||
int index;
|
||||
String line;
|
||||
boolean include;
|
||||
String includeFile;
|
||||
Matcher matcher = pattern.matcher(errorLog);
|
||||
|
||||
if (matcher.find()) {
|
||||
index = matcher.start();
|
||||
line = errorLog.substring(index);
|
||||
if (line.startsWith(sourceFilePattern)) {
|
||||
include = false;
|
||||
includeFile = "";
|
||||
} else {
|
||||
include = true;
|
||||
includeFile = line.substring(3, matcher.end() - matcher.start() - 7);
|
||||
}
|
||||
index = matcher.end();
|
||||
String lineNumberLine = errorLog.substring(index);
|
||||
errorLog = lineNumberLine;
|
||||
int numberEndIndex = lineNumberLine.indexOf("--");
|
||||
if (numberEndIndex > 0) {
|
||||
String lineNumberString;
|
||||
lineNumberString = lineNumberLine.substring(0, numberEndIndex);
|
||||
|
||||
try {
|
||||
lineNumber = Integer.parseInt(lineNumberString);
|
||||
int nextIndex = lineNumberLine.indexOf('\n');
|
||||
if (index > 0) {
|
||||
message = lineNumberLine.substring(nextIndex + 1);
|
||||
int nextIndex2 = message.indexOf('\n');
|
||||
if (nextIndex > 0) {
|
||||
message = message.substring(0, nextIndex2 - 1);
|
||||
}
|
||||
message = message.trim();
|
||||
}
|
||||
} catch (NumberFormatException ex) {
|
||||
lineNumber = -1;
|
||||
severity = IMarker.SEVERITY_ERROR;
|
||||
message = ex.getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
if (message.startsWith("Error:")) {
|
||||
severity = IMarker.SEVERITY_ERROR;
|
||||
message = message.substring(6);
|
||||
} else if (message.startsWith("Warning:")) {
|
||||
severity = IMarker.SEVERITY_WARNING;
|
||||
message = message.substring(8);
|
||||
}
|
||||
|
||||
if (include) {
|
||||
if (lineNumber >= 0) {
|
||||
message = includeFile + " line " + lineNumber + ": " + message;
|
||||
} else {
|
||||
message = includeFile + ": " + message;
|
||||
}
|
||||
lineNumber = -1;
|
||||
}
|
||||
message = message.trim();
|
||||
|
||||
// Message mapping.
|
||||
if (severity == IMarker.SEVERITY_WARNING && message.startsWith("Using bank")) {
|
||||
severity = IMarker.SEVERITY_INFO;
|
||||
}
|
||||
markerAvailable = true;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addCompilerSymbols(List<CompilerSymbol> compilerSymbols) {
|
||||
final String EQUATES = "Equates:";
|
||||
final String SYMBOL = "Symbol";
|
||||
final String TABLE = "table:";
|
||||
|
||||
String log;
|
||||
int index;
|
||||
|
||||
log = outputLog;
|
||||
index = log.indexOf(EQUATES);
|
||||
if (index >= 0) {
|
||||
log = log.substring(index + EQUATES.length());
|
||||
|
||||
StringTokenizer st = new StringTokenizer(log);
|
||||
String token;
|
||||
String name;
|
||||
String hexValue;
|
||||
while (st.hasMoreTokens()) {
|
||||
token = st.nextToken();
|
||||
if (token.equals(SYMBOL)) {
|
||||
break;
|
||||
}
|
||||
name = token.substring(0, token.length() - 1);
|
||||
hexValue = st.nextToken(); // Must be there
|
||||
compilerSymbols.add(CompilerSymbol.createNumberHexSymbol(name, hexValue));
|
||||
}
|
||||
|
||||
if (st.hasMoreTokens()) {
|
||||
token = st.nextToken();
|
||||
if (token.equals(TABLE)) {
|
||||