text
stringlengths
1
1.05M
bits 64 default rel %use altreg section .text bar equ 0xcc ;; Each instruction group separated by blank should encode identially ;; k_mov kreg size_suffix size_name gpr big_gpr %macro k_mov 5 kmov%2 %1,[foo] kmov %1,%3 [foo] kmov %3 [foo],%1 kmov%2 [foo],%1 kmov %3 [foo],%1 kmov [foo],%3 %1 kmov %3...
//Push constant @3030 D=A @SP A=M M=D @SP M=M+1 //Pop Pointer from THIS @SP M=M-1 @SP D=A @THIS AD=D+A @R13 M=D @SP A=M D=M @R13 A=M M=D //Push constant @3040 D=A @SP A=M M=D @SP M=M+1 //Pop Pointer from THAT @SP M=M-1 @SP D=A @THAT AD=D+A @R13 M=D @SP A=M D=M @R13 A=M M=D //Push constant @32 D=A @SP A=M M=D @SP M=M+1 ...
MODULE sscanf SECTION code_clib PUBLIC sscanf EXTERN asm_scanf EXTERN scanf_ungetc EXTERN scanf_getc EXTERN __sgoioblk ; sccz80 version ;void sscanf(char *buf, char *fmt,...) ;{ ; asm_scanf(fp, sccz80_delta, *ct,ct-1); ;} sscanf: ld l,a ld h,0 add hl,hl add hl,sp ;&buf push ix ;sa...
// OptFrame - Optimization Framework // Copyright (C) 2009-2015 // http://optframe.sourceforge.net/ // // This file is part of the OptFrame optimization framework. This framework // is free software; you can redistribute it and/or modify it under the // terms of the GNU Lesser General Public License v3 as published by...
// Copyright (c) 2017, The Superior Project // // 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 list of /...
.align 2 npc_cmdNop: add r6,0x1 mov r15,r14 .align 2 npc_withinActiveTime: push r14 // Get current timestamp ldr r0,=0x806FA59 mov r14,r15 bx r0 // Check in specific area mov r2,r10 ldr r2,[r2,0x40] ldrb r1,[r2,0x4] @@checkComps1: cmp r1,0xB1 bne @@checkComps2 ldrb r1,[r2,0x5] cmp r1,0x0 beq @@che...
bits 16 ; glb intptr_t : int ; glb uintptr_t : unsigned ; glb intmax_t : int ; glb uintmax_t : unsigned ; glb int8_t : signed char ; glb int_least8_t : signed char ; glb int_fast8_t : signed char ; glb uint8_t : unsigned char ; glb uint_least8_t : unsigned char ; glb uint_fast8_t : unsigned char ; glb int16_t : short ...
#include "../../common/CLog.h" #include "../uo_files/CUOTerrainInfo.h" #include "../CWorld.h" #include "CChar.h" #include <cmath> bool CChar::CanSeeLOS( const CPointMap &ptDst, CPointMap *pptBlock, int iMaxDist, word wFlags, bool bCombatCheck ) const { ADDTOCALLSTACK("CChar::CanSeeLOS"); // WARNING: CanSeeLOS is an...
/* * Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. * * 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 ...
;=============================================================================== ; Copyright 2015-2021 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 ; ; http://www.apa...
setrepeat 2 frame 0, 04 frame 1, 04 frame 2, 04 dorepeat 1 endanim
SECTION code_fp_math48 PUBLIC am48_dconst_1 EXTERN mm48__ac1 ; set AC = 1 ; ; uses : bc, de, hl defc am48_dconst_1 = mm48__ac1
; A020331: Numbers whose base-3 representation is the juxtaposition of two identical strings. ; 4,8,30,40,50,60,70,80,252,280,308,336,364,392,420,448,476,504,532,560,588,616,644,672,700,728,2214,2296,2378,2460,2542,2624,2706,2788,2870,2952,3034,3116,3198,3280,3362,3444,3526,3608,3690,3772,3854,3936,4018 mov $2,$0 add ...
//===============================================================================================// /*! * \file MeshBoneData.cpp * \author Loïc Corenthy * \version 1.0 */ //===============================================================================================// #include "MeshBoneData.hpp" #i...
/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman 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) ===================================...
; A054868: Sum of bits of sum of bits of n: a(n) = wt(wt(n)). ; 0,1,1,1,1,1,1,2,1,1,1,2,1,2,2,1,1,1,1,2,1,2,2,1,1,2,2,1,2,1,1,2,1,1,1,2,1,2,2,1,1,2,2,1,2,1,1,2,1,2,2,1,2,1,1,2,2,1,1,2,1,2,2,2,1,1,1,2,1,2,2,1,1,2,2,1,2,1,1,2,1,2,2,1,2,1,1,2,2,1,1,2,1,2,2,2,1,2,2,1 seq $0,120 ; 1's-counting sequence: number of 1's in bi...
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2014-2018 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
; A097701: Expansion of 1/((1-x)^2*(1-x^2)^2*(1-x^3)). ; 1,2,5,9,16,25,39,56,80,109,147,192,249,315,396,489,600,726,874,1040,1232,1446,1690,1960,2265,2600,2975,3385,3840,4335,4881,5472,6120,6819,7581,8400,9289,10241,11270,12369,13552,14812,16164,17600,19136 mov $18,$0 mov $20,$0 add $20,1 lpb $20,1 clr $0,18 mov $...
; A305991: Expansion of (1-27*x)^(1/9). ; Submitted by Christian Krause ; 1,-3,-36,-612,-11934,-250614,-5513508,-125235396,-2911722957,-68910776649,-1653858639576,-40143659706072,-983519662798764,-24285370135261788,-603664914790793016,-15091622869769825400,-379177024602966863175,-9568643738510163782475,-242405641375590...
.include "defines.inc" .include "global.inc" .segment "BANK1" ; end of string is important!!! ; else, textprinter loops forever ; strings should be multiples of 28 characters (excluding line feed)! ; ____________________________<-- up till here!! string_test: .byte "sphinx of dark black quartz," .byte "judg...
_cp: file format elf32-i386 Disassembly of section .text: 00000000 <main>: void ls(char *path); char* fmtname(char *path); 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...
.import source "64spec.asm" .import source "64core/memory.asm" .import source "64core/math.asm" sfspec: :init_spec() :describe("assert_bytes_not_equal") :it("fails when comparing empty arrays") :assert_bytes_not_equal 0: a: b: _64SPEC.assertion_failed_subroutine: _64SPEC.assertion_passed_subroutine :it("...
; TI83+ Graylib interrupt ;--------------------------------------------------------------------------- ; ; Ported by Stefano Bodrato - Mar 2000 ; ; Recoded -because of strange problems- by Henk Poley - July 2001 ; Based upon vnGrey, a Venus greyscale library (Ti83). ; ; $Id: gray83p.asm,v 1.6 201...
.global s_prepare_buffers s_prepare_buffers: push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x15f12, %rsi lea addresses_normal_ht+0xd92, %rdi nop nop nop xor $64341, %rbp mov $60, %rcx rep movsb nop nop nop and $37317, %rsi pop %rsi pop %rdi pop %rcx pop %rbp ret .global s_faulty_load s_faulty_load: pu...
// Copyright (C) 2018-2019 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <map> #include <memory> #include <string> #include <vector> #include <functional> #include <utils/ocv_common.hpp> #include <inference_engine.hpp> /** * @brief Base class of config for network */ struct Cn...
#include "qrcodedialog.h" #include "ui_qrcodedialog.h" #include "bitcoinunits.h" #include "guiconstants.h" #include "guiutil.h" #include "optionsmodel.h" #include <QPixmap> #include <QUrl> #include <qrencode.h> QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bool enableReq, QWidget *parent) : ...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcconsole.h" #include "ui_debugwindow.h" #include "bantablemo...
; Inicialização para VM leaw $Main.main, %A jmp nop ; 0 - Declarando função Main.main Main.main: ; 1 - PUSH constant 15 leaw $15,%A movw %A,%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; 2 - PUSH constant 5 leaw $5,%A movw %A,%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A...
; A203572: Period length 12: 0, 1, 2, 3, 4, 5, 0, 5, 4, 3, 2, 1 repeated. ; 0,1,2,3,4,5,0,5,4,3,2,1,0,1,2,3,4,5,0,5,4,3,2,1,0,1,2,3,4,5,0,5,4,3,2,1,0,1,2,3,4,5,0,5,4,3,2,1,0,1,2,3,4,5,0,5,4,3,2,1,0 lpb $0,1 add $1,$0 mod $0,6 sub $0,$1 add $1,$0 lpe
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_int_calloc_33.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml Template File: sources-sinks-33.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routin...
Name: zel_enmy3.asm Type: file Size: 334927 Last-Modified: '2016-05-13T04:20:48Z' SHA-1: 703F853C1C2FBF4546737D8815F31B5353C869C4 Description: null
// Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2021 The Retrex developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "activemasternode.h" #incl...
//===--- BlobGen.cpp - Blob Generator ---------------------------*- C++ -*-===// // // This source file is part of the DCL open source project // // Copyright (c) 2022 Li Yu-Long and the DCL project authors // Licensed under Apache 2.0 License // // See https://github.com/dcl-project/dcl/LICENSE.txt for license informa...
; A171462: Number of hands a bartender needs to have in order to win at the blind bartender's problem with n glasses in a cycle. ; 0,1,2,2,4,4,6,4,6,8,10,8,12,12,12,8,16,12,18,16,18,20,22,16,20,24,18,24,28,24,30,16,30,32,30,24,36,36,36,32,40,36,42,40,36,44,46,32,42,40,48,48,52,36,50,48,54,56,58,48,60,60,54,32,60,60,66,...
; set toggle item include win1_mac_oli include win1_keys_wman section utility xdef xwm_stgl ;+++ ; set toggle item ; ; Entry Exit ; d1 loose item numer ; a2 wman vector ; a3 toggle list ; a4 wwork ...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x1c833, %rsi lea addresses_A_ht+0x6b97, %rdi nop nop nop nop nop xor $11210, %r12 mov $23, %rcx rep movsl nop nop and $30497, %rax lea addresses_D_ht+0x1d0d3, %rbp nop inc %r15 movups (...
#include "Skybox.h" float HEIGHT = 0.1f; Skybox::Skybox() { } Skybox::~Skybox() { } void Skybox::init() { for (int i = 0; i < 6; ++i) { textures[i] = 0; glGenTextures(1, &(textures[i])); // I can't believe constructing a string is such a show std::string filename = "assets/skybox-"; filename.p...
.global s_prepare_buffers s_prepare_buffers: push %r8 push %r9 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x1813f, %rbp nop nop nop nop nop xor $42200, %rcx mov (%rbp), %r9w nop nop xor %r9, %r9 lea addresses_normal_ht+0xf8d7, %r8 nop nop and %rdx, %rdx vmovups (%r8), %ymm3 vext...
#include "prometheus/summary.h" #include <gtest/gtest.h> #include <cmath> #include <limits> #include <memory> #include <thread> namespace prometheus { namespace { TEST(SummaryTest, initialize_with_zero) { Summary summary{Summary::Quantiles{}}; auto metric = summary.Collect(); auto s = metric.summary; EXPECT...
; Z88 Small C+ Run time Library ; l_gint variant to be used sometimes by the peephole optimizer ; SECTION code_crt0_sccz80 PUBLIC l_gintspsp .l_gintspsp add hl,sp inc hl inc hl IF EZ80 defb 0xed, 0x27 ;ld hl,(hl) ELSE ld a,(hl) inc hl ld h,(hl) ld l,a ENDIF ex (sp),h...
// not // get top of stack @SP A=M-1 // not M=!M
PrintCardKeyText: ld hl, SilphCoMapList ld a, [wCurMap] ld b, a .silphCoMapListLoop ld a, [hli] cp $ff ret z cp b jr nz, .silphCoMapListLoop ; does not check for tile in front of player. This might be buggy ;predef GetTileAndCoordsInFrontOfPlayer ld a, [wTileInFrontOfPlayer] cp $18 jr z, .cardKeyDoorInFront...
kernel: file format elf32-i386 Disassembly of section .text: 80100000 <multiboot_header>: 80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh 80100006: 00 00 add %al,(%eax) 80100008: fe 4f 52 decb 0x52(%edi) 8010000b: e4 0f in $0xf,%al 8010000c <entry>:...
<% from pwnlib.shellcraft import arm, common %> <% from pwnlib.util.misc import align %> <%page args="in_fd=None, size=255, allocate_stack=True" /> <%docstring> Reads to the stack. You can optioanlly shave a few bytes not allocating the stack space. Args: in_fd (imm/reg) = STDIN_FILENO size (int/str) ...
.program: ji i4 noop DATA_SECTION_OFFSET[0..32] DATA_SECTION_OFFSET[32..64] lw $ds $is 1 add $$ds $$ds $is bhei $r0 move $r1 $r0 ; return value from inline asm ret $r1 .data:
; A078709: Integer part of the mean subinterval length in the partition of [0,n] by the divisors of n. ; 1,1,1,1,2,1,3,2,3,2,5,2,6,3,3,3,8,3,9,3,5,5,11,3,8,6,6,4,14,3,15,5,8,8,8,4,18,9,9,5,20,5,21,7,7,11,23,4,16,8,12,8,26,6,13,7,14,14,29,5,30,15,10,9,16,8,33,11,17,8,35,6,36,18,12,12,19,9,39,8,16,20,41,7,21,21,21,11,44,...
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 80 .text@150 lbegin: ld a, ff ldff(45), a ld b, 96 call lwaitly_b ld a, 40 ldff(41), a ld a, 02 ldff(ff), a xor a, a ldff(0f), a ei ld a, b inc a inc a ldff(45), a ld c, 0f .text@1000 lstatint: ld a, 08 ldff(41), a xor a, a ldff(c...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r15 push %rbp push %rbx push %rcx push %rsi // Store lea addresses_UC+0xd3d0, %rbp nop nop nop nop xor $22104, %r15 mov $0x5152535455565758, %rbx movq %rbx, %xmm6 vmovups %ymm6, (%rbp) nop nop cmp %r10,...
; =============================================================== ; May 2017 ; =============================================================== ; ; void *tshc_cy2aaddr(uchar row) ; ; Character y coordinate to attribute address. ; ; =============================================================== SECTION code_clib SECTIO...
page 49,132 TITLE exMathOp - I2 Math Operators ;*** ;exmathop.asm - executors for math operators and functions ; ; Copyright <C> 1986, Microsoft Corporation ; ;Purpose: ; ; This module includes: ; - the I2 calculator functions. ; - interface to the mathpack for all mathpack resident functions. ; ; ;*****************...
#ifndef BEHEMOTH_HPP #define BEHEMOTH_HPP // TODO: move class Behemoth to this file #endif // BEHEMOTH_HPP
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r15 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x5476, %r15 nop nop nop nop add $61372, %rdx movl $0x61626364, (%r15) inc %r12 lea addresses_normal_ht+0xc125, %r15 nop nop nop nop nop xor %r10, %r10 mov (%r15)...
; A298679: Start with the hexagonal tile of the Shield tiling and recursively apply the substitution rule. a(n) is the number of square tiles after n iterations. ; Submitted by Jon Maiga ; 0,3,6,33,102,423,1494,5745,21102,79431,295086,1103985,4114710,15367143,57329286,213999153,798569022,2980473543,11122931934,41512040...
; ; Copyright (C) 2008-2020 Advanced Micro Devices, 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: ; 1. Redistributions of source code must retain the above copyright notice, ; this list of...
; ; BASIC-DOS Boot Code ; ; @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 ; BIOSEQU equ 1 include macros.inc include bios.inc include disk.inc...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x13b8f, %rcx clflush (%rcx) nop nop nop nop cmp %rsi, %rsi movw $0x6162, (%rcx) nop nop nop inc %rax lea addresses_UC_ht+0x199ff, %rcx nop nop xor %rbx, %rbx movb (%rcx), %r1...
.module inttest .title Tests Integer Module .include 'integer.def' .include '..\io\io.def' STACK == 0xFFFF ;SYSTEM STACK .area BOOT (ABS) .org 0x0000 RST0: LXI SP,STACK ;INITALIZE STACK JMP START .org 0x0038 RST7: HLT ;********************************************************* ;* MAIN PROGRAM ;***...
// upload image to imagebin.org #include <iostream> #include <boost/noncopyable.hpp> #include <boost/array.hpp> #include <boost/filesystem.hpp> #include <boost/algorithm/string.hpp> #include "avhttp.hpp" int main(int argc, char* argv[]) { if (argc < 2) { std::cerr << "usage: " << argv[0] << " <filename> [nicknam...
; A097378: SquareFreeKernel(n)*CubeFreeKernel(n) + 1. ; Submitted by Jon Maiga ; 2,5,10,9,26,37,50,9,28,101,122,73,170,197,226,9,290,109,362,201,442,485,530,73,126,677,28,393,842,901,962,9,1090,1157,1226,217,1370,1445,1522,201,1682,1765,1850,969,676,2117,2210,73,344,501,2602,1353,2810 lpb $0 mov $2,$0 seq $2,62378...
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #include <gmock/gmock.h> #include <backend/plain/account.hpp> #include <backend/plain/domain.hpp> #include <backend/plain/peer.hpp> #include <backend/plain/signature.hpp> #include "ametsuchi/impl/postgres_wsv_command....
; ; print.asm ; KripayaOS ; [bits 16] print16: pusha mov ah, 0x0e .loop16: cmp [bx], BYTE 0 je .end16 mov al, [bx] int 0x10 add bx, 1 jmp .loop16 .end16: popa ret clear16: pusha mov ah, 0x00 mov al, 0x03 ; text mode 80x25 16 colours int 0x10 popa ret
; 1 "synth_sse_float.S" ; 1 "<built-in>" ; 1 "<command line>" ; 1 "synth_sse_float.S" ; 9 "synth_sse_float.S" ; 1 "mangle.h" 1 ; 13 "mangle.h" ; 1 "config.h" 1 ; 14 "mangle.h" 2 ; 1 "intsym.h" 1 ; 15 "mangle.h" 2 ; 10 "synth_sse_float.S" 2 ; 26 "synth_sse_float.S" %include "asm_nasm.inc" _sym_mangle synt...
dnl IA-64 mpn_lshiftc. dnl Contributed to the GNU project by Torbjorn Granlund. dnl Copyright 2000-2005, 2010 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 ...
;----------------------------------------------- ; Entering password game state Password_loop: call clearScreenLeftToRight ; print enter password string: ld hl,UI_message_enter_password ld de,NAMTBL2+256+9 ld bc,UI_message_enter_password_end-UI_message_enter_password call LDIRVM ; reset th...
/*****************************************************************************/ // Serial port transport add-on. // // Author // Michael Pfeiffer // // This application and all source files used in its construction, except // where noted, are licensed under the MIT License, and have been written // and are: // // C...
; A140303: Triangle T(n,k) = 3^(n-k) read by rows. ; Submitted by Christian Krause ; 1,3,1,9,3,1,27,9,3,1,81,27,9,3,1,243,81,27,9,3,1,729,243,81,27,9,3,1,2187,729,243,81,27,9,3,1,6561,2187,729,243,81,27,9,3,1,19683,6561,2187,729,243,81,27,9,3,1,59049,19683,6561,2187,729,243,81,27,9,3,1 lpb $0 add $1,1 sub $0,$1 lp...
;; ;; 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...
#Adds two values together #Run and look at the $t0, $t1, and $t2 registers li $t0, 73 #Loads the constant 73 (0x49) to $t0 li $t1, 31 #Loads the constant 31 (0x1f) to $t1 sub $t2, $t0, $t1 #$t2 = $t0 - $t1 #Result is 42 (0x2a)
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * 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...
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1 TITLE Z:\Sources\Lunor\Repos\rougemeilland\Palmtree.Math.Core.Implements\Palmtree.Math.Core.Implements\pmc_subtruct.c .686P .XMM include listing.inc .model flat INCLUDELIB MSVCRTD INCLUDELIB OLDNAMES msvcjmc SEGMENT __7B7A869E_ctype...
; MEM_LOG_DATA 2k buffer is defined by code including this (must be 256B aligned!) ; log structure: sequential items (one test can have multiple items, last item ; of particular test has set bit "last" in type). ; one item: ; +0 1B type ; bits 7-6: reserved (invalid counts are not checked, us...
PUBLIC AsmEnableVmxOperation PUBLIC AsmVmxVmcall PUBLIC AsmHypervVmcall .code _text ;------------------------------------------------------------------------ AsmEnableVmxOperation PROC PUBLIC push rax ; Save the state xor rax,rax ; Clear the RAX mov rax,cr4 or rax,02000h ; Set ...
section .data SYS_WRITE equ 1 STDOUT_FILENO equ 1 SYS_EXIT equ 60 EXIT_CODE equ 0 NEW_LINE db 0xa ERR_MSG db "MUST be two command line argument", 0xa ; message byte array, byte section .text global _start _start: ...
;-- level strings are stored in the following format: ;-- "rrrrrrrrrruuuuuuuuulllluuuuuurrrrrrrrrr$" ;-- (r = right, u = up, l = left, d = down, $ or any other char = end) ;-- however, to save some space, they have been compressed like this: ;-- !byte 10, 'r', 9, 'u', 4, 'l', 6, 'u', 10, 'r', $FF ;-- the game unpack...
; A013969: a(n) = sigma_21(n), the sum of the 21st powers of the divisors of n. ; 1,2097153,10460353204,4398048608257,476837158203126,21936961102828212,558545864083284008,9223376434903384065,109418989141972712413,1000000476837160300278,7400249944258160101212,46005141850728850805428,247064529073450392704414,117135613449...
; void dzx7_mega(void *src, void *dst) SECTION code_clib SECTION code_compress_zx7 PUBLIC _dzx7_mega EXTERN asm_dzx7_mega _dzx7_mega: pop af pop hl pop de push de push hl push af jp asm_dzx7_mega
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0xedc9, %rsi lea addresses_normal_ht+0x174b9, %rdi clflush (%rsi) nop nop nop nop sub %r10, %r10 mov $78, %rcx rep movsb nop nop add $42965, %r13 lea addresses_A_ht+0xebd0...
%ifdef CONFIG { "RegData": { "XMM1": ["0x8000000000000000", "0x4005"], "XMM2": ["0x8000000000000000", "0x4004"], "XMM3": ["0x8000000000000000", "0x4003"], "XMM4": ["0x8000000000000000", "0x4002"], "XMM5": ["0x8000000000000000", "0x4001"], "XMM6": ["0x8000000000000000", "0x4000"] }, "Env": ...
; =============================================================== ; Dec 2013 ; =============================================================== ; ; int strcoll(const char *s1, const char *s2) ; ; Compare string s1 to string s2. Return when the first ; differing char is found with *s1 - *s2. Char comparison ; is done...
#include "card.h" namespace nGame{ Card::Card(Suit suit, Rank rank, glm::vec3 position, glm::vec3 scale){ this->suit = suit; this->rank = rank; this->isFlipped = false; this->isMatched = false; this->position = position; this->scal...
#include <cmath> #include <iostream> #include <set> #include <vector> using std::set; using std::vector; static set<long long> gen_hammings(long long upper_limit, int hamming_type); static set<long long> gen_primes(long long n); int main() { const long long upper_limit = 1000000000LL; set<long long> hammings...
; Licensed to the .NET Foundation under one or more agreements. ; The .NET Foundation licenses this file to you under the MIT license. ; See the LICENSE file in the project root for more information. #include "ksarm.h" #include "asmconstants.h" IMPORT FuncEvalHijackWorker IMPORT FuncEvalHijackPersonalityRouti...
; Original address was $AC98 ; World 6 second fortress boss room .word $0000 ; Alternate level layout .word $0000 ; Alternate object layout .byte LEVEL1_SIZE_02 | LEVEL1_YSTART_170 .byte LEVEL2_BGPAL_01 | LEVEL2_OBJPAL_10 | LEVEL2_XSTART_18 .byte LEVEL3_TILESET_00 | LEVEL3_VSCROLL_LOCKED .byte LEVEL4_BGBANK_INDEX...
%include "asm_io.inc" segment .text global asm_main asm_main: enter 0,0 pusha mov eax, 3 push eax call calc add esp, 4 ; Geben Sie den Stack direkt vor dem popa Befehl an. popa mov eax, 0 leave ret calc: enter 4,0 ; lokale Variable fuer Ergebnissich...
\ ****************************************************************************** \ \ ELITE-A MISSILE SHIP BLUEPRINT FILE \ \ Elite-A is an extended version of BBC Micro Elite by Angus Duggan \ \ The original Elite was written by Ian Bell and David Braben and is copyright \ Acornsoft 1984, and the extra code in Elite-A ...
.inesprg 1 ; 1x 16KB PRG code .ineschr 1 ; 1x 8KB CHR data .inesmap 0 ; mapper 0 = NROM, no bank swapping .inesmir 1 ; background mirroring ;;;;;;;;;;;;;;; ;; DECLARE SOME VARIABLES HERE .rsset $0000 ;;start variables at ram location 0 gamestate .rs 1 ; .rs 1 means reserve on...
; A114211: a(n) = (5*n^3+12*n^2+n+6)/6. ; 1,4,16,42,87,156,254,386,557,772,1036,1354,1731,2172,2682,3266,3929,4676,5512,6442,7471,8604,9846,11202,12677,14276,16004,17866,19867,22012,24306,26754,29361,32132,35072,38186,41479 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 add $0,$2 add $0,$3 add $1,$0 sub $2,1 lpe mov $0,$...
; ; Getsprite - Picks up a sprite from display with the given size ; by Stefano Bodrato - Jan 2001 ; Apr 2002 - Fixed. (Long time, I know...) ; ; The original putsprite code is by Patrick Davidson (TI 85) ; ; Generic version (just a bit slow) ; ; ; $Id: getsprite.asm $ ; SECTION smc_clib PUBLIC ...
CODES SEGMENT ASSUME CS:CODES,DS:CODES MAIN PROC STRING DB 0DH,0AH,'INPUT A NUMBER(0-20):',0DH,0AH,'$' ERROR DB 0DH,0AH,"OUT OF RANGE! $" YN DB 0DH,0AH,'CONTINUE (YES) ? $' C10 DW 10 ;输入十进制转换的数 N DW ? ;要求阶乘的数 M DW ? ;步长 C DW ? ;进位 I DW ? DW ? START: PUSH CS POP DS MOV DX...
; A053469: a(n) = n*6^(n-1). ; 1,12,108,864,6480,46656,326592,2239488,15116544,100776960,665127936,4353564672,28298170368,182849716224,1175462461440,7522959753216,47958868426752,304679870005248,1929639176699904,12187194800209920,76779327241322496,482612914088312832,3027299188372144128,18953525353286467584,1184595334580...
; Learn Multi platform Z80 Assembly Programming... With Vampires! ;Please see my website at www.chibiakumas.com/z80/ ;for the 'textbook', useful resources and video tutorials ;File Simple Monitor ;Version V1.0 ;Date 2018/3/29 ;Content Provides simple ability to show the Program Counter, and to show register...
// Software License for MTL // // Copyright (c) 2007 The Trustees of Indiana University. // 2008 Dresden University of Technology and the Trustees of Indiana University. // 2010 SimuNova UG (haftungsbeschränkt), www.simunova.com. // All rights reserved. // Authors: Peter Gottschling and Andr...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006 - 2015, 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 distr...
include uXmx86asm.inc option casemap:none ifndef __X64__ .686P .xmm .model flat, c else .X64P .xmm option win64:11 option stackbase:rsp endif option frame:auto .code align 16 uXm_has_AVX512DQ_VL proto VECCALL (byte) align 16 uXm_has_AVX512DQ_VL proc VECCALL (byte) mov ...
SECTION code_clib SECTION code_fp_math48 PUBLIC am48_deq EXTERN am48_dcmp, error_oc, error_znc am48_deq: ; Return bool (AC == AC') ; ; enter : AC'= double y ; AC = double x ; ; exit : HL = 0 and carry reset if false ; HL = 1 and carry set if true ; ; uses : af, hl ...
#bankdef a { #bits 8 #addr 0x0 #size 0x4 #outp 0x0 #fill } #bankdef b { #bits 8 #addr 0x0 #size 0x4 #outp 8 * 0x4 #fill } #bank b #d8 4, 3, $ ; = 0x00000000_04030200
; A045320: Primes not congruent to 5 mod 7. ; Submitted by Jon Maiga ; 2,3,7,11,13,17,23,29,31,37,41,43,53,59,67,71,73,79,83,97,101,107,109,113,127,137,139,149,151,157,163,167,179,181,191,193,197,199,211,223,227,233,239,241,251,263,269,277,281,283,293,307,311,317,331,337,347,349,353,359,367,373,379,389,401,409,419,421,...
; A183430: One third the number of n X 2 0..3 arrays with no element equal to its row sum plus its column sum mod 4. ; Submitted by Simon Strandgaard ; 4,27,244,2187,19684,177147,1594324,14348907,129140164,1162261467,10460353204,94143178827,847288609444,7625597484987,68630377364884,617673396283947,5559060566555524,5003...
; A028180: Expansion of 1/((1-5x)(1-7x)(1-8x)(1-9x)). ; Submitted by Jon Maiga ; 1,29,530,7810,101451,1213359,13695340,148146020,1551618101,15847349089,158652680550,1562885008230,15193886293951,146104406183219,1392173613916160,13163974362722440,123666997751585001 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 dif $...
object_const_def ; object_event constants const ROUTE1_YOUNGSTER const ROUTE1_COOLTRAINER_F const ROUTE1_FRUIT_TREE Route1_MapScripts: db 0 ; scene scripts db 0 ; callbacks TrainerSchoolboyDanny: trainer SCHOOLBOY, DANNY, EVENT_BEAT_SCHOOLBOY_DANNY, SchoolboyDannySeenText, SchoolboyDannyBeatenText, 0, .Script...