text stringlengths 1 1.05M |
|---|
[bits 32]
[section .text]
INT_VECTOR_SYS_CALL equ 0x80
_NR_MALLOC EQU 1
global malloc
malloc:
mov eax, _NR_MALLOC
mov ebx, [esp + 4] ;第一个参数
int INT_VECTOR_SYS_CALL
ret |
/**
* Texture.cpp
* Authors: Sheldon Taylor, Jiju Poovvancheri
*
* Implementation of OpenGL-based texture generation.
*/
#include <icg_common.h>
#include "Texture.h"
Texture::Texture() {}
Texture::~Texture() {}
/*
* Reads noise texture images from file.
*
* Returns:
* 0 if succesfully completed. TODO:... |
; ===============================================================
; Stefano Bodrato
; aralbrec: accommodate nmos z80 bug
; ===============================================================
;
; void z80_push_di(void)
;
; Save the current ei/di status on the stack and disable ints.
;
; ====================================... |
; A138967: Infinite Fibonacci word on the alphabet {1,2,3,4}.
; Submitted by Christian Krause
; 1,2,3,1,4,1,2,3,1,2,3,1,4,1,2,3,1,4,1,2,3,1,2,3,1,4,1,2,3,1,2,3,1,4,1,2,3,1,4,1,2,3,1,2,3,1,4,1,2,3,1,4,1,2,3,1,2,3,1,4,1,2,3,1,2,3,1,4,1,2,3,1,4,1,2,3,1,2,3,1,4,1,2,3,1,2,3,1,4,1,2,3,1,4,1,2,3,1,2,3
seq $0,48679 ; Compress... |
MODULE fscanf
SECTION code_clib
PUBLIC fscanf
EXTERN asm_scanf
; sccz80 version
;void fscanf(FILE *fp, char *fmt,...)
;{
; asm_scanf(fp, sccz80_delta, *ct,ct-1);
;}
fscanf:
ld l,a
ld h,0
add hl,hl
add hl,sp ;&buf
ld c,(hl) ;fp
inc hl
ld b,(hl)
push bc ;fp on stack
dec hl
dec hl... |
/*
* Copyright (C) 2009 Google 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 condit... |
;
;
; uint8_t joystick_sc(uint16_t keys[...]) __z88dk_fastcall
; Keys are ordered: RIGHT, LEFT, DOWN, UP, FIRE1, FIRE2, FIRE3, FIRE4
; Terminated by \0
;
; Uses scancodes
MODULE joystick_sc
SECTION code_clib
PUBLIC joystick_sc
PUBLIC _joystick_sc
EXTERN in_LookupKey
EXTERN in_KeyPressed
joystick_sc:
_joysti... |
;;
;; 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... |
; A095310: a(n+3) = 2*a(n+2) + 3*(n+1) - a(n).
; Submitted by Jon Maiga
; 1,5,12,38,107,316,915,2671,7771,22640,65922,191993,559112,1628281,4741905,13809541,40216516,117119750,341079507,993301748,2892722267,8424270271,24533405595,71446899736,208069745986,605946785585
mov $2,1
lpb $0
sub $0,1
add $1,1
add $3,$2
... |
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "Tracks/MovieSceneIntegerTrack.h"
#include "Sections/MovieSceneIntegerSection.h"
#include "Evaluation/MovieScenePropertyTemplates.h"
UMovieSceneIntegerTrack::UMovieSceneIntegerTrack( const FObjectInitializer& ObjectInitializer )
: Super( ObjectIni... |
FuchsiaMart_Object:
db $0 ; border block
db 2 ; warps
warp 3, 7, 0, -1
warp 4, 7, 0, -1
db 0 ; signs
db 3 ; objects
object SPRITE_MART_GUY, 0, 5, STAY, RIGHT, 1 ; person
object SPRITE_FAT_BALD_GUY, 4, 2, STAY, NONE, 2 ; person
object SPRITE_LASS, 6, 5, WALK, 1, 3 ; person
; warp-to
warp_to 3, 7, FUCHSIA_... |
; A022998: If n is odd then n, otherwise 2n.
; 0,1,4,3,8,5,12,7,16,9,20,11,24,13,28,15,32,17,36,19,40,21,44,23,48,25,52,27,56,29,60,31,64,33,68,35,72,37,76,39,80,41,84,43,88,45,92,47,96,49,100,51,104,53,108,55,112,57,116,59,120,61,124,63,128,65,132,67,136,69,140,71,144,73,148,75,152,77,156,79,160,81,164,83,168,85,172,8... |
// Test using some simple supported string escape \n in both string and char
// Uses encoding PETSCII mixed
// Commodore 64 PRG executable file
.file [name="string-escapes-3.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start... |
// Original test: ./sadashiv/hw4/problem6/rol_2.asm
// Author: sadashiv
// Test source code follows
// Test for "ROL Rd, Rs, Rt" {Rd <- Rs << (rotate) Rt (lowest 4 bits)}//
// This test check for all possible cases of rotate left from 0 -15 //
lbi r1,0xA1
slbi r1, 0x97 // r1 = 0xA197
lbi r2, 0x0 // rotate 0 times
r... |
; A052533: Expansion of (1-x)/(1-x-3*x^2).
; 1,0,3,3,12,21,57,120,291,651,1524,3477,8049,18480,42627,98067,225948,520149,1197993,2758440,6352419,14627739,33684996,77568213,178623201,411327840,947197443,2181180963,5022773292,11566316181,26634636057,61333584600,141237492771,325238246571,748950724884,1724665464597,3971517... |
// KRATOS ___| | | |
// \___ \ __| __| | | __| __| | | __| _` | |
// | | | | | ( | | | | ( | |
// _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS
//
// License: BSD License
// ... |
;
; Copyright (C) 2021 Louis Hobson <louis-hobson@hotmail.co.uk>. All Rights Reserved.
;
; Distributed under MIT licence as a part of a cellular automaton project.
; For details, see: https://github.com/louishobson/GameOfLife/blob/master/LICENSE
;
; IO.asm
;
; Various functions for interfacing with the screen and keybo... |
; A120462: Expansion of -2*x*(-3-2*x+4*x^2) / ((x-1)*(2*x+1)*(2*x-1)*(1+x)).
; 0,6,4,22,20,86,84,342,340,1366,1364,5462,5460,21846,21844,87382,87380,349526,349524,1398102,1398100,5592406,5592404,22369622,22369620,89478486,89478484,357913942,357913940,1431655766,1431655764,5726623062,5726623060,22906492246,22906492244,9... |
PUBLIC __clib_exit_stack_size
IF __clib_exit_stack_size > 0
ld hl, -(__clib_exit_stack_size * 2)
add hl,sp
ld sp,hl
ENDIF
|
AgathasRoom_Script:
call AgathaShowOrHideExitBlock
call EnableAutoTextBoxDrawing
ld hl, AgathasRoomTrainerHeaders
ld de, AgathasRoom_ScriptPointers
ld a, [wAgathasRoomCurScript]
call ExecuteCurMapScriptInTable
ld [wAgathasRoomCurScript], a
ret
AgathaShowOrHideExitBlock:
; Blocks or clears the exit to the next ... |
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1981-1991
; * All Rights Reserved.
; */
page ,132
TITLE Disk Ioctl functions
include version.inc ; set build flags
include biosseg.inc ; define bios segment structure
INCLUDE de... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright (C) 2022 Intel Corporation
;
; SPDX-License-Identifier: MIT
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
%include "options.asm"
%include "lz0a_const.asm"
%include "data_struct2.asm"
%include "bitbuf2.asm"
%... |
#include "TerminationGenerator.hpp"
#include <spdlog/spdlog.h>
#include "../Players/Player.hpp"
#include "TerminationHandler.hpp"
namespace griddly {
void TerminationGenerator::defineTerminationCondition(TerminationState state, std::string commandName, int32_t reward, int32_t opposingReward, std::vector<std::string... |
;===========================================================================
; fill.asm
; Submodule with memory fill routines.
;===========================================================================
; Some constants
BCKG_LINE_SIZE: equ 32
; Colors
BLACK: equ 0<<3
BLUE: equ 1<<3
RED: ... |
; Copyright Oliver Kowalke 2009.
; 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)
; ---------------------------------------------------------------------------------
; | 0 | 1 ... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... |
db "PINCER@" ; species name
db "Its oversized claw"
next "is very powerful,"
next "but when it's not"
page "in battle, the"
next "claw just gets in"
next "the way.@"
|
ShowPokedexMenu:
call GBPalWhiteOut
call ClearScreen
call UpdateSprites
ld a, [wListScrollOffset]
push af
xor a
ld [wCurrentMenuItem], a
ld [wListScrollOffset], a
ld [wLastMenuItem], a
inc a
ld [wd11e], a
ld [hJoy7], a
.setUpGraphics
callab LoadPokedexTilePatterns
.loop
callba SendPokeballPal
.doPokemonLi... |
;Testname=unoptimized; Arguments=-O0 -fobj -oelif.obj; Files=stdout stderr elif.obj
;Testname=optimized; Arguments=-Ox -fobj -oelif.obj; Files=stdout stderr elif.obj
%macro DosPrintMsg 1+
%ifnid %1
section .data
%%str_to_print:db %1
section .text
mov dx,%%str_to_print
mov ah,9
int 0x21
%else
mov dx,(%1)
mov ah,... |
;;
;; This is auto-generated file by bin/mmlc.pl.
;; (command line option(s): -f 1000000 mml/choral.mml)
;;
MUSICDATA_CH0:
.db 0xfa, 0x0e, 0xfd, 0x05, 0x16, 0x2b, 0x05, 0x16
.db 0x2d, 0x05, 0x16, 0x2f, 0x05, 0x16, 0x32, 0x05
.db 0x16, 0x30, 0x05, 0x16, 0x30, 0x05, 0x17, 0x34
.db 0x05, 0x16, 0x32, 0x05, 0x16, 0x32, 0x05... |
//
// FFIPrimitiveTypes.cpp
// NativeScript
//
// Created by Jason Zhekov on 16.10.14.
// Copyright (c) 2014 г. Telerik. All rights reserved.
//
#include "FFIPrimitiveTypes.h"
#include "FFISimpleType.h"
#include "Interop.h"
#include "PointerInstance.h"
#include "ReferenceInstance.h"
#include "ReleasePool.h"
#inclu... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x515c, %rsi
nop
nop
nop
sub $20999, %r8
movups (%rsi), %xmm4
vpextrq $0, %xmm4, %r9
nop
nop
nop
nop
nop
inc %rdi
lea addresses_WC_ht+0x35c, %rcx
dec %rdx
mov $0x61626364656... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
001588 movea.l ($38,A6), A0 [123p+ 36]
00158C ext.w D0 [123p+ 38, 123p+ 3A]
0015CA movea.l ($38,A6), A0 [123p+ 36]
0015CE ext.w D0 [123p+ 38, 123p+ 3A]
004D94 move.l D1, (A1)+
004D96 dbra D0, $4d94... |
; A187577: Complement of A187576.
; 3,6,9,10,13,16,19,22,25,26,29,32,35,36,39,42,45,48,51,52,55,58,61,64,67,68,71,74,77,78,81,84,87,90,93,94,97,100,103,104,107,110,113,116,119,120,123,126,129,132,135,136,139,142,145,146,149,152,155,158,161,162,165,168,171,174,177,178,181,184,187,188,191,194,197,200,203,204,207,210,213,... |
;;;
;; Recursive backtracking knights tour
;;
; aug 28 - 93 first attempt
; aug 28 - 79 still just goofing
; aug 28 - 77 oh how I suck at asm IO
; aug 28 - 72 carry for backtrack-flag
; aug 28 - 70 cx for depth counter
; aug 28 - 69 redundant ret removed
; aug 28 - 68 updated movetable for smaller 0check
... |
%define BE(a) ( ((((a)>>24)&0xFF) << 0) + ((((a)>>16)&0xFF) << 8) + ((((a)>>8)&0xFF) << 16) + ((((a)>>0)&0xFF) << 24))
ftyp_start:
dd BE(ftyp_end - ftyp_start)
dd "ftyp"
db 0x61, 0x76, 0x69, 0x66 ; brand(32) ('avif')
db 0x00, 0x00, 0x00, 0x00 ; version(32)
db 0x6D, 0x69, 0x66, 0x31 ; compatible_... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>stime(when) -> str
Invokes the syscall stime.
See 'man 2 stime' for more information.
Arguments:
when(time_t*): when
Returns:
int
</%docstring>
<%page args="when=0"/>
<%
abi = pwnlib.abi.ABI... |
; A100691: Number of self-avoiding paths with n steps on a triangular lattice in the strip Z x {0,1}.
; 1,4,12,30,70,158,352,780,1724,3806,8398,18526,40864,90132,198796,438462,967062,2132926,4704320,10375708,22884348,50473022,111321758,245527870,541528768,1194379300,2634286476,5810101726,12814582758
seq $0,77852 ; Exp... |
; A308580: a(n) = 3*2^n + n^2 - n.
; 3,6,14,30,60,116,222,426,824,1608,3162,6254,12420,24732,49334,98514,196848,393488,786738,1573206,3146108,6291876,12583374,25166330,50332200,100663896,201327242,402653886,805307124,1610613548,3221226342,6442451874,12884902880,25769804832
mov $2,$0
mul $2,$0
seq $0,123720 ; a(n) = 2^... |
SECTION code_clib
SECTION code_l_sdcc
PUBLIC ___sdcc_call_iy
EXTERN l_call_iy
defc ___sdcc_call_iy = l_call_iy
|
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include "base/os.h"
#include <vector>
#include <string>
#include <base/logging.h>
#include <boost/bind.hpp>
#include <tbb/task.h>
#include "io/test/event_manager_test.h"
#include <cmn/agent_cmn.h>
#include "base/test/task_test_util.h"
#include... |
; Tests instructions INC & DEC with all addressing modes.
; Assumes that loads & stores & ORA work with all addressing modes.
;
; Expected Results: $01DD = 0x6E
start:
LDA #$4B
LSR
ASL
STA $50
ASL $50
ASL $50
LSR $50
LDA $50
LDX $50
ORA #$C9
STA $60
ASL $4C,X
LSR $4C,X
LSR $4C,X
LDA $4C,X
LDX $60
ORA #$41
STA $012... |
#include <vector>
#include <string>
#include <cmath>
#include <algorithm>
#include <unordered_map>
typedef std::string string;
class yozh64 {
unsigned char alphabet[64] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', ... |
#include "RutgersIAF/EventAnalyzer/interface/ObjectVariableDeltaBetaCorrectedTotalIso.h"
#include "RutgersIAF/EventAnalyzer/interface/SignatureObject.h"
ClassImp(ObjectVariableDeltaBetaCorrectedTotalIso)
using namespace std;
bool ObjectVariableDeltaBetaCorrectedTotalIso::calculate(SignatureObject* sigObj)
{
if(m_... |
; A157786: a(n) = 27225*n^2 - 15248*n + 2135.
; 14112,80539,201416,376743,606520,890747,1229424,1622551,2070128,2572155,3128632,3739559,4404936,5124763,5899040,6727767,7610944,8548571,9540648,10587175,11688152,12843579,14053456,15317783,16636560,18009787,19437464,20919591,22456168,24047195,25692672,27392599,29146976,30... |
//
// XRhodes
//
// copyright (c) Gyorgy Straub. All rights reserved.
//
// License: https://github.com/zyndor/xrhodes#License-bsd-2-clause
//
//==============================================================================
#include "Example.hpp"
#include "DragController.hpp"
#include "xr/Device.hpp"
#include "xr/Trans... |
; A057569: Numbers of the form k*(5*k+1)/2 or k*(5*k-1)/2.
; 0,2,3,9,11,21,24,38,42,60,65,87,93,119,126,156,164,198,207,245,255,297,308,354,366,416,429,483,497,555,570,632,648,714,731,801,819,893,912,990,1010,1092,1113,1199,1221,1311,1334,1428,1452,1550,1575,1677,1703,1809,1836,1946,1974,2088,2117,2235,2265,2387,2418,2... |
; A170448: Number of reduced words of length n in Coxeter group on 7 generators S_i with relations (S_i)^2 = (S_i S_j)^45 = I.
; 1,7,42,252,1512,9072,54432,326592,1959552,11757312,70543872,423263232,2539579392,15237476352,91424858112,548549148672,3291294892032,19747769352192,118486616113152,710919696678912,426551818007... |
section .data
name : db 'Abhinav p',10
l : equ $-name
address : db 'Panayampurath house , rammallur',0ah
l1 : equ $-address
district : db 'Kozhikode',0ah
l2 : equ $-district
section .text
global _start:
_start:
mov eax, 4
mov ebx, 1
mov ecx, name
mov edx, l
int 80h
mov eax, 4
mov ebx, 1
mov... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.30319.01
TITLE C:\JitenderN\REBook\Pointers\Pointers\Pointers.cpp
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
CONST SEGMENT
$SG4679 DB 0aH, 'Address of iNumber = 0x%p', 00H
ORG $+1
$SG4680... |
; A247727: Number of length 1+3 0..n arrays with no disjoint pairs in any consecutive four terms having the same sum.
; 8,48,168,440,960,1848,3248,5328,8280,12320,17688,24648,33488,44520,58080,74528,94248,117648,145160,177240,214368,257048,305808,361200,423800,494208,573048,660968,758640,866760,986048,1117248,1261128
... |
.extern _stack
.global start
.equ N, 8
.data
A: .word 7,3,25,4,75,2,1,1
.bss
B: .space N*4
max: .space 4
ind: .space 4
.text
start:
LDR SP, =_stack
MOV FP, #0
MOV R1, #N // R1 = N
MOV R4, #0 // R4 = j
for1: LDR R0, =A // R0 = A
CMP R4, #N
BGE fin_for1
BL sub_max
MOV R5, R0 // ind = max(A)
... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "pooling_inst.h"
#include "primitive_type_base.h"
#include "sliding_window_utils.hpp"
#include "intel_gpu/runtime/error_handler.hpp"
#include "json_object.h"
#include <string>
using namespace ov::runtime::intel_gpu;
names... |
ldi $s0, 3 //0,1
la $s1, end //2,3
loop: beq $s0, $0, $s1 //4
addi $s0, -1 //5
move $s0, $rr //6
j loop //7
end: j end //8 |
/*
* SPDX-License-Identifier: Apache-2.0
*/
//===------ LowerToLLVM.cpp - Lowering from KRNL+Affine+Std to LLVM -------===//
//
// Copyright 2019-2020 The IBM Research Authors.
//
// =============================================================================
//
//
//
//===------------------------------------------... |
%ifdef _X64_
[BITS 64]
[SEGMENT .data]
[EXTERN _g_VectorDelta]
[EXTERN _g_PieceData]
%ifdef OSX
;;; Note: The reason for this OSX stuff is that there is a bug in the mac
;;; version of nasm. See comments in data.c for more details.
[GLOBAL g_NasmVectorDelta]
[GLOBAL _g_NasmVectorDelta]
g_NasmVectorDelta:
_g... |
/***********************************************************************************
** exvr-designer **
** MIT License **
** Copyright (c) [2018] [Florian Lance][EPFL-LNCO] ... |
; ===============================================================
; Mar 2014
; ===============================================================
;
; size_t b_array_append(b_array_t *a, int c)
;
; Append char to end of array, return index of appended char.
;
; ============================================================... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %rax
push %rsi
lea addresses_D_ht+0x17d68, %r14
nop
xor %rsi, %rsi
movl $0x61626364, (%r14)
nop
nop
and $32653, %r10
pop %rsi
pop %rax
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r15
push %r8
push %rdi
/... |
; A345890: a(n) = n + (n - 1) * (n - pi(n)).
; 1,3,5,10,13,21,25,36,49,64,71,89,97,118,141,166,177,205,217,248,281,316,331,369,409,451,495,541,561,610,631,683,737,793,851,911,937,1000,1065,1132,1161,1231,1261,1334,1409,1486,1519,1599,1681,1765,1851,1939,1977,2068
mov $1,$0
seq $1,62298 ; Number of nonprimes <= n.
mul ... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; SetJump.Asm
;
; Abstract:
;
; Implementation of SetJump() on x64.
;
;-----------... |
/* file: model.cpp */
/*******************************************************************************
* Copyright 2014-2019 Intel Corporation
*
* 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
... |
db 0 ; species ID placeholder
db 78, 84, 78, 100, 109, 85
; hp atk def spd sat sdf
db FIRE, FLYING ; type
db 45 ; catch rate
db 209 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F12_5 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/charizar... |
; A065358: The Jacob's Ladder sequence: a(n) = Sum_{k=1..n} (-1)^pi(k), where pi = A000720.
; 0,1,0,1,2,1,0,1,2,3,4,3,2,3,4,5,6,5,4,5,6,7,8,7,6,5,4,3,2,3,4,3,2,1,0,-1,-2,-1,0,1,2,1,0,1,2,3,4,3,2,1,0,-1,-2,-1,0,1,2,3,4,3,2,3,4,5,6,7,8,7,6,5,4,5,6,5,4,3,2,1,0,1,2,3,4,3,2,1,0,-1,-2,-1,0,1,2,3,4,5,6,5,4,3
lpb $0
mov $2,... |
#include "callid.hxx"
#if SERVER_SOURCE
#include "protocol.h"
#include "binder.h"
#else
#include "gnproto.h"
#include "gncompress.h"
#endif
namespace GNET
{
static GNET::Protocol::Type _state_GLoginClient[] =
{
UserEnter::PROTOCOL_TYPE,
UserEnterResp::PROTOCOL_TYPE,
UserWelcome::PROTOCOL_TYPE,
UserLeave::PROTOCOL_T... |
;GLOBAL SYSTEM NAMES AND CONSTANTS.
;SCREEN PARAMETERS, PIXELS AND ATTRIBUTES.
SCREEN_ADDR EQU #4000
SCREEN_SIZE EQU #1800
SCREEN_ATTRIB EQU #5800
ATTRIB_SIZE EQU #300
SCREEN_X_SIZE EQU #20
SCREEN_Y_SIZE EQU #18
;KEMPSTON JOYSTICK BITS TO CHECK AND PORT.
KEMPSTON_PORT EQU #1F
KEMPSTON_MASK EQU %... |
; A103177: (7*3^n + 2n + 5)/4.
; 3,7,18,50,145,429,1280,3832,11487,34451,103342,310014,930029,2790073,8370204,25110596,75331771,225995295,677985866,2033957578,6101872713,18305618117,54916854328,164750562960,494251688855,1482755066539
mov $1,$0
seq $1,237930 ; a(n) = 3^(n+1) + (3^n-1)/2.
add $0,$1
sub $0,3
div $0,2
add... |
; A169176: Number of reduced words of length n in Coxeter group on 19 generators S_i with relations (S_i)^2 = (S_i S_j)^27 = I.
; Submitted by Jamie Morken(s4)
; 1,19,342,6156,110808,1994544,35901792,646232256,11632180608,209379250944,3768826516992,67838877305856,1221099791505408,21979796247097344,395636332447752192,71... |
/*
* DrawingHelpers.cpp
*
* Created on: May 31, 2016
* Author: hatem
*/
#include "op_simu/DrawingHelpers.h"
#include <stdarg.h>
#include <stdio.h>
#include <cmath>
#include "op_utility/UtilityH.h"
#include "op_planner/PlanningHelpers.h"
#include <GL/freeglut.h>
using namespace std;
using namespace PlannerH... |
; A020336: Numbers whose base-8 representation is the juxtaposition of two identical strings.
; 9,18,27,36,45,54,63,520,585,650,715,780,845,910,975,1040,1105,1170,1235,1300,1365,1430,1495,1560,1625,1690,1755,1820,1885,1950,2015,2080,2145,2210,2275,2340,2405,2470,2535,2600,2665,2730,2795,2860,2925,2990,3055
mov $1,1
mo... |
TITLE PRACTICE PROBLEM 9
.MODEL SMALL
.DATA
STR1 DB 'Enter 3 single digit umbers: $'
STR2 DB 'Sum = $'
.CODE
MAIN PROC
MOV DX, @DATA
MOV DS, DX
LEA DX, STR1 ;1st string
MOV AH, 9
INT 21h
MOV AH,1 ... |
; A315511: Coordination sequence Gal.4.139.3 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,6,11,17,21,27,32,38,44,49,55,59,65,70,76,82,87,93,97,103,108,114,120,125,131,135,141,146,152,158,163,169,173,179,184,190,196,201,207,211,2... |
[ BITS 32 ]
[ ORG 0x0 ]
VidBuffer equ 0x200*(1+3)
KeyPress equ VidBuffer+80*25*2
INFO:
.Entrypoint: dd 0x200
.Vidbuffer: dd VidBuffer
.Keypress: dd KeyPress
.Stack: dd KeyPress+0x500
times 512-($-$$) db 0
Game:
sub bx, 8
mov ds, bx
.DrawUI:
mov edi, VidBuffer+80*2*2
mov ecx, 80
.DrawUI.Loop1:
m... |
/*
* Copyright 2012 Google 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/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
bits 64
; Arithemtic.
add al, bl
add al, sil
add al, [rbx]
add [ebx], al
add al, [ebx]
add [ebx], al
add al, 0x10
add ax, bx
add ax, r11w
add ax, [rbx]
add [ebx], ax
add ax, [ebx]
add [ebx], ax
add ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x6ef1, %rsi
lea addresses_UC_ht+0x120ac, %rdi
clflush (%rdi)
dec %r12
mov $20, %rcx
rep movsl
nop
nop
nop
nop
nop
sub %rax, %rax
lea addresses_UC_ht+0xcb28, %r11
nop
nop
... |
; Generate references to any portions of ACIA
; code that must be part of every compile that
; uses the ACIA.
PUBLIC _acia_need
EXTERN _acia_init
defc _acia_need = _acia_init
; The ACIA must be initialized before main is called
SECTION code_crt_init
call _acia_init
|
; ********************************************************************************************
; ********************************************************************************************
;
; Name : hexstr.asm
; Purpose : ..
; Created : 15th Nov 1991
; Updated : 4th Jan 2021
; Authors : Fred Bowen
;
; **... |
/*
* Copyright (c) 2008, Willow Garage, 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... |
<%
from pwnlib.shellcraft.thumb.linux import syscall
%>
<%page args="fd, params"/>
<%docstring>
Invokes the syscall stty. See 'man 2 stty' for more information.
Arguments:
fd(int): fd
params(sgttyb): params
</%docstring>
${syscall('SYS_stty', fd, params)}
|
user/_stressfs: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <main>:
#include "kernel/fs.h"
#include "kernel/fcntl.h"
int
main(int argc, char *argv[])
{
0: dd010113 addi sp,sp,-560
4: 22113423 sd ra,552(sp)
8: 22813023 sd s0,544(sp)
c: 2... |
; char *strdup_fastcall(const char * s)
SECTION code_clib
SECTION code_string
PUBLIC _strdup_fastcall
EXTERN asm_strdup
defc _strdup_fastcall = asm_strdup
|
push ebp
mov ebp, esp
sub esp, 60
mov [esp-16], 3
mov [esp-4], 16
push 10
push 14
call someFuncThatTakesTwoArgs
sub esp, 8
push 100
|
; A147601: First differences of A132355.
; 7,4,21,8,35,12,49,16,63,20,77,24,91,28,105,32,119,36,133,40,147,44,161,48,175,52,189,56,203,60,217,64,231,68,245,72,259,76,273,80,287,84,301,88,315,92,329,96,343,100,357
mov $3,$0
lpb $0,1
sub $0,1
add $1,5
lpe
add $1,5
mov $0,$1
mod $0,2
mul $1,$0
add $1,2
mov $2,$3
mul ... |
; struct sp1_ss __CALLEE__ *sp1_CreateSpr_callee(void *drawf, uchar type, uchar height, int graphic, uchar plane)
; 03.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
PUBLIC sp1_CreateSpr_callee
PUBLIC ASMDISP_SP1_CREATESPR_CALLEE
EXTERN _sp1_struct_ss_prototype, _sp1_struct_cs_prototype
EXTERN _u_malloc,... |
;
; jfdctfst.asm - fast integer FDCT (MMX)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
;
; Based on
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdext.inc
;
; This file should be assembled... |
; A268292: a(n) is the total number of isolated 1's at the boundary between n-th and (n-1)-th iterations in the pattern of A267489.
; 0,0,0,0,0,0,0,1,3,5,7,9,11,14,18,22,26,30,34,39,45,51,57,63,69,76,84,92,100,108,116,125,135,145,155,165,175,186,198,210,222,234,246,259,273,287,301,315,329,344,360,376,392,408,424,441
l... |
/**
* Copyright 2020 The Magma Authors.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
... |
; $Id: bit_open.asm,v 1.4 2016-06-16 20:23:52 dom Exp $
;
; TI calculator "Infrared port" 1 bit sound functions stub
;
; void bit_open();
;
; Stefano Bodrato - 24/10/2001
;
SECTION code_clib
PUBLIC bit_open
PUBLIC _bit_open
.bit_open
._bit_open
IF FORti82
ld a,@11000000 ; Set W1 and ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x2b28, %r8
nop
nop
nop
and %rsi, %rsi
mov $0x6162636465666768, %r10
movq %r10, (%r8)
nop
dec %r10
lea addresses_WT_ht+0x1b1f8, %r13
nop
and %r9, %r9
movb (%r13), %cl
nop
no... |
; A319410: Twice A032741.
; Submitted by Jamie Morken(w2)
; 0,0,2,2,4,2,6,2,6,4,6,2,10,2,6,6,8,2,10,2,10,6,6,2,14,4,6,6,10,2,14,2,10,6,6,6,16,2,6,6,14,2,14,2,10,10,6,2,18,4,10,6,10,2,14,6,14,6,6,2,22,2,6,10,12,6,14,2,10,6,14,2,22,2,6,10,10,6,14,2,18,8,6,2,22,6,6,6,14,2,22,6,10,6,6,6,22,2,10,10
mov $2,$0
mul $2,2
lpb $... |
COPY START 0 .COPY FILE FROM INPUT TO OUTPUT
FIRST STL RETADR .SAVE TETURN ADDRESS
LDB #LENGTH .ESTABLISH BASE REGISTER
BASE LENGTH
CLOOP +JSUB RDREC .READ INPUT RECORD
LDA LENGTH .TEST FOR EOF
COMP #0
JEQ ENDFIL .EXIT IF EOF FOUND
+JSUB WRREC .WRITE OUTPUT RECORD
J CLOOP
ENDFIL LDA =C'EOF' .INSERT ... |
; A304659: a(n) = n*(n + 1)*(16*n - 1)/6.
; 0,5,31,94,210,395,665,1036,1524,2145,2915,3850,4966,6279,7805,9560,11560,13821,16359,19190,22330,25795,29601,33764,38300,43225,48555,54306,60494,67135,74245,81840,89936,98549,107695,117390,127650,138491,149929,161980,174660,187985,201971,216634,231990,248055,264845,282376,300... |
; A275794: One half of the y members of the positive proper solutions (x = x1(n), y = y1(n)) of the first class for the Pell equation x^2 - 2*y^2 = +7^2.
; 2,15,88,513,2990,17427,101572,592005,3450458,20110743,117214000,683173257,3981825542,23207779995,135264854428,788381346573,4595023225010,26781758003487,156095524795... |
dnl X86-64 mpn_lshift optimised for AMD K10.
dnl Copyright 2012 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as pu... |
;;;
;;; This is Suggested Project 7.9.2.1
;;; Basically do simple addition, subtraction, multiplication, modulo
;;; Pg. 136 for the problem
;;; Pg. 24 for Registers
;;; Pg. 48 for Data Types
SECTION .data
SUCCESS: equ 0 ; Default success value
SYS_EXIT: equ 60 ; Default system exit value
;; Va... |
; A098229: a(n)=6*c(n,1) where n runs through the 3-smooth numbers (see comment).
; Submitted by Jon Maiga
; 0,3,2,3,5,3,2,5,3,5,5,2,3,5,5,5,3,5,2,5,5,3,5,5,5,5,2,3,5,5,5,5,5,3,5,5,2,5,5,5,3,5,5,5,5,5,5,3,2,5,5,5,5,5,5,3,5,5,5,5,5,2,5,5,3,5,5,5,5,5,5,5,5,3,5,5,2,5,5,5,5,5,5,3,5,5,5,5,5,5,5,5,2,5,3,5,5,5,5,5
seq $0,330... |
SECTION code_stdlib
PUBLIC __dtoa_round
__dtoa_round:
; HL = buffer_dst *
; IX = buffer *
; (IX-6) = flags, bit 7 = 'N', bit 4 = '#', bit 0 = precision==0
; (IX-5) = iz (number of zeroes to insert before .)
; (IX-4) = fz (number of zeroes to insert after .)
; (IX-3) = tz (number of zeroes ... |
_foo: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "user.h"
#include "fcntl.h"
int
main(int argc, char const *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 ... |
; A110660: Promic numbers repeated.
; 0,0,2,2,6,6,12,12,20,20,30,30,42,42,56,56,72,72,90,90,110,110,132,132,156,156,182,182,210,210,240,240,272,272,306,306,342,342,380,380,420,420,462,462,506,506,552,552,600,600,650,650,702,702,756,756,812,812,870,870,930,930,992,992,1056,1056,1122,1122,1190,1190,1260,1260,1332,1332,14... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.