Skip to content

Instantly share code, notes, and snippets.

View Zardoz89's full-sized avatar

Luis Panadero Guardeño Zardoz89

View GitHub Profile
DCPU-16e Specification
Version 1.2
=== SUMMARY ====================================================================
* 16 bit words
* 8 banks of 0x10000 words of ram, numbered 0-7
* 8 registers (A, B, C, X, Y, Z, I, J)
@Zardoz89
Zardoz89 / PDS5.md
Last active August 29, 2015 13:56
PDS-5 Vector monitor

PDS-5 2D Vector monitor

Concept of a Vector graphics only monitor. http://en.wikipedia.org/wiki/Vector_monitor

Should accept basic commands to draw :

  • points by absolute coords
  • lines from point A to point B in absolute coords
  • polyline commands that are :
  • begin polyline with start point
@Zardoz89
Zardoz89 / layout-default.less
Last active August 29, 2015 13:57
jQuery UI Layout, default layout conversion to LESS
/*
* Default Layout Theme
*
* Created for jquery.layout
*
* Copyright (c) 2010
* Fabrizio Balliano (http://www.fabrizioballiano.net)
* Kevin Dalman (http://allpro.net)
*
* Dual licensed under the GPL (http://www.gnu.org/licenses/gpl.html)
@Zardoz89
Zardoz89 / dcpu-16.md
Last active August 29, 2015 14:00
DCPU-16 on Virtual Computer
layout title cat
default
DCPU-16 CPU
CPU

DCPU-16 Specification

Version 1.8 (Base on Mojang's v 1.7)

@Zardoz89
Zardoz89 / DMA.txt
Created April 25, 2014 15:54
DMA on Virtual Computer
There is this kind of interaction between devices and memory:
- Pasive read
- Copy from RAM to device
- Copy from device to RAM
Passive reads, works "watching" the data/address bus when the CPU (or other device) is writing to the RAM. Could keep sync a device internal memory/buffer respect the changes that happens in these memory block. This is simply implemented, reading the desired RAM block with VComputer.RAM(). If a device does passive read to keep sync his internal memory/buffer, it would need a initial Copy from RAM to device to set-up his internal memory/buffers.
Copy from RAM to device, does copy data to the device internal memory/buffers. Obviously this need an active usage of the data and address buses, and only could be a single device doing that at same time. This not means exactly that only a device could be doing a DMA, but that if more that one device try to do DMA, it will need to share the bus time with the other device doing DMA and the transfer rate will be halve.
Copy from device to RA
@Zardoz89
Zardoz89 / sintonizadora.txt
Last active August 29, 2015 14:00
ASUS Tiger Hybrid TV Tunner
# ASUS Tiger Hybrid TV Tunner
sudo rmmod saa7134_alsa
sudo rmmod saa7134_dvb
sudo modprobe saa7134 card=112 tuner=54 gpio_tracking=1 i2c_scan=1
# Escuchar la entrada de linea o el micro :
pactl load-module module-loopback latency_msec=10
# anotar el numero
# para desactivarlo :
pactl unload-module (Module Number)
@Zardoz89
Zardoz89 / 0 Notas sobre el sistema.md
Last active August 29, 2015 14:05
Cosas para el rol (Provisional)

El combate funciona igual que en D&D 3.5 de toda la vida.

La magia aun tengo que pulir detalles pero en principio iría por "mana".

Los personajes se construyen por puntos en vez de por clases. Las cosas especiales que tendría una clase, se hacen comprando dotes que normalmente cuestan 1 punto. El Ataque, la Fortaleza, Reflejos y Voluntad, se compran de la misma forma. Los dotes y los hechizos son los mismo que D&D 3.5 (siempre y cuando tengan sentido) mas algunos especiales. Las características se pillan igual que en D&D 3.5 -> Seis tiradas de 4 dados de 6 (4d6), quitando el mas bajo, y se asignan a discreción del jugador según lo que se quiera hacer.

Las razas son una serie de plantillas que se aplican una vez asignadas las características. No hay clases, en su lugar, se asignan puntos para los Dotes/Habilidades/Bonificadores que se quieran

@Zardoz89
Zardoz89 / RFC-TR1.txt
Last active August 29, 2015 14:08
RFC-TR1 Calling conventions for TR3200 CPU
Trillek DRAFT Luis P. G., Author
draft-rfc-tr1.md
Category: Standards Track 5 November 2014
Calling conventions proposal for TR3200 CPU
===========================================
# Status of This Memo
@Zardoz89
Zardoz89 / TR Firmware Ideas
Last active August 29, 2015 14:09
Ideas for Trillek computer firmware
The built in firmware of the Trillek computer could:
1) Do a quick check of how much RAM the computer has.
2) Search for devices and store their info in RAM.
3) Set up a monitor and keyboard, getting by default the monitor and keyboard with the lowest slot number.
In future, it could try to get from NVRAM which monitor and keyboard to use.
4) Print basic information about the computer such as total RAM, CPU speed, number of devices found and
hardware info.
5) If there is a floppy drive with a floppy disk, try to boot from it. It there are many, it would use the
floppy drive with the lowest slot.

Root namespace: trillek

Indentation

  • Indentation: 4 spaces
  • Avoid exceeding a line length of more than 80 characters.
  • Lines longer than 120 characters are forbidden.
  • Bracket Location:
 if (x < 0) {