View gist:6f9d8c6c7dc3da4c8cc6ccc10fb4407f
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
; ######################################################################### | |
.586 | |
.model flat, stdcall | |
option casemap :none ; case sensitive | |
; ######################################################################### | |
include \masm32\include\windows.inc | |
include \masm32\include\kernel32.inc |
View gist:43677e603df64b9bb58bb0910d827b7a
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
UBYTE DMGFadetoWhiteStep(UBYTE pal, UBYTE step) __naked { | |
pal; step; | |
__asm | |
lda HL, 3(SP) | |
ld A, (HL-) | |
ld E, (HL) | |
or A | |
ret Z | |
ld D, A |
View 1. profiler stat calculator
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/env python | |
# -*- coding: utf-8 -*- | |
# vim: sts=4 sw=4 et | |
# Description: profile calculator | |
# Author: Tony Pavlov (untoxa) | |
# SPDX-License-Identifier: MIT | |
import sys | |
symbols = {} |
View bgb snapshot reader
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/env python | |
# -*- coding: utf-8 -*- | |
# vim: sts=4 sw=4 et | |
import sys | |
from struct import unpack | |
from array import array | |
def read_snspshot(snapshot_name): | |
def readasciiz(f): |