Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Functions | Variables
m65-memcontent-generator Namespace Reference

Functions

def bin_dump (data)
 

Variables

string PROTOTYPE = "const Uint8"
 
int MEMCONTENT_VERSION_ID = 2
 
dictionary FILE_DB
 
string HEADER
 
 files_done = set()
 
 c_file = sys.argv[1]
 
 h_file = sys.argv[2]
 
 in_files = sys.argv[3:]
 
string c_data = HEADER
 
string h_data = HEADER
 
 on_sd = sorted([k for k, v in FILE_DB.items() if v[1] is not None])
 
 fn_base = fn.split("/")[-1]
 
dictionary fn_id = FILE_DB[fn_base][0]
 
 data = data.read()
 

Function Documentation

◆ bin_dump()

def m65-memcontent-generator.bin_dump (   data)

Definition at line 61 of file m65-memcontent-generator.py.

Variable Documentation

◆ c_data

string c_data = HEADER

Definition at line 85 of file m65-memcontent-generator.py.

◆ c_file

c_file = sys.argv[1]

Definition at line 82 of file m65-memcontent-generator.py.

◆ data

data = data.read()

Definition at line 119 of file m65-memcontent-generator.py.

◆ FILE_DB

dictionary FILE_DB
Initial value:
1 = {
2  # -------------------------------------------------------------------- #
3  # mega65-core-base-name | file-id |SD-image-name(None=not-on-SD) #
4  #--------------------------------------------------------------------- #
5  "HICKUP.M65": ("hickup", None ),
6  "COLOURRAM.BIN": ("cramutils", None ),
7  "BANNER.M65": ("banner", "BANNER.M65" ),
8  "FREEZER.M65": ("freezer", "FREEZER.M65" ),
9  "ONBOARD.M65": ("onboard", "ONBOARD.M65" ), # Do we really need this on SD-card?
10  "mega65.rom": ("initrom", None ),
11  #"megaflash-a200t.prg": ("megaflash", None ),
12  "AUDIOMIX.M65": ("audiomix", "AUDIOMIX.M65" ),
13  "C64THUMB.M65": ("c64thumb", "C64THUMB.M65" ),
14  "C65THUMB.M65": ("c65thumb", "C65THUMB.M65" ),
15  "ROMLOAD.M65": ("romload", "ROMLOAD.M65" ), # Do we really need this on SD-card?
16  "SPRITED.M65": ("sprited", "SPRITED.M65" ),
17  "charrom.bin": ("chrwom", None ),
18  "MAKEDISK.M65": ("makedisk", "MAKEDISK.M65" ),
19 }

Definition at line 30 of file m65-memcontent-generator.py.

◆ files_done

files_done = set()

Definition at line 81 of file m65-memcontent-generator.py.

◆ fn_base

fn_base = fn.split("/")[-1]

Definition at line 109 of file m65-memcontent-generator.py.

◆ fn_id

dictionary fn_id = FILE_DB[fn_base][0]

Definition at line 113 of file m65-memcontent-generator.py.

◆ h_data

string h_data = HEADER

Definition at line 86 of file m65-memcontent-generator.py.

◆ h_file

h_file = sys.argv[2]

Definition at line 83 of file m65-memcontent-generator.py.

◆ HEADER

string HEADER
Initial value:
1 = """/* !THIS IS A GENERATED FILE! DO NOT EDIT!
2  * Instead, say 'make recreatememcontent' to re-generate this file
3  * from binary data from the MEGA65 project. Please note, that MEGA65 is
4  * an open source, GNU/GPL project, like Xemu. Thus, it's valid
5  * to use binaries from it, as it's from the compiled version of MEGA65
6  * which is available in source form at https://github.com/MEGA65/mega65-core
7  * always, as per GNU/GPL. */
8 
9 """

Definition at line 50 of file m65-memcontent-generator.py.

◆ in_files

in_files = sys.argv[3:]

Definition at line 84 of file m65-memcontent-generator.py.

◆ MEMCONTENT_VERSION_ID

int MEMCONTENT_VERSION_ID = 2

Definition at line 28 of file m65-memcontent-generator.py.

◆ on_sd

on_sd = sorted([k for k, v in FILE_DB.items() if v[1] is not None])

Definition at line 97 of file m65-memcontent-generator.py.

◆ PROTOTYPE

string PROTOTYPE = "const Uint8"

Definition at line 23 of file m65-memcontent-generator.py.