This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CPCIP=${CPCIP:-192.168.1.22} | |
DB=${DB:-DSK} | |
shopt -s nocaseglob | |
function playdsk { | |
# Get the exact filename | |
local dsk="$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Need to specify the stack (otherwhise it is in 0xc000 memory space) | |
ld sp, $ ; XXX use your own value ! | |
; Need to go back to a standard memory configuration | |
ld bc, 0x7fc0 | |
out (c), c | |
; Interrupt handler | |
ld hl, 0xc9fb | |
ld (0x38), hl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; | |
; Template code to use in order to jump to the demosystem at the | |
; end of your part. | |
; | |
; LIMITATIONS: | |
; - code must placed in main memory | |
; - code accessible in a memory zone different than 0x4000-0x7ffff | |
; | |
; We cut the interruption to avoid issues with the stack and interruptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Depends on your code | |
ld bc, 0x7fc7 | |
out (c), c | |
call 0x6009 | |
; 1rl+13us (stable) | |
; | |
; IN : - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; | |
; CRTC R7 transition sample to leave a part | |
; From R7=0 to standard R7=30 | |
; Krusty/Benediction November 2013 | |
org &8000 | |
run $ | |
leave_part_transition | |
call secure_vsync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; | |
; CRTC R7 transition sample | |
; From standard R7=30 to R7=0 | |
; Krusty/Benediction November 2013 | |
org &4000 | |
run $ | |
killsys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import matplotlib.pyplot as plt | |
import numpy as np | |
# Discussion http://stackoverflow.com/questions/14849815/matplotlib-how-to-remove-the-vertical-space-when-displaying-circles-on-a-grid | |
def draw_punchcard(infos, | |
ax1=range(7), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""Python script to extract citations numbers from google citation pages | |
Extract informations from google citation (number of citations, h-index, i10 index). | |
The main program outputs LaTeX definition in order to automatically use the result | |
in a LaTeX document (ie. academic cv) | |
""" |