This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
import struct | |
ram_dump = bytearray() | |
def dword(byte_array): | |
return struct.unpack('I',byte_array)[0] | |
def word(byte_array): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import sys | |
from tzxlib.convert import convertToBasic | |
def main(): | |
parser = argparse.ArgumentParser(description='Convert Sinclair Basic code representation into Text') | |
parser.add_argument('file', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct SYS_VAR { /* STANDARD 48K SPECTRUM SYSTEM VARIABLES */ | |
byte KSTATE[8]; /* Used in reading the keyboard. */ | |
byte LASTK; /* Stores newly pressed key. */ | |
byte REPDEL; /* Time (in 50ths of a second that a key must be held down before it repeats. This starts off at 35,but you can POKE in other values. */ | |
byte REPPER; /* Delay (in 50ths of a second between successive repeats of a key held down - initially 5. */ | |
word DEFADD; /* Address of arguments of user defined function (if one is being evaluated), otherwise 0. */ | |
byte K_DATA; /* Stores 2nd byte of colour controls entered from keyboard. */ | |
word TVDATA; /* Stores bytes of colour,AT and TAB controls going to TV. */ | |
word STRMS[19]; /* Addresses of channels attached to streams &FD to &0F. */ | |
word CHARS; /* 256 less than address of character set (which starts with space and carries on to (C)). Normally in ROM,but you can set up your own in RAM and make CHARS point to it. */ |