text stringlengths 1 1.05M |
|---|
#include "Drawing.h"
HANDLE DrawingObject::HConsole = NULL;
unsigned DrawingObject::WIDTH = 1;
unsigned DrawingObject::HEIGHT = 1;
void DrawingObject::DrawObject(HANDLE& hConsole, const char * character, COORD position, DWORD dwBytesWritten)
{
WriteConsoleOutputCharacter(hConsole, character, std::strlen(character), ... |
db "WATER WEED@" ; species name
db "Its leaf grew too"
next "large for it to"
next "live on land. This"
page "is why it chose to"
next "live by floating"
next "on water.@"
|
; DV3 java HDD inititilization 1.00 @ W. Lenerz 2020
;
; based on
;
; DV3 Q40 IDE Initialisation V3.00 1992 Tony Tebby
section dv3
xdef hd_init
xref.l hd_vers
xref.s hd.rev
xref dv3_link
xref dv3_acdef
xref gu_fopen
xref gu_fclos
include 'dev8_dv3_keys'
include 'dev8_dv3_hd_keys'
include 'dev8_dv... |
; A171640: a(n) = 10*a(n-1)-a(n-2)-4 with a(1)=1 and a(2)=3.
; 1,3,25,243,2401,23763,235225,2328483,23049601,228167523,2258625625,22358088723,221322261601,2190864527283,21687323011225,214682365584963,2125136332838401,21036680962799043,208241673295152025,2061380051988721203,20405558846592060001,201994208413931878803,199... |
#include <new>
#include "SwImg.h"
#undef new
SwImg::SwImg()
{
m_pGDIPBMP = NULL;
}
SwImg::~SwImg()
{
if(m_pGDIPBMP)
::delete m_pGDIPBMP;
}
void SwImg::Clear()
{
if(m_pGDIPBMP)
{
::delete m_pGDIPBMP;
m_pGDIPBMP = NULL;
}
}
int SwImg::GetPicWidth()
{
return m_PicW;
}
int Sw... |
.text
target: li $v0, 2
j target
|
/* Copyright 2018, OpenSoft Inc.
* 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 a... |
.data
Stringa_1: .asciiz "Ti trovi nel centro di ricerca Black Mesa. Al momento c'è stato un disastro ed è in corso l'evacuazione. Alcune creature si stanno avvicinando, è il momento di fuggire! cosa fai? <opzioni> : \n (1) Prendo il piede di porco a terra \n (2) Apro la porta davanti a me \n \n Numero scelta: "
Str... |
/* A less simple result type
(C) 2017 Niall Douglas <http://www.nedproductions.biz/> (59 commits)
File Created: June 2017
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 in the accompanying file
Licen... |
[BITS 32]
GLOBAL start_app
start_app: ; void start_app(int eip, int cs, int esp, int ds, int *tss_esp0);
PUSHAD
MOV EAX, [ESP+36] ; EIP
MOV ECX, [ESP+40] ; CS
MOV EDX, [ESP+44] ; ESP
MOV EBX, [ESP+48] ; DS/SS
MOV EBP, [ESP+52] ; tss.esp0
MOV [EBP], ES... |
SECTION code_driver
SECTION code_driver_terminal_output
PUBLIC rc_01_output_siob_stdio_msg_ictl
EXTERN rc_01_output_sioa_stdio_msg_ictl
defc rc_01_output_siob_stdio_msg_ictl = rc_01_output_sioa_stdio_msg_ictl
; ioctl messages understood:
;
; defc IOCTL_OTERM_CRLF = $c012
; defc IOCTL_OTERM_COOK ... |
%macro addbyte 3
; first is memory location to output
; second is the memory location of the string
; third parameter is the base of the number
mov eax, [%1]
mov di, 0
%%loopagain:
mov edx, 0
div %3
xchg eax, edx
cmp al, 0Ah
js %%addvalue
add al, 7
%%addvalue:
add al,48
mov [%2], al
mov al,[%1]
a... |
; pasmo -I ../binary16 -d test_fsqrt.asm 24576.bin > test.asm ; grep "BREAKPOINT" test.asm
; randomize usr 57344
INCLUDE "finit.asm"
color_flow_warning EQU 1
carry_flow_warning EQU 1
DATA_ADR EQU $6000 ; 24576
TEXT_ADR EQU $E000 ; 57344
ORG ... |
; A020854: Decimal expansion of 1/sqrt(97).
; Submitted by Jon Maiga
; 1,0,1,5,3,4,6,1,6,5,1,3,3,6,1,9,0,4,3,4,7,8,9,9,0,8,6,7,5,1,7,2,8,0,8,7,4,4,0,1,6,6,3,5,3,4,7,8,7,9,1,3,8,3,2,1,3,6,4,0,7,6,8,3,4,8,8,2,9,2,8,4,3,6,8,1,2,0,3,9,8,2,4,8,3,8,3,5,1,3,2,3,8,3,0,3,3,5,8,3
mov $2,1
mov $3,$0
add $3,7
mov $4,$0
mov $0,2
a... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>prof(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str
Invokes the syscall prof.
See 'man 2 prof' for more information.
Arguments:
vararg(int): vararg
Returns:
long
</%docstring>
<%page a... |
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from libunity.djinni
#ifndef DJINNI_GENERATED_NJSIWALLETLISTENER_HPP
#define DJINNI_GENERATED_NJSIWALLETLISTENER_HPP
#include "balance_record.hpp"
#include "input_record.hpp"
#include "mutation_record.hpp"
#include "output_record.hpp"
#include "... |
macro ShiftBB delta, b, t
if delta = DELTA_N
shl b, 8
else if delta = DELTA_S
shr b, 8
else if delta = DELTA_E
mov t, not FileHBB
and b, t
shl b, 1
else if delta = DELTA_W
mov t, not FileABB
and b, t
s... |
//------------------------------------------------------------------------------
// RayleighControlStateConstraintDriver
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2020 United States Governm... |
;;
;; Copyright (c) 2018-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... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*=====================================================================
**
** Source: test3.c
**
** Purpose: Tests the PAL implementation of the _wfopen function.
** Test ... |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... |
#include "game.h"
#include "board.h"
game::game(const char* wName, int w, int h, Uint32 flags)
{
if (SDL_Init(SDL_INIT_EVERYTHING) == 0)
{
std::cout << "SDL init success\n";
window = SDL_CreateWindow(
wName, // Window name
SDL_WINDOWPOS_UNDEFINED, // Initial x... |
;
; Old School Computer Architecture - SD Card driver
; Taken from the OSCA Bootcode by Phil Ruston 2011
; Port by Stefano Bodrato, 2012
;
; set HL to dest address for data
; set B to number of bytes required
;
; $Id: sd_set_sector_addr_lba0.asm,v 1.4 2015/01/19 01:33:07 pauloscustodio Exp $
;
PUBLIC sd_set_sector_... |
SECTION rodata_user
PUBLIC _myeffects
defc _myeffects = EFFECT_TABLE
;SFX format is quite simple:
;
;defb byte1,byte2
;defb byte1,byte2
;...
;defb $ff
;Where byte 1 and bits 7, 6, 5 & 4 from byte2 are the sound frequency
;and bits 3, 2, 1 & 0 of byte2 is the amplitude.
;Effect finishes when &ff is found.
EFF... |
; A098704: Decimal form of the binary numbers 10, 100010, 1000100010, 10001000100010, 100010001000100010,...
; 2,34,546,8738,139810,2236962,35791394,572662306,9162596898,146601550370,2345624805922,37529996894754,600479950316066,9607679205057058,153722867280912930,2459565876494606882,39353054023913710114,629648864382619... |
/*
* Copyright (c) 2016, The OpenThread Authors.
* All rights reserved.
*
* 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 ... |
#$a0 debe ser el string
.IO.out_string:
li $v0, 4
syscall
jr $ra
#$a0 debe ser el string
.IO.out_int:
li $v0, 1
syscall
jr $ra
.IO.in_int:
li $v0, 5
syscall
jr $ra
.IO.in_string:
li $v0, 9
move $s0, $a0
li $a0, 1024
syscal... |
###############################################################################
# Copyright 2019 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... |
#include "Platform.inc"
radix decimal
LcdRam udata
global lcdContrast
global enableLcdCount
global lcdFlags
global lcdWorkingRegister
global lcdState
global lcdStateParameter0
global lcdStateParameter1
global lcdNextState
global flashPointerMsb
global flashPointerLsb
global numberOfCharactersRemaining
g... |
; A205794: Least positive integer j such that n divides C(k)-C(j) , where k, as in A205793, is the least number for which there is such a j, and C=A002808 (composite numbers).
; 1,1,2,1,1,1,3,1,2,1,1,1,3,1,2,1,1,1,2,1,1,1,1,1,3,1,2,1,1,1,1,1,2,1,1,1,3,1,2,1,1,1,2,1,1,1,1,1,2,1,1,1,1,1,3,1,2,1,1,1,1,1,2,1,1,1,3,1,2,1,1,... |
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR THE BIFROST*2 ENGINE
;
; See "bifrost2.h" for further details
; ----------------------------------------------------------------
; void BIFROST2_setTile(unsigned char px,unsigned char py,unsigned char tile)
SECTION code_c... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xf659, %r8
nop
nop
add $44379, %r10
mov $0x6162636465666768, %rdi
movq %rdi, %xmm1
movups %xmm1, (%r8)
nop
nop
nop
nop
nop
inc %r15
lea addresses_A_ht+0x1e08b, %rdx
nop
nop
xor... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x184ea, %rsi
lea addresses_A_ht+0x1d74a, %rdi
nop
nop
nop
nop
nop
sub $617, %rbp
mov $126, %rcx
rep movsl
nop
nop
nop
nop
nop
cmp %r15, %r15
lea addresses_A_ht+0x77a8, %r15
sub... |
CeladonDiner_Script:
call EnableAutoTextBoxDrawing
ret
CeladonDiner_TextPointers:
dw CeladonDinerText1
dw CeladonDinerText2
dw CeladonDinerText3
dw CeladonDinerText4
dw CeladonDinerText5
CeladonDinerText1:
text_far _CeladonDinerText1
text_end
CeladonDinerText2:
text_far _CeladonDinerText2
text_end
Celado... |
#include "plugins\ColorMap\ColorMapBuilder.h"
#include <sstream>
#include <vector>
// DPTK headers
#include "Algorithm.h"
#include "Geometry.h"
#include "Global.h"
#include "Image.h"
#include "BindingsOpenCV.h"
// Poco header needed for the macros below
#include <Poco/ClassLibrary.h>
// Declare that this object ha... |
; A233211: Number of n X 2 0..5 arrays with no element x(i,j) adjacent to value 5-x(i,j) horizontally or antidiagonally, top left element zero, and 1 appearing before 2 3 and 4, and 2 appearing before 3 in row major order.
; 2,23,452,10313,249062,6147803,152986472,3818284493,95399716682,2384476356383,59607259863692,149... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2008, 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 distributi... |
<%
from pwnlib.shellcraft.thumb.linux import syscall
%>
<%page args="n, groups"/>
<%docstring>
Invokes the syscall setgroups. See 'man 2 setgroups' for more information.
Arguments:
n(size_t): n
groups(gid_t): groups
</%docstring>
${syscall('SYS_setgroups', n, groups)}
|
; A037500: Base 7 digits are, in order, the first n terms of the periodic sequence with initial period 1,0,2.
; Submitted by Christian Krause
; 1,7,51,358,2506,17544,122809,859663,6017643,42123502,294864514,2064051600,14448361201,101138528407,707969698851,4955787891958,34690515243706,242833606705944,1699835246941609
m... |
.386P
if @Version gt 510
.model FLAT
else
_TEXT SEGMENT PARA USE32 PUBLIC 'CODE'
_TEXT ENDS
_DATA SEGMENT DWORD USE32 PUBLIC 'DATA'
_DATA ENDS
CONST SEGMENT DWORD USE32 PUBLIC 'CONST'
CONST ENDS
_BSS SEGMENT DWORD USE32 PUBLIC 'BSS'
_BSS ENDS
_TLS SEGMENT DWORD USE32 PUBLIC 'TLS'
_TLS ENDS
FLAT GROUP _DAT... |
;===============================================================================
;modulo.asm
;===============================================================================
;because this '%' is not defined in vbcc68k, must write it myself
;
;Had to pull out the C99 definition:
;
;https://stackoverflow.com/quest... |
#include "redis_slot.h"
#include "redis_db.h"
#include <ctime>
#include "server.h"
#include "util.h"
namespace Redis {
Database::Database(Engine::Storage *storage, const std::string &ns) {
storage_ = storage;
metadata_cf_handle_ = storage->GetCFHandle("metadata");
db_ = storage->GetDB();
namespace_ = ns;
}
r... |
OaksAideScript:
ld hl, OaksAideHiText
call PrintText
call YesNoChoice
ld a, [wCurrentMenuItem]
and a
jr nz, .choseNo
ld hl, wPokedexOwned
ld b, wPokedexOwnedEnd - wPokedexOwned
call CountSetBits
ld a, [wNumSetBits]
ldh [hOaksAideNumMonsOwned], a
ld b, a
ldh a, [hOaksAideRequirement]
cp b
jr z, .giveItem
... |
/*************************************************************************
*
* Copyright 2016 Realm Inc.
*
* 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/lice... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x162f9, %r15
and $23156, %r13
mov (%r15), %cx
nop
nop
nop
xor $33492, %r12
lea addresses_A_ht+0xe97, %rsi
lea addresses_WT_ht+0x18f57, %rdi
nop
xor $51104, %r8
mov $10, %rcx
r... |
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_math
PUBLIC l_mulu_de
; REPLICATION for Z80 of:
; Z180 MLT DE and Z80-ZXN MUL DE
; compute: de = d * e
IF __CLIB_OPT_IMATH <= 50
EXTERN l_small_mulu_de
defc l_mulu_de = l_small_mulu_de
ENDIF
IF __CLIB_OPT_IMATH > 50
EXTERN l_f... |
; A021435: Decimal expansion of 1/431.
; Submitted by Jamie Morken(m2)
; 0,0,2,3,2,0,1,8,5,6,1,4,8,4,9,1,8,7,9,3,5,0,3,4,8,0,2,7,8,4,2,2,2,7,3,7,8,1,9,0,2,5,5,2,2,0,4,1,7,6,3,3,4,1,0,6,7,2,8,5,3,8,2,8,3,0,6,2,6,4,5,0,1,1,6,0,0,9,2,8,0,7,4,2,4,5,9,3,9,6,7,5,1,7,4,0,1,3,9
seq $0,83811 ; Numbers n such that 2n+1 is the d... |
export G_BounceMissile
code
proc G_BounceMissile 48 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 4
ADDRFP4 4
INDIRP4
ASGNP4
ADDRLP4 16
ADDRGP4 level+36
INDIRI4
CVIF4 4
ADDRGP4 level+32
INDIRI4
ADDRGP4 level+36
INDIRI4
SUBI4
CVIF4 4
ADDRFP4 4
INDIRP4
CNSTI4 8
ADDP4
INDIRF4
MULF4
ADDF4
CVFI4 4
ASGNI4
ADDRFP4 0
INDIRP4
C... |
; A317319: Multiples of 19 and odd numbers interleaved.
; 0,1,19,3,38,5,57,7,76,9,95,11,114,13,133,15,152,17,171,19,190,21,209,23,228,25,247,27,266,29,285,31,304,33,323,35,342,37,361,39,380,41,399,43,418,45,437,47,456,49,475,51,494,53,513,55,532,57,551,59,570,61,589,63,608,65,627,67,646,69,665,71,684,73,703,75,722,77,7... |
TITLE CVLIBRAR - Copyright (c) SLR Systems 1994
INCLUDE MACROS
INCLUDE LIBRARY
INCLUDE IO_STRUC
PUBLIC CV_LIBRARIES
.DATA
EXTERNDEF CV_TEMP_RECORD:BYTE
EXTERNDEF MAX_LIBNUM:DWORD,CURNMOD_NUMBER:DWORD,CV_LIBRARY_TYPE:DWORD,BYTES_SO_FAR:DWORD
EXTERNDEF FIRST_CV_LIB_GINDEX:DWORD
EXTERNDEF LIBRAR... |
; A133125: A133080 * A000244.
; 1,4,9,36,81,324,729,2916,6561,26244,59049,236196,531441,2125764,4782969,19131876,43046721,172186884,387420489,1549681956,3486784401,13947137604,31381059609,125524238436,282429536481,1129718145924,2541865828329,10167463313316
add $0,5
mov $1,3
pow $1,$0
gcd $0,2
add $0,2
mul $0,$1
div $0... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>clock_settime64(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str
Invokes the syscall clock_settime64.
See 'man 2 clock_settime64' for more information.
Arguments:
vararg(int): vararg
Returns... |
; Z88 Small C+ Run time Library
; Moved functions over to proper libdefs
; To make startup code smaller and neater!
;
; 6/9/98 djm
SECTION code_clib
SECTION code_l_sccz80
PUBLIC l_neg
EXTERN l_neg_hl
defc l_neg = l_neg_hl
|
;************************************************************************
;* SIMD-optimized lossless video encoding functions
;* Copyright (c) 2000, 2001 Fabrice Bellard
;* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
;*
;* MMX optimization by Nick Kurshev <nickols_k@mail.ru>
;* Conversion to NASM for... |
; A193410: Expansion of (1-3*x)/(1-6*x+18*x^2).
; 1,3,0,-54,-324,-972,0,17496,104976,314928,0,-5668704,-34012224,-102036672,0,1836660096,11019960576,33059881728,0,-595077871104,-3570467226624,-10711401679872,0,192805230237696,1156831381426176,3470494144278528,0,-62468894597013504,-374813367582081024,-112444010274624307... |
page ,132
TITLE C library emulation, not relying on MS-DOS.
;*****************************************************************************;
; ;
; FILE NAME: fmemmove.asm ;
; ;
; DESCRIPTION: Copy a far block of memory, managing overlap ;
; ;
; ... |
ORG $1234
; by default listing is ON (full listing)
IF 1
; 1. active branch
ELSE
; 1. ~LISTED~
ENDIF
OPT push listact ; remember current state, switch listing to active-only
IF 1
; 2. active branch (only)
ELSE
!!!ERRO... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r15
push %r8
push %r9
push %rax
push %rdx
// Load
lea addresses_US+0x29b1, %rax
nop
nop
nop
nop
sub $63761, %rdx
movups (%rax), %xmm4
vpextrq $1, %xmm4, %r13
sub %r15, %r15
// Load
lea addresses_normal... |
;-------------------------------------------------------------------
; Assemble by pressing f12 (Automatically)
; nasm -f win64 Hello_win64.asm -o out/Hello_win64.obj
;
; Link by gcc (Manually)
; cd out & gcc Hello_win64.obj -o Hello_win64.exe & Hello_win64.exe
;---------------------------------------------------------... |
#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include <QApplication>
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(QWidget *parent) :
Q... |
class Solution {
public:
int cherryPickup(vector<vector<int>>& grid) {
int size = grid.size();
vector<vector<int>> v1(size, vector<int>(size, INT_MIN));
v1[0][0] = grid[0][0];
int i1;
int i2;
int cherry;
for (int i = 1; i <= 2 * (size - 1); ++i) {
... |
ORG 100H
JMP begin
ARRAY DB 3,6,9,2,8,4,5,7,1,3
begin:
MOV CX, 9
MOV BX, 0
next:
MOV AL, ARRAY[BX]
TEST AL, 1
JNE n_xch
PUSH AX
MOV AL, ARRAY[BX+1]
TEST AL, 1
JZ n_xch
MOV ARRAY[BX], AL
POP AX
MOV ARRAY[BX+1], AL
INC CX
DEC BX
JMP next
n_xch:
INC BX
LOOP next
END |
/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2019 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... |
// license:BSD-3-Clause
// copyright-holders:Andrew Gardner
#include "emu.h"
#include <QtWidgets/QAction>
#include <QtWidgets/QMenu>
#include <QtWidgets/QMenuBar>
#include <QtWidgets/QDockWidget>
#include <QtWidgets/QScrollBar>
#include <QtWidgets/QFileDialog>
#include <QtGui/QCloseEvent>
#include "mainwindow.h"
#inc... |
; $Id: VBoxVgaBiosAlternative386.asm $
;; @file
; Auto Generated source file. Do not edit.
;
;
; Source file: vgarom.asm
;
; ============================================================================================
;
; Copyright (C) 2001,2002 the LGPL VGABios developers Team
;
; This library is free softw... |
; Copyright 1999, 2000, 2002 Free Software Foundation, Inc.
;
; This file is part of the GNU MP Library.
;
; The GNU MP Library is free software; you can redistribute it and/or
; modify it under the terms of the GNU Lesser General Public License as
; published by the Free Software Foundation; either version 2.1... |
; MIT License
;
; Copyright (c) 2021 4B4DB4B3
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy, modify, mer... |
#include "main.h"
#include "hrd.h"
#include <getopt.h>
int main(int argc, char *argv[])
{
/* Static checks */
static_assert(NUM_WORKERS < (1 << WORKER_GID_BITS), "");
static_assert(sizeof(struct imm_payload) == 4, ""); /* RDMA immediate data */
static_assert(MAX_POSTLIST < HRD_RQ_DEPTH, ""); /* For static sizing o... |
/*
Copyright ©2013 The Regents of the University of California
(Regents). All Rights Reserved. Permission to use, copy, modify, and
distribute this software and its documentation for educational,
research, and not-for-profit purposes, without fee and without a
signed licensing agreement, is hereby granted, pr... |
LOWORD equ [0]
HIWORD equ [4]
;*******************************************************************************
;llrem - signed long remainder
;
;Entry:
; Arguments are passed on the stack:
; 1st pushed: divisor (QWORD)
; 2nd pushed: dividend (QWORD)
;
;Exit:
; EDX:EAX ... |
; #########################################################################
;
; trig.asm - Assembly file for CompEng205 Assignment 3
;
;
; #########################################################################
.586
.MODEL FLAT,STDCALL
.STACK 4096
option casemap :none ; case sensitive
inc... |
#include <iostream>
using namespace std;
int main()
{
int db = 10;
int x, y;
double szamok[db];
double akt;
bool ok = true;
cout << "Adjon meg " << db << " db számot!" << endl;
for (int k = 1; k <= db; k++)
{
cout << "Adja meg az " << k << ". számot!" << endl;
cin >> akt... |
; This is an example of the "Hello World" program.
; Uses 8080 assembler mnemonics.
ORG 100h ; cpm programs start address.
JMP START ; go to program start.
; Variable storage space
MsgStr: DB 13,10,'Hello world.',13,10,0
Stack1: DW 0 ; place to save old stack.
S... |
//==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//===========================... |
; A094684: Records in A094683.
; 0,1,5,11,18,27,36,46,58,70,82,96,110,125,140,156,172,189,207,225,243,262,281,301,322,343,364,385,407,430,453,476,500,524,548,573,598,623,649,675,702,729,756,783,811,839,868,896,925,955,985
mul $0,2
sub $0,1
mov $3,$0
pow $0,3
mod $3,2
lpb $0,1
add $0,$4
sub $0,1
add $1,17
add $... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===---------------------------------... |
; ===========================================================================
; ---------------------------------------------------------------------------
; Register usage throughout the AMPS codebase in most situations
; ---------------------------------------------------------------------------
; a0 - Dual PCM cue... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2021, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... |
.model small
.code
org 100h
JUSTIN:
call CHECK_MEMORY
jc GOTO_HOST_LOW
call JUMP_HIGH
call FIND_FILE
jc GOTO_HOST_HIGH
call INFECT_FILE
GOTO_HOST_HIGH:
mov di,100h
mov si, offset HOST
mov ax,ss
mov ds,ax
mov es,ax
push ax
push di
mov cx,sp
sub cx,offset HOST
rep movsb
retf
G... |
extern exit ; the C function, to be called
extern puts ; the C function, to be called
SECTION .data
hello: db 'Hello world!', 0
SECTION .text
GLOBAL _start
_start:
mov edi, hello
call puts ; Call C function
mov edi, 0
call exit ; Call C function
|
;++
;
; Copyright (c) Microsoft Corporation
;
; Module Name:
;
; blidt.asm
;
; Abstract:
;
; This module implements IDT functions for the boot loader.
;
; Environment:
;
; Boot loader.
;
;--
include bl.inc
.686p
.model flat
.code
assume ds:flat
assume es:flat
assume ss:flat
ass... |
; A130256: Minimal index k of an odd Fibonacci number A001519 such that A001519(k) = Fibonacci(2*k-1) >= n (the 'upper' odd Fibonacci Inverse).
; 0,0,2,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,... |
#include <iostream>
#include "oatpp-swagger/Types.hpp"
int main() {
oatpp::swagger::Binary binary;
return 0;
}
|
socket:
push byte 41 ;
pop rax ;
cdq ;
push byte 2 ;
pop rdi ;
push byte 1 ;
pop rsi ... |
; A188530: 2^(2n+1)-5*2^(n-1)-1.
; 2,21,107,471,1967,8031,32447,130431,523007,2094591,8383487,33544191,134197247,536829951,2147401727,8589770751,34359410687,137438298111,549754503167,2199020634111
mov $1,2
pow $1,$0
mov $0,3
sub $1,1
mul $1,2
mov $3,$1
mul $3,3
add $3,6
add $0,$3
mul $1,2
mov $2,$1
mov $4,1
mul $4,$1
... |
; A283650: Decimal representation of the x-axis, from the left edge to the origin, of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 705", based on the 5-celled von Neumann neighborhood.
; 1,0,7,13,28,61,124,253,508,1021,2044,4093,8188,16381,32764,65533,131068,262141,524284,1048573,... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 91
call lwaitly_b
xor a, a
ldff(40), a
ld hl, fea0
lbegin_fill_oam:
dec l
ld(hl), a
jrnz lbegin_fill_oam
ld d, 10
ld a, d
ld(hl), a
inc l
ld a, 08
ld(hl), a
inc l
inc l
inc l
ld a, d
... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/external_registry_loader_win.h"
#include <memory>
#include <utility>
#include "base/bind.h"
#include "base/files... |
ori $ra,$ra,0xf
mfhi $5
mfhi $3
sb $0,9($0)
divu $3,$ra
mthi $2
sb $2,3($0)
addiu $4,$6,4269
lb $0,0($0)
multu $6,$5
mflo $6
mult $5,$5
lui $1,33675
mthi $4
addiu $0,$2,-32441
mthi $5
div $1,$ra
mfhi $1
mult $4,$4
mfhi $4
lui $5,15601
mthi $5
sb $4,10($0)
lui $4,54564
sll $5,$1,11
div $5,$ra
lb $4,0($0)
mult $4,$5
sb $... |
; A112774: Semiprimes of the form 6n+4.
; 4,10,22,34,46,58,82,94,106,118,142,166,178,202,214,226,262,274,298,334,346,358,382,394,454,466,478,502,514,526,538,562,586,622,634,694,706,718,766,778,802,838,862,886,898,922,934,958,982,1006,1018,1042,1114,1126,1138,1174,1186,1198,1234,1282,1294,1306,1318,1354,1366,1402,1438,1... |
db 0 ; species ID placeholder
db 80, 120, 79, 70, 95, 79
; hp atk def spd sat sdf
db ELECTRIC, ELECTRIC ; type
db 45 ; catch rate
db 235 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/luxr... |
;------------------------------------------------------------------------------
; @file
; First code executed by processor after resetting.
;
; Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and condi... |
; A055461: Square decrescendo subsequences: triangle T(n,k) = (n-k)^2, n >= 1, 0 <= k < n.
; Submitted by Jamie Morken(s3.)
; 1,4,1,9,4,1,16,9,4,1,25,16,9,4,1,36,25,16,9,4,1,49,36,25,16,9,4,1,64,49,36,25,16,9,4,1,81,64,49,36,25,16,9,4,1,100,81,64,49,36,25,16,9,4,1,121,100,81,64,49,36,25,16,9,4,1,144,121,100,81,64,49,36... |
//===- BitstreamRemarkSerializer.cpp --------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
clc
adc {c1},x
|
org 0X7C00
bits 16
mov ax, 0
mov ds, ax
cli
main:
int 0x13
mov ah, 0x02
mov al, 1
mov cl, 2
mov ch, 0
mov dh, 0
mov bx, 0x7E00
int 0x13
mov di, 0x8000
call decrypt
mov si, 0x8000
call print
hlt
decrypt:
push ax
push bx
push di
mov bx, 0x7E00... |
; ---------------------------------------------------------------------------
; Subroutine translating object speed to update object position
; ---------------------------------------------------------------------------
; ||||||||||||||| S U B R O U T I N E |||||||||||||||||||||||||||||||||||||||
SpeedToPos:
move.... |
/****************************************************************************
** Meta object code from reading C++ file 'mainwindow.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.1)
**
** WARNING! All changes made in this file will be lost!
**********************************************************... |
CopycatsHouse2F_Object:
db $a ; border block
db 1 ; warps
warp 7, 1, 2, COPYCATS_HOUSE_1F
db 2 ; signs
sign 3, 5, 6 ; CopycatsHouse2FText6
sign 0, 1, 7 ; CopycatsHouse2FText7
db 5 ; objects
object SPRITE_BRUNETTE_GIRL, 4, 3, WALK, 0, 1 ; person
object SPRITE_BIRD, 4, 6, WALK, 2, 2 ; person
object SPRITE_SL... |
; A021373: Decimal expansion of 1/369.
; 0,0,2,7,1,0,0,2,7,1,0,0,2,7,1,0,0,2,7,1,0,0,2,7,1,0,0,2,7,1,0,0,2,7,1,0,0,2,7,1,0,0,2,7,1,0,0,2,7,1,0,0,2,7,1,0,0,2,7,1,0,0,2,7,1,0,0,2,7,1,0,0,2,7,1,0,0,2,7,1,0,0,2,7,1,0,0,2,7,1,0,0,2,7,1,0,0,2,7
lpb $0
add $0,2
mov $1,7
sub $1,$0
bin $0,$1
add $2,$0
gcd $0,$1
m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.