max_stars_repo_path
stringlengths
3
255
max_stars_repo_name
stringlengths
5
116
max_stars_count
int64
0
107k
id
stringlengths
1
7
content
stringlengths
63
1.05M
Advanced Programming/hm9/console32/console32/example1.asm
eugenetriguba/academic-courses
0
201117
; <NAME> <<EMAIL>> ; Advanced Programming: Homework 9 ; ; Compute sum = 158 + number + number1, ; where number is initialed to -105 .586 .MODEL FLAT .STACK 4096 .DATA number DWORD -105 number1 DWORD 12 sum DWORD ? .CODE main PROC mov eax, [number] ; move number into EAX add eax, ...
test/autogen/gen_z88.asm
tgtakaoka/libasm
15
201119
<gh_stars>10-100 ;;; AUTO GENERATED FILE ;;; generated by: gen_z8 -u -C Z88C00 -o gen_z88.asm -l gen_z88.lst CPU Z88C00 ORG 0100H DEC >01H DEC 10H DEC @02H ADD R0, R3 ADD R0, @R4 ADD >06H, >05H ADD 10H, >05H ADD >07H, @0...
_build/dispatcher/jmp_ippsHashGetInfo_rmf_0075d345.asm
zyktrcn/ippcp
1
201120
<gh_stars>1-10 extern m7_ippsHashGetInfo_rmf:function extern n8_ippsHashGetInfo_rmf:function extern y8_ippsHashGetInfo_rmf:function extern e9_ippsHashGetInfo_rmf:function extern l9_ippsHashGetInfo_rmf:function extern n0_ippsHashGetInfo_rmf:function extern k0_ippsHashGetInfo_rmf:function extern ippcpJumpIndexForMergedLi...
libsrc/stdio/spc1000/generic_console_ioctl.asm
Toysoft/z88dk
0
201121
MODULE generic_console_ioctl PUBLIC generic_console_ioctl SECTION code_clib INCLUDE "ioctl.def" EXTERN generic_console_cls EXTERN __console_h EXTERN __console_w EXTERN __spc1000_mode EXTERN generic_console_font32 EXTERN generic_console_udg32 INCLUDE "target/spc1000/def/spc1000.def" ; a = ioctl ; de = a...
programs/oeis/134/A134158.asm
karttu/loda
1
201122
; A134158: a(n) = 1 + 27n + 252n^2 + 882n^3 + 1029n^4. ; 1,2191,24583,109513,324013,759811,1533331,2785693,4682713,7414903,11197471,16270321,22898053,31369963,42000043,55126981,71114161,90349663,113246263,140241433,171797341,208400851,250563523,298821613,353736073,415892551,485901391,564397633,652041013,749515963,85753...
maps/Route9.asm
Dev727/ancientplatinum
28
201123
object_const_def ; object_event constants const ROUTE9_YOUNGSTER1 const ROUTE9_LASS1 const ROUTE9_YOUNGSTER2 const ROUTE9_LASS2 const ROUTE9_POKEFAN_M1 const ROUTE9_POKEFAN_M2 Route9_MapScripts: db 0 ; scene scripts db 0 ; callbacks TrainerCamperDean: trainer CAMPER, DEAN, EVENT_BEAT_CAMPER_DEAN, CamperDea...
resources/asm/font-00.asm
aa-dav/SimpX
0
201124
font-00 dw $0000 dw $0000 dw $0000 dw $f000 dw $00f0 dw $f000 dw $0000 dw $0000 dw $0000 dw $f000 dw $00f0 dw $00f0 dw $000f dw $ff00 dw $0000 dw $f000 dw $0000 dw $f000 dw $000f dw $0000 dw $00f0 dw $f0f0 dw $0000 dw $0000 dw $0000 dw $0000 dw $0000 dw $0000 dw...
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_200.asm
ljhsiun2/medusa
9
201125
<reponame>ljhsiun2/medusa .global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_UC_ht+0xaee9, %rsi lea addresses_A_ht+0x5569, %rdi nop nop and $53733, %r14 mov $76, %rcx rep movsw nop nop xor %r10, %r10 lea addresses_WC_ht+0xba6b, %rsi n...
SIGINT Implementation in xv6 OS/programming.asm
akhil-reddy/Undergrad-Academic-Projects
0
201126
<reponame>akhil-reddy/Undergrad-Academic-Projects<filename>SIGINT Implementation in xv6 OS/programming.asm _programming: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "types.h" #include "stat.h" #include "user.h" #include "fcntl.h" int main(int argc,char* argv[]){ 0: 55 ...
code/5-S-3.asm
gdzhang2012/Assembly-Language-by-Wangshuang
0
201127
<reponame>gdzhang2012/Assembly-Language-by-Wangshuang assume cs:codesg codesg segment mov ax,0ffffh mov ds,ax mov bx,6 mov al,[bx] mov ah,0 mov dx,0 mov cx,3 s: add dx,ax loop s mov ax,4c00h int 21h codesg ends end
tests/Data_transfer/add.asm
ZubinGou/8086-emulator
39
201128
<reponame>ZubinGou/8086-emulator NAME Data_transfer TITLE add assume cs:codesg,ds:datasg ; this is add proc ;; datasg segment data1 db 1,0ffh ,101B,'$ 2', 'WoW:),Zp* ' dw 0123h, 0456H,0abch ,0defh,110101001b msg1 DD 1023, 10001001011001011100B,5C2A57F2H ARRAY db 2 DUP (1,101b , 'Y') ;? mgs2 db 3 ...
libsrc/_DEVELOPMENT/string/c/sccz80/_memlwr__callee.asm
meesokim/z88dk
0
201129
<reponame>meesokim/z88dk<filename>libsrc/_DEVELOPMENT/string/c/sccz80/_memlwr__callee.asm ; char *_memlwr_(void *p, size_t n) SECTION code_string PUBLIC _memlwr__callee EXTERN asm__memlwr _memlwr__callee: pop hl pop bc ex (sp),hl jp asm__memlwr
asm/6502/os/symbols.asm
fcatrin/clc88
6
201130
<reponame>fcatrin/clc88<filename>asm/6502/os/symbols.asm SRC_ADDR = $00 DST_ADDR = $02 SIZE = $04 COPY_PARAMS = $06 DISPLAY_START = $08 ATTRIB_START = $0A SUBPAL_START = $0C VRAM_FREE = $0E NMI_VECTOR = $10 IRQ_VECTOR = $12 HBLANK_VECTOR = $14 VBLANK_VECTOR = $16 HBLANK_VECTOR_USER =...
user/cow.asm
joshiamey/xv6-riscv-fall19
1
201131
user/_cow: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <simpletest>: // allocate more than half of physical memory, // then fork. this will fail in the default // kernel, which does not support copy-on-write. void simpletest() { 0: 7179 addi sp,sp,-48 2: f4...
Third_Year/Compilers/testing/tests-xpl-daily-201701121739/F-03-68-N-ok.asm
danielcorreia96/LEIC_Projects
0
201134
<filename>Third_Year/Compilers/testing/tests-xpl-daily-201701121739/F-03-68-N-ok.asm<gh_stars>0 segment .text align 4 global _main:function _main: align 4 xpl: push ebp mov ebp, esp sub esp, 12 push dword 0 lea eax, [ebp+-4] push eax pop ecx pop eax mov [ecx], eax push dword 1 lea eax, [ebp+-8] push eax po...
oeis/108/A108210.asm
neoneye/loda-programs
11
201136
<reponame>neoneye/loda-programs<gh_stars>10-100 ; A108210: Let M[n] be the 2 X 2 matrix {{0, -3}, {(n - 1), 5*(n - 1)}} and let v[1] = {0, 1}', v[n] = M[n]*v[n - 1]'. Then a[n] is the first entry of v[n]. ; Submitted by <NAME> ; 0,3,15,132,1845,35316,855225,25021062,857777445,33710592312,1493816663025,73679515381890,40...
wof/lcs/enemy/AC.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
6
201137
<reponame>zengfr/arcade_game_romhacking_sourcecode_top_secret_data copyright zengfr site:http://github.com/zengfr/romhack 001590 lea ($20,A0), A0 003DFA move.b #$1, ($ac,A0) [enemy+C7] 003E00 bsr $3d62 [enemy+AC] 00439A clr.b ($1c,A0) [enemy+AC] 0122A2 move.l (A2)+, (A3)+ [enemy+A8, enemy+AA] 0122A4 ...
oeis/037/A037687.asm
neoneye/loda-programs
11
201138
; A037687: Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 1,0,3,2. ; Submitted by <NAME> ; 1,10,103,1032,10321,103210,1032103,10321032,103210321,1032103210,10321032103,103210321032,1032103210321,10321032103210,103210321032103,1032103210321032 mov $2,1 lpb $0 sub ...
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0_notsx.log_21829_1324.asm
ljhsiun2/medusa
9
201139
<gh_stars>1-10 .global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x1d20d, %r12 nop nop nop nop nop sub $4761, %rcx movl $0x61626364, (%r12) nop cmp %rdx, %rdx lea addresses_A_ht+0x8fa5, %r10 and $30168, %rdi movw $0x6162, (%r10...
orgcomp/autumn/lab3/src/mul.asm
chebykinn/university
2
201140
<reponame>chebykinn/university<filename>orgcomp/autumn/lab3/src/mul.asm i equ r0 wrk equ r1 sbit Bi=B^0 Cseg at 0 jmp start start: mov wrk, P0 clr a mov B, P1 mov i, #8 cikl: jnb Bi,m1 add a,wrk m1: rrc a xch a,b rrc a clr c xch a,b djnz i,cikl mov P2, a mov P3, b nop end
codec/encoder/core/x86/memzero.asm
gb938271456/openh264-master
3,565
201141
;*! ;* \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...
libsrc/cpc/cpc_AssignKey.asm
jpoikela/z88dk
38
201142
; ; Amstrad CPC library ; (CALLER linkage for function pointers) ; ****************************************************** ; ** Librería de rutinas para Amstrad CPC ** ; ** <NAME>, Artaburu 2009 ** ; ****************************************************** ; ; ; $Id: cpc_Assig...
programs/oeis/177/A177109.asm
neoneye/loda
22
201144
<filename>programs/oeis/177/A177109.asm ; A177109: a(n) = 4*(10^n-5). ; 20,380,3980,39980,399980,3999980,39999980,399999980,3999999980,39999999980,399999999980,3999999999980,39999999999980,399999999999980,3999999999999980,39999999999999980,399999999999999980 add $0,1 mov $1,10 pow $1,$0 sub $1,5 mul $1,4 mov $0,$1
programs/oeis/187/A187164.asm
karttu/loda
0
201145
<reponame>karttu/loda<filename>programs/oeis/187/A187164.asm ; A187164: Number of 3-step self-avoiding walks on a n X n X n cube summed over all starting positions. ; 0,48,342,1056,2370,4464,7518,11712,17226,24240,32934,43488,56082,70896,88110,107904,130458,155952,184566,216480,251874,290928,333822,380736,431850,487344...
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0xca_notsx.log_21829_1912.asm
ljhsiun2/medusa
9
201146
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r8 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x3a58, %rsi lea addresses_normal_ht+0x1e758, %rdi nop nop nop lfence mov $100, %rcx rep movsl nop nop nop nop nop sub $61553, %r8 lea addresses_D_ht+0x1bc58, %r12 nop nop nop ...
programs/oeis/215/A215448.asm
karttu/loda
0
201147
<reponame>karttu/loda<gh_stars>0 ; A215448: a(0)=1, a(1)=0, a(n) = a(n-1) + a(n-2) + Sum_{i=0...n-1} a(i). ; 1,0,2,5,15,43,124,357,1028,2960,8523,24541,70663,203466,585857,1686908,4857258,13985917,40270843,115955271,333879896,961368845,2768151264,7970573896,22950352843,66082907265,190278147899,547884090854,157756936529...
programs/oeis/190/A190337.asm
neoneye/loda
22
201148
; A190337: a(n) = n + [n*r/t] + [n*s/t]; r=2, s=sqrt(2), t=1/s. ; 5,11,17,23,29,34,40,46,52,58,64,69,75,81,87,93,99,104,110,116,122,128,134,139,145,151,157,163,169,174,180,186,192,198,203,209,215,221,227,233,238,244,250,256,262,268,273,279,285,291,297,303,308,314,320,326,332,338,343,349,355,361,367,373,378,384,390,396...
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_13072_451.asm
ljhsiun2/medusa
9
201149
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r15 push %rbx push %rcx push %rdx push %rsi lea addresses_UC_ht+0x8bbb, %r14 nop nop add $8864, %rsi movb (%r14), %dl nop nop nop nop add $19234, %r15 lea addresses_D_ht+0x12ecf, %rbx clflush (%rbx) nop nop nop nop nop and %r11, %r11 mov (%rbx), %rd...
examples/mips1.asm
kubasikora/ARKO-MIPS-Projekt
0
201150
<filename>examples/mips1.asm ######################################################### # # # Zastepowanie cyfr ich dopelnieniem # # Autor: <NAME> # # # ###############...
programs/oeis/101/A101095.asm
neoneye/loda
22
201151
<filename>programs/oeis/101/A101095.asm<gh_stars>10-100 ; A101095: Fourth difference of fifth powers (A000584). ; 1,28,121,240,360,480,600,720,840,960,1080,1200,1320,1440,1560,1680,1800,1920,2040,2160,2280,2400,2520,2640,2760,2880,3000,3120,3240,3360,3480,3600,3720,3840,3960,4080,4200,4320,4440,4560,4680,4800,4920,5040...
ExpressionEvaluation.asm
vladutmargineanu/Expression-Evaluation
0
201152
<filename>ExpressionEvaluation.asm %include "io.inc" %define MAX_INPUT_SIZE 4096 section .bss expr: resb MAX_INPUT_SIZE section .text global CMAIN number_construction: ; se parseaza stringul citit cat timp contine cifre push ebp lea ebp, [esp] ; se construieste un nou numar xor edx, edx ; ...
Transynther/x86/_processed/US/_zr_/i3-7100_9_0xca_notsx.log_16863_400.asm
ljhsiun2/medusa
9
201153
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r8 push %rbp push %rcx push %rdi push %rdx lea addresses_WT_ht+0xf706, %rdi nop nop nop nop nop sub $7023, %rcx movb (%rdi), %r8b nop nop nop nop dec %rdi lea addresses_UC_ht+0x233a, %r13 nop dec %r11 movb $0x61, (%r13) nop nop nop nop nop cmp $3052...
[12] Extras/Strings/main.asm
SonarSystems/Assembly-Programming
6
201154
<reponame>SonarSystems/Assembly-Programming ;nasm 2.11.08 section .data str1 db "Hello Everyone", 10 str1Len equ $- str1 section .text global _start _start: mov eax, 4 mov ebx, 1 mov ecx, str1 mov edx, str1Len int 80h mov eax, 4 mov ebx, 1 mov ecx, str1 mov edx, str1Len ...
main.asm
skl/pcd8544-avr-asm8bit
1
201155
; ; EECS X497.2 ; Final Project: Oscilloscope ; ; With a 48x84 pixel Nokia LCD, we can clearly see sine and triangle waves up to around 4Hz. ; Horizontal scaling would allow us to see waves up to around fADC/2 or about 125kHz. ; ; Square and sawtooth waves don't work so well as there is no connecting line drawn between...
libsrc/_DEVELOPMENT/compress/zx0/c/sdcc/dzx0_smart_rcs_back.asm
ahjelm/z88dk
640
201156
; void dzx0_smart_rcs_back(void *src, void *dst) SECTION code_clib SECTION code_compress_zx0 PUBLIC _dzx0_smart_rcs_back EXTERN asm_dzx0_smart_rcs_back _dzx0_smart_rcs_back: pop af pop hl pop de push de push hl push af jp asm_dzx0_smart_rcs_back
engine/c-object-entry.asm
jamieleecho/dynosprite
6
201159
********************************************************************************* * 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...
programs/oeis/050/A050921.asm
neoneye/loda
22
201160
<filename>programs/oeis/050/A050921.asm<gh_stars>10-100 ; A050921: Smallest prime of form n*2^m+1, m >= 0, or 0 if no prime exists. ; 2,3,7,5,11,7,29,17,19,11,23,13,53,29,31,17,137,19,1217,41,43,23,47,97,101,53,109,29,59,31,7937,257,67,137,71,37,149,1217,79,41,83,43,173,89,181,47 mov $2,$0 lpb $2 add $3,1 lpb $3 ...
libsrc/math/zxmath/ufloat.asm
jpoikela/z88dk
640
201161
; Generic Small C+ Floating point library ; Converts integer in hl to fp number SECTION code_fp PUBLIC ufloat EXTERN stkequ ; ; convert the integer in hl to (unsigned routine) ; a floating point number in FA ; IF FORts2068 INCLUDE...
src/kernel/drivers/io/hid/button_def.asm
rostislav-nikitin/socOS
1
201162
<reponame>rostislav-nikitin/socOS ;======================================================================================================================= ; ; ; Name: socOS (System On Chip Operation Syst...
Transynther/x86/_processed/NC/_zr_/i3-7100_9_0x84_notsx.log_21829_2460.asm
ljhsiun2/medusa
9
201163
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r15 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0xbe12, %rsi lea addresses_D_ht+0xabcc, %rdi add %rbx, %rbx mov $12, %rcx rep movsq nop xor %rsi, %rsi lea addresses_A_ht+0x769a, %r10 nop nop nop and $6542, %r13 movb $0x...
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_14.asm
ljhsiun2/medusa
9
201165
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0xd3cd, %r15 nop nop cmp $21875, %rcx movb (%r15), %r12b nop xor $32985, %rcx lea addresses_A_ht+0xbaed, %rsi lea addresses_D_ht+0xf6ed, %rdi nop xor %rax, %rax mov $106, %rcx r...
UPC Summer School 2020/Summer 06 - Mux Counter 00-29.X/maincode.asm
tocache/picomones
5
201166
list p=18f4550 #include<p18f4550.inc> CONFIG FOSC = XT_XT ; Oscillator Selection bits (XT oscillator (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 softwar...
src/routines/createbasic.asm
zdimension/Cesium
5
201167
<reponame>zdimension/Cesium _CreateBASICPrgm: ; Create a BASIC prgm called 'A' ld hl,Aname call _Mov9ToOP1 ; move to name to OP1 call _ChkFindSym ; try to find it ret nc ; return if it exists ld hl,Aend-Astart push hl call _CreateProtProg pop bc inc de inc de ; bypass size bytes ld hl...
programs/oeis/047/A047609.asm
karttu/loda
0
201168
<reponame>karttu/loda<filename>programs/oeis/047/A047609.asm ; A047609: Numbers that are congruent to {0, 4, 5} mod 8. ; 0,4,5,8,12,13,16,20,21,24,28,29,32,36,37,40,44,45,48,52,53,56,60,61,64,68,69,72,76,77,80,84,85,88,92,93,96,100,101,104,108,109,112,116,117,120,124,125,128,132,133,136,140,141,144,148,149,152,156,157 ...
turbomon.asm
simonowen/turbomon
1
201169
; TurboMON v1.0 ; ; Copyright 1994 <NAME> ; ; Glue module for assembling with pyz80 ; ROM source files include "TM_1.asm" include "TM_2.asm" include "TM_3.asm" include "TM_4.asm" include "TM_5.asm" include "TM_6.asm" include "TM_7.asm" include "TM_8.asm" include "TM_9.asm" DUMP put_base+&6000-1536 MDAT "font.bin"
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_942_90.asm
ljhsiun2/medusa
9
201170
<reponame>ljhsiun2/medusa .global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r14 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0xb126, %r12 nop nop nop nop add $30418, %r14 movb (%r12), %bl sub %rbx, %rbx lea addresses_WC_ht+0xa46, %r12 nop nop sub %r13, %...
programs/oeis/117/A117829.asm
neoneye/loda
22
201171
<filename>programs/oeis/117/A117829.asm ; A117829: Start with 3 and repeatedly reverse the digits and add 4 to get the next term. ; 3,7,11,15,55,59,99,103,305,507,709,911,123,325,527,729,931,143,345,547,749,951,163,365,567,769,971,183,385,587,789,991,203,306,607,710,21,16,65,60,10,5,9,13,35,57,79,101,105,505,509,909,91...
source/Cosmos.Core.DebugStub/AsmBreak.asm
Geramy/Cosmos
207
201175
<gh_stars>100-1000 ; Generated at 6/14/2016 12:11:29 PM DebugStub_AsmBreakEIP dd 0 DebugStub_AsmOrigByte dd 0 DebugStub_DoAsmBreak: mov dword ESI, [DebugStub_CallerESP] mov dword EAX, [DebugStub_AsmBreakEIP] mov dword [ESI - 12], EAX Call DebugStub_ClearAsmBreak Call DebugStub_Break DebugStub_DoAsmBreak_Exit: mov d...
mp3/blocked.asm
Candy-Crusher/ece220
0
201176
.ORIG x4000 .FILL x10 .STRINGZ "blockA" .FILL #4 .FILL x01 .STRINGZ "alsoA" .FILL #9 .FILL x02 .STRINGZ "blockF" .FILL #10 .FILL x02 .STRINGZ "alsoF" .FILL #11 .FILL #-1 .END
artwork/goblin/goblin_camina_espada.asm
fjpena/sword-of-ianna-zx
67
201177
<reponame>fjpena/sword-of-ianna-zx ; ASM source file created by SevenuP v1.20 ; SevenuP (C) Copyright 2002-2006 by <NAME>, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Frames: 3 ;Sort Priorities: X char, Char line, Y char, Frame number ;Data Outputted: Gfx ;Inte...
oeis/106/A106434.asm
neoneye/loda-programs
11
201178
<reponame>neoneye/loda-programs ; A106434: The (1,1)-entry of the matrix A^n, where A = [0,1;2,3]. ; Submitted by <NAME>(s3) ; 0,2,6,22,78,278,990,3526,12558,44726,159294,567334,2020590,7196438,25630494,91284358,325114062,1157910902,4123960830,14687704294,52311034542,186308512214,663547605726,2363259841606,841687473627...
code/dsryhh/44.asm
KongoHuster/assembly-exercise
1
201179
<reponame>KongoHuster/assembly-exercise ;假设有二十个无符号字存放在以 Buffer 为开始的缓冲区中,编写一个程序把它们从低到高排序。 .model small .data buffer dw 1,2,10,3,4,5,6,7,20,8,9,11,12,13,14,15,16,17,18,19 .code start: mov ax,@data mov ds,ax mov bx, offset buffer call sortbuffer mov ah,4ch int 21h ...
oeis/005/A005209.asm
neoneye/loda-programs
11
201180
<reponame>neoneye/loda-programs<gh_stars>10-100 ; A005209: Multilevel sieve: at k-th step, accept k numbers, reject k, accept k, ... ; 1,3,9,25,57,145,337,793,1921,3849,8835,18889,41473,92305,203211,432699,944313,2027529,4077769,8745153,18133305,37898113,80713737,169730259,358760457,750591867,1575313473,3255787851,6751...
Sources/Timer_Buzzer_Test.asm
billhhh/hcs12-dragon12
0
201181
;Sounding the Buzzer on PT5 using Chann 5 Timer (Output Compare option) ;PT5 of PORTT is connected to buzzer/speaker on Dragon12+ board ;Notice this is NOT using any Time Delay ;Modified from Example 9-11 HCS12 book by <NAME> for Dragon12+ board/CodeWarrior ABSENTRY Entry ; for absolute assembly: mark...
Library/GrObj/UI/uiCustomShapeControl.asm
steakknife/pcgeos
504
201182
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: uiCustomShapeControl.asm AUTHOR: <NAME> REVISION HISTORY: Name Date Description ---- ---- ----------- jon 24 feb 1992 Initial version. ...
projects/08/ProgramFlow/BasicLoop/BasicLoop.asm
danibachar/Nand2Tetris
0
201183
<filename>projects/08/ProgramFlow/BasicLoop/BasicLoop.asm // push constant 0 @0 D=A @SP A=M M=D @SP M=M+1 // pop local 0 @SP M=M-1 @0 D=A @LCL D=D+M @R13 M=D @SP A=M D=M @R13 A=M M=D // label LOOP_START (LOOP_START) // push argument 0 @0 D=A @ARG A=D+M D=M @SP A=M M=D @SP M=M+1 // push local 0 @0 D=A @LCL A=D+M D=M @SP...
oeis/181/A181963.asm
neoneye/loda-programs
11
201184
; A181963: Prime-generating polynomial: 25*n^2 - 1185*n + 14083. ; 14083,12923,11813,10753,9743,8783,7873,7013,6203,5443,4733,4073,3463,2903,2393,1933,1523,1163,853,593,383,223,113,53,43,83,173,313,503,743,1033,1373,1763,2203,2693,3233,3823,4463,5153,5893,6683,7523,8413,9353,10343,11383,12473,13613,14803,16043,17333,18...
src/firmware/Platform/Motor/ReverseStates.asm
pete-restall/Cluck2Sesame-Prototype
1
201185
<gh_stars>1-10 #include "Platform.inc" #include "Motor.inc" #include "States.inc" #include "WaitState.inc" radix decimal defineMotorState MOTOR_STATE_REVERSE .setBankFor motorState movlw MOTOR_STATE_SOFTSTOP movwf motorState movlw MOTOR_STATE_REVERSE2 movwf motorStateAfterStopped returnFromMotorSt...
programs/oeis/290/A290255.asm
neoneye/loda
22
201188
<reponame>neoneye/loda ; A290255: Number of 0's following directly the first 1 in the binary representation of n. ; 0,1,0,2,1,0,0,3,2,1,1,0,0,0,0,4,3,2,2,1,1,1,1,0,0,0,0,0,0,0,0,5,4,3,3,2,2,2,2,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,5,4,4,3,3,3,3,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0 lpb...
src/cm_presets_lownmg.asm
Lui37/lttphack
0
201189
<filename>src/cm_presets_lownmg.asm cm_lownmg_submenu_presets: dw cm_lownmg_presets_goto_escape dw cm_lownmg_presets_goto_eastern dw cm_lownmg_presets_goto_desert dw cm_lownmg_presets_goto_hera dw cm_lownmg_presets_goto_atower dw cm_lownmg_presets_goto_pod dw cm_lownmg_presets_goto_thieves ...
oeis/133/A133684.asm
neoneye/loda-programs
11
201190
; A133684: a(2n) = A001045(n); a(1)=1; a(2n+1) = 2*A001045(n-1) for n >= 1. ; Submitted by <NAME> ; 0,1,1,0,1,2,3,2,5,6,11,10,21,22,43,42,85,86,171,170,341,342,683,682,1365,1366,2731,2730,5461,5462,10923,10922,21845,21846,43691,43690,87381,87382,174763,174762,349525,349526,699051,699050,1398101,1398102,2796203,2796202,...
oeis/088/A088697.asm
neoneye/loda-programs
11
201191
<filename>oeis/088/A088697.asm ; A088697: Replace 0 with 10 in binary representation of n. ; Submitted by <NAME> ; 0,1,6,3,26,13,14,7,106,53,54,27,58,29,30,15,426,213,214,107,218,109,110,55,234,117,118,59,122,61,62,31,1706,853,854,427,858,429,430,215,874,437,438,219,442,221,222,111,938,469,470,235,474,237,238,119,490,2...
base/mvdm/wow16/wifeman/libentry.asm
npocmaka/Windows-Server-2003
17
201192
; LIBENTRY.ASM -- Entry point for library modules (small model) ; ------------------------------------------------------------- Extrn LibMain:Near _TEXT SEGMENT BYTE PUBLIC 'CODE' ASSUME CS:_TEXT PUBLIC LibEntry LibEntry proc far push di push d...
SmashMouth.asm
SleepingFox88/Assembly
0
201193
<filename>SmashMouth.asm<gh_stars>0 ; Writes Smash Mouth - All Star lyrics to the output JMP main serr: DB "Error: String too large" ; Variable DB 0 ; String terminator s1: DB "Somebody once told me" ; Variable DB 0 ; String terminator s2: DB "the world is gonna roll" ; string DB 0 s3: DB "me. I a...
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sdcc/SMS_setLineCounter.asm
jpoikela/z88dk
640
201197
; void SMS_setLineCounter(unsigned char count) SECTION code_clib SECTION code_SMSlib PUBLIC _SMS_setLineCounter EXTERN asm_SMSlib_setLineCounter _SMS_setLineCounter: pop af pop hl push hl push af jp asm_SMSlib_setLineCounter
Projects/Daat/AMD64/OPSAMD64.asm
uvbs/Daat
1
201198
<gh_stars>1-10 ; ; ; Copyright (c) 2018 by blindtiger. All rights reserved. ; ; The contents of this file are subject to the Mozilla Public 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.mozilla.org/MPL/ ; ; ...
programs/oeis/171/A171900.asm
jmorken/loda
1
201199
; A171900: Backwards van Eck transform of A010060. ; 0,0,1,3,2,2,1,3,1,3,1,3,2,2,1,3,2,2,1,3,2,2,1,3,1,3,1,3,2,2,1,3,1,3,1,3,2,2,1,3,1,3,1,3,2,2,1,3,2,2,1,3,2,2,1,3,1,3,1,3,2,2,1,3,2,2,1,3,2,2,1,3,1,3,1,3,2,2,1,3,2,2,1,3,2,2,1,3,1,3,1,3,2,2,1,3,1,3,1,3,2,2,1,3,1 mov $3,2 mov $9,$0 lpb $3 mov $0,$9 sub $3,1 add $...
books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/5_18.asm
gxw1/review_the_national_post-graduate_entrance_examination
640
201200
<reponame>gxw1/review_the_national_post-graduate_entrance_examination DATA SEGMENT GRADE DB 85,73,92,81,96 DB 100,86,95,77,80 DB 56,71,69,80,68 DB 83,78,69,90,84 AVEBUF DB 5 DUP(?) DATA ENDS CODE SEGMENT ASSUME CS:CODE,DS:DATA START: MOV AX,DATA MOV DS...
oeis/188/A188573.asm
neoneye/loda-programs
11
201202
; A188573: Coefficient of the sqrt(6) term in (1 + sqrt(2) + sqrt(3))^n, denoted as C6(n). ; Submitted by <NAME> ; 0,0,2,6,32,120,528,2128,8960,36864,153472,635008,2635776,10922496,45300736,187800576,778731520,3228696576,13387309056,55506722816,230146834432,954246856704,3956565671936,16404954546176,68019305840640,28202...
src/arch/aarch64/arch_start.asm
libreliu/IncludeOS
1
201203
<gh_stars>1-10 /* */ #include "macros.h" .text .global __arch_start .global fast_kernel_start .global init_serial .global drop_el1_secure .extern exception_vector //linker handles this //.extern kernel_start //not sure if this is a sane stack location //.set STACK_LOCATION, 0x200000 - 16 .extern __stack_top .extern __...
kernel/interrupts.asm
pixie-grasper/operating-system
1
201204
<reponame>pixie-grasper/operating-system<gh_stars>1-10 %ifndef INTERRUPTS_ASM_ %define INTERRUPTS_ASM_ interrupts: .init: ; configure PIC mov al, 0x11 ; configure start out 0x20, al dd 0x00eb00eb out 0xa0, al dd 0x00eb00eb mov al, 0x20 ; shift to 0x20..0x27 out 0x21, al dd 0x00eb00eb mov al, 0x28...
programs/oeis/119/A119610.asm
karttu/loda
0
201206
; A119610: Number of cases in which the first player is killed in a Russian roulette game where 5 players use a gun with n chambers and the number of bullets can be from 1 to n. Players do not rotate the cylinder after the game starts. ; 1,2,4,8,16,33,66,132,264,528,1057,2114,4228,8456,16912,33825,67650,135300,270600,5...
PRG/objects/7-6Maze.asm
narfman0/smb3_pp1
0
201207
.byte $01 ; Unknown purpose .byte OBJ_PIRANHASIDEWAYSRIGHT, $0B, $0D .byte OBJ_PIRANHASIDEWAYSLEFT, $05, $0F .byte OBJ_GREENPIRANHA, $04, $42 .byte OBJ_REDTROOPA, $05, $52 .byte OBJ_PIRANHASIDEWAYSLEFT, $0B, $5B .byte OBJ_GREENPIRANHA, $04, $61 .byte OBJ_GREENTROOPA, $0D, $67 .byte OBJ_GREENTROOPA, $0F, $67 ...
asm/31.asm
Azmalent/itmo3
0
201208
; Вариант 3 (главный модуль) ; Преобразовать данные представленные в шестнадцатеричном виде (DWORD) в восьмеричное число без знака в символьной форме. ; Число параметров 2. Первый - исходное значение. Второй - адрес, начиная с которого размещается результат. ; ==================================================...
src/tocompress/textures-A.asm
santiontanon/talesofpopolon-ext
4
201209
<reponame>santiontanon/talesofpopolon-ext org #0000 textures: doortexture: db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 db 0, 0, 0, 0, 0,#b0, 0,#b0,#b0, 0,#a0, 0, 0, 0, 0, 0 db 0, 0, 0, 0,#b0,#a0, 0,#a0,#a0, 0,#a0,#a0, 0, 0, 0, 0 db 0, 0,#b0, 0,...
hack/hack_code_example.asm
milos-mkv/Hack-Compiler
0
201210
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by <NAME> Schocken, MIT Press. // File name: projects/04/Mult.asm // Multiplies R0 and R1 and stores the result in R2. // (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.) // Put your code here. @i M=0 ...
programs/oeis/099/A099025.asm
jmorken/loda
1
201211
<reponame>jmorken/loda<gh_stars>1-10 ; A099025: Expansion of 1 / ((1+x) * (1-5*x+x^2)). ; 1,4,20,95,456,2184,10465,50140,240236,1151039,5514960,26423760,126603841,606595444,2906373380,13925271455,66719983896,319674648024,1531653256225,7338591633100,35161304909276,168467932913279,807178359657120,3867423865372320 mov $3...
data/baseStats_original/furret.asm
adhi-thirumala/EvoYellow
16
201213
<gh_stars>10-100 db DEX_FURRET ; pokedex id db 85 ; base hp db 76 ; base attack db 64 ; base defense db 90 ; base speed db 50 ; base special db NORMAL ; species type 1 db NORMAL ; species type 2 db 100 ; catch rate db 116 ; base exp yield INCBIN "pic/ymon/furret.pic",0,1 ; sprite dimensions dw FurretPicFront...
app/hack/high_priority.asm
USN484259/COFUOS
1
201214
[bits 64] get_thread equ 0x0100 get_priority equ 0x010C set_priority equ 0x011C exit_process equ 0x0210 section .text mov eax,get_thread syscall mov ebx,eax step: mov edx,ebx mov eax,get_priority syscall dec eax js exit mov edx,ebx mov r8d,eax mov eax,set_priority syscall test eax,eax jz step exit: mov edx,eax ...
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1355.asm
ljhsiun2/medusa
9
201215
<gh_stars>1-10 .global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %rax push %rbx push %rdi push %rdx lea addresses_WT_ht+0xe865, %r11 and $51126, %r13 mov (%r11), %r12d nop add $30533, %rax lea addresses_UC_ht+0xd4b9, %rdi nop nop nop cmp %rdx, %rdx movb $0x61, (%rdi) nop nop nop nop nop in...
chapter2/cdecl_example.asm
SoylentNews/retromalware
2
201217
; CDECL Example ; ; This code is in the public domain via the CC0 public domain decleration ; See LICENSE in the top level directory for more information ; ; Compile with NASM to COM: i.e. nasm cdecl_example.asm -o cdecl.com section .text org 0x100 jmp example_call value_is_9 db `Returned value from _example is 9$` ...
src/coreclr/nativeaot/Runtime/arm/MiscStubs.asm
pyracanda/runtime
9,402
201218
;; Licensed to the .NET Foundation under one or more agreements. ;; The .NET Foundation licenses this file to you under the MIT license. #include "AsmMacros.h" EXTERN memcpy EXTERN memcpyGCRefs EXTERN memcpyGCRefsWithWriteBarrier EXTERN memcpyAnyWithWriteBarrier TEXTAREA ;;;;;;;;;;;;;;;;;;;;;;;;...
flash.asm
adamsmasher/bustfree
0
201219
FLASH_TILE EQU 2 SECTION "FlashRAM", WRAM0 FlashBrickX: DS 1 FlashBrickY: DS 1 FlashTimer: DS 1 SECTION "Flash", ROM0 InitFlash:: LD A, -8 LD [FlashBrickX], A LD A, -16 LD [FlashBrickY], A XOR A LD [FlashTimer], A RET UpdateFlas...
target/cos_117/disasm/iop_overlay1/TAPEIO.asm
jrrk2/cray-sim
49
201220
<reponame>jrrk2/cray-sim 0x0000 (0x000000) 0x211A- f:00020 d: 282 | A = OR[282] 0x0001 (0x000002) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D) 0x0002 (0x000004) 0x2908- f:00024 d: 264 | OR[264] = A 0x0003 (0x000006) 0x3108- f:00030 d: 264 | A = (O...
PluginLoader/runasm64.asm
SlavicPotato/Loader
2
201221
<filename>PluginLoader/runasm64.asm .data extern procs : qword .code Jmp_0 proc jmp qword ptr[procs] Jmp_0 endp Jmp_1 proc jmp qword ptr[procs + 8] Jmp_1 endp Jmp_2 proc jmp qword ptr[procs + 8 * 2] Jmp_2 endp Jmp_3 proc jmp qword ptr[procs + 8 * 3] Jmp_3 endp Jmp_4 proc jmp qword ptr[procs + 8 * 4] Jmp_4 endp Jm...
Assembly-x-C/Assembly/HelloWorld.asm
Robjunio/PLP
0
201222
; hello_world section .text: global _start _start: mov eax, 4 ; use to write call mov ebx, 1 ; use stdout as the fd mov ecx, message ; use the message as the buffer mov edx, message_length ; and supply the length ; exit call int 80h ; invoke syscall ...
programs/oeis/030/A030104.asm
jmorken/loda
1
201223
; A030104: Base 5 reversal of n (written in base 10). ; Coded manually 2021-03-02 by <NAME>, https://github.com/neoneye ; 0,1,2,3,4,1,6,11,16,21,2,7,12,17,22,3,8,13,18,23,4,9,14,19,24,1,26,51,76,101,6,31,56,81,106,11,36,61,86,111,16,41,66,91,116,21,46,71,96,121,2,27,52,77,102,7,32,57,82,107,12,37,62,87,112,17,42,67,92,...
oeis/331/A331150.asm
neoneye/loda-programs
11
201224
<reponame>neoneye/loda-programs<filename>oeis/331/A331150.asm<gh_stars>10-100 ; A331150: Triangle read by rows: T(n,k) (n>=k>=1) = f(n,n-k+1) where f(n,k) = floor((n/k)*ceiling(n/k)). ; Submitted by <NAME>(w4) ; 1,1,4,1,3,9,1,2,4,16,1,2,3,7,25,1,2,3,4,9,36,1,2,2,3,7,14,49,1,2,2,3,4,8,16,64,1,2,2,3,3,6,9,22,81,1,2,2,2,3...
04/fill/Fill.asm
romualdo97/controladores
1
201225
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by <NAME> 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. writes "black" i...
examples/fatorial.asm
Rkern91/util.asm
1
201226
; Escrever uma função em assembly equivalente à seguinte função C ; int fatorial(int n) ; { ; int fat=1 ; ; for (int i=2; i <= n; i++) ; fat *= i ; ; ; return fat; ; } %include '../util.asm' section .text global _start fatorial: mov r10, 1 ;r10 = fat mov r11, 2 ;r11 = i ...
programs/oeis/303/A303813.asm
jmorken/loda
1
201227
; A303813: Generalized 19-gonal (or enneadecagonal) numbers: m*(17*m - 15)/2 with m = 0, +1, -1, +2, -2, +3, -3, ... ; 0,1,16,19,49,54,99,106,166,175,250,261,351,364,469,484,604,621,756,775,925,946,1111,1134,1314,1339,1534,1561,1771,1800,2025,2056,2296,2329,2584,2619,2889,2926,3211,3250,3550,3591,3906,3949,4279,4324,46...
PRG/objects/4-6A.asm
narfman0/smb3_pp1
0
201228
.byte $01 ; Unknown purpose .byte OBJ_BIGGREENTROOPA, $18, $14 .byte OBJ_BIGGREENTROOPA, $16, $18 .byte OBJ_BIGGREENHOPPER, $11, $18 .byte OBJ_BIGGREENPIRANHA, $26, $16 .byte OBJ_BIGGREENTROOPA, $2D, $13 .byte OBJ_BIGGOOMBA, $30, $18 .byte OBJ_BIGGOOMBA, $32, $18 .byte OBJ_BIGGREENHOPPER, $42, $18 .byte OBJ_...
testsuite/ubivm/expected/expr_real_6.asm
alexgarzao/UOP
0
201230
<reponame>alexgarzao/UOP Entity start No options Constants 0 S start 1 S (2.0 * (8.0 * 6.0) * (49.0 / 7.0 - 3.0))= 2 R 2.000000 3 R 8.000000 4 R 6.000000 5 R 49.000000 6 R 7.000000 7 R 3.000000 8 I 2 9 S io.writeln End Valid context (always) No properties Def start No parameters No local v...
libsrc/msx/msx_locate.asm
grancier/z180
0
201231
<reponame>grancier/z180 ; ; MSX specific routines ; ; GFX - a small graphics library ; Copyright (C) 2004 <NAME> ; ; Adapted to z88dk by <NAME> ; ; extern void msx_locate(unsigned char x, unsigned char y); ; ; Move the screen cursor to a given position ; ; $Id: msx_locate.asm,v 1.7 2016/06/16 19:30:25 dom Exp $ ; ...
data/mapObjects/Route6.asm
AmateurPanda92/pokemon-rby-dx
9
201232
Route6_Object: db $f ; border block db 4 ; warps warp 9, 1, 2, ROUTE_6_GATE warp 10, 1, 2, ROUTE_6_GATE warp 10, 7, 0, ROUTE_6_GATE warp 17, 13, 0, UNDERGROUND_PATH_ROUTE_6 db 1 ; signs sign 19, 15, 7 ; Route6Text7 db 6 ; objects object SPRITE_BLACK_HAIR_BOY_1, 10, 21, STAY, RIGHT, 1, OPP_JR_TRAINER_M, 4 ...
Labs/Lab5_Structs-Arrays/1-memset/memset.asm
CristianCotovanu/IOCLA
0
201233
<reponame>CristianCotovanu/IOCLA %include "io.inc" extern printf %DEFINE LENGTH 20 section .data string db "Nunc tristique ante maximus, dictum nunc in, ultricies dui.", 0 char db 'a' section .text global CMAIN CMAIN: mov ebp, esp; for correct debugging push ebp mov ebp, esp mov al, byte [c...
Birmingham/~exr/lectures/opsys/10_11/examples/bootsector/boot_sector/boot_sect.asm
jdm7dv/CRK-Tools
1
201234
; ; A simple boot sector program that loops forever. ; jmp $ ; Use a simple CPU instruction that jumps ; to a new memory address to continue execution. ; In our case, jump to the address of the current ; instruction. times 510-($-$$)...
src/arch/x86_64/boot/multiboot_header.asm
NucleaTNT/NucleaOS
2
201235
section .multiboot_header header_start: dd 0xe85250d6 ; Multiboot2 dd 0x0 ; Architecture - ProtMode i386 dd header_end - header_start ; Header length ; Checksum dd 0x100000000 - (0xe85250d6 + 0x0 + header_end - header_start) ...
fldsv.asm
runer112/Doors_CS_7
17
201236
<filename>fldsv.asm ;----------------------------------------------------------- ; Filename: FldSv.asm ; Long name: Folder Backup and Restore Functions ; Author: <NAME> aka <NAME> ; Last Update: May 12, 2010 ; ; Please consult license.txt for the fair use agreement ; implicitly binding by you continuing to read pa...
src/multiply.asm
MrPivato/mips_files
0
201237
.data .text addi $s0, $zero, 100 # value to register without loading from ram addi $s1, $zero, 40 mul $t0, $s0, $s1 # only up to 32bits li $v0, 1 move $a0, $t0 syscall