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
cmake_minimum_required (VERSION 3.12) | |
project(palette C) | |
add_library(stb_image STATIC stb_image.c stb_image.h stb_image_write.h) | |
add_executable(kmeans kmeans.c) | |
target_compile_options(kmeans PUBLIC -Wall -Wshadow -Wextra) | |
target_link_libraries(kmeans stb_image m) |
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
; etripator -l syscard.json huvideo.json Galaxy\ Fraulein\ Yuna\ HuVideo\ CD\ \(JP\).img | |
.code | |
.bank $068 | |
.org $4b50 | |
vram_load: | |
st0 #$00 | |
lda <$44 | |
sta video_data_l | |
lda <$45 | |
sta video_data_h |
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
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char** argv) { | |
int c = 0; | |
int j = (argc > 1) ? (printf("plop "),c=1,-1) : 1; | |
printf("%d %d\n", j, c); | |
return EXIT_SUCCESS; | |
} |
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
;"Pokekon" BIOS disassembly & comments by Chris Covell | |
; This is a disassembly of the Epoch Game Pocket Computer's BIOS ROM. | |
; The BIOS is internal to the uPD78c06 CPU, but is completely accessible to | |
; all game ROMs, and provides vital support functions for games (reading | |
; the joypad, updating the LCD, offering music-playing routines...) | |
; | |
; Not all of the functions of the BIOS are understood, but a good many | |
; of them have been documented. Much of the ROM space is taken up by | |
; the internal demonstration, puzzle, and "paint" programs of the Pokekon |
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
; ex af, af' | |
; add ix, de ; 15 ix += de | |
; exx | |
; ld a,ixh ; 4 a = hi(ix) | |
; and 31 ; 7 a &= 31 | |
; | |
; xor l ; 4 l = 0 | |
; ld h,a ; 4 h = a | |
; srl h ; 8 lsr h | |
; rr l ; 8 ror l |
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
このプログラムの著作権は株式会社 | |
ハドソンが所有しております。この | |
プログラムの一部または全部を株式 | |
会社ハドソンの書面による許可なく | |
複写・複製・転用することは著作権 | |
法により禁じられております。 | |
PRODUCER 中本伸一 | |
DIRECTOR 野沢勝広 | |
CD-ROM SIMULATOR 本迫芳夫 | |
BIOS MAIN CODE, CD-PLAYER 小林敬樹 |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <math.h> | |
#include <utils/print.h> | |
int main() | |
{ | |
int total = 96; |
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
;;------------------------------------------------ | |
;; Compressed image loading (lzss) | |
;; (c) 2005,2006 Vincent "MooZ" Cruz | |
;; [email protected] | |
;;------------------------------------------------ | |
HUC = 1 | |
;;------------------------------------------------ | |
;; LZSS |
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
#include <iostream> | |
class A | |
{ | |
public: | |
A() : u(this->_v), _v(1) {} | |
~A() {} | |
public: | |
const int& u; | |
private: |
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/python | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import json | |
class IPSRecord: | |
def __init__(self): | |
self.offset = 0 | |
self.data = None |
NewerOlder