text stringlengths 1 1.05M |
|---|
[bits 16]
switch_to_pm:
cli ;switch off interupts
lgdt [gdt_descriptor] ;load GDT
mov eax, cr0 ;set the first bit of CR0
or eax, 0x1
mov cr0, eax
jmp CODE_SEGMENT:init_pm ;make a far jump,forces CPU to flush cache and pre-fetched and real-mode instructions
[bits 32]
init_pm:
mov ax, ... |
#include <eros/SafetyNode/SafetyNode.h>
using namespace eros;
using namespace eros_nodes;
bool kill_node = false;
SafetyNode::SafetyNode()
: system_command_action_server(
*n.get(),
read_robotnamespace() + "SystemCommandAction",
boost::bind(&SafetyNode::system_commandAction_Callback, t... |
// dear imgui: Renderer for DirectX11
// This needs to be used along with a Platform Binding (e.g. Win32)
// Implemented features:
// [X] Renderer: User texture binding. Use 'ID3D11ShaderResourceView*' as ImTextureID. Read the FAQ about ImTextureID!
// [X] Renderer: Multi-viewport support. Enable with 'io.ConfigFlag... |
; ba_priority_queue_t *
; ba_priority_queue_init(void *p, void *data, size_t capacity, int (*compar)(const void *, const void *))
SECTION code_adt_ba_priority_queue
PUBLIC ba_priority_queue_init
EXTERN asm_ba_priority_queue_init
ba_priority_queue_init:
pop af
pop ix
pop bc
pop de
pop hl
push... |
; int vscanf_unlocked_callee(const char *format, void *arg)
SECTION code_clib
SECTION code_stdio
PUBLIC _vscanf_unlocked_callee
EXTERN asm_vscanf_unlocked
_vscanf_unlocked_callee:
pop af
pop de
pop bc
push af
jp asm_vscanf_unlocked
|
/***
* Copyright 2019 Alexander Pishchulev (https://github.com/BlasterAlex)
*
* 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 ... |
; A325689: Number of length-3 compositions of n such that no part is the sum of the other two.
; 0,0,0,1,0,6,4,15,12,28,24,45,40,66,60,91,84,120,112,153,144,190,180,231,220,276,264,325,312,378,364,435,420,496,480,561,544,630,612,703,684,780,760,861,840,946,924,1035,1012,1128,1104,1225,1200,1326,1300,1431
mov $1,$0
mov... |
#pragma once
#define BOOST_SPIRIT_DEBUG
#include <boost/config/warning_disable.hpp>
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/qi_repeat.hpp>
#include <boost/spirit/include/phoenix_core.hpp>
#include <boost/spirit/include/phoenix_operator.hpp>
#include <boost/spirit/include/phoenix_fusion.... |
; A168180: a(n) = n^3*(n^5 + 1)/2.
; 0,1,132,3294,32800,195375,839916,2882572,8388864,21523725,50000500,107180106,214991712,407866459,737895900,1281447000,2147485696,3487881177,5509983204,8491784950,12800004000,18911434311,27437942092,39155498724,55037664000,76293953125,104413541076,141214778082,188901010144,2501232186... |
//===--- VerifyDiagnosticsClient.cpp - Verifying Diagnostic Client --------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageIdealHighPass.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This sof... |
;;
;; Copyright (c) 2012-2018, 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... |
; A098601: Expansion of (1+2x)/((1+x)(1-x^2-x^3)).
; Submitted by Christian Krause
; 1,1,0,3,0,4,2,5,5,8,9,14,16,24,29,41,52,71,92,124,162,217,285,380,501,666,880,1168,1545,2049,2712,3595,4760,6308,8354,11069,14661,19424,25729,34086,45152,59816,79237,104969,139052,184207,244020,323260
add $0,2
mov $2,1
lpb $0
sub $0... |
;
; BASIC-DOS Memory Services
;
; @author Jeff Parsons <Jeff@pcjs.org>
; @copyright (c) 2020-2021 Jeff Parsons
; @license MIT <https://basicdos.com/LICENSE.txt>
;
; This file is part of PCjs, a computer emulation software project at pcjs.org
;
include macros.inc
include dos.inc
include dosapi.inc
DOS s... |
// File: 2-23.cpp
// Author: csh
// Date: 2021/3/20
// ===================
typedef int ElementType;
typedef struct LNode* LinkList;
struct LNode
{
ElementType data;
struct LNode* next;
};
LinkList DisCreat_1(LinkList &A)
{
int i = 0; // 记录表A中的结点序号
LinkList B = (LinkList) new ... |
; A023454: n-12.
; -12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48
sub $0,12
mul $0,120259084288
mov $1,$0
div $1,120259084288
|
; undconditional branch
LDI #0 ; 00010000 00000000 0x1000
ADI #1 ; 10000000 00000001 0x8001
JMP #0x0 ; 01110000 00000000 0x7000
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x16d92, %rsi
clflush (%rsi)
nop
nop
sub %r9, %r9
and $0xffffffffffffffc0, %rsi
movaps (%rsi), %xmm4
vpextrq $1, %xmm4, %r11
nop
nop
nop
nop
nop
cmp $39874, %r15
lea addresses_... |
TITLE Data Definitions (DataDef.asm)
; Examples showing how to define data.
; Last update: 2/1/02
INCLUDE Irvine32.inc
; ----------------- Byte Values ----------------
.data
value1 BYTE 'A'
value2 BYTE 0
value3 BYTE 255
value4 SBYTE -128
value5 SBYTE +127
value6 BYTE ?
list1 BYTE 10,... |
/*
* Copyright 2011-2020 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
#include <bx/platform.h>
#include "bgfx_p.h"
#include <bgfx/embedded_shader.h>
#include <bx/file.h>
#include <bx/mutex.h>
#include "topology.h"
#include "version.h"
#if BX_PLATFOR... |
; A296442: Initial digit of n-th Mersenne number.
; 3,7,3,1,2,8,1,5,8,5,2,1,2,8,1,9,5,2,1,2,9,6,9,6,1,2,1,1,6,1,1,2,1,6,7,2,1,1,1,1,7,3,3,1,2,8,3,1,2,8,1,8,3,3,2,1,9,3,2,3,1,1,2,4,1,2,4,2,2,1,1,1,3,1,1,1,1,3,5,1,1,5,5,2,1,2,1,3,5,2,3,1,3,6,1,2,1,6,2,7
seq $0,1348 ; Mersenne numbers: 2^p - 1, where p is prime.
seq $0,4... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/networkmanager/model/CoreNetworkEdge.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld b, 98
call lwaitly_b
ld a, 01
ldff(45), a
ld a, 40
ldff(41), a
ld a, 00
ld(8000), a
ld a, 01
ld(c000), a
ld a, c0
ldff(51), a
xor a, a
ldff(52), a
ldff(54), a
ld a, 80
ldff(53), a
xor a, a
ldff(0f), a
ld a, ... |
; A255177: Second differences of seventh powers (A001015).
; 1,126,1932,12138,47544,140070,341796,730002,1412208,2531214,4270140,6857466,10572072,15748278,22780884,32130210,44327136,59978142,79770348,104476554,134960280,172180806,217198212,271178418,335398224,411250350,500248476,604032282,724372488,863175894,1022490420... |
@17
D=A
@SP
M=M+1
A=M-1
M=D
@17
D=A
@SP
M=M+1
A=M-1
M=D
@SP
AM=M-1
D=M
A=A-1
D=D-M
M=-1
@LABEL0
D;JEQ
@SP
A=M-1
M=0
(LABEL0)
@17
D=A
@SP
M=M+1
A=M-1
M=D
@16
D=A
@SP
M=M+1
A=M-1
M=D
@SP
AM=M-1
D=M
A=A-1
D=D-M
M=-1
@LABEL1
D;JEQ
@SP
A=M-1
M=0
(LABEL1)
@16
D=A
@SP
M=M+1
A=M-1
M=D
@17
D=A
@SP
M=M+1
A=M-1
M=D
@SP
AM=M-1
D=M... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: The GrObj
FILE: grobjUI.asm
ROUTINES:
Name Description
---- -----------
METHODS:
Name: Description
---- -----------
REVISION HIST... |
/*
* nghttp2 - HTTP/2 C Library
*
* Copyright (c) 2012 Tatsuhiro Tsujikawa
*
* 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 ri... |
; A014143: Partial sums of A014138.
; 1,4,12,34,98,294,919,2974,9891,33604,116103,406614,1440025,5147876,18550572,67310938,245716094,901759950,3325066996,12312494462,45766188948,170702447074,638698318850,2396598337950,9016444758502,34003644251206,128524394659914,486793096818982,1847304015629418,7022801436532158
mov $1... |
// Test array index pointer rewriting
// struct array with 16bit index
// Commodore 64 PRG executable file
.file [name="index-pointer-rewrite-9.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [start... |
SSAnne2FRooms_Script:
ld a, $1
ld [wAutoTextBoxDrawingControl], a
xor a
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
ld hl, SSAnne9TrainerHeader0
ld de, SSAnne2FRooms_ScriptPointers
ld a, [wSSAnne2FRoomsCurScript]
call ExecuteCurMapScriptInTable
ld [wSSAnne2FRoomsCurScript], a
ret
SSAnne2FRooms_Script... |
.data
x: .word -1 #armazenando o valor de "x" no formato . x = -1
y: .word 0 #armazenando o valor de "y" no formato . y = 0
.text
lw $t0, x #carregar o valor de "x" para "f2"
add $t1,$zero,32 # Armazenar 32 em t1
div $t0,$t1 # Dividir t0 por t1
mflo $t0 # pegar o restante e armazenar em t0
sw ... |
; A191402: A000201(n)+A000201(n+1).
; 1,4,7,10,14,17,20,23,26,30,33,36,40,43,46,49,52,56,59,62,65,68,72,75,78,82,85,88,91,94,98,101,104,108,111,114,117,120,124,127,130,133,136,140,143,146,150,153,156,159,162,166,169,172,175,178,182,185,188,192,195,198,201,204,208,211,214,218,221,224
mov $2,1
lpb $2
mov $1,$0
sub $... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x18a71, %rdx
clflush (%rdx)
nop
nop
nop
dec %rdi
movl $0x61626364, (%rdx)
nop
nop
nop
nop
and $21435, %rbx
lea addresses_D_ht+0x12b79, %rbp
nop
nop
nop
nop
nop
add %rsi, ... |
;;
;; Copyright (c) 2018, 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 the ... |
; Define wallpaper v1.03 1999 Tony Tebby
; 2002 Marcel Kilgus
;
; 2002-02-13 1.01 Adapted for on-the-fly wallpaper (MK)
; 2002-05-30 1.02 Returns last used colour in D1. Fixes mode change issue (MK)
; 2011-03-02 1.03 Save a few registers around mem.rchp for QDOS systems (MK)
;
section driver
... |
; A170778: a(n) = n^8*(n^6 + 1)/2.
; 0,1,8320,2394765,134250496,3051953125,39182921856,339114418825,2199031644160,11438417750841,50000050000000,189875023971061,641959447265280,1968688600715005,5556004150673536,14596464294140625,36028799166447616,84188916767579185,187406689301020800,399503351383223581,819200012800000000... |
// Module name: AVS
.kernel PL2_TO_PL3
.code
#include "VP_Setup.g8a"
#include "Set_Layer_0.g8a"
#include "Set_AVS_Buf_0123_PL2.g8a"
#include "PL2_AVS_Buf_0.g8a"
#include "PL2_AVS_Buf_1.g8a"
#include "PL2_AVS_Buf_2.g8a"
#include "PL2_AVS_Buf_3.g8a"
#include "Save_AVS_PL3.g8a"
#include "EOT.g8a"
.end_code
.e... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The Atheneum developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-... |
; PROLOGUE(mpn_xor_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 publishe... |
SECTION code_fp_math48
PUBLIC _exp2_fastcall
EXTERN cm48_sdcciy_exp2_fastcall
defc _exp2_fastcall = cm48_sdcciy_exp2_fastcall
|
; A017810: Binomial coefficients C(94,n).
; 1,94,4371,134044,3049501,54891018,814216767,10235867928,111315063717,1063677275518,9041256841903,69042324974532,477542747740513,3012192716517082,17427686431277403,92947660966812816,458929076023638279,2105674584108457986,9007607943130625829,36030431772522503316,135114119146959... |
==================== Asm code ====================
.section .text
.align 8
.globl func1
.type func1, @function
func1:
_c2:
movl $256,%ebx
jmp *(%rbp)
.size func1, .-func1
|
org 0x80000000
[BITS 32]
start:
mov esp,stack_end
mov ebp,esp
push 0x23 ; ss
push esp
pushf
pop eax
or eax,0x200 ; IF
push eax
push 0x1b ; cs
push usermode
iret
usermode:
mov edx,.return
mov ecx,esp
mov esi,exec
mov edi,0
mov eax,1
int 80h
.return:
jmp $
data:
exec db "/initrd/... |
.386
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
; 将参数列表的顺序翻转
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
reverseArgs macro arglist:VARARG
local txt,count
;TEXTEQU 伪指令,类似于 EQU,创建了文本宏(text macro)
txt TEXTEQU <>
count = 0
for i,<arglist>
count ... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>quotactl(cmd, special, id, addr) -> str
Invokes the syscall quotactl.
See 'man 2 quotactl' for more information.
Arguments:
cmd(int): cmd
special(char*): special
id(int): id
addr(caddr_t... |
; int isodigit(int c)
SECTION code_ctype
PUBLIC _isodigit
EXTERN _isodigit_fastcall
_isodigit:
pop af
pop hl
push hl
push af
jp _isodigit_fastcall
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1901e, %r14
nop
nop
nop
inc %rdx
mov $0x6162636465666768, %rbx
movq %rbx, %xmm6
movups %xmm6, (%r14)
dec %rbx
lea addresses_WT_ht+0x721e, %rsi
nop
sub $61864, %rdi
movb (%rs... |
Results_screen_2p_Header:
smpsHeaderStartSong 2
smpsHeaderVoice Results_screen_2p_Voices
smpsHeaderChan $06, $03
smpsHeaderTempo $01, $68
smpsHeaderDAC Results_screen_2p_DAC
smpsHeaderFM Results_screen_2p_FM1, $F4, $10
smpsHeaderFM Results_screen_2p_FM2, $F4, $0C
smpsHeaderFM ... |
// Copyright (c) 2009 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/transport_security_persister.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/message_loop.h"
#incl... |
dnl HP-PA 2.0 32-bit mpn_add_n -- Add two limb vectors of the same length > 0
dnl and store sum in a third limb vector.
dnl Copyright 1997, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or m... |
db "FIRE HORSE@" ; species name
dw 507, 2090 ; height, weight
db "It just loves to"
next "gallop. The faster"
next "it goes, the long-"
page "er the swaying"
next "flames of its mane"
next "will become.@"
|
<% from pwnlib.shellcraft.i386.linux import dup2 %>
<% from pwnlib.shellcraft.i386 import mov %>
<% from pwnlib.shellcraft import common %>
<%page args="sock = 'ebp'"/>
<%docstring>
Args: [sock (imm/reg) = ebp]
Duplicates sock to stdin, stdout and stderr
</%docstring>
<%
dup = common.label("dup")
looplabe... |
lh $6,16($0)
or $3,$4,$3
sb $1,13($0)
slti $1,$5,-26694
nor $3,$3,$3
addu $5,$4,$3
or $5,$3,$3
srlv $5,$6,$3
sh $4,6($0)
lb $1,4($0)
sw $1,4($0)
srl $4,$4,16
lbu $1,9($0)
andi $1,$4,52768
sllv $6,$3,$3
subu $5,$3,$3
xori $6,$1,43328
andi $3,$4,59432
xori $1,$3,21237
sllv $1,$3,$3
lhu $4,2($0)
slti $3,$1,28354
xori $5,$... |
section .text
global isr_wrapper
align 4
isr_wrapper:
pushad
cld
call interrupt_handler
popad
iret |
; A157288: a(n) = 10368*n^2 - 288*n + 1.
; 10081,40897,92449,164737,257761,371521,506017,661249,837217,1033921,1251361,1489537,1748449,2028097,2328481,2649601,2991457,3354049,3737377,4141441,4566241,5011777,5478049,5965057,6472801,7001281,7550497,8120449,8711137,9322561,9954721,10607617,11281249,11975617,12690721,13426... |
%define STDIN 0
%define STDOUT 1
%define STDERR 2
%define SYSCALL_EXIT 1
%define SYSCALL_READ 3
%define SYSCALL_WRITE 4
%define BUFLEN 256
[SECTION .data]
;;; Here we declare initialized data. For example: messages, prompts,
;;; and numbers that we know in advance
msg1: db "Enter string: " ; user prom... |
copyright zengfr site:http://github.com/zengfr/romhack
001590 lea ($20,A0), A0
0015C6 bne $15e4 [123p+ 28, enemy+28]
00192E bne $1970 [enemy+28]
001966 move.l #$2000604, ($28,A1) [enemy+CD]
00196E rts [enemy+28, enemy+2A]
003C4E move.w #$4, ($28,A0) [enemy+1F]
003C54 rts [enemy+28]
00439E move.w ... |
PSH 5
PSH 2
MUL
PSH 10
PSH 20
ADD
ADD
HLT
|
SECTION code_l
PUBLIC l_small_utoo
PUBLIC l2_small_utoo_lz, l2_small_utoo_nlz
PUBLIC l3_small_utoo_lz, l3_small_utoo_nlz
l_small_utoo:
; write unsigned octal number to ascii buffer
;
; enter : hl = unsigned integer
; de = char *buffer
; carry set to write leading zeroes
;
; exi... |
; A064108: a(n) = (20^n-1)/19.
; 0,1,21,421,8421,168421,3368421,67368421,1347368421,26947368421,538947368421,10778947368421,215578947368421,4311578947368421,86231578947368421,1724631578947368421,34492631578947368421,689852631578947368421,13797052631578947368421,275941052631578947368421,5518821052631578947368421,1103764... |
; Copyright (c) 2021, Aleksey "introspec" Pichugin, Milos "baze" Bazelides, Pavel "Zilog" Cimbal
; This code is released under the terms of the BSD 2-Clause License.
; E1E1 decoder (28 bytes excluding initialization).
; The decoder assumes reverse order. We can omit the end of stream
; marker if we let the last liter... |
; A335298: a(n) is the squared distance between the points P(n) and P(0) on a plane, n>=0, such that the distance between P(n) and P(n+1) is n+1 and, going from P(n) to P(n+2), a 90-degree-left-turn is taken in P(n+1).
; 0,1,5,8,8,13,25,32,32,41,61,72,72,85,113,128,128,145,181,200,200,221,265,288,288,313,365,392,392,42... |
; A293639: a(n) is the greatest integer k such that k/Fibonacci(n) < 2/5.
; 0,0,0,0,1,2,3,5,8,13,22,35,57,93,150,244,394,638,1033,1672,2706,4378,7084,11462,18547,30010,48557,78567,127124,205691,332816,538507,871323,1409831,2281154,3690986,5972140,9663126,15635267,25298394,40933662,66232056,107165718,173397774,280563493... |
section .text
global _start
global avg
_start:
mov eax,20
mov ebx,13
mov ecx,82
add eax,ebx
add eax,ecx
mov dl,3
div eax
|
; A204243: Determinant of the n-th principal submatrix of A204242.
; Submitted by Jamie Morken(s4)
; 1,2,11,144,4149,251622,31340799,7913773980,4024015413705,4106387069191890,8395359475529822355,34357677843892688699400,281336437060919094044274525,4608419756389534634440592965950,150992374805715685629827976712244775,9894... |
class Solution {
public:
int removeElement(vector<int>& a, int val) {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n = a.size();
int cnt=0;
for(int i=0; i<n; i++){
while(i < n && a[i] == val){
cnt++;
i++;
}
... |
; A054684: Sum of digits is odd.
; 1,3,5,7,9,10,12,14,16,18,21,23,25,27,29,30,32,34,36,38,41,43,45,47,49,50,52,54,56,58,61,63,65,67,69,70,72,74,76,78,81,83,85,87,89,90,92,94,96,98,100,102,104,106,108,111,113,115,117,119,120,122,124,126,128,131,133,135,137,139,140,142,144,146,148,151,153,155,157,159,160,162,164,166,168,... |
.size 8000
.text@48
ei
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 c, 44
ld b, 90
lbegin_waitly90:
ldff a, (c)
cmp a, b
jrnz lbegin_waitly90
xor a, a
ldff(40), a
ld hl, 9f00
ld b, 20
lbegin_clearvram:
... |
; CRT0 stub for 64k Mode Multi8
;
;
defc CRT_ORG_CODE = 0x0000
defc TAR__register_sp = 0xffff
defc TAR__clib_exit_stack_size = 0
defc VRAM_IN = 0x37;
defc VRAM_OUT = 0x2f
INCLUDE "crt/classic/crt_rules.inc"
EXTERN asm_im1_handler
EXTERN asm_nmi_handler
org CRT_ORG_CODE
i... |
default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
section .text code align=64
EXTERN OPENSSL_ia32cap_P
global RC4
ALIGN 16
RC4:
mov QWORD[8+rsp],rdi ;WIN64 prologue
mov QWORD[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_RC4:
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
mov rcx,r9
or rsi,rsi
j... |
/* ========================================================================= *
* *
* OpenMesh *
* Copyright (c) 2001-2015, RWTH-Aachen University *
* ... |
; A030240: Scaled Chebyshev U-polynomials evaluated at sqrt(7)/2.
; 1,7,42,245,1421,8232,47677,276115,1599066,9260657,53631137,310593360,1798735561,10416995407,60327818922,349375764605,2023335619781,11717718986232,67860683565157,393000752052475,2275980479411226,13180858091511257,76334143284700217,442072996352322720,256... |
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR THE BIFROST* ENGINE - RELEASE 1.2/L
;
; See "bifrost_l.h" for further details
; ----------------------------------------------------------------
; unsigned char BIFROSTL_getTile(unsigned int px, unsigned int py)
SECTION c... |
/*=============================================================================
Copyright (c) 2011-2019 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
... |
; ---------------------------------------------------------------------------
; Animation script - ring
; ---------------------------------------------------------------------------
dc.w byte_9F8C-Ani_obj25
byte_9F8C: dc.b 5, 4, 5, 6, 7, $FC
even |
; Don't even think of reading this code
; It was automatically generated by sha1-586.pl
; Which is a perl program used to generate the x86 assember for
; any of ELF, a.out, COFF, Win32, ...
; eric <eay@cryptsoft.com>
;
; TITLE sha1-586.asm
; .486
;.model FLAT
;_TEXT$ SEGMENT ... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2021 ArangoDB GmbH, Cologne, Germany
///
/// 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... |
#include <functional>
#include <iostream>
#include <iterator>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <vector>
using namespace std;
auto to_binary = [&](auto n) {
vector<char> b;
while (n != 0) {
b.push_back(n & 1 == 1 ? '1' : '0');
n /= 2;
}
reverse(... |
; A021708: Decimal expansion of 1/704.
; 0,0,1,4,2,0,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4,5,4
add $0,1
mov $1,10
pow $1,$0
mul $1,2
div $1,1408
mod $1,10
mov $0,$1
|
;------------------------------------------------------------------------------
;
; Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; SecEntry.asm
;
; Abstract:
;
; This is the code that goes from real-mode to protected mode.... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: tsSmallFind.asm
AUTHOR: John Wedgwood, Nov 26, 1991
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date D... |
_pwd: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
exit();
}
int main(int argc,char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push %eb... |
; A235115: Number of independent vertex subsets of the graph obtained by attaching two pendant edges to each vertex of the star graph S_n (having n vertices; see A235114).
; 5,24,116,564,2756,13524,66596,328884,1628036,8074644,40111076,199506804,993339716,4949921364,24682497956,123144054324,614646529796,3068937681684,1... |
; A016796: (3n+2)^8.
; 256,390625,16777216,214358881,1475789056,6975757441,25600000000,78310985281,208827064576,500246412961,1099511627776,2251875390625,4347792138496,7984925229121,14048223625216,23811286661761
mul $0,3
add $0,2
pow $0,8
|
code32
format ELF
public _findFirstSet
public _findFirstSet64
section '.text' executable align 16
_findFirstSet:
cmp r0, #0
bxeq lr
lsl r3, r0, #16
lsr r3, #16
cmp r3, #0
lsreq r0, #16
moveq r3, #24
moveq r2, #16
movne r3, #8
movne r2, #0
tst r0, #255
lsreq r0, #8
moveq r2, r3
... |
;
;
SECTION code_clib
PUBLIC conio_map_colour_firmware
PUBLIC cpc_set_ansi_palette
INCLUDE "target/cpc/def/cpcfirm.def"
EXTERN __CLIB_CONIO_NATIVE_COLOUR
; Map ANSI colours to firmware colours
conio_map_colour_firmware:
ld hl,ansipalette
do_mapping:
ld c,__CLIB_CONIO_NATIVE_COLOUR
rr... |
; A005985: Length of longest trail (i.e., path with all distinct edges) on the edges of an n-cube.
; 0,1,4,9,32,65,192,385,1024,2049,5120,10241,24576,49153,114688,229377,524288,1048577,2359296,4718593,10485760,20971521,46137344,92274689,201326592,402653185,872415232,1744830465,3758096384,7516192769,16106127360,32212254... |
// Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xda8b, %rax
nop
nop
cmp %r15, %r15
movups (%rax), %xmm0
vpextrq $1, %xmm0, %rsi
nop
nop
nop
nop
dec %r11
lea addresses_normal_ht+0x11adb, %rsi
lea addresses_UC_ht+0x1cc8b, %rdi
clflush ... |
; size_t obstack_room(struct obstack *ob)
SECTION code_alloc_obstack
PUBLIC _obstack_room
EXTERN asm_obstack_room
_obstack_room:
pop af
pop hl
push hl
push af
jp asm_obstack_room
|
;
; Galaksija C Library
;
; Print character to the screen
;
; Stefano Bodrato - Apr.2008
;
;
; $Id: fputc_cons.asm,v 1.3 2016/05/15 20:15:45 dom Exp $
;
SECTION code_clib
PUBLIC fputc_cons_native
.fputc_cons_native
ld hl,2
add hl,sp
ld a,(hl)
cp 12
jr nz,nocls
.nocls
; Some undercas... |
; ECE 291 Summer 2004 MP4
; -- Paint291 --
;
; Completed By:
; Your Name
;
; Ryan Chmiel
; University of Illinois Urbana Champaign
; Dept. of Electrical & Computer Engineering
;
; Ver 1.0
%include "lib291.inc"
%include "libmp4.inc"
BITS 32
GLOBAL _main
; Define Contstants
DOWNARROW EQU 80
RIGHTARROW EQU 77
... |
.data
prompt: .asciiz "Enter the number: "
oddmsg: .asciiz "The given number is odd."
evemsg: .asciiz "The given number is even."
.text
main:
la $a0, prompt
li $v0, 4
syscall
li $v0, 5
syscall
move $t0, $v0
andi $t0, $t0, 1
beqz $t0, even
la $a0, oddmsg
li $v0, 4
syscall
li $v0, 10
syscall
even:
la $a0, evemsg
li... |
; database.asm
WTile proc
::WIDE_IMAGES:
; BTile Best
; FileName Indices Viewed As Notes
Ship equ ($-WTile)/Sprites.WTileLen
import_bin "..\tiles\ship.wtile" ; 000-016 ... |
// { dg-add-options ieee }
// 1999-08-23 bkoz
// Copyright (C) 1999-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Softw... |
/////////////////////////////////////////////////////////////////////////////
// Name: common/mediactrl.cpp
// Purpose: wxMediaCtrl common code
// Author: Ryan Norton <wxprojects@comcast.net>
// Modified by:
// Created: 11/07/04
// RCS-ID: $Id: mediactrlcmn.cpp,v 1.16 2005/09/11 11:03:46 VZ Exp... |
#include <iostream>
#include <vector>
#include <string>
#include <queue>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
//invert using BFS
class Solution {
public:
TreeNode* invertTree(TreeNode* root) {
... |
// Example of a struct containing a pointer
// Commodore 64 PRG executable file
.file [name="struct-ptr-29.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
:BasicUp... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x198e4, %rsi
lea addresses_WC_ht+0x104e4, %rdi
nop
nop
nop
nop
add $60978, %r14
mov $44, %rcx
rep movsw
nop
nop
nop
nop
nop
sub $8365, %rbx
lea addresses_D_ht+0xd824, %rsi
le... |
;
; Comment
;
; === STACK SEGMENT ===
MyStack segment stack
DB 64 dup('12345678')
MyStack endS
; === DATA SEGMENT ===
MyData segment
; --- Declare your variables here ---
blastoff DB "BLASTOFF!",13,10,"$"
MyData endS
MyCode segment
Assume CS:Mycode,DS:MyData
;Includes go here
INCLUDE TIME.INC
INCLUDE CONIO.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.