Skip to content
This repository
Browse code

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...
commit 0eaeb5ac54b5a5205c26c2c3b3826df61dc0968a 1 parent 264e114
Lucus16 authored December 22, 2012
BIN  bin/entropy.bin
Binary file not shown
BIN  bin/entropy.img
Binary file not shown
11  build/build.py
@@ -2,14 +2,19 @@
2 2
 
3 3
 import os, platform, sys, random
4 4
 
  5
+def addexeh(code):
  6
+        pass
  7
+
5 8
 def build(f, outname="", le=True):
6 9
 	if outname == "":
7 10
 		outname = f[f.rfind("/")+1:f.rfind(".")] + ".bin"
8 11
 	print("Building: ", outname)
9 12
 	c = ""
10 13
 	if platform.system() != "Windows":
11  
-		c += "mono "
12  
-	c += "Organic.exe ../src/" + f +  " ../bin/" + outname
  14
+		c += "mono ../tools/Organic.exe ../src/"
  15
+	else:
  16
+                c += "..\\tools\\Organic.exe ../src/"
  17
+	c += f +  " ../bin/" + outname
13 18
 	c += " --working-directory ../src/" + f[:f.rfind("/")+1]
14 19
 	if le:
15 20
 		c += " --little-endian"
@@ -109,5 +114,3 @@ def makedte(num):
109 114
 	raise
110 115
 
111 116
 waitkey()
112  
-
113  
-sys.exit(0)
4  build/buildrun.py
... ...
@@ -0,0 +1,4 @@
  1
+import os
  2
+
  3
+os.system('build.py')
  4
+os.system('run.py')
8  build/devicelist.txt
... ...
@@ -0,0 +1,8 @@
  1
+1 Generic Clock
  2
+1 SPED-3
  3
+0 Suspension Chamber 2000
  4
+2 M35FD Floppy drives
  5
+1 LEM 1802 Screen
  6
+1 Generic Keyboard
  7
+
  8
+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.
14  build/run.py
... ...
@@ -0,0 +1,14 @@
  1
+import os, platform
  2
+
  3
+l = ['genericclock', 'sped3', 'spc2000', 'm35fd', 'lem1802', 'generickeyboard']
  4
+if platform.system() != "Windows":
  5
+    c = 'mono ../tools/Lettuce.exe ../bin/bootloader.bin --connect '
  6
+else:
  7
+    c = '..\\tools\\Lettuce.exe ../bin/bootloader.bin --connect '
  8
+with open('../build/devicelist.txt') as f:
  9
+    t = f.readlines()
  10
+t = t[0:len(l)]
  11
+t = [int(x[0:x.find(' ')]) for x in t]
  12
+for i in range(len(l)):
  13
+    c += (l[i] + ',') * t[i]
  14
+os.system(c[:-1])
BIN  tools/Gif.Components.dll
Binary file not shown
BIN  tools/Lettuce.exe
Binary file not shown
BIN  tools/OpenTK.GLControl.dll
Binary file not shown
BIN  tools/OpenTK.dll
Binary file not shown
0  build/Organic.exe → tools/Organic.exe
File renamed without changes
BIN  tools/Tomato.dll
Binary file not shown
61  tools/dcpu16.xml
... ...
@@ -0,0 +1,61 @@
  1
+<NotepadPlus>
  2
+    <UserLang name="DCPU-16" ext="dasm" udlVersion="2.0">
  3
+        <Settings>
  4
+            <Global caseIgnored="yes" allowFoldOfComments="no" forceLineCommentsAtBOL="no" foldCompact="no" />
  5
+            <Prefix Keywords1="no" Keywords2="no" Keywords3="yes" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
  6
+        </Settings>
  7
+        <KeywordLists>
  8
+            <Keywords name="Comments" id="0">00; 01 02 03 04</Keywords>
  9
+            <Keywords name="Numbers, additional" id="1"></Keywords>
  10
+            <Keywords name="Numbers, prefixes" id="2">0x</Keywords>
  11
+            <Keywords name="Numbers, extras with prefixes" id="3">a b c d e f</Keywords>
  12
+            <Keywords name="Numbers, suffixes" id="4">,</Keywords>
  13
+            <Keywords name="Operators1" id="5">+ - * / = &lt; &gt;</Keywords>
  14
+            <Keywords name="Operators2" id="6"></Keywords>
  15
+            <Keywords name="Folders in code1, open" id="7">.region</Keywords>
  16
+            <Keywords name="Folders in code1, middle" id="8"></Keywords>
  17
+            <Keywords name="Folders in code1, close" id="9">.endregion</Keywords>
  18
+            <Keywords name="Folders in code2, open" id="10"></Keywords>
  19
+            <Keywords name="Folders in code2, middle" id="11"></Keywords>
  20
+            <Keywords name="Folders in code2, close" id="12"></Keywords>
  21
+            <Keywords name="Folders in comment, open" id="13"></Keywords>
  22
+            <Keywords name="Folders in comment, middle" id="14"></Keywords>
  23
+            <Keywords name="Folders in comment, close" id="15"></Keywords>
  24
+            <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>
  25
+            <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>
  26
+            <Keywords name="Keywords3" id="18">:</Keywords>
  27
+            <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>
  28
+            <Keywords name="Keywords5" id="20"></Keywords>
  29
+            <Keywords name="Keywords6" id="21"></Keywords>
  30
+            <Keywords name="Keywords7" id="22"></Keywords>
  31
+            <Keywords name="Keywords8" id="23"></Keywords>
  32
+            <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>
  33
+        </KeywordLists>
  34
+        <Styles>
  35
+            <WordsStyle name="DEFAULT" styleID="0" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  36
+            <WordsStyle name="COMMENTS" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  37
+            <WordsStyle name="LINE COMMENTS" styleID="2" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  38
+            <WordsStyle name="NUMBERS" styleID="3" fgColor="B94500" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  39
+            <WordsStyle name="KEYWORDS1" styleID="4" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  40
+            <WordsStyle name="KEYWORDS2" styleID="5" fgColor="0080C0" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  41
+            <WordsStyle name="KEYWORDS3" styleID="6" fgColor="400080" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
  42
+            <WordsStyle name="KEYWORDS4" styleID="7" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  43
+            <WordsStyle name="KEYWORDS5" styleID="8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  44
+            <WordsStyle name="KEYWORDS6" styleID="9" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  45
+            <WordsStyle name="KEYWORDS7" styleID="10" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  46
+            <WordsStyle name="KEYWORDS8" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  47
+            <WordsStyle name="OPERATORS" styleID="12" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  48
+            <WordsStyle name="FOLDER IN CODE1" styleID="13" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  49
+            <WordsStyle name="FOLDER IN CODE2" styleID="14" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  50
+            <WordsStyle name="FOLDER IN COMMENT" styleID="15" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  51
+            <WordsStyle name="DELIMITERS1" styleID="16" fgColor="000080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  52
+            <WordsStyle name="DELIMITERS2" styleID="17" fgColor="808080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  53
+            <WordsStyle name="DELIMITERS3" styleID="18" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  54
+            <WordsStyle name="DELIMITERS4" styleID="19" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  55
+            <WordsStyle name="DELIMITERS5" styleID="20" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  56
+            <WordsStyle name="DELIMITERS6" styleID="21" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  57
+            <WordsStyle name="DELIMITERS7" styleID="22" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  58
+            <WordsStyle name="DELIMITERS8" styleID="23" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
  59
+        </Styles>
  60
+    </UserLang>
  61
+</NotepadPlus>
BIN  tools/plaintext.dll
Binary file not shown

0 notes on commit 0eaeb5a

Please sign in to comment.
Something went wrong with that request. Please try again.