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): |
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 = {} |
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 |
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 |