Skip to content

Instantly share code, notes, and snippets.

/* Copyright (C) 2010-2017 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (features_cpu.c).
* ---------------------------------------------------------------------------------------
*
* Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
/**
* cpu_features_get_time_usec:
*
* Gets time in microseconds.
*
* Returns: time in microseconds.
**/
retro_time_t cpu_features_get_time_usec(void)
{
struct timeval tv;
Starting program: /home/simias/src/RetroArch/retroarch
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffdecff700 (LWP 14633)]
[INFO] Environ SET_PIXEL_FORMAT: RGB565.
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 29970.03 Hz.
[INFO] Found shader "/home/simias/.config/retroarch/shaders/gb.glslp"
[INFO] Found shader "/home/simias/.config/retroarch/shaders/retroarch.glslp"
void ZSortBOSS_Audio2( u32 _w0, u32 _w1 )
{
int len = _w1 >> 24;
u16 *mem16 = (u16*)DMEM;
// Destination address (in 16bit sample unit)
u32 dst = (((u32*)DMEM)[0x10>>2] >> 1) ^ 1;
/* Fixed point 8.16 */
u32 fp0 = _w0 & 0xfffff;
/*
* Copyright (C) 2014-2016 Altera Corporation <www.altera.com>
*
* SPDX-License-Identifier: GPL-2.0
*/
#ifndef __CONFIG_SOCFGPA_ARRIA10_H__
#define __CONFIG_SOCFGPA_ARRIA10_H__
#include <asm/arch/hardware.h>
@simias
simias / charmap.rs
Last active October 25, 2017 20:33
fn main() {
let font =
[
[ /* space */
0b100,
0b001,
0b000,
0b000,
0b010,
],
/* 4bpp 3x5 pixel font (texture size: 192 x 10, 240 32bit words) */
const uint8_t font[192 * 10 / 2] = {
0x00, 0x00, 0x10, 0x10, 0x11, 0x01, 0x01, 0x11,
0x01, 0x01, 0x00, 0x10, 0x00, 0x11, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
0x11, 0x10, 0x10, 0x11, 0x01, 0x10, 0x10, 0x11,
0x11, 0x11, 0x11, 0x11, 0x01, 0x01, 0x11, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x11,
0x11, 0x10, 0x10, 0x11, 0x00, 0x11, 0x01, 0x11,
0x11, 0x11, 0x10, 0x11, 0x10, 0x11, 0x11, 0x00,
NAME = mybin
CFLAGS = -Wall -O2 -MMD -MP
SRC = main.c
OBJ = $(SRC:%.c=%.o)
DEP = $(SRC:%.c=%.d)
$(NAME) : $(OBJ)
.set mips1
.set noreorder
.set noat
.set nomacro
.text
.section .text.bios_printf
.global bios_printf
.type bios_printf, function

Keybase proof

I hereby claim:

  • I am simias on github.
  • I am simias (https://keybase.io/simias) on keybase.
  • I have a public key whose fingerprint is 60DD 85DC B0E4 8F93 64C5 717D 5C96 8D2B 76C4 CE95

To claim this, I am signing this object: