Initial upload

This commit is contained in:
peterdell 2018-12-30 16:42:36 +01:00
parent 2224425974
commit fbbb115b98
468 changed files with 58526 additions and 0 deletions

View 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>

View 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>

View File

@ -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

View 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

View File

@ -0,0 +1 @@
/com

View 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/

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 632 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 634 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 631 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 619 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 962 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 625 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 628 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 624 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 979 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 630 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 634 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 639 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 439 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 635 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 631 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 634 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 649 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 275 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 B

View 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

View 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>

View 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

View File

@ -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();
}
}

View File

@ -0,0 +1,362 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<instructionset
completionProposalAutoActivationCharacters="."
singleLineCommentDelimiters=";"
multipleLinesCommentDelimiters=""
stringDelimiterCharacters="&quot;"
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 &quot;_&quot; _"/>
<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 &quot;_&quot;"/>
<directive
cpus="*"
name=".INCLUDE"
title="_I_n_c_l_u_d_e source file"
type="SOURCE_INCLUDE_DIRECTIVE"
proposal=".INCLUDE &quot;_&quot;"/>
<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 &quot;_&quot;"/>
<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>

View File

@ -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)) {
while (st.hasMoreTokens()) {
token = st.nextToken();
if (!token.endsWith(":")) {
break;
}
name = token.substring(0, token.length() - 1);
hexValue = st.nextToken(); // Must be there
compilerSymbols.add(CompilerSymbol.createNumberHexSymbol(name, hexValue));
}
}
}
}
}
}

View File

@ -0,0 +1,52 @@
/**
* 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.parser.CompilerSourceParser;
/**
* Source parser for {@link TestCompiler}.
*
* @author Peter Dell
*/
final class TestCompilerSourceParser extends CompilerSourceParser {
@Override
protected void parseLine(int startOffset, String symbol, int symbolOffset, String instruction,
int instructionOffset, String operand, String comment) {
if (symbol.length() > 0) {
// Check for origin statement
if (symbol.equals("*")) { //$NON-NLS-1$
beginImplementationSection(startOffset, startOffset + symbolOffset, operand, comment);
} else {
if (instruction.equals("=")) { //$NON-NLS-1$
createEquateDefinitionChild(startOffset, startOffset + symbolOffset, symbol, operand, comment);
} else {
createLabelDefinitionChild(startOffset, startOffset + symbolOffset, symbol, comment);
}
}
} // Symbol not empty
}
}

View File

@ -0,0 +1,18 @@
package com.wudsn.ide.asm.editor.test;
import com.wudsn.ide.asm.editor.AssemblerEditor;
public final class TestEditor extends AssemblerEditor {
/**
* Creation is public. Called by the extension "org.eclipse.ui.editors".
*/
public TestEditor() {
}
@Override
public String getCompilerId() {
return "test";
}
}

Some files were not shown because too many files have changed in this diff Show More