text stringlengths 1 1.05M |
|---|
copyright zengfr site:http://github.com/zengfr/romhack
0032AA bra $32c8
0032BC move.w ($a,A6), D2 [1p+70, 1p+72, boss+70, boss+72, container+70, container+72, enemy+70, enemy+72, weapon+70, weapon+72]
00A2C6 dbra D0, $a2c0
copyright zengfr site:http://github.com/zengfr/romhack
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x7302, %rsi
nop
nop
nop
nop
sub %r10, %r10
movb (%rsi), %bl
nop
nop
nop
nop
xor %rcx, %rcx
lea addresses_UC_ht+0x1e782, %rsi
lea addresses_WC_ht+0x7b02, %rdi
nop
nop
nop
xor $29026, %r9
... |
#pragma once
#include "main.h"
#include "globals.hpp"
#include "gif-pros/gifclass.hpp"
#include "positionTracking.hpp"
LV_IMG_DECLARE(destiny) // background image is a destiny 2 emblem
LV_IMG_DECLARE(noAuton_IMG)
LV_IMG_DECLARE(AWP)
LV_IMG_DECLARE(leftAWP_IMG)
LV_IMG_DECLARE(rightAWP_IMG)
LV_IMG_DECLARE(middleGoal_IM... |
; A123865: a(n) = n^4 - 1.
; 0,15,80,255,624,1295,2400,4095,6560,9999,14640,20735,28560,38415,50624,65535,83520,104975,130320,159999,194480,234255,279840,331775,390624,456975,531440,614655,707280,809999,923520,1048575,1185920,1336335,1500624,1679615,1874160,2085135,2313440,2559999,2825760,3111695,3418800,3748095,410062... |
; A267815: Binary representation of the n-th iteration of the "Rule 221" elementary cellular automaton starting with a single ON (black) cell.
; 1,11,10111,1101111,111011111,11110111111,1111101111111,111111011111111,11111110111111111,1111111101111111111,111111111011111111111,11111111110111111111111,11111111111011111111... |
//===-- RegAllocSimple.cpp - A simple generic register allocator ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
add
mov
sub
imul
idiv
int
inc
dec
sti
cli
push
pop
pusha
popa
ret
cmp
jmp
je/jne/jg/jge/jl/jle/ja/jae/jb/jbe
in
out
|
/*
* Copyright Andrey Semashev 2007 - 2015.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
/*!
* \file named_scope.cpp
* \author Andrey Semashev
* \date 24.06.2007
*
... |
; A227546: n! + n^2 + 1.
; 2,3,7,16,41,146,757,5090,40385,362962,3628901,39916922,479001745,6227020970,87178291397,1307674368226,20922789888257,355687428096290,6402373705728325,121645100408832362,2432902008176640401,51090942171709440442,1124000727777607680485,25852016738884976640530,620448401733239439360577,15511210043... |
.CODE
GetRSPValue PROC
mov rax, rsp
add rax, 8
ret
GetRSPValue ENDP
END |
; A076740: a(0)=0, a(1)=1, a(n)=2*a(n-1)^2-a(n-2)^2.
; Submitted by Christian Krause
; 0,1,2,7,94,17623,621131422,771608486480914039,1190759312818733806192492198418844958,2835815482129086304432303489823255992516794878843873643408264712776750007
lpb $0
sub $0,1
pow $2,2
sub $2,$1
add $1,$2
add $1,1
add $2,$... |
UnusedNames::
db "かみなりバッヂ@"
db "かいがらバッヂ@"
db "おじぞうバッヂ@"
db "はやぶさバッヂ@"
db "ひんやりバッヂ@"
db "なかよしバッヂ@"
db "バラバッヂ@"
db "ひのたまバッヂ@"
db "ゴールドバッヂ@"
db "たまご@"
db "ひよこ@"
db "ブロンズ@"
db "シルバー@"
db "ゴールド@"
db "プチキャプテン@"
db "キャプテン@"
db "プチマスター@"
db "マスター@"
db "エクセレント"
|
; A176893: a(n) = 2^(number of zeros in binary expansion of n) * 3^(numbers of ones in binary expansion of n).
; Submitted by Jon Maiga
; 2,3,6,9,12,18,18,27,24,36,36,54,36,54,54,81,48,72,72,108,72,108,108,162,72,108,108,162,108,162,162,243,96,144,144,216,144,216,216,324,144,216,216,324,216,324,324,486,144,216,216
mov... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash and Syscoin Core developers
// Copyright (c) 2018-2020 The Billiecoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#in... |
db 0 ; species ID placeholder
db 61, 90, 45, 160, 50, 50
; hp atk def spd sat sdf
db BUG, FLYING ; type
db 120 ; catch rate
db 155 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 15 ; step cycles to hatch
INCBIN "gfx/pokemon/ninjask/front.dimensions"
db GROWTH_ERRATIC ; g... |
/*************************************************************************/
/* os.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
/*
*/
#include <bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define endl "\n"
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int getRand(int l, int r)
{
uniform_int_distribution<int> uid(l, r);
return uid(rng);
}
struct Treap
{
stru... |
#ifndef CLIENT_WSS_HPP
#define CLIENT_WSS_HPP
#include "client_ws.hpp"
#include <boost/asio/ssl.hpp>
namespace SimpleWeb {
typedef boost::asio::ssl::stream<boost::asio::ip::tcp::socket> WSS;
template<>
class SocketClient<WSS> : public SocketClientBase<WSS> {
public:
SocketClient(const... |
# Lab 5
# Bit Manipulation (sb-exp-man) -> (man-exp-sb)
# lab lab
.text
main:
li $v0, 5
syscall
move $a0, $v0
srl $t0, $a0, 31 #sb
sll $t1, $a0, 9 #man
sll $t2, $a0, 1
andi $t2, $t2, 0xff800000
srl $t2, $t2, 23 #exp
or $a0, $t0, $t1
or $a0, $a0, $t2
li $v0, 1
syscall
li $v0, 10
syscall
|
; C1541 ROM source, Soci/Singular
NODRRD .macro ; read nodrv,x absolute
.byte $bd,$ff,$00
.endm
NODRWR .macro ; write nodrv,x absolute
.byte $9d,$ff,$00
.endm
*=$c000
.fill $4000,$aa
.include "equate.asm"
.include "iodef.asm"
... |
;-------------------------------------
; fdetect
; detects appvars, prot progs, and
; progs given a 0-terminated string
; pointed to by ix.
;-------------------------------------
; INPUTS:
; hl->place to start searching
; ix->string to find
;
; OUTPUTS:
; hl->place stopped searching
; de->program data
; bc=program size... |
/*
author: Ilya Andronov <sni4ok@yandex.ru>
*/
#include "alco.hpp"
#include "evie/profiler.hpp"
#include <libwebsockets.h>
#include <sys/stat.h>
#include <fcntl.h>
struct lws_dump
{
int hfile;
bool lws_not_fake, lws_dump_en;
lws_dump() : hfile(), lws_not_fake(true), lws_dump_en(), dump_buf("\n \n... |
; A189638: Partial sums of A116178.
; 0,0,1,1,1,2,2,3,4,4,4,5,5,5,6,6,7,8,8,8,9,9,10,11,11,12,13,13,13,14,14,14,15,15,16,17,17,17,18,18,18,19,19,20,21,21,21,22,22,23,24,24,25,26,26,26,27,27,27,28,28,29,30,30,30,31,31,32,33,33,34,35,35,35,36,36,37,38,38,39,40
mov $2,$0
mov $4,$0
lpb $2
mov $0,$4
sub $2,1
sub $0,$... |
section .text
global load_idt
load_idt:
mov eax, [esp + 4]
lidt [eax]
ret
|
#include "searchTree.h"
SearchTree::SearchTree(Sequent& rootNodeValue)
{
this->rootNode = std::make_shared<Node>();
std::pair<Sequent, std::optional<Sequent>> v;
v.first = rootNodeValue;
this->rootNode->data = v;
this->rootNode->parent = nullptr;
}
SearchTree::~SearchTree()
{
}
const std::shared_... |
; A075918: Fifth column of triangle A075501.
; Submitted by Jamie Morken(w3)
; 1,90,5040,226800,9008496,330674400,11511434880,386143718400,12611398415616,403864019919360,12744269679697920,397694704355020800,12304809943691636736,378212825199337758720,11565710925825703772160
mov $2,6
pow $2,$0
seq $0,481 ; Stirling numb... |
; A142666: Primes congruent to 2 mod 57.
; Submitted by Jon Maiga
; 2,59,173,401,743,857,971,1427,1997,2111,2339,2909,3023,3137,3251,3593,3821,4049,4391,4733,5189,5303,5417,5531,5987,6101,6329,6899,7013,7127,7583,8039,8609,8837,8951,9293,9521,9749,10091,10433,10889,11003,11117,11801,12143,12713,12941,13397,13967,14081,... |
addi $x0, $x0, 0 # nop
addi $x1, $x0, 1 # $x1 = 1
addi $x2, $x1, 1 # $x2 = 2
ori $x3, $x2, 1 # $x3 = 3
ori $x5, $x1, 4 # $x5 = 5
andi $x4, $x5, 6 # $x4 = 4
addi $x7, $zero, 7 # $x7 = 7
addi $x6, $x7, -1 # $x6 = 6
slti $x8, $x6, 7 # $x8 = 1
slti $x9, $x6, 5 # $x9 = 0
slti $x10, $x6, 6 # $x10 = 0
sltiu $x11, $... |
//////////////////////////////////////////////////////////////////////////////
// astrorace.asm
// Copyright(c) 2021 Neal Smith.
// License: MIT. See LICENSE file in root directory.
//
// Astro Race Main program
//////////////////////////////////////////////////////////////////////////////
#import "../nv_c64_util/nv_c... |
; $Id: ASMAtomicUoAndU32.asm 69111 2017-10-17 14:26:02Z vboxsync $
;; @file
; IPRT - ASMAtomicUoAndU32().
;
;
; Copyright (C) 2013-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute it ... |
; A060453: Dot product of the squares and the quarter-squares: a(n) = sum(i=1..n, i^2 * floor(i^2/4)).
; 0,4,22,86,236,560,1148,2172,3792,6292,9922,15106,22204,31808,44408,60792,81600,107844,140334,180334,228844,287408,357236,440180,537680,651924,784602,938266,1114876,1317376,1548016,1810160,2106368,2440452
lpb $0
m... |
SilphCo10Object:
db $2e ; border block
db $6 ; warps
db $0, $8, $0, SILPH_CO_9F
db $0, $a, $0, SILPH_CO_11F
db $0, $c, $0, SILPH_CO_ELEVATOR
db $b, $9, $3, SILPH_CO_4F
db $f, $d, $5, SILPH_CO_4F
db $7, $d, $6, SILPH_CO_4F
db $0 ; signs
db $6 ; objects
object SPRITE_ROCKET, $1, $9, STAY, RIGHT, $1, OPP_ROC... |
; A282627: Exponential expansion of the square of the real root y = y(x) of y^3 - 3*x*y - 1.
; Submitted by Jamie Morken(m1)
; 1,2,2,-4,0,80,-560,0,49280,-582400,0,117286400,-1947545600,0,701372672000,-14996101120000,0,8461359915008000,-221282468126720000,0,180057738991370240000,-5567466898068275200000,0,61716590616682... |
; A241496: Expansion of (1 + 4*x + x^2) / (1 - x^2)^3.
; 1,4,4,12,9,24,16,40,25,60,36,84,49,112,64,144,81,180,100,220,121,264,144,312,169,364,196,420,225,480,256,544,289,612,324,684,361,760,400,840,441,924,484,1012,529,1104,576,1200,625,1300,676,1404,729,1512
add $0,1
lpb $0,1
add $2,$0
add $$0,$$0
trn $0,2
lpe
... |
; Copyright (c) 2017-2021, The rav1e contributors
; Copyright (c) 2021, Nathan Egge
; All rights reserved.
;
; This source code is subject to the terms of the BSD 2 Clause License and
; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
; was not distributed with this source code in the LICENSE... |
; A255829: a(n) = n for n < 9; a(9n) = a(n); if every 9th term (a(9), a(18), a(27),...) is deleted, this gives back the original sequence.
; 1,2,3,4,5,6,7,8,1,1,1,1,1,1,1,1,1,2,1,2,1,2,1,2,1,2,3,1,2,3,1,2,3,1,2,4,3,1,2,4,3,1,2,4,5,3,1,2,4,5,3,1,2,6,4,5,3,1,2,6,4,5,7,3,1,2,6,4,5,7,3,8,1,2,6,4,5,7,3,8,1,1,2,6,4,5,7,3,8,1... |
#ifdef PLATFORM_WINDOWS
#include <Boxer/App.h>
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <Windows.h>
#include <Boxer/File.h>
#include <Boxer/Timer.h>
#include <Boxer/Graphics/Buffer.h>
#include <Boxer/Graphics/Shader.h>
// Some useful WGL constants
// See https://www.opengl.org/regist... |
; A303303: Generalized 23-gonal (or icositrigonal) numbers: m*(21*m - 19)/2 with m = 0, +1, -1, +2, -2, +3, -3, ...
; 0,1,20,23,61,66,123,130,206,215,310,321,435,448,581,596,748,765,936,955,1145,1166,1375,1398,1626,1651,1898,1925,2191,2220,2505,2536,2840,2873,3196,3231,3573,3610,3971,4010,4390,4431,4830,4873,5291,5336,... |
; Toy program that draws some vertical lines on the screen
org $4a00
import '../lib/barden_fill.asm'
space equ $20
screen equ $3c00
char_ct equ 64*16
vlinel equ $95
vliner equ $aa
; Draw a vertical line at IX which should be along the
; top line of the screen.
vline:
ld a,16
draw:
ld (ix),vlinel
ld bc,64
... |
/*
* SHA-512 hash in x86 assembly
*
* Copyright (c) 2014 Project Nayuki
* http://www.nayuki.io/page/fast-sha2-hashes-in-x86-assembly
*
* (MIT License)
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal... |
//////////////////////////////////////////////////////////////////////////////
// astro_ships_code.asm
// Copyright(c) 2021 Neal Smith.
// License: MIT. See LICENSE file in root directory.
//////////////////////////////////////////////////////////////////////////////
#importonce
#import "../nv_c64_util/nv_c64_util_mac... |
.MODEL SMALL
.STACK 100H
.DATA
.CODE
MAIN PROC
; Disply user prompt
MOV AH,2
MOV DL,'?'
INT 21H
XOR CX,CX
; recive an input
MOV AH,1
INT 21H
;WHILE LOOP
WHILE_:
; if input not equal CR
CMP AL,0DH
; go to end_while
JE END_WHILE
PUSH AX
INC CX
INT 21H
JMP WHILE_
;end_while..
END_WHILE:
; if CR
... |
; F-Zero Climax Translation by Normmatt
.align 4
Profile9_CharacterProfile:
.sjis "高機動小隊メカニッ",TextNL,"ク責任者。リュウの",TextNL,"操るドラゴンバード",TextNL,"の設計者でもある。",TextNL,"その見た目とは裏腹",TextNL,"に温厚な性格でチー",TextNL,"ムからの信らいも",TextNL,"とても厚い。",TextNL,"自らもマシンを操り、",TextNL,"レースに参戦する",TextNL,"こともある。",TextNL,"背中に背負ったマ",TextNL,"ジックハンドは彼の",Tex... |
; A132652: Sum of divisors of n, Sigma(n) raised to power Sigma(n).
; 1,27,256,823543,46656,8916100448256,16777216,437893890380859375,302875106592253,39346408075296537575424,8916100448256
seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n).
pow $0,$0
|
;;
;; Copyright (c) 2012-2020, Intel Corporation
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions are met:
;;
;; * Redistributions of source code must retain the above copyright notice,
;; this list of conditions and... |
;--------------------------------------------------------------------------------
; OnLoadOW
;--------------------------------------------------------------------------------
;OnLoadMap:
; LDA $7EF2DB ; thing we wrote over
;RTL
;--------------------------------------------------------------------------------
OnPrepFile... |
BTTrainerClassSprites:
; entries correspond to trainer classes
db SPRITE_FALKNER
db SPRITE_WHITNEY
db SPRITE_BUGSY
db SPRITE_MORTY
db SPRITE_PRYCE
db SPRITE_JASMINE
db SPRITE_CHUCK
db SPRITE_CLAIR
db SPRITE_SILVER
db SPRITE_OAK
db SPRITE_WILL
db SPRITE_CHRIS
db SPRITE_BRUNO
db SPRITE_KAREN
db SPRITE_KOGA... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xabe9, %r13
nop
and $24338, %r11
movups (%r13), %xmm2
vpextrq $0, %xmm2, %rax
nop
nop
nop
nop
and %r9, %r9
lea addresses_D_ht+0x39b1, %rbx
cmp $31972, %r11
... |
; A176736: a(n) = (n+9)*a(n-1) + (n-1)*a(n-2), a(-1)=0, a(0)=1.
; Submitted by Jamie Morken(s1)
; 1,10,111,1352,17909,256134,3931555,64441684,1123029513,20730064706,403978495031,8286870547680,178468044946621,4025739435397822,94912091598455979,2334250550458513004,59779945135439664785,1591626582328767492474,4399017679017... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r8
push %rax
push %rbp
push %rdi
// Faulty Load
lea addresses_WC+0x95eb, %rax
nop
nop
cmp %r12, %r12
mov (%rax), %r8d
lea oracles, %rdi
and $0xff, %r8
shlq $12, %r8
mov (%rdi,%r8,1), %r8
pop %rdi
pop %r... |
_mkdir: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 57 push %edi
4: 56 push %e... |
db 0 ; species ID placeholder
db 75, 80, 70, 90, 65, 75
; hp atk def spd sat sdf
db POISON, FLYING ; type
db 90 ; catch rate
db 171 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 15 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/golbat/f... |
.data
Fibonacci BYTE 1, 1, 10 DUP (?)
.code
main PROC
L1:
mov esi, OFFSET Fibonacci ; offset the variables
mov ebx,1 ; byte format
mov ecx, SIZEOF Fibonacci ; counter
call dumpMem ; display the data in the memory
exit ;exits to Operat... |
#include "Multiplayer/Systems/Persistent/MultiplayerKillActorsSystem.h"
#include "Systems/Public/SystemsWorld.h"
#include "Multiplayer/Resources/MultiplayerCommands.h"
void MultiplayerKillActorsSystem(USystemsWorld& Systems)
{
auto* Commands = Systems.Resource<UMultiplayerCommands>();
if (IsValid(Commands) == fals... |
SECTION code_driver
PUBLIC _asci1_pollc
EXTERN asm_asci1_pollc
defc _asci1_pollc = asm_asci1_pollc
EXTERN asm_asci1_need
defc NEED = asm_asci1_need
|
;code switch to protected mode
[bits 16]
switch_to_protected:
cli ; disable int
lgdt[gdt_start.size] ; load the idt into the memory
mov eax, cr0
or al, 1 ; switch flag true
mov cr0, eax
jmp 08h:protected_mod_init ; far jump to code
ret
[bits 32]
protected_mod_init:
mov ax,gdt_start.gdt_data_descript... |
; A232600: a(n) = Sum_{k=0..n} k^p*q^k, where p=1, q=-2.
; 0,-2,6,-18,46,-114,270,-626,1422,-3186,7054,-15474,33678,-72818,156558,-334962,713614,-1514610,3203982,-6757490,14214030,-29826162,62448526,-130489458,272163726,-566697074,1178133390,-2445745266,5070447502,-10498808946,21713445774,-44858547314,92580406158,-1908... |
; ******************************************************************************
; ******************************************************************************
;
; Name : binary.asm
; Purpose : Simple Binary Functions
; Author : Paul Robson (paul@robsons.org.uk)
; Created : 12th November 2019
;
; ***********... |
#include <rai/node/bootstrap.hpp>
#include <rai/node/node.hpp>
std::chrono::seconds constexpr rai::Bootstrap::BOOTSTRAP_INTERVAL;
namespace
{
size_t BootstrapMessageSize()
{
static std::atomic<size_t> size(0);
if (size > 0)
{
return size;
}
rai::BootstrapMessage message(rai::BootstrapType... |
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcconsole.h"
#include "ui_rpcconsole.h"
#include "clientmodel.h"
#include "bitcoinrpc.h"
#include "guiutil.h"
#in... |
; void wpoke_callee(void *addr, uint word)
; 11.2006 aralbrec
SECTION code_clib
PUBLIC wpoke_callee
PUBLIC _wpoke_callee
PUBLIC ASMDISP_WPOKE_CALLEE
.wpoke_callee
._wpoke_callee
pop hl
pop de
ex (sp),hl
.asmentry
ld (hl),e
inc hl
ld (hl),d
ret
DEFC ASMDISP_WPOKE_CALLEE = # asmentry - wpoke_ca... |
#ifndef __SPACETODEPTH_HPP__
#define __SPACETODEPTH_HPP__
#include "operator.hpp"
#include "operator/spacetodepth_param.hpp"
namespace TEngine {
class SpaceToDepth : public OperatorWithParam<SpaceToDepth, SpaceToDepthParam>
{
public:
SpaceToDepth()
{
name_ = "SpaceToDepth";
}
... |
; A140230: Binomial transform of [1, 2, -3, -4, 5, 6, -7, -8, 9, 10,...].
; 1,3,2,-6,-20,-28,-8,56,144,176,32,-352,-832,-960,-128,1920,4352,4864,512,-9728,-21504,-23552,-2048,47104,102400,110592,8192,-221184,-475136,-507904,-32768,1015808,2162688,2293760,131072,-4587520,-9699328,-10223616,-524288,20447232,42991616,4508... |
; A177138: a(n) = (n!*(n+1))/2 with n or (n+1) prime.
; 1,3,12,60,360,2520,20160,19958400,239500800,3113510400,43589145600,177843714048000,3201186852864000,60822550204416000,1216451004088320000,12926008369442488320000,310224200866619719680000
seq $0,93515 ; Numbers k such that either k or k-1 is a prime.
seq $0,142 ; ... |
/* Copyright (c) 2002-2004 CrystalClear Software, Inc.
* Use, modification and distribution is subject to the
* Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
* Author: Jeff Garland, Bart Garst
* $Date$
*/
#ifndef BOOST_DATE_TIME_SOURCE
#... |
db DEX_RATTATA ; pokedex id
db 30, 56, 35, 72, 25
; hp atk def spd spc
db POISON, POISON ; type
db 255 ; catch rate
db 57 ; base exp
INCBIN "gfx/pokemon/front/rattata.pic", 0, 1 ; sprite dimensions
dw RattataPicFront, RattataPicBack
db TACKLE, TAIL_WHIP, NO_MOVE, NO_MOVE ; level 1 learnset
db G... |
/******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across *
... |
; Hello World
.386
STACK SEGMENT USE16 STACK
DB 200 DUP(0)
STACK ENDS
DATA SEGMENT USE16
MSG DB 'HELLO WORLD$'
DATA ENDS
CODE SEGMENT USE16
ASSUME CS:CODE, DS:DATA, SS:STACK
START:
MOV AX, DATA
MOV DS, AX
LEA DX, MSG
MOV AH, 9
INT 21H
... |
RuinsOfAlphAerodactylChamber_MapScripts:
db 2 ; scene scripts
scene_script .CheckWall ; SCENE_DEFAULT
scene_script .DummyScene ; SCENE_FINISHED
db 1 ; callbacks
callback MAPCALLBACK_TILES, .HiddenDoors
.CheckWall:
checkevent EVENT_WALL_OPENED_IN_AERODACTYL_CHAMBER
iftrue .OpenWall
end
.OpenWall:
prioritysju... |
// Copyright (C) 2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "ops/util/util.hpp"
#include "pwl_approximation.hpp"
#include "transformations/utils/utils.hpp"
#include "ops/pwl.hpp"
#include "ops/reference/pwl.hpp"
#include <memory>
#include <vector>
#include <numeric>
#include <iostream>
... |
// PTGameInfo.cpp: implementation of the CPTGameInfo class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "PT.h"
#include "PTGameInfo.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
///////////////////////////... |
; vim:noet:sw=8:ts=8:sts=8:ai:syn=asm68k
;
; Naive implementation of FizzBuzz. (uses DIVU instruction)
include "68000app.inc"
start: sys WaitBtn
moveq #1,d3 ; counter
.loop:
moveq #0,d2 ; flag
; compute modulo 3
move... |
/*
* Copyright 2017 Yuji Ito <llamerada.jp@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
; A270257: Number of 2X2X2 triangular 0..n arrays with some element plus some adjacent element totalling n exactly once.
; 0,12,24,48,72,108,144,192,240,300,360,432,504,588,672,768,864,972,1080,1200,1320,1452,1584,1728,1872,2028,2184,2352,2520,2700,2880,3072,3264,3468,3672,3888,4104,4332,4560,4800,5040,5292,5544,5808,6... |
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd.
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of both the JUCE 5 End-User Lic... |
; A100287: First occurrence of n in A100002; the least k such that A100002(k) = n.
; 1,2,5,9,15,25,31,43,61,67,87,103,123,139,169,183,219,241,259,301,331,361,391,447,463,511,553,589,643,687,723,783,819,867,931,979,1027,1099,1179,1227,1309,1347,1393,1479,1539,1603,1699,1759,1863,1909,2019,2029,2163,2263,2311,2439,2527,2... |
VIA1_RB = $9000 ; VIA used for the graphics and keyboard systems.
VIA1_RA = $9001 ; RB = GFX Data, RA = keyboard data.
VIA1_DDRB = $9002 ; Data Direction Register - 1 = output, 0 = input
VIA1_DDRA = $9003
VIA1_T1CL = $9004
VIA1_T1CH = $9005
VIA1_T1LL = $9006
VIA1_T1LH = $9007
VIA1_T2CL = $9008
VIA1_T2CH = $9009
VIA1_SR... |
; A179431: a(n) = binomial(3^(n-1), n).
; 1,1,3,84,17550,25621596,268715232324,21091830512086620,12814543323816738705045,61742372998425082372103866380,2399699340005498870742886195375900380,761689137813999393167583510790986701377432464,1992997938492157367948224731863936229108552184201415196,43308353962771956282847606133... |
[bits 64]
andn eax, ebx, ecx ; c4 e2 60 f2 c1
andn eax, ebx, [0] ; c4 e2 60 f2 04 25 00 00 00 00
andn rax, rbx, rcx ; c4 e2 e0 f2 c1
andn rax, rbx, [0] ; c4 e2 e0 f2 04 25 00 00 00 00
bextr eax, ebx, ecx ; c4 e2 70 f7 c3
bextr eax, [0], ecx ; c4 e2 70 f7 04 25 00 00 00 00
bextr rax, rbx, rcx ; c4 e2 f0 f7 c3
bextr rax... |
From netcom.com!ix.netcom.com!netnews Tue Nov 29 09:43:54 1994
Xref: netcom.com alt.comp.virus:508
Path: netcom.com!ix.netcom.com!netnews
From: Zeppelin@ix.netcom.com (Mr. G)
Newsgroups: alt.comp.virus
Subject: BlackKnight Virus (ANTI AV VIRUS)
Date: 29 Nov 1994 13:09:23 GMT
Organization: Netcom
Lines: 376
Distribution... |
/*! \file */ // Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights.
//Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc
#include <errno.h>
#include <sos/link.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "var/String.hpp"
#include "sys/Appfs.hpp"
#include... |
;***********************************************************
; Version 2.40.00
;***********************************************************
; Note: a symbol "SI_BUGS" is used to make a work around for silicon
; 5510 version1.0. If you are going to use the code on 5510 vers... |
; void p_queue_clear(p_queue_t *q)
SECTION code_clib
SECTION code_adt_p_queue
PUBLIC p_queue_clear
EXTERN asm_p_queue_clear
defc p_queue_clear = asm_p_queue_clear
|
#include "Box3D.h"
void Box3D::CreateObject(const DirectX::XMFLOAT4& coord,
const DirectX::XMFLOAT4& color,
const DirectX::XMMATRIX& rotation,
const DirectX::XMFLOAT4& size)
{
vertices_.resize(vertexCount_);
for (unsigned int i = 0; i < vertexCount_; i++)
{
unsigned int idx = i / 3;
vertices_[i].pos_.x = ... |
;/*!
; @file
;
; @ingroup fapi
;
; @brief BksCharIn DOS wrapper
;
; (c) osFree Project 2018, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; This is Family API implementation for DOS, used with BIND tools
; to link required API
;
; @author Yuri Prokushev (... |
// Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_RENDERER_COLOR_BUFFER_OPTIONAL_SURFACE_REF_HPP_INCLUDED
#define SGE_RENDERER_COLOR_BUFF... |
; A124861: Expansion of 1/(1-x-3x^2-4x^3-2x^4).
; 1,1,4,11,29,80,219,597,1632,4459,12181,33280,90923,248405,678656,1854123,5065557,13839360,37809835,103298389,282216448,771029675,2106492245,5755043840,15723072171,42956232021,117358608384
mov $4,2
mov $5,$0
lpb $4
mov $0,$5
sub $4,1
add $0,$4
sub $0,1
cal $0,... |
page ,132
;*****************************************************************************;
; ;
; FILE NAME: setvect.asm ;
; ;
; DESCRIPTION: Microsoft C library routine _dos_setvect ;
; ;
; NOTES: ;
; ;
; HISTORY: ... |
copyright zengfr site:http://github.com/zengfr/romhack
003A0E movem.l D0-D3, -(A6)
003A12 move.w D4, ($4e,A6)
0042BC clr.w ($4,A6)
0042C0 moveq #$0, D0
009ACA dbra D5, $9ac8
057A5C move.l #$2000000, ($2,A6) [weapon+ E, weapon+10]
057A64 clr.b ($42,A6) [weapon+ 2, weapon+ 4]
057B76 move.l #$2040... |
; A005892: Truncated square numbers: 7*n^2 + 4*n + 1.
; 1,12,37,76,129,196,277,372,481,604,741,892,1057,1236,1429,1636,1857,2092,2341,2604,2881,3172,3477,3796,4129,4476,4837,5212,5601,6004,6421,6852,7297,7756,8229,8716,9217,9732,10261,10804,11361,11932,12517,13116,13729,14356,14997,15652,16321,17004,17701,18412,19137,1... |
defop fexit
add esp, ptrsize
pop eval_ip
ret
defop break
ret
defop literal
mov eax, dword [eval_ip]
add eval_ip, ptrsize
pop ebx
push eax
push ebx
ret
defop int32
mov eax, dword [eval_ip]
add eval_ip, 4
pop ebx
push eax
push ebx
ret
defop int64
mov eax, dword [eval_ip]
add eval_ip, 8
pop ebx
pus... |
/*
Copyright (c) 2003-2018, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <AzCore/Serialization/EditContext.h>
#include <AzCore/Serialization/SerializeContext.h>
#... |
; A192806: a(n) = 7*a(n-1) - 5*a(n-2) + a(n-3), with initial values a(0) = a(1) = 1, a(2)=4.
; 1,1,4,24,149,927,5768,35890,223317,1389537,8646064,53798080,334745777,2082876103,12960201916,80641778674,501774317241,3122171529233,19426970897100,120879712950776,752145307699165,4680045560037375,29120472094716576,18119522217... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r8
push %rbx
lea addresses_D_ht+0x19589, %r15
nop
add $54829, %r12
mov (%r15), %r8w
inc %rbx
pop %rbx
pop %r8
pop %r15
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r8
push %rbp
push %rbx
push %rdx
push %rsi
// Faulty Load
... |
; PROLOGUE(mpn_nand_n)
; Version 1.0.4
;
; Copyright 2008 Jason Moxham
;
; Windows Conversion Copyright 2008 Brian Gladman
;
; This file is part of the MPIR Library.
; The MPIR Library is free software; you can redistribute it and/or modify
; it under the terms of the GNU Lesser General Public License as publish... |
/*******************************************************************************
* Copyright 2018 BGx Graphics Framework.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:/... |
; A220087: 2^n - 27.
; -26,-25,-23,-19,-11,5,37,101,229,485,997,2021,4069,8165,16357,32741,65509,131045,262117,524261,1048549,2097125,4194277,8388581,16777189,33554405,67108837,134217701,268435429,536870885,1073741797,2147483621,4294967269
mov $1,2
pow $1,$0
sub $1,27
mov $0,$1
|
; size_t w_vector_append(b_vector_t *v, void *item)
SECTION code_clib
SECTION code_adt_w_vector
PUBLIC w_vector_append_callee
EXTERN asm_w_vector_append
w_vector_append_callee:
pop hl
pop bc
ex (sp),hl
jp asm_w_vector_append
|
; A001738: Squares written in base 3.
; Submitted by Jamie Morken(w1)
; 0,1,11,100,121,221,1100,1211,2101,10000,10201,11111,12100,20021,21021,22100,100111,101201,110000,111101,112211,121100,122221,201121,210100,212011,221001,1000000,1002001,1011011,1020100,1022121,1101221,1111100,1120211,1200101,1210000,1212201,1222111... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.