Skip to content

Instantly share code, notes, and snippets.

Luis Panadero Guardeño Zardoz89

View GitHub Profile
@Zardoz89
Zardoz89 / 1 CPU Datapath.md
Last active Aug 29, 2015
Changes to the next iteration of TR3200
View 1 CPU Datapath.md

We could take a simple stage model like ARM Cortex-M3 , ie 3 stages model : Fetch, Decode and Execute.

On Fetch stage :

  • Checks if there is a interrupt. If there are enabled and there is a interrupt handler for it, the CPU accepts it, initiating the interrupt sequence.
  • Reads 4 bytes from RAM
  • Increase PC by 4.

On Decode stage :

  • Decode instruction fetched on previus stage.
  • If the instruction have a long immediate value (M & L bits are 1)
@Zardoz89
Zardoz89 / CPU datapath.md
Last active Aug 29, 2015
Other way for a CPU inspired on the TR3200
View CPU datapath.md

We could take a simple stage model like ARM Cortex-M3 , ie 3 stages model : Fetch, Decode and Execute.

Fetch only reads 4 bytes from RAM, to take the instruction and increases PC.

Decode, decodes an instruction and :

  • Fetch next 4 bytes without increasing the PC
  • If is prefix IF.cc, checks the condition and increases PC by 4.
    • If the condition is true, calls again the Decode stage using the fetch on Decode as instruction to be processed.
    • If the condition is false, don't call the Execute stage.
@Zardoz89
Zardoz89 / plantillas razas
Last active Aug 29, 2015
Plantillas razas NSD20
View plantillas razas
Dotes
=====
Dote de Magia innata (2)
--------------------
El alma del personaje está estrechamente ligada a las energías arcanas, lo que les otorga cierto conocimiento innato de la magia. Pueden lanzar, como Aptitud sortílega, un conjuro de nivel 1 o dos conjuros de nivel 0 (a elegir durante la creación del personaje de entre la lista de conjuros).
Dote de Comunión con la Magia de la Ilusión (2)
--------------------
View code.md

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) {
@Zardoz89
Zardoz89 / TR Firmware Ideas
Last active Aug 29, 2015
Ideas for Trillek computer firmware
View TR Firmware Ideas
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.
@Zardoz89
Zardoz89 / RFC-TR1.txt
Last active Aug 29, 2015
RFC-TR1 Calling conventions for TR3200 CPU
View RFC-TR1.txt
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 / .nvimrc
Created Oct 20, 2014
My neovim configuration
View .nvimrc
set nocompatible " Use Vim defaults (much better!)
set runtimepath=~/.neovim/,$VIMRUNTIME
syntax on
filetype off " required!
if !has("unix")
" Vundle on Windows
set rtp+=~/vimfiles/bundle/Vundle.vim/
@Zardoz89
Zardoz89 / 0 Notas sobre el sistema.md
Last active Aug 29, 2015
Cosas para el rol (Provisional)
View 0 Notas sobre el sistema.md

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 / sintonizadora.txt
Last active Aug 29, 2015
ASUS Tiger Hybrid TV Tunner
View sintonizadora.txt
# 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)
You can’t perform that action at this time.