Skip to content

Instantly share code, notes, and snippets.

View rkujawa's full-sized avatar

Radosław Kujawa rkujawa

View GitHub Profile
#include <stdio.h>
#include <stdint.h>
struct code_data {
uint8_t len;
char *name;
};
struct code_data commands[] = {
{0, "noop"}, /* 0 */
.macro fcall fname, arg1, arg2, arg3, arg4, arg5
ldy #0
.ifnb \arg1
ldx #\arg1
stx FARGS_ARG,Y
iny
.endif
.ifnb \arg2
ldx #\arg2
stx FARGS_ARG,Y
#include <stdio.h>
#include <stdlib.h>
#include <proto/exec.h>
#include <exec/types.h>
#include <exec/memory.h>
#include <exec/interrupts.h>
#include <hardware/intbits.h>
/* $NetBSD$ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Radoslaw Kujawa.
*
* Redistribution and use in source and binary forms, with or without
@rkujawa
rkujawa / oatvr.groovy
Last active August 29, 2015 14:07
Download anime torrents via RSS
#!/usr/bin/env /opt/groovy/bin/groovy
import gstorm.*
/**
* ObtainAnimuTorrentViaRss
* @version 0.1
* @author rkujawa
*/
@rkujawa
rkujawa / main.vhd
Created August 15, 2014 10:55
FSM in VHDL
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
--use IEEE.NUMERIC_STD.ALL;
--library UNISIM;
--use UNISIM.VComponents.all;
ENTITY main IS
PORT( clk, reset, btn: IN STD_LOGIC;
led: OUT STD_LOGIC_VECTOR(7 downto 0)