Skip to content

Instantly share code, notes, and snippets.

View farteryhr's full-sized avatar

farteryhr

View GitHub Profile
@xen0n
xen0n / check-new-world.tiny.s
Last active March 29, 2024 10:12
Tiny helper checking for LoongArch new world UAPI
# SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#
# how to build this:
#
# $ as -o check-new-world.tiny.o check-new-world.tiny.s
# $ ld check-new-world.tiny.o -o check-new-world.tiny.tmp
# $ objcopy -O binary --only-section=.blob ./check-new-world.tiny.tmp ./check-new-world.tiny
.section ".blob", "aw", @progbits
@farteryhr
farteryhr / Tetris-ex-20111106.cpp
Created November 6, 2011 07:07
俄罗斯方块EX 控制台版 c++代码 by Farteryhr
#include <stdio.h>
#include <conio.h>
#include <windows.h>
#include <time.h>
#include <math.h>
#include <string.h>
#define u16 unsigned short
char XC[2001]={0};
const char* blk[30]={
"oo",