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.
| MBC3 RTC save format | |
| the RTC data is appended after the sav file, 44 or 48 bytes. you can detect its presence by the save data being 44 or 48 bytes bigger than the cart's ram size, or 44 or 48 bytes bigger than a multiple of 8192. | |
| old VBA (from 2005) saves the 44 bytes version, and can load both the 44 and 48 bytes version. | |
| VBA-M saves the 48 bytes version, and can *only* load the 48 bytes version. | |
| one should load both types, and always save the 48 bytes version. |
| 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 |
| language: objective-c | |
| before_script: | |
| - chmod +x scripts/travis/add-key.sh | |
| - chmod +x scripts/travis/remove-key.sh | |
| - chmod +x scripts/travis/testflight.sh | |
| - ./scripts/travis/add-key.sh | |
| script: xctool -workspace [Workspace name].xcworkspace -scheme '[Scheme to use]' -configuration [Build configuration name] -sdk iphoneos7.1 CONFIGURATION_BUILD_DIR='~/build/' build | |
| after_success: | |
| - ./scripts/travis/testflight.sh | |
| after_script: |
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.
| #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); |