Skip to content

Instantly share code, notes, and snippets.

@wizofwor
wizofwor / self-modifiying.asm
Created October 29, 2019 19:31
KickAssembler self modifying test
.const CHAROUT = $FFD2
.const TEXTCLR = $0286
BasicUpstart2(start)
* = $c000 "Main Program"
start:
{
//"cmd": "C:/Windows/Sysnative/bash.exe make",
"cmd": "build.bat",
"file_regex": "^ *([A-z0-9.]*)\\(([0-9]+)\\)",
"working_dir": "$project_path",
"shell": true,
"syntax": "",
}
.const SCREEN_RAM = $0400
.const COLOR_RAM = $d800
.const flag = $02
// --- main --------------------------------------------------------
BasicUpstart2(start)
* = $3000 "program"
start: jsr initialize
# ---------------------------------------------------------
# Make file for hello-world
# ---------------------------------------------------------
SOURCES = main.c
# Target binary
PROGRAM = hello-world.prg
# ---------------------------------------------------------
# Make file for array-copy
#
# Environment: GNU MAKE - OSX 10.11.6
# Date: November 2018
# ---------------------------------------------------------
SUBDIRS := $(wildcard */.)
SUBDIRS := $(filter-out _bin/., $(SUBDIRS))
BUILDDIR := _bin
@wizofwor
wizofwor / database.py
Last active October 24, 2020 19:54 — forked from goldsborough/database.py
Python Sqlite3 wrapper
'''
database.py
A wrapper around the sqlite3 python library
-------------------------------------------
It allows users to create a database connection and
write to or fetch data from the selected database. It also has
various utility functions such as getLast(), which retrieves
only the very last item in the database, toCSV(), which writes
@wizofwor
wizofwor / docstrings.py
Created July 5, 2018 11:54 — forked from redlotus/docstrings.py
Google Style Python Docstrings
# -*- coding: utf-8 -*-
"""Example Google style docstrings.
This module demonstrates documentation as specified by the `Google Python
Style Guide`_. Docstrings may extend over multiple lines. Sections are created
with a section header and a colon followed by a block of indented text.
Example:
Examples can be given using either the ``Example`` or ``Examples``
sections. Sections support any reStructuredText formatting, including
package
{
import flash.display.Sprite;
import flash.events.Event;
/**
$(CBI)* ...
$(CBI)* @author Gökhan
$(CBI)*/
public class Main extends Sprite