Skip to content

Instantly share code, notes, and snippets.

View cpuwolf's full-sized avatar
🎯
Focusing

Wei Shuai cpuwolf

🎯
Focusing
View GitHub Profile
@cpuwolf
cpuwolf / datetime.bat
Created July 24, 2023 09:39
Windows 10 batch get date time string
set hour=%time:~0,2%
if "%hour:~0,1%" == " " set hour=0%hour:~1,1%
echo hour=%hour%
set min=%time:~3,2%
if "%min:~0,1%" == " " set min=0%min:~1,1%
echo min=%min%
set secs=%time:~6,2%
if "%secs:~0,1%" == " " set secs=0%secs:~1,1%
echo secs=%secs%
<html>
<head>
<meta charset="utf-8" />
<style type="text/css">
.algolia-autocomplete {
width: 80%;
max-width: 700px;
}
//
// main.cpp
// fdouble
//
// Created by wshuai on 2021/12/29.
//
#include <stdio.h>
void * store[3];
/*
* written by Wei Shuai <[email protected]> 2021-Oct
*/
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
typedef struct {
uint64_t b1;
uint64_t b2;
@cpuwolf
cpuwolf / switch.asm
Created June 11, 2021 06:07
IA real mode, protected mode, 64bit mode, 64bit compat mode
# we can boot from BOOTLOADER function logic_boot_emmc_init()
# please make sure paging is disabled
# before enter into sbft_call
.text
.section REALMODE_CODE, "ax"
.code32
##########################################