Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Please comment & let me know if you have a fork / fixes you'd like to include.
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Please comment & let me know if you have a fork / fixes you'd like to include.
MEMPTR, esoteric register of the ZiLOG Z80 CPU. | |
by Boo-boo (first and draft English translation by Vladimir Kladov) | |
As it is known, after the instruction BIT n,(HL) execution, bits 3 and 5 of the flag register become containing values that is not documented in the official documentation at all. Actually these bits are copied from the bits 11 and 13 of the internal register pair of Z80 CPU, which is used for 16-bit operations, and in most cases to handle addresses. This is usual practice for processors having 8-bits data bus working with 16-bits data. | |
It is not known why and how these bits of the internal buffer register are copied to the flags register though. At least Sean Young in the "Undocumented Z80 Documented" refers to that phenomenon (http://www.myquest.nl/z80undocumented/) and a bit more info can be found in the Z80 description of another "nocash" project (http://www.work.de/nocash/zxdocs.htm) where such register pair is called as MEMPTR. Unfortunately until now attemts to crack the algorithm se |
THE ISA AND PC/104 BUS | |
IBM, IBM/XT, IBM PC, and IBM PC AT are registered trademarks of | |
International Business Machines Corporation. | |
This file is designed to give a basic overview of the bus found in | |
most IBM clone computers, often referred to as the XT or AT bus. The | |
AT version of the bus is upwardly compatible, which means that cards |
To detect Super Game Boy, the values of SGB Flag and Old Licensee Code must be set in the cartridge header. In detail, that would mean that the value of $0146 is $03 and the value of $014B is $33. | |
To detect Game Boy Color, use the value of the CGB Flag in the cartridge header. If the value of $0143 is $80, then the game should be compatible with both normal and color Game Boy models. If it is $C0, then it should only work with Game Boy Color. | |
Additionally, some games check the value of the Accumulator directly after startup. If the value is $01, then the hardware is either Super Game Boy or normal Game Boy. If it is $FF, then the hardware is either Super Game Boy 2 or Game Boy Pocket. If it is $11, then it is either Game Boy Color or Game Boy Advance. | |
Lastly, you can detect if the game is on a Game Boy Advance by checking bit 0 of the B register directly after startup. If it is cleared, it is a Game Boy Color. If it is set, it is a Game Boy Advance. | |
__________ | |
Note: The Super Game Boy 2 was little more th |
; GameBoy Color Boot ROM Disassembly | |
; Dumped by Costis | |
; Commenting by Randy Mongenel (Duo) | |
; WORK-IN-PROGRESS VERSION 09-27-2009 | |
; =========================================================================== | |
; Segment type: Pure code | |
SECTION "ROM", CODE |
#include <SDL.h> // The SDL library | |
#include <math.h> // sin, fmod | |
#include <stdio.h> // printf | |
#define BUFFER_DURATION 1 // Length of the buffer in seconds | |
#define FREQUENCY 48000 // Samples per second | |
#define BUFFER_LEN (BUFFER_DURATION*FREQUENCY) // Samples in the buffer | |
void play_buffer(void*, unsigned char*, int); |
LD SP,$fffe ; $0000 Setup Stack | |
XOR A ; $0003 Zero the memory from $8000-$9FFF (VRAM) | |
LD HL,$9fff ; $0004 | |
Addr_0007: | |
LD (HL-),A ; $0007 | |
BIT 7,H ; $0008 | |
JR NZ, Addr_0007 ; $000a | |
LD HL,$ff26 ; $000c Setup Audio |
Game Boy Sound Operation | |
------------------------ | |
Shay Green (blargg) | |
gblargg@gmail.com | |
http://www.slack.net/~ant/ | |
** This is an incomplete draft | |
This documents the behavior of Game Boy sound; details which aren't | |
relevant to the observable behavior have been omitted unless they |
1.01 - Added some new licensees, fixed some | |
descriptions. | |
v1.00 - Initial release. | |
_______________ | |
This information was taken and compiled from Martin Korth's | |
NO$GMB emulator. Best viewed in DOS EDIT. | |
Every Gameboy ROM header starts off at the HEX offset 0134. |
# pre-commit.py: | |
# | |
# Performs the following: | |
# - Makes sure the author has entered a log message. | |
# - Makes sure the author is only creating a tag, or if deleting a tag, author is a specific user | |
# - Makes sure the author is not committing to a particular set of paths in the repository | |
# | |
# Script based on http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/log-police.py | |
# | |
# usage: pre-commit.py -t TXN_NAME REPOS |