text stringlengths 1 1.05M |
|---|
; ------------------------------------------------------------------
; MichalOS Image Viewer
; ------------------------------------------------------------------
%INCLUDE "michalos.inc"
start:
cmp byte [0E0h], 0 ; Were we passed a filename?
je .no_param_passed
cmp byte [already_displayed], 1
je .exit
mov... |
; A070893: Let r, s, t be three permutations of the set {1,2,3,..,n}; a(n) = value of Sum_{i=1..n} r(i)*s(i)*t(i), with r={1,2,3,..,n}; s={n,n-1,..,1} and t={n,n-2,n-4,...,1,...,n-3,n-1}.
; 1,6,19,46,94,172,290,460,695,1010,1421,1946,2604,3416,4404,5592,7005,8670,10615,12870,15466,18436,21814,25636,29939,34762,40145,46... |
; A212769: p*q modulo (p+q) with p, q consecutive primes.
; 1,7,11,5,23,11,35,17,43,59,59,35,83,41,91,103,119,119,65,143,143,77,163,77,95,203,101,215,107,191,125,259,275,263,299,299,311,161,331,343,359,347,383,191,395,169,181,221,455,227,463,479,467,499,511,523,539,539,275,563,551,551,305,623,311,599,659,659,695,347,70... |
; A275163: a(n) = 13*2^(n+1) - 19.
; 7,33,85,189,397,813,1645,3309,6637,13293,26605,53229,106477,212973,425965,851949,1703917,3407853,6815725,13631469,27262957,54525933,109051885,218103789,436207597,872415213,1744830445,3489660909,6979321837,13958643693
mov $1,2
pow $1,$0
sub $1,1
mul $1,26
add $1,7
|
; A132209: a(0) = 0 and a(n) = 2*n^2 + 2*n - 1, for n>=1.
; 0,3,11,23,39,59,83,111,143,179,219,263,311,363,419,479,543,611,683,759,839,923,1011,1103,1199,1299,1403,1511,1623,1739,1859,1983,2111,2243,2379,2519,2663,2811,2963,3119,3279,3443,3611,3783,3959,4139,4323,4511,4703,4899,5099,5303,5511,5723,5939,6159,6383,6611,6... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
004D3C move.l D0, (A4)+
004D3E move.l D0, (A4)+
0844CE move.w D0, ($aa,A6)
0844D2 move.w D0, ($b0,A6)
0849DA addi.w #$1, ($aa,A6)
0849E0 cmpi.w #$2, ($aa,A6) [etc+AA]
0849EA move.w #$0, ($aa,A6... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld a, 30
ldff(00), a
ld a, 01
ldff(4d), a
stop, 00
ld a, ff
ldff(45), a
ld b, 91
call lwaitly_b
ld hl, fe00
ld d, 10
ld a, d
ld(hl++), a
ld a, 08
ld(hl++), a
inc l
inc l
ld a, d
ld(hl++), ... |
%define safe_copy_memory _ZN6kernel16safe_copy_memoryEPKvPvm
%define length_of_user_string _ZN6kernel21length_of_user_stringEPKv
%define copy_until_null_or_n_from_user _ZN6kernel30copy_until_null_or_n_from_userEPKvPvm
; Safe function ABI:
; During a safe operation E(R)BX contains the address to go to in case of a faul... |
.ORG $300
INBUF = $200 ;GETLN input buffer.
WAIT = $FCA8 ;Monitor wait routine.
BELL = $FF3A ;Monitor bell routine.
EXTRNCMD = $BE06 ;External cmd JMP vector.
XTRNADDR = $BE50 ;Ext cmd implementation addr.
XLEN = $BE52 ;length of command string-1.
XCNUM ... |
/* Copyright 2003-2015 Joaquin M Lopez Munoz.
* 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)
*
* See http://www.boost.org/libs/multi_index for library home page.
*
* The internal implementation of red-black ... |
SECTION "GBS", ROM0[0]
INCBIN "bin/tmp.bin", 0, $70
INCBIN "bin/tmp.bin", $470 |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Video Driver
FILE: simp4bitAdmin.asm
AUTHOR: Jim DeFrisco
ROUTINES:
Name Description
---- -----------
VidScreenOff turn off video
VidS... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2012, John Haddon. All rights reserved.
// Copyright (c) 2013-2015, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted pro... |
<%
from pwnlib.shellcraft.arm.linux import syscall
%>
<%page args="pid, stat_loc, options"/>
<%docstring>
Invokes the syscall waitpid. See 'man 2 waitpid' for more information.
Arguments:
pid(pid_t): pid
stat_loc(int): stat_loc
options(int): options
</%docstring>
${syscall('SYS_waitpid', pid, st... |
dw $0040
track_17_08:
db $F7, $77, $86, $3C, $7B, $D8, $E0, $60, $3B, $5D
db $D8, $E9, $EF, $63, $81, $80, $0E, $97, $76, $38
db $FB, $D8, $E0, $60, $39, $5D, $D8, $E1, $EF, $60
db $00, $E3, $77, $63, $87, $BD, $80, $35, $DD, $8D
db $EF, $60, $00 |
// Commodore 64 PRG executable file
.file [name="bresenhamarr.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
.segment Code
main: {
.const ... |
#pragma once
#include <Std/Span.hpp>
#include <Std/Singleton.hpp>
#include <Kernel/FileSystem/VirtualFileSystem.hpp>
namespace Kernel {
class ConsoleFileHandle final : public VirtualFileHandle
{
public:
KernelResult<usize> read(Bytes bytes) override;
KernelResult<usize> write(ReadonlyByte... |
; A286727: Positions of 0 in A286063; complement of A286728.
; 1,2,5,6,8,9,10,11,14,15,16,17,19,20,23,24,26,27,28,29,31,32,35,36,37,38,41,42,44,45,46,47,50,51,52,53,55,56,59,60,61,62,65,66,68,69,70,71,73,74,77,78,80,81,82,83,86,87,88,89,91,92,95,96,98,99,100,101,103,104,107,108,109,110,113,114,116,117,118,119,121,122,1... |
#ifndef PARSER_PREBUILT_MATH_FUNCTION_EXECPTIONS_HPP
#define PARSER_PREBUILT_MATH_FUNCTION_EXECPTIONS_HPP
#include <stdexcept>
namespace ratl::math_function
{
class not_simplifiable
{
};
}// namespace ratl::math_function
#endif// PARSER_PREBUILT_MATH_FUNCTION_EXECPTIONS_HPP
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: uiType.asm
AUTHOR: Chris Boyke
METHODS:
Name Description
---- -----------
FUNCTIONS:
Scope Name Description
----- ---- ----------... |
#include "Font.hpp" |
// Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/json/
#ifndef TAO_JSON_INTERNAL_ENDIAN_WIN_HPP
#define TAO_JSON_INTERNAL_ENDIAN_WIN_HPP
#include <cstdint>
#include <cstring>
#include <stdlib.h> // TODO: Or is intrin.h the 'more correct... |
#include "CameraController.h"
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/quaternion.hpp>
void CameraController::updateCamera(Camera& camera)
{
const float speed = m_cam_speed; //Delta time here?
if (InputModule::isKeyPressed(GLFW_KEY_R)) //reset camera
{
camera.setPosition(glm::vec3{ 0.0f, 0.... |
PUBLIC GetCPUID
.CODE
GetCPUID PROC NEAR
mov r8, rdx ; Save rdx in a register that isn't used by the function.
mov r9, rbx ; Save rbx (it's to be preserved by the called function if modified, and CPUID instruction sets it).
mov eax, ecx ; Set up for reading the CPUID... |
; void ba_priority_queue_clear(ba_priority_queue_t *q)
SECTION code_clib
SECTION code_adt_ba_priority_queue
PUBLIC ba_priority_queue_clear
EXTERN asm_ba_priority_queue_clear
defc ba_priority_queue_clear = asm_ba_priority_queue_clear
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _ba_priority_queue_clear
defc _ba_p... |
; A194726: Number of 6-ary words either empty or beginning with the first character of the alphabet, that can be built by inserting n doublets into the initially empty word.
; Submitted by Jon Maiga
; 1,1,11,146,2131,32966,530526,8786436,148733571,2561439806,44731364266,790211926076,14095578557486,253519929631996,45924... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: mainDelete.asm
AUTHOR: John Wedgwood, Nov 13, 1991
METHODS:
Name Description
---- -----------
REVISION HISTORY:
Name Date Des... |
; This file is generated from a similarly-named Perl script in the BoringSSL
; source tree. Do not edit by hand.
default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
section .text code align=64
EXTERN GFp_ia32cap_P
global GFp_bn_mul_mont_gather5
ALIGN 64
GFp_bn_mul_mont_gather5:
mov QWORD[8+rsp],rdi ;WIN64... |
; A083884: a(n) = (3^(2*n) + 1) / 2.
; 1,5,41,365,3281,29525,265721,2391485,21523361,193710245,1743392201,15690529805,141214768241,1270932914165,11438396227481,102945566047325,926510094425921,8338590849833285,75047317648499561,675425858836496045,6078832729528464401,54709494565756179605,492385451091805616441,44314690598... |
; A243514: Number of length n+2 0..5 arrays with no three elements in a row with pattern aba or abb (with a!=b) and new values 0..5 introduced in 0..5 order.
; 3,5,10,25,76,263,978,3773,14824,58771,234046,934121,3732372,14921279,59668714,238642069,954502720,3817879787,15271256982,61084503617,244336965868,977345766295,3... |
; Neurotic Mutation Engine v1.00 for Neuropath
; by MnemoniX 1994
engine proc near
call randomize
get_reg_1:
mov ax,7 ; counter register
call _random
inc ax
cmp al,4
je ... |
; A214630: a(n) is the reduced numerator of 1/4 - 1/A109043(n)^2 = (1 - 1/A026741(n)^2)/4.
; -1,0,0,2,3,6,2,12,15,20,6,30,35,42,12,56,63,72,20,90,99,110,30,132,143,156,42,182,195,210,56,240,255,272,72,306,323,342,90,380,399,420,110,462,483,506,132,552,575,600,156,650,675,702,182,756,783,812,210,870,899,930,240,992,1023... |
// Expensive Calculator
// Demonstrates built-in arithmetic operators
#include <iostream>
using namespace std;
int main()
{
cout << "7 + 3 = " << 7 + 3 << endl;
cout << "7 - 3 = " << 7 - 2 << endl;
cout << "7 * 3 = " << 7 * 3 << endl;
cout << "7 / 3 = " << 7 / 3 << endl;
cout << "7.0 / 3.0 = ... |
# add test cases to data section
# Test your code with different Network layouts
# Don't assume that we will use the same layout in all our tests
.data
Name1: .asciiz "Cacophonix"
Name2: .asciiz "Getafix"
Name_prop: .asciiz "NAME"
Network:
.word 5 #total_nodes (bytes 0 - 3)
.word 10 #total_edges (bytes 4- 7)
... |
// Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
;**************************************************************************
;*
;* FILE sys.asm
;* Copyright (c) 2001, 2003 Daniel Kahlin <daniel@kahlin.net>
;* Written by Daniel Kahlin <daniel@kahlin.net>
;* $Id: sys.asm,v 1.13 2003/08/09 12:04:01 tlr Exp $
;*
;* DESCRIPTION
;* This is the sysline
;*
;******
RELYEA... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xaff6, %r8
nop
nop
nop
nop
nop
add $5599, %r15
mov $0x6162636465666768, %rsi
movq %rsi, %xmm2
movups %xmm2, (%r8)
nop
nop
nop
add %r12, %r12
lea addresses_A_ht+0x1ff6, %rsi
le... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
FLDZ
;TEST_BEGIN_RECORDING
FINCSTP
;TEST_END_RECORDING
|
// Copyright (c) 2017 The STRAKS developers
// Copyright (c) 2017-2018 The Methuselah Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "wallet/test/wallet_test_fixture.h"
#include "rpc/server.h"
#include "wal... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.0.3 #11868 (Linux)
;--------------------------------------------------------
; Processed by Z88DK
;--------------------------------------------------------
EXTERN __divschar
EXTERN __divsc... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x16767, %rsi
lea addresses_D_ht+0xf4f2, %rdi
nop
nop
nop
nop
add $65475, %r10
mov $15, %rcx
rep movsl
nop
nop
add $55307, %rcx
lea addresses_D_ht+0x4972, %rsi
lea addresses_WT_ht+0x3f2a, %rdi
no... |
; A103128: a(n) = floor(sqrt(2n-1)).
; 1,1,2,2,3,3,3,3,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,1... |
; A233099: Number of 2 X n 0..3 arrays with no element x(i,j) adjacent to value 3-x(i,j) horizontally, diagonally or antidiagonally, top left element zero, and 1 appearing before 2 in row major order.
; 3,11,65,386,2315,13886,83315,499886,2999315,17995886,107975315,647851886,3887111315,23322667886,139936007315,83961604... |
; size_t wa_stack_size(wa_stack_t *s)
SECTION code_clib
SECTION code_adt_wa_stack
PUBLIC wa_stack_size
EXTERN asm_wa_stack_size
defc wa_stack_size = asm_wa_stack_size
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _wa_stack_size
defc _wa_stack_size = wa_stack_size
ENDIF
|
#include <lix/parser/parse.hpp>
#include <algorithm>
#include <fstream>
#include <iostream>
namespace {
int parse_istream(std::istream& in) {
std::string code;
using iter = std::istreambuf_iterator<char>;
std::copy(iter(in), iter{}, std::back_inserter(code));
try {
auto node = lix::ast::parse(... |
dc.w word_1613E6-Map_Madmole
dc.w word_161406-Map_Madmole
dc.w word_161426-Map_Madmole
dc.w word_161446-Map_Madmole
dc.w word_16145A-Map_Madmole
dc.w word_161468-Map_Madmole
dc.w word_161476-Map_Madmole
dc.w word_16147E-Map_Madmole
dc.w word_16148C-Map_Madmole
dc.w word_161494-Map_Madmole
dc.w wor... |
SECTION rodata_font
SECTION rodata_font_fzx
PUBLIC _ff_dkud3_AzbukaBold
_ff_dkud3_AzbukaBold:
BINARY "font/fzx/fonts/dkud3/Azbuka/azbukabold.fzx"
|
; A207449: Number of n X 4 0..1 arrays avoiding 0 0 0 and 0 0 1 horizontally and 0 0 1 and 1 0 1 vertically.
; 10,100,330,760,1450,2460,3850,5680,8010,10900,14410,18600,23530,29260,35850,43360,51850,61380,72010,83800,96810,111100,126730,143760,162250,182260,203850,227080,252010,278700,307210,337600,369930,404260,440650... |
%include 'felipos.inc'
main:
mov ax, 1
call os_serial_port_enable
mov si, help_msg
call os_print_string
.loop:
call os_wait_for_key
cmp al, 27
je .exit
mov si, output
mov [si], al
call os_print_string
call os_send_via_serial
test ah, 10000000b
jnz .error
jmp... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2013-2018 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
* ndn-cxx library is free software: you can redistribute it and/or modify it under the
... |
title t1_ywt
DATA SEGMENT
ARRAY DW 23, 36, 2, 100, 32000, 54, 0;
ZERO DW ?
DATA ENDS
CODE SEGMENT
START:
;; set ZERO in the (1) way
mov ax, DATA
mov ds, ax
lea bx, ARRAY
mov WORD PTR [bx+2*7], 0
;; reset ZERO to 0ffffh
mov [bx+2*7], 0ffffh;
;; set ZE... |
;代码清单6-1
;文件名:c06_mbr.asm
;文件说明:硬盘引导扇区代码
;创建日期:2011-4-12 22:12
jmp near start
mytext db 'L',0x07,'a',0x07,'b',0x07,'e',0x07,'l',0x07,' ',0x07,'o',0x07,\
'f',0x07,'f',0x07,'s',0x07,'e',0x07,'t',0x07,':',0x07
number db 0,0,0,0,0
start:
... |
#include "common.h"
namespace bpftrace {
namespace test {
namespace codegen {
TEST(codegen, call_exit)
{
test("kprobe:f { exit() }",
NAME);
}
} // namespace codegen
} // namespace test
} // namespace bpftrace
|
frame 1, 06
frame 2, 12
frame 1, 08
frame 2, 16
setrepeat 3
frame 3, 06
frame 0, 06
dorepeat 5
endanim
|
extern open_file_arg
global _start
IO_BUF_SIZE EQU 2048
STDIN_FD EQU 0
STDOUT_FD EQU 1
section .data
file_not_found_msg:
db 'File not found', 10, 15
failed_to_read_msg:
db 'Failed to read', 10, 15
io_buf: times IO_BUF_SIZE db 0
newli... |
; A boot sector that starts in 16 bit and switch to 32 bit Protected Mode
[org 0x7c00] ; tell the assembler where this code
; should be loaded to
mov bp, 0x9000
mov sp, bp
mov bx, MSG_REAL_MODE
call print_string
call switch_to_pm ; never return from here
jmp $
%include 'print_string.asm'
%include 'print_he... |
;++
;
; WOW v1.0
;
; Copyright (c) 1991, Microsoft Corporation
;
; WINSTR.ASM
; Win16 string services
;
; History:
;
; Created 18-Jun-1991 by Jeff Parsons (jeffpar)
; Copied from WIN31 and edited (as little as possible) for WOW16
;--
;*****************************************************... |
#ifndef OpticalElements_Filter_hpp
#define OpticalElements_Filter_hpp
/** @file Filter.hpp
* @brief
* @author C.D. Clark III
* @date 07/26/16
*/
#include "BaseOpticalElement.hpp"
class Filter : public BaseOpticalElement<units::t::centimeter>
{
public:
// the required interface
double getPowerLoss() const;
... |
header_VmSetSp
vm_set_sp PROC
push ebp
mov ebp, esp
; read the argument
push [ebp+arg0]
call_vm_stack_pop_enc
; set the Stack Pointer
mov ebx, [ebp+arg0]
mov [ebx+vm_sp], eax
mov esp, ebp
pop ebp
ret
vm_set_sp ENDP
header_marker |
; A159981: Catalan numbers read modulo 4.
; 1,1,2,1,2,2,0,1,2,2,0,2,0,0,0,1,2,2,0,2,0,0,0,2,0,0,0,0,0,0,0,1,2,2,0,2,0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,2,0,2,0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0
lpb $0
mul $0,2
sub $0,2
dif $0,4
lpe
mov $2,2
lpb $2
lpb $0
di... |
/*
* Seabird Galactic Filesystem by 2021 seabird.
*/
#include <vector>
#include <map>
#include <string>
#include <cstdio>
#include <bits/stl_pair.h>
#include "accounts.hpp"
using namespace std;
#ifndef _SG_FILESYSTEM
#define _SG_FILESYSTEM
#define _SG_FSVER 202101L
#define P_READ 4
#define P_WRIT... |
###############################################################################
# Copyright 2018 Intel Corporation
# All Rights Reserved.
#
# If this software was obtained under the Intel Simplified Software License,
# the following terms apply:
#
# The source code, information and material ("Material") containe... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x19a7b, %rsi
lea addresses_normal_ht+0xa2db, %rdi
nop
nop
nop
and %r11, %r11
mov $54, %rcx
rep movsq
xor %rax, %rax
lea addresses_D_ht+0x12e5b, %rdx
nop
sub %r13, %r13
vmovups... |
; Copyright 2015-2021 Matt "MateoConLechuga" Waltz
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
;
; 1. Redistributions of source code must retain the above copyright notice,
; this list of conditions and the follo... |
#include "taichi/backends/opengl/opengl_program.h"
#include "taichi/backends/opengl/aot_module_builder_impl.h"
using namespace taichi::lang::opengl;
namespace taichi {
namespace lang {
FunctionType OpenglProgramImpl::compile(Kernel *kernel,
OffloadedStmt *offloaded) {
#ifdef TI... |
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... |
//-------------------------------------------------------------
// ___ __ ___ _ _ _
// KRATOS| _ \/ _|___ _ __ | __| |_ _(_)__| |
// | _/ _/ -_) ' \| _|| | || | / _` |
// |_| |_| \___|_|_|_|_| |_|\_,_|_\__,_|DYNAMICS
//
// BSD License: PfemFluidDynamicsApplication/licen... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. Th... |
// Copyright Henrik Steffen Gaßmann 2020.
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <cstddef>
#include <cstring>
#include <concepts>
#include <memory>
#include <new>
... |
# =========================================================================
#
# NAME:
# DATE: June 13, 2001
# ASSIGNMENT: Homework #8, CSC-201-01
# OBJECTIVE: Read any amount of numbers from the keyboard. Find the total
# sum and product for the numbers. Also print the amount of
# ... |
; A130330: Triangle read by rows, the matrix product A130321 * A000012, both taken as infinite lower triangular matrices.
; 1,3,1,7,3,1,15,7,3,1,31,15,7,3,1,63,31,15,7,3,1,127,63,31,15,7,3,1,255,127,63,31,15,7,3,1,511,255,127,63,31,15,7,3,1,1023,511,255,127,63,31,15,7,3,1,2047,1023,511,255,127,63,31,15,7,3,1,4095,2047,... |
;******************************************************************************
;* MMX/SSE2-optimized functions for the VP6 decoder
;* Copyright (C) 2009 Sebastien Lucas <sebastien.lucas@gmail.com>
;* Copyright (C) 2009 Zuxy Meng <zuxy.meng@gmail.com>
;*
;* This file is part of Libav.
;*
;* Libav is free software; yo... |
;/**
; * @file
; *
; * Agesa library 64bit
; *
; * Contains AMD AGESA Library
; *
; * @xrefitem bom "File Content Label" "Release Content"
; * @e project: AGESA
; * @e sub-project: Lib
; * @e \$Revision: 17071 $ @e \$Date: 2009-07-30 10:13:11 -0700 (Thu, 30 Jul 2009) $
; */
;************************************... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1b694, %rcx
nop
nop
sub $25409, %r14
movw $0x6162, (%rcx)
nop
nop
nop
nop
cmp $27902, %r14
lea addresses_UC_ht+0x3df4, %rdi
nop
dec %r12
mov $0x6162636465666768, %rax
mov... |
; A214493: Numbers of the form ((6k+5)^2+9)/2 or 2(3k+4)^2-9.
; 17,23,65,89,149,191,269,329,425,503,617,713,845,959,1109,1241,1409,1559,1745,1913,2117,2303,2525,2729,2969,3191,3449,3689,3965,4223,4517,4793,5105,5399,5729,6041,6389,6719,7085,7433,7817,8183,8585,8969,9389,9791,10229,10649,11105,11543,12017,12473,12965,13... |
; A346145: Primes of the form k^2 + 25.
; Submitted by Christian Krause
; 29,41,61,89,281,349,509,601,701,809,1049,1181,1321,1789,2141,2729,3389,4649,5209,5501,5801,8861,9241,9629,10429,11261,11689,12569,15401,15901,17449,17981,18521,19069,21341,21929,23741,24989,26921,27581,33149,39229,40829,41641,42461,45821,46681,52... |
;
;==================================================================================================
; DSKYNG (DISPLAY AND KEYBOARD NEXT GENERATION) ROUTINES
;==================================================================================================
;
; A DSKYNG CAN SHARE A PPI BUS WITH EITHER A PPIDE OR ... |
; A292228: Denominators of partial sums of the series 1 + 2*Sum_{k >= 1} 1/(4*k^4 + 1).
; Submitted by Christian Krause
; 1,5,65,325,13325,812825,13818025,1561436825,45281667925,8195981894425,482116582025,434387040404525,135963143646616325,9925309486202991725,4178555293691459516225,154606545866584002100325,168521134994... |
; sprites.asm
AnimateDemo proc
ld a, (FRAMES) ; Read the LSB of the ROM frame counter (0.255)
and %00000111 ; Take the lowest 3 bits (effectively FRAMES modulus 8),
ret nz ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x17d4b, %rsi
lea addresses_WT_ht+0x1e4b, %rdi
sub $23569, %rdx
mov $32, %rcx
rep movsl
nop
nop
nop
nop
cmp %r12, %r12
lea addresses_WC_ht+0xd14b, %rsi
lea addresses_WC_ht+0x13f... |
[section .data]
[section .text]
global out_byte
global in_byte
out_byte:
mov edx ,[esp+4]
mov al ,[esp+8]
out dx ,al
nop
nop
ret
in_byte:
mov edx ,[esp+4]
xor eax ,eax
in al ,dx
nop
nop
ret
|
/*
* Sumo Maze Bot Demo Code
*
* org: 10/16/2014
* rev: 01/21/2015
* auth: Nels "Chip" Pearson
*
* Target: Sumo Maze Bot Board, 20MHz, ATmega164P, Sumo Bot base
*
* Dependentcies
* floor_det_service.asm
* range_service.asm
* sys_timers.asm
*
* Resources
* SRAM
*
* IO
*
*/
.equ DEMO_DELAY_COUNT = 1 ... |
; Title: Win32 Socket Initialization
; Platforms: Windows NT 4.0, Windows 2000, Windows XP, Windows 2003
; Author: hdm[at]metasploit.com
[BITS 32]
%include "win32_stage_api.asm"
sub esp, 0x100
push eax ; [ebp + 12] = VirtualAlloc
push edi ; [ebp + 8] = LoadLibraryA
push esi ; [ebp + 4] = LGe... |
/**
* @file dx.cpp
*
* Implementation of functions setting up the graphics pipeline.
*/
#include "dx.h"
#include <SDL.h>
#include "engine.h"
#include "options.h"
#include "storm/storm.h"
#include "utils/display.h"
#include "utils/log.hpp"
#include "utils/sdl_mutex.h"
#ifdef __3DS__
#include <3ds... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x3e1b, %rsi
lea addresses_D_ht+0xe26d, %rdi
nop
nop
nop
nop
nop
xor $59720, %r9
mov $85, %rcx
rep movsb
nop
nop
nop
nop
nop
sub %rbp, %rbp
lea addresses_D_ht+0x13ddb, %r11
nop
nop
nop
n... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x11861, %rdi
nop
nop
nop
nop
nop
add %rbx, %rbx
mov (%rdi), %r12d
nop
nop
nop
nop
sub $34068, %r14
lea addresses_WC_ht+0x11d01, %r8
nop
sub $16573, %rdi
mov (%r8... |
; A227291: Characteristic function of squarefree numbers squared (A062503).
; 1,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,... |
; A023594: a(n) = sum of distinct prime divisors of 2*prime(n)+1.
; 5,7,11,8,23,3,12,16,47,59,10,8,83,32,24,107,24,44,8,24,10,56,167,179,21,36,26,48,76,227,25,263,16,34,36,104,15,112,72,347,359,14,383,46,84,29,50,152,25,20,467,479,33,503,108,48,18,184,45,563,10
seq $0,40 ; The prime numbers.
mul $0,2
seq $0,8472 ; Sum... |
sll a0, a1, a2
sll x10, a1, a2
sub sp, sp, t0
mul a0, s0, a1
sltu a0, zero, a0 |
; A015203: Sum of Gaussian binomial coefficients for q=15.
; Submitted by Stefano Spezia
; 1,2,18,484,61700,24625416,46902626632,280592659752848,8014314610618754064,719144325473017534005280,308098615000966585021543006496,414695472396278556489315958364507712,2664978629760569684020787743089224873508928,538052242131967550... |
COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Monochrome EGA screen driver
FILE: megaManager.asm
AUTHOR: Jeremy Dashe
REVISION HISTORY:
Name Date Description
---- ---- -----------
Jim... |
; A081005: a(n) = Fibonacci(4n+3) + 1, or Fibonacci(2n+1)*Lucas(2n+2).
; 3,14,90,611,4182,28658,196419,1346270,9227466,63245987,433494438,2971215074,20365011075,139583862446,956722026042,6557470319843,44945570212854,308061521170130,2111485077978051,14472334024676222,99194853094755498,679891637638612259,4660046610375530... |
#include "aspch.h"
#include "OpenGLContext.h"
#include "GLFW/glfw3.h"
#include "glad/glad.h"
namespace Asaurus
{
OpenGLContext::OpenGLContext(GLFWwindow* windowHandle)
:m_WindowHandle(windowHandle)
{
AS_CORE_ASSERT(m_WindowHandle, "Window Handle is null!");
}
void OpenGLContext::Init()
{
AS_PROFILE_FUNCTIO... |
INCLUDE "hardware.inc"
SECTION "Helper Functions",HOME
;--------------------------------------------------------------------------
;- CPU_fast() -
;- CPU_slow() -
;-------------------------------... |
; A124845: Triangle read by rows: T(n,k) = (3 - (-1)^k)*binomial(n,k)/2 (0 <= k <= n).
; Submitted by Jon Maiga
; 1,1,2,1,4,1,1,6,3,2,1,8,6,8,1,1,10,10,20,5,2,1,12,15,40,15,12,1,1,14,21,70,35,42,7,2,1,16,28,112,70,112,28,16,1,1,18,36,168,126,252,84,72,9,2,1,20,45,240,210,504,210,240,45,20,1,1,22,55,330,330,924,462,660,... |
//
// Created by Orange on 6/25/17.
//
#include "Timer.h"
using namespace xnet;
std::atomic<int64_t> Timer::numCreated_;
void Timer::restart(const TimePoint& now)
{
if (repeat_) {
expiration_ = addTime(now, interval_);
}
else {
expiration_ = TimePoint::invalid();
}
}
|
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018-2020 The Kabberry developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit... |
; Codigo ASM para TPMV
; Tecnología de la Programación - FDI (UCM)
; Marco Antonio Gómez Martín
;
; Programa con dos "funciones", una que escribe un entero
; que recibe como parámetro y otra que hace un cout << endl.
; La primera se basa en otra función auxiliar que implementa
; la funcionalidad de forma recursiva.
;
;... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Kernel/Graphics
FILE: graphicsPatternHatch.asm
AUTHOR: Don Reeves, Mar 19, 1992
REVISION HISTORY:
Name Date Description
---- ---- -----------... |
;
; Copyright (C) 2021 by Intel Corporation
;
; Permission to use, copy, modify, and/or distribute this software for any
; purpose with or without fee is hereby granted.
;
; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.