text
stringlengths
1
1.05M
LXI H, 3629H ; BCD-1 LXI D, 4738H ; BCD-2 MOV A, L ; A = L ADD E ; A += E DAA ; A yı BCD ye çevirir. MOV C, A ; C = A Result lower MOV A, H ; A = H ADC D ; A += (D + Elde) DAA ; A yı BCD ye çevirir. MOV B, A ; B = A Result high HLT ; HL ve DE deki BCD sayıları toplar, ; sonucu BC ye yazar.
// Copyright (c) 2011-2016 The Flericoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "WalletServiceErrorCategory.h" namespace CryptoNote { namespace error { WalletServiceErrorCategory WalletServiceE...
object_const_def ; object_event constants const ROUTE42_FISHER const ROUTE42_POKEFAN_M const ROUTE42_SUPER_NERD const ROUTE42_FRUIT_TREE1 const ROUTE42_FRUIT_TREE2 const ROUTE42_FRUIT_TREE3 const ROUTE42_POKE_BALL1 const ROUTE42_POKE_BALL2 const ROUTE42_SUICUNE Route42_MapScripts: db 2 ; scene scripts scen...
frame 1, 12 frame 2, 24 frame 1, 12 endanim
; ; jcgrass2.asm - grayscale colorspace conversion (SSE2) ; ; x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; Copyright (C) 2011, D. R. Commander. ; For conditions of distribution and use, see copyright notice in jsimdext.inc ; ; This file should be assembled with NASM (Netwide Ass...
// QOL improvements //.org 0x80068DC // Respawn Heart/Star Data when date changes, // // but this removes Fortune effect. // // Taken from Virtual Console. // bl 0x80668A8 // Spawn Heart Data // bl 0x8068CCC // Spawn Star Data .org 0x80255A8 ldr r2,=bugfix_videomanTapeDodgeTarget|1 bx r2 .org 0x80255C0 ldr r2,=...
; Multiplier ratios for all stats from modifier -6 to +6 ; (except accuracy, see data/battle/accuracy_multipliers.asm). ; This table is identical to data/battle/stat_multipliers_2.asm. ; This one is used by CalcBattleStats. StatLevelMultipliers: db 25, 100 ; -6 = 25% db 28, 100 ; -5 = 28% db 33, 100 ; -4 = 3...
; A006134: a(n) = Sum_{k=0..n} binomial(2*k,k). ; 1,3,9,29,99,351,1275,4707,17577,66197,250953,956385,3660541,14061141,54177741,209295261,810375651,3143981871,12219117171,47564380971,185410909791,723668784231,2827767747951,11061198475551,43308802158651,169719408596403,665637941544507,2612577367192619 mov $2,$0 add $2,...
#ifndef DEF_VBO #define DEF_VBO #include <iostream> //#include <GL/glew.h> #define GLFW_INCLUDE_GLCOREARB //#include <GLFW/glfw3.h> #include <string.h> #include "shader_program.hpp" #include "logger.hpp" class VBO { public: VBO(GLenum target,GLenum mode,GLenum element_type,GLuint vao); VBO(GLenum target,GLenu...
; A040520: Continued fraction for sqrt(544). ; Submitted by Christian Krause ; 23,3,11,3,46,3,11,3,46,3,11,3,46,3,11,3,46,3,11,3,46,3,11,3,46,3,11,3,46,3,11,3,46,3,11,3,46,3,11,3,46,3,11,3,46,3,11,3,46,3,11,3,46,3,11,3,46,3,11,3,46,3,11,3,46,3,11,3,46,3,11,3,46,3,11 gcd $0,262156 mul $0,42 mod $0,13 mul $0,2 mov $1,$0...
clc lda {m1} adc {m2}+2 sta {m1} lda {m1}+1 adc {m2}+3 sta {m1}+1
/* * * Copyright 2016 gRPC authors. * * 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 agree...
COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: IBM late model 24-pin printer driver for Zoomer FILE: ppds24zManager.asm AUTHOR: Dave Durran REVISION HISTORY: Name Date Description ...
; A216703: a(n) = Product_{k=1..n} (49 - 7/k). ; Submitted by Christian Krause ; 1,42,1911,89180,4213755,200574738,9594158301,460519598448,22162505675310,1068725273676060,51619430718553698,2496503376570051576,120872371815599997138,5857661095679076784380,284096563140435224042430,13788153197749122873525936 mov $1,1 mov ...
/* Copyright (c) 2015-2018 The Khronos Group Inc. * Copyright (c) 2015-2018 Valve Corporation * Copyright (c) 2015-2018 LunarG, Inc. * Copyright (C) 2015-2018 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 m...
TITLE NHINIT.ASM - Near Heap Initialization/Termination module ;*** ;NHINIT.ASM - Near Heap initialization/termination module ; ; Copyright <C> 1986, Microsoft Corporation ; ;Purpose: ; This module contains near heap managment initialization and termination ; support for the BASIC 3.0 runtime. This module will only ...
; size_t dtog(double x, char *buf, uint16_t prec, uint16_t flag) __z88dk_callee SECTION code_stdlib PUBLIC _dtog_callee EXTERN dcallee1, asm_dtog _dtog_callee: call dcallee1 ; AC' = x pop af pop hl pop de pop bc push af jp asm_dtog
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 4.1.6 #12555 (Linux) ;-------------------------------------------------------- ; Processed by Z88DK ;-------------------------------------------------------- EXTERN __divschar EXTERN __divsc...
############################################################################### # File : clo.asm # Project : MIPS32 MUX # Author: : Grant Ayers (ayers@cs.stanford.edu) # # Standards/Formatting: # MIPS gas, soft tab, 80 column # # Description: # Test the functionality of the 'clo' instruction. # ##...
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END ; put 2 into ecx for future load into xmm0 mov ecx, 2 cvtsi2sd xmm0, ecx ;TEST_BEGIN_RECORDING cvtsd2ss xmm1, xmm0 ;TEST_END_RECORDING xor ecx, ecx cvtsi2sd xmm0, ecx cvtsi2sd xmm1, ecx
-- 7 Billion Humans (2087) -- -- 6: Little Exterminator 1 -- -- Author: landfillbaby -- Size: 8 -- Speed: 27 a: if s != hole: step s pickup c endif if s == hole and se == hole and w != hole and nw == hole: step w endif if s == hole and sw == hole and e != hole: step e endif jump a
; A240924: Digital root of squares of numbers not divisible by 2, 3 or 5. ; 1,4,4,7,1,1,7,4,7,1,7,4,4,7,1,7,4,7,1,1,7,4,4,1,1,4,4,7,1,1,7,4,7,1,7,4,4,7,1,7,4,7,1,1,7,4,4,1,1,4,4,7,1,1,7,4,7,1,7,4,4,7,1,7,4,7,1,1,7,4,4,1,1,4,4,7,1,1,7,4,7,1,7,4,4,7,1,7,4,7,1,1,7,4,4,1,1,4,4,7,1,1,7,4,7,1,7,4,4,7,1,7,4,7,1,1,7,4,4,1,1,4,...
// Copyright: Copyright (C) 2022 Doğa Can Yanıkoğlu // Source Code: https://github.com/dyanikoglu/ALS-Community #include "Character/Animation/Notify/ALSNotifyStateEarlyBlendOut.h" #include "Character/ALSBaseCharacter.h" void UALSNotifyStateEarlyBlendOut::NotifyTick(USkeletalMeshComponent* MeshComp, UAnimS...
; =============================================================== ; Dec 2013 ; =============================================================== ; ; char *_strrstrip(const char *s) ; ; Return ptr to first whitespace char of the trailing whitespace ; chars in s. ; ; If s consists entirely of whitespace then s is returne...
; COPYRIGHT (c) 1995,99,2002 XDS. All Rights Reserved. ; Implementation for cos & cosl functions cpu 386 bits 32 %ifdef OS2 group DGROUP _DATA section _DATA use32 align=4 FLAT public 'DATA' %else group DGROUP _DATA section _DATA use32 align=4 public '...
;MusicMaker for Chip16 ;Shendo, May 2011 ; ;r0 - Selector X coordinate (in board coordinates) ;r1 - Selector Y coordinate (in board coordinates) ;r2 - Unused ;r3 - Unused ;r4 - Unused ;r5 - Unused ;r6 - Play timeout ;r7 - Play cursor (0 to 29) ;r8 - Player state (0 - stopped, 1 - playing) ;r9 - PAD1 timeout...
.386 ; Tells the machine that x86 intel architecture will be used .model flat ; Flat memory segementation model .code ; Code area ; Now, we start the procedure start PROC ; The word PROC is the keyword for procedure mov eax,213 ...
; void *p_forward_list_front_fastcall(p_forward_list_t *list) SECTION code_clib SECTION code_adt_p_forward_list PUBLIC _p_forward_list_front_fastcall EXTERN asm_p_forward_list_front defc _p_forward_list_front_fastcall = asm_p_forward_list_front
Map_ObjHCZ_1F2CE: dc.w word_1F2DC-Map_ObjHCZ_1F2CE dc.w word_1F2DC-Map_ObjHCZ_1F2CE dc.w word_1F2F0-Map_ObjHCZ_1F2CE dc.w word_1F304-Map_ObjHCZ_1F2CE dc.w word_1F318-Map_ObjHCZ_1F2CE dc.w word_1F33E-Map_ObjHCZ_1F2CE dc.w word_1F364-Map_ObjHCZ_1F2CE word_1F2DC: dc.w 3 dc.b $FD, $D, 0, 0, $FF, $A0...
; public domain!! ; Atan8[n] = atan( n/256 ) * 180 / pi ; 0 <= n < 256 ; ; Revision History: ; 93/ 8/15 Initial: atandeg.asm/master.lib 0.21 .MODEL SMALL .DATA public AtanTableDeg, _AtanTableDeg AtanTableDeg label byte _AtanTableDeg label byte db 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 db 4, 4, 4, 4...
; ---------------------------------------------------------------------------------------------------------------------------------------------------------------- ; int run1(in CodeBuffers src)::located://asmrun/sigclient?run1#run1_(CodeBuffers~in) ; public static ReadOnlySpan<byte> run1_ᐤCodeBuffersᕀinᐤ => new byte[19...
; A188509: Triangle read by rows: T(n,k) (n >= 1, 1 <= k <= n) is the maximal number of colors in a vertex coloring of the cube graph Q_n such that no subgraph Q_k is a rainbow. ; 1,1,3,1,5,7,1,9,13,15,1,17,25,29,31,1,33,49,57,61,63,1,65 seq $0,131437 ; (A000012 * A131436) + (A131436 * A000012) - A000012. seq $0,30109...
; A217701: Permanent of the n X n matrix with all diagonal entries n and all off diagonal entries 1. ; Submitted by Christian Krause ; 1,1,5,38,393,5144,81445,1512720,32237681,775193984,20759213061,612623724800,19751688891385,690721009155072,26039042401938917,1052645311044368384,45424010394042998625,2083972769418997760...
.thumb .include "../../_FuncLib/_Definitions.h.s" .include "../../_FuncLib/MokhaRAMSpace.s" SET_FUNC_INLINE _1D9DC_Loop6C_MoveLimitView @ new_MapMovement: 0x1 Blue/ 0x20 Red/ 0x40 Green @ new_RangeMap: 0x2 Red/ 0x4 Green/ 0x10 Blue _1D9DC_Loop6C_MoveLimitView: push {r3-r7, lr} mov r4, r0 _blh1 GetGameClo...
test START 0 BYTE 0xff + 1 END test
.include "defines.asm" .slot "RAM" .orga $80 .RAMSECTION "scratchpad" SLOT "RAM" FORCE wScratchpad: ds 10 .ENDS
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main() { int T; cin >> T; while (T--) { int M, N; int m = 1, n=1; long long input, output=0; vector<long long> MS, NS; cin >> M ...
# input value is in $0 # returns the square of the input in $0 # check for negative number andi $1 $0 0x80 clr $2 # if this passes, input is positive beq $1 $2 square # otherwise negate it inv $0 $0 addi $0 $0 0x01 # do the square calculation square: clr $1 loop_top: add $2 $2 $0 addi $1 $1 0x01 bne...
/* MIT License Copyright (c) 2021 Attila Kiss 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, merge, publish, dis...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_D_ht+0x143fd, %rsi lea addresses_WC_ht+0x13f7d, %rdi nop nop sub %r12, %r12 mov $46, %rcx rep movsq nop nop nop nop mfence lea addresses_D_ht+0x14389, %r8 nop nop nop nop sub $29946, %rsi vmovu...
; A226721: Position of 2^n in the joint ranking of all the numbers 2^j for j>=0 and 5^k for k>=1; complement of A123384. ; 2,3,5,6,8,9,11,12,13,15,16,18,19,21,22,23,25,26,28,29,31,32,33,35,36,38,39,41,42,43,45,46,48,49,51,52,53,55,56,58,59,61,62,63,65,66,68,69,71,72,73,75,76,78,79,81,82,83,85,86,88,89,91,92,93,95,96,98...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x71e6, %rsi lea addresses_WC_ht+0x114a6, %rdi nop nop xor $39632, %rax mov $97, %rcx rep movsl dec %rbx lea addresses_UC_ht+0x1a9d3, %r10 nop nop nop and %rcx, %rcx mov $0x61...
#include <sfc/sfc.hpp> namespace SuperFamicom { System system; Scheduler scheduler; Random random; Cheat cheat; #include "serialization.cpp" auto System::run() -> void { if(scheduler.enter() == Scheduler::Event::Frame) if (!ppu.disabled) ppu.refresh(); } auto System::runToSave() -> void { if (!cpu.disabled) sch...
; A040553: Continued fraction for sqrt(578). ; Submitted by Christian Krause ; 24,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48,24,48 trn $0,1 mod $0,2 mul $0,24 add $0,24
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "utils/pooling_factory.hpp" #include <iterator> #include "default_opset.hpp" #include "exceptions.hpp" #include "ngraph/coordinate_diff.hpp" #include "utils/convpool.hpp" namespace ngraph { namespace onnx_import { namesp...
; A266221: Total number of ON (black) cells after n iterations of the "Rule 7" elementary cellular automaton starting with a single ON (black) cell. ; 1,3,3,10,10,21,21,36,36,55,55,78,78,105,105,136,136,171,171,210,210,253,253,300,300,351,351,406,406,465,465,528,528,595,595,666,666,741,741,820,820,903,903,990,990,1081,...
; ; This file is automatically generated ; ; Do not edit!!! ; ; djm 12/2/2000 ; ; ZSock Lib function: sock_waitclose XLIB sock_waitclose LIB no_zsock INCLUDE "#packages.def" INCLUDE "#zsock.def" .sock_waitclose ld a,r_sock_waitclose call_pkg(tcp_all) ret nc ; We failed..are we installed? cp rc_pnf scf ;s...
#include "IEX.h" using namespace std; void print_price(const std::string& symbol) { IEX::PriceData stock; stock = IEX::Stock::getPrice(symbol); cout << "Called Endpoint: " << stock.called_endpoint << endl; cout << "Stock Symbol: " << stock.stock_symbol << endl; cout << "Latest Price: $" << stock....
; Copyright (c) 2019, Maxime Bacoux ; 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 conditions and t...
; A212886: Decimal expansion of 2/(3*sqrt(3)) = 2*sqrt(3)/9. ; Submitted by Christian Krause ; 3,8,4,9,0,0,1,7,9,4,5,9,7,5,0,5,0,9,6,7,2,7,6,5,8,5,3,6,6,7,9,7,1,6,3,7,0,9,8,4,0,1,1,6,7,5,1,3,4,1,7,9,1,7,3,4,5,7,3,4,8,8,4,3,2,2,6,5,1,7,8,1,5,3,5,2,8,8,8,9,7,1,2,9,1,4,3,5,9,7,0,5,7,1,6,6,3,5,0,1 add $0,2 seq $0,11549 ; ...
global long_mode_start extern Orchid____Orchid___method_______ section .text bits 64 long_mode_start: ; load null into all data segment registers mov ax, 0 mov ss, ax mov ds, ax mov es, ax mov fs, ax mov gs, ax call Orchid____Orchid___method_______ hlt
; ; jfdctfst.asm - fast integer FDCT (64-bit SSE2) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; Copyright (C) 2009, 2016, D. R. Commander. ; ; Based on the x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright n...
; A348978: Numerator of ratio A332993(n) / sigma(n). ; Submitted by Jon Maiga ; 1,1,1,1,1,5,1,1,1,8,1,11,1,11,7,1,1,31,1,6,29,17,1,23,1,20,1,25,1,17,1,1,15,26,43,67,1,29,53,38,1,71,1,13,11,35,1,47,1,27,23,46,1,47,67,53,77,44,1,37,1,47,23,1,79,37,1,20,31,113,1,139,1,56,53,67,89,131,1,26,1,62,1,155,103,65,39,83 mov $1,$...
; A094838: The longest subsequence length that provides an example for A094837. ; 1,1,2,2,2,3,4,4,5,6,6,7,7,8,8,9,9,10,10,11,12,12,13,13,14 lpb $0 pow $0,2 sub $0,1 dif $0,5 lpe add $0,2 mul $0,6 div $0,11
// TODO: Enable compilation w/o -fno-sycl-early-optimizations option. // See https://github.com/intel/llvm/issues/2264 for more details. // RUN: %clangxx -fsycl -fno-sycl-early-optimizations %s -o %t.out // RUNx: %ACC_RUN_PLACEHOLDER %t.out //==----------------- fpga_lsu.cpp - SYCL FPGA LSU test --------------------==...
;hello.asm ; turns on an LED which is connected to PB5 (digital out 13) .include "./m328Pdef.inc" ldi r16,0b00100000 out DDRB,r16 ; Set data direction to out out PortB,r16 ; Set pins high or low Start: rjmp Start
############################################################################### # Copyright 2018 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") containe...
//===- LegalizeDAG.cpp - Implement SelectionDAG::Legalize -----------------===// // // 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 // //===---------------------------...
.include "defaults_mod.asm" table_file_jp equ "exe6-utf8.tbl" table_file_en equ "bn6-utf8.tbl" game_code_len equ 3 game_code equ 0x4252354A // BR5J game_code_2 equ 0x42523545 // BR5E game_code_3 equ 0x42523550 // BR5P card_type equ 1 card_id equ 88 card_no equ "088" card_sub equ "Mod Card 088" card_sub_x ...
bits 64 xor rax, rax xor rcx, rcx xor al, 1
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: OVRLipSyncContextBase #include "Glo...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
; A006472: a(n) = n!*(n-1)!/2^(n-1). ; Submitted by Jon Maiga ; 1,1,3,18,180,2700,56700,1587600,57153600,2571912000,141455160000,9336040560000,728211163680000,66267215894880000,6958057668962400000,834966920275488000000,113555501157466368000000,17373991677092354304000000,2970952576782792585984000000,56448098958873059133...
#include "Clipboard.h" #include <QClipboard> #include <QDebug> #include <QGuiApplication> #include <QMimeData> #include <algorithm> #include "ComboOptions.h" #include "editor/Settings.h" struct CopyState { std::list<Item> m_items; qint32 m_copy_length; // TODO: move this to editstate so you can see others' par...
; A226279: a(4n) = a(4n+2) = 2*n , a(4n+1) = a(4n+3) = 2*n-1. ; 0,-1,0,-1,2,1,2,1,4,3,4,3,6,5,6,5,8,7,8,7,10,9,10,9,12,11,12,11,14,13,14,13,16,15,16,15,18,17,18,17,20,19,20,19,22,21,22,21,24,23,24,23,26,25,26,25,28,27,28,27,30,29,30,29 mov $1,$0 div $0,4 mul $0,2 gcd $1,2 add $1,$0 sub $1,2 mov $0,$1
#include <stdexcept> #include <boost\test\unit_test.hpp> using namespace std; BOOST_AUTO_TEST_SUITE( TestPointerMemoryAllocation ) BOOST_AUTO_TEST_CASE( TestNewDelete ) { char *name = new char[100]; strcpy_s( name, 100, "TestNewDelete" ); BOOST_CHECK_EQUAL( name, "TestNewDelete" ); char *another_name = name;...
; int ba_priority_queue_pop_fastcall(ba_priority_queue_t *q) SECTION code_adt_ba_priority_queue PUBLIC _ba_priority_queue_pop_fastcall _ba_priority_queue_pop_fastcall: INCLUDE "adt/ba_priority_queue/z80/asm_ba_priority_queue_pop.asm"
.gba .open "../bin/m12.gba",0x8000000 //============================================================================== // Relocation hacks //============================================================================== // Move the weird box font from 0xFCE6C .org 0x80B3274 :: dw m2_font_relocate //================...
.Model Tiny .386 .DATA FILE DB 'ABCD.txt',0 STORE DB 100 DUP('0') .CODE .Startup ;OPENING THE FILE LEA DX, FILE MOV AH, 3DH MOV AL, 00H ;READING INT 21H ;READING DATA FROM THE FILE MOV BX, AX MOV AH, 3FH MOV CX, 37 LEA DX, STORE INT 21H MOV DI, DX MOV AH, '$' MOV [DI+3...
; A266733: a(n) = 21*binomial(n+6,7). ; 0,21,168,756,2520,6930,16632,36036,72072,135135,240240,408408,668304,1058148,1627920,2441880,3581424,5148297,7268184,10094700,13813800,18648630,24864840,32776380,42751800,55221075,70682976,89713008,112971936,141214920,175301280,216204912,265025376,322999677,391514760,472120740,56...
// Copyright (c) 2020 PaddlePaddle Authors. 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 // // Unles...
#include <algorithm> #include <cstring> #include <iostream> #include "tcptlssession.h" static ssize_t gnutls_pull_trampoline(gnutls_transport_ptr_t h, void *buf, size_t len) { auto session = static_cast<TCPTLSSession*>(h); return session->gnutls_pull(buf, len); } static ssize_t gnutls_push_trampoline(gnutls_...
; A188146: Three interleaved 1st-order polynomials: a(3*n) = 1+4*n, a(1+3*n) = 3+4*n, a(2+3*n) = 1+n. ; 1,3,1,5,7,2,9,11,3,13,15,4,17,19,5,21,23,6,25,27,7,29,31,8,33,35,9,37,39,10,41,43,11,45,47,12,49,51,13,53,55,14,57,59,15,61,63,16,65,67,17,69,71,18,73,75,19,77,79,20,81,83,21,85,87,22,89,91,23,93,95,24,97,99,25,101,1...
; First two frames in main memory org SCR_MEM_1 ins "frames/f0.bin" org SCR_MEM_2 ins "frames/f1.bin" icl 'src\atari.inc' icl 'src\macros.asm' FRAME_COUNT equ 104 SCR_MEM_1 equ $4150 SCR_MEM_1_P2 equ $5000 S...
SECTION code_clib SECTION code_fp_math48 PUBLIC mm48__addac mm48__addac: ;AC = AC + AC' ;Laeg AC' til AC. ld a,h exx add a,h mm48__aac1: exx ld h,a ld a,e exx adc a,e exx ld e,a ld a,d exx adc a,d exx ld d,a ld a,c exx adc a,c exx ld c,a ld a,b...
// Copyright Carl Philipp Reh 2009 - 2016. // 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) #include <fcppt/enum_range_impl.hpp> #include <fcppt/make_enum_range.hpp> #include <fcppt/make_enu...
db 0 ; species ID placeholder db 60, 69, 95, 36, 69, 95 ; hp atk def spd sat sdf db BUG, STEEL ; type db 45 ; catch rate db 148 ; base exp db NO_ITEM, SILVERPOWDER ; items db GENDER_F100 ; gender ratio db 100 ; unknown 1 db 15 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/wormad...
header_start: dd 0xe85250d6 ; multiboot magic number dd 0 ; protected mode code dd header_end - header_start ; header length ; checksum dd 0x100000000 - (0xe85250d6 + 0 + (header_end - header_start)) ; end tag dw 0 ; type dw 0 ; flags dd 8 ; size header_end:
#pragma once #include <stdint.h> #include "32blit.hpp" void init(); void update(uint32_t time); void render(uint32_t time);
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ ** Commercial License Usage ** Licensees holding valid comm...
include w2.inc include noxport.inc include consts.inc include structs.inc createSeg _FETCH,fetch,byte,public,CODE ; DEBUGGING DECLARATIONS ifdef DEBUG midFetchn3 equ 14 ; module ID, for native asserts endif ; EXPORTED LABELS ; EXTERNAL FUNCTIONS externFP <IbpReadFilePage> externFP <HpsAlter,ApplySprm> extern...
; SUM NUMBERS FROM 1 TO 100, THEN STORE THE RESULT IN PARAMETER S. DATA SEGMENT S DW (0) ; (?) IN EMU8086 IS ILLEGAL DATA ENDS CODE SEGMENT ASSUME DS:DATA,CS:CODE START: MOV AX,DATA MOV DS,AX MOV CX,64H MOV AX,0 MOV BX,1 AGAIN: ADD AX,BX INC BX LOOP AGAIN MOV S,AX ;MOV BX,S VERIFY TH...
; void zx_cls_wc_attr(struct r_Rect8 *r, uchar attr) SECTION code_clib SECTION code_arch PUBLIC zx_cls_wc_attr EXTERN asm_zx_cls_wc_attr zx_cls_wc_attr: pop af pop hl pop ix push hl push hl push af jp asm_zx_cls_wc_attr
; A079001: Digital equivalents of letters A, B, C, ..., Z on touch-tone telephone keypad. ; 2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9 add $0,4 lpb $0 trn $0,3 mov $2,$1 trn $2,6 add $0,$2 add $1,1 lpe
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2016 Intel Corporation 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 so...
; 각종 레지스터와 세그먼트 상태를 백업하는 매크로 %macro SEG_REG_SAVE 0 push ebp mov ebp, esp push eax push ebx push ecx push edx push esi push edi push gs push fs mov ax, es push ax mov ax, ds push ax mov ax, DataDescriptor mov es, ax %endmacro ; 각종 레지스터와 세그먼트 상태를 복구하는 매크로 ...
;SmeargleBaseStats:: kind of pointless to add unless I programm in sketch, but could give it a crazy movelist with all the most common sketched moves instead... idk. Smeargle doesn't seem to be very popular either, although I kind of like it that base attack is just freakin' awful. maybe boost from 20 to 50, at least.....
// // main.cpp // 96. Unique Binary Search Trees // // Created by admin on 2019/4/8. // Copyright © 2019年 liu. All rights reserved. // #include <iostream> #include <vector> using namespace std; class Solution { public: int numTrees(int n) { if(n<1){ return 0; } vector<int> ...
pxor xmm0, xmm8 pxor xmm1, xmm8 pxor xmm2, xmm8 pxor xmm3, xmm8 pxor xmm4, xmm8 pxor xmm5, xmm8 pxor xmm6, xmm8 pxor xmm7, xmm8 aesenc xmm0, xmm9 aesenc xmm1, xmm9 aesenc xmm2, xmm9 aesenc xmm3, xmm9 aesenc xmm4, xmm9 aesenc xmm5, xmm9 aesenc xmm6, xmm9 aesenc xmm7, xmm9 aesenc xmm0, xmm10 aesenc xmm1, xmm10 aesenc x...
; A123282: X-values of solutions to the equation 3(X-Y)^4 - 4*X*Y = 0 with X >= Y. ; Submitted by Jon Maiga ; 0,16,2744,527280,102219376,19829053904,3846720619560,746243781460336,144767444240778464,28084137902132541840,5448177985056955967896,1056918444956008893061424,205036730143381242763959120 mul $0,2 mov $1,1 lpb $...
; AddTwo.asm - adds two 32-bit integers. ; Chapter 3 example include Irvine32.inc .data var BYTE "this works", 0 .code main proc ; creating the registors needed mov ebx, 5 mov eax, 1 CDQ call Factorial call WriteDec CALL Crlf exit main ENDP ;push ebx ;return n * fun(n-1) Factorial PROC ;pushing the va...
dnl MIPS64 mpn_submul_1 -- Multiply a limb vector with a single limb and dnl subtract the product from a second limb vector. dnl Copyright 1992, 1994, 1995, 2000-2002 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 a...
#importonce .const colorRam = $d800 .const screen = $0400 .const screen_0 = $0400 .const screen_0_40 = $0428 .const screen_1 = $0500 .const screen_2 = $0600 .const screen_3 = $0700 .const NAS = 1 .label vic2_screen_control_register1 = $d011 .label vic2_screen_control_register2 = $d016 .label vic2_rasterline_register...
; ---------------------------------------------------------------- ; Z88DK INTERFACE LIBRARY FOR THE BIFROST* ENGINE - RELEASE 1.2/L ; ; See "bifrost_h.h" for further details ; ---------------------------------------------------------------- ; void BIFROSTH_resetTileImages(void *addr) SECTION code_clib SECTION code_b...
; read 16 bytes from data segment and write them on the next line ; as is, if the byte is positive ; the positive equvilant value, if the byte is negative ;------------ ; stack segment : STSEG SEGMENT DB 64 DUP (?) STSEG ENDS ;------------ ; data segment : DTSEG SEGMENT ; place program data here array DB 73H, 82...
; A016237: Expansion of 1/((1-x)(1-5x)(1-10x)). ; 1,16,191,2066,21441,218316,2202691,22124566,221733941,2219780816,22210015191,222161187066,2221917046441,22220696343316,222214592827691,2222184075249566,22222031487358941,222221268547905816,2222217453850640191,22222198380364312066 lpb $0 mov $2,$0 sub $0,1 seq $2,...
; A231720: a(0)=1, after which, for any n uniquely written as du*u! + ... + d2*2! + d1*1! (each di in range 0..i), a(n) = (du+1)*(u+1)! + ... + (d2+1)*3! + (d1+1)*2! + 1; the natural numbers with their factorial base representation (A007623) shifted left one step and each digit incremented by one, converted back to dec...
// Copyright (C) 2020 Jonathan Müller <jonathanmueller.dev@gmail.com> // This file is subject to the license terms in the LICENSE file // found in the top-level directory of this distribution. #include "../../examples/shell.cpp" #include <doctest/doctest.h> #include <lexy/input/string_input.hpp> #include <lexy/match....
100: LD SP, #4000 108: MUL R1, #3, #1 116: MUL R2, #-1, R1 124: ST y, R2 132: MUL R3, #-1, R2 140: ST x, R3 148: ADD R4, R2, R3 156: ADD R5, #3, R4 164: MUL R6, #-1, R5 172: ST z, R6 180: LD R7, #true 188: ST a, R7 196: NOT R8, R7 204: NOT R9, R8 212: NOT R10, R9 220: ST b, R10 228: NOT R11, #false 236: ST c, R11
;------------------------------------------------------------------------------ ; ; Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> ; This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution. Th...