Permalink
Browse files

Added /tools, made run.py

You can now use run.py to start Lettuce with the bootloader loaded and
devices selected. You can change the devices that will be connected in
devicelist.txt.
  • Loading branch information...
Lucus16 committed Dec 22, 2012
1 parent 264e114 commit 0eaeb5ac54b5a5205c26c2c3b3826df61dc0968a
View
Binary file not shown.
View
Binary file not shown.
View
@@ -2,14 +2,19 @@
import os, platform, sys, random
+def addexeh(code):
+ pass
+
def build(f, outname="", le=True):
if outname == "":
outname = f[f.rfind("/")+1:f.rfind(".")] + ".bin"
print("Building: ", outname)
c = ""
if platform.system() != "Windows":
- c += "mono "
- c += "Organic.exe ../src/" + f + " ../bin/" + outname
+ c += "mono ../tools/Organic.exe ../src/"
+ else:
+ c += "..\\tools\\Organic.exe ../src/"
+ c += f + " ../bin/" + outname
c += " --working-directory ../src/" + f[:f.rfind("/")+1]
if le:
c += " --little-endian"
@@ -109,5 +114,3 @@ def makedte(num):
raise
waitkey()
-
-sys.exit(0)
View
@@ -0,0 +1,4 @@
+import os
+
+os.system('build.py')
+os.system('run.py')
View
@@ -0,0 +1,8 @@
+1 Generic Clock
+1 SPED-3
+0 Suspension Chamber 2000
+2 M35FD Floppy drives
+1 LEM 1802 Screen
+1 Generic Keyboard
+
+DO NOT CHANGE THE ORDER OF THE ABOVE LINES, you can change the numbers, as long as there's a space between the numbers and names.
View
@@ -0,0 +1,14 @@
+import os, platform
+
+l = ['genericclock', 'sped3', 'spc2000', 'm35fd', 'lem1802', 'generickeyboard']
+if platform.system() != "Windows":
+ c = 'mono ../tools/Lettuce.exe ../bin/bootloader.bin --connect '
+else:
+ c = '..\\tools\\Lettuce.exe ../bin/bootloader.bin --connect '
+with open('../build/devicelist.txt') as f:
+ t = f.readlines()
+t = t[0:len(l)]
+t = [int(x[0:x.find(' ')]) for x in t]
+for i in range(len(l)):
+ c += (l[i] + ',') * t[i]
+os.system(c[:-1])
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
File renamed without changes.
View
Binary file not shown.
View
@@ -0,0 +1,61 @@
+<NotepadPlus>
+ <UserLang name="DCPU-16" ext="dasm" udlVersion="2.0">
+ <Settings>
+ <Global caseIgnored="yes" allowFoldOfComments="no" forceLineCommentsAtBOL="no" foldCompact="no" />
+ <Prefix Keywords1="no" Keywords2="no" Keywords3="yes" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
+ </Settings>
+ <KeywordLists>
+ <Keywords name="Comments" id="0">00; 01 02 03 04</Keywords>
+ <Keywords name="Numbers, additional" id="1"></Keywords>
+ <Keywords name="Numbers, prefixes" id="2">0x</Keywords>
+ <Keywords name="Numbers, extras with prefixes" id="3">a b c d e f</Keywords>
+ <Keywords name="Numbers, suffixes" id="4">,</Keywords>
+ <Keywords name="Operators1" id="5">+ - * / = &lt; &gt;</Keywords>
+ <Keywords name="Operators2" id="6"></Keywords>
+ <Keywords name="Folders in code1, open" id="7">.region</Keywords>
+ <Keywords name="Folders in code1, middle" id="8"></Keywords>
+ <Keywords name="Folders in code1, close" id="9">.endregion</Keywords>
+ <Keywords name="Folders in code2, open" id="10"></Keywords>
+ <Keywords name="Folders in code2, middle" id="11"></Keywords>
+ <Keywords name="Folders in code2, close" id="12"></Keywords>
+ <Keywords name="Folders in comment, open" id="13"></Keywords>
+ <Keywords name="Folders in comment, middle" id="14"></Keywords>
+ <Keywords name="Folders in comment, close" id="15"></Keywords>
+ <Keywords name="Keywords1" id="16">a a, b b, c c, x x, y y, z z, i i, j j, pc pc, ex ex, sp sp, push, pop peek peek, pick pick,</Keywords>
+ <Keywords name="Keywords2" id="17">set add sub mul mli div dvi mod mdi and bor xor shr asr shl ifb ifc ife ifn ifg ifa ifl ifu adx sbx sti std jsr int iag ias rfi iaq hwn hwq hwi</Keywords>
+ <Keywords name="Keywords3" id="18">:</Keywords>
+ <Keywords name="Keywords4" id="19">.dat .define .reserve .macro .include .org .endmacro .align .shortform .longform .if .ifdef .ifndef .endif .end .else .elseif .elif .fill .pad</Keywords>
+ <Keywords name="Keywords5" id="20"></Keywords>
+ <Keywords name="Keywords6" id="21"></Keywords>
+ <Keywords name="Keywords7" id="22"></Keywords>
+ <Keywords name="Keywords8" id="23"></Keywords>
+ <Keywords name="Delimiters" id="24">00[ 01 02] 03&quot; 04 05&quot; 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
+ </KeywordLists>
+ <Styles>
+ <WordsStyle name="DEFAULT" styleID="0" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="COMMENTS" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="LINE COMMENTS" styleID="2" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="NUMBERS" styleID="3" fgColor="B94500" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="KEYWORDS1" styleID="4" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="KEYWORDS2" styleID="5" fgColor="0080C0" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="KEYWORDS3" styleID="6" fgColor="400080" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
+ <WordsStyle name="KEYWORDS4" styleID="7" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="KEYWORDS5" styleID="8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="KEYWORDS6" styleID="9" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="KEYWORDS7" styleID="10" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="KEYWORDS8" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="OPERATORS" styleID="12" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="FOLDER IN CODE1" styleID="13" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="FOLDER IN CODE2" styleID="14" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="FOLDER IN COMMENT" styleID="15" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="DELIMITERS1" styleID="16" fgColor="000080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="DELIMITERS2" styleID="17" fgColor="808080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="DELIMITERS3" styleID="18" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="DELIMITERS4" styleID="19" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="DELIMITERS5" styleID="20" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="DELIMITERS6" styleID="21" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="DELIMITERS7" styleID="22" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ <WordsStyle name="DELIMITERS8" styleID="23" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
+ </Styles>
+ </UserLang>
+</NotepadPlus>
View
Binary file not shown.

0 comments on commit 0eaeb5a

Please sign in to comment.