code
stringlengths
2
1.05M
repo_name
stringlengths
5
101
path
stringlengths
4
991
language
stringclasses
3 values
license
stringclasses
5 values
size
int64
2
1.05M
; ================================================================== ; MikeOS -- The Mike Operating System kernel ; Copyright (C) 2006 - 2013 MikeOS Developers -- see doc/LICENSE.TXT ; ; FAT12 FLOPPY DISK ROUTINES ; ================================================================== ; ---------------------------...
clarkeaa/tinyschemeos
src/disk.asm
Assembly
mit
28,757
dc.w word_46D2C-Map_SSZRetractingSpring dc.w word_46D2E-Map_SSZRetractingSpring dc.w word_46D36-Map_SSZRetractingSpring dc.w word_46D56-Map_SSZRetractingSpring dc.w word_46D70-Map_SSZRetractingSpring dc.w word_46D84-Map_SSZRetractingSpring word_46D2C: dc.w 0 ; DATA XREF: ROM:00046D20o word_46D2E: dc.w 1 ...
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
Working Disassembly/Levels/SSZ/Misc Object Data/Map - Retracting Spring.asm
Assembly
apache-2.0
1,166
; fake use of OpenGL32 api ; Ange Albertini, BSD LICENCE 2009-2011 %include 'consts.inc' IMAGEBASE equ 400000h org IMAGEBASE bits 32 SECTIONALIGN equ 1000h FILEALIGN equ 200h istruc IMAGE_DOS_HEADER at IMAGE_DOS_HEADER.e_magic, db 'MZ' at IMAGE_DOS_HEADER.e_lfanew, dd NT_Signature - IMAGEBAS...
angea/corkami
wip/tricks/opengl.asm
Assembly
bsd-2-clause
3,736
forever: inner: ldi r16, 45 ldi r17, 12 mov r0, r16 mov r1, r17 add r0, r1 sub r0, r1 mul r16, r17 and r0, r1 or r0, r1 inc r5 brne inner inc r4 brne inner inc r21 cpi r21, 16 brne inner break
minf/avrora
src/avrora/test/bench/synth_big.asm
Assembly
bsd-3-clause
215
Ä [11] Programaci¢n de Demos (2:341/136.5) ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ R34.DEMOS.PROG Ä Msg : 24 of 26 From : Pedro Anton Alonso 2:342/6.9 13 Apr 96 17:56:00 To : Antonio Tejada Lacaci ...
khromalabs/Hypnotic
lib/senos.asm
Assembly
bsd-3-clause
2,661
; ; Copyright (c) 2016, Alliance for Open Media. All rights reserved ; ; This source code is subject to the terms of the BSD 2 Clause License and ; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License ; was not distributed with this source code in the LICENSE file, you can ; obtain it at www.aome...
shacklettbp/aom
aom_dsp/arm/loopfilter_mb_neon.asm
Assembly
bsd-2-clause
20,777
.text # spec for addx addiu $s0 $0 2 addiu $s1 $0 -1 addu $s2 $s0 $s1 addi $s1, $s2, 32 addiu $s1, $s1, 32 add $s0, $s1, $s2 addu $s0, $s0, $s1 # spec for andx add $s0, $s2, 31 add $s1, $s2, 15 and $s0, $s0, $s1 andi $s2, $s0, 8 # spec for shift sll $s2, $s1, 1 srl $s1, $s1, 1 addiu $s0, $zero, 0xff sra $s0, $s0, 4 ...
sabertazimi/hust-lab
architecture/lab3/test/asm/cpu_test.asm
Assembly
mit
1,816
; This file is a part of the IncludeOS unikernel - www.includeos.org ; ; Copyright 2015 Oslo and Akershus University College of Applied Sciences ; and Alfred Bratterud ; ; 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 ...
AndreasAakesson/IncludeOS
src/platform/x86_pc/apic_boot.asm
Assembly
apache-2.0
2,533
;; 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. .586 .model flat option casemap:none .code ;; -------------------------------------------------------------------...
zenos-os/zenos
vendor/corert/src/Native/Runtime/i386/CallingConventionConverterHelpers.asm
Assembly
mit
5,182
.export _TitleScreenLogoImage .segment "RODATA" _TitleScreenLogoImage: .byte 21 .byte 14 .include "../graphics/trl_logo_merged.map"
puzzud/retroleague
src/game/image_maps.asm
Assembly
mit
140
Ani_36A58: dc.w byte_36A70-Ani_36A58 dc.w byte_36A73-Ani_36A58 dc.w byte_36A76-Ani_36A58 dc.w byte_36A79-Ani_36A58 dc.w byte_36A7F-Ani_36A58 dc.w byte_36A82-Ani_36A58 dc.w byte_36A85-Ani_36A58 dc.w byte_36A88-Ani_36A58 dc.w byte_36A8B-Ani_36A58 dc.w byte_36A91-Ani_36A58 dc.w byte_36A9A-Ani_36A58 ...
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
Working Disassembly/General/2P Zone/Anim - Item.asm
Assembly
apache-2.0
818
//push constant 3030 @3030 D=A @SP A=M M=D @SP M=M+1 //pop pointer 0 @0 D=A @3 A=D+A D=A @R13 M=D @SP M=M-1 A=M D=M @R13 A=M M=D //push constant 3040 @3040 D=A @SP A=M M=D @SP M=M+1 //pop pointer 1 @1 D=A @3 A=D+A D=A @R13 M=D @SP M=M-1 A=M D=M @R13 A=M M=D //push constant 32 @32 D=A @SP A=M M=D @SP M=M+1 //pop th...
josecu/nand2tetris
projects/07/MemoryAccess/PointerTest/PointerTest.asm
Assembly
apache-2.0
879
global loader global scheduleNow extern main extern initializeKernelBinary extern userSchedToKernel extern kernelSchedToUser extern setNextProcess %macro pusha 0 push rax push rbx push rcx push rdx push rbp push rdi push rsi push r8 push r9 push r10...
Matuteale/tp2-so-2016
Kernel/loader.asm
Assembly
bsd-3-clause
1,835
OPTION DOTNAME .text$ SEGMENT ALIGN(256) 'CODE' EXTERN OPENSSL_ia32cap_P:NEAR PUBLIC bn_mul_mont_gather5 ALIGN 64 bn_mul_mont_gather5 PROC PUBLIC mov QWORD PTR[8+rsp],rdi ;WIN64 prologue mov QWORD PTR[16+rsp],rsi mov rax,rsp $L$SEH_begin_bn_mul_mont_gather5:: mov rdi,rcx mov rsi,rdx mov rdx,r8 mov rcx,r9 mov...
jdgarcia/nodegit
vendor/openssl/asm/x64-win32-masm/bn/x86_64-mont5.asm
Assembly
mit
55,456
; ; jidctred.asm - reduced-size IDCT (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...
endlessm/chromium-browser
third_party/libjpeg_turbo/simd/x86_64/jidctred-sse2.asm
Assembly
bsd-3-clause
22,117
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, 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...
tenpoku1000/UEFI_SecureBoot
src/lib/external/BSD/UDK/MdePkg/Library/BaseLib/X64/ReadMm1.asm
Assembly
mit
1,122
; ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license and patent ; grant that can be found in the LICENSE file in the root of the source ; tree. All contributing project authors may be found in the AUTHORS ; file in the root of the sour...
allwinner-ics/platform_external_libvpx
vp8/decoder/arm/armv6/dequant_idct_v6.asm
Assembly
bsd-3-clause
4,714
; ˜€ ‚ Ÿ™ˆŠ… ;ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ .model tiny .code org 100h START: mov AX,0003h ;¢ª«î祭¨¥ ०¨¬  ¨ ®ç¨á⪠ íªà ­  int 10h mov AX,0B800h mov ES,AX ; ¤à¥á ¢¨¤¥®¡ãä¥à  mov DX,offset Ek ;¢ë¢®¤ ¨£à®¢®£® ¯®«ï m...
ivan-uskov/micro-controllers
assembler/#tae/primer2.asm
Assembly
mit
5,451
; --COPYRIGHT--,BSD_EX ; Copyright (c) 2012, Texas Instruments Incorporated ; 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 ...
ckemere/ELEC327
MSP430G2xx3_Code_Examples/Assembly_CCS/msp430g2xx3_ta_20.asm
Assembly
mit
4,785
; nes video.asm .export _PrintColorSet .export _ClearScreen .export _PrintText .export _DrawImage .autoimport on .importzp sp, sreg, regsave, regbank .importzp tmp1, tmp2, tmp3, tmp4, ptr1, ptr2, ptr3, ptr4 .macpack longbranch .include "nes.asm" .segment "ZEROPAGE" ImageWidth: .res 1 ImageHeight: .res 1 ...
puzzud/retroleague
src/nes/video.asm
Assembly
mit
7,825
;;; @@@ arch:aarch64 @@@ ;;; @@@ endian:little @@@ ;;; @@@ syntax:intel @@@ ;;; ;;; AARCH64 little endian sys_execve("/bin/sh") shellcode ;;; ;;; @_hugsy_ ;;; ;;; get some space on the stack add sp, sp, 2048 ldr x7, =0x2f62696e str x7, [sp, -4]! ldr x7, =0x2f2f7368 str x7, [sp, -4]! ;;; x0 = &sp ;;; x1...
hugsy/cemu
cemu/examples/aarch64_execve_bin_sh.asm
Assembly
mit
425
#The Ditto Virtual Machine VPU #============================= #Flag register control #x86_64 VPU FLAGS register = RSI write 0 = RAX, write 1 = RDX #User write 0 for control transfer. Use write 1 for data. #ZF (FLAGS bit 0 -> 1) i_vpu_flags_zf_g: #Get zero flag. mov rdx, rsi and rdx, 0x1 jmp rax i_vpu_flags_z...
ozdevguy/Ditto
VM/src/Linux/VPU/x86_64/SR/flags.asm
Assembly
apache-2.0
3,760
Map_66A52: dc.w word_66A5C-Map_66A52 dc.w word_66A6A-Map_66A52 dc.w word_66A78-Map_66A52 dc.w word_66A86-Map_66A52 dc.w word_66A94-Map_66A52 word_66A5C: dc.w 2 dc.b $F0, 6, 0, 0, $FF, $FC dc.b 8, 4, 0, 6, $FF, $F4 word_66A6A: dc.w 2 dc.b $F0, 6, 0, 8, $FF, $FC dc.b 8, 4, 0...
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
Working Disassembly/Levels/MHZ/Misc Object Data/Map - Knuckles Peering.asm
Assembly
apache-2.0
581
__ld: mov rdx, rcx __str: mov rdx, rcx
ozdevguy/Ditto
VM/src/Linux/VPU/x86_64/DTU/dtu.asm
Assembly
apache-2.0
44
;公共数据段 PUBLIC BUF,MOUSE_BUF PUBLIC CUR_X, CUR_Y, PRE_X, PRE_Y PUBLIC ON_LEFT_CLICK, ON_RIGHT_CLICK GLOBAL SEGMENT PUBLIC BUF DB 16384 DUP(?);8192 DUP(?) ;缓冲区 MOUSE_BUF DB 228 DUP(?) CUR_X DW ? ;当前鼠标坐标 CUR_Y DW ? PRE_X ...
xohozu/aEditor
bin/src/DATA.asm
Assembly
mit
541
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 ...
so1h/so1h
PRACT0/SO1H/asm/ints.asm
Assembly
bsd-2-clause
40,929
;****************************************************************************** ;* VP9 loop filter SIMD optimizations ;* ;* Copyright (C) 2015 Ronald S. Bultje <rsbultje@gmail.com> ;* ;* This file is part of FFmpeg. ;* ;* FFmpeg is free software; you can redistribute it and/or ;* modify it under the terms of the GNU Le...
endlessm/chromium-browser
third_party/ffmpeg/libavcodec/x86/vp9lpf_16bpp.asm
Assembly
bsd-3-clause
24,829
bits 32 section .text ;; loadGDT: func (GDTDescriptor*) global loadGDT loadGDT: push eax mov eax, [esp+0x8] ; get the struct pointer lgdt [eax] ; load the GDT pop eax ;; Reload CS register containing code selector: ;; We can't directly alter CS, so we far jump to change it jmp 0x0...
fasterthanlime/oos
Src/Kernel/Hal/Hal.asm
Assembly
mit
3,394
%include "include.asm" section .text global flush_gdt_tss flush_gdt_tss: ; rdi: gdt ; rsi: GDT_SIZE ; rdx: tss sub rsp, 10 mov word [rsp], si mov qword [rsp + 2], rdi lgdt [rsp] mov ax, GDT_TSS ltr ax add rsp, 10 ret
vincegogh/ByteOS
kernel/cpu/flush.asm
Assembly
mit
234
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23506.0 include listing.inc INCLUDELIB MSVCRT INCLUDELIB OLDNAMES PUBLIC __local_stdio_printf_options PUBLIC _vfprintf_l PUBLIC printf PUBLIC func PUBLIC main EXTRN __imp___acrt_iob_func:PROC EXTRN __imp___stdio_common_vfprintf:PROC...
Dovgalyuk/AntiTaint
Epilog/asm/MSVC2015-64/func-rets-omitfp-opt-stackp.asm
Assembly
apache-2.0
5,958
; ================================================================ ; DevSound macros ; ================================================================ if !def(incDSMacros) incDSMacros set 1 Instrument: macro db \1 if "\2" == "_" dw DummyTable else dw vol_\2 endc if "\3" == "_" dw DummyTable else...
DevEd2/DevSound
DevSound_Macros.asm
Assembly
mit
782
; Initialize the stack pointer MOV XL, 0xFF MOV XH, 0xFF MOV SP, X ; Call some subroutines... CALL :ADD_FUNCTION MOV G, 3 ; Write register G to the Output Port OUTB G CALL :SUB_FUNCTION MOV G, 4 ; Write register G to the Output Port OUTB G ; Stops program execution HLT :ADD_FUNCTION MOV G, 1 ; Write register G...
KPU-RISC/KPU
Assembler/AssemblyCode/CALL_ALU.asm
Assembly
mit
426
; a DLL with no DLLMain, and no imports (to be loaded dynamically) ; Ange Albertini, BSD LICENCE 2012-2013 %include 'consts.inc' IMAGEBASE equ 1000000h org IMAGEBASE bits 32 SECTIONALIGN equ 1000h FILEALIGN equ 200h istruc IMAGE_DOS_HEADER at IMAGE_DOS_HEADER.e_magic, db 'MZ' at IMAGE_DOS_H...
angea/corkami
src/PE/dllnomain2.asm
Assembly
bsd-2-clause
4,174
;/*++ ; ;Copyright (c) 2006, 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. The full text of the license may be foun...
google/google-ctf
third_party/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/Ia32/EfiSetMem.asm
Assembly
apache-2.0
3,608
; Moving around 8 bit and 16 bit subsections of eax, ebx, and ecx SECTION .data SECTION .text global _start _start: nop mov ax,067FEh mov bx,ax mov cl,bh mov ch,bl xchg cl,ch mov eax,1 ; Code for Exit Syscall mov ebx,0 ; Return a code of zero int 80H ; Make kernel call ...
inothnagel/asm
ex_mov_register_parts.asm
Assembly
mit
336
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2015 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...
Intel-HLS/GKL
src/main/native/compression/isa-l-master/erasure_code/gf_6vect_mad_avx.asm
Assembly
mit
11,988
BITS 64 [MAP all] trampoline_param_size EQU 4 trampoline_size EQU 5 jit: ; Push the stuff we need to preserve by ABI push rbx ; Store the return address in RBX mov rbx,qword [rsp+08] push rsi push rdi mov rdx,rcx ; Block copy all the LEA insn lea rsi, [rel start] lea rdi, [rbx-tra...
damageboy/ReJit
ReJIT/Intrinsics/btc32.asm
Assembly
mit
595
; File: IBW26.ASM ; iButton reader with 26 bit Wiegand output - ; This code reads an arriving iButton and then presents the compromised ; iButton ID out as Wiegand formatted pulses. Output pulses are low-going, ; 100us wide with 2ms minimum between pulses. ; The clock/crystal frequency is assumed to be nominally 4 M...
AriZuu/OneWire
lib/misc_micro/PIC/ibw26.asm
Assembly
mit
11,652
_ln: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp 6: 83 ec 10 ...
tzulang/xv6_4
ln.asm
Assembly
mit
40,566
list p=18f4550 ;Modelo del microcontrolador #include <p18f4550.inc> ;librería de nombres ;Zona de los bits de configuración del microcontroleitor CONFIG FOSC = XT_XT ; Oscillator Selection bits (XT oscillator (XT)) CONFIG PWRT = ON ; Power-up Timer Enable bit (PWR...
tocache/picomones
UPC Sistemas Digitales 2018-2/20182_sisdig_autoKITTbadguy.X/cancha_paguerselectaaa.asm
Assembly
cc0-1.0
2,268
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 3.3.0 #8604 (Dec 30 2013) (Linux) ; This file was generated Thu Jul 23 10:29:03 2015 ;-------------------------------------------------------- .module at .optsdcc -mmcs51 --model-large ;----...
YifanJiangPolyU/SiK-master-Yifan-TDMA
Firmware-Yifan-TDMA/obj/rfd900/radio~rfd900/at.asm
Assembly
bsd-2-clause
35,389
use32 org 0x0 db 'MENUET01' ; 8 byte id dd 0x01 ; header version dd START ; start of code dd I_END ; size of image dd 0x10000 ; memory for app dd 0x10000 ; esp dd param_area ; I_Param dd app_path ; I_Path include 'she...
devlato/kolibrios-llvm
programs/system/shell/test.asm
Assembly
mit
533
;******************************************************************************** ; DOES IT WORK? WORKS, BUT, ... SEE VERSION 15 FOR WORKING CODE ; FILENAME: METROKNOME ; VERSION: 17 ; DATE: 01DEC2016 ; FILE SAVED AS: 16F648A_MetroKnomeV17.asm ; MICROCONTROLLER: PIC16F648A ; CLOCK FREQUENCY: 32.768kHz ...
Brian1273/ECE_411
Project_Metronome/Code/16F648A_MetroKnomeV17.asm
Assembly
mit
17,422
;; hello.asm - a basic hello world program... %define textcolor 0x09 %macro print 1 ; parameter is the start of the string to print pusha mov bp, sp mov si, %1 %%loop: mov al, [si] inc si or al, al ; see if were done jz %%exit mov ah, 0x0E mov bh, 0x0 mov bl, textcolor int 0x10 jmp %%loop...
chsrobotc/hipOS
programs/hello.asm
Assembly
mit
460
INCLUDE "hardware.inc" INCLUDE "header.inc" ;-------------------------------------------------------------------------- ;- RESTART VECTORS - ;-------------------------------------------------------------------------- SECTION "RST_00",HOME[$0000] ret ; Rese...
AntonioND/gbc-hw-tests
interrupts/serial_int_handle_timing_gbc_mode/init.asm
Assembly
mit
6,368
;------------------------------------------------------------------------------ ; ; Copyright (c) 2007, 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...
google/google-ctf
third_party/edk2/EdkCompatibilityPkg/Foundation/Library/CompilerStub/Ia32/memcpyRep4.asm
Assembly
apache-2.0
2,088
;***************************************************************************** ;* cabac-a.asm: h264 encoder library ;***************************************************************************** ;* Copyright (C) 2008 x264 project ;* ;* Author: Loren Merritt <lorenm@u.washington.edu> ;* Jason Garrett-Glaser <dar...
bamos/parsec-benchmark
pkgs/apps/x264/src/common/x86/cabac-a.asm
Assembly
bsd-3-clause
3,865
.686p .mmx .model flat,stdcall option casemap:none option prologue:none option epilogue:none extern rc4keytable:DWORD .code rc4_crypt proc ptrData:DWORD, lData:DWORD pushad mov edi, dword ptr [esp+20h+4+4] ;lData mov esi, dword ptr [esp+20h+4] ;ptrData test edi, edi jz @rc4_enc_exit xor eax, eax xor ebx,...
FloydZ/Crypto-Hash
ecdsa128/src/aRC4_src/src/rc4_crypt.asm
Assembly
mit
669
; adresse 0200 in Speicher 00 und 01 speichern lda #$00 ;xpos sta $0 lda #$02 ;ypos sta $1 lda #$00 ;y counter sta $3 ldy $3 ;y initialisieren draw: lda $03 cmp #$ff beq newLine lda #$3 ; Wert 3 (türkis) in akku laden ; 1 an die Adresse aus Speicher 00+y schreiben sta ($00), y iny sty $03 ;y zwischen...
raeffu/ginf-assembler
dot-by-dot.asm
Assembly
mit
477
;--------------------------------------- ; CLi² (Command Line Interface) parser & commands ; 2013,2016 © breeze/fishbone crew ;--------------------------------------- ; Command line parser ;--------------------------------------- ; In: de, command string addr ; hl, table of commands list ; bc, номер т...
LessNick/cli2
src/system/commands.asm
Assembly
bsd-3-clause
9,074
; ; Copyright (c) 2016, Alliance for Open Media. All rights reserved ; ; This source code is subject to the terms of the BSD 2 Clause License and ; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License ; was not distributed with this source code in the LICENSE file, you can ; obtain it at www.aome...
endlessm/chromium-browser
third_party/libaom/source/libaom/aom_dsp/x86/sad_sse2.asm
Assembly
bsd-3-clause
10,920
;Testname=unoptimized; Arguments=-O0 -felf -oelfso.o; Files=stdout stderr elfso.o ;Testname=optimized; Arguments=-Ox -felf -oelfso.o; Files=stdout stderr elfso.o ; test source file for assembling to ELF shared library ; build with: ; nasm -f elf elfso.asm ; ld -shared -o elfso.so elfso.o ; test with: ; gcc ...
techkey/nasm
travis/test/elfso.asm
Assembly
bsd-2-clause
2,811
.286 dosseg .model small, basic .stack .data hat db 1 hatter dw 23 .code start: ;mov ax, seg dgroup ; SET DS TO ADDRESS ;mov ds, ax ; DGROUP inc hat nop nop inc hatter nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop ;.exit end start
jonesm/Gloom
extra/simple.asm
Assembly
mit
314
.ORG 0x0000 ; global interrupt disable cli ; initialize stack ldi r31,HIGH(RAMEND) out SPH,r31 ldi r31,LOW(RAMEND) out SPL,r31 ; initialize trigger B1 ldi r16, 0b11 ; portB,1 = output (triggers) out DDRB, r16 rjmp main ;.include "./Speck_Sce1_LinRAM.asm" .include "./Speck_Sce1_EncDecWithKeySch...
FreeDisciplina/BlockCiphersOnAVR
SPECK_64_128_AVR/Speck_Sce1_EncDecWithKeySch/interface.asm
Assembly
mit
3,160
.area MAIN(ABS) .org 0x00 LJMP START; .org 0x30 petla1: DJNZ R0, petla1; RET START: MOV P1, #0b00000000; MOV R0, #16 ; swiecenie przez krotszy okres czasu, dzieki czemu widac efekt LCALL petla1; MOV P1, #0b00111111; MOV R0, #255 ; nieswiecenie dluzej LCALL petla1; LJMP START...
pbanaszkiewicz/air_eaiib_tm_8051
diody2.asm
Assembly
mit
322
.686 include \masm32\include\io.asm .data msgInput db "Type dimension of matrix N $> ",0 i dd 0 j dd 0 n dd 0 .code start: ;looks great if n > 20 outstr offset msgInput inint32 eax mov n, eax mul n mov ecx, eax mov eax, n .while ecx > 0 .if j >= eax mov j, 0 inc i newline .endif mov ebx,...
KubSU/SIOMASM
Examples/Matrices/matrix.asm
Assembly
mit
484
;Read several character strings from the stardard input. Print a message on the screen if the first string appears as sequence in all the other strings. assume cs:code, ds:data, es:data data segment public maxLenStr db 200 lenStr db ? s db 200 dup (?) S2 db 100 dup (?) len_s2 dw ? printMsg db "Enter the strings...
Zephyrrus/ubb
YEAR 1/SEM1/ASC/LAB9/P11.asm
Assembly
mit
1,636
Map_22BD1A: dc.w Frame_22BD20-Map_22BD1A dc.w Frame_22BD2E-Map_22BD1A dc.w Frame_22BD3C-Map_22BD1A Frame_22BD20: dc.w 2 dc.b $F8, 5, 0, 0,$FF,$F0 dc.b $F8, 5, 8, 0, 0, 0 Frame_22BD2E: dc.w 2 dc.b $F8, 5, 0, 4,$FF,$F0 dc.b $F8, 5, 8, 4, 0, 0 Frame_22BD3C: dc.w 2 dc.b $FC, 5, 0, 0,$FF,$F0...
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
Working Disassembly/General/Sprites/Buttons/Map - Button 2.asm
Assembly
apache-2.0
352
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2015 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...
abperiasamy/minio-xl
pkg/erasure/gf_vect_dot_prod_avx.asm
Assembly
apache-2.0
6,514
;================================================================================ ; Dialog Pointer Override ;-------------------------------------------------------------------------------- DialogOverride: LDA $7F5035 : BEQ .skip LDA $7F5700, X ; use alternate buffer RTL .skip LDA $7F1200, X RTL ;---------------...
mmxbass/z3randomizer
dialog.asm
Assembly
mit
28,409
;;kpopper.asm bits 32 ;nasm directive - 32 bit section .text ;multiboot spec align 4 dd 0x1BADB002 ;magic dd 0x00 ;flags dd - (0x1BADB002 + 0x00) ;checksum, m+f+c = 0 global start extern kmain ;kmain defined in the c file start: cli ;block interrupts mov esp, stack_space ;set stack pointer call kmain...
vestlen/kernel-popper
kpopper.asm
Assembly
mit
396
;******************************************** ; Copyright 2020 David Aylaian ; https://github.com/davidaylaian/carbon/ ; Licensed under the Apache License 2.0 ;******************************************** ; multiboot constants MULTIBOOT_ALIGN equ 1<<0 ; page boundaries MULTIBOOT_MEMINFO equ 1<<1 ; memory map MULTIB...
DavidAylaian/CarbonOS
kernel/kernel/arch/x86/start.asm
Assembly
apache-2.0
925
/* Assembly functions for the Xtensa version of libgcc1. Copyright (C) 2001, 2002, 2003, 2005, 2006 Free Software Foundation, Inc. Contributed by Bob Wilson (bwilson@tensilica.com) at Tensilica. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU G...
avaitla/Haskell-to-C---Bridge
gccxml/GCC/gcc/config/xtensa/lib1funcs.asm
Assembly
bsd-3-clause
14,982
; label as macro name (new in v1.13.1) triggers segfault with "--sym=..." option LabelAsMacroName MACRO arg1?, arg2? ld a,arg1? ld hl,arg2? ENDM LabelAsMacroName 1,$1234 SomeRegularLabel: nop
z00m128/sjasmplus
tests/listing/Issue57_segfault.asm
Assembly
bsd-3-clause
286
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright (c) 2015, 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: ; ; * Redistribu...
lukego/intel-ipsec
code/avx2/mb_mgr_hmac_sha_256_flush_avx2.asm
Assembly
bsd-3-clause
8,943
; credit: http://wiki.osdev.org/A20_Line ; ; return: 0 in AX if the a20 line is disabled (memory wraps around) ; 1 in AX if the a20 line is enabled (memory does not wrap around) check_a20: ; {{{ pushf push ds push es push di push si cli xor ax, ax ; ax = 0 mov es, ax not ax ; ax = 0xffff ...
semahawk/figh
boot/a20.asm
Assembly
bsd-3-clause
1,887
OPTION DOTNAME .text$ SEGMENT ALIGN(64) 'CODE' PUBLIC sha512_block_data_order ALIGN 16 sha512_block_data_order PROC PUBLIC mov QWORD PTR[8+rsp],rdi ;WIN64 prologue mov QWORD PTR[16+rsp],rsi mov rax,rsp $L$SEH_begin_sha512_block_data_order:: mov rdi,rcx mov rsi,rdx mov rdx,r8 mov rcx,r9 push rbx push rbp p...
domenicosolazzo/philocademy
venv/src/node-v0.10.36/deps/openssl/asm/x64-win32-masm/sha/sha512-x86_64.asm
Assembly
mit
24,699
kernel: file format elf32-i386 Disassembly of section .text: f0100000 <_start+0xeffffff4>: f0100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh f0100006: 00 00 add %al,(%eax) f0100008: fe 4f 52 decb 0x52(%edi) f010000b: e4 .byte 0xe4 f010000c <entry>: .gl...
dalegebit/DamnOS-DamnFS
src/kernel.asm
Assembly
mit
194,530
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/04/Fill.asm // Runs an infinite loop that listens to the keyboard input. // When a key is pressed (any key), the program blackens the screen, // i.e. write...
YeEmrick/learning
nand2tetris/projects/04/fill/Fill.asm
Assembly
apache-2.0
1,653
; an int 2a based delay loop (anti emulation) %include '..\..\standard_hdr.asm' EntryPoint: mov esi,80h xor edi,edi loop0: int 2ah mov ecx,eax loop1: int 2ah cmp eax,ecx je loop1 mov ecx,eax mov ebx,eax int 2ah mov ecx,eax loop2: int 2ah cm...
angea/corkami
wip/MakePE/examples/anti/int2a_loop.asm
Assembly
bsd-2-clause
728
section .text global _start _start: and eax, ecx and ecx, edx and edx, ebx and ebx, esp and esp, ebp and ebp, esi and esi, edi
tangentforks/vanar
src-C/arch/IA32/and.asm
Assembly
bsd-3-clause
134
#define IVT_ADDRESS 0x500 #define IVT_SYSCALL 0x80 .ivt_size DAT 0 ; IN ; +1 Interrupt handler ; +2 Offset ; OUT ; None :register_irq STO Z,SP STO Y,[Z+1] ; interrupt handler STO C,[Z+2] ; interrupt offset STO [IVT_ADDRESS+C],Y ; save the interrupt handler ADD [ivt_size],1 STO SP,Z RET ; IN ; None ; OU...
michalmalik/pvm
examples/ivt.asm
Assembly
mit
932
section .data Success NewString "Success" Fail NewString "Fail" section .text RunTests: ; call clear_screen ; call test_disk_save ; call wait_key call clear_screen call MemoryFunctionTests call wait_key call clear_screen call PrintTest call wait_key call clear_screen call Int...
musicman89/DND-1-in-8086-Assembly
Test/Tests.asm
Assembly
mit
747
_forktest: file format elf32-i386 Disassembly of section .text: 00000000 <printf>: #define N 1000 void printf(int fd, char *s, ...) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 18 sub $0x18,%esp write(fd, s, strlen(s)); 6: 8b 45 0c ...
MatanGilead/myxv6
forktest.asm
Assembly
mit
20,977
bits 16 org 0x1000 ap_trampoline: cli xor eax, eax mov ds, ax mov WORD [GDT_Limit], 23 mov ax, GDT_Long mov DWORD [GDT_Base], eax mov eax, 10100000b mov cr4, eax mov edx, 0x50000 mov cr3, edx mov ecx, 0xC0000080 rdmsr or eax, 0x00000100 wrmsr mov ebx, cr0 or ebx, 0x80000001 ...
Rudster816/wnos
source/boot/trampoline.asm
Assembly
bsd-2-clause
758
C -*- mode: asm; asm-comment-char: ?C; -*- C nettle, low-level cryptographics library C C Copyright (C) 2013, Niels Möller C C The nettle library is free software; you can redistribute it and/or modify C it under the terms of the GNU Lesser General Public License as published by C the Free Software Foundation; either v...
GaloisInc/hacrypto
src/C/nettle/nettle-2.7.1/arm/memxor.asm
Assembly
bsd-3-clause
9,215
VERSION_LARGE_NUM equ 1 VERSION_SMALL_NUM equ 0 bits 32 section .bss ;Creating a stack align 16 stack_b: resb 8196 ; 8Kb stack stack_t: section .text global start extern init_terminal start: mov esp, [stack_t] ;mov eax, 0x00b8000 ;mov ebx, text_t ;mov ecx, text_b ;call write_t...
TheCynosure/CynOS
boot/boot_cyno.asm
Assembly
mit
675
// Super Smash Bros. lag frame counter demonstration // Game mode must be set to time and time must not set to infinite (so the timer is displayed) arch n64.cpu endian msb //output "", create include "LIB/N64.inc" include "LIB/macros.inc" origin 0x0 insert "LIB/Super Smash Bros. (U) [!].z64" origin 0x31BB8 base 0x8...
abitalive/SuperSmashBros
Patches/lag_frame_counter.asm
Assembly
mit
1,298
; Virtual-3D library, version 1.0 ; ; MIT License ; ; Copyright (c) 2017 - 2021 TheMachine02 ; ; 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...
TheMachine02/Virtual3D
lib/framebuffer.asm
Assembly
mit
5,912
;------------------------------------------------------------------- ; Praktikum SMD 2015 ; M.Wahyudin (140310120031) ; ; Name : LATIH22.ASM (PROG1B) ; Desc : Menggunakan timer 0 di mode 0 ; Input : P3.4 masukkan pencacah ; Output: 7Seg(P1) ;------------------------------------------------------------------- setb ...
hyuwah/fu-praktikum-smd
Modul 5/prog1b.asm
Assembly
mit
1,316
; animated logo ; using b&w bitshifters frame by @horsenburger for Bad Apple \\ Letter positions (columns) \\ b [2-4] \\ i [5-6] \\ t [7-10] \\ s [11-13] \\ h [14-17] \\ i [18-19] \\ f [20-22] \\ t [23-26] \\ e [27-30] \\ r [31-33] \\ s [34-36] \\ Ascender/descender positions (columns) \\ b [2-3] up - 0x20, 0x6a \\ ...
bitshifters/teletextr
src/fx/logoanim.asm
Assembly
mit
7,343
; lab 08 /* Part A */ /* Activity 1 */ ;initialize the stack pointer at the TOS .org 0x00 ldi r16, high(ramend) out sph, r16 ldi r16, low(ramend) out spl, r16 ; data direction register B set input for Port B ldi r16, 0x00 out ddrb, r16 ; setting Port D as output ldi r16, 0xFF out ddrd, r16 ; if bit 1 of pinb is...
audihurrr/micro
lab08_partA_activity1.asm
Assembly
mit
2,701
.text .globl partition # Setup the left address, right address, and pivot stuff partition: addi $sp, $sp, -12 sw $a0, 0($sp) #left sw $a1, 4($sp) #right sw $ra, 8($sp) #return addi $a1, $a1, -1 addi $t0, $a0, -1 #left address addi $t1, $a1, 1 #right address addi $t2, $a1, -1 #pivot address lw $t2, 0($t2) ja...
vonderborch/CS260
HW5/ChristianWebber-HW5-2.asm
Assembly
mit
1,084
0D00 16 7D 0D02 1E 7E 0D04 21 00 0E 0D07 46 0D08 23 0D09 4E 0D0A 23 0D0B 72 0D0C 23 0D0D 73 0D0E 76 0E00 B1 0E01 C1 0E02 00 0E03 00
colinw7/CZ80
data/mcp/asm/prog_06_01.asm
Assembly
mit
133
;***************************************************************************** ;* sad-a.asm: h264 encoder library ;***************************************************************************** ;* Copyright (C) 2003-2008 x264 project ;* ;* Authors: Loren Merritt <lorenm@u.washington.edu> ;* Jason Garrett-Glaser...
mdsalman729/flexpret_project
emulator/concurrit-poplsyntax/concurrit-poplsyntax/bench/x264/src/x264/common/x86/sad-a.asm
Assembly
bsd-3-clause
37,970
.686p .mmx .model flat,stdcall option casemap:none option prologue:none option epilogue:none extern __mod:DWORD extern __c:DWORD include ..\..\lib\gfp.inc .data? modSpace VBIGINT<> .code modulo proc ptrA:DWORD, ptrC:DWORD ;c=a mod __mod ;HAC, Algorithm 14.47 pushad mov esi, dword ptr [esp+20h+4] ;ptrA mov...
FloydZ/Crypto-Hash
ecdsa128/src/GFp_src/src/modulo.asm
Assembly
mit
773
;***************************************************************************** ;* Copyright (C) 2013-2017 MulticoreWare, Inc ;* ;* Authors: Nabajit Deka <nabajit@multicorewareinc.com> ;* Murugan Vairavel <murugan@multicorewareinc.com> ;* Min Chen <chenm003@163.com> ;* ;* This program is free so...
ninetian/ffmpeginstaller
x265/source/common/x86/v4-ipfilter16.asm
Assembly
apache-2.0
105,516
; Fraktal Mandelbrota (148 bajtów) ; kompilacja: nasm frac.asm -o frac.com ; Wojciech Mu³a ; 31.08.2001 ; 1.09.2001 ; 14.04.2004 -- polskie komentarze org 100h ; format COM iterations equ 64 ; liczba iteracji %define set_palette start: ;; ustawienie trybu graf...
WojciechMula/toys
asmfractal/frac.asm
Assembly
bsd-2-clause
4,383
BITS 32 GLOBAL _start SECTION .text _start: itoa: ; eax must contain the number that needs to be converted. ; ebx must point to a buffer that would store the converted string. ; The buffer must have at least 12 bytes to contain maximum 4-byte number ; including minus sign. push ebp mov ...
intellectualheaven/ceed
lib/atoi_itoa.asm
Assembly
bsd-2-clause
3,608
include w2.inc include noxport.inc include consts.inc include structs.inc createSeg clsplc_PCODE,clsplcn,byte,public,CODE ; DEBUGGING DECLARATIONS ifdef DEBUG midClsplcn equ 26 ; module ID, for native asserts endif ; EXTERNAL FUNCTIONS externFP <FChngSizePhqLcb> ext...
lborgav/Historical-Source-Codes
Microsoft Word for Windows Version 1.1a/Word 1.1a CHM Distribution/Opus/asm/clsplcn.asm
Assembly
mit
35,554
;SYSTEM COLORS (.DTP) - COMPILE WITH FASM frame dd 0x131313 grab dd 0x3E3E3E grab_button dd 0x904e2b grab_button_text dd 0x341e0e grab_text dd 0xaa552f work dd 0xc8c8c8 work_button dd 0xc8c8c8 work_button_text dd 0x000000 work_text dd 0x000000 work_gra...
devlato/kolibrios-llvm
skins/humanoid_OSX/humanoid_OSX_orange/default.dtp.asm
Assembly
mit
341
OPTION DOTNAME .text$ SEGMENT ALIGN(64) 'CODE' ALIGN 16 _x86_64_AES_encrypt PROC PRIVATE xor eax,DWORD PTR[r15] xor ebx,DWORD PTR[4+r15] xor ecx,DWORD PTR[8+r15] xor edx,DWORD PTR[12+r15] mov r13d,DWORD PTR[240+r15] sub r13d,1 jmp $L$enc_loop ALIGN 16 $L$enc_loop:: movzx esi,al movzx edi,bl movzx ebp,cl m...
chromium2014/src
third_party/boringssl/win-x86_64/crypto/aes/aes-x86_64.asm
Assembly
bsd-3-clause
61,822
;------------------------------------------------------------------------------- ; sys_intvecs.asm ; ; (c) Texas Instruments 2009-2010, All rights reserved. ; .sect ".intvecs" ;------------------------------------------------------------------------------- ; import reference for interrupt routines ...
openthread/ot-rtos
third_party/freertos/repo/FreeRTOS/Demo/CORTEX_R4_RM48_TMS570_CCS5/startup/sys_intvecs.asm
Assembly
bsd-3-clause
890
global _start extern long_mode_start section .text bits 32 _start: mov esp, stack_top mov edi, ebx ; Move multiboot info pointer to edi call check_multiboot call check_cpuid call check_long_mode call set_up_page_tables call enable_paging call set_up_SSE ; load the 64-bit G...
AtheMathmo/toy-os
boot/asm/boot.asm
Assembly
mit
4,909
global _start section .text _start: ;syscall for socket ;cat /usr/include/i386-linux-gnu/asm/unistd_32.h | grep socket ;#define __NR_socketcall 102 (0x66 in hex) ;sock_file_des = socket(AF_INET, SOCK_STREAM, 0) ;AF_INET = 2 ( bits/socket.h) ;SOCK_STREAM = 1 (bits/socket.h) ;socket(2,1,0) xor eax, eax ; z...
sajithshetty/SLAE32
Assignment1/bindshell_prog.asm
Assembly
cc0-1.0
3,098
;Testname=br3028880; Arguments=-Ox -fbin -obr3028880.o; Files=stdout stderr br3028880.o %macro import 1 %defstr %%incfile %!PROJECTBASEDIR/%{1}.inc %defstr %%decfile %!'PROJECTBASEDIR'/%{1}.dec db %%incfile, `\n` db %%decfile, `\n` %endmacro %ifenv PROJECTBASEDIR import foo %else %warning No PROJECTBASEDIR defi...
techkey/nasm
travis/test/br3028880.asm
Assembly
bsd-2-clause
591
; ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license ; that can be found in the LICENSE file in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing proje...
blloyd75/theoraplayer
vpx/vp8/encoder/x86/quantize_mmx.asm
Assembly
bsd-3-clause
8,135
BITS 32 global cpu_nop global cpu_int_enable global cpu_int_disable global cpu_halt cpu_nop: nop ret cpu_int_disable: cli ret cpu_int_enable: sti ret cpu_halt: hlt ret
katajakasa/KatajaOS
src/system/cpua.asm
Assembly
mit
225
.def counter_x r0 .def counter_y r1 .def comp r2 .def s_zero r3 .def s_one r4 .label setup .label entry_addr loadi counter_x, vram_width loadi counter_y, vram_height rst s_zero loadi s_one, 1 sub counter_x, s_one sub counter_y, s_one push dword, msg_welcome push dword, 29 push word, sys_write sys...
KCreate/stackvm
examples/boxes.asm
Assembly
mit
1,157
#include "kernel.inc" #include "corelib.inc" .db "KEXC" .db KEXC_ENTRY_POINT .dw start .db KEXC_STACK_SIZE .dw 20 .db KEXC_NAME .dw program_name .db KEXC_HEADER_END program_name: .db "KnightOS test runner", 0 start: ; load dependencies kld(de, corelibPath) pcall(load...
Willem3141/knighttest
main.asm
Assembly
mit
4,469