(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#define debugreg(reg) printf(#reg ": %08x\n", psxRegs.GPR.n.reg) | |
// interpreter execution | |
static inline void execI() { | |
u32 *code = Read_ICache(psxRegs.pc, FALSE); | |
if(code != NULL && SWAP32(*code) == 0xDEADBEEF) { | |
printf("===== DEBUG =====\n"); | |
printf("pc: %08x\n", psxRegs.pc); | |
debugreg(r0); | |
debugreg(at); |
export PAGER=less | |
export MANPAGER="less -r" | |
alias lesr='less -r' | |
# Git commands | |
alias gb='git branch -a --color -v' | |
alias gr="gitk --all --since='last week' &" | |
# Helpful | |
alias pu=pushd |
/* | |
Example of a C program embedding ECL with callbacks to C functions. | |
Compiled via: gcc ecldemo.c -lecl | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "ecl/ecl.h" | |
#define DEFUN(name,fun,args) \ | |
cl_def_c_function(c_string_to_object(name), \ |