DragonPy is a Open source (GPL v3 or later) emulator for the 30 years old homecomputer Dragon 32
and Tandy TRS-80 Color Computer
(CoCo)...
Dragon 32 and 64 ROMs in Text mode:
logger name: DragonPy | |
DragonPy - Dragon 32 emulator in Python None | |
------------------------------------------------------------------------------- | |
set log level to: 20 | |
use cfg: Simple6809 | |
--- END --- |
import Queue | |
import Tkinter | |
import logging | |
import multiprocessing | |
import random | |
import threading | |
import time | |
log = multiprocessing.log_to_stderr() | |
handler = logging.StreamHandler() | |
handler.setFormatter( |
10 ' EXAMPLE VARIABLES: | |
20 SV=0:AV=0:EN=0:AD=0:I=0:V$="" | |
30 DIM A(0,1,2) | |
40 DIM BT$(10),Z(0),P$(1,1,1,1) | |
50 DIM EN(7,7) | |
60 ' | |
70 SV=PEEK(27)*256+PEEK(28) | |
80 AV=PEEK(29)*256+PEEK(30) | |
90 EN=PEEK(31)*256+PEEK(32) | |
100 IF AV=SV THEN 170 |
class List2(list): | |
def replace(self, src, dst): | |
""" | |
>>> l=List2([1,2,3,4]) | |
>>> l | |
[1, 2, 3, 4] | |
>>> l.replace((2,3), "X") | |
[1, 'X', 4] | |
>>> List2([1,2,3,4]).replace([2], "X") |
import string | |
import Tkinter | |
import ScrolledText | |
example_content="""Lorem ipsum dolor sit amet, consetetur sadipscing elitr, | |
sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. | |
At vero eos et accusam et justo duo dolores et ea rebum. |
... | |
bbca| 26fc BNE $bbc8 cc=80 a=0d b=01 dp=00 x=00b6 y=b39b u=82ec s=7f2a| E....... | $bbca: $bbc8-$bbcc - Decrements X until 0 then returns | |
bbc8| 301f LEAX -1,X cc=80 a=0d b=01 dp=00 x=00b5 y=b39b u=82ec s=7f2a| E....... | $bbc8: $bbc8-$bbcc - Decrements X until 0 then returns | |
bbca| 26fc BNE $bbc8 cc=80 a=0d b=01 dp=00 x=00b5 y=b39b u=82ec s=7f2a| E....... | $bbca: $bbc8-$bbcc - Decrements X until 0 then returns | |
bbc8| 301f LEAX -1,X cc=80 a=0d b=01 dp=00 x=00b4 y=b39b u=82ec s=7f2a| E....... | $bbc8: $bbc8-$bbcc - Decrements X until 0 then returns | |
bbca| 26fc BNE $bbc8 cc=80 a=0d b=01 dp=00 x=00b4 y=b39b u=82ec s=7f2a| E....... | $bbca: $bbc8-$bbcc - Decrements X until 0 then returns | |
fff8| 010c [IRQ] | $fff8: $fff8-$fff9 - IRQ ($010c) | |
010c| 7e9d3d JMP $9d3d cc=90 a=0d b=01 dp=00 x=00b4 y=b39b u=82ec s=7f1e| E..I.... | $10c: $10c-$10e - IRQ Secondary vecto |
#!/usr/bin/env python -3 | |
""" | |
throttled html server | |
===================== | |
For web page loading tests. | |
:copyleft: 2014 by Jens Diemer | |
:license: GNU GPL v3 or above, see LICENSE for more details. |
moved to: https://github.com/jedie/bootstrap_env |