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 |
|---|---|---|---|---|---|
;
; jcsamss2-64.asm - downsampling (64-bit SSE2)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright 2009 D. R. Commander
;
; Based on
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdex... | Teamxrtc/webrtc-streaming-node | third_party/webrtc/src/chromium/src/third_party/libjpeg_turbo/simd/jcsamss2-64.asm | Assembly | mit | 6,741 |
#include "m328Pdef.inc"
.equ freq = 16000000 ; Hz
.equ target_freq = 100000 ; Hz
.equ cycles_per_us = freq / 1000000 ; 1 us = 10^-6 s
.equ delay_in_cycles = (freq / target_freq)/2
#define ERROR_LED 7
#define SUCCESS_LED 6
#define TX_PIN 2
#define CLK_PIN 4
#define TRIGGER_PIN 0
#define CLK_HI sbi PORTD , CLK_PIN
... | toby1984/javr | examples/projects/dcf77/src/i2c.asm | Assembly | apache-2.0 | 6,720 |
;******************************************************************************
;*
;* Copyright (c) 2004 - 2006, Intel Corporation
;* All rights reserved. This program and the accompanying materials
;* are licensed and made available und... | tianocore/edk | Sample/Cpu/DebugSupport/Dxe/ia32/AsmFuncs.asm | Assembly | bsd-3-clause | 19,273 |
;------------------------------------------------------------------------------
;
; 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/ReadCs.asm | Assembly | mit | 1,024 |
push 0
push 0
st_ra 0x0
push 1
push 0
sethi 0x0200
st_ra 0x0
push 2
push 0
sethi 0x0400
st_ra 0x0
push 3
push 0
sethi 0x0600
st_ra 0x0
push 0
push 0
sethi 0x0200
ld_ra 0x0
pull_cp 1
push 1
add
st_ra 0x0
push 0
sethi 0x0400
ld_ra 0x0
pull_cp 1
push 2
add
st_ra 0x0
push 0
sethi 0x0600
ld_ra 0x0
pull_cp 1
push 3
add
st_ra... | ilebedev/stacktool | tests/emra/RA_MODE/asm_for_rb/RA01.asm | Assembly | mit | 386 |
; Listing generated by Microsoft (R) Optimizing Compiler Version 18.00.30723.0
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
_DATA SEGMENT
$SG3094 DB 0aH, '%d %p %d = %d', 00H
_DATA ENDS
PUBLIC ActionCarrier
PUBLIC sum
PUBLIC difference
PUBLIC product
PUBLIC quotient
PUBLIC modulus
PUBLIC main
EXTRN pri... | IAmAnubhavSaini/blog-posts | function pointers and delegates/function pointer.asm | Assembly | mit | 3,875 |
list p=18f4550
#include "p18f4550.inc"
CONFIG FOSC = XT_XT
CONFIG PWRT = ON ; Power-up Timer Enable bit (PWRT enabled)
CONFIG BOR = OFF ; Brown-out Reset Enable bits (Brown-out Reset disabled in hardware and software)
CONFIG WDT = OFF ; Watchdog Timer... | tocache/picomones | UPC Microcontroladores 2018-1/Ejercicios en MPASM/int0 con negador.X/maincodemon.asm | Assembly | cc0-1.0 | 1,466 |
;****************************************
;* *
;* joystick draw *
;* *
;* Does not work! *
;****************************************
; 10 SYS (49152)
*=$0801
BYTE $0E, $08, $0A... | jacmoe/c64adventures | Asm4Kids/38joystickdraw.asm | Assembly | bsd-2-clause | 1,444 |
macro comment {
Copyright (c) 2017, Davos development team.
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 con... | daveshep666/davos | source/load_idt.asm | Assembly | bsd-3-clause | 1,651 |
/*
* Scoreboard update function for decoding kernels
* Copyright © <2010>, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Eclipse Public License (EPL), version 1.0. The full text of the EPL is at
* http://www.opensource.org/licenses/eclipse-1.0.php.
*
*/
//
//... | halleyzhao/libva-intel-driver-fdo | src/shaders/h264/mc/scoreboard_update.asm | Assembly | mit | 1,638 |
;simple sum code
LDA #$05
CLC ;clear carry bit
ADC #$05 | honux77/practice | 6502/easy6502/sum.asm | Assembly | mit | 75 |
; ************************************************************************* ;
; Organizacion del Computador II ;
; ;
; Implementacion de la funcion HSL 2-variacion 1 ;
; hslTOrgb.calcRGB -> pshufd e... | ilebrero/Orga2-TP2 | src/filters/ASM_hsl2_v1.asm | Assembly | mit | 13,070 |
.data
World: .ascii "____f____"
XCoord: .byte 4
under: .ascii "_"
frog: .ascii "f"
.text
# Call main Frogger repeatedly until has to exit
main:
lui $t0, 0xFFFF
j frogger
bne $v0, $zero, exit
j main
#display a character on the screen
emitchar:
lui $t0, 0xFFFF
lw $t1, 8($t0)
andi $t1, $t1, 0x0001
beq $t1, $ze... | vonderborch/CS260 | HW7/ChristianWebber-HW9-1.asm | Assembly | mit | 1,935 |
Map_CB994: dc.w word_CB996-Map_CB994
word_CB996: dc.w $1E ; DATA XREF: ROM:000CB994o
dc.b $D8, $F, $60, 0, $FF, $9C
dc.b $D8, $F, $60, $10, $FF, $BC
dc.b $D8, $F, $60, $20, $FF, $DC
dc.b $D8, $F, $60, $30, $FF, $FC
dc.b $D8, $B, $60, $40, 0, $1C
dc.b $E0, $E, $60, $4C, 0, $34
dc.b $F... | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | Working Disassembly/General/Title/Map - SK Banner.asm | Assembly | apache-2.0 | 1,171 |
dc.w word_35D5E-Map_BPZElephantBlock
dc.w word_35D6C-Map_BPZElephantBlock
word_35D5E: dc.w 2 ; DATA XREF: ROM:00035D5Ao
dc.b $F0, $F, 0, $6E, $FF, $F8
dc.b $F0, $F, 0, $7E, 0, $18
word_35D6C: dc.w 3 ; DATA XREF: ROM:00035D5Ao
dc.b $F0, $F, 0, $6E, $FF, $F8
dc.b $F0, $F, 0, $7E, 0, ... | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | Working Disassembly/Levels/BPZ/Misc Object Data/Map - Elephant Block.asm | Assembly | apache-2.0 | 361 |
.ORIG x3000
LEA R2, B
AND R0, R0, #0
AND R3, R3, #0
ADD R3, R3, #5
ADD R0, R0, #-5
STW R0, R2, #-1
STW R0, R2, #1
BRzp ERR
AND R3, R3, #0
ERR LDW R1, R2, #1
HALT
A .FILL xDEFA
B .FILL xCEDE
.END | Zaydax/PipelineProcessor | lab3_test_harness/Lab1test/stw.asm | Assembly | mit | 213 |
;
; 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... | allwinner-ics/platform_external_libvpx | vp8/common/arm/neon/sixtappredict8x4_neon.asm | Assembly | bsd-3-clause | 15,863 |
BITS 16
org 100h
jmp START
%INCLUDE "../../../lib/io.asm"
%INCLUDE "../../../lib/string.asm"
;-------------------------------------------------------------------------
START:
MOV AX, 0x0D ; AH: 00, AL: 0D = EGA 16 COLOR
INT 10h ; call BIOS video mode
MOV AH, 0Bh
MOV BX, 00
INT 10h
MOV C... | johnnystarr/mos | src/test/io/io_print_string_c/io_print_string_c.asm | Assembly | mit | 455 |
INCLUDE "hardware.inc"
INCLUDE "header.inc"
;--------------------------------------------------------------------------
SECTION "Main",HOME
;------------------------------------
ClearSprites:
push hl
ld b,144
call wait_ly
xor a,a
ld b,$A0
ld hl,$FE00
.loop:
ld [hl+],a
dec b
jr nz,.loop
pop hl
r... | AntonioND/gbc-hw-tests | lcd/mode2/mode2_stat_timing_spr_en_dmg_mode_8x16/main.asm | Assembly | mit | 5,036 |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23506.0
TITLE D:\Projects\TaintAnalysis\AntiTaint\Epilog\src\struct-align.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
_DATA SEGMENT
$SG5418 DB '%d %d %d', 00H
ORG $+3
$SG5428 DB '%s %d %... | Dovgalyuk/AntiTaint | Epilog/asm/MSVC2015/struct-align-omitfp-stackp.asm | Assembly | apache-2.0 | 8,764 |
myloop:
add r1, r1, r25 ; r1 <= 1
add r1, r25, r1 ; r1 <= 2
add r1, r1, r2 ; r1 <= 3
add r1, r1, r3 ; r1 <= 4
add r1, r1, r4 ; r1 <= 5
xor r20, r20, r25 ; toggle lsb of r20.
j myloop ; PC = PC + 4 - 11*4 = -40 (28 hexadecimal) = go to the beginning of the program.
| dpolad/dlx | assembler/assembler.bin/my.asm | Assembly | bsd-2-clause | 285 |
./out/shl.out: ファイル形式 elf32-mist32
セクション .text の逆アセンブル:
00000000 <_start>:
0: 0d 40 00 00 wl16 r0,0x0
4: 0d 60 00 0f wh16 r0,0xf
8: 1c 00 00 00 srspw r0
c: 14 30 00 18 br 6c <check>,#al
00000010 <compare>:
10: 00 c0 01 09 cmp r8,r9
14: 14 41 03 e0 b rret,#eq
00000... | cpulabs/mist1032sa | sim/inst_level/bin/shl.asm | Assembly | bsd-2-clause | 54,175 |
;
; 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/arm/armv6/walsh_v6.asm | Assembly | bsd-3-clause | 7,532 |
;-------------------------------------------------------------------
; Praktikum SMD 2015
; M.Wahyudin (140310120031)
;
; Name : LATIH19.ASM
; Desc : Menggerakkan motor DC dengan metoda PWM
; Input : PB di P0(0,1,2)
; Output: Motor DC P1(0)
;-------------------------------------------------------------------
T_UP eq... | hyuwah/fu-praktikum-smd | Modul 4/latih19.asm | Assembly | mit | 1,362 |
PS2_COMMAND_PORT equ 0x64
PS2_STATUS_PORT equ 0x64
PS2_DATA_PORT equ 0x60
PS2_READ_CONFIG equ 0x20
PS2_WRITE_CONFIG equ 0x60
PS2_TEST_CONTROLLER equ 0xAA
PS2_ENABLE_PORT1 equ 0xAE
PS2_DISABLE_PORT1 equ 0xAD
PS2_TEST_PORT1 equ 0xAB
PS2_SEND_PORT1 equ 0xD1 ; is this right?
PS2_FAKEAS_PORT1 equ 0xD2
PS2_ENABLE_PORT2... | jaredwhitney/os3 | Drivers/PS2/PS_2.asm | Assembly | mit | 5,488 |
; Copyright 2015-2021 Matt "MateoConLechuga" Waltz
;
; 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 the follo... | MateoConLechuga/Cesium | src/flash.asm | Assembly | bsd-3-clause | 2,458 |
; Generated at 3/12/2016 8:37:32 PM
%ifndef Exclude_IOPort_Based_SerialInit
DebugStub_InitSerial:
Mov DX, 1
Mov AL, 0
Call DebugStub_WriteRegister
Mov DX, 3
Mov AL, 0x80
Call DebugStub_WriteRegister
Mov DX, 0
Mov AL, 0x01
Call DebugStub_WriteRegister
Mov DX, 1
Mov AL, 0x00... | Cyber4/Cosmos | source/Cosmos.Debug.DebugStub/Serial.asm | Assembly | bsd-3-clause | 1,292 |
; Autogenerated by the Meson build system.
; Do not edit, your changes will be lost.
%define ARCH_X86_32 1
%define ARCH_X86_64 0
%define FORCE_VEX_ENCODING 0
%define HAVE_AVX512ICL 1
%define PIC 1
; %define STACK_ALIGNMENT 16 -- Stack alignment is controlled by Chromium
%define private_prefix dav1d
| nwjs/chromium.src | third_party/dav1d/config/linux/x86/config.asm | Assembly | bsd-3-clause | 307 |
MAXWDS EQU 1200
PERM ORIG *+MAXWDS
ANS ORIG *+MAXWDS
OUTBUF ORIG *+24
CARDS EQU 16
PRINTER EQU 18
BEGIN IN PERM(CARDS)
ENT2 0
LDA EQUALS
1H JBUS *(CARDS)
CMPA PERM+15,2
JE *+2
IN PERM+16,2(CARDS)
ENT1 OUTBUF
JBUS *(PRINTER)
MOVE... | thkim1011/MIX | src/test/resources/permutation1.asm | Assembly | mit | 1,572 |
GLOBAL read_key
read_key:
in al, 60h
ret
| jcaracciolo/Arqui2016 | Kernel/asm/keys.asm | Assembly | bsd-3-clause | 45 |
;---------------------------------------
; CLi² (Command Line Interface) API
; 2016 © breeze/fishbone crew
;---------------------------------------
; MODULE: #65 getMonthNameByNumber
;---------------------------------------
; Получить 3-х буквенное назавание месяца по номеру
; i: A' - номер месяца (1-12)
; D... | LessNick/cli2 | src/system/api/getMonthNameByNumber.asm | Assembly | bsd-3-clause | 773 |
ORG 42
BSA MMA
HEAD, VECTOR
LEN, DEC 7
MAX, DEC 0
MIN, DEC 0
AVG, DEC 0
HLT
MMA, HEX 0
LDA MMA I
STA CUR
ISZ MMA
LDA MMA I
STA IN_Y
CMA
INC
STA _LEN
ISZ MMA
BUN LOOP
CUR, HEX 0
_LEN, DEC 0
_MAX, DEC -32768
_MIN, DEC 32767
_SUM, DEC 0
LOOP, LDA _SUM
ADD CUR I
STA _SUM
// Check MAX
LDA CUR I
CMA
INC
ADD _MAX
SNA
BU... | MircoT/js-pdp8 | lib/test/sources/max_min_avg.asm | Assembly | mit | 1,064 |
;Testname=test; Arguments=-fbin -obr890790.bin; Files=stdout stderr br890790.bin
%rep 5
db 0
%include "br890790_i.asm"
%endrep
db 1
| coapp-packages/nasm | test/br890790.asm | Assembly | bsd-2-clause | 144 |
/*
* All Video Processing kernels
* Copyright © <2010>, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Eclipse Public License (EPL), version 1.0. The full text of the EPL is at
* http://www.opensource.org/licenses/eclipse-1.0.php.
*
*/
#define DI_ENABLE
#include ... | fritsch/libva-intel-driver | src/shaders/post_processing/gen5_6/Core_Kernels/PL_DNDI_ALG_UVCopy_NV12.asm | Assembly | mit | 6,212 |
;[]-----------------------------------------------------------------[]
;| COMPARE.ASM -- string comparing functions |
;[]-----------------------------------------------------------------[]
;
; $Copyright: 2005$
; $Revision: 1.1.1.1 $
;
;int __fastcall Compare(const AnsiString& rhs) const;
;int __fastca... | majioa/fleco | src/strings/compare.asm | Assembly | mit | 1,970 |
;
; 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... | awatry/libvpx.opencl | vp8/encoder/arm/neon/subtract_neon.asm | Assembly | bsd-3-clause | 6,362 |
;---------------------------------------
; CLi² (Command Line Interface) hex to int converter
; 2013,2014 © breeze/fishbone crew
;---------------------------------------
; in: de,str addr | "0A"
;out: h=0,l=byte | #0a (10)
; a=0 - ok, a=#ff - wrong hex
_hex2int ld a,(de)
call ascii2Number
sla a
... | LessNick/cli2 | src/system/hex2int.asm | Assembly | bsd-3-clause | 868 |
DATA = $b500
STATUS = $b501
DIVIDER_LO = $b502
DIVIDER_HI = $b503
PORTC = $b002
HEXOUT = $f802
STROUT = $f7d1
CLOCK = 16000000
BAUD = 115200
DIVIDER = CLOCK / BAUD / 4
start = $80
mem = $82
ptr = $84
crc = $86
fcrc = $88
tmpa = $8a
... | wsoltys/AtomFpga | utils/serial.asm | Assembly | apache-2.0 | 6,620 |
; Copyright (c) 2008-2009, diamond
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
; * Redistributions of source code must retain the above copyright
; notice, this list of conditions ... | devlato/kolibrios-llvm | kernel/trunk/sec_loader/trunk/boot/fat32/bootsect.asm | Assembly | mit | 10,154 |
OPTION DOTNAME
.text$ SEGMENT ALIGN(256) 'CODE'
EXTERN OPENSSL_ia32cap_P:NEAR
PUBLIC rsaz_512_sqr
ALIGN 32
rsaz_512_sqr PROC PUBLIC
mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
mov QWORD PTR[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_rsaz_512_sqr::
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
mov rcx,r9
mov r8,QWORD PTR[40+rsp]... | dkoontz/nodegit | vendor/openssl/asm_obsolete/x64-win32-masm/bn/rsaz-x86_64.asm | Assembly | mit | 22,063 |
format elf64
use32
section '.multiboot'
Multiboot:
.magic:
dd 0x1BADB002
.flags:
dd 0x00000003
.checksum:
dd -(0x1BADB005)
section '.rodata'
Gdt:
.pointer:
dw .userData + 7 - $
dd $ - 2
dw 0x0
.kernelCode:
dd 0x00000000
dd 0x00209A00
.kernelData:
dd 0x00000000
dd 0x... | Lowl3v3l/myos_64 | arch/x86_64/boot/start.asm | Assembly | mit | 1,523 |
; label_name
label0 db "System", 0x00, " "
label1 db "User", 0x00, " "
label2 db "BRASS", 0x00, " "
label3 db "", 0x00, " "
label4 db "", 0x00, " "
label5 db "", 0x00, " "
label6 db "", 0x00, " "
label7 db "", 0x00, " "
label8 db "", 0x00, " "
label9 db "", 0x00, " ... | jasonmel/jasonmel-os | src/ftable.asm | Assembly | mit | 2,401 |
;------------------------------------------------------------------------------
;
; 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/WriteDr2.asm | Assembly | mit | 1,061 |
;/**********************************************************
;ChaiOS 0.05 Copyright (C) 2012-2015 Nathaniel Cleland
;Licensed under the ChaiOS License
;See License for full details
;
;Project: Hal
;File: SMPasm32.asm
;Path: C:\Users\Nathaniel\Documents\Visual Studio 2013\Projects\ChaiOS\Hal\SMPasm32.asm
;Created by Na... | solocle/ChaiOS | Hal/arch/i386-x64/SMPasm32.asm | Assembly | mit | 4,499 |
;******************************************************************************
;* *
;* I$$TOFS - convert a 16-bit signed integer to floating point *
;* I_TOFS v15.12.3 *
... | gexd7127/MIT-Pico-Grid | Project/New_MG/Firmware/EVAL/c2000_15.12.3.LTS/lib/src/i_tofs.asm | Assembly | mit | 3,301 |
section .data
voijuma:
db "Tuplattava nro: " ; Viesti.
.len: equ $-voijuma ; Maaritetaan .len-labelin arvoksi voijuman pituus.
newline:
db 0Ah ; Newline.
.len equ $-newline ; Newlinen pituus.
section .bss
firstnum:
resb 1 ; Varataan tilaa kayttajasyotteelle.
result:
resb 2 ; Varataan tilaa tulokselle.
gl... | putsi/assembly-bungles | doubler/doubler.asm | Assembly | mit | 2,769 |
; a PE with a checked broken MANIFEST resource
; Ange Albertini, BSD LICENCE 2012-2013
%include 'consts.inc'
%include 'headers.inc'
istruc IMAGE_DATA_DIRECTORY_16
at IMAGE_DATA_DIRECTORY_16.ImportsVA, dd Import_Descriptor - IMAGEBASE
at IMAGE_DATA_DIRECTORY_16.ResourceVA, dd Directory_Entry_Resou... | angea/corkami | src/PE/manifest_broken.asm | Assembly | bsd-2-clause | 1,815 |
;Testname=unoptimized; Arguments=-O0 -fbin -oalign13.bin; Files=stdout stderr align13.bin
;Testname=optimized; Arguments=-Ox -fbin -oalign13.bin; Files=stdout stderr align13.bin
; Test of non-power-of-2 alignment
bits 32
inc eax
inc eax
align 13
inc eax
inc eax
align 13
inc eax
inc eax
align 13
align 13 ;... | endlessm/chromium-browser | third_party/nasm/test/align13.asm | Assembly | bsd-3-clause | 356 |
/*
Copyright Oliver Kowalke 2009.
Copyright Thomas Sailer 2013.
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)
*/
/***********************************************************... | sotter/libcopp | src/libcopp/fcontext/asm/jump_x86_64_ms_pe_gas.asm | Assembly | mit | 10,027 |
.ifndef F_UART
.error "F_UART not defined!"
.endif
.ifndef F_CPU
.error "F_CPU not defined!"
.endif
; No args. F_CPU defined required
UART_init:
ldi r16, high(F_CPU/16/F_UART-1 )
out UBRRH, r16
ldi r16, low(F_CPU/16/F_UART-1)
out UBRRL, r16
ldi r16, (1<<RXEN)|(1<<TXEN)
out UCSRB, r16
; 8N... | JaCzekanski/VGA_Tetris | UART.asm | Assembly | mit | 728 |
main:
MOV r0 1 ; for (var i = 1 loop setup
start_of_loop:
CMP r0 10 ; i <= 10 loop conditional
> JMP end_of_loop
; {
PRINT r0 ;
PRINT "\n" ; console.log(i);
; }
... | astrellon/moss | docs/exercises/06-looping.asm | Assembly | mit | 478 |
.686
.model flat,stdcall
option casemap:none
include .\bnlib.inc
include .\bignum.inc
.code
;;
;; copies bn to sequence of bytes
;; returns sign
;;
;_a_
bnToBytes proc uses edi esi bn:DWORD, pBytes:DWORD
mov esi,bn
mov edi,pBytes
mov ecx,[esi].BN.dwSize
shl ecx,2
lea esi,[esi].BN.dwArray[0]
rep movsb
mov eax,[... | FloydZ/Crypto-Hash | BigNum/Mod/Io/bnToBytes.asm | Assembly | mit | 361 |
assume cs:code,ds:data
data segment
cmc_out db ' $'
cmc_in db ' $'
cmc_temp db 01
cmc_t0 dw 02
data ends
code segment
start:
mov dx,data
mov ds,dx
mov ax,2
mov cmc_t0,ax
mov ah,4ch
int 21h
code ends
end start
| vysakhpr/C-Masm-Compiler | masm/8086/out.asm | Assembly | mit | 223 |
LCD_data equ P2 ;LCD Data port
LCD_rs equ P0.0 ;LCD Register Select
LCD_rw equ P0.1 ;LCD Read/Write
LCD_en equ P0.2 ;LCD Enable
LED equ P1
ORG 0000H
LJMP MAIN
ORG 000BH ;ISR address for Timer 0
INC R0 ;To keep the count of no. of times timer has overflown
RETI
ORG 200H
MAIN:
LCALL DISPLAY_... | khushhallchandra/Microprocessor-lab | exp5/lab_work/Q2.asm | Assembly | cc0-1.0 | 7,820 |
//===========================================================================//
// GLOSS - Generic Loader for Operating System Software //
// An extensible and configurable bootloader. //
//---------------------------------------------------------------------------//
... | SlickOS/SlickOS | Modules/Gloss/Arch/x86_64/Source/IDT/ISR0E.asm | Assembly | mit | 1,105 |
/*
* All Video Processing kernels
* Copyright © <2010>, Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the ri... | uartie/vaapi-intel-driver | src/shaders/post_processing/gen5_6/Core_Kernels/PA_Scaling.asm | Assembly | mit | 4,735 |
;*****************************************************************************
;* predict-a.asm: x86 intra prediction
;*****************************************************************************
;* Copyright (C) 2005-2016 x264 project
;*
;* Authors: Loren Merritt <lorenm@u.washington.edu>
;* Holger Lubitz <h... | malvanos/Video-SIMDBench | src/asm/x86/predict-a.asm | Assembly | bsd-3-clause | 60,212 |
;------------------------------------------------------------------------------
;
; 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/WriteCr2.asm | Assembly | mit | 1,057 |
;
; jdmerge.asm - merged upsampling/color conversion (MMX)
;
; 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 cop... | endlessm/chromium-browser | third_party/libjpeg_turbo/simd/i386/jdmerge-mmx.asm | Assembly | bsd-3-clause | 4,066 |
; Program 8.8
; AVX - MASM (32-bit)
; Copyright (c) 2017 Hall & Slonka
.686
.XMM
.MODEL FLAT, C
.STACK 4096
ExitProcess PROTO stdcall, dwExitCode:DWORD
.data
vectorA REAL4 1.2, 3.4, 5.6, 7.8, 8.9, 9.0, 0.9, 9.8
vectorB REAL4 7.8, 5.6, 3.4, 1.2, 0.1, 0.0, 8.1, -0.8
vectorC DWORD 1, 1, 1, 1
vectorD DWORD -2, -2, -2, -... | brianrhall/Assembly | Chapter_8/Program 8.8_AVX/x86/Program_8.8_MASM.asm | Assembly | mit | 938 |
// init SP pointing to 256
@256
D=A
@SP
M=D
// init LCL pointing to 300
@300
D=A
@LCL
M=D
// init ARG pointing to 400
@400
D=A
@ARG
M=D
// init THIS pointing to 3000
@3000
D=A
@THIS
M=D
// init THAT pointing to 3010
@3010
D=A
@THAT
M=D
// constant
@3030
D=A // Store the numeric value in D
// PUSH
@SP
A=M // s... | theapi/nand2tetris | projects/07/MemoryAccess/PointerTest/PointerTest.asm | Assembly | mit | 5,179 |
;------------------------------------
;- Generated Initialization File --
;------------------------------------
$include (C8051F020.inc)
cseg at 0
jmp main
main:
mov P0MDOUT,#02h
mov XBR2,#40h
call Oscillator_Init
call Timer_Init
setb TR0
loop:
jnb TF0,loop
cpl P0.1
clr TF0
sjmp loop
... | tblong/school | ECET 3220/Code/Verify Oscillator/verify.asm | Assembly | mit | 932 |
; 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"
#include "asmmacros.h"
SETALIAS JIT_Box,... | qiudesong/coreclr | src/vm/arm/patchedcode.asm | Assembly | mit | 17,393 |
Image_type equ 0
Image_image equ 4
Image_x equ 8
Image_y equ 12
Image_w equ 16
Image_h equ 20
Image_source equ Component_CLASS_SIZE
Image_sw equ Component_CLASS_SIZE+4
Image_sh equ Component_CLASS_SIZE+8
Image.Create : ; Image source, int sw, int sh, int x, int y, int w, int h
methodTraceEnter
pop dword ... | jaredwhitney/os3 | Graphics/Image.asm | Assembly | mit | 4,608 |
;*!
;* \copy
;* Copyright (c) 2009-2013, Cisco Systems
;* 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 abo... | syureyi/gitTest | codec/encoder/core/x86/intra_pred.asm | Assembly | bsd-2-clause | 31,284 |
;
; 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... | nsinha/libvpx | vp8/decoder/arm/neon/idct_dequant_dc_0_2x_neon.asm | Assembly | bsd-3-clause | 2,260 |
; The Z80 tester.
;
; Copyright (C) 2012 Patrik Rak (patrik@raxoft.cz)
;
; This source code is released under the MIT license, see included license.txt.
opsize equ 4+postccf ; Size of the tested instruction sequence.
datasize equ 16 ; Size of the tested registers and data.
vecsize ... | jbert/zog | z80test-1.0/src/idea.asm | Assembly | mit | 6,668 |
;******************************************************************************
;* MMX optimized deinterlacing functions
;* Copyright (c) 2010 Vitor Sessak
;* Copyright (c) 2002 Michael Niedermayer
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the te... | leighpauls/k2cro4 | third_party/ffmpeg/libavcodec/x86/deinterlace.asm | Assembly | bsd-3-clause | 2,569 |
{ 'abc_class': 'AbcFile'
, 'minor_version': 16
, 'major_version': 46
, 'int_pool': [ undefined
, '10' ]
, 'uint_pool': [ undefined ]
, 'double_pool': [ undefined ]
, 'utf8_pool': [ undefined
, ''
, 'Object'
, 'Array'
, 'RegExp'
, ... | greyhavens/thane | tamarin-central/esc/test/sanity/base/cls.es.asm | Assembly | bsd-2-clause | 13,292 |
// --- System Core Data --
define CORE_RT_TABLE 20006h
// CORE RT TABLE
define rt_Instance 0000h
define rt_loadSymbol 0004h
define rt_loadName 0008h
define rt_interprete 000Ch
define rt_lasterr 0010h
define rt_loadaddrinfo 0014h
define rt_loadSubject 0018h
define rt_loadSubjName 001Ch
rst... | bencz/cpu-simulator | elena_lang/src30/asm/x32/core_rt.asm | Assembly | apache-2.0 | 4,707 |
global _start
%include "header.inc"
fldz
fchs
%include "footer.inc"
| copy/v86 | tests/nasm/fchs.asm | Assembly | bsd-2-clause | 79 |
mac1 MACRO
.mac1_start:
ld b,b
ld b,c
.mac1_end:
ENDM
mac2 MACRO
.mac2_start:
ld c,b
.mac1_emit:
mac1
ld c,c
.mac2_end:
ENDM
mac3 MACRO
.mac3_start:
ld d,b
.mac2_emit:
mac2
... | z00m128/sjasmplus | tests/listing/sld/sld_nested_macros.asm | Assembly | bsd-3-clause | 708 |
build/amo.elf: file format elf32-littleriscv
Disassembly of section .crt_section:
80000000 <_start>:
80000000: 00100e13 li t3,1
80000004: 00000097 auipc ra,0x0
80000008: 27408093 addi ra,ra,628 # 80000278 <test1_data>
8000000c: 02d00113 li sp,45
80000010: 0820a1af ... | SpinalHDL/VexRiscv | src/test/cpp/raw/fpu/build/amo.asm | Assembly | mit | 9,007 |
format MS COFF
include "snd.inc"
include "proc32.inc"
section '.text' align 16 code readable executable
extrn hSound
public _SetBuffer@16
public _PlayBuffer@8
align 4
_SetBuffer@16: ;str:dword, src:dword, offs:dword, size:dword
push ebx
push ecx
xor eax, eax
... | devlato/kolibrios-llvm | programs/develop/sdk/trunk/sound/src/setbuf.asm | Assembly | mit | 1,359 |
#ifdef OC_ARM_ASM
@********************************************************************
@* *
@* THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
@* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
@* GOVERNED BY A BSD-S... | blloyd75/theoraplayer | theora/lib/arm_llvm_android/armloop.asm | Assembly | bsd-3-clause | 24,875 |
;*****************************************************************************
;* x86-optimized Float DSP functions
;*
;* Copyright 2006 Loren Merritt
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser General Public
;* License... | leighpauls/k2cro4 | third_party/ffmpeg/libavutil/x86/float_dsp.asm | Assembly | bsd-3-clause | 2,805 |
PORTB EQU $1004
PORTC EQU $1003
DDRC EQU $1007
ADCTL EQU $1030
ADR2 EQU $1032
OPTION EQU $1039
TCNT EQU $0E
TOC2 EQU $18
TMSK2 EQU $24
TFLG1 EQU $23
PRTB EQU $4
PRTC EQU $3
TEMPS EQU $B600
SHOW EQU $B655
UPDATE EQU $B6AC
DELA... | raudabaugh/68hc11-lightshow | subroutines1.asm | Assembly | mit | 4,990 |
default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
section .text code align=64
EXTERN OPENSSL_ia32cap_P
global aesni_cbc_sha256_enc
ALIGN 16
aesni_cbc_sha256_enc:
lea r11,[OPENSSL_ia32cap_P]
mov eax,1
cmp rcx,0
je NEAR $L$probe
mov eax,DWORD[r11]
mov r10,QWORD[4+r11]
bt r10,61
jc NEAR aesni_cbc_sha2... | MTASZTAKI/ApertusVR | plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/deps/openssl/config/archs/VC-WIN64A/asm/crypto/aes/aesni-sha256-x86_64.asm | Assembly | mit | 88,110 |
[bits 32]
dd 9690
db "TEXT", 0
db "iConsole", 0 | jaredwhitney/os3 | _not os code/image/consoleMount.asm | Assembly | mit | 47 |
;
; VIDEO.ASM
;
; (c) Copyright 2001, P. Jakubco ml.
;
; Display adapter & video mode setup
;
;
;
.model compact
.386p
.data
nA db ?
.code
start:
cld
mov byte ptr [nA], 0 ;Na zaciatku nemame nic
mov ah, 12h
mov bh, 10h ;bl?
int 10h
test bl, 0FCh
jnz @basic_ret
mov byte ptr [nA],1 ;Zatial mame EGA... | vbmacher/qsOS | utils/hardware/video-adapter/video.asm | Assembly | apache-2.0 | 881 |
; PPU palette RAM read/write and mirroring test
; to do: check that upper two bits aren't stored
.include "prefix_ppu.a"
; Set VRAM address to $3f00 + X
; Preserved: A, X, Y
set_pal_addr:
pha
bit $2002
lda #$3f
sta $2006
txa
sta $2006
pla
rts
; Set palett... | koenkivits/nesnes | test/ppu2/source/palette_ram.asm | Assembly | mit | 2,138 |
;*****************************************************************
;* - Description: Device definition file for RC Calibration
;* - File: m165P.asm
;* - AppNote: AVR053 - Production calibration of the
;* RC oscillator
;*
;* - Author: Atmel Corporation: http://www.atmel.com
;... | smart-electro/BMS_SLAVE_V2.0 | Software/AtTiny_programmer/RC calib Projekt/Device specific/m165P.asm | Assembly | cc0-1.0 | 719 |
;==============================================================
; WLA-DX banking setup
;==============================================================
.memorymap
defaultslot 0
; rom area
slotsize $4000
slot 0 $0000
slot 1 $4000
slot 2 $8000
; ram area... | haroldo-ok/sam | example/first_test/game.asm | Assembly | apache-2.0 | 1,697 |
; This macro creates a stub for an ISR which does NOT pass it's own
; error code (adds a dummy errcode byte).
%macro ISR_NOERRCODE 1
global int_%1
int_%1:
cli ; Disable interrupts firstly.
push byte 0 ; Push a dummy error code.
push byte %1 ; Push ... | cycl0ne/poweros_x86 | system/exec/arch_x86/interrupt.asm | Assembly | apache-2.0 | 2,672 |
%ifidn __OUTPUT_FORMAT__,obj
section code use32 class=code align=64
%elifidn __OUTPUT_FORMAT__,win32
$@feat.00 equ 1
section .text code align=64
%else
section .text code
%endif
global _padlock_capability
align 16
_padlock_capability:
L$_padlock_capability_begin:
push ebx
pushfd
pop eax
mov ecx,eax
xor eax,2097152
... | MTASZTAKI/ApertusVR | plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/deps/openssl/config/archs/VC-WIN32/asm/engines/e_padlock-x86.asm | Assembly | mit | 17,041 |
; Refer to http://wiki.osdev.org/ATA_in_x86_RealMode_(BIOS) for full
; documentation.
; @function: detect
; @brief: detect drive parameters via int 13h, ah=8h.
; @parameters: none.
detect:
pusha
xor ax, ax
mov es, ax
mov di, ax
mov ah, 0x8
mov dl, [boot_drive]
int 0x13
jnc .ok
popa
ret ; use defau... | foreverbell/BadAppleOS | boot/disk.asm | Assembly | mit | 2,123 |
########### helloIO.asm on p. 26-27 #############
# Miguel Rodriguez #
# helloIO.asm #
# Description #
# Program which displays a message #
# Program Logic #
# 1. Ask for a me... | miguel2192/CSC-211-Assembly | HelloIO/helloIO.asm | Assembly | mit | 1,718 |
assume cs:code, ds:data
data segment public
tmp db 5 dup(?), ':', '$'
aux db 10 dup('1'), '$'
data ends
code segment public
public tipar
tipar:
push ax
push bx
push cx
push dx
mov bx, offset tmp + 5
mov cx, 10
bucla:
mov dx, 0
div cx
dec bx
add dl, '0'
mov byte ptr [bx], dl
cmp ax, 0
jne buc... | rusucosmin/courses | ubb/asc/lab11/RusuCosmin_11_tipar.asm | Assembly | mit | 411 |
start:
inc a
jp start | Lionel07/Ymgyrch-Old | test/loop.asm | Assembly | mit | 23 |
test START 0
LDA =1
ORG 5000
LTORG
END test
| kloboves/sicxe | tests/testdata/codegen-in-5-bad.asm | Assembly | mit | 106 |
include "defines.inc"
include "plus3dos.inc"
PUBLIC dodos
PUBLIC mypager
PUBLIC defaultBank
PUBLIC fputc_cons
PUBLIC _logNum
PUBLIC _toggleSpinner
PUBLIC _myexit
VARS equ 0x5c4b
DOS_SET_1346 equ 0x013f
ERR_NR equ 0x5c3a ; BASIC system variables
; copy all the data from this page to elsewhere in the memory map
;cop... | pjshumphreys/querycsv | env/zx/plus3dos/plus3dos.asm | Assembly | mit | 4,710 |
[bits 32]
dd MathTest.$FILE_END - MathTest.$FILE_START
db "OrcaHLL Class", 0
db "MathTest", 0
MathTest.$FILE_START :
dd MathTest._init
MathTest._init:
pop dword [MathTest._init.returnVal]
push eax
push ebx
push edx
mov ax, 0x0104
int 0x30
call MathTest.getNumber
mov [MathTest._init.$local.y], ecx
mov ecx, [MathTest.... | jaredwhitney/os3 | OrcaHLL/MathTest.asm | Assembly | mit | 1,693 |
; a PE with fake .NET EntryPoint, imports but no COM directory
; Ange Albertini, BSD LICENCE 2013
%include 'consts.inc'
%include 'headers.inc'
istruc IMAGE_DATA_DIRECTORY_16
at IMAGE_DATA_DIRECTORY_16.ImportsVA, dd Import_Descriptor - IMAGEBASE
at IMAGE_DATA_DIRECTORY_16.TLSVA, dd Image_Tl... | angea/corkami | src/PE/fakenet.asm | Assembly | bsd-2-clause | 3,580 |
%include "util.mac"
extern buffer, array, newline, newlinesize, outprompt, outpromptsize, inputarray
section data
maxprompt: db 'MAXIMUM: '
minprompt: db 'MINIMUM: '
mpromptsize: equ 9
section .bss
max: resb 1
min: resb 1
section .text
global _start
_start:
call inputarray
mov byte [max], 0
mov byte [min],... | aaiijmrtt/JUCSE | SystemsProgramming/p8.asm | Assembly | mit | 780 |
; Compiling command: nasm core.asm -f bin -o os.bin
[BITS 16] ; 16-bit mode
[ORG 0x7C00] ; easy
; Switching mode
mov ah, 0
mov al, 0x13 ; VGA mode (320x200x8bit)
int 0x10
mov ax, 0A000h ; Video offset
mov es, ax
mov cx, 0
start:
mov ah, 0
int 0x16
cmp ah, 72 ; UP key code
je key_up_pressed ; Jump if... | Shemplo/asm-etudes | sandbox/video_mod_v1/core.asm | Assembly | apache-2.0 | 757 |
bits 64
movd r8d, mm1
movd r8, mm1
movq r8, mm1
movd [rax], mm1
movq [rax], mm1
movd dword [rax], mm1
; movq dword [rax], mm1
movd qword [rax], mm1
movq qword [rax], mm1
; movd mm2, mm1
movq mm2, mm1
| coapp-packages/nasm | test/movd64.asm | Assembly | bsd-2-clause | 229 |
;------------------------------------------------------------------------------
;
; 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/ReadDr0.asm | Assembly | mit | 1,027 |
_test1: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
int n = 1;
void test_func(void *arg_ptr);
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 20 ... | phung001/xv6_lab2_mark | test1.asm | Assembly | mit | 64,501 |
// 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/06/max/MaxL.asm
// Symbol-less version of the Max.asm program.
@0
D=M
@1
D=D-M
@10
D;JGT
@1
D=M
@12
0;JMP
@0
D=M
@2
M=D
@14
0;JMP | josecu/nand2tetris | projects/06/max/MaxL.asm | Assembly | apache-2.0 | 309 |
.386
.model FLAT,STDCALL
OPTION CASEMAP:NONE
INCLUDE \masm32\INCLUDE\WINDOWS.INC
INCLUDE \masm32\INCLUDE\USER32.INC
INCLUDE \masm32\INCLUDE\KERNEL32.INC
INCLUDE \masm32\INCLUDE\COMCTL32.INC
INCLUDELIB \masm32\LIB\USER32.LIB
INCLUDELIB \masm32\LIB\KERNEL32.LIB
INCLUDELIB \masm32\LIB\COMCTL32.LIB
WinMain PROTO:d... | chaohu/Daily-Learning | Assembly/Homework/6-9.asm | Assembly | mit | 2,831 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.