hexsha
stringlengths
40
40
size
int64
6
1.05M
ext
stringclasses
3 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
232
max_stars_repo_name
stringlengths
7
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
7
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
232
max_issues_repo_name
stringlengths
7
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
7
max_issues_count
int64
1
37.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
232
max_forks_repo_name
stringlengths
7
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
7
max_forks_count
int64
1
12.6k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
6
1.05M
avg_line_length
float64
1.16
19.7k
max_line_length
int64
2
938k
alphanum_fraction
float64
0
1
24fee79a2abf21318aaacd282cc4b8a2ced6853b
1,143
asm
Assembly
CS2610/Lab7/problem5.asm
shariefsmm/College-Codes
8fac4a980f8c20978862f3a16446b7cdb550d95a
[ "MIT" ]
null
null
null
CS2610/Lab7/problem5.asm
shariefsmm/College-Codes
8fac4a980f8c20978862f3a16446b7cdb550d95a
[ "MIT" ]
null
null
null
CS2610/Lab7/problem5.asm
shariefsmm/College-Codes
8fac4a980f8c20978862f3a16446b7cdb550d95a
[ "MIT" ]
null
null
null
#problem1.asm .data sgpa: .float 8.96, 7.64, 9.4, 7.8 newLine: .asciiz "\n" .text .globl main main: la $t0, sgpa li $t1, 0 #counter li.s $f0, 0.0 #sum li.s $f1, 1.0 #product li.s $f2, 0.0 #average l.s $f3, ($t0) #minimum l.s $f4, ($t0) #maximum loop: beq $t1, 4, average l.s $f5, ($t0) add.s $f0, $f0, $f5 mul.s $f1, $f1, $f5 c.lt.s $f5, $f3 bc1t min next: c.lt.s $f4, $f5 bc1t max now: addi $t0, 4 addi $t1, 1 j loop min: mov.s $f3, $f5 j next max: mov.s $f4, $f5 j now average: li.s $f6, 4.0 div.s $f2, $f0, $f6 li $v0, 2 #print float mov.s $f12, $f0 #print sum syscall li $v0, 4 la $a0, newLine syscall li $v0, 2 #print float mov.s $f12, $f1 #print product syscall li $v0, 4 la $a0, newLine syscall li $v0, 2 #print float mov.s $f12, $f2 #print average syscall li $v0, 4 la $a0, newLine syscall li $v0, 2 #print float mov.s $f12, $f3 #print minimum syscall li $v0, 4 la $a0, newLine syscall li $v0, 2 #print float mov.s $f12, $f4 #print maximum syscall li $v0, 4 la $a0, newLine syscall li $v0, 10 syscall
14.653846
35
0.56168
a3ea31195557cc2357135a4baedf5dc35727dff6
310
asm
Assembly
programs/oeis/021/A021429.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/021/A021429.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/021/A021429.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A021429: Decimal expansion of 1/425. ; 0,0,2,3,5,2,9,4,1,1,7,6,4,7,0,5,8,8,2,3,5,2,9,4,1,1,7,6,4,7,0,5,8,8,2,3,5,2,9,4,1,1,7,6,4,7,0,5,8,8,2,3,5,2,9,4,1,1,7,6,4,7,0,5,8,8,2,3,5,2,9,4,1,1,7,6,4,7,0,5,8,8,2,3,5,2,9,4,1,1,7,6,4,7,0,5,8,8,2 add $0,1 mov $1,10 pow $1,$0 mul $1,5 div $1,2125 mod $1,10 mov $0,$1
28.181818
199
0.541935
d883f2fa2e032a50e6c5f103ff8210f218c249ce
5,262
asm
Assembly
lib/rcmx000_boot.asm
RC2014Z80/z88dk
e5b9447b970e5fae26544b6d8aa5957c98ba0e6a
[ "ClArtistic" ]
8
2017-01-18T12:02:17.000Z
2021-06-12T09:40:28.000Z
lib/rcmx000_boot.asm
RC2014Z80/z88dk
e5b9447b970e5fae26544b6d8aa5957c98ba0e6a
[ "ClArtistic" ]
1
2017-03-06T07:41:56.000Z
2017-03-06T07:41:56.000Z
lib/rcmx000_boot.asm
RC2014Z80/z88dk
e5b9447b970e5fae26544b6d8aa5957c98ba0e6a
[ "ClArtistic" ]
3
2017-03-07T03:19:40.000Z
2021-09-15T17:59:19.000Z
; ; Rabbit Control Module bootstrap program ; ; This module is included by rcmx000_crt0.asm ; ; $Id: rcmx000_boot.asm,v 1.6 2016-06-02 22:24:57 dom Exp $ ; ; PLEASE NOTE: If you ever change this file, please also review ; the boot.c utility in the support/rcmx000 section cause it makes ; assumptions on where the code lies in memory... __start_prog: ld sp,8000h ; If boot uses raw (-r) option we will patch this into ; jp _end_prog. ; If we are not in raw option, this will not do anything useful ld hl, __end_prog jr skip_data_bytes ; The command byte should be at 8 command: defb 0 ; N.B: The "end_prog" is the end of this file's program but the ; beginning of the users stuff skip_data_bytes: ; Tell host we have loaded!! Send the 'babe' magic pattern ld a,0bah call __sendchar nop ld a,0beh call __sendchar nop ; Here we receive the baudrate divisor from host call __recvchar nop ; Save the divisor for later echoing back to host ld b,a ; This character is used for the baudrate divisor, ; the host must know this in some way, the best is to use ; the meassurebaud.asm utility for each new target connected ; An example: for a CPU @ 14.7456 MHz ; a divisor of 192 should be used, i.e. the register should ; be loaded with 192-1 = 191 ; ; The base frequency is thus 14745600/32 = 460800 ; To be further divided into (460800/2400) = 192 = 8*3*2*2*2 ; To reach 2400 baud ; ; N.B. This example may only be true to a factor or divisor of ; two, since there is some talk in the manuals about internal ; clockdoublers etc, which might complicate this further!!! ; ; defb 0d3h ; ioi ld (0a9h),a ; TAT4R baud divisor ; Receive a character at the new baudrate... call __recvchar nop call __sendchar ; Just echo back same char... nop ld a,b call __sendchar ; Here we echo the baudrate number for the ; host to check that we are still in sync nop xor 0ffh call __sendchar ; Complement just to show signs of intelligence nop ; From this point the target first accepts two characters ; to represent the length of the rest of the download, then the ; download itself and finally a 16 bit checksum of all numbers ; added together 8-bit wise call __recvchar nop ld c,a call __recvchar nop ld b,a ld ix,0 ; We will reload whole program and ; even pass over this code on the way ; Checksum is stored here ld iy,0 ld d,0 ld e,c ; Add length bytes to checksum add iy,de ld e,b add iy,de again: call __recvchar nop ld e,a add iy,de ld (ix+0),e dec bc ld a,b or c inc ix jr nz,again push iy pop bc ld a,c call __sendchar nop ld a,b call __sendchar nop call __end_prog ; This will jump to main jp 0 __recvchar: defb 0d3h ; ioi ld a,(0c3h) ; SASR Serial status bit 7,a jr z,__recvchar defb 0d3h ; ioi ld a,(0c0h) ; SADR Serial data read ret __sendchar: push hl ld hl,0c3h __waitready: defb 0d3h ; ioi bit 3,(hl) ; SASR, Serial status, bit 3 jr nz,__waitready defb 0d3h ; ioi ld (0c0h),a ; SADR Serial data write (checksum) pop hl ret ; This is the I/O operations necessary to set the system in a decent mode, such ; as asserting that there is RAM at address zero before downloading the code at ; org 0h mk_boot_code actually uses assembler symbol table to locate "prefix" ; and "postfix" ; ; The coldboot utility need to transfer the binary file ; up until this point, from address 0 and on ; Remember, a program starts with the crt0 file, ; which then includes this file!! __endbootstrap: __prefix: defb 080h, 000h, 008h ; GCSR Clock select, bit 4-2: 010 (osc) defb 080h, 009h, 051h ; Watchdog defb 080h, 009h, 054h defb 080h, 010h, 000h ; MMU MMIDR defb 080h, 014h, 045h ; Memory bank MB0CR defb 080h, 015h, 045h ; Memory bank MB1CR defb 080h, 016h, 040h ; Memory bank MB2CR defb 080h, 017h, 040h ; Memory bank MB3CR defb 080h, 013h, 0c8h ; MMU SEGSIZE defb 080h, 011h, 074h ; MMU STACKSEG defb 080h, 012h, 03ah ; MMU DATASEG defb 080h defb 0a9h ; Below the bootstrap utility should patch the correct divisor for ; a 2400 Baud operation in non-cold boot mode, ; If the host hardware supports on-the-fly baudrate changes ; we set them at a later point in the bootstrap code ; obtained via meassurebaud.c, we have it set here to an insane value ; so this it not forgotten... __patch_baudrate: defb 42 ; TAT4R <= baud divisor defb 080h, 0a0h, 001h ; TACSR <= 1 defb 080h, 0c4h, 000h ; SACR <= 0 defb 080h, 009h, 051h ; WDTTR <= 51h defb 080h, 009h, 054h ; WDTTR <= 54h defb 080h, 055h, 040h ; PCFR <= 40h ;; This is the standard final I/O operation that kick starts the Rabbit from address zero in RAM __postfix: defb 080h, 024h, 080h ; SPCR <= 80h __end_prog: ; Here we put some utils for flashing and start from flash ; We do not want them in the 2400 baud loader since we dont need ; them for the baudrate change so we put them here instead ; TODO: Here we should include and "ifdef" so ; we dont download this part when doing raw mode ; (raw mode is slow @2400 bps and 3 bytes per byte :-) ;; IF !DEFINED_NOFLASH INCLUDE "rcmx000_flash.asm" ENDIF
23.386667
97
0.698024
61acb49bd8821e025ab82b95a1812493b0ec2253
6,313
asm
Assembly
base/mvdm/wow16/win87em/emfdiv.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/mvdm/wow16/win87em/emfdiv.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/mvdm/wow16/win87em/emfdiv.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
page ,132 subttl emfdiv.asm - Division ;*** ;emfdiv.asm - Division ; ; Copyright (c) 1986-89, Microsoft Corporation ; ;Purpose: ; Division ; ; This Module contains Proprietary Information of Microsoft ; Corporation and should be treated as Confidential. ; ;Revision History: ; See emulator.hst ; ;******************************************************************************* ;-----------------------------------------; ; ; ; Division ; ; ; ;-----------------------------------------; ProfBegin FDIV RDBRQQ: ; Routine Div Both must see if we have two singles. if fastSP MOV BX,DX XOR BX,Single + 256*Single TEST BX,Single + 256*Single JNZ RDDRQQ MOV bx,offset TDSRQQ JMP [bx] endif ;fastSP pub RDDRQQ ; Routine Division Double ; Now we have ; SI --> numerator , AX - Expon , DL - Sign ; DI --> denominator , CX - Expon , DH - Sign if fastSP CALL CoerceToDouble ; insure that both args are double endif ;fastSP STC ; exponent will be difference - 1 SBB AX,CX ; compute result exponent ; AH has the (tentative) true exponent of the result. It is correct if the ; result does not need normalizing. If normalizing is required, then this ; must be incremented to give the correct result exponent XOR DH,DL ; Compute sign PUSH ebp PUSH edx ; Save sign PUSH esi PUSH edi ADD esi,6 ADD edi,6 MOV ecx,4 STD REP CMPS word ptr [esi],word ptr [edi] ; compare numerator mantissa CLD ; with denominator mantissa POP edi POP esi PUSHF ; save the flags from the compare MOV BP,AX ; save the exponent LODS word ptr [esi] ; Load up numerator MOV CX,AX LODS word ptr [esi] MOV BX,AX LODS word ptr [esi] MOV DX,AX LODS word ptr [esi] XCHG AX,DX ; Move divisor to DAC so we can get at it easily. MOV esi,edi ; Move divisor to DAC MOV edi,offset DAC ifdef i386 MOVSD MOVSD else MOVSW MOVSW MOVSW MOVSW endif ; Now we're all set: ; DX:AX:BX:CX has dividend ; DAC has divisor (in normal format) ; Both are 64 bits with zeros and have implied bit set. ; Top of stack has sign and tentative exponent. XOR DI,DI POPF ; numerator mantissa < denominator? ; 80286 errata for POPF shouldn't ; apply because interrupts should be ; turned on in this context JB short DivNoShift ; if so bypass numerator shift SHR DX,1 ; Make sure dividend is smaller than divisor RCR AX,1 ; by dividing it by two RCR BX,1 RCR CX,1 RCR DI,1 INC BP ; increment result exponent pub DivNoShift PUSH ebp ; save result exponent MOV [REMLSW],DI ; Save lsb of remainder CALL DIV16 ; Get a quotient digit PUSH edi MOV [REMLSW],0 ; Turn off the shifted bit CALL DIV16 PUSH edi CALL DIV16 PUSH edi CALL DIV16 MOV BP,8001H ; turn round and sticky on SHL CX,1 RCL BX,1 RCL AX,1 RCL DX,1 ; multiply remainder by 2 JC short BPset ; if overflow, then round,sticky valid MOV esi,offset DAC CMP DX,[esi+6] JNE short RemainderNotHalf CMP AX,[esi+4] JNE short RemainderNotHalf CMP BX,[esi+2] JNE short RemainderNotHalf CMP CX,[esi] ; compare 2*remainder with denominator ;Observe, oh wondering one, how you can assume the result of this last ;compare is not equality. Use the following notation: n=numerator, ;d=denominator,q=quotient,r=remainder,b=base(2^64 here). If ;initially we had n < d then there was no shift and we will find q and r ;so that q*d+r=n*b, if initially we had n >= d then there was a shift and ;we will find q and r so that q*d+r=n*b/2. If we have equality here ;then r=d/2 ==> n={possibly 2*}(2*q+1)*d/(2*b), since this can only ;be integral if d is a multiple of b, but by definition b/2 <= d < b, we ;have a contradiction. Equality is thus impossible at this point. pub RemainderNotHalf ; if 2*remainder > denominator JAE short BPset ; then round and sticky are valid OR AX,DX OR AX,CX OR AX,BX OR AL,AH ; otherwise or sticky bits into AL XOR AH,AH ; clear round bit MOV BP,AX ; move round and sticky into BP pub BPset MOV DX,DI ; get low 16 bits into proper location POP ecx POP ebx POP edi POP esi ; Now restore exponent JMP ROUND ; Result is normalized, round it ; Remainder in DX:AX:BX:CX:REMLSW pub DIV16 MOV SI,[DAC+6] ; Get high word of divisor XOR DI,DI ; Initialize quotient digit to zero CMP DX,SI ; Will we overflow? JAE MAXQUO ; If so, go handle special OR DX,DX ; Is dividend small? JNZ short DDIV CMP SI,AX ; Will divisor fit at all? JA short ZERQUO ; No - quotient is zero pub DDIV DIV SI ; AX is our digit "guess" PUSH edx ; Save remainder - PUSH ebx ; top 32 bits XCHG AX,DI ; Quotient digit in DI XOR BP,BP ; Initialize quotient * divisor MOV SI,BP MOV AX,[DAC] OR AX,AX ; If zero, save multiply time JZ short REM2 MUL DI ; Begin computing quotient * divisor MOV SI,DX pub REM2 PUSH eax ; Save lowest word of quotient * divisor MOV AX,[DAC+2] OR AX,AX JZ short REM3 MUL DI ADD SI,AX ADC BP,DX pub REM3 MOV AX,[DAC+4] OR AX,AX JZ short REM4 MUL DI ADD BP,AX ADC DX,0 XCHG AX,DX ; Remainder - Quotient * divisor ; [SP+4]:[SP+2]:CX:REMLSW - AX:BP:SI:[SP] pub REM4 MOV DX,[REMLSW] ; Low word of remainder POP ebx ; Recover lowest word of quotient * divisor SUB DX,BX SBB CX,SI POP ebx SBB BX,BP POP ebp ; Remainder from DIV SBB BP,AX XCHG AX,BP pub ZERQUO ; Remainder in AX:BX:CX:DX XCHG AX,DX XCHG AX,CX XCHG AX,BX JNC short DRET ; Remainder in DX:AX:BX:CX pub RESTORE DEC DI ; Drop quotient since it didn't fit ADD CX,[DAC] ; Add divisor back in until remainder goes + ADC BX,[DAC+2] ADC AX,[DAC+4] ADC DX,[DAC+6] JNC RESTORE ; Loop is performed at most twice pub DRET RET pub MAXQUO DEC DI ; DI=FFFF=2**16-1, DX:AX:BX:CX is remainder, SUB CX,[DAC] ; DX = [DAC+6], d = divisor = [DAC] SBB BX,[DAC+2] SBB AX,[DAC+4] ; subtract 2^16*d from DX:AX:BX:CX:0000H ADD CX,[DAC+2] ; (DX-[DAC+6] = 0 is implied) ADC BX,[DAC+4] ADC AX,DX ; add high 48 bits of d to AX:BX:CX:0000H MOV DX,[DAC] ; add low 16 bits of d to zero giving DX CMC ; DI should be FFFEH if no carry from add JMP ZERQUO ProfEnd FDIV
24.952569
81
0.64882
ca10484e17dfbfcbd2bcf928a10c2210aa4578b2
4,387
asm
Assembly
Delfino/SingleCore/SmartWinch/DCL/source/DCL_DF23.asm
vlad314/FYP_SmartWinch
fca9c23e89d5ea14bfcd18b6565c0a241d7cf3ab
[ "MIT" ]
null
null
null
Delfino/SingleCore/SmartWinch/DCL/source/DCL_DF23.asm
vlad314/FYP_SmartWinch
fca9c23e89d5ea14bfcd18b6565c0a241d7cf3ab
[ "MIT" ]
5
2018-02-15T10:21:58.000Z
2018-09-21T10:33:36.000Z
Delfino/SingleCore/SmartWinch/DCL/source/DCL_DF23.asm
vlad314/FYP_SmartWinch
fca9c23e89d5ea14bfcd18b6565c0a241d7cf3ab
[ "MIT" ]
2
2018-05-24T16:47:00.000Z
2019-10-05T15:11:32.000Z
; DCL_DF23.asm - Direct Form 2 implementation in third order ; version 1.0, August 2015 ; define C callable labels .def _DCL_runDF23 ; full DF2 controller .def _DCL_runDF23i ; immediate result .def _DCL_runDF23p ; pre-computed partial result ; ; C type definition: ; typedef volatile struct { ; float b0; // [0] ; float b1; // [2] ; float b2; // [4] ; float b3; // [6] ; float a1; // [8] ; float a2; // [A] ; float a3; // [C] ; float x1; // [E] ; float x2; // [10] ; float x3; // [12] ; } DF23; ;*** full DF23 controller *** ; C prototype: ; float DCL_runDF23(DF23 *p, float ek) ; argument 1 = *p : 32-bit ARMA structure address [XAR4] ; argument 2 = ek : 32-bit floating-point input [R0H] ; return = uk : 32-bit floating-point [R0H] ; example of section allocation in linker command file: ; dclfuncs : > RAML4, PAGE = 0 .sect "dclfuncs" _DCL_runDF23: PUSH XAR5 MOV32 *SP++, R1H MOV32 *SP++, R2H MOV32 *SP++, R3H MOV32 *SP++, R4H MOV32 *SP++, R5H MOV32 *SP++, R6H MOV32 *SP++, R7H MOVL ACC, @XAR4 ; ACC = &b0 ADDB ACC, #0xE ; ACC = &x1 MOVL XAR5, ACC ; XAR5 = &x1 MOV32 R1H, *XAR5++ ; R1H = x1 MOV32 R2H, *XAR4++ ; R2H = b0 MPYF32 R3H, R2H, R0H ; R3H = v1 MOV32 R2H, *XAR4++ ; R2H = b1 ADDF32 R7H, R1H, R3H ; R7H = uk || MOV32 R3H, *XAR4++ ; R3H = b2 MPYF32 R1H, R2H, R0H ; R1H = v2 || MOV32 R4H, *XAR4++ ; R4H = b3 MPYF32 R2H, R3H, R0H ; R2H = v4 || MOV32 R5H, *XAR4++ ; R5H = a1 MPYF32 R3H, R4H, R0H ; R3H = v6 || MOV32 R6H, *XAR4++ ; R6H = a2 MPYF32 R4H, R5H, R7H ; R4H = v3 || MOV32 R0H, *XAR5++ ; R0H = x2 ADDF32 R1H, R0H, R1H ; R1H = v2 + x2 MOV32 R0H, *XAR4++ ; R0H = a3 SUBF32 R1H, R1H, R4H ; R1H = x1d MPYF32 R5H, R6H, R7H ; R5H = v5 || MOV32 R6H, *XAR5 ; R6H = x3 ADDF32 R2H, R2H, R6H ; R2H = v4 + x3 MOV32 *XAR4++, R1H ; save x1 SUBF32 R2H, R2H, R5H ; R2H = x2d MPYF32 R5H, R0H, R7H ; R5H = v7 MOV32 *XAR4++, R2H ; save x2 SUBF32 R3H, R3H, R5H ; R3H = x3d MOV32 R0H, R7H, UNCF ; save uk MOV32 *XAR4, R3H ; save x3 MOV32 R7H, *--SP, UNCF MOV32 R6H, *--SP, UNCF MOV32 R5H, *--SP, UNCF MOV32 R4H, *--SP, UNCF MOV32 R3H, *--SP, UNCF MOV32 R2H, *--SP, UNCF MOV32 R1H, *--SP, UNCF POP XAR5 LRETR ;*** immediate controller when using pre-computation *** ; C prototype: ; float DCL_runDF23i(DF23 *p, float ek) ; argument 1 = *p : controller structure address [XAR4] ; argument 2 = ek : controller input [R0H] ; return = uk : controller output [R0H] _DCL_runDF23i: MOV32 *SP++, R1H MOV32 R1H, *+XAR4[0] ; R1H = b0 MOV AR0, #0xE ; AR0 = 14 MPYF32 R0H, R0H, R1H ; R0H = ek * b0 MOV32 R1H, *+XAR4[AR0] ; R1H = x1 ADDF32 R0H, R0H, R1H ; R0H = uk MOV32 R1H, *--SP, UNCF LRETR ;*** partial controller when using pre-computation *** ; C prototype: ; void DCL_runDF23p(DF23 *p, float ek, float uk) ; argument 1 = *p : controller structure address [XAR4] ; argument 2 = ek : controller input [R0H] ; argument 3 = uk : u(k) output [R1H] ; return: void _DCL_runDF23p: MOV32 *SP++, R2H MOV32 *SP++, R3H MOV32 *SP++, R4H MOV32 *SP++, R5H MOV32 *SP++, R6H MOV32 *SP++, R7H MOVL ACC, @XAR4 ; ACC = &b0 ADDB ACC, #0x10 ; ACC = &x2 MOVL XAR5, ACC ; XAR5 = &x2 MOV32 R2H, *XAR4++ ; R2H = b0 MOV32 R2H, *XAR4++ ; R2H = b1 MPYF32 R3H, R0H, R2H ; R3H = v2 || MOV32 R4H, *XAR5++ ; R4H = x2 MOV32 R2H, *XAR4++ ; R2H = b2 ADDF32 R3H, R3H, R4H ; R3H = v2 + x2 || MOV32 R4H, *XAR4++ ; R4H = b3 MPYF32 R5H, R0H, R2H ; R5H = v4 || MOV32 R6H, *XAR4++ ; R6H = a1 MPYF32 R7H, R4H, R0H ; R7H = v6 || MOV32 R4H, *XAR4++ ; R4H = a2 MPYF32 R6H, R6H, R1H ; R6H = v3 MOV32 R0H, *XAR4++ ; R0H = a3 SUBF32 R3H, R3H, R6H ; R3H = x1d MPYF32 R4H, R4H, R1H ; R4H = v5 MOV32 R2H, *XAR5 ; R2H = x3 MOV32 *XAR4++, R3H ; save x1 ADDF32 R5H, R5H, R2H ; R5H = v4 + x3 MPYF32 R1H, R0H, R1H ; R1H = v7 SUBF32 R4H, R5H, R4H ; R4H = x2d SUBF32 R7H, R7H, R1H ; R7H = x3d MOV32 *XAR4++, R4H ; save x2 MOV32 *XAR4, R7H ; save x3 MOV32 R7H, *--SP, UNCF MOV32 R6H, *--SP, UNCF MOV32 R5H, *--SP, UNCF MOV32 R4H, *--SP, UNCF MOV32 R3H, *--SP, UNCF MOV32 R2H, *--SP, UNCF LRETR .end ; end of file
27.765823
60
0.561887
0fc648a485ef47c1662b1347f2c4c169b04a294b
80,657
asm
Assembly
JOSSimulation/obj/user/test3.asm
marcus-deans/duke-operatingsystems
f37997402a4a1c4f9b69076addc27cecedddceeb
[ "MIT" ]
null
null
null
JOSSimulation/obj/user/test3.asm
marcus-deans/duke-operatingsystems
f37997402a4a1c4f9b69076addc27cecedddceeb
[ "MIT" ]
null
null
null
JOSSimulation/obj/user/test3.asm
marcus-deans/duke-operatingsystems
f37997402a4a1c4f9b69076addc27cecedddceeb
[ "MIT" ]
null
null
null
obj/user/test3: file format elf32-i386 Disassembly of section .text: 00800020 <umain>: #include <inc/lib.h> #include <inc/magic.h> void umain(int argc, char **argv) { 800020: 55 push %ebp 800021: 89 e5 mov %esp,%ebp 800023: 53 push %ebx 800024: 83 ec 10 sub $0x10,%esp 800027: e8 1f 00 00 00 call 80004b <__x86.get_pc_thunk.bx> 80002c: 81 c3 d4 1f 00 00 add $0x1fd4,%ebx cprintf(HELLO_WORLD); 800032: 8d 83 9c ed ff ff lea -0x1264(%ebx),%eax 800038: 50 push %eax 800039: e8 e3 00 00 00 call 800121 <cprintf> exit(); 80003e: e8 0c 00 00 00 call 80004f <exit> } 800043: 83 c4 10 add $0x10,%esp 800046: 8b 5d fc mov -0x4(%ebp),%ebx 800049: c9 leave 80004a: c3 ret 0080004b <__x86.get_pc_thunk.bx>: 80004b: 8b 1c 24 mov (%esp),%ebx 80004e: c3 ret 0080004f <exit>: #include <inc/lib.h> void exit(void) { 80004f: 55 push %ebp 800050: 89 e5 mov %esp,%ebp 800052: 53 push %ebx 800053: 83 ec 10 sub $0x10,%esp 800056: e8 f0 ff ff ff call 80004b <__x86.get_pc_thunk.bx> 80005b: 81 c3 a5 1f 00 00 add $0x1fa5,%ebx sys_env_destroy(0); 800061: 6a 00 push $0x0 800063: e8 5d 0a 00 00 call 800ac5 <sys_env_destroy> } 800068: 83 c4 10 add $0x10,%esp 80006b: 8b 5d fc mov -0x4(%ebp),%ebx 80006e: c9 leave 80006f: c3 ret 00800070 <putch>: }; static void putch(int ch, struct printbuf *b) { 800070: 55 push %ebp 800071: 89 e5 mov %esp,%ebp 800073: 56 push %esi 800074: 53 push %ebx 800075: e8 d1 ff ff ff call 80004b <__x86.get_pc_thunk.bx> 80007a: 81 c3 86 1f 00 00 add $0x1f86,%ebx 800080: 8b 75 0c mov 0xc(%ebp),%esi b->buf[b->idx++] = ch; 800083: 8b 16 mov (%esi),%edx 800085: 8d 42 01 lea 0x1(%edx),%eax 800088: 89 06 mov %eax,(%esi) 80008a: 8b 4d 08 mov 0x8(%ebp),%ecx 80008d: 88 4c 16 08 mov %cl,0x8(%esi,%edx,1) if (b->idx == 256-1) { 800091: 3d ff 00 00 00 cmp $0xff,%eax 800096: 74 0b je 8000a3 <putch+0x33> sys_cputs(b->buf, b->idx); b->idx = 0; } b->cnt++; 800098: 83 46 04 01 addl $0x1,0x4(%esi) } 80009c: 8d 65 f8 lea -0x8(%ebp),%esp 80009f: 5b pop %ebx 8000a0: 5e pop %esi 8000a1: 5d pop %ebp 8000a2: c3 ret sys_cputs(b->buf, b->idx); 8000a3: 83 ec 08 sub $0x8,%esp 8000a6: 68 ff 00 00 00 push $0xff 8000ab: 8d 46 08 lea 0x8(%esi),%eax 8000ae: 50 push %eax 8000af: e8 d4 09 00 00 call 800a88 <sys_cputs> b->idx = 0; 8000b4: c7 06 00 00 00 00 movl $0x0,(%esi) 8000ba: 83 c4 10 add $0x10,%esp 8000bd: eb d9 jmp 800098 <putch+0x28> 008000bf <vcprintf>: int vcprintf(const char *fmt, va_list ap) { 8000bf: 55 push %ebp 8000c0: 89 e5 mov %esp,%ebp 8000c2: 53 push %ebx 8000c3: 81 ec 14 01 00 00 sub $0x114,%esp 8000c9: e8 7d ff ff ff call 80004b <__x86.get_pc_thunk.bx> 8000ce: 81 c3 32 1f 00 00 add $0x1f32,%ebx struct printbuf b; b.idx = 0; 8000d4: c7 85 f0 fe ff ff 00 movl $0x0,-0x110(%ebp) 8000db: 00 00 00 b.cnt = 0; 8000de: c7 85 f4 fe ff ff 00 movl $0x0,-0x10c(%ebp) 8000e5: 00 00 00 vprintfmt((void*)putch, &b, fmt, ap); 8000e8: ff 75 0c pushl 0xc(%ebp) 8000eb: ff 75 08 pushl 0x8(%ebp) 8000ee: 8d 85 f0 fe ff ff lea -0x110(%ebp),%eax 8000f4: 50 push %eax 8000f5: 8d 83 70 e0 ff ff lea -0x1f90(%ebx),%eax 8000fb: 50 push %eax 8000fc: e8 38 01 00 00 call 800239 <vprintfmt> sys_cputs(b.buf, b.idx); 800101: 83 c4 08 add $0x8,%esp 800104: ff b5 f0 fe ff ff pushl -0x110(%ebp) 80010a: 8d 85 f8 fe ff ff lea -0x108(%ebp),%eax 800110: 50 push %eax 800111: e8 72 09 00 00 call 800a88 <sys_cputs> return b.cnt; } 800116: 8b 85 f4 fe ff ff mov -0x10c(%ebp),%eax 80011c: 8b 5d fc mov -0x4(%ebp),%ebx 80011f: c9 leave 800120: c3 ret 00800121 <cprintf>: int cprintf(const char *fmt, ...) { 800121: 55 push %ebp 800122: 89 e5 mov %esp,%ebp 800124: 83 ec 10 sub $0x10,%esp va_list ap; int cnt; va_start(ap, fmt); 800127: 8d 45 0c lea 0xc(%ebp),%eax cnt = vcprintf(fmt, ap); 80012a: 50 push %eax 80012b: ff 75 08 pushl 0x8(%ebp) 80012e: e8 8c ff ff ff call 8000bf <vcprintf> va_end(ap); return cnt; } 800133: c9 leave 800134: c3 ret 00800135 <printnum>: * using specified putch function and associated pointer putdat. */ static void printnum(void (*putch)(int, void*), void *putdat, unsigned long long num, unsigned base, int width, int padc) { 800135: 55 push %ebp 800136: 89 e5 mov %esp,%ebp 800138: 57 push %edi 800139: 56 push %esi 80013a: 53 push %ebx 80013b: 83 ec 2c sub $0x2c,%esp 80013e: e8 cd 05 00 00 call 800710 <__x86.get_pc_thunk.cx> 800143: 81 c1 bd 1e 00 00 add $0x1ebd,%ecx 800149: 89 4d e4 mov %ecx,-0x1c(%ebp) 80014c: 89 c7 mov %eax,%edi 80014e: 89 d6 mov %edx,%esi 800150: 8b 45 08 mov 0x8(%ebp),%eax 800153: 8b 55 0c mov 0xc(%ebp),%edx 800156: 89 45 d0 mov %eax,-0x30(%ebp) 800159: 89 55 d4 mov %edx,-0x2c(%ebp) // first recursively print all preceding (more significant) digits if (num >= base) { 80015c: 8b 4d 10 mov 0x10(%ebp),%ecx 80015f: bb 00 00 00 00 mov $0x0,%ebx 800164: 89 4d d8 mov %ecx,-0x28(%ebp) 800167: 89 5d dc mov %ebx,-0x24(%ebp) 80016a: 39 d3 cmp %edx,%ebx 80016c: 72 09 jb 800177 <printnum+0x42> 80016e: 39 45 10 cmp %eax,0x10(%ebp) 800171: 0f 87 83 00 00 00 ja 8001fa <printnum+0xc5> printnum(putch, putdat, num / base, base, width - 1, padc); 800177: 83 ec 0c sub $0xc,%esp 80017a: ff 75 18 pushl 0x18(%ebp) 80017d: 8b 45 14 mov 0x14(%ebp),%eax 800180: 8d 58 ff lea -0x1(%eax),%ebx 800183: 53 push %ebx 800184: ff 75 10 pushl 0x10(%ebp) 800187: 83 ec 08 sub $0x8,%esp 80018a: ff 75 dc pushl -0x24(%ebp) 80018d: ff 75 d8 pushl -0x28(%ebp) 800190: ff 75 d4 pushl -0x2c(%ebp) 800193: ff 75 d0 pushl -0x30(%ebp) 800196: 8b 5d e4 mov -0x1c(%ebp),%ebx 800199: e8 c2 09 00 00 call 800b60 <__udivdi3> 80019e: 83 c4 18 add $0x18,%esp 8001a1: 52 push %edx 8001a2: 50 push %eax 8001a3: 89 f2 mov %esi,%edx 8001a5: 89 f8 mov %edi,%eax 8001a7: e8 89 ff ff ff call 800135 <printnum> 8001ac: 83 c4 20 add $0x20,%esp 8001af: eb 13 jmp 8001c4 <printnum+0x8f> } else { // print any needed pad characters before first digit while (--width > 0) putch(padc, putdat); 8001b1: 83 ec 08 sub $0x8,%esp 8001b4: 56 push %esi 8001b5: ff 75 18 pushl 0x18(%ebp) 8001b8: ff d7 call *%edi 8001ba: 83 c4 10 add $0x10,%esp while (--width > 0) 8001bd: 83 eb 01 sub $0x1,%ebx 8001c0: 85 db test %ebx,%ebx 8001c2: 7f ed jg 8001b1 <printnum+0x7c> } // then print this (the least significant) digit putch("0123456789abcdef"[num % base], putdat); 8001c4: 83 ec 08 sub $0x8,%esp 8001c7: 56 push %esi 8001c8: 83 ec 04 sub $0x4,%esp 8001cb: ff 75 dc pushl -0x24(%ebp) 8001ce: ff 75 d8 pushl -0x28(%ebp) 8001d1: ff 75 d4 pushl -0x2c(%ebp) 8001d4: ff 75 d0 pushl -0x30(%ebp) 8001d7: 8b 75 e4 mov -0x1c(%ebp),%esi 8001da: 89 f3 mov %esi,%ebx 8001dc: e8 9f 0a 00 00 call 800c80 <__umoddi3> 8001e1: 83 c4 14 add $0x14,%esp 8001e4: 0f be 84 06 a9 ed ff movsbl -0x1257(%esi,%eax,1),%eax 8001eb: ff 8001ec: 50 push %eax 8001ed: ff d7 call *%edi } 8001ef: 83 c4 10 add $0x10,%esp 8001f2: 8d 65 f4 lea -0xc(%ebp),%esp 8001f5: 5b pop %ebx 8001f6: 5e pop %esi 8001f7: 5f pop %edi 8001f8: 5d pop %ebp 8001f9: c3 ret 8001fa: 8b 5d 14 mov 0x14(%ebp),%ebx 8001fd: eb be jmp 8001bd <printnum+0x88> 008001ff <sprintputch>: int cnt; }; static void sprintputch(int ch, struct sprintbuf *b) { 8001ff: 55 push %ebp 800200: 89 e5 mov %esp,%ebp 800202: 8b 45 0c mov 0xc(%ebp),%eax b->cnt++; 800205: 83 40 08 01 addl $0x1,0x8(%eax) if (b->buf < b->ebuf) 800209: 8b 10 mov (%eax),%edx 80020b: 3b 50 04 cmp 0x4(%eax),%edx 80020e: 73 0a jae 80021a <sprintputch+0x1b> *b->buf++ = ch; 800210: 8d 4a 01 lea 0x1(%edx),%ecx 800213: 89 08 mov %ecx,(%eax) 800215: 8b 45 08 mov 0x8(%ebp),%eax 800218: 88 02 mov %al,(%edx) } 80021a: 5d pop %ebp 80021b: c3 ret 0080021c <printfmt>: { 80021c: 55 push %ebp 80021d: 89 e5 mov %esp,%ebp 80021f: 83 ec 08 sub $0x8,%esp va_start(ap, fmt); 800222: 8d 45 14 lea 0x14(%ebp),%eax vprintfmt(putch, putdat, fmt, ap); 800225: 50 push %eax 800226: ff 75 10 pushl 0x10(%ebp) 800229: ff 75 0c pushl 0xc(%ebp) 80022c: ff 75 08 pushl 0x8(%ebp) 80022f: e8 05 00 00 00 call 800239 <vprintfmt> } 800234: 83 c4 10 add $0x10,%esp 800237: c9 leave 800238: c3 ret 00800239 <vprintfmt>: { 800239: 55 push %ebp 80023a: 89 e5 mov %esp,%ebp 80023c: 57 push %edi 80023d: 56 push %esi 80023e: 53 push %ebx 80023f: 83 ec 2c sub $0x2c,%esp 800242: e8 04 fe ff ff call 80004b <__x86.get_pc_thunk.bx> 800247: 81 c3 b9 1d 00 00 add $0x1db9,%ebx 80024d: 8b 75 0c mov 0xc(%ebp),%esi 800250: 8b 7d 10 mov 0x10(%ebp),%edi 800253: e9 8e 03 00 00 jmp 8005e6 <.L35+0x48> padc = ' '; 800258: c6 45 d4 20 movb $0x20,-0x2c(%ebp) altflag = 0; 80025c: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) precision = -1; 800263: c7 45 d0 ff ff ff ff movl $0xffffffff,-0x30(%ebp) width = -1; 80026a: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp) lflag = 0; 800271: b9 00 00 00 00 mov $0x0,%ecx 800276: 89 4d cc mov %ecx,-0x34(%ebp) switch (ch = *(unsigned char *) fmt++) { 800279: 8d 47 01 lea 0x1(%edi),%eax 80027c: 89 45 e4 mov %eax,-0x1c(%ebp) 80027f: 0f b6 17 movzbl (%edi),%edx 800282: 8d 42 dd lea -0x23(%edx),%eax 800285: 3c 55 cmp $0x55,%al 800287: 0f 87 e1 03 00 00 ja 80066e <.L22> 80028d: 0f b6 c0 movzbl %al,%eax 800290: 89 d9 mov %ebx,%ecx 800292: 03 8c 83 38 ee ff ff add -0x11c8(%ebx,%eax,4),%ecx 800299: ff e1 jmp *%ecx 0080029b <.L67>: 80029b: 8b 7d e4 mov -0x1c(%ebp),%edi padc = '-'; 80029e: c6 45 d4 2d movb $0x2d,-0x2c(%ebp) 8002a2: eb d5 jmp 800279 <vprintfmt+0x40> 008002a4 <.L28>: switch (ch = *(unsigned char *) fmt++) { 8002a4: 8b 7d e4 mov -0x1c(%ebp),%edi padc = '0'; 8002a7: c6 45 d4 30 movb $0x30,-0x2c(%ebp) 8002ab: eb cc jmp 800279 <vprintfmt+0x40> 008002ad <.L29>: switch (ch = *(unsigned char *) fmt++) { 8002ad: 0f b6 d2 movzbl %dl,%edx 8002b0: 8b 7d e4 mov -0x1c(%ebp),%edi for (precision = 0; ; ++fmt) { 8002b3: b8 00 00 00 00 mov $0x0,%eax precision = precision * 10 + ch - '0'; 8002b8: 8d 04 80 lea (%eax,%eax,4),%eax 8002bb: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax ch = *fmt; 8002bf: 0f be 17 movsbl (%edi),%edx if (ch < '0' || ch > '9') 8002c2: 8d 4a d0 lea -0x30(%edx),%ecx 8002c5: 83 f9 09 cmp $0x9,%ecx 8002c8: 77 55 ja 80031f <.L23+0xf> for (precision = 0; ; ++fmt) { 8002ca: 83 c7 01 add $0x1,%edi precision = precision * 10 + ch - '0'; 8002cd: eb e9 jmp 8002b8 <.L29+0xb> 008002cf <.L26>: precision = va_arg(ap, int); 8002cf: 8b 45 14 mov 0x14(%ebp),%eax 8002d2: 8b 00 mov (%eax),%eax 8002d4: 89 45 d0 mov %eax,-0x30(%ebp) 8002d7: 8b 45 14 mov 0x14(%ebp),%eax 8002da: 8d 40 04 lea 0x4(%eax),%eax 8002dd: 89 45 14 mov %eax,0x14(%ebp) switch (ch = *(unsigned char *) fmt++) { 8002e0: 8b 7d e4 mov -0x1c(%ebp),%edi if (width < 0) 8002e3: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 8002e7: 79 90 jns 800279 <vprintfmt+0x40> width = precision, precision = -1; 8002e9: 8b 45 d0 mov -0x30(%ebp),%eax 8002ec: 89 45 e0 mov %eax,-0x20(%ebp) 8002ef: c7 45 d0 ff ff ff ff movl $0xffffffff,-0x30(%ebp) 8002f6: eb 81 jmp 800279 <vprintfmt+0x40> 008002f8 <.L27>: 8002f8: 8b 45 e0 mov -0x20(%ebp),%eax 8002fb: 85 c0 test %eax,%eax 8002fd: ba 00 00 00 00 mov $0x0,%edx 800302: 0f 49 d0 cmovns %eax,%edx 800305: 89 55 e0 mov %edx,-0x20(%ebp) switch (ch = *(unsigned char *) fmt++) { 800308: 8b 7d e4 mov -0x1c(%ebp),%edi 80030b: e9 69 ff ff ff jmp 800279 <vprintfmt+0x40> 00800310 <.L23>: 800310: 8b 7d e4 mov -0x1c(%ebp),%edi altflag = 1; 800313: c7 45 d8 01 00 00 00 movl $0x1,-0x28(%ebp) goto reswitch; 80031a: e9 5a ff ff ff jmp 800279 <vprintfmt+0x40> 80031f: 89 45 d0 mov %eax,-0x30(%ebp) 800322: eb bf jmp 8002e3 <.L26+0x14> 00800324 <.L33>: lflag++; 800324: 83 45 cc 01 addl $0x1,-0x34(%ebp) switch (ch = *(unsigned char *) fmt++) { 800328: 8b 7d e4 mov -0x1c(%ebp),%edi goto reswitch; 80032b: e9 49 ff ff ff jmp 800279 <vprintfmt+0x40> 00800330 <.L30>: putch(va_arg(ap, int), putdat); 800330: 8b 45 14 mov 0x14(%ebp),%eax 800333: 8d 78 04 lea 0x4(%eax),%edi 800336: 83 ec 08 sub $0x8,%esp 800339: 56 push %esi 80033a: ff 30 pushl (%eax) 80033c: ff 55 08 call *0x8(%ebp) break; 80033f: 83 c4 10 add $0x10,%esp putch(va_arg(ap, int), putdat); 800342: 89 7d 14 mov %edi,0x14(%ebp) break; 800345: e9 99 02 00 00 jmp 8005e3 <.L35+0x45> 0080034a <.L32>: err = va_arg(ap, int); 80034a: 8b 45 14 mov 0x14(%ebp),%eax 80034d: 8d 78 04 lea 0x4(%eax),%edi 800350: 8b 00 mov (%eax),%eax 800352: 99 cltd 800353: 31 d0 xor %edx,%eax 800355: 29 d0 sub %edx,%eax if (err >= MAXERROR || (p = error_string[err]) == NULL) 800357: 83 f8 06 cmp $0x6,%eax 80035a: 7f 27 jg 800383 <.L32+0x39> 80035c: 8b 94 83 0c 00 00 00 mov 0xc(%ebx,%eax,4),%edx 800363: 85 d2 test %edx,%edx 800365: 74 1c je 800383 <.L32+0x39> printfmt(putch, putdat, "%s", p); 800367: 52 push %edx 800368: 8d 83 ca ed ff ff lea -0x1236(%ebx),%eax 80036e: 50 push %eax 80036f: 56 push %esi 800370: ff 75 08 pushl 0x8(%ebp) 800373: e8 a4 fe ff ff call 80021c <printfmt> 800378: 83 c4 10 add $0x10,%esp err = va_arg(ap, int); 80037b: 89 7d 14 mov %edi,0x14(%ebp) 80037e: e9 60 02 00 00 jmp 8005e3 <.L35+0x45> printfmt(putch, putdat, "error %d", err); 800383: 50 push %eax 800384: 8d 83 c1 ed ff ff lea -0x123f(%ebx),%eax 80038a: 50 push %eax 80038b: 56 push %esi 80038c: ff 75 08 pushl 0x8(%ebp) 80038f: e8 88 fe ff ff call 80021c <printfmt> 800394: 83 c4 10 add $0x10,%esp err = va_arg(ap, int); 800397: 89 7d 14 mov %edi,0x14(%ebp) printfmt(putch, putdat, "error %d", err); 80039a: e9 44 02 00 00 jmp 8005e3 <.L35+0x45> 0080039f <.L36>: if ((p = va_arg(ap, char *)) == NULL) 80039f: 8b 45 14 mov 0x14(%ebp),%eax 8003a2: 83 c0 04 add $0x4,%eax 8003a5: 89 45 cc mov %eax,-0x34(%ebp) 8003a8: 8b 45 14 mov 0x14(%ebp),%eax 8003ab: 8b 38 mov (%eax),%edi p = "(null)"; 8003ad: 85 ff test %edi,%edi 8003af: 8d 83 ba ed ff ff lea -0x1246(%ebx),%eax 8003b5: 0f 44 f8 cmove %eax,%edi if (width > 0 && padc != '-') 8003b8: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 8003bc: 0f 8e b5 00 00 00 jle 800477 <.L36+0xd8> 8003c2: 80 7d d4 2d cmpb $0x2d,-0x2c(%ebp) 8003c6: 75 08 jne 8003d0 <.L36+0x31> 8003c8: 89 75 0c mov %esi,0xc(%ebp) 8003cb: 8b 75 d0 mov -0x30(%ebp),%esi 8003ce: eb 6d jmp 80043d <.L36+0x9e> for (width -= strnlen(p, precision); width > 0; width--) 8003d0: 83 ec 08 sub $0x8,%esp 8003d3: ff 75 d0 pushl -0x30(%ebp) 8003d6: 57 push %edi 8003d7: e8 50 03 00 00 call 80072c <strnlen> 8003dc: 8b 55 e0 mov -0x20(%ebp),%edx 8003df: 29 c2 sub %eax,%edx 8003e1: 89 55 c8 mov %edx,-0x38(%ebp) 8003e4: 83 c4 10 add $0x10,%esp putch(padc, putdat); 8003e7: 0f be 45 d4 movsbl -0x2c(%ebp),%eax 8003eb: 89 45 e0 mov %eax,-0x20(%ebp) 8003ee: 89 7d d4 mov %edi,-0x2c(%ebp) 8003f1: 89 d7 mov %edx,%edi for (width -= strnlen(p, precision); width > 0; width--) 8003f3: eb 10 jmp 800405 <.L36+0x66> putch(padc, putdat); 8003f5: 83 ec 08 sub $0x8,%esp 8003f8: 56 push %esi 8003f9: ff 75 e0 pushl -0x20(%ebp) 8003fc: ff 55 08 call *0x8(%ebp) for (width -= strnlen(p, precision); width > 0; width--) 8003ff: 83 ef 01 sub $0x1,%edi 800402: 83 c4 10 add $0x10,%esp 800405: 85 ff test %edi,%edi 800407: 7f ec jg 8003f5 <.L36+0x56> 800409: 8b 7d d4 mov -0x2c(%ebp),%edi 80040c: 8b 55 c8 mov -0x38(%ebp),%edx 80040f: 85 d2 test %edx,%edx 800411: b8 00 00 00 00 mov $0x0,%eax 800416: 0f 49 c2 cmovns %edx,%eax 800419: 29 c2 sub %eax,%edx 80041b: 89 55 e0 mov %edx,-0x20(%ebp) 80041e: 89 75 0c mov %esi,0xc(%ebp) 800421: 8b 75 d0 mov -0x30(%ebp),%esi 800424: eb 17 jmp 80043d <.L36+0x9e> if (altflag && (ch < ' ' || ch > '~')) 800426: 83 7d d8 00 cmpl $0x0,-0x28(%ebp) 80042a: 75 30 jne 80045c <.L36+0xbd> putch(ch, putdat); 80042c: 83 ec 08 sub $0x8,%esp 80042f: ff 75 0c pushl 0xc(%ebp) 800432: 50 push %eax 800433: ff 55 08 call *0x8(%ebp) 800436: 83 c4 10 add $0x10,%esp for (; (ch = *p++) != '\0' && (precision < 0 || --precision >= 0); width--) 800439: 83 6d e0 01 subl $0x1,-0x20(%ebp) 80043d: 83 c7 01 add $0x1,%edi 800440: 0f b6 57 ff movzbl -0x1(%edi),%edx 800444: 0f be c2 movsbl %dl,%eax 800447: 85 c0 test %eax,%eax 800449: 74 52 je 80049d <.L36+0xfe> 80044b: 85 f6 test %esi,%esi 80044d: 78 d7 js 800426 <.L36+0x87> 80044f: 83 ee 01 sub $0x1,%esi 800452: 79 d2 jns 800426 <.L36+0x87> 800454: 8b 75 0c mov 0xc(%ebp),%esi 800457: 8b 7d e0 mov -0x20(%ebp),%edi 80045a: eb 32 jmp 80048e <.L36+0xef> if (altflag && (ch < ' ' || ch > '~')) 80045c: 0f be d2 movsbl %dl,%edx 80045f: 83 ea 20 sub $0x20,%edx 800462: 83 fa 5e cmp $0x5e,%edx 800465: 76 c5 jbe 80042c <.L36+0x8d> putch('?', putdat); 800467: 83 ec 08 sub $0x8,%esp 80046a: ff 75 0c pushl 0xc(%ebp) 80046d: 6a 3f push $0x3f 80046f: ff 55 08 call *0x8(%ebp) 800472: 83 c4 10 add $0x10,%esp 800475: eb c2 jmp 800439 <.L36+0x9a> 800477: 89 75 0c mov %esi,0xc(%ebp) 80047a: 8b 75 d0 mov -0x30(%ebp),%esi 80047d: eb be jmp 80043d <.L36+0x9e> putch(' ', putdat); 80047f: 83 ec 08 sub $0x8,%esp 800482: 56 push %esi 800483: 6a 20 push $0x20 800485: ff 55 08 call *0x8(%ebp) for (; width > 0; width--) 800488: 83 ef 01 sub $0x1,%edi 80048b: 83 c4 10 add $0x10,%esp 80048e: 85 ff test %edi,%edi 800490: 7f ed jg 80047f <.L36+0xe0> if ((p = va_arg(ap, char *)) == NULL) 800492: 8b 45 cc mov -0x34(%ebp),%eax 800495: 89 45 14 mov %eax,0x14(%ebp) 800498: e9 46 01 00 00 jmp 8005e3 <.L35+0x45> 80049d: 8b 7d e0 mov -0x20(%ebp),%edi 8004a0: 8b 75 0c mov 0xc(%ebp),%esi 8004a3: eb e9 jmp 80048e <.L36+0xef> 008004a5 <.L31>: 8004a5: 8b 4d cc mov -0x34(%ebp),%ecx if (lflag >= 2) 8004a8: 83 f9 01 cmp $0x1,%ecx 8004ab: 7e 40 jle 8004ed <.L31+0x48> return va_arg(*ap, long long); 8004ad: 8b 45 14 mov 0x14(%ebp),%eax 8004b0: 8b 50 04 mov 0x4(%eax),%edx 8004b3: 8b 00 mov (%eax),%eax 8004b5: 89 45 d8 mov %eax,-0x28(%ebp) 8004b8: 89 55 dc mov %edx,-0x24(%ebp) 8004bb: 8b 45 14 mov 0x14(%ebp),%eax 8004be: 8d 40 08 lea 0x8(%eax),%eax 8004c1: 89 45 14 mov %eax,0x14(%ebp) if ((long long) num < 0) { 8004c4: 83 7d dc 00 cmpl $0x0,-0x24(%ebp) 8004c8: 79 55 jns 80051f <.L31+0x7a> putch('-', putdat); 8004ca: 83 ec 08 sub $0x8,%esp 8004cd: 56 push %esi 8004ce: 6a 2d push $0x2d 8004d0: ff 55 08 call *0x8(%ebp) num = -(long long) num; 8004d3: 8b 55 d8 mov -0x28(%ebp),%edx 8004d6: 8b 4d dc mov -0x24(%ebp),%ecx 8004d9: f7 da neg %edx 8004db: 83 d1 00 adc $0x0,%ecx 8004de: f7 d9 neg %ecx 8004e0: 83 c4 10 add $0x10,%esp base = 10; 8004e3: b8 0a 00 00 00 mov $0xa,%eax 8004e8: e9 db 00 00 00 jmp 8005c8 <.L35+0x2a> else if (lflag) 8004ed: 85 c9 test %ecx,%ecx 8004ef: 75 17 jne 800508 <.L31+0x63> return va_arg(*ap, int); 8004f1: 8b 45 14 mov 0x14(%ebp),%eax 8004f4: 8b 00 mov (%eax),%eax 8004f6: 89 45 d8 mov %eax,-0x28(%ebp) 8004f9: 99 cltd 8004fa: 89 55 dc mov %edx,-0x24(%ebp) 8004fd: 8b 45 14 mov 0x14(%ebp),%eax 800500: 8d 40 04 lea 0x4(%eax),%eax 800503: 89 45 14 mov %eax,0x14(%ebp) 800506: eb bc jmp 8004c4 <.L31+0x1f> return va_arg(*ap, long); 800508: 8b 45 14 mov 0x14(%ebp),%eax 80050b: 8b 00 mov (%eax),%eax 80050d: 89 45 d8 mov %eax,-0x28(%ebp) 800510: 99 cltd 800511: 89 55 dc mov %edx,-0x24(%ebp) 800514: 8b 45 14 mov 0x14(%ebp),%eax 800517: 8d 40 04 lea 0x4(%eax),%eax 80051a: 89 45 14 mov %eax,0x14(%ebp) 80051d: eb a5 jmp 8004c4 <.L31+0x1f> num = getint(&ap, lflag); 80051f: 8b 55 d8 mov -0x28(%ebp),%edx 800522: 8b 4d dc mov -0x24(%ebp),%ecx base = 10; 800525: b8 0a 00 00 00 mov $0xa,%eax 80052a: e9 99 00 00 00 jmp 8005c8 <.L35+0x2a> 0080052f <.L37>: 80052f: 8b 4d cc mov -0x34(%ebp),%ecx if (lflag >= 2) 800532: 83 f9 01 cmp $0x1,%ecx 800535: 7e 15 jle 80054c <.L37+0x1d> return va_arg(*ap, unsigned long long); 800537: 8b 45 14 mov 0x14(%ebp),%eax 80053a: 8b 10 mov (%eax),%edx 80053c: 8b 48 04 mov 0x4(%eax),%ecx 80053f: 8d 40 08 lea 0x8(%eax),%eax 800542: 89 45 14 mov %eax,0x14(%ebp) base = 10; 800545: b8 0a 00 00 00 mov $0xa,%eax 80054a: eb 7c jmp 8005c8 <.L35+0x2a> else if (lflag) 80054c: 85 c9 test %ecx,%ecx 80054e: 75 17 jne 800567 <.L37+0x38> return va_arg(*ap, unsigned int); 800550: 8b 45 14 mov 0x14(%ebp),%eax 800553: 8b 10 mov (%eax),%edx 800555: b9 00 00 00 00 mov $0x0,%ecx 80055a: 8d 40 04 lea 0x4(%eax),%eax 80055d: 89 45 14 mov %eax,0x14(%ebp) base = 10; 800560: b8 0a 00 00 00 mov $0xa,%eax 800565: eb 61 jmp 8005c8 <.L35+0x2a> return va_arg(*ap, unsigned long); 800567: 8b 45 14 mov 0x14(%ebp),%eax 80056a: 8b 10 mov (%eax),%edx 80056c: b9 00 00 00 00 mov $0x0,%ecx 800571: 8d 40 04 lea 0x4(%eax),%eax 800574: 89 45 14 mov %eax,0x14(%ebp) base = 10; 800577: b8 0a 00 00 00 mov $0xa,%eax 80057c: eb 4a jmp 8005c8 <.L35+0x2a> 0080057e <.L34>: putch('X', putdat); 80057e: 83 ec 08 sub $0x8,%esp 800581: 56 push %esi 800582: 6a 58 push $0x58 800584: ff 55 08 call *0x8(%ebp) putch('X', putdat); 800587: 83 c4 08 add $0x8,%esp 80058a: 56 push %esi 80058b: 6a 58 push $0x58 80058d: ff 55 08 call *0x8(%ebp) putch('X', putdat); 800590: 83 c4 08 add $0x8,%esp 800593: 56 push %esi 800594: 6a 58 push $0x58 800596: ff 55 08 call *0x8(%ebp) break; 800599: 83 c4 10 add $0x10,%esp 80059c: eb 45 jmp 8005e3 <.L35+0x45> 0080059e <.L35>: putch('0', putdat); 80059e: 83 ec 08 sub $0x8,%esp 8005a1: 56 push %esi 8005a2: 6a 30 push $0x30 8005a4: ff 55 08 call *0x8(%ebp) putch('x', putdat); 8005a7: 83 c4 08 add $0x8,%esp 8005aa: 56 push %esi 8005ab: 6a 78 push $0x78 8005ad: ff 55 08 call *0x8(%ebp) num = (unsigned long long) 8005b0: 8b 45 14 mov 0x14(%ebp),%eax 8005b3: 8b 10 mov (%eax),%edx 8005b5: b9 00 00 00 00 mov $0x0,%ecx goto number; 8005ba: 83 c4 10 add $0x10,%esp (uintptr_t) va_arg(ap, void *); 8005bd: 8d 40 04 lea 0x4(%eax),%eax 8005c0: 89 45 14 mov %eax,0x14(%ebp) base = 16; 8005c3: b8 10 00 00 00 mov $0x10,%eax printnum(putch, putdat, num, base, width, padc); 8005c8: 83 ec 0c sub $0xc,%esp 8005cb: 0f be 7d d4 movsbl -0x2c(%ebp),%edi 8005cf: 57 push %edi 8005d0: ff 75 e0 pushl -0x20(%ebp) 8005d3: 50 push %eax 8005d4: 51 push %ecx 8005d5: 52 push %edx 8005d6: 89 f2 mov %esi,%edx 8005d8: 8b 45 08 mov 0x8(%ebp),%eax 8005db: e8 55 fb ff ff call 800135 <printnum> break; 8005e0: 83 c4 20 add $0x20,%esp err = va_arg(ap, int); 8005e3: 8b 7d e4 mov -0x1c(%ebp),%edi while ((ch = *(unsigned char *) fmt++) != '%') { 8005e6: 83 c7 01 add $0x1,%edi 8005e9: 0f b6 47 ff movzbl -0x1(%edi),%eax 8005ed: 83 f8 25 cmp $0x25,%eax 8005f0: 0f 84 62 fc ff ff je 800258 <vprintfmt+0x1f> if (ch == '\0') 8005f6: 85 c0 test %eax,%eax 8005f8: 0f 84 91 00 00 00 je 80068f <.L22+0x21> putch(ch, putdat); 8005fe: 83 ec 08 sub $0x8,%esp 800601: 56 push %esi 800602: 50 push %eax 800603: ff 55 08 call *0x8(%ebp) 800606: 83 c4 10 add $0x10,%esp 800609: eb db jmp 8005e6 <.L35+0x48> 0080060b <.L38>: 80060b: 8b 4d cc mov -0x34(%ebp),%ecx if (lflag >= 2) 80060e: 83 f9 01 cmp $0x1,%ecx 800611: 7e 15 jle 800628 <.L38+0x1d> return va_arg(*ap, unsigned long long); 800613: 8b 45 14 mov 0x14(%ebp),%eax 800616: 8b 10 mov (%eax),%edx 800618: 8b 48 04 mov 0x4(%eax),%ecx 80061b: 8d 40 08 lea 0x8(%eax),%eax 80061e: 89 45 14 mov %eax,0x14(%ebp) base = 16; 800621: b8 10 00 00 00 mov $0x10,%eax 800626: eb a0 jmp 8005c8 <.L35+0x2a> else if (lflag) 800628: 85 c9 test %ecx,%ecx 80062a: 75 17 jne 800643 <.L38+0x38> return va_arg(*ap, unsigned int); 80062c: 8b 45 14 mov 0x14(%ebp),%eax 80062f: 8b 10 mov (%eax),%edx 800631: b9 00 00 00 00 mov $0x0,%ecx 800636: 8d 40 04 lea 0x4(%eax),%eax 800639: 89 45 14 mov %eax,0x14(%ebp) base = 16; 80063c: b8 10 00 00 00 mov $0x10,%eax 800641: eb 85 jmp 8005c8 <.L35+0x2a> return va_arg(*ap, unsigned long); 800643: 8b 45 14 mov 0x14(%ebp),%eax 800646: 8b 10 mov (%eax),%edx 800648: b9 00 00 00 00 mov $0x0,%ecx 80064d: 8d 40 04 lea 0x4(%eax),%eax 800650: 89 45 14 mov %eax,0x14(%ebp) base = 16; 800653: b8 10 00 00 00 mov $0x10,%eax 800658: e9 6b ff ff ff jmp 8005c8 <.L35+0x2a> 0080065d <.L25>: putch(ch, putdat); 80065d: 83 ec 08 sub $0x8,%esp 800660: 56 push %esi 800661: 6a 25 push $0x25 800663: ff 55 08 call *0x8(%ebp) break; 800666: 83 c4 10 add $0x10,%esp 800669: e9 75 ff ff ff jmp 8005e3 <.L35+0x45> 0080066e <.L22>: putch('%', putdat); 80066e: 83 ec 08 sub $0x8,%esp 800671: 56 push %esi 800672: 6a 25 push $0x25 800674: ff 55 08 call *0x8(%ebp) for (fmt--; fmt[-1] != '%'; fmt--) 800677: 83 c4 10 add $0x10,%esp 80067a: 89 f8 mov %edi,%eax 80067c: eb 03 jmp 800681 <.L22+0x13> 80067e: 83 e8 01 sub $0x1,%eax 800681: 80 78 ff 25 cmpb $0x25,-0x1(%eax) 800685: 75 f7 jne 80067e <.L22+0x10> 800687: 89 45 e4 mov %eax,-0x1c(%ebp) 80068a: e9 54 ff ff ff jmp 8005e3 <.L35+0x45> } 80068f: 8d 65 f4 lea -0xc(%ebp),%esp 800692: 5b pop %ebx 800693: 5e pop %esi 800694: 5f pop %edi 800695: 5d pop %ebp 800696: c3 ret 00800697 <vsnprintf>: int vsnprintf(char *buf, int n, const char *fmt, va_list ap) { 800697: 55 push %ebp 800698: 89 e5 mov %esp,%ebp 80069a: 53 push %ebx 80069b: 83 ec 14 sub $0x14,%esp 80069e: e8 a8 f9 ff ff call 80004b <__x86.get_pc_thunk.bx> 8006a3: 81 c3 5d 19 00 00 add $0x195d,%ebx 8006a9: 8b 45 08 mov 0x8(%ebp),%eax 8006ac: 8b 55 0c mov 0xc(%ebp),%edx struct sprintbuf b = {buf, buf+n-1, 0}; 8006af: 89 45 ec mov %eax,-0x14(%ebp) 8006b2: 8d 4c 10 ff lea -0x1(%eax,%edx,1),%ecx 8006b6: 89 4d f0 mov %ecx,-0x10(%ebp) 8006b9: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) if (buf == NULL || n < 1) 8006c0: 85 c0 test %eax,%eax 8006c2: 74 2b je 8006ef <vsnprintf+0x58> 8006c4: 85 d2 test %edx,%edx 8006c6: 7e 27 jle 8006ef <vsnprintf+0x58> return -E_INVAL; // print the string to the buffer vprintfmt((void*)sprintputch, &b, fmt, ap); 8006c8: ff 75 14 pushl 0x14(%ebp) 8006cb: ff 75 10 pushl 0x10(%ebp) 8006ce: 8d 45 ec lea -0x14(%ebp),%eax 8006d1: 50 push %eax 8006d2: 8d 83 ff e1 ff ff lea -0x1e01(%ebx),%eax 8006d8: 50 push %eax 8006d9: e8 5b fb ff ff call 800239 <vprintfmt> // null terminate the buffer *b.buf = '\0'; 8006de: 8b 45 ec mov -0x14(%ebp),%eax 8006e1: c6 00 00 movb $0x0,(%eax) return b.cnt; 8006e4: 8b 45 f4 mov -0xc(%ebp),%eax 8006e7: 83 c4 10 add $0x10,%esp } 8006ea: 8b 5d fc mov -0x4(%ebp),%ebx 8006ed: c9 leave 8006ee: c3 ret return -E_INVAL; 8006ef: b8 fd ff ff ff mov $0xfffffffd,%eax 8006f4: eb f4 jmp 8006ea <vsnprintf+0x53> 008006f6 <snprintf>: int snprintf(char *buf, int n, const char *fmt, ...) { 8006f6: 55 push %ebp 8006f7: 89 e5 mov %esp,%ebp 8006f9: 83 ec 08 sub $0x8,%esp va_list ap; int rc; va_start(ap, fmt); 8006fc: 8d 45 14 lea 0x14(%ebp),%eax rc = vsnprintf(buf, n, fmt, ap); 8006ff: 50 push %eax 800700: ff 75 10 pushl 0x10(%ebp) 800703: ff 75 0c pushl 0xc(%ebp) 800706: ff 75 08 pushl 0x8(%ebp) 800709: e8 89 ff ff ff call 800697 <vsnprintf> va_end(ap); return rc; } 80070e: c9 leave 80070f: c3 ret 00800710 <__x86.get_pc_thunk.cx>: 800710: 8b 0c 24 mov (%esp),%ecx 800713: c3 ret 00800714 <strlen>: // Primespipe runs 3x faster this way. #define ASM 1 int strlen(const char *s) { 800714: 55 push %ebp 800715: 89 e5 mov %esp,%ebp 800717: 8b 55 08 mov 0x8(%ebp),%edx int n; for (n = 0; *s != '\0'; s++) 80071a: b8 00 00 00 00 mov $0x0,%eax 80071f: eb 03 jmp 800724 <strlen+0x10> n++; 800721: 83 c0 01 add $0x1,%eax for (n = 0; *s != '\0'; s++) 800724: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1) 800728: 75 f7 jne 800721 <strlen+0xd> return n; } 80072a: 5d pop %ebp 80072b: c3 ret 0080072c <strnlen>: int strnlen(const char *s, size_t size) { 80072c: 55 push %ebp 80072d: 89 e5 mov %esp,%ebp 80072f: 8b 4d 08 mov 0x8(%ebp),%ecx 800732: 8b 55 0c mov 0xc(%ebp),%edx int n; for (n = 0; size > 0 && *s != '\0'; s++, size--) 800735: b8 00 00 00 00 mov $0x0,%eax 80073a: eb 03 jmp 80073f <strnlen+0x13> n++; 80073c: 83 c0 01 add $0x1,%eax for (n = 0; size > 0 && *s != '\0'; s++, size--) 80073f: 39 d0 cmp %edx,%eax 800741: 74 06 je 800749 <strnlen+0x1d> 800743: 80 3c 01 00 cmpb $0x0,(%ecx,%eax,1) 800747: 75 f3 jne 80073c <strnlen+0x10> return n; } 800749: 5d pop %ebp 80074a: c3 ret 0080074b <strcpy>: char * strcpy(char *dst, const char *src) { 80074b: 55 push %ebp 80074c: 89 e5 mov %esp,%ebp 80074e: 53 push %ebx 80074f: 8b 45 08 mov 0x8(%ebp),%eax 800752: 8b 4d 0c mov 0xc(%ebp),%ecx char *ret; ret = dst; while ((*dst++ = *src++) != '\0') 800755: 89 c2 mov %eax,%edx 800757: 83 c1 01 add $0x1,%ecx 80075a: 83 c2 01 add $0x1,%edx 80075d: 0f b6 59 ff movzbl -0x1(%ecx),%ebx 800761: 88 5a ff mov %bl,-0x1(%edx) 800764: 84 db test %bl,%bl 800766: 75 ef jne 800757 <strcpy+0xc> /* do nothing */; return ret; } 800768: 5b pop %ebx 800769: 5d pop %ebp 80076a: c3 ret 0080076b <strcat>: char * strcat(char *dst, const char *src) { 80076b: 55 push %ebp 80076c: 89 e5 mov %esp,%ebp 80076e: 53 push %ebx 80076f: 8b 5d 08 mov 0x8(%ebp),%ebx int len = strlen(dst); 800772: 53 push %ebx 800773: e8 9c ff ff ff call 800714 <strlen> 800778: 83 c4 04 add $0x4,%esp strcpy(dst + len, src); 80077b: ff 75 0c pushl 0xc(%ebp) 80077e: 01 d8 add %ebx,%eax 800780: 50 push %eax 800781: e8 c5 ff ff ff call 80074b <strcpy> return dst; } 800786: 89 d8 mov %ebx,%eax 800788: 8b 5d fc mov -0x4(%ebp),%ebx 80078b: c9 leave 80078c: c3 ret 0080078d <strncpy>: char * strncpy(char *dst, const char *src, size_t size) { 80078d: 55 push %ebp 80078e: 89 e5 mov %esp,%ebp 800790: 56 push %esi 800791: 53 push %ebx 800792: 8b 75 08 mov 0x8(%ebp),%esi 800795: 8b 4d 0c mov 0xc(%ebp),%ecx 800798: 89 f3 mov %esi,%ebx 80079a: 03 5d 10 add 0x10(%ebp),%ebx size_t i; char *ret; ret = dst; for (i = 0; i < size; i++) { 80079d: 89 f2 mov %esi,%edx 80079f: eb 0f jmp 8007b0 <strncpy+0x23> *dst++ = *src; 8007a1: 83 c2 01 add $0x1,%edx 8007a4: 0f b6 01 movzbl (%ecx),%eax 8007a7: 88 42 ff mov %al,-0x1(%edx) // If strlen(src) < size, null-pad 'dst' out to 'size' chars if (*src != '\0') src++; 8007aa: 80 39 01 cmpb $0x1,(%ecx) 8007ad: 83 d9 ff sbb $0xffffffff,%ecx for (i = 0; i < size; i++) { 8007b0: 39 da cmp %ebx,%edx 8007b2: 75 ed jne 8007a1 <strncpy+0x14> } return ret; } 8007b4: 89 f0 mov %esi,%eax 8007b6: 5b pop %ebx 8007b7: 5e pop %esi 8007b8: 5d pop %ebp 8007b9: c3 ret 008007ba <strlcpy>: size_t strlcpy(char *dst, const char *src, size_t size) { 8007ba: 55 push %ebp 8007bb: 89 e5 mov %esp,%ebp 8007bd: 56 push %esi 8007be: 53 push %ebx 8007bf: 8b 75 08 mov 0x8(%ebp),%esi 8007c2: 8b 55 0c mov 0xc(%ebp),%edx 8007c5: 8b 4d 10 mov 0x10(%ebp),%ecx 8007c8: 89 f0 mov %esi,%eax 8007ca: 8d 5c 0e ff lea -0x1(%esi,%ecx,1),%ebx char *dst_in; dst_in = dst; if (size > 0) { 8007ce: 85 c9 test %ecx,%ecx 8007d0: 75 0b jne 8007dd <strlcpy+0x23> 8007d2: eb 17 jmp 8007eb <strlcpy+0x31> while (--size > 0 && *src != '\0') *dst++ = *src++; 8007d4: 83 c2 01 add $0x1,%edx 8007d7: 83 c0 01 add $0x1,%eax 8007da: 88 48 ff mov %cl,-0x1(%eax) while (--size > 0 && *src != '\0') 8007dd: 39 d8 cmp %ebx,%eax 8007df: 74 07 je 8007e8 <strlcpy+0x2e> 8007e1: 0f b6 0a movzbl (%edx),%ecx 8007e4: 84 c9 test %cl,%cl 8007e6: 75 ec jne 8007d4 <strlcpy+0x1a> *dst = '\0'; 8007e8: c6 00 00 movb $0x0,(%eax) } return dst - dst_in; 8007eb: 29 f0 sub %esi,%eax } 8007ed: 5b pop %ebx 8007ee: 5e pop %esi 8007ef: 5d pop %ebp 8007f0: c3 ret 008007f1 <strcmp>: int strcmp(const char *p, const char *q) { 8007f1: 55 push %ebp 8007f2: 89 e5 mov %esp,%ebp 8007f4: 8b 4d 08 mov 0x8(%ebp),%ecx 8007f7: 8b 55 0c mov 0xc(%ebp),%edx while (*p && *p == *q) 8007fa: eb 06 jmp 800802 <strcmp+0x11> p++, q++; 8007fc: 83 c1 01 add $0x1,%ecx 8007ff: 83 c2 01 add $0x1,%edx while (*p && *p == *q) 800802: 0f b6 01 movzbl (%ecx),%eax 800805: 84 c0 test %al,%al 800807: 74 04 je 80080d <strcmp+0x1c> 800809: 3a 02 cmp (%edx),%al 80080b: 74 ef je 8007fc <strcmp+0xb> return (int) ((unsigned char) *p - (unsigned char) *q); 80080d: 0f b6 c0 movzbl %al,%eax 800810: 0f b6 12 movzbl (%edx),%edx 800813: 29 d0 sub %edx,%eax } 800815: 5d pop %ebp 800816: c3 ret 00800817 <strncmp>: int strncmp(const char *p, const char *q, size_t n) { 800817: 55 push %ebp 800818: 89 e5 mov %esp,%ebp 80081a: 53 push %ebx 80081b: 8b 45 08 mov 0x8(%ebp),%eax 80081e: 8b 55 0c mov 0xc(%ebp),%edx 800821: 89 c3 mov %eax,%ebx 800823: 03 5d 10 add 0x10(%ebp),%ebx while (n > 0 && *p && *p == *q) 800826: eb 06 jmp 80082e <strncmp+0x17> n--, p++, q++; 800828: 83 c0 01 add $0x1,%eax 80082b: 83 c2 01 add $0x1,%edx while (n > 0 && *p && *p == *q) 80082e: 39 d8 cmp %ebx,%eax 800830: 74 16 je 800848 <strncmp+0x31> 800832: 0f b6 08 movzbl (%eax),%ecx 800835: 84 c9 test %cl,%cl 800837: 74 04 je 80083d <strncmp+0x26> 800839: 3a 0a cmp (%edx),%cl 80083b: 74 eb je 800828 <strncmp+0x11> if (n == 0) return 0; else return (int) ((unsigned char) *p - (unsigned char) *q); 80083d: 0f b6 00 movzbl (%eax),%eax 800840: 0f b6 12 movzbl (%edx),%edx 800843: 29 d0 sub %edx,%eax } 800845: 5b pop %ebx 800846: 5d pop %ebp 800847: c3 ret return 0; 800848: b8 00 00 00 00 mov $0x0,%eax 80084d: eb f6 jmp 800845 <strncmp+0x2e> 0080084f <strchr>: // Return a pointer to the first occurrence of 'c' in 's', // or a null pointer if the string has no 'c'. char * strchr(const char *s, char c) { 80084f: 55 push %ebp 800850: 89 e5 mov %esp,%ebp 800852: 8b 45 08 mov 0x8(%ebp),%eax 800855: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for (; *s; s++) 800859: 0f b6 10 movzbl (%eax),%edx 80085c: 84 d2 test %dl,%dl 80085e: 74 09 je 800869 <strchr+0x1a> if (*s == c) 800860: 38 ca cmp %cl,%dl 800862: 74 0a je 80086e <strchr+0x1f> for (; *s; s++) 800864: 83 c0 01 add $0x1,%eax 800867: eb f0 jmp 800859 <strchr+0xa> return (char *) s; return 0; 800869: b8 00 00 00 00 mov $0x0,%eax } 80086e: 5d pop %ebp 80086f: c3 ret 00800870 <strfind>: // Return a pointer to the first occurrence of 'c' in 's', // or a pointer to the string-ending null character if the string has no 'c'. char * strfind(const char *s, char c) { 800870: 55 push %ebp 800871: 89 e5 mov %esp,%ebp 800873: 8b 45 08 mov 0x8(%ebp),%eax 800876: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for (; *s; s++) 80087a: eb 03 jmp 80087f <strfind+0xf> 80087c: 83 c0 01 add $0x1,%eax 80087f: 0f b6 10 movzbl (%eax),%edx if (*s == c) 800882: 38 ca cmp %cl,%dl 800884: 74 04 je 80088a <strfind+0x1a> 800886: 84 d2 test %dl,%dl 800888: 75 f2 jne 80087c <strfind+0xc> break; return (char *) s; } 80088a: 5d pop %ebp 80088b: c3 ret 0080088c <memset>: #if ASM void * memset(void *v, int c, size_t n) { 80088c: 55 push %ebp 80088d: 89 e5 mov %esp,%ebp 80088f: 57 push %edi 800890: 56 push %esi 800891: 53 push %ebx 800892: 8b 7d 08 mov 0x8(%ebp),%edi 800895: 8b 4d 10 mov 0x10(%ebp),%ecx char *p; if (n == 0) 800898: 85 c9 test %ecx,%ecx 80089a: 74 13 je 8008af <memset+0x23> return v; if ((int)v%4 == 0 && n%4 == 0) { 80089c: f7 c7 03 00 00 00 test $0x3,%edi 8008a2: 75 05 jne 8008a9 <memset+0x1d> 8008a4: f6 c1 03 test $0x3,%cl 8008a7: 74 0d je 8008b6 <memset+0x2a> c = (c<<24)|(c<<16)|(c<<8)|c; asm volatile("cld; rep stosl\n" :: "D" (v), "a" (c), "c" (n/4) : "cc", "memory"); } else asm volatile("cld; rep stosb\n" 8008a9: 8b 45 0c mov 0xc(%ebp),%eax 8008ac: fc cld 8008ad: f3 aa rep stos %al,%es:(%edi) :: "D" (v), "a" (c), "c" (n) : "cc", "memory"); return v; } 8008af: 89 f8 mov %edi,%eax 8008b1: 5b pop %ebx 8008b2: 5e pop %esi 8008b3: 5f pop %edi 8008b4: 5d pop %ebp 8008b5: c3 ret c &= 0xFF; 8008b6: 0f b6 55 0c movzbl 0xc(%ebp),%edx c = (c<<24)|(c<<16)|(c<<8)|c; 8008ba: 89 d3 mov %edx,%ebx 8008bc: c1 e3 08 shl $0x8,%ebx 8008bf: 89 d0 mov %edx,%eax 8008c1: c1 e0 18 shl $0x18,%eax 8008c4: 89 d6 mov %edx,%esi 8008c6: c1 e6 10 shl $0x10,%esi 8008c9: 09 f0 or %esi,%eax 8008cb: 09 c2 or %eax,%edx 8008cd: 09 da or %ebx,%edx :: "D" (v), "a" (c), "c" (n/4) 8008cf: c1 e9 02 shr $0x2,%ecx asm volatile("cld; rep stosl\n" 8008d2: 89 d0 mov %edx,%eax 8008d4: fc cld 8008d5: f3 ab rep stos %eax,%es:(%edi) 8008d7: eb d6 jmp 8008af <memset+0x23> 008008d9 <memmove>: void * memmove(void *dst, const void *src, size_t n) { 8008d9: 55 push %ebp 8008da: 89 e5 mov %esp,%ebp 8008dc: 57 push %edi 8008dd: 56 push %esi 8008de: 8b 45 08 mov 0x8(%ebp),%eax 8008e1: 8b 75 0c mov 0xc(%ebp),%esi 8008e4: 8b 4d 10 mov 0x10(%ebp),%ecx const char *s; char *d; s = src; d = dst; if (s < d && s + n > d) { 8008e7: 39 c6 cmp %eax,%esi 8008e9: 73 35 jae 800920 <memmove+0x47> 8008eb: 8d 14 0e lea (%esi,%ecx,1),%edx 8008ee: 39 c2 cmp %eax,%edx 8008f0: 76 2e jbe 800920 <memmove+0x47> s += n; d += n; 8008f2: 8d 3c 08 lea (%eax,%ecx,1),%edi if ((int)s%4 == 0 && (int)d%4 == 0 && n%4 == 0) 8008f5: 89 d6 mov %edx,%esi 8008f7: 09 fe or %edi,%esi 8008f9: f7 c6 03 00 00 00 test $0x3,%esi 8008ff: 74 0c je 80090d <memmove+0x34> asm volatile("std; rep movsl\n" :: "D" (d-4), "S" (s-4), "c" (n/4) : "cc", "memory"); else asm volatile("std; rep movsb\n" :: "D" (d-1), "S" (s-1), "c" (n) : "cc", "memory"); 800901: 83 ef 01 sub $0x1,%edi 800904: 8d 72 ff lea -0x1(%edx),%esi asm volatile("std; rep movsb\n" 800907: fd std 800908: f3 a4 rep movsb %ds:(%esi),%es:(%edi) // Some versions of GCC rely on DF being clear asm volatile("cld" ::: "cc"); 80090a: fc cld 80090b: eb 21 jmp 80092e <memmove+0x55> if ((int)s%4 == 0 && (int)d%4 == 0 && n%4 == 0) 80090d: f6 c1 03 test $0x3,%cl 800910: 75 ef jne 800901 <memmove+0x28> :: "D" (d-4), "S" (s-4), "c" (n/4) : "cc", "memory"); 800912: 83 ef 04 sub $0x4,%edi 800915: 8d 72 fc lea -0x4(%edx),%esi 800918: c1 e9 02 shr $0x2,%ecx asm volatile("std; rep movsl\n" 80091b: fd std 80091c: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 80091e: eb ea jmp 80090a <memmove+0x31> } else { if ((int)s%4 == 0 && (int)d%4 == 0 && n%4 == 0) 800920: 89 f2 mov %esi,%edx 800922: 09 c2 or %eax,%edx 800924: f6 c2 03 test $0x3,%dl 800927: 74 09 je 800932 <memmove+0x59> asm volatile("cld; rep movsl\n" :: "D" (d), "S" (s), "c" (n/4) : "cc", "memory"); else asm volatile("cld; rep movsb\n" 800929: 89 c7 mov %eax,%edi 80092b: fc cld 80092c: f3 a4 rep movsb %ds:(%esi),%es:(%edi) :: "D" (d), "S" (s), "c" (n) : "cc", "memory"); } return dst; } 80092e: 5e pop %esi 80092f: 5f pop %edi 800930: 5d pop %ebp 800931: c3 ret if ((int)s%4 == 0 && (int)d%4 == 0 && n%4 == 0) 800932: f6 c1 03 test $0x3,%cl 800935: 75 f2 jne 800929 <memmove+0x50> :: "D" (d), "S" (s), "c" (n/4) : "cc", "memory"); 800937: c1 e9 02 shr $0x2,%ecx asm volatile("cld; rep movsl\n" 80093a: 89 c7 mov %eax,%edi 80093c: fc cld 80093d: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 80093f: eb ed jmp 80092e <memmove+0x55> 00800941 <memcpy>: } #endif void * memcpy(void *dst, const void *src, size_t n) { 800941: 55 push %ebp 800942: 89 e5 mov %esp,%ebp return memmove(dst, src, n); 800944: ff 75 10 pushl 0x10(%ebp) 800947: ff 75 0c pushl 0xc(%ebp) 80094a: ff 75 08 pushl 0x8(%ebp) 80094d: e8 87 ff ff ff call 8008d9 <memmove> } 800952: c9 leave 800953: c3 ret 00800954 <memcmp>: int memcmp(const void *v1, const void *v2, size_t n) { 800954: 55 push %ebp 800955: 89 e5 mov %esp,%ebp 800957: 56 push %esi 800958: 53 push %ebx 800959: 8b 45 08 mov 0x8(%ebp),%eax 80095c: 8b 55 0c mov 0xc(%ebp),%edx 80095f: 89 c6 mov %eax,%esi 800961: 03 75 10 add 0x10(%ebp),%esi const uint8_t *s1 = (const uint8_t *) v1; const uint8_t *s2 = (const uint8_t *) v2; while (n-- > 0) { 800964: 39 f0 cmp %esi,%eax 800966: 74 1c je 800984 <memcmp+0x30> if (*s1 != *s2) 800968: 0f b6 08 movzbl (%eax),%ecx 80096b: 0f b6 1a movzbl (%edx),%ebx 80096e: 38 d9 cmp %bl,%cl 800970: 75 08 jne 80097a <memcmp+0x26> return (int) *s1 - (int) *s2; s1++, s2++; 800972: 83 c0 01 add $0x1,%eax 800975: 83 c2 01 add $0x1,%edx 800978: eb ea jmp 800964 <memcmp+0x10> return (int) *s1 - (int) *s2; 80097a: 0f b6 c1 movzbl %cl,%eax 80097d: 0f b6 db movzbl %bl,%ebx 800980: 29 d8 sub %ebx,%eax 800982: eb 05 jmp 800989 <memcmp+0x35> } return 0; 800984: b8 00 00 00 00 mov $0x0,%eax } 800989: 5b pop %ebx 80098a: 5e pop %esi 80098b: 5d pop %ebp 80098c: c3 ret 0080098d <memfind>: void * memfind(const void *s, int c, size_t n) { 80098d: 55 push %ebp 80098e: 89 e5 mov %esp,%ebp 800990: 8b 45 08 mov 0x8(%ebp),%eax 800993: 8b 4d 0c mov 0xc(%ebp),%ecx const void *ends = (const char *) s + n; 800996: 89 c2 mov %eax,%edx 800998: 03 55 10 add 0x10(%ebp),%edx for (; s < ends; s++) 80099b: 39 d0 cmp %edx,%eax 80099d: 73 09 jae 8009a8 <memfind+0x1b> if (*(const unsigned char *) s == (unsigned char) c) 80099f: 38 08 cmp %cl,(%eax) 8009a1: 74 05 je 8009a8 <memfind+0x1b> for (; s < ends; s++) 8009a3: 83 c0 01 add $0x1,%eax 8009a6: eb f3 jmp 80099b <memfind+0xe> break; return (void *) s; } 8009a8: 5d pop %ebp 8009a9: c3 ret 008009aa <strtol>: long strtol(const char *s, char **endptr, int base) { 8009aa: 55 push %ebp 8009ab: 89 e5 mov %esp,%ebp 8009ad: 57 push %edi 8009ae: 56 push %esi 8009af: 53 push %ebx 8009b0: 8b 4d 08 mov 0x8(%ebp),%ecx 8009b3: 8b 5d 10 mov 0x10(%ebp),%ebx int neg = 0; long val = 0; // gobble initial whitespace while (*s == ' ' || *s == '\t') 8009b6: eb 03 jmp 8009bb <strtol+0x11> s++; 8009b8: 83 c1 01 add $0x1,%ecx while (*s == ' ' || *s == '\t') 8009bb: 0f b6 01 movzbl (%ecx),%eax 8009be: 3c 20 cmp $0x20,%al 8009c0: 74 f6 je 8009b8 <strtol+0xe> 8009c2: 3c 09 cmp $0x9,%al 8009c4: 74 f2 je 8009b8 <strtol+0xe> // plus/minus sign if (*s == '+') 8009c6: 3c 2b cmp $0x2b,%al 8009c8: 74 2e je 8009f8 <strtol+0x4e> int neg = 0; 8009ca: bf 00 00 00 00 mov $0x0,%edi s++; else if (*s == '-') 8009cf: 3c 2d cmp $0x2d,%al 8009d1: 74 2f je 800a02 <strtol+0x58> s++, neg = 1; // hex or octal base prefix if ((base == 0 || base == 16) && (s[0] == '0' && s[1] == 'x')) 8009d3: f7 c3 ef ff ff ff test $0xffffffef,%ebx 8009d9: 75 05 jne 8009e0 <strtol+0x36> 8009db: 80 39 30 cmpb $0x30,(%ecx) 8009de: 74 2c je 800a0c <strtol+0x62> s += 2, base = 16; else if (base == 0 && s[0] == '0') 8009e0: 85 db test %ebx,%ebx 8009e2: 75 0a jne 8009ee <strtol+0x44> s++, base = 8; else if (base == 0) base = 10; 8009e4: bb 0a 00 00 00 mov $0xa,%ebx else if (base == 0 && s[0] == '0') 8009e9: 80 39 30 cmpb $0x30,(%ecx) 8009ec: 74 28 je 800a16 <strtol+0x6c> base = 10; 8009ee: b8 00 00 00 00 mov $0x0,%eax 8009f3: 89 5d 10 mov %ebx,0x10(%ebp) 8009f6: eb 50 jmp 800a48 <strtol+0x9e> s++; 8009f8: 83 c1 01 add $0x1,%ecx int neg = 0; 8009fb: bf 00 00 00 00 mov $0x0,%edi 800a00: eb d1 jmp 8009d3 <strtol+0x29> s++, neg = 1; 800a02: 83 c1 01 add $0x1,%ecx 800a05: bf 01 00 00 00 mov $0x1,%edi 800a0a: eb c7 jmp 8009d3 <strtol+0x29> if ((base == 0 || base == 16) && (s[0] == '0' && s[1] == 'x')) 800a0c: 80 79 01 78 cmpb $0x78,0x1(%ecx) 800a10: 74 0e je 800a20 <strtol+0x76> else if (base == 0 && s[0] == '0') 800a12: 85 db test %ebx,%ebx 800a14: 75 d8 jne 8009ee <strtol+0x44> s++, base = 8; 800a16: 83 c1 01 add $0x1,%ecx 800a19: bb 08 00 00 00 mov $0x8,%ebx 800a1e: eb ce jmp 8009ee <strtol+0x44> s += 2, base = 16; 800a20: 83 c1 02 add $0x2,%ecx 800a23: bb 10 00 00 00 mov $0x10,%ebx 800a28: eb c4 jmp 8009ee <strtol+0x44> while (1) { int dig; if (*s >= '0' && *s <= '9') dig = *s - '0'; else if (*s >= 'a' && *s <= 'z') 800a2a: 8d 72 9f lea -0x61(%edx),%esi 800a2d: 89 f3 mov %esi,%ebx 800a2f: 80 fb 19 cmp $0x19,%bl 800a32: 77 29 ja 800a5d <strtol+0xb3> dig = *s - 'a' + 10; 800a34: 0f be d2 movsbl %dl,%edx 800a37: 83 ea 57 sub $0x57,%edx else if (*s >= 'A' && *s <= 'Z') dig = *s - 'A' + 10; else break; if (dig >= base) 800a3a: 3b 55 10 cmp 0x10(%ebp),%edx 800a3d: 7d 30 jge 800a6f <strtol+0xc5> break; s++, val = (val * base) + dig; 800a3f: 83 c1 01 add $0x1,%ecx 800a42: 0f af 45 10 imul 0x10(%ebp),%eax 800a46: 01 d0 add %edx,%eax if (*s >= '0' && *s <= '9') 800a48: 0f b6 11 movzbl (%ecx),%edx 800a4b: 8d 72 d0 lea -0x30(%edx),%esi 800a4e: 89 f3 mov %esi,%ebx 800a50: 80 fb 09 cmp $0x9,%bl 800a53: 77 d5 ja 800a2a <strtol+0x80> dig = *s - '0'; 800a55: 0f be d2 movsbl %dl,%edx 800a58: 83 ea 30 sub $0x30,%edx 800a5b: eb dd jmp 800a3a <strtol+0x90> else if (*s >= 'A' && *s <= 'Z') 800a5d: 8d 72 bf lea -0x41(%edx),%esi 800a60: 89 f3 mov %esi,%ebx 800a62: 80 fb 19 cmp $0x19,%bl 800a65: 77 08 ja 800a6f <strtol+0xc5> dig = *s - 'A' + 10; 800a67: 0f be d2 movsbl %dl,%edx 800a6a: 83 ea 37 sub $0x37,%edx 800a6d: eb cb jmp 800a3a <strtol+0x90> // we don't properly detect overflow! } if (endptr) 800a6f: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 800a73: 74 05 je 800a7a <strtol+0xd0> *endptr = (char *) s; 800a75: 8b 75 0c mov 0xc(%ebp),%esi 800a78: 89 0e mov %ecx,(%esi) return (neg ? -val : val); 800a7a: 89 c2 mov %eax,%edx 800a7c: f7 da neg %edx 800a7e: 85 ff test %edi,%edi 800a80: 0f 45 c2 cmovne %edx,%eax } 800a83: 5b pop %ebx 800a84: 5e pop %esi 800a85: 5f pop %edi 800a86: 5d pop %ebp 800a87: c3 ret 00800a88 <sys_cputs>: return ret; } void sys_cputs(const char *s, size_t len) { 800a88: 55 push %ebp 800a89: 89 e5 mov %esp,%ebp 800a8b: 57 push %edi 800a8c: 56 push %esi 800a8d: 53 push %ebx asm volatile("int %1\n" 800a8e: b8 00 00 00 00 mov $0x0,%eax 800a93: 8b 55 08 mov 0x8(%ebp),%edx 800a96: 8b 4d 0c mov 0xc(%ebp),%ecx 800a99: 89 c3 mov %eax,%ebx 800a9b: 89 c7 mov %eax,%edi 800a9d: 89 c6 mov %eax,%esi 800a9f: cd 30 int $0x30 syscall(SYS_cputs, 0, (uint32_t)s, len, 0, 0, 0); } 800aa1: 5b pop %ebx 800aa2: 5e pop %esi 800aa3: 5f pop %edi 800aa4: 5d pop %ebp 800aa5: c3 ret 00800aa6 <sys_cgetc>: int sys_cgetc(void) { 800aa6: 55 push %ebp 800aa7: 89 e5 mov %esp,%ebp 800aa9: 57 push %edi 800aaa: 56 push %esi 800aab: 53 push %ebx asm volatile("int %1\n" 800aac: ba 00 00 00 00 mov $0x0,%edx 800ab1: b8 01 00 00 00 mov $0x1,%eax 800ab6: 89 d1 mov %edx,%ecx 800ab8: 89 d3 mov %edx,%ebx 800aba: 89 d7 mov %edx,%edi 800abc: 89 d6 mov %edx,%esi 800abe: cd 30 int $0x30 return syscall(SYS_cgetc, 0, 0, 0, 0, 0, 0); } 800ac0: 5b pop %ebx 800ac1: 5e pop %esi 800ac2: 5f pop %edi 800ac3: 5d pop %ebp 800ac4: c3 ret 00800ac5 <sys_env_destroy>: int sys_env_destroy(envid_t envid) { 800ac5: 55 push %ebp 800ac6: 89 e5 mov %esp,%ebp 800ac8: 57 push %edi 800ac9: 56 push %esi 800aca: 53 push %ebx 800acb: 83 ec 1c sub $0x1c,%esp 800ace: e8 78 f5 ff ff call 80004b <__x86.get_pc_thunk.bx> 800ad3: 81 c3 2d 15 00 00 add $0x152d,%ebx 800ad9: 89 5d e4 mov %ebx,-0x1c(%ebp) asm volatile("int %1\n" 800adc: be 00 00 00 00 mov $0x0,%esi 800ae1: 8b 55 08 mov 0x8(%ebp),%edx 800ae4: b8 03 00 00 00 mov $0x3,%eax 800ae9: 89 f1 mov %esi,%ecx 800aeb: 89 f3 mov %esi,%ebx 800aed: 89 f7 mov %esi,%edi 800aef: cd 30 int $0x30 800af1: 89 c6 mov %eax,%esi if(check && ret > 0) { 800af3: 85 c0 test %eax,%eax 800af5: 7e 18 jle 800b0f <sys_env_destroy+0x4a> cprintf("syscall %d returned %d (> 0)", num, ret); 800af7: 83 ec 04 sub $0x4,%esp 800afa: 50 push %eax 800afb: 6a 03 push $0x3 800afd: 8b 5d e4 mov -0x1c(%ebp),%ebx 800b00: 8d 83 90 ef ff ff lea -0x1070(%ebx),%eax 800b06: 50 push %eax 800b07: e8 15 f6 ff ff call 800121 <cprintf> 800b0c: 83 c4 10 add $0x10,%esp return syscall(SYS_env_destroy, 1, envid, 0, 0, 0, 0); } 800b0f: 89 f0 mov %esi,%eax 800b11: 8d 65 f4 lea -0xc(%ebp),%esp 800b14: 5b pop %ebx 800b15: 5e pop %esi 800b16: 5f pop %edi 800b17: 5d pop %ebp 800b18: c3 ret 00800b19 <sys_getenvid>: envid_t sys_getenvid(void) { 800b19: 55 push %ebp 800b1a: 89 e5 mov %esp,%ebp 800b1c: 57 push %edi 800b1d: 56 push %esi 800b1e: 53 push %ebx asm volatile("int %1\n" 800b1f: ba 00 00 00 00 mov $0x0,%edx 800b24: b8 02 00 00 00 mov $0x2,%eax 800b29: 89 d1 mov %edx,%ecx 800b2b: 89 d3 mov %edx,%ebx 800b2d: 89 d7 mov %edx,%edi 800b2f: 89 d6 mov %edx,%esi 800b31: cd 30 int $0x30 return syscall(SYS_getenvid, 0, 0, 0, 0, 0, 0); } 800b33: 5b pop %ebx 800b34: 5e pop %esi 800b35: 5f pop %edi 800b36: 5d pop %ebp 800b37: c3 ret 00800b38 <sys_test>: void sys_test(void) { 800b38: 55 push %ebp 800b39: 89 e5 mov %esp,%ebp 800b3b: 57 push %edi 800b3c: 56 push %esi 800b3d: 53 push %ebx asm volatile("int %1\n" 800b3e: ba 00 00 00 00 mov $0x0,%edx 800b43: b8 04 00 00 00 mov $0x4,%eax 800b48: 89 d1 mov %edx,%ecx 800b4a: 89 d3 mov %edx,%ebx 800b4c: 89 d7 mov %edx,%edi 800b4e: 89 d6 mov %edx,%esi 800b50: cd 30 int $0x30 syscall(SYS_test, 0, 0, 0, 0, 0, 0); } 800b52: 5b pop %ebx 800b53: 5e pop %esi 800b54: 5f pop %edi 800b55: 5d pop %ebp 800b56: c3 ret 800b57: 66 90 xchg %ax,%ax 800b59: 66 90 xchg %ax,%ax 800b5b: 66 90 xchg %ax,%ax 800b5d: 66 90 xchg %ax,%ax 800b5f: 90 nop 00800b60 <__udivdi3>: 800b60: 55 push %ebp 800b61: 57 push %edi 800b62: 56 push %esi 800b63: 53 push %ebx 800b64: 83 ec 1c sub $0x1c,%esp 800b67: 8b 54 24 3c mov 0x3c(%esp),%edx 800b6b: 8b 6c 24 30 mov 0x30(%esp),%ebp 800b6f: 8b 74 24 34 mov 0x34(%esp),%esi 800b73: 8b 5c 24 38 mov 0x38(%esp),%ebx 800b77: 85 d2 test %edx,%edx 800b79: 75 35 jne 800bb0 <__udivdi3+0x50> 800b7b: 39 f3 cmp %esi,%ebx 800b7d: 0f 87 bd 00 00 00 ja 800c40 <__udivdi3+0xe0> 800b83: 85 db test %ebx,%ebx 800b85: 89 d9 mov %ebx,%ecx 800b87: 75 0b jne 800b94 <__udivdi3+0x34> 800b89: b8 01 00 00 00 mov $0x1,%eax 800b8e: 31 d2 xor %edx,%edx 800b90: f7 f3 div %ebx 800b92: 89 c1 mov %eax,%ecx 800b94: 31 d2 xor %edx,%edx 800b96: 89 f0 mov %esi,%eax 800b98: f7 f1 div %ecx 800b9a: 89 c6 mov %eax,%esi 800b9c: 89 e8 mov %ebp,%eax 800b9e: 89 f7 mov %esi,%edi 800ba0: f7 f1 div %ecx 800ba2: 89 fa mov %edi,%edx 800ba4: 83 c4 1c add $0x1c,%esp 800ba7: 5b pop %ebx 800ba8: 5e pop %esi 800ba9: 5f pop %edi 800baa: 5d pop %ebp 800bab: c3 ret 800bac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 800bb0: 39 f2 cmp %esi,%edx 800bb2: 77 7c ja 800c30 <__udivdi3+0xd0> 800bb4: 0f bd fa bsr %edx,%edi 800bb7: 83 f7 1f xor $0x1f,%edi 800bba: 0f 84 98 00 00 00 je 800c58 <__udivdi3+0xf8> 800bc0: 89 f9 mov %edi,%ecx 800bc2: b8 20 00 00 00 mov $0x20,%eax 800bc7: 29 f8 sub %edi,%eax 800bc9: d3 e2 shl %cl,%edx 800bcb: 89 54 24 08 mov %edx,0x8(%esp) 800bcf: 89 c1 mov %eax,%ecx 800bd1: 89 da mov %ebx,%edx 800bd3: d3 ea shr %cl,%edx 800bd5: 8b 4c 24 08 mov 0x8(%esp),%ecx 800bd9: 09 d1 or %edx,%ecx 800bdb: 89 f2 mov %esi,%edx 800bdd: 89 4c 24 08 mov %ecx,0x8(%esp) 800be1: 89 f9 mov %edi,%ecx 800be3: d3 e3 shl %cl,%ebx 800be5: 89 c1 mov %eax,%ecx 800be7: d3 ea shr %cl,%edx 800be9: 89 f9 mov %edi,%ecx 800beb: 89 5c 24 0c mov %ebx,0xc(%esp) 800bef: d3 e6 shl %cl,%esi 800bf1: 89 eb mov %ebp,%ebx 800bf3: 89 c1 mov %eax,%ecx 800bf5: d3 eb shr %cl,%ebx 800bf7: 09 de or %ebx,%esi 800bf9: 89 f0 mov %esi,%eax 800bfb: f7 74 24 08 divl 0x8(%esp) 800bff: 89 d6 mov %edx,%esi 800c01: 89 c3 mov %eax,%ebx 800c03: f7 64 24 0c mull 0xc(%esp) 800c07: 39 d6 cmp %edx,%esi 800c09: 72 0c jb 800c17 <__udivdi3+0xb7> 800c0b: 89 f9 mov %edi,%ecx 800c0d: d3 e5 shl %cl,%ebp 800c0f: 39 c5 cmp %eax,%ebp 800c11: 73 5d jae 800c70 <__udivdi3+0x110> 800c13: 39 d6 cmp %edx,%esi 800c15: 75 59 jne 800c70 <__udivdi3+0x110> 800c17: 8d 43 ff lea -0x1(%ebx),%eax 800c1a: 31 ff xor %edi,%edi 800c1c: 89 fa mov %edi,%edx 800c1e: 83 c4 1c add $0x1c,%esp 800c21: 5b pop %ebx 800c22: 5e pop %esi 800c23: 5f pop %edi 800c24: 5d pop %ebp 800c25: c3 ret 800c26: 8d 76 00 lea 0x0(%esi),%esi 800c29: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 800c30: 31 ff xor %edi,%edi 800c32: 31 c0 xor %eax,%eax 800c34: 89 fa mov %edi,%edx 800c36: 83 c4 1c add $0x1c,%esp 800c39: 5b pop %ebx 800c3a: 5e pop %esi 800c3b: 5f pop %edi 800c3c: 5d pop %ebp 800c3d: c3 ret 800c3e: 66 90 xchg %ax,%ax 800c40: 31 ff xor %edi,%edi 800c42: 89 e8 mov %ebp,%eax 800c44: 89 f2 mov %esi,%edx 800c46: f7 f3 div %ebx 800c48: 89 fa mov %edi,%edx 800c4a: 83 c4 1c add $0x1c,%esp 800c4d: 5b pop %ebx 800c4e: 5e pop %esi 800c4f: 5f pop %edi 800c50: 5d pop %ebp 800c51: c3 ret 800c52: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 800c58: 39 f2 cmp %esi,%edx 800c5a: 72 06 jb 800c62 <__udivdi3+0x102> 800c5c: 31 c0 xor %eax,%eax 800c5e: 39 eb cmp %ebp,%ebx 800c60: 77 d2 ja 800c34 <__udivdi3+0xd4> 800c62: b8 01 00 00 00 mov $0x1,%eax 800c67: eb cb jmp 800c34 <__udivdi3+0xd4> 800c69: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 800c70: 89 d8 mov %ebx,%eax 800c72: 31 ff xor %edi,%edi 800c74: eb be jmp 800c34 <__udivdi3+0xd4> 800c76: 66 90 xchg %ax,%ax 800c78: 66 90 xchg %ax,%ax 800c7a: 66 90 xchg %ax,%ax 800c7c: 66 90 xchg %ax,%ax 800c7e: 66 90 xchg %ax,%ax 00800c80 <__umoddi3>: 800c80: 55 push %ebp 800c81: 57 push %edi 800c82: 56 push %esi 800c83: 53 push %ebx 800c84: 83 ec 1c sub $0x1c,%esp 800c87: 8b 6c 24 3c mov 0x3c(%esp),%ebp 800c8b: 8b 74 24 30 mov 0x30(%esp),%esi 800c8f: 8b 5c 24 34 mov 0x34(%esp),%ebx 800c93: 8b 7c 24 38 mov 0x38(%esp),%edi 800c97: 85 ed test %ebp,%ebp 800c99: 89 f0 mov %esi,%eax 800c9b: 89 da mov %ebx,%edx 800c9d: 75 19 jne 800cb8 <__umoddi3+0x38> 800c9f: 39 df cmp %ebx,%edi 800ca1: 0f 86 b1 00 00 00 jbe 800d58 <__umoddi3+0xd8> 800ca7: f7 f7 div %edi 800ca9: 89 d0 mov %edx,%eax 800cab: 31 d2 xor %edx,%edx 800cad: 83 c4 1c add $0x1c,%esp 800cb0: 5b pop %ebx 800cb1: 5e pop %esi 800cb2: 5f pop %edi 800cb3: 5d pop %ebp 800cb4: c3 ret 800cb5: 8d 76 00 lea 0x0(%esi),%esi 800cb8: 39 dd cmp %ebx,%ebp 800cba: 77 f1 ja 800cad <__umoddi3+0x2d> 800cbc: 0f bd cd bsr %ebp,%ecx 800cbf: 83 f1 1f xor $0x1f,%ecx 800cc2: 89 4c 24 04 mov %ecx,0x4(%esp) 800cc6: 0f 84 b4 00 00 00 je 800d80 <__umoddi3+0x100> 800ccc: b8 20 00 00 00 mov $0x20,%eax 800cd1: 89 c2 mov %eax,%edx 800cd3: 8b 44 24 04 mov 0x4(%esp),%eax 800cd7: 29 c2 sub %eax,%edx 800cd9: 89 c1 mov %eax,%ecx 800cdb: 89 f8 mov %edi,%eax 800cdd: d3 e5 shl %cl,%ebp 800cdf: 89 d1 mov %edx,%ecx 800ce1: 89 54 24 0c mov %edx,0xc(%esp) 800ce5: d3 e8 shr %cl,%eax 800ce7: 09 c5 or %eax,%ebp 800ce9: 8b 44 24 04 mov 0x4(%esp),%eax 800ced: 89 c1 mov %eax,%ecx 800cef: d3 e7 shl %cl,%edi 800cf1: 89 d1 mov %edx,%ecx 800cf3: 89 7c 24 08 mov %edi,0x8(%esp) 800cf7: 89 df mov %ebx,%edi 800cf9: d3 ef shr %cl,%edi 800cfb: 89 c1 mov %eax,%ecx 800cfd: 89 f0 mov %esi,%eax 800cff: d3 e3 shl %cl,%ebx 800d01: 89 d1 mov %edx,%ecx 800d03: 89 fa mov %edi,%edx 800d05: d3 e8 shr %cl,%eax 800d07: 0f b6 4c 24 04 movzbl 0x4(%esp),%ecx 800d0c: 09 d8 or %ebx,%eax 800d0e: f7 f5 div %ebp 800d10: d3 e6 shl %cl,%esi 800d12: 89 d1 mov %edx,%ecx 800d14: f7 64 24 08 mull 0x8(%esp) 800d18: 39 d1 cmp %edx,%ecx 800d1a: 89 c3 mov %eax,%ebx 800d1c: 89 d7 mov %edx,%edi 800d1e: 72 06 jb 800d26 <__umoddi3+0xa6> 800d20: 75 0e jne 800d30 <__umoddi3+0xb0> 800d22: 39 c6 cmp %eax,%esi 800d24: 73 0a jae 800d30 <__umoddi3+0xb0> 800d26: 2b 44 24 08 sub 0x8(%esp),%eax 800d2a: 19 ea sbb %ebp,%edx 800d2c: 89 d7 mov %edx,%edi 800d2e: 89 c3 mov %eax,%ebx 800d30: 89 ca mov %ecx,%edx 800d32: 0f b6 4c 24 0c movzbl 0xc(%esp),%ecx 800d37: 29 de sub %ebx,%esi 800d39: 19 fa sbb %edi,%edx 800d3b: 8b 5c 24 04 mov 0x4(%esp),%ebx 800d3f: 89 d0 mov %edx,%eax 800d41: d3 e0 shl %cl,%eax 800d43: 89 d9 mov %ebx,%ecx 800d45: d3 ee shr %cl,%esi 800d47: d3 ea shr %cl,%edx 800d49: 09 f0 or %esi,%eax 800d4b: 83 c4 1c add $0x1c,%esp 800d4e: 5b pop %ebx 800d4f: 5e pop %esi 800d50: 5f pop %edi 800d51: 5d pop %ebp 800d52: c3 ret 800d53: 90 nop 800d54: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 800d58: 85 ff test %edi,%edi 800d5a: 89 f9 mov %edi,%ecx 800d5c: 75 0b jne 800d69 <__umoddi3+0xe9> 800d5e: b8 01 00 00 00 mov $0x1,%eax 800d63: 31 d2 xor %edx,%edx 800d65: f7 f7 div %edi 800d67: 89 c1 mov %eax,%ecx 800d69: 89 d8 mov %ebx,%eax 800d6b: 31 d2 xor %edx,%edx 800d6d: f7 f1 div %ecx 800d6f: 89 f0 mov %esi,%eax 800d71: f7 f1 div %ecx 800d73: e9 31 ff ff ff jmp 800ca9 <__umoddi3+0x29> 800d78: 90 nop 800d79: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 800d80: 39 dd cmp %ebx,%ebp 800d82: 72 08 jb 800d8c <__umoddi3+0x10c> 800d84: 39 f7 cmp %esi,%edi 800d86: 0f 87 21 ff ff ff ja 800cad <__umoddi3+0x2d> 800d8c: 89 da mov %ebx,%edx 800d8e: 89 f0 mov %esi,%eax 800d90: 29 f8 sub %edi,%eax 800d92: 19 ea sbb %ebp,%edx 800d94: e9 14 ff ff ff jmp 800cad <__umoddi3+0x2d>
40.22793
78
0.44776
2bf5193f419e94fbe0d7ec2ed2330877b1b084bc
1,563
asm
Assembly
src/palette_streamer.asm
ISSOtm/gb-open-world
b0b5b838e2a98e536e440632c95472ea057111c5
[ "MIT" ]
8
2021-03-14T21:48:19.000Z
2021-11-16T11:05:16.000Z
src/palette_streamer.asm
ISSOtm/gb-open-world
b0b5b838e2a98e536e440632c95472ea057111c5
[ "MIT" ]
null
null
null
src/palette_streamer.asm
ISSOtm/gb-open-world
b0b5b838e2a98e536e440632c95472ea057111c5
[ "MIT" ]
null
null
null
NB_BG_PALETTES equ 128 NB_OBJ_PALETTES equ 128 NB_HW_PALS equ 8 ; There currently only 1 small routine, it's not worth moving into ROMX for now SECTION "Palette streamer routine", ROM0 ; Inits a palette streamer struct ; @param hl Pointer to the base of the palette streamer InitPaletteStreamer:: xor a assert NB_BG_PALETTES == NB_OBJ_PALETTES, "Can't use same init func!" ;ld c, NB_BG_PALETTES * 2 assert NB_BG_PALETTES * 2 == 256 ld c, a ; ld c, 0 rst MemsetSmall inc a ; ld a, 1 ld c, NB_HW_PALS jp MemsetSmall SECTION "BG palette streamer", WRAM0,ALIGN[8] ; Array of ref counts indexed by the "global" BG palette ID ; If non-zero, then the palette is loaded somewhere in the `wBGPaletteIDs` array wBGPaletteCounts:: ds NB_BG_PALETTES * 2 .end:: assert NB_BG_PALETTES <= 128, "Explanation below no longer true!" ; PPPP PPPU ; P = Which "global" BG palette is loaded in this slot ; U = If set, other 7 bits are meaningless ; This is useful e.g. if coming from another menu which overwrote this ; Note: a free slot should be exactly $01; other values with the U bit set indicate that the ; palette slot is not available for dynamic allocation (e.g. reserved by UI) ; ; Info: here's how the main loop's map loader treats palettes for fading ; If bit 0 is reset, the palette is always faded ; Otherwise, the palette is faded if and only if bit 1 is set wBGPaletteIDs:: ds NB_HW_PALS .end:: SECTION "OBJ palette streamer", WRAM0,ALIGN[8] ; Same format as above wOBJPaletteCounts:: ds NB_OBJ_PALETTES * 2 wOBJPaletteIDs: ds NB_HW_PALS
27.421053
92
0.746001
0b524bc5d602126abcc49cab0d16d719a595ff47
332
asm
Assembly
programs/oeis/316/A316832.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/316/A316832.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/316/A316832.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A316832: In A316831, replace 2's and 3's with 0's. ; 0,1,0,1,1,0,0,1,0,1,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,1,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0 lpb $0 add $0,1 sub $1,2 bin $1,2 sub $0,$1 dif $0,2 lpe mod $0,2
27.666667
201
0.521084
407515213dd7e66d244157c1d3b3821f1c578582
1,097
asm
Assembly
pwnlib/shellcraft/templates/mips/linux/pushstr.asm
zneak/pwntools
458c6971ea7bdbbd91180af4872d18039c8861dd
[ "MIT" ]
6
2019-05-29T15:02:21.000Z
2021-04-09T03:52:02.000Z
pwnlib/shellcraft/templates/mips/linux/pushstr.asm
Acidburn0zzz/pwntools
daf117e270d21906a04f809fc603eba90490fe43
[ "MIT" ]
null
null
null
pwnlib/shellcraft/templates/mips/linux/pushstr.asm
Acidburn0zzz/pwntools
daf117e270d21906a04f809fc603eba90490fe43
[ "MIT" ]
3
2018-03-04T03:08:02.000Z
2020-04-22T18:57:44.000Z
<% from pwnlib.shellcraft import mips from pwnlib.context import context as ctx # Ugly hack, mako will not let it be called context %> <%page args="string, append_null = True"/> <%docstring> Thin wrapper around :func:`pwnlib.shellcraft.mips.pushstr`, which sets `context.os` to `'linux'` before calling. Example: >>> print pwnlib.shellcraft.mips.linux.pushstr('Hello, World').rstrip() /* push 'Hello, World\x00' */ .set noat slti $at, $zero, -1 sw $at, -4($sp) add $sp, $sp, -4 .set noat lui $at, 25708 ori $at, $at, 29295 sw $at, -4($sp) add $sp, $sp, -4 .set noat lui $at, 22304 ori $at, $at, 11375 sw $at, -4($sp) add $sp, $sp, -4 .set noat lui $at, 27756 ori $at, $at, 25928 sw $at, -4($sp) add $sp, $sp, -4 Args: string (str): The string to push. append_null (bool): Whether to append a single NULL-byte before pushing. </%docstring> % with ctx.local(os = 'linux'): ${mips.pushstr(string, append_null)} % endwith
25.511628
95
0.564266
02a49d8de14708cf009514a4dae010deb29d45d4
12,405
asm
Assembly
src/shaders/h264/mc/scoreboard_MBAFF.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
src/shaders/h264/mc/scoreboard_MBAFF.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
src/shaders/h264/mc/scoreboard_MBAFF.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
/* * Dependency control scoreboard kernel for MBAFF frame * 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. * */ // Kernel name: scoreboard_MBAFF.asm // // Dependency control scoreboard kernel for MBAFF frame // // $Revision: 16 $ // $Date: 10/18/06 4:10p $ // // ---------------------------------------------------- // Main: scoreboard_MBAFF // ---------------------------------------------------- // ---------------------------------------------------- // Scoreboard structure // ---------------------------------------------------- // // 1 DWORD per thread // // Bit 31: "Checking" thread, i.e. an intra MB that sends "check dependency" message // Bit 30: "Completed" thread. This bit set by an "update" message from intra/inter MB. // Bits 29:28: Must set to 0 // Bits 27:24: EUID // Bits 23:18: Reserved // Bits 17:16: TID // Bits 15:8: X offset of current MB // Bits 15:5: Reserved // Bits 4:0: 5 bits of available neighbor MB flags .kernel scoreboard_MBAFF SCOREBOARD_MBAFF: #ifdef _DEBUG // WA for FULSIM so we'll know which kernel is being debugged mov (1) acc0:ud 0xffaa55a5:ud #endif #include "header.inc" #include "scoreboard_header.inc" // // Now, begin source code.... // .code #ifdef AS_ENABLED and.z.f0.1 (1) NULLREG r0.2<0;1,0>:ud TH_RES // Is this a restarted thread previously interrupted? (f0.1) jmpi (1) MBAFF_Scoreboard_Init #include "scoreboard_restore_AS.asm" jmpi (1) MBAFF_Scoreboard_OpenGW MBAFF_Scoreboard_Init: #endif // End AS_ENABLED // Scoreboard must be initialized to 0xc000ffff, meaning all "completed" // And it also avoids message mis-handling for the first MB $for(0; <32; 2) { mov (16) CMD_SB(%1)<1> 0xc000ffff:ud {Compr} } #ifdef DOUBLE_SB // Scoreboard size needs to be doubled $for(32; <64; 2) { mov (16) CMD_SB(%1)<1> 0xc000ffff:ud {Compr} } #endif // DOUBLE_SB //---------------------------------------------------------- // Open message gateway for the scoreboard thread // // RegBase = r4 (0x04) // Gateway Size = 64 GRF registers (0x6) // Dispatch ID = r0.20:ub // Scoreboard Thread Key = 0 //---------------------------------------------------------- MBAFF_Scoreboard_OpenGW: mov (8) MSGHDRY0<1>:ud 0x00000000:ud // Initialize message header payload with 0 // Send a message with register base RegBase=0x04(r4) and Gateway size = 0x6 = 64 GRF reg and Key = 0 // 000 00000100 00000 00000 110 00000000 ==> 0000 0000 1000 0000 0000 0110 0000 0000 #ifdef AS_ENABLED add (1) MSGHDRY0.5<1>:ud r0.20:ub 0x00800700:ud // Allocate 128 GRFs for message gateway - for SIP to send notification MSG #else #ifdef DOUBLE_SB add (1) MSGHDRY0.5<1>:ud r0.20:ub 0x00800600:ud // 64 GRF's for CTG-B #else add (1) MSGHDRY0.5<1>:ud r0.20:ub 0x00800500:ud // 32 GRF's for CTG-A #endif // DOUBLE_SB #endif send (8) NULLREG MSGHDRY0 null:ud MSG_GW OGWMSGDSC //------------------------------------------------------------------------ // Send Thread Spawning Message to start dispatching macroblock threads // //------------------------------------------------------------------------ #ifdef AS_ENABLED mov (8) acc0<1>:ud CMD_SB(31)<8;8,1> // Ensure scoreboard data have been completely restored #endif // End AS_ENABLED mov (8) MSGHDRY1<1>:ud r0<8;8,1>:ud // Initialize message header payload with R0 mov (1) MSGHDRY1.4<1>:ud 0x00000400:ud // Dispatch URB length = 1 send (8) NULLREG MSGHDRY1 null:ud TS TSMSGDSC mov (8) MSGHDRY0<1>:ud 0x00000000:ud // Initialize message header payload with 0 //------------------------------------------------------------------------ // Scoreboard control data initialization //------------------------------------------------------------------------ #ifdef AS_ENABLED or (1) cr0.1:ud cr0.1:ud AS_INT_EN // Enable interrupt (f0.1) jmpi (1) MBAFF_Scoreboard_State_Init // Jump if not restarted thread // Restore scoreboard kernel control data to r1 - r3 mov (1) m4.1:ud 64:ud // Starting r1 mov (1) m4.2:ud 0x0002001f:ud // for 3 registers send (8) r1.0<1>:ud m4 null:ud DWBRMSGDSC_SC+0x00030000+AS_SAVE // Restore r1 - r3 and (1) CMDPTR<1>:uw MBINDEX(0)<0;1,0> SB_MASK*4:uw // Restore scoreboard entries for current MB // EOT if all MBs have been decoded cmp.e.f0.0 (1) NULLREG TotalMB<0;1,0>:w 0:w // Set "Last MB" flag (-f0.0) jmpi (1) MBAFF_Before_First_MB END_THREAD // Check whether it is before the first MB MBAFF_Before_First_MB: cmp.e.f0.0 (1) NULLREG AVAILFLAGD<1>:ud 0x08020401:ud // in ACBD order (f0.0) jmpi (1) MBAFF_Wavefront_Walk MBAFF_Scoreboard_State_Init: #endif // End AS_ENABLED mov (2) WFLen_B<2>:w HEIGHTINMB_1<0;1,0>:w mov (1) AVAILFLAGD<1>:ud 0x08020401:ud // in ACBD order mov (1) AVAILFLAG1D<1>:ud 0x08020410:ud // in A_C_B_D_ order mov (1) CASE00PTR<1>:ud MBAFF_Notify_MSG_IP-MBAFF_No_Message_IP:ud // Inter kernel starts mov (1) CASE10PTR<1>:ud MBAFF_Dependency_Check_IP-MBAFF_No_Message_IP:ud // Intra kernel starts #ifdef AS_ENABLED mov (1) CASE11PTR<1>:ud 0:ud // No message #else mov (1) CASE11PTR<1>:ud MBAFF_MB_Loop_IP-MBAFF_No_Message_IP:ud // No message #endif // End AS_ENABLED mov (1) StartXD<1>:ud 0:ud mov (1) NewWFOffsetD<1>:ud 0x01ffff00:ud mov (8) WFStart_T(0)<1> 0xffff:w mov (1) WFStart_T(0)<1> 0:w mov (8) a0.0<1>:uw 0x0:uw // Initialize all pointers to 0 //------------------------------------------------------------------------ // Scoreboard message handling loop //------------------------------------------------------------------------ // MBAFF_Scoreboard_Loop: // Calculate current wavefront length (same for top and bottom MB wavefronts) add.ge.f0.1 (16) acc0<1>:w StartX<0;1,0>:w 0:w // Used for x>2*y check mac.g.f0.0 (16) NULLREGW WFLenY<0;1,0>:w -2:w // X - 2*Y > 0 ?? (f0.0) mov (2) WFLen_B<1>:w WFLenY<0;1,0>:w // Use smaller vertical wavefront length (f0.0) mov (1) WFLen_Save<1>:w WFLenY<0;1,0>:w // Save current wave front length (-f0.0) asr.sat (2) WFLen_B<1>:uw StartX<0;1,0>:w 1:w // Horizontal wavefront length is smaller (-f0.0) asr.sat (1) WFLen_Save<1>:uw StartX<0;1,0>:w 1:w // Save current wave front length // Initialize 9-MB group for top macroblock wavefront #ifdef ONE_MB_WA_MBAFF mov (2) MBINDEX(0)<1> WFStart_T(0)<2;2,1> (f0.1) add (4) MBINDEX(0,2)<1> WFStart_B(0,1)<4;4,1> -1:w (-f0.1) add (4) MBINDEX(0,2)<1> WFStart_B(0,0)<4;4,1> -1:w mov (1) MBINDEX(0,5)<1> WFStart_B(0,1)<0;1,0> (-f0.1) mov (1) StartX<1>:w 0:w // WA for 1-MB wide pictures #else mov (2) MBINDEX(0)<1> WFStart_T(0)<2;2,1> {NoDDClr} add (4) MBINDEX(0,2)<1> WFStart_B(0,1)<4;4,1> -1:w {NoDDChk,NoDDClr} mov (1) MBINDEX(0,5)<1> WFStart_B(0,1)<0;1,0> {NoDDChk,NoDDClr} add (4) MBINDEX(0,6)<1> WFStart_T(0,1)<4;4,1> -1:w {NoDDChk} // Upper MB group (C_B_D_x) #endif // Update WFStart_B[0] add (8) acc0<1>:w WFLen<0;1,0>:w 1:w // WFLen + 1 add (1) WFStart_B(0,0)<1> acc0<0;1,0>:w WFStart_T(0,0)<0;1,0> // WFStart_T[0] + WFLen + 1 MBAFF_Start_Wavefront: mul (16) MBINDEX(0)<1> MBINDEX(0)REGION(16,1) 4:w // Adjust MB order # to be DWORD aligned and (1) CMDPTR<1>:uw acc0<0;1,0>:w SB_MASK*4:uw // Wrap around scoreboard entries for current MB MBAFF_Wavefront_Walk: wait n0:ud // Check for combined "checking" or "completed" threads in forwarded message // 2 MSB of scoreboard message indicate: // 0b00 = "inter start" message // 0b10 = "intra start" message // 0b11 = "No Message" or "inter complete" message // 0b01 = Reserved (should never occur) // MBAFF_MB_Loop: shr (1) PMSGSEL<1>:uw r[CMDPTR,CMD_SB_REG_OFF*GRFWIB+2]<0;1,0>:uw 12:w // DWORD aligned pointer to message handler and.nz.f0.1 (8) NULLREG r[CMDPTR,CMD_SB_REG_OFF*GRFWIB]<0;1,0>:ub AVAILFLAG<8;8,1>:ub // f0.1 8 LSB will have the available flags in ACBDA_C_B_D_ order mov (1) MSGHDRY0.4<1>:ud r[CMDPTR,CMD_SB_REG_OFF*GRFWIB]<0;1,0>:ud // Copy MB thread info from scoreboard jmpi (1) r[PMSGSEL, INLINE_REG_OFF*GRFWIB+16]<0;1,0>:d // Now determine whether this is "inter done" or "no message" // through checking debug_counter // MBAFF_No_Message: #ifdef AS_ENABLED cmp.z.f0.1 (1) NULLREG n0:ud 0 // Are all messages handled? and.z.f0.0 (1) NULLREG cr0.1:ud AS_INT // Poll interrupt bit (-f0.1) jmpi (1) MBAFF_MB_Loop // Continue polling the remaining message from current thread // All messages have been handled (f0.0) jmpi (1) MBAFF_Wavefront_Walk // No interrupt occurs. Wait for next one // Interrupt has been detected // Save all contents and terminate the scoreboard // #include "scoreboard_save_AS.asm" // Save scoreboard control data as well // mov (1) MSGHDR.1:ud 64:ud mov (1) MSGHDR.2:ud 0x0002001f:ud // for 3 registers $for(0; <3; 1) { mov (8) MSGPAYLOADD(%1)<1> CMD_SB(%1-3)REGION(8,1) } send (8) NULLREG MSGHDR null:ud DWBWMSGDSC+0x00300000+AS_SAVE // Save r1 - r3 send (8) NULLREG MSGHDR r0:ud EOTMSGDSC+TH_INT // Terminate with "Thread Interrupted" bit set #endif // End AS_ENABLED MBAFF_Dependency_Check: // Current thread is "checking" but not "completed" (0b10 case). // Check for dependency clear using all availability bits // and (8) DEPPTR<1>:uw MBINDEX(0,1)REGION(8,1) SB_MASK*4:uw // Wrap around scoreboard entries for current MB MBAFF_Dependency_Polling: (f0.1) and.z.f0.1 (8) NULLREG r[DEPPTR,CMD_SB_REG_OFF*GRFWIB+3]<1,0>:ub DONEFLAG:uw // f0.1 8 LSB contains dependency clear (f0.1.any8h) jmpi (1) MBAFF_Dependency_Polling // Dependency not clear, keep polling.. // "Checking" thread and dependency cleared, send a message to let the thread go // MBAFF_Notify_MSG: send (8) NULLREG MSGHDRY0 null:ud MSG_GW FWDMSGDSC+NOTIFYMSG // Current macroblock has been serviced. Update to next macroblock in special zig-zag order // MBAFF_Update_CurMB: add.ge.f0.0 (2) TotalMB<2>:w TotalMB<4;2,2>:w -1:w // Set "End of wavefront" flag and decrement "TotalMB" add (16) MBINDEX(0)<1> MBINDEX(0)REGION(16,1) 4:w // Increment MB indices and (1) CMDPTR<1>:uw acc0<0;1,0>:w SB_MASK*4:uw // Wrap around scoreboard entries for current MB (f0.0.all2h) jmpi (1) MBAFF_Wavefront_Walk // Continue wavefront walking // Top macroblock wavefront walk done, start bottom MB wavefront add.ge.f0.0 (1) WFLen<1>:w WFLen_B<0;1,0>:w 0:w {NoDDClr} // Set bottom MB wavefront length mov (1) WFLen_B<1>:w -1:w {NoDDChk} // Reset bottom MB wavefront length // Initialize 9-MB group for bottom macroblock wavefront mov (8) MBINDEX(0)<1> WFStart_B(0)<1;4,0> {NoDDClr} // Initialize with WFStart_B[0] and WFStart_B[1] mov (4) MBINDEX(0,1)<1> WFStart_T(0,1)<0;1,0> {NoDDChk,NoDDClr} // Initialize with WFStart_T[1] mov (2) MBINDEX(0,2)<1> WFStart_T(0)<0;1,0> {NoDDChk,NoDDClr} // Initialize with WFStart_T[0] add (4) MBINDEX(0,6)<1> WFStart_B(0,1)<4;4,1> -1:w {NoDDChk} // Upper MB group (C_B_D_x) (f0.0) jmpi (1) MBAFF_Start_Wavefront // Start bottom MB wavefront walk // Start new wavefront // cmp.e.f0.1 (16) NULLREGW StartX<0;1,0>:uw WIDTHINMB_1<0;1,0>:uw // Set "on picture right boundary" flag // Update WFStart_T and WFStart_B add (8) acc0<1>:w WFStart_T(0)REGION(1,0) 1:w // Move WFStart_T[0]+1 to acc0 to remove dependency later mov (8) WFStart_T(0,1)<1> WFStart_T(0)<8;8,1> {NoDDClr} // Shift WFStart_T(B)[0:2] to WFStart_T(B)[1:3] mac (1) WFStart_T(0,0)<1> WFLen_Save<0;1,0>:w 2:w {NoDDChk} // WFStart_T[0] = WFStart_T[0] + 2*WFLen cmp.e.f0.0 (1) NULLREG TotalMB<0;1,0>:w 0:w // Set "Last MB" flag (f0.1) add (4) WFLen<1>:w WFLen<4;4,1>:w NewWFOffset<4;4,1>:b // + (0, -1, -1, 1) (f0.1) add (8) WFStart_T(0)<1> WFStart_T(0)REGION(4,1) 1:w (-f0.1) add (1) StartX<1>:w StartX<0;1,0>:w 1:w // Move to right MB (-f0.1) add (1) WFStart_T(0)<1> WFStart_T(0)REGION(1,0) 1:w (-f0.0) jmpi (1) MBAFF_Scoreboard_Loop // Not last MB, start new wavefront walking // All MBs have decoded. Terminate the thread now // END_THREAD #if !defined(COMBINED_KERNEL) // For standalone kernel only .end_code .end_kernel #endif // End of scoreboard_MBAFF
41.35
154
0.634422
4560754e0a9cbad16bddc4a9a16e9e20230c9189
1,613
asm
Assembly
programs/oeis/260/A260708.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/260/A260708.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/260/A260708.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A260708: a(2n) = n*(2*n+1), a(2n+7) = a(2n+1) + 12*n + 28, with a(1)=1, a(3)=6, a(5)=16. ; 0,1,3,6,10,16,21,29,36,46,55,68,78,93,105,122,136,156,171,193,210,234,253,280,300,329,351,382,406,440,465,501,528,566,595,636,666,709,741,786,820,868,903,953,990,1042,1081,1136,1176,1233,1275,1334,1378,1440,1485,1549,1596,1662,1711,1780,1830,1901,1953,2026,2080,2156,2211,2289,2346,2426,2485,2568,2628,2713,2775,2862,2926,3016,3081,3173,3240,3334,3403,3500,3570,3669,3741,3842,3916,4020,4095,4201,4278,4386,4465,4576,4656,4769,4851,4966,5050,5168,5253,5373,5460,5582,5671,5796,5886,6013,6105,6234,6328,6460,6555,6689,6786,6922,7021,7160,7260,7401,7503,7646,7750,7896,8001,8149,8256,8406,8515,8668,8778,8933,9045,9202,9316,9476,9591,9753,9870,10034,10153,10320,10440,10609,10731,10902,11026,11200,11325,11501,11628,11806,11935,12116,12246,12429,12561,12746,12880,13068,13203,13393,13530,13722,13861,14056,14196,14393,14535,14734,14878,15080,15225,15429,15576,15782,15931,16140,16290,16501,16653,16866,17020,17236,17391,17609,17766,17986,18145,18368,18528,18753,18915,19142,19306,19536,19701,19933,20100,20334,20503,20740,20910,21149,21321,21562,21736,21980,22155,22401,22578,22826,23005,23256,23436,23689,23871,24126,24310,24568,24753,25013,25200,25462,25651,25916,26106,26373,26565,26834,27028,27300,27495,27769,27966,28242,28441,28720,28920,29201,29403,29686,29890,30176,30381,30669,30876,31166 mov $2,$0 mov $4,$0 lpb $0,1 add $0,1 add $1,$2 add $1,3 div $1,2 sub $2,1 add $1,$2 add $3,1 add $3,$0 mod $0,2 trn $0,1 sub $3,3 mul $3,$1 mov $1,$0 add $1,1 add $1,$3 lpe div $1,3 add $1,$4
64.52
1,297
0.737756
ddff27ed74868f0a1ea338b5bf503d0388918271
713
asm
Assembly
oeis/024/A024394.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/024/A024394.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/024/A024394.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A024394: a(n) is the sum of squares of the first n positive integers congruent to 2 mod 3. ; Submitted by Jon Maiga ; 4,29,93,214,410,699,1099,1628,2304,3145,4169,5394,6838,8519,10455,12664,15164,17973,21109,24590,28434,32659,37283,42324,47800,53729,60129,67018,74414,82335,90799,99824,109428,119629,130445,141894,153994,166763,180219,194380,209264,224889,241273,258434,276390,295159,314759,335208,356524,378725,401829,425854,450818,476739,503635,531524,560424,590353,621329,653370,686494,720719,756063,792544,830180,868989,908989,950198,992634,1036315,1081259,1127484,1175008,1223849,1274025,1325554,1378454,1432743 mul $0,3 add $0,3 mov $1,$0 pow $0,2 add $1,2 mul $0,$1 bin $1,2 sub $0,$1 div $0,9 add $0,1
47.533333
500
0.784011
881e07721835133254dfeeb74294bb6da23f763c
989
asm
Assembly
_build/dispatcher/jmp_ippsPrimeInit_bed0e03e.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
1
2021-10-04T10:21:54.000Z
2021-10-04T10:21:54.000Z
_build/dispatcher/jmp_ippsPrimeInit_bed0e03e.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
_build/dispatcher/jmp_ippsPrimeInit_bed0e03e.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
extern m7_ippsPrimeInit:function extern n8_ippsPrimeInit:function extern y8_ippsPrimeInit:function extern e9_ippsPrimeInit:function extern l9_ippsPrimeInit:function extern n0_ippsPrimeInit:function extern k0_ippsPrimeInit:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment .data align 8 dq .Lin_ippsPrimeInit .Larraddr_ippsPrimeInit: dq m7_ippsPrimeInit dq n8_ippsPrimeInit dq y8_ippsPrimeInit dq e9_ippsPrimeInit dq l9_ippsPrimeInit dq n0_ippsPrimeInit dq k0_ippsPrimeInit segment .text global ippsPrimeInit:function (ippsPrimeInit.LEndippsPrimeInit - ippsPrimeInit) .Lin_ippsPrimeInit: db 0xf3, 0x0f, 0x1e, 0xfa call ippcpSafeInit wrt ..plt align 16 ippsPrimeInit: db 0xf3, 0x0f, 0x1e, 0xfa mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc] movsxd rax, dword [rax] lea r11, [rel .Larraddr_ippsPrimeInit] mov r11, qword [r11+rax*8] jmp r11 .LEndippsPrimeInit:
25.358974
79
0.777553
7efddb906d98b92fff5ff5c60ac18709185e54b3
1,354
asm
Assembly
text/maps/WardensHouse.asm
AmateurPanda92/pokemon-rby-dx
f7ba1cc50b22d93ed176571e074a52d73360da93
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
text/maps/WardensHouse.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
text/maps/WardensHouse.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
_WardenGibberishText1:: text "WARDEN: Hif fuff" line "hefifoo!" para "Ha lof ha feef ee" line "hafahi ho. Heff" cont "hee fwee!" done _WardenGibberishText2:: text "Ah howhee ho hoo!" line "Eef ee hafahi ho!" done _WardenGibberishText3:: text "Ha? He ohay heh" line "ha hoo ee haheh!" done _WardenTeethText1:: text "<PLAYER> gave the" line "GOLD TEETH to the" cont "WARDEN!@@" _WardenTeethText2:: text "" para "The WARDEN popped" line "in his teeth!" prompt _WardenThankYouText:: text "WARDEN: Thanks," line "kid! No one could" cont "understand a word" cont "that I said." para "I couldn't work" line "that way." cont "Let me give you" cont "something for" cont "your trouble." prompt _ReceivedHM04Text:: text "<PLAYER> received" line "@" TX_RAM wcf4b text "!@@" _HM04ExplanationText:: text "WARDEN: HM04" line "teaches STRENGTH!" para "It lets #MON" line "move boulders" cont "when you're out-" cont "side of battle." para "Oh yes, did you" line "find SECRET HOUSE" cont "in SAFARI ZONE?" para "If you do, you" line "win an HM!" para "I hear it's the" line "rare SURF HM." done _HM04NoRoomText:: text "Your pack is" line "stuffed full!" done _FuchsiaHouse2Text_75176:: text "#MON photos" line "and fossils." done _FuchsiaHouse2Text_7517b:: text "Old #MON" line "merchandise." done
15.929412
26
0.686854
f359fecea80d437add2fcbf49122656413f314ae
614
asm
Assembly
programs/oeis/058/A058966.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/058/A058966.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/058/A058966.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A058966: a(3) = 1, otherwise a(n) = n*2^(n-3) - 2^(n-2) - 2. ; 1,2,10,30,78,190,446,1022,2302,5118,11262,24574,53246,114686,245758,524286,1114110,2359294,4980734,10485758,22020094,46137342,96468990,201326590,419430398,872415230,1811939326,3758096382,7784628222,16106127358,33285996542,68719476734,141733920766,292057776126,601295421438,1236950581246,2542620639230,5222680231934,10720238370814,21990232555518,45079976738814,92358976733182,189115999977470,387028092977150,791648371998718,1618481116086270,3307330976350206,6755399441055742 mov $1,$0 lpb $0,1 sub $0,1 mul $1,2 add $1,1 lpe trn $1,2 add $1,1
51.166667
475
0.802932
31c0f410b8afa16a7fc276b4fc4103962c7a9636
175
asm
Assembly
pkgs/tools/yasm/src/modules/objfmts/bin/tests/integer-warn.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
pkgs/tools/yasm/src/modules/objfmts/bin/tests/integer-warn.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
pkgs/tools/yasm/src/modules/objfmts/bin/tests/integer-warn.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
; Tests warnings with integer constant handling (for output, not parsing) db 0x51a dw 0x3875bc dd 0x35783134affff dq 0xABCDEF012345678989abb dt 0xa907bc890d0e907f0134afb8adee
25
73
0.857143
ee94d858c43dc07e9b50ccba1bb01c41de4c46e4
716
asm
Assembly
programs/oeis/026/A026053.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/026/A026053.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/026/A026053.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A026053: (d(n)-r(n))/5, where d = A008778 and r is the periodic sequence with fundamental period (0,3,1,0,1). ; 1,2,5,9,14,21,29,40,53,68,86,106,130,157,187,221,258,300,346,396,451,510,575,645,720,801,887,980,1079,1184,1296,1414,1540,1673,1813,1961,2116,2280,2452,2632,2821,3018,3225,3441,3666,3901,4145,4400,4665,4940,5226,5522,5830,6149,6479,6821 mov $12,$0 mov $14,$0 add $14,1 lpb $14 clr $0,12 mov $0,$12 sub $14,1 sub $0,$14 mov $9,$0 mov $11,$0 add $11,1 lpb $11 mov $0,$9 sub $11,1 sub $0,$11 mov $4,6 add $4,$0 mov $6,2 add $6,$4 mod $4,5 mod $4,2 div $6,5 add $4,$6 mov $1,$4 sub $1,1 add $10,$1 lpe add $13,$10 lpe mov $1,$13
21.058824
238
0.583799
eb78d6400a4a7bff8a921ed7bdaba35884b68458
491
asm
Assembly
programs/oeis/046/A046699.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/046/A046699.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/046/A046699.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A046699: a(1) = a(2) = 1, a(n) = a(n - a(n-1)) + a(n-1 - a(n-2)) if n > 2. ; 1,1,2,2,3,4,4,4,5,6,6,7,8,8,8,8,9,10,10,11,12,12,12,13,14,14,15,16,16,16,16,16,17,18,18,19,20,20,20,21,22,22,23,24,24,24,24,25,26,26,27,28,28,28,29,30,30,31,32,32,32,32,32,32,33,34,34,35,36,36,36,37,38,38,39,40,40,40,40,41,42,42,43,44,44,44,45,46,46,47,48,48,48,48,48,49,50,50,51,52 sub $0,1 mov $2,$0 max $0,0 seq $0,55938 ; Integers not generated by b(n) = b(floor(n/2)) + n (cf. A005187). sub $0,$2 div $0,2
49.1
284
0.586558
2433c05f653b83cf2c5da6a38a3ceab0d668ce4b
4,454
asm
Assembly
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_8_1465.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_8_1465.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_8_1465.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r15 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x5be9, %r15 nop and $52609, %r11 movb (%r15), %dl nop nop nop nop nop inc %rcx lea addresses_WC_ht+0x499, %rsi lea addresses_UC_ht+0x1aa19, %rdi nop xor $32304, %r14 mov $15, %rcx rep movsb nop sub %rdi, %rdi lea addresses_WT_ht+0x1c3c9, %rsi add $49633, %r15 movb $0x61, (%rsi) cmp %r14, %r14 lea addresses_D_ht+0x15bc9, %rsi lea addresses_UC_ht+0x137c9, %rdi clflush (%rdi) nop nop nop nop and %rdx, %rdx mov $49, %rcx rep movsb nop nop nop sub %rsi, %rsi lea addresses_UC_ht+0x18c9, %r14 nop cmp $32048, %rsi movb $0x61, (%r14) nop nop nop dec %r15 lea addresses_WT_ht+0x27c9, %rcx xor $20418, %r15 movups (%rcx), %xmm0 vpextrq $0, %xmm0, %rdx nop nop nop sub $55873, %r11 lea addresses_D_ht+0x1dfc9, %rsi lea addresses_D_ht+0x2989, %rdi nop nop and %r11, %r11 mov $17, %rcx rep movsl nop add %rsi, %rsi lea addresses_D_ht+0x13f1b, %rdx clflush (%rdx) nop nop nop nop add %rsi, %rsi mov (%rdx), %rcx nop nop nop nop nop cmp %rsi, %rsi lea addresses_WT_ht+0x68f7, %r14 inc %r11 mov $0x6162636465666768, %rdi movq %rdi, %xmm4 movups %xmm4, (%r14) nop xor $17205, %r15 lea addresses_WT_ht+0x133a1, %rsi lea addresses_D_ht+0xc201, %rdi xor %rdx, %rdx mov $92, %rcx rep movsq nop nop nop add $60190, %r11 lea addresses_D_ht+0x8bc9, %rsi nop dec %rdi movb $0x61, (%rsi) nop nop nop and $16236, %r11 lea addresses_UC_ht+0x11351, %rsi lea addresses_normal_ht+0x1b9f9, %rdi xor %rdx, %rdx mov $31, %rcx rep movsw nop nop nop nop add %rdx, %rdx lea addresses_WC_ht+0x193c9, %rcx nop nop nop nop nop sub %rsi, %rsi mov $0x6162636465666768, %r11 movq %r11, %xmm6 vmovups %ymm6, (%rcx) nop nop and %r15, %r15 pop %rsi pop %rdx pop %rdi pop %rcx pop %r15 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r14 push %rbp push %rsi // Store lea addresses_WT+0x18385, %rbp nop nop nop nop lfence movb $0x51, (%rbp) nop nop nop nop dec %r12 // Faulty Load lea addresses_US+0x19fc9, %rsi nop nop nop nop nop cmp %rbp, %rbp mov (%rsi), %r12w lea oracles, %r14 and $0xff, %r12 shlq $12, %r12 mov (%r14,%r12,1), %r12 pop %rsi pop %rbp pop %r14 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_US', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT', 'same': False, 'size': 1, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_US', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 1, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 8, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 1, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'00': 8} 00 00 00 00 00 00 00 00 */
21.311005
152
0.649753
2e2fd61555531c92d1ff4120986e085446ce28bf
796
asm
Assembly
asm/taste.asm
supeterlau/bedev
c134875eae37d265936199fda278416e2a3c1224
[ "MIT" ]
null
null
null
asm/taste.asm
supeterlau/bedev
c134875eae37d265936199fda278416e2a3c1224
[ "MIT" ]
null
null
null
asm/taste.asm
supeterlau/bedev
c134875eae37d265936199fda278416e2a3c1224
[ "MIT" ]
null
null
null
global _start ; 入口函数 section .data query_string : db "Enter a character: " query_string_len : equ $ - query_string out_string : db "You have input: " out_string_len : equ $ - out_string section .bss in_char: resw 4 section .text _start: mov rax, 0x2000004 ; syscall 参数 表示 write mov rdi, 1 ; 代表 stdout mov rsi, query_string ; rsi 获取字符 mov rdx, query_string_len ; rdx 获取长度 syscall mov rax, 0x2000003 ; syscall 参数 表示 read mov rdi, 0 ; 代表 stdin mov rsi, in_char mov rdx, 2 ; 从内核读取 2 字节 字符和回车 syscall mov rax, 0x2000004 ; 打印输入值 mov rdi, 1 mov rsi, out_string mov rdx, out_string_len syscall mov rax, 0x2000004 mov rdi, 1 mov rsi, in_char mov rdx, 2 ; 2 字节 第二个是回车 syscall mov rax, 0x2000001 ; syscall 参数 表示退出 syscall mov rdi, 0 syscall
18.952381
46
0.684673
9321ee0b90d585f9903ed08e2c6ca593cf1a9671
647
asm
Assembly
programs/oeis/256/A256256.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/256/A256256.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/256/A256256.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A256256: Total number of ON cells after n generations of cellular automaton on triangular grid, starting from a node, in which every 60-degree wedge looks like the Sierpiński's triangle. ; 0,6,18,30,54,66,90,114,162,174,198,222,270,294,342,390,486,498,522,546,594,618,666,714,810,834,882,930,1026,1074,1170,1266,1458,1470,1494,1518,1566,1590,1638,1686,1782,1806,1854,1902,1998,2046,2142,2238,2430,2454,2502,2550,2646,2694,2790,2886,3078,3126,3222,3318,3510,3606,3798,3990,4374 sub $0,1 mov $1,$0 add $0,4 max $1,0 seq $1,267700 ; "Tree" sequence in a 90 degree sector of the cellular automaton of A160720. add $1,$0 mov $0,$1 sub $0,3 mul $0,6
49.769231
289
0.749614
fad2c756571ed743ef6575744c2adc8dbb033ff1
1,519
asm
Assembly
PRG/levels/Ice/6-2.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/levels/Ice/6-2.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/levels/Ice/6-2.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
; Original address was $B14C ; 6-2 .word W602_EndL ; Alternate level layout .word W602_EndO ; Alternate object layout .byte LEVEL1_SIZE_09 | LEVEL1_YSTART_140 .byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 | LEVEL2_UNUSEDFLAG .byte LEVEL3_TILESET_12 | LEVEL3_VSCROLL_LOCKLOW | LEVEL3_PIPENOTEXIT .byte LEVEL4_BGBANK_INDEX(12) | LEVEL4_INITACT_NOTHING .byte LEVEL5_BGM_ATHLETIC | LEVEL5_TIME_300 .byte $36, $00, $43, $36, $07, $43, $72, $14, $13, $78, $1F, $13, $31, $15, $82, $57 .byte $1F, $E0, $37, $22, $01, $36, $28, $43, $77, $2D, $13, $30, $29, $10, $31, $29 .byte $10, $32, $29, $10, $33, $29, $10, $34, $29, $10, $35, $29, $10, $33, $2E, $82 .byte $76, $32, $13, $36, $37, $43, $36, $3E, $43, $30, $33, $82, $33, $3B, $82, $38 .byte $35, $82, $33, $34, $10, $34, $34, $10, $35, $34, $10, $33, $39, $10, $34, $39 .byte $10, $35, $39, $10, $38, $42, $43, $39, $49, $43, $2B, $4A, $40, $2C, $4A, $40 .byte $2D, $4A, $40, $2E, $4A, $40, $2F, $4A, $40, $30, $4A, $40, $31, $4A, $40, $32 .byte $4A, $40, $33, $4A, $40, $34, $4A, $40, $35, $4A, $40, $36, $4A, $40, $37, $4A .byte $40, $38, $4A, $40, $6B, $51, $13, $28, $56, $43, $28, $5C, $43, $25, $58, $0A .byte $46, $58, $E0, $47, $58, $E0, $6D, $68, $13, $34, $6F, $43, $30, $6E, $82, $38 .byte $78, $43, $2D, $74, $0B, $27, $72, $40, $28, $72, $40, $29, $72, $40, $2A, $72 .byte $40, $2B, $72, $40, $2C, $72, $40, $2D, $72, $40, $2E, $72, $40, $2F, $72, $40 .byte $30, $72, $43, $39, $80, $43, $37, $8A, $93, $E8, $42, $80, $FF
63.291667
85
0.527979
124587f1dd735294db3e43a4df0dc2fe6116c919
718
asm
Assembly
oeis/020/A020089.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/020/A020089.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/020/A020089.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A020089: Integer part of Gamma(n + 1/3)/Gamma(1/3). ; Submitted by Jamie Morken(w3) ; 1,0,0,1,3,14,79,505,3710,30920,288591,2982109,33797240,416832633,5557768440,79661347641,1221473997164,19950741953681,345812860530487,6339902443058941,122571447232472865,2492286093726948268,53168769999508229720,1187435863322350463747,27706836810854844154110,674199695730801207750017,17079725625180297263000442,449766108129747827925678330,12293606955546440629968541020,348318863740482484515775328901,10217353336387486212462742981105,309926384537087081778036537093523,9711026715495395229045144828930417 mov $1,1 mov $3,1 lpb $0 mul $1,3 mov $2,$0 sub $0,1 mul $2,6 sub $2,4 mul $1,$2 mul $3,18 lpe div $1,$3 mov $0,$1
39.888889
501
0.820334
ee85377e31cb29c4eded33c15468e067345353ef
1,215
asm
Assembly
programs/oeis/017/A017787.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/017/A017787.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/017/A017787.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A017787: Binomial coefficients C(71,n). ; 1,71,2485,57155,971635,13019909,143218999,1329890705,10639125640,74473879480,461738052776,2560547383576,12802736917880,58104729088840,240719591939480,914734449370024,3201570572795084,10358022441395860,31074067324187580,86680293062207460,225368761961739396,547324136192795676,1243918491347262900,2650087220696342700,5300174441392685400,9964327949818248552,17629195603524593592,29381992672540989320,46171702771135840360,68461490315822108120,95846086442150951368,126764178842844806648,158455223553556008310,187265264199657100730,209296471752557936110,221256270138418389602,221256270138418389602,209296471752557936110,187265264199657100730,158455223553556008310,126764178842844806648,95846086442150951368,68461490315822108120,46171702771135840360,29381992672540989320,17629195603524593592,9964327949818248552,5300174441392685400,2650087220696342700,1243918491347262900,547324136192795676,225368761961739396,86680293062207460,31074067324187580,10358022441395860,3201570572795084,914734449370024,240719591939480,58104729088840,12802736917880,2560547383576,461738052776,74473879480,10639125640,1329890705,143218999,13019909,971635,57155,2485,71,1 mov $1,71 bin $1,$0 mov $0,$1
173.571429
1,141
0.917695
063fc6294ebd1b961f25f82ef60f17fed945a741
2,304
asm
Assembly
programs/oeis/235/A235367.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/235/A235367.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/235/A235367.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A235367: Sum of positive even numbers up to n^2. ; 0,6,20,72,156,342,600,1056,1640,2550,3660,5256,7140,9702,12656,16512,20880,26406,32580,40200,48620,58806,69960,83232,97656,114582,132860,154056,176820,202950,230880,262656,296480,334662,375156,420552,468540,522006,578360,640800,706440,778806,854700,937992,1025156,1120422,1219920,1328256,1441200,1563750,1691300,1829256,1972620,2127222,2287656,2460192,2639000,2830806,3029340,3241800,3461460,3696006,3938240,4196352,4462656,4745862,5037780,5347656,5666780,6004950,6352920,6721056,7099560,7499382,7910156,8343432,8788260,9256806,9737520,10243200,10761680,11306406,11864580,12450312,13050156,13678902,14322440,14996256,15685560,16406550,17143740,17914056,18701300,19523142,20362656,21238272,22132320,23064006,24014900,25005000,26015100,27066006,28137720,29251872,30387656,31567542,32769900,34018056,35289540,36608550,37951760,39344256,40761840,42230502,43725156,45272712,46847180,48476406,50133480,51847200,53589720,55390806,57221660,59113032,61035156,63019782,65036160,67117056,69230720,71410950,73624980,75907656,78225180,80613462,83037656,85534752,88068840,90678006,93325260,96049800,98813540,101656806,104540400,107505792,110512656,113603622,116737220,119957256,123221100,126573750,129971400,133460256,136995320,140624022,144300156,148072392,151893300,155812806,159782240,163852800,167974560,172200006,176477940,180862152,185300156,189847062,194449080,199162656,203932680,208816950,213759020,218818056,223936260,229174182,234472656,239893632,245376560,250984806,256656420,262456200,268320780,274316406,280378280,286574112,292837656,299238102,305707740,312317256,318997460,325820550,332715840,339757056,346872000,354135942,361475156,368966472,376534620,384258006,392059800,400020000,408060200,416262006,424545420,432993672,441525156,450224742,459009200,467965056,477007440,486224550,495529860,505013256,514586540,524341302,534187656,544218912,554343480,564656406,575064380,585664200,596360820,607252806,618243360,629432832,640722656,652214982,663809460,675610056,687514620,699628950,711849080,724282656,736823880,749582262,762450156,775538952,788739140,802164006,815702160,829468800,843350640,857464806,871696100,886163592,900750156,915576822,930524520,945716256,961031000,976593750 add $0,1 pow $0,2 div $0,2 mov $2,$0 pow $2,2 add $0,$2 mov $1,$0
209.454545
2,185
0.87066
24cadac5183c62a061672bdeec08d67257e16bdf
645
asm
Assembly
oeis/164/A164001.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/164/A164001.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/164/A164001.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A164001: Spiral of triangles around a hexagon. ; 1,2,3,4,5,7,9,12,16,21,28,37,49,65,86,114,151,200,265,351,465,616,816,1081,1432,1897,2513,3329,4410,5842,7739,10252,13581,17991,23833,31572,41824,55405,73396,97229,128801,170625,226030,299426,396655,525456,696081,922111,1221537,1618192,2143648,2839729,3761840,4983377,6601569,8745217,11584946,15346786,20330163,26931732,35676949,47261895,62608681,82938844,109870576,145547525,192809420,255418101,338356945,448227521,593775046,786584466,1042002567,1380359512,1828587033,2422362079,3208946545 mov $2,2 lpb $2 mov $2,$0 lpe sub $2,1 add $0,$2 add $0,2 seq $0,134816 ; Padovan's spiral numbers.
53.75
492
0.79845
cb8e5840cb31aa9c853b62443abd937e63349d05
1,325
asm
Assembly
programs/oeis/128/A128429.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/128/A128429.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/128/A128429.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A128429: A linear recurrence sequence: a(n) = a(n-1) + a(n-3) + a(n-5) + a(n-6). ; 1,1,1,1,1,1,4,7,10,16,25,40,67,109,175,283,457,739,1198,1939,3136,5074,8209,13282,21493,34777,56269,91045,147313,238357,385672,624031,1009702,1633732,2643433,4277164,6920599,11197765,18118363,29316127,47434489,76750615,124185106,200935723,325120828,526056550,851177377,1377233926,2228411305,3605645233,5834056537,9439701769,15273758305,24713460073,39987218380,64700678455,104687896834,169388575288,274076472121,443465047408,717541519531,1161006566941,1878548086471,3039554653411,4918102739881,7957657393291,12875760133174,20833417526467,33709177659640,54542595186106,88251772845745,142794368031850,231046140877597,373840508909449,604886649787045,978727158696493,1583613808483537,2562340967180029,4145954775663568,6708295742843599,10854250518507166,17562546261350764,28416796779857929,45979343041208692,74396139821066623,120375482862275317,194771622683341939,315147105545617255,509918728228959193,825065833774576447,1334984562003535642,2160050395778112091,3495034957781647732,5655085353559759822,9150120311341407553,14805205664901167374,23955325976242574929,38760531641143742305,62715857617386317233,101476389258530059537 trn $0,1 seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1. div $0,4 mul $0,3 add $0,1
147.222222
1,122
0.85283
0de1b9d34f1149a4164c57020eb4b5537699692c
269
asm
Assembly
programs/oeis/129/A129072.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/129/A129072.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/129/A129072.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A129072: Numbers n such that (n-13)/12 is prime. ; 37,49,73,97,145,169,217,241,289,361,385,457,505,529,577,649,721,745,817,865,889,961,1009,1081,1177,1225,1249,1297,1321,1369,1537,1585,1657,1681,1801,1825,1897,1969 seq $0,40 ; The prime numbers. mul $0,12 add $0,13
38.428571
165
0.72119
36d228b9a33ac4d00d366c90998bf2831c7b1626
332
asm
Assembly
oeis/021/A021383.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/021/A021383.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/021/A021383.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A021383: Decimal expansion of 1/379. ; Submitted by Christian Krause ; 0,0,2,6,3,8,5,2,2,4,2,7,4,4,0,6,3,3,2,4,5,3,8,2,5,8,5,7,5,1,9,7,8,8,9,1,8,2,0,5,8,0,4,7,4,9,3,4,0,3,6,9,3,9,3,1,3,9,8,4,1,6,8,8,6,5,4,3,5,3,5,6,2,0,0,5,2,7,7,0,4,4,8,5,4,8,8,1,2,6,6,4,9,0,7,6,5,1,7 add $0,1 mov $2,10 pow $2,$0 div $2,379 mov $0,$2 mod $0,10
30.181818
199
0.566265
ea67200b15aee5fb0a3cd0869e864288c902f597
495
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/c/sccz80/cm48_sccz80_fma_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/c/sccz80/cm48_sccz80_fma_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/c/sccz80/cm48_sccz80_fma_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; double __CALLEE__ fma(double x, double y, double z) SECTION code_fp_math48 PUBLIC cm48_sccz80_fma_callee EXTERN am48_fma, cm48_sccz80p_dcallee2, asm0_memswap cm48_sccz80_fma_callee: ; swap x and z on stack ld hl,2 add hl,sp ex de,hl ; de = &z ld hl,14 add hl,sp ; hl = &x ld bc,6 call asm0_memswap ; collect params call cm48_sccz80p_dcallee2 ; AC = x ; AC'= y ; stack = z, ret jp am48_fma
15
53
0.59596
426f0191bf64d765aa36ffc6306bc879cd993ce8
765
asm
Assembly
oeis/289/A289216.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/289/A289216.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/289/A289216.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A289216: a(n) = n! * Laguerre(n,-10). ; Submitted by Jamie Morken(s2) ; 1,11,142,2086,34184,616120,12083920,255749840,5801633920,140276126080,3598075308800,97512721964800,2782552712473600,83347512973644800,2613606571616819200,85594543750221568000,2921314815145299968000,103704333851191177216000,3822435041726611283968000,146054242793364788928512000,5776758846811567983984640000,236193004070044051611811840000,9970678564268433254488801280000,434069907064862508016767139840000,19467495742199161765331151093760000,898557982320389739536880041984000000 mov $2,1 mov $3,$0 mov $4,1 lpb $3 mul $1,$3 mul $4,$3 add $1,$4 mul $1,$3 mul $2,10 cmp $4,0 add $5,$4 mov $6,$5 cmp $6,0 add $5,$6 div $1,$5 add $2,$1 sub $3,1 div $4,$5 lpe mov $0,$2
30.6
477
0.775163
0011ce3175b560dd22d0d8b0b01d9944d164c356
368
asm
Assembly
programs/oeis/162/A162466.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/162/A162466.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/162/A162466.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A162466: a(n) = 12*a(n-2) for n > 2; a(1) = 1, a(2) = 8. ; 1,8,12,96,144,1152,1728,13824,20736,165888,248832,1990656,2985984,23887872,35831808,286654464,429981696,3439853568,5159780352,41278242816,61917364224,495338913792,743008370688,5944066965504 mov $1,3 mov $2,$0 add $0,9 mod $2,2 sub $1,$2 lpb $0 sub $0,2 mul $1,12 lpe sub $1,62208 div $1,62208 add $1,1
23
191
0.69837
fd66d9c2c47b16f03298f38f71cfcd7b5e307512
2,699
asm
Assembly
Library/Trans/Graphics/Bitmap/Ico/Lib/libMain.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Trans/Graphics/Bitmap/Ico/Lib/libMain.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Trans/Graphics/Bitmap/Ico/Lib/libMain.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: Ico Translation Library FILE: libMain.asm AUTHOR: Steve Yegge, March 29, 1993 ROUTINES: Name Description ---- ----------- GLB TransGetExportOptions Return the handle of the block containing export options REVISION HISTORY: Name Date Description ---- ---- ----------- MS 4/28/92 Initial revision DESCRIPTION: $Id: libMain.asm,v 1.1 97/04/07 11:29:34 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ExportCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TransGetExportOptions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Return the handle of the block containing export options CALLED BY: GLOBAL PASS: dx - handle of object block holding UI gadgetry (zero if default options are desired) RETURN: dx - handle of block containing ICOExportBlock structure (or zero if no options) DESTROYED: nothing PSEUDO CODE/STRATEGY: extract the options from the UI gadgetry and setup the structure KNOWN BUGS/SIDE EFFECTS/IDEAS: caller is expected to free the block when finished REVISION HISTORY: Name Date Description ---- ---- ----------- Jim 02/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TransGetExportOptions proc far uses ax,bx,cx,bp,ds,si,di .enter ; ; get Export Options from the UI ; push dx ; save handle of ui gadgetry mov ax, MSG_GEN_ITEM_GROUP_GET_SELECTION mov bx, dx ; block of the UI passed in mov si, offset SelectBitCount mov di, mask MF_CALL call ObjMessage pop dx ; retore ui block handle push ax ; the BitCount selection mov ax, MSG_GEN_ITEM_GROUP_GET_SELECTION mov si, offset SelectFormat mov di, mask MF_CALL call ObjMessage push ax ; the format number selected ; ; allocate a block to hold the Export Options ; mov ax, size ICOExportBlock mov cl, mask HF_SHARABLE or mask HF_SWAPABLE mov ch, mask HAF_LOCK call MemAlloc jc error segmov ds, ax ; address of allocated block pop ax ; get Format selection mov ds:[IEO_format], ax pop ax ; restore BitCount selection mov ds:[IEO_bitCount], al call MemUnlock mov dx, bx ; return block in dx clc done: .leave ret error: clr dx add sp,4 ; fixup stack jmp done TransGetExportOptions endp ExportCode ends
23.884956
79
0.581326
3cc3a825a1f021fb094ad0871c1df9a7de3d86a8
6,880
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_21829_206.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_21829_206.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_21829_206.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %r15 push %r8 push %r9 push %rbp lea addresses_WT_ht+0x17ca2, %r13 nop nop nop nop nop sub $47319, %r14 mov $0x6162636465666768, %r9 movq %r9, (%r13) nop and %rbp, %rbp lea addresses_D_ht+0x1eb42, %r8 nop nop nop nop add %r15, %r15 mov (%r8), %r12d and %r9, %r9 lea addresses_A_ht+0xbb42, %r15 nop cmp %r9, %r9 mov (%r15), %r8w nop nop nop xor $54204, %r13 pop %rbp pop %r9 pop %r8 pop %r15 pop %r14 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %r8 push %r9 push %rax push %rbx // Load lea addresses_D+0xdc2, %rbx clflush (%rbx) nop nop add $10569, %r9 movups (%rbx), %xmm7 vpextrq $1, %xmm7, %r11 nop nop nop nop and %r9, %r9 // Store lea addresses_WC+0x1cc42, %rbx nop add %r9, %r9 movb $0x51, (%rbx) add $61905, %rax // Store mov $0x105bd00000000c02, %r8 nop nop nop nop inc %r12 movl $0x51525354, (%r8) nop xor $4388, %r11 // Load lea addresses_WT+0xbcc2, %r12 nop add $49876, %r14 movb (%r12), %bl nop nop nop nop nop sub $41189, %rax // Load lea addresses_D+0x2fc2, %rax nop nop nop dec %r11 mov (%rax), %r14d nop and $62109, %r12 // Store mov $0x5c88500000000442, %rbx nop nop nop cmp %rax, %rax mov $0x5152535455565758, %r12 movq %r12, (%rbx) nop add %r11, %r11 // Store mov $0xd82, %r11 inc %r8 movl $0x51525354, (%r11) sub %r14, %r14 // Store mov $0x35783b0000000042, %r9 nop nop sub %r8, %r8 movb $0x51, (%r9) nop nop nop add $28770, %r14 // Store mov $0x340490000000a42, %r9 nop nop nop nop xor %rax, %rax movb $0x51, (%r9) nop nop nop nop nop add $32312, %r8 // Store lea addresses_RW+0x1a442, %r14 nop nop nop nop sub $23085, %r9 movl $0x51525354, (%r14) nop nop nop nop nop add $26627, %rbx // Faulty Load lea addresses_RW+0x1a442, %rax nop inc %r9 movb (%rax), %r14b lea oracles, %r11 and $0xff, %r14 shlq $12, %r14 mov (%r11,%r14,1), %r14 pop %rbx pop %rax pop %r9 pop %r8 pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_RW', 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_D', 'congruent': 7}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC', 'congruent': 9}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_NC', 'congruent': 5}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WT', 'congruent': 7}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_D', 'congruent': 7}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_NC', 'congruent': 11}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_P', 'congruent': 6}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_NC', 'congruent': 10}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_NC', 'congruent': 9}, 'OP': 'STOR'} {'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_RW', 'congruent': 0}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_RW', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 8, 'type': 'addresses_WT_ht', 'congruent': 5}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_D_ht', 'congruent': 8}} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A_ht', 'congruent': 3}} {'54': 21829} 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 */
32.91866
2,999
0.644913
323a9c3abb32c799c60c5800b0f2316dc4f9b79a
811
asm
Assembly
programs/oeis/263/A263919.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/263/A263919.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/263/A263919.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A263919: Triangle read by rows giving successive states of cellular automaton generated by "Rule 163" initiated with a single ON (black) cell. ; 1,1,0,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0 mov $1,1 mov $2,$0 trn $0,2 lpb $2,1 lpb $0,1 add $1,2 trn $0,$1 sub $2,1 lpe lpb $1,1 trn $1,4 lpe add $1,$2 add $0,$1 trn $2,1 lpe
40.55
501
0.541307
506557e4ae96826aa78d421b7ab24910003b135d
8,086
asm
Assembly
asm/Alphabetizer.asm
hixio-mh/hrm-cpu
e119e1952807aa3a299b61af3e5607497ecfac92
[ "MIT" ]
24
2015-10-22T00:12:30.000Z
2022-02-21T22:23:39.000Z
asm/Alphabetizer.asm
hixio-mh/hrm-cpu
e119e1952807aa3a299b61af3e5607497ecfac92
[ "MIT" ]
27
2015-10-21T04:21:10.000Z
2015-11-05T00:55:12.000Z
asm/Alphabetizer.asm
hixio-mh/hrm-cpu
e119e1952807aa3a299b61af3e5607497ecfac92
[ "MIT" ]
null
null
null
-- HUMAN RESOURCE MACHINE PROGRAM -- COPYFROM 23 COPYTO 21 COPYTO 22 BUMPUP 22 BUMPUP 22 COMMENT 0 a: b: INBOX COPYTO [21] COPYTO 20 BUMPUP 21 COPYFROM 20 JUMPZ c JUMP b c: COMMENT 1 BUMPDN 22 JUMPZ d JUMP a d: COMMENT 2 COMMENT 3 COPYFROM 23 COPYTO 21 COMMENT 4 e: COPYFROM [21] JUMPZ f BUMPUP 21 JUMP e f: COMMENT 5 COPYFROM 21 COPYTO 19 BUMPUP 19 COMMENT 6 COPYFROM 23 COPYTO 21 COMMENT 7 g: COPYFROM [21] JUMPZ i COPYTO 17 COPYFROM 21 ADD 19 COPYTO 16 COPYFROM [16] JUMPZ k COPYTO 18 SUB 17 JUMPN j COPYFROM 17 SUB 18 JUMPN h BUMPUP 21 JUMP g h: COMMENT 9 i: COPYFROM 23 JUMP l j: COMMENT 8 k: COPYFROM 19 l: COPYTO 16 COMMENT 10 m: COPYFROM [16] JUMPZ n OUTBOX BUMPUP 16 JUMP m n: DEFINE COMMENT 0 eJyrZmBgeCCVoGkkclTntoC3YQL/bJsE/sm+MwUfRUwUKU07LHm0UF/xeRGTmn2ujcbODKByhhX6e21X 6L92P2ow2feWSV0oj1VMCIttgHeyrZmlmw2HfraVvYahxR/VMLM/qjImCZogPaV+l6oSvGJCFnnyeC7y zDWq9W7SmuWToBnh+0f1it8tlfUBsupnAo/qdAV9NusKcnbKDVzhGhDw2v2nz0k3kH6f2OlKT+M/mzEl RljZJFdZi6eaWU5O22CyIf2PanNOTIhjbkJec87RQvZsjhKTNI4SkB7nls9ms9r1vCZ11YVq96pFp/a7 x8yf6B6zZ9KjCJD89Cmv3funHwz3ncESlTVzfpjGrADvkzPtNUBy31fnGlWv+my2YEWqs+OKAO//KySD ZFYdDL+0tiuOZfP7xIYt7xP/bHWPid5WFxq9bYvf/S2KjpobL5neWtWkBdKfcGC2jfWhzFjrQ5N95Q5+ NrtyxNvQ4UyuEUhu560uyTk3pyv9vhlhNeWOdbDCjdfu7VeBbrkkGWRw6WzCySuyOczX7XNtb/7J2nlr enr5bcHkKXfqQkF6l77VMtB8k2t06vUlU803bS52H74H6H1zj+n9ditT8X1C3qnXsjlrX93K9HtVmgZR 7214/z2HfvCXCCuGUTAKsAAAB3jLcg; DEFINE COMMENT 1 eJyLYWBgaOUVTE7gL03jFfuTxSr5J0tK1ijlhmxMiJLUa3d/UWcnZ757dsd5Xrtz8rBEZfCcTXjCuzND VDii/rRYaoeULG8f0AgGE23RWhNtjpIdmrcyIzWtgz9p63np6L12VzHk8YwzvuZvafooYoIFRwlIrbVP oU+Cl57XeZcA7+uOjyKuO66J3+Rsn8vpzlFyxzu3/KdPV9xPnw0mtd63VBi9zkqD9KzI+h6wNy8ktbjo T9aE4j9Zp0pDUpMrDobfr3wU8aV2evr5+udF3o1HC9WaQ1JbmzNj1ZoVHUH6Hk645t80ITM2dtKtzKrJ 9rkXpx0tfDZrSQHTnOnpiXPcY1xnWwe/m77C9eK0VOebk9tcYie9dp8/sdAHpJd9WZsL+7Jr/o+WCyYv WBGSGrfymv+tVc5OYWvu2fFsmG0DUhNw7LV7xOE2l0X7U53P7zrptmnnFr9NO98n6u2+lZmxNyFP7mBC 3s9Df7LEjlzz3364S5JhFIyCQQYAmMqZXQ; DEFINE COMMENT 2 eJxLZWBgaFO5lamvuDNDSep94jIJwWReMfvcDyKfqz+IrOjKEdsy2V6aZb66yvQ1LqrT1wCVM+jo3Wvu 1uPte2RYN6va5OCcMLOYmSLmkydtNcst/26qVfrI8HmRjl5CHkjtE4/n2zPcb6374vS5usLxUYSgS13o E4+60DveatHbfQWTI3z7KxZ5RtS/cTWrA6mXijibIBS9pEA9fkMlU+Klqrqk/opfyUsKdqQcDC9L3Zmh k/m651Vm1+K8jJ1rZyfbbwLpMZh+qWrPpP4Kjz7RWu1ehlbt3tc9R/qtZ/ybeHCO8DT3hQbT3Rdyzzw4 h2kOb1/iHIZWpjkJed+mbDAB6bVcfbRw78r+iv8rqhoWrHBu/7+icOLeldemGK6TnL52/Y+pHRsDJjzf eLL7+ca9TZobzepurYL4y3vPlsmr9rR1LtrflC925Fbmx6OyOR4nc8vnnwmYAJK3vXmp6tZT0dq1ry5V nXqdWy7yIiHv0aOdGRvvTk+/dntnxs5bsjkHr5vVJV2XnD7nJst8idvuC4Pudi3meNi1mGEUjAI6AgCm trv7; DEFINE COMMENT 3 eJwLZmBgiJExs9QSv2RqJXjJdBHfbJtW3jYXTh73mAyeS1VPeHn7woVurQMqY9jEsaJrm5Bz+2FJ53YQ P1JTqzRS06xug47aAhA/UW2yL4j+brpl8nfTz9XF5s+L1louKThldbRQ0a6qIdqhcOIuh/mzQWqWByfk 8QXK5vz0kc25452QJ+ftXbbfK7VDzpu3L8K3btYk/8xF6wO6Fr8MqpvFFlI48UgIQ+uRkD9ZfIGiFmC3 1CXkTa1tyq+o8S6rqGnrFKzn7XNu4e3b33qy27r9XvOs9udFCa07Mxa1lKa1NpemrWq8lendmJAH0vts VuHEommCyVum1oVumXrJtGiat2H/dC2DxDlaBrPn5RqB1DycwFFyd65WKYituIW37/069xjDddf8DdfN tpmwTtSCZ0Ou0Z+tWgYg+biVRwsPbbbPZRgFo2AIAgCQSn9K; DEFINE COMMENT 4 eJwzYGBgkBW4Z3db4H3iZeEVXetE588GCjH0Ke7M0Fdsyu9TvFTVpuLcHqn5ukdH73WPp75zO7tBbrmn /q1Mft2uOHGt+WGzNepC69TrQttU1KIzlXdmgPQr2j2K6LDuitO0fp/YYX200M7+UtUqN9HaRZ655fu9 nhfVep9NWOT5KOKN6xa/646FPpKOdaEgfdMiZTdKRQiumBcmOf1BqGJbY+j3AKHoAG+uOMmgtnj3mLb4 6elfI58XzQs7WugRDLFrFIyCUUA+AAA+jUqA; DEFINE COMMENT 5 eJxzZGBgcFEt9PFR0vOaJhfg/Vd6i98L8YPhOWJr4v1F7XP9Ra9NAbKXLJN4vh2olKGVd0WXusrrHhBb R+91z1nd+bM99TMXqRi+XxZnbLRSxNxopZ9l1+JTVgfnaFrHzDxltaLL0CKi3tJUtHavsVndI8OqBk99 53aQ/gz3S1UZ7iu6nD2tZ1j7uC+84rdmiXLo+2V/wzIXTYvU698cpVUKUjc5zX3hhvSDc1ZkKbap5Mxu vJVf1SBSNLsxu7Stc2n55EkNlWuWgNSl9ovWinV+rk5oZWhd1BIwYVGL5PTatjVLxDpDVuX2TF/TNGHN kvkTWebvmWQ9o2ry656qyZ+rU/vnhzGMglEwggEA8WFsAg; DEFINE COMMENT 6 eJxLZWBgSFSzDo6RsQ5ulJof5i7RFZcjJpuTI6ZVeloson6ZxIquB1KTJ02Ts57xVCVm5mTta1P+Gzm3 7zXe2wTUymBpOj2dx+pSVbLt7MYKx71Ngi6Xqs67cJQUuBwMN3PS82qwC/Bea/k9wNAiJkTEXC16q1lp GkgfX+DzotzANfFdQXWhyqGpzn/DqqylIiKszCMjrISi99q+jWlzUY/f4ueS8CjiV/JJt09pzk5nM9pc VmTpef3PDUkFmbGrum7Wruo18RU1k33Nal+7b6pLdVZrdnZibD3p9rNdMqi0c038lU773IRWjpJVjRwl 12v+ZIH0BS6KCXGd/T1gy9TvAd+mxISETl0T3z/9VqbGrKZ8pjlLCn7NW1IweaFsTt5io5TuJWrR3Usk gz4tNLOMnH9U58CcBM2qyQmaIHP81nOUvF9nlOK33tnp1IZ7dhXbP5sJ7vpsBpJ7dvVP1pnjf7ImHS1N izjMEvXz0GRf46NV1tonPpt5nPxstufsbBuL8ytcLc5v8bt5TjJo/plHEdonBJP5jgsmM4yCUUBHAAAS O6wz; DEFINE COMMENT 7 eJwzZ2BgYOQ/6cbIzxJVI1A4sUbg6DagEEOn+MluJanMRX+lS1d/lbPfpK5ydNsBtSVbZ2uUro7UdF/4 S2PL5ES11A4u5b1NlbL3mu2lndvdJSZPAuk9aiBa+8jwZLeMyfzZW83OLV1rOX0Ni+2f9Zuc7Tfpucpu bPUIWbXfS22BnLdiW6uHaK2ea3/FXPv+ig7rqgYeK8W29xa8fe8ttkwGmdUY+rlaKuLaTRDbPsy7bHOU fW5h9K3MxQm3MuuSmvJtkrVKfyVXNfxKvjblQOLBOerxLPOnRT6eqxx6bQrDKBgFo4AgAAAh7FlL; DEFINE COMMENT 8 eJxLYmBgaJR6FGEvvaQAyGSYJ33NP0YmwLtSlseTS/m1O0hMSUo254SyaO0BtdmNd9VnN17VSu2YrD15 0lUtlvny6ueWqqucWxoi774QpHaCRUiqm82frArHpvxe1yUFah6yOYs8jVIWeT6KeOJhHXzc/Zp/gUuh j5vNZF8eK+vgS+bvE0XMI+onWKzo6rCePKnX1XoGyByf2LrQygjrYOXQzNjUkJDU1JB7zcqhK7r+hk2e VBi9ZTJITWC6UcrktFuZk9O0SvkzIup1Mvc2OeY6t18qcm73K1Fs0yyb3Zhc0V9xqEI2p6PsbML74szY 7wXuMTL5mbHs2SGpnlm3MkHmCNaXpuk1RNTrNXiXcTatiU9ojQnZ3nHN/2NXXShfj3uMR19TPlv/52qQ WpXlXXGBizJjd8w/m1A390/W3bmfqwMX3WtWWe7cvmAFQ2v1KrO6GaufF31fHZL6fbWiY/WqJq29K2XV /69I0FywItdowQqWqLiVRilb18xunLCurfP5xsmTGrZITmcYBaNggAAAH5SgVg; DEFINE COMMENT 9 eJzzZmBg2Go22yZQZ69tpGabi4uqdfBbRftcfcXccn3FLZN9lG6tAyphSJFUbONSVmybrZHacdRArx8k pmi3omuufdfi644+u0H8aAfZHBC9yHPLZEavzEX7vQRXyHnXzZrlw9tX6qfYFhBQ1dAYeqkKpMYkLdV5 R8pk39nJ7jE2yc7tv5InT9qQXrr6VeaSrSo5uXvCCjfsA6n7lRxw9WrqtZtxeT9uiRRNvv6+eMX598X3 Tnwv6N+7Istn96e0pi3iqSGrIlNY5kemLCkQT30UwZ9RF5qW/ShCJp+jJKywrTOsULENZNaqxhWu5+vn h32p1SoNrstcdL7+z3q15s8HIjqcz3T1pp490q90ev7EvcerJn8+AFLfUJm5qKImc5Fzy+O5k7okpzOM glEwDAEALHN+Wg; DEFINE COMMENT 10 eJzTY2Bg+Ct9NmGedFP+X+nc8krZqoY+xZPdvzR4+z5pn+zm123rPKvL0HpW93lRoM709B2aatHy6pJB T1W2+O2WuebPKhkTAjSCwc+yK26t5a1MFtvZjfftUjsqHE92T3U62V3gktrh7VbVkOGeW37cfXp6q4dW qZw3b98sH8np233rZl3xq5sF0s8VF6KwOtbZKTNOLdolYUnBgcQNlVdTGVrzMlI7HuWkdoDU3IiY7Muf Uehzqei1O8MoGAWjgCoAAL9PSOM; DEFINE LABEL 16 eJxTYGBgKBE2q5so0rQFyGQ4LcZw6rDkyQvzpE9eKFTYe1xf8fMBkHiO2JKtp8VmH+sUVzoN4v8Q/B4A osW1+ivydHdmqBieTdhrvCZ+q1lI6gSLhDxN69c9HdY712ZbNW25ZO6z+5bJ3uN7je+d+GN/8sJUp5MX Njm3nRN0gZg1CkbBKBg4AACGCzVc; DEFINE LABEL 17 eJyTYmBguCz8KOKFeIB3iiSP5wOpVGcpWQaHzfLOTpnKhT42GlqlkZoBE3Zo7j0OVMrgo/S6x1xuRZe7 xIqu2wIBExbxzZ/9hHfNEme+0tW3Bew38Yot2XpDdsnWPsXEzQfUpq+J1Hw8N1KzbhbDKBgFo2BQAgCt tie8; DEFINE LABEL 18 eJwTZGBg0BLfYKIlHlGfIrlzLZDLcFjyUtU86f6K2RobKq9qKbZN1i6caKLNMj9S8896G40lWw+ocezk UtbaFSPTtMVIxGglwygYBaNgyAIAeigX3w; DEFINE LABEL 19 eJwLZ2BgYOQ/GP6E92D4Ku418b1cf7J6uZ4XeXNvqFTjnd04U9C5nVdMsU1L/F5zimR/RYrkrUx/0ZiQ mYIn3RL4eTyd+Qp9gEYwmGh/rp6t8T4xUe2eXaLadKU69RCFs7ohCiC5xaon3Ww09LyOGkz2BfHv2+WW 37ezDla0U3RssDsrHe1wUOi6Ywz/KjcrPkavR8IgNdlWMSGr3GJCQOx5YRH16vER9XVJGyrvJnmX3U2S zZFPCklVjz8Yrhza5nIkhMHhQWiVtVSEqIVP7AYTkJ607Gv+2aXX/N3KC32SK1Kdl5Z/Nusou2R6qjTX yLBYy2BGAYf+3jxvw6PZEVbdmSfdzmYcDH+VeTbhf65WqWXBhspTpRH1DZVVDVNrzepA5rU2d0kebxKU O97UZ9zafM+utk0tenuHUYpHX2maw0TB5NCpatEgdasazSwjOkQtPPq8DRlGwSgYAgAAZXN9EQ; DEFINE LABEL 20 eJzTZmBg+CBytJCRf0lBL1dEvSDn5EkFnF2Lj/P8WX9bgGPnOtEN+xqlPh/oU/x8AKiUIVIztUNca8vk PN2uxZ7655YuMDq31NBi8qT3Frx97y1mN7rZPJ573y5kFUjtfq9LVQlekyfN8jFa+dNnzZJZPnubxPw+ Vy8Pfl60O7wpf3FCQh5I3ae0o4Wf0vT6A9OtZ5zN6Fp8NmN2Y3dmbvmKrKOF3wtK09zKu+IkazJjGUbB KBgFVAcAF5JMYg; DEFINE LABEL 21 eJzjYmBg2Mdf6CMroFVqJTi7sUQ4YMJpsYNzlKQyF7WpZC4CSjOs4mYRZRgFo2AUDEsAAC0vCzc; DEFINE LABEL 22 eJxzY2BgKODca3uesyvuDZd97iI+53YjEdFaXrGmfC3xzNgbshsqQ+TN6k4o32terGpWd0Att/yu+pr4 u+orXIFaGfYaX/Pfa7wzo9rEPve76ZKCtZYcJcm2HCXRDksKzJx2Zpg5zQ+rcNzit8uh0KfBjsdzq9lr 973GAd4yJt8DQPqtfb4HWPvcytzuu6FSzG9nxkf/zFjtoIPh88LqQm9ETPYFqXlfzBLVnHMwfEP6o4jJ aWcTJqeVpm1It8/VyVxSsCCXo+R7wfOiCcX2uX4lOzN4StfE85TqefmV3LP7XjBdCaRfrk3RUa1Z0fF8 /QrXL7WFPma188Om1qpF9zYYpVi3J+RFdHiXRXSY1Vm3721KaGVoFaxXbGMYBaNghAAA/QNubw;
38.688995
80
0.886223
508e2418c64d11ef5b99db372f772f38b25d21a9
2,835
asm
Assembly
248b/noise/noise.asm
42Bastian/lynx_hacking
a40edd223a4759d64f20a940ef5eb826a0fdd02d
[ "Apache-2.0" ]
12
2020-07-05T16:47:54.000Z
2022-02-12T21:21:16.000Z
248b/noise/noise.asm
42Bastian/lynx_hacking
a40edd223a4759d64f20a940ef5eb826a0fdd02d
[ "Apache-2.0" ]
null
null
null
248b/noise/noise.asm
42Bastian/lynx_hacking
a40edd223a4759d64f20a940ef5eb826a0fdd02d
[ "Apache-2.0" ]
1
2021-01-18T06:47:25.000Z
2021-01-18T06:47:25.000Z
*************** * Noise * 5 byte free. **************** include <includes/hardware.inc> ;;; ROM sets this address screen0 equ $2000 run $200 IFND LNX ;; Setup needed if loaded via BLL/Handy lda #8 sta $fff9 sei lda #$20 stz $fd94 sta $fd95 stz $fd50 ldy #2 stz 0 lda #$e sta $fdae ldx #15 .init txa sta $fda0,x stz $fdb0,x dex bne .init ldy #8192/256 .clr stz $2000,x inx bne .clr inc .clr+2 dey bne .clr stz 4 lda #$fa sta 4+1 stz $fd20 ENDIF Start:: ldy #9 .mloop ldx SUZY_addr-1,y lda SUZY_data-1,y sta $fc00,x dey bne .mloop ldx #16 .cloop stz $fda0-1,x stz $fdb0-1,x dex bne .cloop //-> stz $fd20 lda #$c0 sta $fd21 lda #$18|6 sta $fd25 //-> ldx #0 //-> ldy #0 again: lda #<plot_SCB sta $fc10 lda #>plot_SCB sta $fc11 lda #1 STA SPRGO STZ SDONEACK .wait: STZ CPUSLEEP ;; Small sprite, so SUZE will finish quickly //-> bit SPRSYS //-> bne .wait lda $fd23 ;; LSFR Random Generator ;-) pha and #8 beq next inc_x: dec plot_x beq mirror_x lda plot_x cmp #159 bne next mirror_x: lda inc_x eor #$20 sta inc_x next: pla lsr bcc nexty inc_y: inc plot_y beq mirror_y lda plot_y cmp #102 bne nexty mirror_y: lda inc_y ;; self-mode code: INC ZP <=> DEC ZP eor #$20 sta inc_y inc plot_color nexty: sty plot_color dey bne again dex beq cycle bra again cycle:: lda #<noise_SCB sta $fc10 lda #>noise_SCB sta $fc11 lda #1 STA SPRGO STZ SDONEACK .waits: STZ CPUSLEEP ldx #$e ;; cycle only 15 colors cycle_loop: .wait ldy $fd0a bne .wait stz $fda1,x stz $fdb1,x dex bpl .nowrap ldx #$e inc $fd20 .nowrap dec $fda1,x dec $fdb1,x bra cycle_loop draw_spr: ;;;------------------------------ SUZY_addr db $09,$08,$04,$06,$28,$2a,$83,$92,$90 SUZY_data db $20,$00,$00,$00,$7f,$7f,$f3,$24,$01 noise_SCB: dc.b SPRCTL0_NORMAL|SPRCTL0_2_COL dc.b SPRCTL1_LITERAL| SPRCTL1_DEPTH_SIZE_RELOAD ;1 dc.b 0 ;2 dc.w 0 ;3 dc.w noise_data ;5 dc.w 80-40 ;7 dc.w 51-12 ;9 dc.w $400 ;11 dc.w $400 ;13 //-> dc.b $0f ;; save one byte, use pen 4 noise_data: dc.b 4,%10010011,%00111001,%10111000 dc.b 4,%11010100,%10010010,%00100000 dc.b 4,%10110100,%10010001,%00110000 dc.b 4,%10010100,%10010000,%10100000 dc.b 4,%10010011,%00111011,%00111000 dc.b 0 plot_SCB: dc.b SPRCTL0_NORMAL|1|SPRCTL0_16_COL dc.b SPRCTL1_LITERAL| SPRCTL1_DEPTH_SIZE_RELOAD ;1 dc.b 0 ;2 dc.w 0 ;3 dc.w plot_data ;5 plot_x dc.w 2 ;7 plot_y dc.w 2 ;9 dc.w $100 ;11 dc.w $100 ;13 plot_color: ;15 dc.b $0f plot_data: dc.b 2,$10 IFND LNX ;; Lynx rom clears to zero after boot loader! dc.b 0 ENDIF End: size set End-Start free set 249-size IF free > 0 REPT free dc.b 0 ENDR ENDIF echo "Size:%dsize Free:%dfree"
13.436019
51
0.614815
32600099d5a97b529a2391ae51662d3a9b73bf14
873
asm
Assembly
tests/src/TestCounter.asm
meghanto/tiny_vm
da19e9f4bff3b48349bf13f8dc725d387d01e1f5
[ "CC-BY-3.0" ]
2
2022-01-12T03:16:07.000Z
2022-01-15T07:52:48.000Z
tests/src/TestCounter.asm
meghanto/tiny_vm
da19e9f4bff3b48349bf13f8dc725d387d01e1f5
[ "CC-BY-3.0" ]
2
2022-01-25T20:52:54.000Z
2022-01-31T02:46:45.000Z
tests/src/TestCounter.asm
meghanto/tiny_vm
da19e9f4bff3b48349bf13f8dc725d387d01e1f5
[ "CC-BY-3.0" ]
10
2022-01-04T04:36:07.000Z
2022-01-15T00:55:27.000Z
# Simple test for the Counter class .class TestCounter:Obj .method $constructor .local counter enter const 5 new Counter call Counter:$constructor store counter const "Expecting '5' on next line\n" call String:print pop load counter call Counter:print pop # Increment should bump it to 6 load counter call Counter:inc pop const "\nExpecting '6' on next line\n" call String:print pop load counter call Counter:print pop const "Counter is seven?\n" call String:print pop const 7 load counter call Counter:check call Obj:print pop const "\nCounter is six?\n" call String:print pop const 6 load counter call Counter:check call Obj:print pop const "\nEnd of test\n" call String:print pop load $ return 0
16.471698
42
0.627721
eeee4c90169cc9b10957937641ed11a888b514f9
530
asm
Assembly
programs/oeis/267/A267489.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/267/A267489.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/267/A267489.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A267489: a(n) = n^2 - 4*floor(n^2/6). ; 0,1,4,5,8,9,12,17,24,29,36,41,48,57,68,77,88,97,108,121,136,149,164,177,192,209,228,245,264,281,300,321,344,365,388,409,432,457,484,509,536,561,588,617,648,677,708,737,768,801,836,869,904,937,972,1009,1048,1085,1124,1161,1200,1241,1284,1325,1368,1409,1452,1497,1544,1589,1636,1681,1728,1777,1828,1877,1928,1977,2028,2081,2136,2189,2244,2297,2352,2409,2468,2525,2584,2641,2700,2761,2824,2885,2948,3009,3072,3137,3204,3269 pow $0,2 mov $1,$0 div $1,6 mov $2,2 mul $2,$1 mul $2,2 sub $0,$2
48.181818
422
0.709434
36ba8bdda3f77f9ab369e1918eb4a5eb3b755f2d
1,100
asm
Assembly
MASM_Practice/39_IndirectAddressing.asm
TuringGu/RELearning
a44813d6ae0416631bf5b345a7606cdf3d1a3ffe
[ "MIT" ]
null
null
null
MASM_Practice/39_IndirectAddressing.asm
TuringGu/RELearning
a44813d6ae0416631bf5b345a7606cdf3d1a3ffe
[ "MIT" ]
null
null
null
MASM_Practice/39_IndirectAddressing.asm
TuringGu/RELearning
a44813d6ae0416631bf5b345a7606cdf3d1a3ffe
[ "MIT" ]
null
null
null
.586 .MODEL flat,stdcall option casemap:none include windows.inc include user32.inc include kernel32.inc include msvcrt.inc includelib user32.lib includelib kernel32.lib includelib msvcrt.lib ;typedef mybyte typedef ptr byte .data var01 mybyte 2 arrNum01 DWORD 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 arrNum02 byte 0,1,2,3,4,5 arrNum03 DWORD 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 .code main PROC ;*arrNum01[i++] mov eax,offset arrNum01 inc DWORD ptr [eax] mov eax,[eax] ;Initial eax, ebx xor eax,eax xor ebx,ebx ;Iterate through array mov eax,offset arrNum02 mov bl,[eax] inc eax mov bl,[eax] inc eax mov bl,[eax] inc eax mov bl,[eax] inc eax mov bl,[eax] mov eax,offset arrNum02 mov bl,[eax + 1] mov bl,[eax + 2] ;esi: scale factor mov esi,4 ;DWORD == 4 * Byte == 8 * Word == 32 * Bit mov eax,arrNum03[0] mov eax,arrNum03[esi] mov eax,arrNum03[esi * 2] ;mov eax,arrNum03[esi * 3] ;can not be this, error addressing mode mov eax,arrNum03[esi * 2 + esi] mov eax,arrNum03[esi * 4 + esi] ;Exit push 0 call ExitProcess add esp,4 main ENDP END main
16.41791
70
0.691818
a774258ae516238c43ebe612e9143d4476cc2f97
5,277
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48_notsx.log_21829_1391.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48_notsx.log_21829_1391.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48_notsx.log_21829_1391.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x1de00, %rsi lea addresses_UC_ht+0x3016, %rdi cmp $28858, %r12 mov $86, %rcx rep movsq nop nop nop nop inc %rdx lea addresses_WC_ht+0x16440, %r10 and $10683, %r12 vmovups (%r10), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $0, %xmm2, %rsi nop nop nop cmp %rdi, %rdi lea addresses_normal_ht+0x11c40, %rdi clflush (%rdi) cmp %rbp, %rbp movups (%rdi), %xmm7 vpextrq $0, %xmm7, %r10 nop nop nop add %rsi, %rsi lea addresses_WT_ht+0x6520, %rsi lea addresses_WT_ht+0x1d940, %rdi nop nop nop nop nop sub $26328, %r13 mov $43, %rcx rep movsl nop nop xor %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %r8 push %rax push %rdi push %rdx push %rsi // Store lea addresses_WC+0x10db0, %rsi cmp $15972, %r8 mov $0x5152535455565758, %rax movq %rax, %xmm1 movups %xmm1, (%rsi) nop and %rsi, %rsi // Faulty Load mov $0x69fb20000000c40, %r8 nop nop inc %rdi movups (%r8), %xmm4 vpextrq $0, %xmm4, %rax lea oracles, %r8 and $0xff, %rax shlq $12, %rax mov (%r8,%rax,1), %rax pop %rsi pop %rdx pop %rdi pop %rax pop %r8 pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_NC', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC', 'congruent': 3}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_NC', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_WC_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WC_ht', 'congruent': 8}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_normal_ht', 'congruent': 9}} {'dst': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_WT_ht'}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
45.491379
2,999
0.660982
96bd34fa605221c23353f2cc56b414e1d6fec614
474
asm
Assembly
oeis/019/A019782.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/019/A019782.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/019/A019782.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A019782: Decimal expansion of sqrt(e)/9. ; Submitted by Jamie Morken(s2) ; 1,8,3,1,9,1,2,5,2,3,0,0,0,1,4,2,3,8,5,3,8,7,3,8,9,7,6,4,2,3,7,9,5,9,5,2,4,0,5,9,7,5,1,2,2,3,0,1,1,2,7,5,5,6,8,4,1,6,7,5,4,7,9,0,7,1,1,8,4,5,5,7,9,1,0,4,6,8,4,0,0,9,5,9,1,9,7,3,9,1,1,1,7,3,7,4,0,7,1,4 add $0,1 mov $2,1 mov $3,$0 mul $3,5 lpb $3 mul $2,$3 add $1,$2 div $1,$0 mul $2,2 div $2,$0 sub $3,1 lpe mov $4,10 pow $4,$0 mul $4,2 div $2,$4 mul $2,9 div $1,$2 mod $1,10 mov $0,$1
18.96
201
0.535865
f8c2cf7816fd1bc659787a693af45cbc0703d1b8
361
asm
Assembly
oeis/129/A129011.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/129/A129011.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/129/A129011.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A129011: a(n) = floor(n^(4/3)). ; Submitted by Jamie Morken(s2.) ; 0,1,2,4,6,8,10,13,16,18,21,24,27,30,33,36,40,43,47,50,54,57,61,65,69,73,77,81,85,89,93,97,101,105,110,114,118,123,127,132,136,141,145,150,155,160,164,169,174,179,184,189,194,199,204,209,214,219,224,229,234 pow $0,4 lpb $0 sub $0,1 add $2,6 add $3,$2 trn $0,$3 lpe mov $0,$2 div $0,6
25.785714
207
0.631579
dbf3792bf79c73b8136fc9c92481a91e9c53c92f
1,121
asm
Assembly
programs/oeis/189/A189749.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/189/A189749.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/189/A189749.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A189749: a(1)=5, a(2)=5, a(n)=5*a(n-1) + 5*a(n-2). ; 5,5,50,275,1625,9500,55625,325625,1906250,11159375,65328125,382437500,2238828125,13106328125,76725781250,449160546875,2629431640625,15392960937500,90111962890625,527524619140625,3088182910156250,18078537646484375,105833602783203125,619560702148437500,3626971524658203125,21232661134033203125,124298163293457031250,727654122137451171875,4259761427154541015625,24937077746459960937500,145984195868072509765625,854606368072662353515625,5002952819703674316406250,29287795938881683349609375,171453743792926788330078125,1003707698659042358398437500,5875807212259845733642578125,34397574554594440460205078125,201366908834271430969238281250,1178822416944329357147216796875,6900946628893003940582275390625,40398845229186666488647460937500,236498959290398352146148681640625,1384489022597925093173980712890625,8104939909441617226600646972656250,47447144660197711598873138427734375,277760422848196644127368927001953125 mul $0,2 mov $1,2 mov $2,2 lpb $0 sub $0,2 add $1,2 mov $3,$2 sub $2,1 add $2,$1 mov $1,$3 mul $2,5 lpe div $1,23 mul $1,45 add $1,5 mov $0,$1
56.05
908
0.858162
9e1208c8471ea2f0fb21e579c44614ca324166db
311
asm
Assembly
programs/oeis/047/A047535.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/047/A047535.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/047/A047535.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A047535: Numbers that are congruent to {4, 7} mod 8. ; 4,7,12,15,20,23,28,31,36,39,44,47,52,55,60,63,68,71,76,79,84,87,92,95,100,103,108,111,116,119,124,127,132,135,140,143,148,151,156,159,164,167,172,175,180,183,188,191,196,199,204,207,212,215,220,223,228,231 mov $1,$0 mod $0,2 mul $1,4 sub $1,$0 add $1,4
34.555556
207
0.678457
06a7174bde6444233a500dc878fca1cf2c3bc013
6,080
asm
Assembly
compiler/ti-cgt-arm_18.12.4.LTS/lib/src/fs_tou32.asm
JosiahCraw/TI-Arm-Docker
23c0f4caf1638512bf53241531c69289c4e82488
[ "MIT" ]
null
null
null
compiler/ti-cgt-arm_18.12.4.LTS/lib/src/fs_tou32.asm
JosiahCraw/TI-Arm-Docker
23c0f4caf1638512bf53241531c69289c4e82488
[ "MIT" ]
null
null
null
compiler/ti-cgt-arm_18.12.4.LTS/lib/src/fs_tou32.asm
JosiahCraw/TI-Arm-Docker
23c0f4caf1638512bf53241531c69289c4e82488
[ "MIT" ]
null
null
null
;****************************************************************************** ;* FS_TOU32.ASM - 32 BIT STATE - * ;* * ;* Copyright (c) 1996 Texas Instruments Incorporated * ;* http://www.ti.com/ * ;* * ;* Redistribution and use in source and binary forms, with or without * ;* modification, are permitted provided that the following conditions * ;* are met: * ;* * ;* Redistributions of source code must retain the above copyright * ;* notice, this list of conditions and the following disclaimer. * ;* * ;* Redistributions in binary form must reproduce the above copyright * ;* notice, this list of conditions and the following disclaimer in * ;* the documentation and/or other materials provided with the * ;* distribution. * ;* * ;* Neither the name of Texas Instruments Incorporated nor the names * ;* of its contributors may be used to endorse or promote products * ;* derived from this software without specific prior written * ;* permission. * ;* * ;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * ;* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * ;* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * ;* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * ;* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * ;* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * ;* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * ;* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * ;* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * ;* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * ;* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ;* * ;****************************************************************************** ;**************************************************************************** ;* FS_TOU - CONVERT AN IEEE 754 FORMAT SINGLE PRECISION FLOATING ;* POINT NUMBER TO A 32 BIT UNSIGNED INTEGER ;**************************************************************************** ;* ;* o INPUT OP IS IN r0 ;* o RESULT IS RETURNED IN r0 ;* ;* o SIGNALLING NOT-A-NUMBER (SNaN) AND QUIET NOT-A-NUMBER (QNaN) ;* ARE TREATED AS INFINITY ;* o OVERFLOW RETURNS 0xFFFFFFFF ;* o UNDERFLOW RETURNS ZERO (0x00000000) ;* o NEGATIVE VALUE RETURNS ZERO ;* o ROUNDING MODE: ROUND TO ZERO ;* ;**************************************************************************** ;* ;* +--------------------------------------------------------------+ ;* | SINGLE PRECISION FLOATING POINT FORMAT | ;* | | ;* | 31 30 23 22 0 | ;* | +-+--------+-----------------------+ | ;* | |S| E | M + | ;* | +-+--------+-----------------------+ | ;* | | ;* | <S> SIGN FIELD : 0 - POSITIVE VALUE | ;* | 1 - NEGATIVE VALUE | ;* | | ;* | <E> EXPONENT FIELD: 00 - ZERO IFF M == 0 | ;* | 01...FE - EXPONENT VALUE (127 BIAS) | ;* | FF - INFINITY | ;* | | ;* | <M> MANTISSA FIELD: FRACTIONAL MAGNITUDE WITH IMPLIED 1 | ;* +--------------------------------------------------------------+ ;* ;**************************************************************************** .arm .if __TI_EABI_ASSEMBLER ; ASSIGN EXTERNAL NAMES BASED ON .asg __aeabi_f2uiz, __TI_FS_TOU ; RTS BEING BUILT .asg __aeabi_f2iz, __TI_FS_TOI .else .clink .asg FS_TOU, __TI_FS_TOU .asg FS_TOI, __TI_FS_TOI .endif .if __TI_ARM9ABI_ASSEMBLER | __TI_EABI_ASSEMBLER .armfunc __TI_FS_TOU .endif e0 .set lr .global __TI_FS_TOU, __TI_FS_TOI __TI_FS_TOU: .asmfunc stack_usage(4) STMFD sp!, {lr} ; SAVE CONTEXT CMP r0, #0 ; CHECK FOR A NEGATIVE VALUE BPL pos BL __TI_FS_TOI ; CAST TO INT .if __TI_ARM7ABI_ASSEMBLER | __TI_ARM9ABI_ASSEMBLER | !__TI_TMS470_V4__ LDMFD sp!, {pc} ; .else LDMFD sp!, {lr} BX lr .endif pos: MOV e0, r0, LSL #1 ; PUT EXPONENT IN e0 MOV e0, e0, LSR #24 ; SUBS e0, e0, #0x7F ; CHECK FOR UNDERFLOW MOVCC r0, #0 ; IF UNDERFLOW, RETURN ZERO .if __TI_ARM7ABI_ASSEMBLER | __TI_ARM9ABI_ASSEMBLER | !__TI_TMS470_V4__ LDMCCFD sp!, {pc} ; .else LDMCCFD sp!, {lr} BXCC lr .endif RSBS e0, e0, #0x1F ; CHECK FOR OVERFLOW BCC ovfl ; IF OVERFLOW, RETURN 0xFFFFFFFF MOV r0, r0, LSL #8 ; PUT MANTISSA IN r0 ORR r0, r0, #0x80000000 ; SET IMPLIED ONE IN MANTISSA MOV r0, r0, LSR e0 ; COMPUTE THE INTEGER VALUE .if __TI_ARM7ABI_ASSEMBLER | __TI_ARM9ABI_ASSEMBLER | !__TI_TMS470_V4__ LDMFD sp!, {pc} ; .else LDMFD sp!, {lr} BX lr .endif ovfl: MOV r0, #0x0 ; IF OVERFLOW, RETURN 0xFFFFFFFF SUB r0, r0, #0x1 ; .if __TI_ARM7ABI_ASSEMBLER | __TI_ARM9ABI_ASSEMBLER | !__TI_TMS470_V4__ LDMFD sp!, {pc} ; .else LDMFD sp!, {lr} BX lr .endif .endasmfunc .end
42.222222
79
0.461842
0d4b07377c34b18690312a330ba4fabf725f39c4
1,935
asm
Assembly
2/3.asm
chenzhicun/SJTU-EI209-Computer-Organization-Lab
f9b0068cc4ee7b17aca9c3955e46f797eff56e07
[ "MIT" ]
4
2020-06-29T11:29:19.000Z
2021-06-21T15:12:46.000Z
2/3.asm
chenzhicun/SJTU-EI209-Computer-Organization-Lab
f9b0068cc4ee7b17aca9c3955e46f797eff56e07
[ "MIT" ]
null
null
null
2/3.asm
chenzhicun/SJTU-EI209-Computer-Organization-Lab
f9b0068cc4ee7b17aca9c3955e46f797eff56e07
[ "MIT" ]
null
null
null
;----------------------------------------------------------- ; ; Build this with the "Source" menu using ; "Build All" option ; ;----------------------------------------------------------- ; ; 实验二示例程序 ;----------------------------------------------------------- ; | ; | ; 功能:控制7段数码管的显示 | ; 编写:《嵌入式系统原理与实验》课程组 | ;----------------------------------------------------------- DOSSEG .MODEL SMALL ; 设定8086汇编程序使用Small model .8086 ; 设定采用8086汇编指令集 ;----------------------------------------------------------- ; 符号定义 | ;----------------------------------------------------------- ; ;----------------------------------------------------------- ; 定义数据段 | ;----------------------------------------------------------- .data ; 定义数据段; ; ;----------------------------------------------------------- ; 定义代码段 | ;----------------------------------------------------------- .code ; Code segment definition .startup ; 定义汇编程序执行入口点 ;----------------------------------------------------------- ;主程序部分,向扩展的存储器内放数据 | ;----------------------------------------------------------- MOV AX,8000H ;指定DS开始地址 MOV DS,AX MOV BX,0H MOV AL,0H MOV BYTE PTR [BX],0FFH ; 内存中写入0FFh L: MOV BYTE PTR [BX],AL ;将AL中的数据以字节为单位送到DS:BX所指字节单元 INC AL INC BX JNZ L WT: JMP WT ;----------------------------------------------------------- ; 定义堆栈段 | ;----------------------------------------------------------- .stack 100h ; 定义256字节容量的堆栈 END ;指示汇编程序结束编译
30.234375
60
0.196382
cbfb1efbb920539d6629dd8c906d584b6ed32e91
14,890
asm
Assembly
bahamut/source/menu-names.asm
higan-emu/bahamut-lagoon-translation-kit
6f08de5b92b597c0b9ecebd485cc975b99acfc13
[ "0BSD" ]
2
2021-08-15T04:10:10.000Z
2021-08-15T20:14:13.000Z
bahamut/source/menu-names.asm
higan-emu/bahamut-lagoon-translation-kit
6f08de5b92b597c0b9ecebd485cc975b99acfc13
[ "0BSD" ]
1
2022-02-16T02:46:39.000Z
2022-02-16T04:30:29.000Z
bahamut/source/menu-names.asm
higan-emu/bahamut-lagoon-translation-kit
6f08de5b92b597c0b9ecebd485cc975b99acfc13
[ "0BSD" ]
1
2021-12-25T11:34:57.000Z
2021-12-25T11:34:57.000Z
//modifications to the name entry screen namespace menu { seek(codeCursor) namespace decodeNameEntry { //called once when loading the name entry screen enqueue pc seek($eeda2c); jsl main; jmp $da5a dequeue pc //A => name index (0-9) //$7e2b00 => name table input //$7e9e00 <= name output //function must return with B set to #$7e: it is used by subsequent code main: { ldb #$7e //B set by original routine enter and #$00ff; mul(8); tax lda $2b00,x; sta base56.decode.input+0 lda $2b02,x; sta base56.decode.input+2 lda $2b04,x; sta base56.decode.input+4 lda $2b06,x; sta base56.decode.input+6 jsl base56.decode lda base56.decode.output+ 0; sta $9e00 lda base56.decode.output+ 2; sta $9e02 lda base56.decode.output+ 4; sta $9e04 lda base56.decode.output+ 6; sta $9e06 lda base56.decode.output+ 8; sta $9e08 lda base56.decode.output+10; sta $9e0a leave; rtl } } namespace encodeNameEntry { //called once when confirming a name and exiting the name entry screen enqueue pc seek($eedc21); jsl main; jmp $dc49 dequeue pc variable(2, index) //A => name index (0-9) //$7e9e00 => name input //$7e2b00 <= name table output main: { ldb #$7e //B set by original routine enter and #$00ff; sta index mul(8); tax lda $9e00; sta base56.encode.input+ 0 lda $9e02; sta base56.encode.input+ 2 lda $9e04; sta base56.encode.input+ 4 lda $9e06; sta base56.encode.input+ 6 lda $9e08; sta base56.encode.input+ 8 lda $9e0a; sta base56.encode.input+10 jsl base56.encode lda base56.encode.output+0; sta $2b00,x lda base56.encode.output+2; sta $2b02,x lda base56.encode.output+4; sta $2b04,x lda base56.encode.output+6; sta $2b06,x //pre-render the newly chosen name to the names cache lda index; jsl names.render leave; rtl } } namespace calculateNameLength { enqueue pc //------ //eedbf1 lda $cc ;load number of characters in name //eedbf3 sta $00 ;store as multiplicand //eedbf5 lda #$000c ;multiplier //eedbf8 jsr $2ae9 ;a = 12 * $cc //eedbfb clc //eedbfc adc #$003a ;add base offset //eedbff sta $0010d6 ;store cursor X position //------ seek($eedbf1); jsl main; jmp $dbfb seek($eedbfc); adc #$0041 //X cursor offset seek($eedc03); lda #$fffd //Y cursor offset seek($eeda76); lda #$0050 //X name offset dequeue pc //used to place the cursor on the name entry screen dynamically //$7e9e00 => name //A <= length of name in pixels function main { render.large.width($7e9e00) rtl } } namespace appendNameEntry { //called when attempting to add a character on the name entry screen. //limits maximum name lengths against both the large and small fonts. enqueue pc seek($eedb69); jsl main; jmp $db7d dequeue pc //$00 => character //$ca => name index (0-9) //$cc => name length //D => $0e80 //------ //eedb69 sep #$20 //eedb6b ldx $cc ;load name length //eedb6d lda $00 ;load character to append //eedb6f sta $7e9e00,x ;store character //eedb73 lda #$ff //eedb75 sta $7e9e01,x ;store terminal //eedb79 rep #$20 //eedb7b inc $cc ;increment name length //------ function main { variable(16, name) //copy of name + character to append variable( 2, limit) //8x8 width limit enter lda.w #60+1; sta limit //dragon name limit (7.5 tiles) + 1 (shadow) lda $ca; cmp.w #2; bcs + //test if this is a player name lda.w #52+1; sta limit; + //player name limit (6.5 tiles) + 1 (shadow) ldx #$0000; txy; append.string(name, $7e9e00) lda $00; ora #$ff00; sta name,x render.large.width(name); cmp.w #66+1; bcs + render.small.width(name); cmp.l limit; bcs + ldx $cc lda $00; ora #$ff00 sta $7e9e00,x inc $cc +;leave; rtl } } namespace nameEntry { enqueue pc seek($eedaa7); string.hook(draw) //"Finished" text seek($eedaa1); lda #$0128 //"Finished" position seek($eed985); dec; sta $1056 //X cursor offset (character map) seek($eed98f); sbc #$001d //Y cursor offset (character map) dequeue pc function draw { enter //use this as an anchor point to load "Space" into VRAM now //the "Space" tilemap data is set in names.characterMap lda tilemap.address //this will write the tilemap where "Finished" is jsl spaceIndicator.draw //this will place "Space" into VRAM sta tilemap.address //but this will overwrite it with "Finished" as desired ldy.w #strings.bpp4.finished lda #$0005; ldx #$0030; write.bpp4(lists.strings.bpp4) leave; rtl } } namespace spaceIndicator { //the original game parses the tilemap copy in RAM to find non-zero tiles. //when it finds one, it allows the cursor to be moved to the left of said tile. //this makes it exceedingly difficult to print a "Space" indicator for said character. enqueue pc seek($eed9c5); jsl ignore //lda $7ec400,x seek($eedb35); jsl transform //lda $7ec400,x dequeue pc function draw { enter ldy.w #strings.bpp2.space lda #$0003; ldx #$0030; write.bpp2(lists.strings.bpp2) leave; rtl } //this tricks the game into thinking the tiles immediately after "Space" are blank. //doing so prevents the cursor from moving on top of the subsequent tiles. function ignore { lda tilemap.location,x cpx #$0492; bcc + cpx #$0496; bcs + lda #$2000 +;rtl } //this tricks the game into thinking the first tile for "Space" is an actual space. //it's really our tiledata, but we need the game to insert a space into the name here. function transform { lda tilemap.location,x cpx #$0490; bne + lda #$20ef +;rtl } } namespace forceSinglePage { enqueue pc //the original game had three pages of characters: hiragana, katakana, and romaji. //only a single English character page is needed, so force the page to page zero. //------ //eed892 lda $c0 ;load current selected page //eed894 beq $d8a3 ;if page# = 0, go to $d8a3 //------ seek($eed894); db $80 //beq -> bra //this forces the "Finished" option to be the only selectable option //------ //eed7dc lda $c0 ;load current selected page //eed7de sta $00 ;store selected page //eed7e0 lda #$0030 ;length of each option in pixels //eed7e3 jsr $2a39 ;multiply A by $00 //eed7e6 clc //eed7e7 adc #$0034 ;base offset //eed7ea sta $001056 ;store X cursor position //eed7ee lda #$0014 ;Y cursor position //eed7f1 sta $001058 ;store Y cursor position //eed7f5 plp //eed7f6 rts //------ seek($eed7dc); { lda #$0003 //3 => "Finished" menu option sta $c0 //set current selected page to "Finished" lda #$00a4 //load cursor X offset sta $001056 //store value lda #$0013 //load cursor Y offset sta $001058 //store value plp; rts } //originally, the "Finished" option would disable the three character pages. //disable this so that characters can now be selected with "Finished" active. //------ //eed7c4 lda $c0 ;load current page //eed7c6 cmp #$0003 ;test if it is the "Finished" option //eed7c9 beq $d777 ;if so, do not allow the down key to be pressed //------ seek($eed7c9); nop #2 dequeue pc } namespace increaseNameLengthLimits { enqueue pc seek($eedb00); lda.w #11 //dragon name length limit (was 8) seek($eedb0c); lda.w #11 //player name length limit (was 6) dequeue pc } //note that the character map is technically encoded as LZ77 data. //but so long as we don't insert $1a or $1b pointer codes, we can just write out uncompressed data. function characterMap { enqueue pc seek($eed8a7); dl characterMap dequeue pc db $00 //first byte is always skipped by lz77 decompressor // 00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 0a, 0b, 0c, 0d, 0e, 0f dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //00 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //01 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //02 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //03 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //04 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //05 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //06 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //07 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //08 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //09 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //0a dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //0b dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$20b9,$2000,$20ba,$2000,$20bb,$2000,$20bc,$2000 //0c dw $20bd,$2000,$20be,$2000,$20bf,$2000,$20c0,$2000,$20c1,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //0d dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //0e dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //0f dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$20c2,$2000,$20c3,$2000,$20c4,$2000,$20c5,$2000 //10 dw $20c6,$2000,$20c7,$2000,$20c8,$2000,$20c9,$2000,$20ca,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //11 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //12 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //13 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$20cb,$2000,$20cc,$2000,$20cd,$2000,$20ce,$2000 //14 dw $20cf,$2000,$20d0,$2000,$20d1,$2000,$20d2,$2000,$20ae,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //15 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //16 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //17 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2074,$2000,$2075,$2000,$2076,$2000,$2077,$2000 //18 dw $2078,$2000,$2079,$2000,$207a,$2000,$207b,$2000,$207c,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //19 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //1a dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //1b dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$207d,$2000,$207e,$2000,$207f,$2000,$2080,$2000 //1c dw $2081,$2000,$2082,$2000,$2083,$2000,$2084,$2000,$2085,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //1d dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //1e dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //1f dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2086,$2000,$2087,$2000,$2088,$2000,$2089,$2000 //20 dw $208a,$2000,$208b,$2000,$208c,$2000,$208d,$2000,$208e,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //21 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //22 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //23 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2030,$2031,$2032,$2000,$2000,$2000,$2000,$2000 //24 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //25 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //26 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //27 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //28 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //29 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //2a dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //2b dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //2c dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //2d dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //2e dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //2f dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //30 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //31 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //32 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //33 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //34 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //35 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //36 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //37 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //38 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //39 dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //3a dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //3b dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //3c dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //3d dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //3e dw $2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000,$2000 //3f db $1a,$00,$01 //end of compressed block code } codeCursor = pc() }
44.315476
106
0.640027
6df87b5a0bfc588b0ecdbff00beb2e8352787490
200
asm
Assembly
src/drivers/ps2/ps2.asm
DreamPearl/FuzzyOS
e287bf139511b59abe9e2a0e7ce49444c6a5299e
[ "Apache-2.0" ]
10
2021-03-04T18:48:29.000Z
2022-03-10T19:07:54.000Z
src/drivers/ps2/ps2.asm
DreamPearl/FuzzyOS
e287bf139511b59abe9e2a0e7ce49444c6a5299e
[ "Apache-2.0" ]
7
2020-06-27T13:13:08.000Z
2021-10-17T17:09:40.000Z
src/drivers/ps2/ps2.asm
DreamPearl/FuzzyOS
e287bf139511b59abe9e2a0e7ce49444c6a5299e
[ "Apache-2.0" ]
1
2022-02-10T20:09:01.000Z
2022-02-10T20:09:01.000Z
[BITS 32] global irq1_handler_low global irq12_handler_low [SECTION .text] irq1_handler_low: ; TODO: send EOI iret irq12_handler_low: ; TODO: send EOI iret
13.333333
24
0.625
44742ae65e409314b1d6aec80650f1cac211949a
433
asm
Assembly
oeis/140/A140757.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/140/A140757.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/140/A140757.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A140757: Cumulative sums of A140756. ; Submitted by Christian Krause ; 1,0,2,3,1,4,3,5,2,6,7,5,8,4,9,8,10,7,11,6,12,13,11,14,10,15,9,16,15,17,14,18,13,19,12,20,21,19,22,18,23,17,24,16,25,24,26,23,27,22,28,21,29,20,30,31,29,32,28,33,27,34,26,35,25,36,35,37,34,38,33,39,32,40,31,41 lpb $0 mov $1,$0 sub $0,1 seq $1,140756 ; Count up to k sequence with alternating signs (k always positive). add $2,$1 lpe mov $0,$2 add $0,1
33.307692
210
0.655889
27eb0841d2ffaa10c057b067001a9c35399bb4cd
1,783
asm
Assembly
third_party/virtualbox/src/VBox/Devices/BiosCommonCode/fmemcpy.asm
Fimbure/icebox-1
0b81992a53e1b410955ca89bdb6f8169d6f2da86
[ "MIT" ]
521
2019-03-29T15:44:08.000Z
2022-03-22T09:46:19.000Z
third_party/virtualbox/src/VBox/Devices/BiosCommonCode/fmemcpy.asm
Fimbure/icebox-1
0b81992a53e1b410955ca89bdb6f8169d6f2da86
[ "MIT" ]
30
2019-06-04T17:00:49.000Z
2021-09-08T20:44:19.000Z
third_party/virtualbox/src/VBox/Devices/BiosCommonCode/fmemcpy.asm
Fimbure/icebox-1
0b81992a53e1b410955ca89bdb6f8169d6f2da86
[ "MIT" ]
99
2019-03-29T16:04:13.000Z
2022-03-28T16:59:34.000Z
; $Id: fmemcpy.asm $ ;; @file ; Compiler support routines. ; ; ; Copyright (C) 2012-2017 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; ; you can redistribute it and/or modify it under the terms of the GNU ; General Public License (GPL) as published by the Free Software ; Foundation, in version 2 as it comes in the "COPYING" file of the ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. ; ;******************************************************************************* ;* Exported Symbols * ;******************************************************************************* public _fmemcpy_ .8086 _TEXT segment public 'CODE' use16 assume cs:_TEXT ;; ; memcpy taking far pointers. ; ; cx, es may be modified; si, di are preserved ; ; @returns dx:ax unchanged. ; @param dx:ax Pointer to the destination memory. ; @param cx:bx Pointer to the source memory. ; @param sp+2 The number of bytes to copy (dw). ; _fmemcpy_: push bp mov bp, sp push di push ds push si mov es, dx mov di, ax mov ds, cx mov si, bx mov cx, [bp + 4] rep movsb pop si pop ds pop di mov sp, bp pop bp ret _TEXT ends end
27.015152
80
0.459338
6bbee3fdb07bbda9a9bdee36624596d526e2cd25
616
asm
Assembly
libsrc/fcntl/z88/fdtell.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
1
2018-09-04T23:07:24.000Z
2018-09-04T23:07:24.000Z
libsrc/fcntl/z88/fdtell.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
libsrc/fcntl/z88/fdtell.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
; ; Small C z88 File functions ; Written by Dominic Morris <djm@jb.man.ac.uk> ; ; 11/3/99 djm ***UNTESTED*** ; ; *** THIS IS A Z88 SPECIFIC ROUTINE!!! *** ; ; ; $Id: fdtell.asm,v 1.2 2003/09/11 10:58:57 dom Exp $ ; INCLUDE "#fileio.def" XLIB fdtell ;long fdtell(int fd) .fdtell pop bc ;ret pop ix ;fd push ix push bc ld a,fa_ptr call_oz(os_frm) push bc ;get the var into our preferred regs pop hl ret nc ;Error, return with -1 ld hl,65535 ld d,h ld e,l ret
18.117647
68
0.5
0d26170f7c08357336833756cff27158ec777136
1,127
asm
Assembly
Borland/CBuilder5/Source/RTL/source/math/atan.asm
TrevorDArcyEvans/DivingMagpieSoftware
7ffcfef653b110e514d5db735d11be0aae9953ec
[ "MIT" ]
1
2021-05-27T10:27:25.000Z
2021-05-27T10:27:25.000Z
Borland/CBuilder5/Source/RTL/source/math/atan.asm
TrevorDArcyEvans/Diving-Magpie-Software
7ffcfef653b110e514d5db735d11be0aae9953ec
[ "MIT" ]
null
null
null
Borland/CBuilder5/Source/RTL/source/math/atan.asm
TrevorDArcyEvans/Diving-Magpie-Software
7ffcfef653b110e514d5db735d11be0aae9953ec
[ "MIT" ]
null
null
null
;[]-----------------------------------------------------------------[] ;| ATAN.ASM -- trigonometric function | ;[]-----------------------------------------------------------------[] ; ; C/C++ Run Time Library - Version 10.0 ; ; Copyright (c) 1991, 2000 by Inprise Corporation ; All Rights Reserved. ; ; $Revision: 9.0 $ include RULES.ASI include _MATH.INC ; Segments Definitions Header@ ;---------------------------------------------------------------------- ; ;Name atan - trigonometric function ; ;Usage double atan(double x); ; ;Prototype in math.h ; ;Description atan returns the arc tangent of the input value, which may ; be any finite value. ; ;Return value atan returns a value in the range -pi/2 to pi/2. ; ;---------------------------------------------------------------------- Code_Seg@ Func@ atan, _EXPFUNC, _RTLENTRY, <double x> Link@ ebx fld x.double f87 ArcTan Unlink@ ebx Return@ EndFunc@ atan Code_Ends@ end
22.098039
76
0.4126
3466104669d7a560ef1f3ed6584f2cdbd65d4bb0
1,913
asm
Assembly
src/kernel/exe/cpu/cpu.asm
zelinf/MyOS
87ba8abb4713fbeab9d98f862023af0bf6ea2349
[ "MIT" ]
2
2018-03-09T02:19:59.000Z
2018-03-09T05:38:18.000Z
src/kernel/exe/cpu/cpu.asm
IsumiF/MyOS
87ba8abb4713fbeab9d98f862023af0bf6ea2349
[ "MIT" ]
null
null
null
src/kernel/exe/cpu/cpu.asm
IsumiF/MyOS
87ba8abb4713fbeab9d98f862023af0bf6ea2349
[ "MIT" ]
null
null
null
BITS 32 extern cpu_init8259A global cpu_initialize ; void enterUserCode(void *targetAddr, void *targetESP) global cpu_enterUserCode [SECTION .text] cpu_initialize: ; Setting up GDT mov eax, tss mov word [gdt + 0x28 + 2], ax shr eax, 16 mov byte [gdt + 0x28 + 4], al mov byte [gdt + 0x28 + 7], ah lgdt [gdtr] jmp 0x08:.fixSegRegs .fixSegRegs: mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax ; Load TSS mov ax, 0x28 ltr ax ; Init 8259A call cpu_init8259A ret cpu_enterUserCode: add esp, 4 pop esi ; Target address pop edi ; Target stack base mov [tss + 4], esp push 0x23 ; ss push edi ; esp push 0x3246 ; eflags push 0x1B ; cs push esi ; eip xor eax, eax mov ax, 0x23 mov ds, ax mov es, ax mov gs, ax mov fs, ax sti int 0x20 [SECTION .data] tss: ; See https://wiki.osdev.org/Task_State_Segment DW 0 ; null DW 0 ; reserved DD 0 ; esp0, must be specified DW 0x10 ; ss0 DW 0 ; reserved TIMES 22 DD 0 ; garbage DW 0 DW 0x68 gdt: ; null descriptor ; Selector: 0x00 DD 0 DD 0 ; kernel code descriptor ; Selector: 0x08 DW 0xFFFF DW 0 DB 0 DB 0b10011010 DB 0b11001111 DB 0 ; kernel data descriptor ; Selector: 0x10 DW 0xFFFF DW 0 DB 0 DB 0b10010010 DB 0b11001111 DB 0 ; user code descriptor ; Selector: 0x1B DW 0xFFFF DW 0 DB 0 DB 0b11111010 DB 0b11001111 DB 0 ; user data descriptor ; Selector: 0x23 DW 0xFFFF DW 0 DB 0 DB 0b11110010 DB 0b11001111 DB 0 ; tss descriptor ; Selector: 0x28 DW 0x68 ; size of TSS DW 0 ; base 0:15 DB 0 ; base 16:23 DB 0x89 DB 0x40 DB 0 ; base 24:31 gdtr: DW gdtr - gdt - 1 DD gdt
15.062992
55
0.572922
9f0a19473d5e3e4fcf7463a6747c5d87b53dfab6
3,359
asm
Assembly
dino/lcs/base/6C3E.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
dino/lcs/base/6C3E.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
dino/lcs/base/6C3E.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
1
2020-12-17T08:59:10.000Z
2020-12-17T08:59:10.000Z
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 016970 move.b D0, (A4)+ 016972 move.b ($3,A6), (A4)+ [base+6BDE, base+6C0E, base+6C1E, base+6C2E, base+6C3E] 016B60 move.b D0, (A4)+ 016B62 move.b ($3,A6), (A4)+ [base+6BDE, base+6BEE, base+6BFE, base+6C0E, base+6C1E, base+6C2E, base+6C3E, base+6C4E, base+6C5E, base+6C6E, base+6C7E, base+6C8E, base+6C9E, base+6CAE, base+6CBE, base+6CCE] 016CF8 move.w (A0,D2.w), D0 016CFC bpl $16dc0 [base+6BDE, base+6BEE, base+6BFE, base+6C0E, base+6C3E, base+6C4E, base+6C6E, base+6C7E, base+6C8E, base+6CBE, base+6CCE, base+6CDE, base+6CEE, base+6D0E, base+6D1E, base+6D2E, base+6D5E, base+6D6E, base+6D8E, base+6D9E, base+6DAE, base+6DBE, base+6DDE, base+6DEE, base+6DFE, base+6E0E, base+6E3E, base+6E4E, base+6E6E, base+6E7E, base+6E8E, base+6EBE, base+6ECE] 016DD0 move.b (A0,D2.w), D0 016DD4 cmpi.b #$3, D0 [base+6BDE, base+6BEE, base+6BFE, base+6C0E, base+6C3E, base+6C4E, base+6C6E, base+6C7E, base+6C8E, base+6CBE, base+6CCE, base+6CDE, base+6CEE, base+6D0E, base+6D1E, base+6D2E, base+6D5E, base+6D6E, base+6D8E, base+6D9E, base+6DAE, base+6DBE, base+6DDE, base+6DEE, base+6DFE, base+6E0E, base+6E3E, base+6E4E, base+6E6E, base+6E7E, base+6E8E, base+6EBE, base+6ECE] 016E06 move.b (A0,D2.w), D0 016E0A cmpi.b #$4, D0 [base+6BDE, base+6BEE, base+6BFE, base+6C0E, base+6C3E, base+6C4E, base+6C6E, base+6C7E, base+6C8E, base+6CBE, base+6CCE, base+6CDE, base+6CEE, base+6D0E, base+6D1E, base+6D2E, base+6D5E, base+6D6E, base+6D8E, base+6D9E, base+6DAE, base+6DBE, base+6DDE, base+6DEE, base+6DFE, base+6E0E, base+6E3E, base+6E4E, base+6E6E, base+6E7E, base+6E8E, base+6EBE, base+6ECE] 0AAACA move.l (A0), D2 0AAACC move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAACE move.w D0, ($2,A0) 0AAAD2 cmp.l (A0), D0 0AAAD4 bne $aaafc 0AAAD8 move.l D2, (A0)+ 0AAADA cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAAE6 move.l (A0), D2 0AAAE8 move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAAF4 move.l D2, (A0)+ 0AAAF6 cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] copyright zengfr site:http://github.com/zengfr/romhack
119.964286
387
0.685323
b0c6ef73a5ace52514adaf08d5341c93a166a423
2,007
asm
Assembly
pwnlib/shellcraft/templates/aarch64/push.asm
DrKeineLust/pwntools
415f11bba7096b7d68fe144f5b3432b9c12a4f0a
[ "MIT" ]
8,966
2015-01-02T11:58:14.000Z
2022-03-31T21:19:56.000Z
pwnlib/shellcraft/templates/aarch64/push.asm
DrKeineLust/pwntools
415f11bba7096b7d68fe144f5b3432b9c12a4f0a
[ "MIT" ]
1,401
2015-01-01T00:56:22.000Z
2022-03-31T16:19:53.000Z
pwnlib/shellcraft/templates/aarch64/push.asm
DrKeineLust/pwntools
415f11bba7096b7d68fe144f5b3432b9c12a4f0a
[ "MIT" ]
1,844
2015-01-07T04:38:06.000Z
2022-03-30T03:54:46.000Z
<% from pwnlib import shellcraft from pwnlib.util.packing import flat, unpack from pwnlib.util.iters import group %> <%page args="value, register1='x14', register2='x15'"/> <%docstring> Pushes a value onto the stack without using null bytes or newline characters. If src is a string, then we try to evaluate using :func:`pwnlib.constants.eval` before determining how to push it. Note that this means that this shellcode can change behavior depending on the value of `context.os`. Note: AArch64 requires that the stack remain 16-byte aligned at all times, so this alignment is preserved. Args: value(int,str): The value or register to push register1(str): Scratch register to use register2(str): Second scratch register to use Example: >>> print(pwnlib.shellcraft.push(0).rstrip()) /* push 0 */ mov x14, xzr str x14, [sp, #-16]! >>> print(pwnlib.shellcraft.push(1).rstrip()) /* push 1 */ mov x14, #1 str x14, [sp, #-16]! >>> print(pwnlib.shellcraft.push(256).rstrip()) /* push 0x100 */ mov x14, #256 str x14, [sp, #-16]! >>> print(pwnlib.shellcraft.push('SYS_execve').rstrip()) /* push SYS_execve (0xdd) */ mov x14, #221 str x14, [sp, #-16]! >>> print(pwnlib.shellcraft.push('SYS_sendfile').rstrip()) /* push SYS_sendfile (0x47) */ mov x14, #71 str x14, [sp, #-16]! >>> with context.local(os = 'freebsd'): ... print(pwnlib.shellcraft.push('SYS_execve').rstrip()) ... /* push SYS_execve (0x3b) */ mov x14, #59 str x14, [sp, #-16]! </%docstring> <% if isinstance(value, str): value = shellcraft.eval(value) pretty = shellcraft.pretty(value, comment=False) %> ${shellcraft.pushstr(flat(value), append_null = False, register1 = register1, register2 = register2, pretty = pretty)}
31.359375
79
0.592925
5809ae53826b1ad23b6b038dd372489640e0649a
1,961
asm
Assembly
programs/oeis/207/A207020.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/207/A207020.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/207/A207020.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A207020: Number of n X 4 0..1 arrays avoiding 0 0 0 and 0 1 1 horizontally and 0 0 1 and 1 0 1 vertically. ; 9,81,252,558,1035,1719,2646,3852,5373,7245,9504,12186,15327,18963,23130,27864,33201,39177,45828,53190,61299,70191,79902,90468,101925,114309,127656,142002,157383,173835,191394,210096,229977,251073,273420,297054,322011,348327,376038,405180,435789,467901,501552,536778,573615,612099,652266,694152,737793,783225,830484,879606,930627,983583,1038510,1095444,1154421,1215477,1278648,1343970,1411479,1481211,1553202,1627488,1704105,1783089,1864476,1948302,2034603,2123415,2214774,2308716,2405277,2504493,2606400,2711034,2818431,2928627,3041658,3157560,3276369,3398121,3522852,3650598,3781395,3915279,4052286,4192452,4335813,4482405,4632264,4785426,4941927,5101803,5265090,5431824,5602041,5775777,5953068,6133950,6318459,6506631,6698502,6894108,7093485,7296669,7503696,7714602,7929423,8148195,8370954,8597736,8828577,9063513,9302580,9545814,9793251,10044927,10300878,10561140,10825749,11094741,11368152,11646018,11928375,12215259,12506706,12802752,13103433,13408785,13718844,14033646,14353227,14677623,15006870,15341004,15680061,16024077,16373088,16727130,17086239,17450451,17819802,18194328,18574065,18959049,19349316,19744902,20145843,20552175,20963934,21381156,21803877,22232133,22665960,23105394,23550471,24001227,24457698,24919920,25387929,25861761,26341452,26827038,27318555,27816039,28319526,28829052,29344653,29866365,30394224,30928266,31468527,32015043,32567850,33126984,33692481,34264377,34842708,35427510,36018819,36616671,37221102,37832148,38449845,39074229,39705336,40343202,40987863,41639355,42297714,42962976,43635177,44314353,45000540,45693774,46394091,47101527,47816118,48537900,49266909,50003181,50746752,51497658,52255935,53021619,53794746,54575352,55363473,56159145 mov $4,$0 mul $0,6 mov $1,6 add $1,$0 div $1,2 mul $1,$0 div $1,4 mul $1,7 add $1,9 mov $2,$4 mul $2,3 add $1,$2 mov $3,$4 mul $3,$4 mul $3,$4 mov $2,$3 mul $2,6 add $1,$2
89.136364
1,678
0.833248
92e9a322a96a847903344ceae83eac724e6a8dd0
5,478
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1932.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1932.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1932.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r8 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0x4bb2, %rbp nop nop xor $8622, %r14 movups (%rbp), %xmm4 vpextrq $1, %xmm4, %r9 nop and $6697, %rsi lea addresses_WT_ht+0x1b8b2, %r11 nop nop and %r9, %r9 mov (%r11), %esi nop add %rsi, %rsi lea addresses_UC_ht+0xd7b2, %rsi lea addresses_WC_ht+0x961a, %rdi nop nop nop nop nop inc %r8 mov $39, %rcx rep movsq nop nop nop mfence lea addresses_D_ht+0xbb2, %rsi lea addresses_normal_ht+0x1ee52, %rdi nop nop nop and %r14, %r14 mov $124, %rcx rep movsb nop nop xor %r8, %r8 lea addresses_UC_ht+0x7db2, %rcx nop nop nop inc %rsi mov (%rcx), %bp nop xor %r11, %r11 lea addresses_normal_ht+0x1c46a, %rsi lea addresses_D_ht+0xa4aa, %rdi clflush (%rsi) and $40031, %r8 mov $27, %rcx rep movsb nop nop nop xor $21895, %rsi pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r8 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %r15 push %rbx push %rcx // Faulty Load lea addresses_D+0x163b2, %r14 nop nop nop nop cmp %rcx, %rcx vmovups (%r14), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $1, %xmm5, %r10 lea oracles, %r14 and $0xff, %r10 shlq $12, %r10 mov (%r14,%r10,1), %r10 pop %rcx pop %rbx pop %r15 pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_D', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_D', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 10, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 0, 'type': 'addresses_WC_ht'}} {'src': {'same': False, 'congruent': 10, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_D_ht'}} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
43.47619
2,999
0.661373
7d4dbfcb33e74f0f875d5ada6197ef6528f71727
662
asm
Assembly
oeis/004/A004579.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/004/A004579.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/004/A004579.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A004579: Expansion of sqrt(8) in base 4. ; Submitted by Christian Krause ; 2,3,1,1,0,0,1,0,3,3,0,3,0,3,0,3,3,3,2,1,3,1,3,2,1,2,1,0,2,0,1,0,1,1,2,1,1,3,3,1,2,0,2,1,2,3,0,3,1,3,1,1,1,0,2,2,2,3,3,2,2,1,3,3,0,1,3,1,1,2,3,3,1,2,0,0,2,3,2,2,2,0,2,1,0,3,2,3,2,2,2,0,1,0,3,0,3,2,3,1 mov $1,1 mov $2,1 mov $3,$0 add $3,2 mov $4,$0 mul $4,2 mov $7,9 pow $7,$4 lpb $3 mov $4,$2 pow $4,2 mul $4,2 sub $4,1 mov $5,$1 pow $5,2 add $4,$5 mov $6,$1 mov $1,$4 mul $6,$2 mul $6,2 mov $2,$6 mov $8,$4 div $8,$7 max $8,1 div $1,$8 div $2,$8 sub $3,1 mov $9,8 lpe mul $1,2 sub $9,4 mov $3,$9 pow $3,$0 div $2,$3 div $1,$2 mod $1,$9 mov $0,$1
15.761905
201
0.510574
826433f427f36409fe32fc8db98317dd4ba6615b
693
asm
Assembly
oeis/213/A213560.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/213/A213560.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/213/A213560.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A213560: Antidiagonal sums of the convolution array A213558. ; 1,24,236,1400,6009,20608,59952,153792,357225,765688,1535820,2913560,5270993,9153600,15339712,24914112,39357873,60656664,91429900,135083256,195987209,279684416,393128880,544960000,745814745,1008681336,1349297964,1786600216,2343221025,3046047104,3926835968,5022897792,6377846497,8042424600,10075406508,12544585080,15527846425,19114338048,23405735600,28517613632,34580925897,41743600888,50172258444,60054053400,71598652401,85040350144,100640331456,118689085760,139508980625,163457001240,190927662796 mov $1,2 add $1,$0 seq $0,145216 ; Self-convolution of (1^3, 2^3, 3^3, 4^3, ... ). mul $1,$0 sub $1,2 div $1,2 add $1,1 mov $0,$1
57.75
498
0.818182
9ef87b02cb87fe2692a176bf3a55e44b42ced464
12,485
asm
Assembly
src/coreclr/nativeaot/Runtime/arm64/ThunkPoolThunks.asm
pyracanda/runtime
72bee25ab532a4d0636118ec2ed3eabf3fd55245
[ "MIT" ]
9,402
2019-11-25T23:26:24.000Z
2022-03-31T23:19:41.000Z
src/coreclr/nativeaot/Runtime/arm64/ThunkPoolThunks.asm
pyracanda/runtime
72bee25ab532a4d0636118ec2ed3eabf3fd55245
[ "MIT" ]
37,522
2019-11-25T23:30:32.000Z
2022-03-31T23:58:30.000Z
src/coreclr/nativeaot/Runtime/arm64/ThunkPoolThunks.asm
pyracanda/runtime
72bee25ab532a4d0636118ec2ed3eabf3fd55245
[ "MIT" ]
3,629
2019-11-25T23:29:16.000Z
2022-03-31T21:52:28.000Z
;; Licensed to the .NET Foundation under one or more agreements. ;; The .NET Foundation licenses this file to you under the MIT license. #include "ksarm64.h" ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; STUBS & DATA SECTIONS ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; THUNK_CODESIZE equ 0x10 ;; 3 instructions, 4 bytes each (and we also have 4 bytes of padding) THUNK_DATASIZE equ 0x10 ;; 2 qwords THUNK_POOL_NUM_THUNKS_PER_PAGE equ 0xFA ;; 250 thunks per page POINTER_SIZE equ 0x08 MACRO NAMED_READONLY_DATA_SECTION $name, $areaAlias AREA $areaAlias,DATA,READONLY RO$name % 8 MEND ;; This macro is used to declare the thunks data blocks. Unlike the macro above (which is just used for padding), ;; this macro needs to assign labels to each data block, so we can address them using PC-relative addresses. MACRO NAMED_READWRITE_DATA_SECTION $name, $areaAlias, $pageIndex AREA $areaAlias,DATA THUNKS_DATA_PAGE_BLOCK $pageIndex MEND MACRO LOAD_DATA_ADDRESS $groupIndex, $index, $pageIndex ;; Set xip0 to the address of the current thunk's data block. This is done using labels. adr xip0, label_$groupIndex_$index_P$pageIndex MEND MACRO JUMP_TO_COMMON $groupIndex, $index ;; start : xip0 points to the current thunks first data cell in the data page ;; set xip0 to begining of data page : xip0 <- xip0 - (THUNK_DATASIZE * current thunk's index) ;; fix offset to point to last QWROD in page : xip1 <- [xip0 + PAGE_SIZE - POINTER_SIZE] ;; tailcall to the location pointed at by the last qword in the data page ldr xip1, [xip0, #(PAGE_SIZE - POINTER_SIZE - ($groupIndex * THUNK_DATASIZE * 10 + THUNK_DATASIZE * $index))] br xip1 brk 0xf000 ;; Stubs need to be 16-byte aligned for CFG table. Filling padding with a ;; deterministic brk instruction, instead of having it just filled with zeros. MEND MACRO THUNK_LABELED_DATA_BLOCK $groupIndex, $index, $pageIndex ;; Each data block contains 2 qword cells. The data block is also labeled so it can be addressed ;; using PC relative instructions label_$groupIndex_$index_P$pageIndex DCQ 0 DCQ 0 MEND MACRO TenThunks $groupIndex, $pageIndex ;; Each thunk will load the address of its corresponding data (from the page that immediately follows) ;; and call a common stub. The address of the common stub is setup by the caller (last qword ;; in the thunks data section) depending on the 'kind' of thunks needed (interop, fat function pointers, etc...) ;; Each data block used by a thunk consists of two qword values: ;; - Context: some value given to the thunk as context. Example for fat-fptrs: context = generic dictionary ;; - Target : target code that the thunk eventually jumps to. LOAD_DATA_ADDRESS $groupIndex,0,$pageIndex JUMP_TO_COMMON $groupIndex,0 LOAD_DATA_ADDRESS $groupIndex,1,$pageIndex JUMP_TO_COMMON $groupIndex,1 LOAD_DATA_ADDRESS $groupIndex,2,$pageIndex JUMP_TO_COMMON $groupIndex,2 LOAD_DATA_ADDRESS $groupIndex,3,$pageIndex JUMP_TO_COMMON $groupIndex,3 LOAD_DATA_ADDRESS $groupIndex,4,$pageIndex JUMP_TO_COMMON $groupIndex,4 LOAD_DATA_ADDRESS $groupIndex,5,$pageIndex JUMP_TO_COMMON $groupIndex,5 LOAD_DATA_ADDRESS $groupIndex,6,$pageIndex JUMP_TO_COMMON $groupIndex,6 LOAD_DATA_ADDRESS $groupIndex,7,$pageIndex JUMP_TO_COMMON $groupIndex,7 LOAD_DATA_ADDRESS $groupIndex,8,$pageIndex JUMP_TO_COMMON $groupIndex,8 LOAD_DATA_ADDRESS $groupIndex,9,$pageIndex JUMP_TO_COMMON $groupIndex,9 MEND MACRO TenThunkDataBlocks $groupIndex, $pageIndex ;; Similar to the thunks stubs block, we declare the thunks data blocks here THUNK_LABELED_DATA_BLOCK $groupIndex, 0, $pageIndex THUNK_LABELED_DATA_BLOCK $groupIndex, 1, $pageIndex THUNK_LABELED_DATA_BLOCK $groupIndex, 2, $pageIndex THUNK_LABELED_DATA_BLOCK $groupIndex, 3, $pageIndex THUNK_LABELED_DATA_BLOCK $groupIndex, 4, $pageIndex THUNK_LABELED_DATA_BLOCK $groupIndex, 5, $pageIndex THUNK_LABELED_DATA_BLOCK $groupIndex, 6, $pageIndex THUNK_LABELED_DATA_BLOCK $groupIndex, 7, $pageIndex THUNK_LABELED_DATA_BLOCK $groupIndex, 8, $pageIndex THUNK_LABELED_DATA_BLOCK $groupIndex, 9, $pageIndex MEND MACRO THUNKS_PAGE_BLOCK $pageIndex TenThunks 0, $pageIndex TenThunks 1, $pageIndex TenThunks 2, $pageIndex TenThunks 3, $pageIndex TenThunks 4, $pageIndex TenThunks 5, $pageIndex TenThunks 6, $pageIndex TenThunks 7, $pageIndex TenThunks 8, $pageIndex TenThunks 9, $pageIndex TenThunks 10, $pageIndex TenThunks 11, $pageIndex TenThunks 12, $pageIndex TenThunks 13, $pageIndex TenThunks 14, $pageIndex TenThunks 15, $pageIndex TenThunks 16, $pageIndex TenThunks 17, $pageIndex TenThunks 18, $pageIndex TenThunks 19, $pageIndex TenThunks 20, $pageIndex TenThunks 21, $pageIndex TenThunks 22, $pageIndex TenThunks 23, $pageIndex TenThunks 24, $pageIndex MEND MACRO THUNKS_DATA_PAGE_BLOCK $pageIndex TenThunkDataBlocks 0, $pageIndex TenThunkDataBlocks 1, $pageIndex TenThunkDataBlocks 2, $pageIndex TenThunkDataBlocks 3, $pageIndex TenThunkDataBlocks 4, $pageIndex TenThunkDataBlocks 5, $pageIndex TenThunkDataBlocks 6, $pageIndex TenThunkDataBlocks 7, $pageIndex TenThunkDataBlocks 8, $pageIndex TenThunkDataBlocks 9, $pageIndex TenThunkDataBlocks 10, $pageIndex TenThunkDataBlocks 11, $pageIndex TenThunkDataBlocks 12, $pageIndex TenThunkDataBlocks 13, $pageIndex TenThunkDataBlocks 14, $pageIndex TenThunkDataBlocks 15, $pageIndex TenThunkDataBlocks 16, $pageIndex TenThunkDataBlocks 17, $pageIndex TenThunkDataBlocks 18, $pageIndex TenThunkDataBlocks 19, $pageIndex TenThunkDataBlocks 20, $pageIndex TenThunkDataBlocks 21, $pageIndex TenThunkDataBlocks 22, $pageIndex TenThunkDataBlocks 23, $pageIndex TenThunkDataBlocks 24, $pageIndex MEND ;; ;; The first thunks section should be 64K aligned because it can get ;; mapped multiple times in memory, and mapping works on allocation ;; granularity boundaries (we don't want to map more than what we need) ;; ;; The easiest way to do so is by having the thunks section at the ;; first 64K aligned virtual address in the binary. We provide a section ;; layout file to the linker to tell it how to layout the thunks sections ;; that we care about. (ndp\rh\src\runtime\DLLs\app\mrt100_app_sectionlayout.txt) ;; ;; The PE spec says images cannot have gaps between sections (other ;; than what is required by the section alignment value in the header), ;; therefore we need a couple of padding data sections (otherwise the ;; OS will not load the image). ;; NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment0, "|.pad0|" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment1, "|.pad1|" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment2, "|.pad2|" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment3, "|.pad3|" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment4, "|.pad4|" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment5, "|.pad5|" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment6, "|.pad6|" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment7, "|.pad7|" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment8, "|.pad8|" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment9, "|.pad9|" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment10, "|.pad10|" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment11, "|.pad11|" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment12, "|.pad12|" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment13, "|.pad13|" NAMED_READONLY_DATA_SECTION PaddingFor64KAlignment14, "|.pad14|" ;; ;; Declaring all the data section first since they have labels referenced by the stubs sections, to prevent ;; compilation errors ("undefined symbols"). The stubs/data sections will be correctly laid out in the image ;; using using the explicit layout configurations (ndp\rh\src\runtime\DLLs\mrt100_sectionlayout.txt) ;; NAMED_READWRITE_DATA_SECTION ThunkData0, "|.tkd0|", 0 NAMED_READWRITE_DATA_SECTION ThunkData1, "|.tkd1|", 1 NAMED_READWRITE_DATA_SECTION ThunkData2, "|.tkd2|", 2 NAMED_READWRITE_DATA_SECTION ThunkData3, "|.tkd3|", 3 NAMED_READWRITE_DATA_SECTION ThunkData4, "|.tkd4|", 4 NAMED_READWRITE_DATA_SECTION ThunkData5, "|.tkd5|", 5 NAMED_READWRITE_DATA_SECTION ThunkData6, "|.tkd6|", 6 NAMED_READWRITE_DATA_SECTION ThunkData7, "|.tkd7|", 7 ;; ;; Thunk Stubs ;; NOTE: Keep number of blocks in sync with macro/constant named 'NUM_THUNK_BLOCKS' in: ;; - ndp\FxCore\src\System.Private.CoreLib\System\Runtime\InteropServices\ThunkPool.cs ;; - ndp\rh\src\tools\rhbind\zapimage.h ;; LEAF_ENTRY ThunkPool, "|.tks0|" THUNKS_PAGE_BLOCK 0 LEAF_END ThunkPool LEAF_ENTRY ThunkPool1, "|.tks1|" THUNKS_PAGE_BLOCK 1 LEAF_END ThunkPool1 LEAF_ENTRY ThunkPool2, "|.tks2|" THUNKS_PAGE_BLOCK 2 LEAF_END ThunkPool2 LEAF_ENTRY ThunkPool3, "|.tks3|" THUNKS_PAGE_BLOCK 3 LEAF_END ThunkPool3 LEAF_ENTRY ThunkPool4, "|.tks4|" THUNKS_PAGE_BLOCK 4 LEAF_END ThunkPool4 LEAF_ENTRY ThunkPool5, "|.tks5|" THUNKS_PAGE_BLOCK 5 LEAF_END ThunkPool5 LEAF_ENTRY ThunkPool6, "|.tks6|" THUNKS_PAGE_BLOCK 6 LEAF_END ThunkPool6 LEAF_ENTRY ThunkPool7, "|.tks7|" THUNKS_PAGE_BLOCK 7 LEAF_END ThunkPool7 ;; ;; IntPtr RhpGetThunksBase() ;; ;; ARM64TODO: There is a bug in the arm64 assembler which ends up with mis-sorted Pdata entries ;; for the functions in this file. As a work around, don't generate pdata for these small stubs. ;; All the "No_PDATA" variants need to be removed after MASM bug 516396 is fixed. LEAF_ENTRY_NO_PDATA RhpGetThunksBase ;; Return the address of the first thunk pool to the caller (this is really the base address) ldr x0, =ThunkPool ret LEAF_END_NO_PDATA RhpGetThunksBase ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; General Helpers ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; int RhpGetNumThunksPerBlock() ;; LEAF_ENTRY_NO_PDATA RhpGetNumThunksPerBlock mov x0, THUNK_POOL_NUM_THUNKS_PER_PAGE ret LEAF_END_NO_PDATA RhpGetNumThunksPerBlock ;; ;; int RhpGetThunkSize() ;; LEAF_ENTRY_NO_PDATA RhpGetThunkSize mov x0, THUNK_CODESIZE ret LEAF_END_NO_PDATA RhpGetThunkSize ;; ;; int RhpGetNumThunkBlocksPerMapping() ;; LEAF_ENTRY_NO_PDATA RhpGetNumThunkBlocksPerMapping mov x0, 8 ret LEAF_END_NO_PDATA RhpGetNumThunkBlocksPerMapping ;; ;; int RhpGetThunkBlockSize ;; LEAF_ENTRY_NO_PDATA RhpGetThunkBlockSize mov x0, PAGE_SIZE * 2 ret LEAF_END_NO_PDATA RhpGetThunkBlockSize ;; ;; IntPtr RhpGetThunkDataBlockAddress(IntPtr thunkStubAddress) ;; LEAF_ENTRY_NO_PDATA RhpGetThunkDataBlockAddress mov x12, PAGE_SIZE - 1 bic x0, x0, x12 mov x12, PAGE_SIZE add x0, x0, x12 ret LEAF_END_NO_PDATA RhpGetThunkDataBlockAddress ;; ;; IntPtr RhpGetThunkStubsBlockAddress(IntPtr thunkDataAddress) ;; LEAF_ENTRY_NO_PDATA RhpGetThunkStubsBlockAddress mov x12, PAGE_SIZE - 1 bic x0, x0, x12 mov x12, PAGE_SIZE sub x0, x0, x12 ret LEAF_END_NO_PDATA RhpGetThunkStubsBlockAddress END
37.268657
124
0.670885
8cc7fa01c82479262183df82e9ba194e71f1531f
181
asm
Assembly
asm/strcat.asm
tclendo/tiny_vm
87c55f66a3531b7cfe71d3ab5f06a573f932b4cd
[ "CC-BY-3.0" ]
null
null
null
asm/strcat.asm
tclendo/tiny_vm
87c55f66a3531b7cfe71d3ab5f06a573f932b4cd
[ "CC-BY-3.0" ]
null
null
null
asm/strcat.asm
tclendo/tiny_vm
87c55f66a3531b7cfe71d3ab5f06a573f932b4cd
[ "CC-BY-3.0" ]
null
null
null
.class strcat:Obj .method $constructor .local enter const "This is first\n" const "This is second\n" roll 1 call String:plus call String:print return 0
16.454545
28
0.646409
042e3d6cea201425839de85a27ddbaa758f95ac6
6,915
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0.log_21829_1732.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0.log_21829_1732.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0.log_21829_1732.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0xfe47, %r11 nop nop sub $47656, %r9 movw $0x6162, (%r11) nop cmp %r14, %r14 lea addresses_UC_ht+0xe067, %rsi lea addresses_D_ht+0x1d157, %rdi nop and %rbx, %rbx mov $69, %rcx rep movsw nop nop nop inc %rsi lea addresses_UC_ht+0x8557, %rbx nop nop nop nop nop lfence mov $0x6162636465666768, %rdi movq %rdi, %xmm5 vmovups %ymm5, (%rbx) nop nop nop dec %r9 lea addresses_UC_ht+0x13b37, %r14 nop nop nop nop cmp %rcx, %rcx movl $0x61626364, (%r14) nop nop nop xor $44406, %rdi lea addresses_A_ht+0x17257, %rcx sub %rdi, %rdi mov (%rcx), %esi nop cmp %rcx, %rcx lea addresses_WT_ht+0x9d57, %r12 nop nop nop and %rdi, %rdi vmovups (%r12), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $1, %xmm1, %rcx nop nop nop nop xor %r9, %r9 lea addresses_normal_ht+0xd557, %rsi lea addresses_UC_ht+0x4f17, %rdi clflush (%rdi) nop and $31197, %r14 mov $116, %rcx rep movsb nop nop inc %r9 lea addresses_WT_ht+0x1b957, %r14 and %rcx, %rcx movw $0x6162, (%r14) nop nop xor %rbx, %rbx lea addresses_D_ht+0x6ef, %rdi nop nop nop dec %r12 mov (%rdi), %r9 nop nop nop nop and %r9, %r9 lea addresses_UC_ht+0x30d7, %rsi lea addresses_normal_ht+0x37d5, %rdi nop nop add $31508, %r9 mov $43, %rcx rep movsq nop nop nop dec %r9 lea addresses_D_ht+0x10b3f, %r12 nop and $20789, %rsi mov (%r12), %bx nop nop nop nop nop and %r9, %r9 lea addresses_normal_ht+0x13167, %rsi lea addresses_D_ht+0x1323f, %rdi nop nop nop nop add $6979, %r14 mov $24, %rcx rep movsq nop nop nop cmp $6884, %r11 pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r14 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r15 push %r9 push %rax push %rdi // Faulty Load lea addresses_D+0x4557, %r9 nop nop nop and $4452, %r10 mov (%r9), %r15d lea oracles, %r10 and $0xff, %r15 shlq $12, %r15 mov (%r10,%r15,1), %r15 pop %rdi pop %rax pop %r9 pop %r15 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_D', 'AVXalign': True, 'size': 32}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_D', 'AVXalign': True, 'size': 4}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2}} {'src': {'same': True, 'congruent': 4, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4}} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 11, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 2}} {'src': {'NT': True, 'same': False, 'congruent': 3, 'type': 'addresses_D_ht', 'AVXalign': True, 'size': 8}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 7, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 1, 'type': 'addresses_normal_ht'}} {'src': {'NT': True, 'same': False, 'congruent': 3, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 4, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 3, 'type': 'addresses_D_ht'}} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
36.015625
2,999
0.657267
ee5916ad81cb7658c18dda33f4a641b5e44969f0
685
asm
Assembly
oeis/293/A293146.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/293/A293146.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/293/A293146.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A293146: a(n) = n! * [x^n] exp(x/(1 - n*x)). ; Submitted by Jamie Morken(s1) ; 1,1,5,73,2161,108101,8201701,878797165,126422091713,23514740267401,5492576235204901,1574136880033408241,543143967119720304625,222106209904092987888013,106221716052645457812866501,58741017143127754662557082901,37194600833984874761008613195521,26736414759299336869095236373600785,21653559220985643991144378350660191173,19626601216161794492748101305361925697561,19790073221080096208330912060127299462479601,22079846346885250586821399295859517502683990741 mov $2,1 mov $3,$0 mov $4,1 lpb $3 mul $2,$3 div $2,$4 sub $3,1 max $3,1 add $4,1 add $5,$0 add $6,$2 mul $6,$5 lpe mov $0,$6 add $0,1
34.25
453
0.79562
96e5a69cf878e01ac814c2c3a188335e2ff97852
629
asm
Assembly
oeis/066/A066979.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/066/A066979.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/066/A066979.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A066979: a(n) = floor(n!/2^n). ; 0,0,0,1,3,11,39,157,708,3543,19490,116943,760134,5320940,39907054,319256437,2713679718,24423117468,232019615953,2320196159531,24362059675078,267982656425859,3081800548897382,36981606586768593,462270082334607421,6009511070349896484,81128399449723602539,1135797592296130435546,16469065088293891315429,247035976324408369731445,3829057633028329730837402,61264922128453275693398437,1010871215119479048941074218,17184810657031143831998261718,300734186498045017059969580078,5413215356964810307079452441406 add $0,1 mov $2,$0 mov $3,$0 lpb $0 mul $2,$0 sub $0,1 mul $3,2 lpe div $2,$3 mov $0,$2
44.928571
500
0.837838
1359cb19b7193e42270dd3ff6b4ccada2d17590a
374
asm
Assembly
programs/oeis/240/A240355.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/240/A240355.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/240/A240355.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A240355: Inverse of 72nd cyclotomic polynomial. ; 1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 mov $1,2 mov $2,2 lpb $0 sub $0,12 sub $2,$1 add $1,$2 lpe lpb $0 mul $0,$3 mov $1,$0 lpe div $1,2 mov $0,$1
22
203
0.534759
db95021e75586e89656ec56667d3004bce03993b
297
asm
Assembly
programs/oeis/272/A272975.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/272/A272975.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/272/A272975.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A272975: Numbers that are congruent to {0,7} mod 12. ; 0,7,12,19,24,31,36,43,48,55,60,67,72,79,84,91,96,103,108,115,120,127,132,139,144,151,156,163,168,175,180,187,192,199,204,211,216,223,228,235,240,247,252,259,264,271,276,283,288,295,300,307,312,319,324 mov $1,$0 mul $0,6 mod $1,2 add $0,$1
37.125
202
0.690236
06040e923233ea09d159cb5e78fca6007002805b
341
asm
Assembly
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/c/sdcc_iy/p_forward_list_alt_push_front.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/c/sdcc_iy/p_forward_list_alt_push_front.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/c/sdcc_iy/p_forward_list_alt_push_front.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; void p_forward_list_alt_push_front(p_forward_list_alt_t *list, void *item) SECTION code_adt_p_forward_list_alt PUBLIC _p_forward_list_alt_push_front EXTERN asm_p_forward_list_alt_push_front _p_forward_list_alt_push_front: pop af pop bc pop de push de push bc push af jp asm_p_forward_list_alt_push_front
16.238095
76
0.797654
c307f64b518a63a503ee81c89d1a0488fc338128
1,057
nasm
Assembly
MdePkg/Library/BaseLib/X64/RmpAdjust.nasm
nicklela/edk2
dfafa8e45382939fb5dc78e9d37b97b500a43613
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
3,012
2015-01-01T19:58:18.000Z
2022-03-31T22:07:14.000Z
MdePkg/Library/BaseLib/X64/RmpAdjust.nasm
nicklela/edk2
dfafa8e45382939fb5dc78e9d37b97b500a43613
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
1,199
2015-01-12T08:00:01.000Z
2022-03-29T18:14:42.000Z
MdePkg/Library/BaseLib/X64/RmpAdjust.nasm
nicklela/edk2
dfafa8e45382939fb5dc78e9d37b97b500a43613
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
1,850
2015-01-01T11:28:12.000Z
2022-03-31T18:10:59.000Z
;----------------------------------------------------------------------------- ; ; Copyright (c) 2021, Advanced Micro Devices, Inc. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; RmpAdjust.Asm ; ; Abstract: ; ; AsmRmpAdjust function ; ; Notes: ; ;----------------------------------------------------------------------------- %include "Nasm.inc" SECTION .text ;----------------------------------------------------------------------------- ; UINT32 ; EFIAPI ; AsmRmpAdjust ( ; IN UINT64 Rax, ; IN UINT64 Rcx, ; IN UINT64 Rdx ; ) ;----------------------------------------------------------------------------- global ASM_PFX(AsmRmpAdjust) ASM_PFX(AsmRmpAdjust): mov rax, rcx ; Input Rax is in RCX by calling convention mov rcx, rdx ; Input Rcx is in RDX by calling convention mov rdx, r8 ; Input Rdx is in R8 by calling convention RMPADJUST ; RMPADJUST returns the status in the EAX register. ret
25.780488
79
0.429518
7f732045afd567c63835ebef9504d6d9bd419427
534
asm
Assembly
oeis/057/A057130.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/057/A057130.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/057/A057130.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A057130: Product of first n primes of form 6k-1. ; Submitted by Jon Maiga ; 5,55,935,21505,623645,25569445,1201763915,63693487495,3757915762205,266812019116555,22145397586674065,1970940385213991785,199064978906613170285,21299952743007609220495,2406894659959859841915935,315303200454741639290987485 add $0,3 mov $1,1 mov $2,1 lpb $0 mov $3,$2 gcd $2,2 lpb $3 add $2,1 mov $4,$1 gcd $4,$2 add $2,2 cmp $4,1 cmp $4,0 sub $3,$4 lpe sub $0,1 add $2,1 mul $1,$2 lpe mov $0,$1 div $0,30 mul $0,5
19.777778
223
0.687266
eac72a64935797c8141047476e832f91097278b6
2,059
asm
Assembly
libtool/src/gmp-6.1.2/mpn/powerpc64/p7/popcount.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
278
2015-11-03T03:01:20.000Z
2022-01-20T18:21:05.000Z
libtool/src/gmp-6.1.2/mpn/powerpc64/p7/popcount.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
374
2015-11-03T12:37:22.000Z
2021-12-17T14:18:08.000Z
libtool/src/gmp-6.1.2/mpn/powerpc64/p7/popcount.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
96
2015-11-22T07:47:26.000Z
2022-01-20T19:52:19.000Z
dnl PowerPC-64 mpn_popcount. dnl Copyright 2012 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public License as published by the Free dnl Software Foundation; either version 3 of the License, or (at your dnl option) any later version. dnl dnl or dnl dnl * the GNU General Public License as published by the Free Software dnl Foundation; either version 2 of the License, or (at your option) any dnl later version. dnl dnl or both in parallel, as here. dnl dnl The GNU MP Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License dnl for more details. dnl dnl You should have received copies of the GNU General Public License and the dnl GNU Lesser General Public License along with the GNU MP Library. If not, dnl see https://www.gnu.org/licenses/. include(`../config.m4') C cycles/limb C POWER3/PPC630 - C POWER4/PPC970 - C POWER5 - C POWER6 - C POWER7 2 define(`up', r3) define(`n', r4) ASM_START() PROLOGUE(mpn_popcount) addi r0, n, 1 ifdef(`HAVE_ABI_mode32', ` rldicl r0, r0, 63,33', C ...branch count ` srdi r0, r0, 1') C ...for ctr mtctr r0 andi. r0, n, 1 li r0, 0 li r12, 0 beq L(evn) L(odd): ld r4, 0(up) addi up, up, 8 popcntd r0, r4 bdz L(e1) L(evn): ld r4, 0(up) ld r5, 8(up) popcntd r8, r4 popcntd r9, r5 bdz L(e2) ld r4, 16(up) ld r5, 24(up) bdz L(e4) addi up, up, 32 L(top): add r0, r0, r8 popcntd r8, r4 ld r4, 0(up) add r12, r12, r9 popcntd r9, r5 ld r5, 8(up) addi up, up, 16 bdnz L(top) L(e4): add r0, r0, r8 popcntd r8, r4 add r12, r12, r9 popcntd r9, r5 L(e2): add r0, r0, r8 add r12, r12, r9 L(e1): add r3, r0, r12 blr EPILOGUE()
22.626374
79
0.665857
3b6b8db6a1415085f64ea50cd0a73bf13a146964
1,961
asm
Assembly
programs/oeis/271/A271995.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/271/A271995.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/271/A271995.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A271995: The Pnictogen sequence: a(n) = A018227(n)-3. ; 7,15,33,51,83,115,165,215,287,359,457,555,683,811,973,1135,1335,1535,1777,2019,2307,2595,2933,3271,3663,4055,4505,4955,5467,5979,6557,7135,7783,8431,9153,9875,10675,11475,12357,13239,14207,15175,16233,17291,18443,19595,20845,22095,23447,24799,26257,27715,29283,30851,32533,34215,36015,37815,39737,41659,43707,45755,47933,50111,52423,54735,57185,59635,62227,64819,67557,70295,73183,76071,79113,82155,85355,88555,91917,95279,98807,102335,106033,109731,113603,117475,121525,125575,129807,134039,138457,142875,147483,152091,156893,161695,166695,171695,176897,182099,187507,192915,198533,204151,209983,215815,221865,227915,234187,240459,246957,253455,260183,266911,273873,280835,288035,295235,302677,310119,317807,325495,333433,341371,349563,357755,366205,374655,383367,392079,401057,410035,419283,428531,438053,447575,457375,467175,477257,487339,497707,508075,518733,529391,540343,551295,562545,573795,585347,596899,608757,620615,632783,644951,657433,669915,682715,695515,708637,721759,735207,748655,762433,776211,790323,804435,818885,833335,848127,862919,878057,893195,908683,924171,940013,955855,972055,988255,1004817,1021379,1038307,1055235,1072533,1089831,1107503,1125175,1143225,1161275,1179707,1198139,1216957,1235775,1254983,1274191,1293793,1313395,1333395,1353395,1373797,1394199,1415007,1435815,1457033,1478251,1499883,1521515,1543565,1565615,1588087,1610559,1633457,1656355,1679683,1703011,1726773,1750535,1774735,1798935,1823577,1848219,1873307,1898395,1923933,1949471,1975463,2001455,2027905,2054355,2081267,2108179,2135557,2162935,2190783,2218631,2246953,2275275,2304075,2332875,2362157,2391439,2421207,2450975,2481233,2511491,2542243,2572995,2604245,2635495,2667247,2698999 mov $2,$0 add $2,1 mov $5,$0 lpb $2,1 mov $0,$5 sub $2,1 sub $0,$2 add $3,7 mov $4,$0 div $4,2 add $4,1 lpb $0,1 mov $0,0 add $4,1 mov $3,$4 mul $3,$4 mul $3,2 lpe add $1,$3 lpe
81.708333
1,685
0.799592
08962e1c1f0c4f0c09841c5e69d9102baf1b75ce
539
asm
Assembly
programs/oeis/139/A139531.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/139/A139531.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/139/A139531.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A139531: Numbers k such that 24*k + 17 is prime. ; 0,1,3,4,5,9,10,11,14,16,18,21,23,24,25,26,31,33,35,36,38,39,40,43,45,49,50,53,56,58,59,61,64,66,70,71,78,79,86,88,89,94,95,99,100,101,108,109,110,113,114,115,116,120,123,126,128,130,133,135,138,143,149,150 mov $2,$0 add $2,1 pow $2,2 lpb $2 add $1,16 sub $2,1 mov $3,$1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,8 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe div $1,2 sub $1,22 mul $1,2 add $1,20 div $1,24 mov $0,$1
21.56
207
0.617811
0ab2e454c649c7dcdb6a53776378821d2cdb146d
342
asm
Assembly
programs/oeis/134/A134169.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/134/A134169.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/134/A134169.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A134169: a(n) = 2^(n-1)*(2^n - 1) + 1. ; 1,2,7,29,121,497,2017,8129,32641,130817,523777,2096129,8386561,33550337,134209537,536854529,2147450881,8589869057,34359607297,137438691329,549755289601,2199022206977,8796090925057,35184367894529,140737479966721,562949936644097,2251799780130817,9007199187632129 mov $1,2 pow $1,$0 bin $1,2 add $1,1
42.75
262
0.78655
aaca7aa585db98a0e23e32bb24bc588c56504bbc
295
asm
Assembly
programs/oeis/154/A154687.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/154/A154687.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/154/A154687.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A154687: Period 6: repeat [1, 4, 7, 8, 5, 2]. ; 1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4 mul $0,5 cal $0,154127 ; Period 6: repeat [1, 2, 5, 8, 7, 4]. mov $1,$0
42.142857
173
0.511864
bf4dfeb148b2757a140df24608b8bf6a8c0602d4
286
asm
Assembly
libsrc/_DEVELOPMENT/adt/w_vector/c/sccz80/w_vector_insert_n_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/w_vector/c/sccz80/w_vector_insert_n_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/w_vector/c/sccz80/w_vector_insert_n_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; size_t w_vector_insert_n(w_vector_t *v, size_t idx, size_t n, void *item) SECTION code_adt_w_vector PUBLIC w_vector_insert_n_callee w_vector_insert_n_callee: pop ix pop af pop de pop bc pop hl push ix INCLUDE "adt/w_vector/z80/asm_w_vector_insert_n.asm"
15.888889
75
0.741259
fe06afb490894db4545fe8a7485f4d83eabda272
122
asm
Assembly
Working Disassembly/Levels/MHZ/Misc Object Data/Map - Sticky Vine.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
5
2021-07-09T08:17:56.000Z
2022-02-27T19:57:47.000Z
Working Disassembly/Levels/MHZ/Misc Object Data/Map - Sticky Vine.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
Working Disassembly/Levels/MHZ/Misc Object Data/Map - Sticky Vine.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
dc.w word_3ED12-Map_MHZStickyVine word_3ED12: dc.w 1 ; DATA XREF: ROM:0003ED10o dc.b $F8, 5, 0, 0, $FF, $F8
30.5
48
0.622951
8712d5aa990b948e40b4f1d4ad1631dec847734a
4,783
asm
Assembly
game/logic/game_states/mode_selection_screen.asm
pompshuffle/super-tilt-bro
d0f836290223085d7794c445c696e1c644c674d2
[ "WTFPL" ]
2
2020-09-29T16:43:35.000Z
2021-08-24T16:41:22.000Z
game/logic/game_states/mode_selection_screen.asm
pompshuffle/super-tilt-bro
d0f836290223085d7794c445c696e1c644c674d2
[ "WTFPL" ]
null
null
null
game/logic/game_states/mode_selection_screen.asm
pompshuffle/super-tilt-bro
d0f836290223085d7794c445c696e1c644c674d2
[ "WTFPL" ]
null
null
null
init_mode_selection_screen: .( ; Copy menus tileset in CHR-RAM jsr set_menu_chr SWITCH_BANK(#DATA_BANK_NUMBER) ; Construct nt buffers for palettes (to avoid changing it mid-frame) lda #<palette_mode_selection sta tmpfield1 lda #>palette_mode_selection sta tmpfield2 jsr construct_palettes_nt_buffer ; Copy background from PRG-rom to PPU nametable lda #<nametable_mode_selection sta tmpfield1 lda #>nametable_mode_selection sta tmpfield2 jsr draw_zipped_nametable ; Initialize common menus effects jsr re_init_menu ; Initialize state lda config_game_mode sta mode_selection_current_option rts .) mode_selection_screen_tick: .( .( jsr reset_nt_buffers ; Play common menus effects jsr tick_menu ; Go to a screen or another depending on button released this frame ldx #0 check_one_controller: lda controller_a_btns, x bne next_controller lda controller_a_last_frame_btns, x beq next_controller cmp #CONTROLLER_BTN_UP beq go_up cmp #CONTROLLER_BTN_DOWN beq go_down cmp #CONTROLLER_BTN_LEFT beq go_left cmp #CONTROLLER_BTN_RIGHT beq go_right cmp #CONTROLLER_BTN_B beq go_title cmp #CONTROLLER_BTN_START beq go_next_screen cmp #CONTROLLER_BTN_A beq go_next_screen next_controller: inx cpx #2 bne check_one_controller no_press: jmp end go_down: go_up: .( lda mode_selection_current_option cmp #2 beq from_donation lda #2 .byt $2c ; absolute BIT, effectively skipping the next LDA from_donation: lda #0 sta mode_selection_current_option jmp end .) go_left: dec mode_selection_current_option bpl end lda #2 sta mode_selection_current_option jmp end go_right: inc mode_selection_current_option lda mode_selection_current_option cmp #3 bne end lda #0 sta mode_selection_current_option jmp end go_title: lda #GAME_STATE_TITLE jsr change_global_game_state go_next_screen: ldx mode_selection_current_option #ifdef NO_NETWORK cpx #1 beq end #endif stx config_game_mode lda option_to_game_state, x jsr change_global_game_state end: jsr show_selected_option rts option_to_game_state: .byt GAME_STATE_CONFIG, GAME_STATE_NETPLAY_LAUNCH, GAME_STATE_DONATION .) show_selected_option: .( lda #<nt_highlight_header sta tmpfield1 lda #>nt_highlight_header sta tmpfield2 ldx mode_selection_current_option lda nt_highlight_payload_addr_lsb, x sta tmpfield3 lda nt_highlight_payload_addr_msb, x sta tmpfield4 jsr construct_nt_buffer rts #ifndef NO_NETWORK nt_highlight_header: .byt $23, $d1, $15 nt_highlight_payload_local: .byt %01010101, %01010101, %01010101, %00000000, %00000000, %00000000, %00000000, .byt %00000000, %01010101, %01010101, %01010101, %00000000, %00000000, %00000000, %00000000, .byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, nt_highlight_payload_online: .byt %00000000, %00000000, %00000000, %01010101, %01010101, %01010101, %01010101, .byt %00000000, %00000000, %00000000, %00000000, %01010101, %01010101, %01010101, %01010101, .byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, nt_highlight_payload_donation: .byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, .byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, .byt %00000000, %00000000, %01010101, %01010101, %01010101, %01010101 #else nt_highlight_header: .byt $23, $d1, $15 nt_highlight_payload_local: .byt %01010101, %01010101, %01010101, %10101010, %10101010, %10101010, %10101010, .byt %00000000, %01010101, %01010101, %01010101, %10101010, %10101010, %10101010, %10101010, .byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, nt_highlight_payload_online: .byt %00000000, %00000000, %00000000, %11111111, %11111111, %11111111, %11111111, .byt %00000000, %00000000, %00000000, %00000000, %11111111, %11111111, %11111111, %11111111, .byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, nt_highlight_payload_donation: .byt %00000000, %00000000, %00000000, %10101010, %10101010, %10101010, %10101010, .byt %00000000, %00000000, %00000000, %00000000, %10101010, %10101010, %10101010, %10101010, .byt %00000000, %00000000, %01010101, %01010101, %01010101, %01010101 #endif nt_highlight_payload_addr_lsb: .byt <nt_highlight_payload_local, <nt_highlight_payload_online, <nt_highlight_payload_donation nt_highlight_payload_addr_msb: .byt >nt_highlight_payload_local, >nt_highlight_payload_online, >nt_highlight_payload_donation .) .)
25.994565
97
0.732176
a7b0ebafbb3304f2a2b0e012af96db235194ae14
1,300
asm
Assembly
programs/oeis/195/A195171.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/195/A195171.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/195/A195171.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A195171: a(n) = 5*n - floor(n*r), where r=(1+sqrt(5))/2 (the golden ratio). ; 0,4,7,11,14,17,21,24,28,31,34,38,41,44,48,51,55,58,61,65,68,72,75,78,82,85,88,92,95,99,102,105,109,112,115,119,122,126,129,132,136,139,143,146,149,153,156,159,163,166,170,173,176,180,183,187,190,193,197,200,203,207,210,214,217,220,224,227,230,234,237,241,244,247,251,254,258,261,264,268,271,274,278,281,285,288,291,295,298,301,305,308,312,315,318,322,325,329,332,335,339,342,345,349,352,356,359,362,366,369,373,376,379,383,386,389,393,396,400,403,406,410,413,416,420,423,427,430,433,437,440,444,447,450,454,457,460,464,467,471,474,477,481,484,488,491,494,498,501,504,508,511,515,518,521,525,528,531,535,538,542,545,548,552,555,559,562,565,569,572,575,579,582,586,589,592,596,599,602,606,609,613,616,619,623,626,630,633,636,640,643,646,650,653,657,660,663,667,670,674,677,680,684,687,690,694,697,701,704,707,711,714,717,721,724,728,731,734,738,741,745,748,751,755,758,761,765,768,772,775,778,782,785,788,792,795,799,802,805,809,812,816,819,822,826,829,832,836,839,843 mov $3,$0 mov $4,$0 mov $6,$0 lpb $6 mov $0,$3 sub $6,1 sub $0,$6 sub $0,1 cal $0,96270 ; Fixed point of the morphism 0->01, 1->011. gcd $0,52090 mul $0,8 mov $1,$0 div $1,416711 add $5,$1 lpe mov $1,$5 mov $2,$4 mul $2,3 add $1,$2
56.521739
968
0.69
f9e10bbaba51fd644212f13bdd24e6bdf77c7e83
5,750
asm
Assembly
lab6.asm
olivamadrigal/64bit_addition_in_x86_assembly
4e0c66a82bbb72f8961d2aa4f842f6df0b995b92
[ "MIT" ]
null
null
null
lab6.asm
olivamadrigal/64bit_addition_in_x86_assembly
4e0c66a82bbb72f8961d2aa4f842f6df0b995b92
[ "MIT" ]
null
null
null
lab6.asm
olivamadrigal/64bit_addition_in_x86_assembly
4e0c66a82bbb72f8961d2aa4f842f6df0b995b92
[ "MIT" ]
null
null
null
TITLE Lab6 (Lab6.asm) ;// Clare Nguyen ;// CIS21JA ;// Samira C. Oliva ;// Program adds two 64-bit hexadecimal values and prints the sum. ;// It uses the stack, registers, implements procedures and macros. INCLUDE Irvine32.inc ;//------------------------------------- ;//prints a string ;//receives: address of string to print mWriteStr MACRO push edx mov edx,OFFSET buffer call WriteString pop edx ENDM ;//----------------------------------- ;//prints a signle space character printSpace MACRO push eax mov al,' ' call WriteChar pop eax ENDM ;//----------------------------------- ;//prints a single character printChar MACRO char push eax mov al,char call WriteChar pop eax ENDM .stack .data promptUpperHalf BYTE "Please enter upper half of the 64-bit-> ",0 promptLowerHalf BYTE "Please enter upper lower of the 64-bit-> ",0 errorMessage BYTE "ERROR: sum exceeds 64-bits ",0 num1 QWORD ? num2 QWORD ? sum QWORD ? .code main PROC ;//;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;getUserInput add PART.I mov edx,OFFSET promptUpperHalf call WriteString call ReadHex mov DWORD PTR num1+4, eax mov edx,OFFSET promptLowerHalf call WriteString call ReadHex mov DWORD PTR num1,eax mov edx,OFFSET promptUpperHalf call WriteString call ReadHex mov DWORD PTR num2+4, eax mov edx,OFFSET promptLowerHalf call WriteString call ReadHex mov DWORD PTR num2,eax ;//pass lowerHalf of num1, lowerHald of num2, carryVal = 0 mov ecx,0 sub esp,4 ;//save room for the return value push DWORD PTR num1 ;//pass lowerHalf of num1 push DWORD PTR num2 ;//pass lowerHald of num2 push DWORD PTR ecx ;//pass carryValue set to 0 push OFFSET sum ;//(&sum) pass by address call add64BitInts ;//carry = add64BitInts (num1, num2, carry, &sum) pop ecx; ;// add PART. II sub esp,4 push DWORD PTR num1+4 push DWORD PTR num2+4 push DWORD PTR ecx push OFFSET sum+4 call add64BitInts pop ecx; ;// PART.III if sum is withing 64 bits call printer else errMsg ;// use the carry bit to determine this cmp ecx,1 jne successPrint mov edx,OFFSET errorMessage call WriteString jmp theEnd successPrint: mov ebx,OFFSET num1 ;// printer(&num1, &num2, &sum) mov ecx,OFFSET num2 mov edx,OFFSET sum call printer jmp theEnd main ENDP ;//--------------------------------------------------------------------------; ;// ;//--------------------------------------------------------------------------; ;// Perfoms addition of 32-bit integers. ;// Receives: EDI, ESI (two unsigned integers) , EAX (carryValue = 0) ;// Returns: EAX (the new carry), &sum ;// Requires: Nothing ;//--------------------------------------------------------------------------; add64BitInts PROC push ebp ;; //save ebp value mov ebp,esp ;; //set ebp to esp value ;; //pushad;; save all the registers push eax ;; //save registers push ebx push ecx push edx push esi push edi ;//now use the registers inside the procedure mov esi,[ebp+20] ;// esi=num1 mov edi,[ebp+16] ;// edi=num2 mov ebx,[ebp+12] ;// ebx =0 (carrybit) mov eax,[ebp+8] ;// eax is ptr---> sum mov ecx,32 ;// set counter addIntsBitByBit: push esi ;//save esi ; mov eax,esi and esi,1 ;//use esi ; and eax,1 ;;;// eax=num1 AND 1 = (ith bit of num1) push edi ;//save edi ; mov ebx,edi and edi,1 ;//use edi ; and ebx,1 ;;;// ebx=num2 AND 1 = (ith bit of num2) ;// bit i of sum = a xor b xor c mov edx,esi ;// edx = esi = num1 ith bit xor edx,edi ;// xor edx,ebx (a xor b) xor edx,ebx ; // edx(ith bit num1) xor ebx(carryValue) //edx = a xor b xor c push ecx ;//save counter value and use ecx temporarily mov ecx,[eax] ;//mov ecx,[ebx]// DEREFERENCE THE SUM or ecx,edx ror ecx,1 mov [eax],ecx pop ecx ;//restore ecx (may change later optimize to only one push and pop with adding push ecx ;//:::push ecx to stack so can use it temporarily push edx ;//:::push edx to stack and use it temporarily mov ecx,esi ;// ecx = num1 ith bit and ecx,edi ;// ecx AND num2 ith bit (a and b) mov edx,esi ;// edx = num1 ith bit and edx,ebx ;// (a and c) or ecx,edx ;// (a and b) or (a and c) mov edx,edi ;// edx = num2 ith bit and edx,ebx ;// num2 ith bit AND c or ecx,edx ;// [(a and b) or (a and c)] OR (b and c) mov ebx,ecx ;// UPDATE C VALUE pop edx ;// restore temp edx pop ecx ;// restore the count pop edi ;// restore edi = num2 ith bit pop esi ;// restore esi = num1 ith bit shr esi,1 shr edi,1 loop addIntsBitByBit mov [ebp+24],ebx ;//THE RETURN VALUE!!! ;//restore registers pop edi pop esi pop edx pop ecx pop ebx pop eax pop ebp ret 16 add64BitInts ENDP ;//--------------------------------------------------------------------------; ;// Perfoms: prints three values to screen (num1, num2 and sum) ;// Receives: EBX (num1), ECX(num2), EDX (sum) ;// Returns: Nothing ;// Requires: Nothing ;// -----------------------------------------------------------------------------; printer PROC mov eax,[ebx+4] call WriteHex mov eax,[ebx] call WriteHex printSpace printChar '+' printSpace mov eax,[ecx+4] call WriteHex mov eax,[ecx] call WriteHex printSpace printChar '=' printSpace mov eax,[edx+4] call WriteHex mov eax,[edx] call WriteHex call crlf printer ENDP theEnd: exit END main COMMENT & AFTER SET mov ecx,0 Please enter upper half of the 64-bit-> efffffff Please enter upper half of the 64-bit-> ffffffff Please enter upper half of the 64-bit-> 0 Please enter upper half of the 64-bit-> 1 EFFFFFFFFFFFFFFF + 0000000000000001 = F000000000000000 Press any key to continue . . . &
25.900901
92
0.599478
5bc27e3a1f4e2e24ff1e38bf87b70a65e08b4f4c
1,654
asm
Assembly
Libraries/source/c/pagesize.asm
agguro/linux-nasm
3e72083c3db6d7118eb2aa430b73e0d20e88456b
[ "Unlicense" ]
6
2020-07-19T18:34:43.000Z
2022-03-26T10:21:09.000Z
Libraries/source/c/pagesize.asm
NrdyBhu1/linux-nasm
3e72083c3db6d7118eb2aa430b73e0d20e88456b
[ "Unlicense" ]
null
null
null
Libraries/source/c/pagesize.asm
NrdyBhu1/linux-nasm
3e72083c3db6d7118eb2aa430b73e0d20e88456b
[ "Unlicense" ]
3
2020-07-19T18:35:10.000Z
2021-07-25T17:34:50.000Z
;name: pagesize.asm ; ;description: Get the pagesize programmatically of a platform in rax ; The function doesn't need input parameters. ; ;source: https://stackoverflow.com/questions/3351940/detecting-the-memory-page-size/3351960#3351960 bits 64 %include "../functions/functions.inc" section .text global pagesize pagesize: push r15 ;save help registers push r14 push r10 push r9 push r8 push rdx push rsi push rdi xor r14,r14 inc r14 mov r15,r14 .repeat: shl r15,1 syscall mmap,0,r15,PROT_NONE,MAP_ANONYMOUS | MAP_PRIVATE,-1,0 and rax,rax js .failed mov rdx,rax mov r15,rax add r15,r14 syscall munmap,r15,r14 mov r8,rax ;save error code mov r15,r14 shl r15,1 syscall munmap,rdx,r15 mov rax,r14 and r8,r8 ;if r8==0 then we have our pagesize jz .exit clc ;clear carry bit rcl r14,1 ;we do a rotate instead of a shift jc .failed ;to avoid an endless loop jmp .repeat ;still not there .failed: mov rax,-1 .exit: pop rdi ;restore used registers pop rsi pop rdx pop r8 pop r9 pop r10 pop r14 pop r15 ret
27.114754
99
0.464329
dbbfc60f7997f36f06f95d89571177f094d732e0
2,025
asm
Assembly
bootloader/bootloader.asm
lsanchesdev/LoS
51e82ffd909a515e747e90b833dc1b1eb6c7a3e1
[ "MIT" ]
null
null
null
bootloader/bootloader.asm
lsanchesdev/LoS
51e82ffd909a515e747e90b833dc1b1eb6c7a3e1
[ "MIT" ]
null
null
null
bootloader/bootloader.asm
lsanchesdev/LoS
51e82ffd909a515e747e90b833dc1b1eb6c7a3e1
[ "MIT" ]
null
null
null
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Vars and Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; [BITS 16] ; 16-bits architecture [ORG 0x7C00] ; Where the code will be in memory after it's loaded [extern main] ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Instructions and Loop ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; MOV SI, MainMessage ; Sends the string to SI CALL Echo ; Call print function MOV SI, SecondMessage ; Send another string to SI CALL Echo ; Call print function call main JMP $ ; Infinite Loop ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Functions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PrintChar: ; Function Name ; Assume that ASCII value is in register AL MOV AH, 0x0E ; Tell BIOS that we need to print one charater on screen. MOV BH, 0x00 ; Page number MOV BL, 0x07 ; Text attribute 0x07 is lightgrey font on black background INT 0x10 ; Call video interrupt RET ; Return Echo: ; Function Name ; Assume that string starting pointer is in register SI next_character: ; Function to fetch next character from string MOV AL, [SI] ; Get a byte from string and store in AL register INC SI ; Increment SI pointer OR AL, AL ; Check if value in AL is zero (end of string) JZ exit_function ; If end then return CALL PrintChar ; Else print the character which is in AL register JMP next_character ; Fetch next character from string exit_function: ; End next_character RET ; Return ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Data ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; 0x0a = Line Break/Feed ; 0 = eos - End of String MainMessage db 'Hello LoS 16-bits', 0x0A, 0x0D, 0 ; String ending with 0 SecondMessage db '[Waiting for Kernel]', 0x0A, 0x0D, 0 ; String ending with 0 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Filling the boot sector ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; TIMES 510 - ($ - $$) db 0 ; Fill the rest of sector with 0 DW 0xAA55 ; Boot Signature at the end of the loader
34.322034
77
0.553086
fc7f2c0e954369afc1db2858863de03f37b89698
1,466
asm
Assembly
VM/src/Linux/VPU/x86_64/organized/decoder.asm
ozdevguy/Ditto
70ff02ae1f5483e168ba4900d28bcdfcacfe22bd
[ "Apache-2.0" ]
null
null
null
VM/src/Linux/VPU/x86_64/organized/decoder.asm
ozdevguy/Ditto
70ff02ae1f5483e168ba4900d28bcdfcacfe22bd
[ "Apache-2.0" ]
null
null
null
VM/src/Linux/VPU/x86_64/organized/decoder.asm
ozdevguy/Ditto
70ff02ae1f5483e168ba4900d28bcdfcacfe22bd
[ "Apache-2.0" ]
null
null
null
#Decode the instruction. ivpu_decoder_dispatch: #If this is an immediate, unconditional branch, we can skip the decoding process and perform an immediate jump. mov rbx, 0x400000 #Create a mask for the jump bit within the instruction. test r15, rbx #Check the instruction's jump bit. jne ivpu_immediateJump #If the instruction's jump bit is set, stop decoding the current instruction and perform an immediate jump. #Since rax and rdx are the write back buffers, and we don't need them yet, let's write the register address for read 0 into rax, and the register address for read 1 into rdx. mov rax, 0xF #Create a mask for read 0. and rax, r15 #Get the register address for read 0 using the mask. shl rax, 0x3 #Shift the address to the right by 5 bits to bit position 2 (in order to preserve addressing). mov rdx, 0xF00 #Create a mask for read 1. and rdx, r15 #Get the register address for read 1 using the mask. shr rdx, 0x5 #Shift the address to the left by 3 to bit position 2 (in order to preserve addressing). mov rbx, 0x1F0000 #Create a mask for the addressing mode and store it in rbx. and rbx, r15 #Pull the addressing mode from the instruction. shr rbx, 0xD #Shift the addressing mode to bit positon 0. mov rcx, 0x0 #Clear rcx (read 1) jmp [r14 + rbx + 2208] #Jump to the correct read function.
50.551724
175
0.682128
bde28f437b3d0d13710c0e95bbf6a6f7ef439269
396
asm
Assembly
ace/assembly/src/test.asm
ale-cci/Appunti
9aa76eb46b7a984776f50260e598c9de1fa6317a
[ "MIT" ]
null
null
null
ace/assembly/src/test.asm
ale-cci/Appunti
9aa76eb46b7a984776f50260e598c9de1fa6317a
[ "MIT" ]
null
null
null
ace/assembly/src/test.asm
ale-cci/Appunti
9aa76eb46b7a984776f50260e598c9de1fa6317a
[ "MIT" ]
null
null
null
; Test program ; Extended error 2: maybe you have forgot .exe ; ; CodeSegment:Offset codice-macchina istruzione ; u - show disassembled code ; r - shows register {IP: Instruction Pointer, ; Bottom right: flags, ; } ; d - memory dump ; p - proceed: execute single instruction start: mov bx, 0ah mov ax, [bx] end: mov ax, 4c00h int 21h
22
50
0.606061
9717e361fbd74ff873bfedf2362b38c1e9618bb4
212
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sccz80/acosh_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sccz80/acosh_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sccz80/acosh_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
null
null
null
SECTION code_fp_math32 PUBLIC acosh_fastcall EXTERN _m32_acoshf defc acosh_fastcall = _m32_acoshf ; SDCC bridge for Classic IF __CLASSIC PUBLIC _acosh_fastcall defc _acosh_fastcall = acosh_fastcall ENDIF
15.142857
37
0.834906
bff28d77b17d7eb89e93e0b9c68b8f570e929f23
7,033
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0_notsx.log_21829_865.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0_notsx.log_21829_865.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0_notsx.log_21829_865.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0xb6ed, %rsi lea addresses_UC_ht+0x46b5, %rdi nop nop nop nop nop cmp $55154, %rax mov $21, %rcx rep movsw nop nop nop nop cmp %r14, %r14 lea addresses_WT_ht+0x14eed, %rsi lea addresses_normal_ht+0x6eed, %rdi clflush (%rsi) nop nop nop nop and $53126, %rax mov $71, %rcx rep movsw nop nop and $33368, %rsi lea addresses_UC_ht+0xf04d, %rsi lea addresses_D_ht+0x19b85, %rdi nop nop nop nop nop sub $50832, %rbp mov $1, %rcx rep movsq nop nop nop nop nop xor $35553, %rcx lea addresses_WC_ht+0x19dad, %rsi lea addresses_normal_ht+0xc3ed, %rdi nop nop nop nop xor $22618, %r13 mov $45, %rcx rep movsq nop nop nop nop nop and $16944, %rbp lea addresses_normal_ht+0x52ad, %rbp nop nop nop nop nop add %r13, %r13 movups (%rbp), %xmm7 vpextrq $0, %xmm7, %r14 xor %rax, %rax lea addresses_UC_ht+0x10fed, %r14 xor %rcx, %rcx movb $0x61, (%r14) nop nop nop nop nop xor %r13, %r13 lea addresses_A_ht+0xa463, %r13 nop nop nop nop nop dec %rcx movw $0x6162, (%r13) sub $45844, %rdi lea addresses_WC_ht+0x1b99d, %rcx and %rbp, %rbp mov $0x6162636465666768, %r13 movq %r13, (%rcx) nop and %rbp, %rbp pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r14 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %rbx push %rcx push %rdx push %rsi // Store mov $0xc28, %rcx nop nop sub $7667, %rdx movw $0x5152, (%rcx) dec %rdx // Store lea addresses_normal+0x272d, %rsi nop nop nop nop xor $56165, %r14 movl $0x51525354, (%rsi) nop nop nop nop sub $56420, %r10 // Load lea addresses_US+0x168bd, %rbx sub %r12, %r12 mov (%rbx), %r14 nop nop nop nop and $4702, %rcx // Store lea addresses_D+0xb25, %r12 nop nop sub %r10, %r10 mov $0x5152535455565758, %rdx movq %rdx, %xmm0 movups %xmm0, (%r12) nop nop nop nop sub $16013, %rsi // Faulty Load lea addresses_US+0x10eed, %rbx nop nop nop and $31046, %rsi movb (%rbx), %dl lea oracles, %rbx and $0xff, %rdx shlq $12, %rdx mov (%rbx,%rdx,1), %rdx pop %rsi pop %rdx pop %rcx pop %rbx pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_US', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 4}} {'src': {'type': 'addresses_US', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 3}} [Faulty Load] {'src': {'type': 'addresses_US', 'AVXalign': True, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': True}} {'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}} {'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': True, 'congruent': 3}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
33.490476
2,999
0.657188
094b71eb229bda255cd996801735dfb570e16801
180
asm
Assembly
libsrc/_DEVELOPMENT/stdio/c/sccz80/rewind_unlocked.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/stdio/c/sccz80/rewind_unlocked.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/stdio/c/sccz80/rewind_unlocked.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; void rewind_unlocked(FILE *stream) SECTION code_stdio PUBLIC rewind_unlocked EXTERN asm_rewind_unlocked rewind_unlocked: push hl pop ix jp asm_rewind_unlocked
11.25
36
0.772222
c8eeb08bc9ee4c0861d658e7d47a324ee566c4b5
832
asm
Assembly
oeis/142/A142807.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142807.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142807.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142807: Primes congruent to 9 mod 61. ; Submitted by Jon Maiga ; 131,619,863,1229,2083,2693,3181,3547,4157,4523,4889,5011,5743,5987,6353,6719,6841,7207,7451,7573,7817,9281,9403,9769,10501,10867,12697,12941,13063,14771,15137,15259,15991,17333,18553,18797,18919,19163,20261,20627,20749,21481,22091,23189,23311,23677,24043,25873,26849,27337,27581,27947,28069,29167,29411,30509,30631,31607,31729,31973,33071,35023,35267,35999,37097,37463,37951,38317,38561,39293,39659,40879,41611,42221,42709,42953,43319,43441,44417,47711,48809,49297,49663,50273,51859,52103,52957 mov $1,4 mov $2,$0 add $2,2 pow $2,2 lpb $2 sub $2,1 mov $3,$1 mul $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,61 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 sub $0,60 mul $0,2 sub $0,1
33.28
496
0.728365
ce83c29fad800326c63aefa72130acf440a6c98f
356
asm
Assembly
programs/oeis/342/A342482.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/342/A342482.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/342/A342482.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A342482: a(n) = n*(2^(n-1) - n - 1). ; 0,12,50,150,392,952,2214,5010,11132,24420,53066,114478,245520,524016,1113806,2358954,4980356,10485340,22019634,46136838,96468440,201325992,419429750,872414530,1811938572,3758095572,7784627354,16106126430,33285995552,68719475680 add $0,3 mov $1,2 pow $1,$0 mul $1,$0 div $1,2 sub $1,$0 pow $0,2 sub $1,$0 mov $0,$1
27.384615
229
0.724719
d93bd8eda426d738616cf0e827e0faa959e00345
106
asm
Assembly
pkgs/tools/yasm/src/libyasm/tests/opt-align2.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
pkgs/tools/yasm/src/libyasm/tests/opt-align2.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
pkgs/tools/yasm/src/libyasm/tests/opt-align2.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
je label1 je label1 times 4 nop times 8 nop align 8 times 110 nop je label2 label1: times 128 nop label2:
9.636364
13
0.773585
a277891f8f7e550eaa5139f4a7a98f06f572c71c
7,030
asm
Assembly
tests/BasicTest.r.asm
sdsmdg/RISC-processor
ca4f6105e41c906b7df2fedfc671bde2852e786e
[ "MIT" ]
43
2017-07-11T06:33:08.000Z
2022-03-25T12:21:00.000Z
tests/BasicTest.r.asm
sdsmdg/RISC-processor
ca4f6105e41c906b7df2fedfc671bde2852e786e
[ "MIT" ]
null
null
null
tests/BasicTest.r.asm
sdsmdg/RISC-processor
ca4f6105e41c906b7df2fedfc671bde2852e786e
[ "MIT" ]
7
2017-09-27T15:24:04.000Z
2021-02-23T18:17:23.000Z
; This test is modified version of original content provided ; under CC-by-NC-SA license by MIT OCW. ; Basic test of Processor ; Primary Tests: ; > Memory Tests: Write to memory address : 0x3FC ; > Register Tests: Load each register with its index ; > Instruction Tests: Test subset of instructions: ; ADD, SUB, AND, OR, XOR, "A" (LDR), SHL, SHR, SRA, ; CMPEQ, CMPLT, CMPLE, ADDC, SUBC, ANDC, ORC, XORC, ; ST, LD, SHLC, SHRC, SRAC, CMPEQC, CMPLTC, CMPLEC ; This program ends after 250 cycles, following writes to memory are ; performed during the program ; on cycle 14: should write 0x00000002 PC = 0x034 ; on cycle 41: should write 0x0000011A PC = 0x0A0 ; on cycle 69: should write 0x00011F12 PC = 0x110 ; on cycle 112: should write 0x047C7B8C PC = 0x1BC ; on cycle 126: should write 0xC7B8C7A7 PC = 0x1F4 ; on cycle 158: should write 0xA17A11C7 PC = 0x274 ; on cycle 188: should write 0xA1638E2C PC = 0x2EC ; on cycle 235: should write 0x871C71C7 PC = 0x3A8 ; on cycle 242: should write 0x47A2B9C0 PC = 0x3C4 ; ; First load each register with its ; number using only OP instructions ; AND %r31, %r31, %r0 CMPEQ %r31, %r31, %r1 ADD %r1, %r1, %r2 OR %r2, %r1, %r3 SHL %r1, %r2, %r4 SHL %r0, %r1, %r0 XOR %r0, %r1, %r0 SHL %r0, %r1, %r0 XOR %r0, %r2, %r0 SHL %r0, %r1, %r0 XOR %r0, %r3, %r0 SHL %r0, %r1, %r0 XOR %r0, %r4, %r0 ST %r0, 0x3FC, %r31 ; cycle 14: should write 0x2 XOR %r4, %r1, %r5 SHL %r3, %r1, %r6 OR %r2, %r5, %r7 SHL %r1, %r3, %r8 ADD %r5, %r5, %r9 SUB %r9, %r1, %r9 ADD %r3, %r7, %r10 OR %r8, %r3, %r11 SHL %r6, %r10, %r12 SHR %r12, %r9, %r12 SHL %r0, %r1, %r0 XOR %r0, %r5, %r0 SHL %r0, %r1, %r0 XOR %r0, %r6, %r0 SHL %r0, %r1, %r0 XOR %r0, %r7, %r0 SHL %r0, %r1, %r0 XOR %r0, %r8, %r0 SHL %r0, %r1, %r0 XOR %r0, %r9, %r0 SHL %r0, %r1, %r0 XOR %r0, %r10, %r0 SHL %r0, %r1, %r0 XOR %r0, %r11, %r0 SHL %r0, %r1, %r0 XOR %r0, %r12, %r0 ST %r0,0x3FC, %r31 ; cycle 41: should write 0x11A ADD %r7, %r6, %r13 ADD %r9, %r5, %r14 XOR %r10, %r5, %r15 XOR %r15, %r7, %r16 ADD %r16, %r16, %r16 ADD %r4, %r13, %r17 ADD %r15, %r15, %r18 SUB %r18, %r12, %r18 OR %r18, %r1, %r19 CMPLT %r17, %r18, %r20 ADD %r19, %r20, %r20 SHL %r0, %r1, %r0 XOR %r0, %r13, %r0 SHL %r0, %r1, %r0 XOR %r0, %r14, %r0 SHL %r0, %r1, %r0 XOR %r0, %r15, %r0 SHL %r0, %r1, %r0 XOR %r0, %r16, %r0 SHL %r0, %r1, %r0 XOR %r0, %r17, %r0 SHL %r0, %r1, %r0 XOR %r0, %r18, %r0 SHL %r0, %r1, %r0 XOR %r0, %r19, %r0 SHL %r0, %r1, %r0 XOR %r0, %r20, %r0 ST %r0,0x3FC,%r31 ; cycle 69: should write 0x11F12 SHL %r16, %r20, %r21 SHL %r21, %r7, %r21 SRA %r21, %r20, %r21 SRA %r21, %r9, %r21 SUB %r17, %r21, %r21 CMPLE %r19, %r20, %r22 ADD %r22, %r21, %r22 OR %r20, %r3, %r23 SHL %r6, %r2, %r24 SHL %r5, %r3, %r25 SUB %r25, %r15, %r25 SUB %r4, %r24, %r26 SUB %r6, %r26, %r26 ADD %r14, %r13, %r27 SHL %r27, %r27, %r28 SHR %r28, %r27, %r28 ADD %r1, %r28, %r28 SHL %r15, %r23, %r29 SRA %r29, %r23, %r29 ADD %r29, %r14, %r29 AND %r29, %r28, %r30 XOR %r30, %r2, %r30 SHL %r0, %r1, %r0 XOR %r0, %r21, %r0 SHL %r0, %r1, %r0 XOR %r0, %r22, %r0 SHL %r0, %r1, %r0 XOR %r0, %r23, %r0 SHL %r0, %r1, %r0 XOR %r0, %r24, %r0 SHL %r0, %r1, %r0 XOR %r0, %r25, %r0 SHL %r0, %r1, %r0 XOR %r0, %r26, %r0 SHL %r0, %r1, %r0 XOR %r0, %r27, %r0 SHL %r0, %r1, %r0 XOR %r0, %r28, %r0 SHL %r0, %r1, %r0 XOR %r0, %r29, %r0 SHL %r0, %r1, %r0 XOR %r0, %r30, %r0 ST %r0,0x3FC,%r31 ; cycle 112: should write 0x47C7B8C ; ; Now test OPC instructions ; by loading setting each reg ; to 2^reg+1 - 1 ; ORC %r31, 3, %r1 XORC %r1, 4, %r2 ORC %r2, -1, %r3 ANDC %r3, 15, %r3 ADDC %r3, 16, %r4 SHL %r0, %r1, %r0 XOR %r0, %r1, %r0 SHL %r0, %r1, %r0 XOR %r0, %r2, %r0 SHL %r0, %r1, %r0 XOR %r0, %r3, %r0 SHL %r0, %r1, %r0 XOR %r0, %r4, %r0 ST %r0,0x3FC,%r31 ; cycle 126: should write 0xC7B8C7A7 SUBC %r4, -32, %r5 CMPEQC %r5, 63, %r6 ADDC %r6, 126, %r6 CMPLTC %r6, 128, %r7 SUBC %r7, -254, %r7 CMPLECr31, 7, %r8 ORC %r8, 0x1fe, %r8 CMPEQC %r8, 0x1fe, %r9 ADDC %r9, 0x3ff, %r9 CMPLTC %r9, 0x3fe, %r10 XORC %r10, 0x7ff, %r10 CMPLEC %r10, 0x7fe, %r11 XORC %r11, 0xfff, %r11 SHLC %r11, 1, %r12 XORC %r12, 1, %r12 SHL %r0, %r1, %r0 XOR %r0, %r5, %r0 SHL %r0, %r1, %r0 XOR %r0, %r6, %r0 SHL %r0, %r1, %r0 XOR %r0, %r7, %r0 SHL %r0, %r1, %r0 XOR %r0, %r8, %r0 SHL %r0, %r1, %r0 XOR %r0, %r9, %r0 SHL %r0, %r1, %r0 XOR %r0, %r10, %r0 SHL %r0, %r1, %r0 XOR %r0, %r11, %r0 SHL %r0, %r1, %r0 XOR %r0, %r12, %r0 ST %r0,0x3FC,%r31 ; cycle 158: should write 0xA17A11C7 ADDC %r31, -1, %r13 SHRC %r13, 18, %r13 ADDC %r13, 0x4000, %r14 ADDC %r14, 1, %r15 ADDC %r15, 0x7fff, %r15 ADDC %r31, -1, %r16 SHRC %r16, 15, %r16 SUBC %r31, 16384, %r17 SHRC %r17, 14, %r17 SHLC %r17, 1, %r18 ADDC %r18, 1, %r18 SHLC %r18, 1, %r19 ADDC %r19, 1, %r19 SHL %r0, %r1, %r0 XOR %r0, %r13, %r0 SHL %r0, %r1, %r0 XOR %r0, %r14, %r0 SHL %r0, %r1, %r0 XOR %r0, %r15, %r0 SHL %r0, %r1, %r0 XOR %r0, %r16, %r0 SHL %r0, %r1, %r0 XOR %r0, %r17, %r0 SHL %r0, %r1, %r0 XOR %r0, %r18, %r0 SHL %r0, %r1, %r0 XOR %r0, %r19, %r0 SHL %r0, %r1, %r0 XOR %r0, %r20, %r0 ST %r0,0x3FC,%r31 ; cycle 188: should write 0xA1638E2C SUBC %r31, 1, %r20 SRAC %r20, 31, %r20 SHRC %r20, 11, %r20 SRAC %r20, 12, %r21 SHLC %r21, 13, %r21 ADDC %r21, 8191, %r21 ANDC %r21, -1, %r22 SHLC %r22, 1, %r22 ADDC %r22, 1, %r22 SHLC %r22, 1, %r23 SUBC %r23, -1, %r23 ORC %r31, 0x3ff, %r24 SHLC %r24, 15, %r24 XORC %r24, 0x7fff, %r24 SUBC %r31, 1, %r25 SHRC %r25, 6, %r25 SUBC %r31, 1, %r26 SHRC %r26, 5, %r26 SUBC %r31, 1, %r27 SHRC %r27, 4, %r27 SUBC %r31, 1, %r28 SHRC %r28, 3, %r28 SUBC %r31, 1, %r29 SHRC %r29, 2, %r29 SUBC %r31, 1, %r30 SHRC %r30, 1, %r30 SHL %r0, %r1, %r0 XOR %r0, %r21, %r0 SHL %r0, %r1, %r0 XOR %r0, %r22, %r0 SHL %r0, %r1, %r0 XOR %r0, %r23, %r0 SHL %r0, %r1, %r0 XOR %r0, %r24, %r0 SHL %r0, %r1, %r0 XOR %r0, %r25, %r0 SHL %r0, %r1, %r0 XOR %r0, %r26, %r0 SHL %r0, %r1, %r0 XOR %r0, %r27, %r0 SHL %r0, %r1, %r0 XOR %r0, %r28, %r0 SHL %r0, %r1, %r0 XOR %r0, %r29, %r0 SHL %r0, %r1, %r0 XOR %r0, %r30, %r0 ST %r0,0x3FC,%r31 ; cycle 235: should write 0x871C71C7 ; test LD and ST LD %r31, 0, %r2 ; location 0 SHL %r0, %r1, %r0 XOR %r0, %r2, %r0 LDr1,5,r3 ; location 8 SHL %r0, %r1, %r0 XOR %r0, %r3, %r0 ST %r0,0x3FC,%r31 ; cycle 242: should write 0x47A2B9C0 .breakpoint ADD %r31, %r31, %r31 ADD %r31, %r31, %r31 ADD %r31, %r31, %r31 ADD %r31, %r31, %r31 ADD %r31, %r31, %r31 ADD %r31, %r31, %r31 ADD %r31, %r31, %r31 ADD %r31, %r31, %r31 ADD %r31, %r31, %r31 ADD %r31, %r31, %r31 ADD %r31, %r31, %r31 ADD %r31, %r31, %r31 ADD %r31, %r31, %r31
22.899023
68
0.539687
d54dca6f92c5503475c115769a17880d63653923
1,871
asm
Assembly
programs/oeis/006/A006331.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/006/A006331.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/006/A006331.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A006331: a(n) = n*(n+1)*(2*n+1)/3. ; 0,2,10,28,60,110,182,280,408,570,770,1012,1300,1638,2030,2480,2992,3570,4218,4940,5740,6622,7590,8648,9800,11050,12402,13860,15428,17110,18910,20832,22880,25058,27370,29820,32412,35150,38038,41080,44280,47642,51170,54868,58740,62790,67022,71440,76048,80850,85850,91052,96460,102078,107910,113960,120232,126730,133458,140420,147620,155062,162750,170688,178880,187330,196042,205020,214268,223790,233590,243672,254040,264698,275650,286900,298452,310310,322478,334960,347760,360882,374330,388108,402220,416670,431462,446600,462088,477930,494130,510692,527620,544918,562590,580640,599072,617890,637098,656700,676700,697102,717910,739128,760760,782810,805282,828180,851508,875270,899470,924112,949200,974738,1000730,1027180,1054092,1081470,1109318,1137640,1166440,1195722,1225490,1255748,1286500,1317750,1349502,1381760,1414528,1447810,1481610,1515932,1550780,1586158,1622070,1658520,1695512,1733050,1771138,1809780,1848980,1888742,1929070,1969968,2011440,2053490,2096122,2139340,2183148,2227550,2272550,2318152,2364360,2411178,2458610,2506660,2555332,2604630,2654558,2705120,2756320,2808162,2860650,2913788,2967580,3022030,3077142,3132920,3189368,3246490,3304290,3362772,3421940,3481798,3542350,3603600,3665552,3728210,3791578,3855660,3920460,3985982,4052230,4119208,4186920,4255370,4324562,4394500,4465188,4536630,4608830,4681792,4755520,4830018,4905290,4981340,5058172,5135790,5214198,5293400,5373400,5454202,5535810,5618228,5701460,5785510,5870382,5956080,6042608,6129970,6218170,6307212,6397100,6487838,6579430,6671880,6765192,6859370,6954418,7050340,7147140,7244822,7343390,7442848,7543200,7644450,7746602,7849660,7953628,8058510,8164310,8271032,8378680,8487258,8596770,8707220,8818612,8930950,9044238,9158480,9273680,9389842,9506970,9625068,9744140,9864190,9985222,10107240,10230248,10354250 mul $0,-2 bin $0,3 sub $1,$0 div $1,2
233.875
1,794
0.843934
7b70120fcd40b9f52e1bd4442a988f26520c337f
847
asm
Assembly
dataToTestOn/asm/3/prog02.asm
Epacik/8051-ASM-Plugin
3e2cf55c82733d66198bd41a68f8363c0129043b
[ "MIT" ]
1
2020-11-10T18:42:46.000Z
2020-11-10T18:42:46.000Z
dataToTestOn/asm/3/prog02.asm
Epacik/8051-ASM-Plugin
3e2cf55c82733d66198bd41a68f8363c0129043b
[ "MIT" ]
null
null
null
dataToTestOn/asm/3/prog02.asm
Epacik/8051-ASM-Plugin
3e2cf55c82733d66198bd41a68f8363c0129043b
[ "MIT" ]
null
null
null
LJMP START ORG 100H START: CALL LCD_CLR KLAWISZ: MOV A, #0 CALL WAIT_KEY ; 'lewa' cyfra ;Przesuń bity w akumulatorze w lewo RL A RL A RL A RL A ;przenieś zawartość do R3 MOV R3, A ; pobierz prawą cyfrę CALL WAIT_KEY ; bitwise or na A i R3 żeby połączyć 2 cyfry w liczbę 2 cyfrową ORL A, R3 MOV R2, A CALL LCD_CLR MOV A, R2 CALL HTB CALL WRITE_HEX SJMP KLAWISZ HTB: MOV R0,#00h MOV R1,#00h CJNE A,#00h,CALC_HTB RET CALC_HTB: MOV B,#100 ; dzielenie przez 100 DIV AB MOV R0,A ; zapisz Akumulator do R0 MOV A,B MOV B,#10 ; podziel przez 10 DIV AB SWAP A MOV R1,A ; zapisz dziesiątki do R1 MOV A,B ORL A,R1 MOV R1,A ;zapisz jedności do R1 RET
14.859649
67
0.5549
c2b70e7ec08334b60a219a24baf261e10157d615
616
asm
Assembly
oeis/267/A267799.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/267/A267799.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/267/A267799.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A267799: a(n) = (1 + 2^n + 3^n)/2. ; 3,7,18,49,138,397,1158,3409,10098,30037,89598,267769,801258,2399677,7190838,21556129,64635618,193841317,581392878,1743916489,5231225178,15692626957,47075783718,141223156849,423661081938,1270966468597,3812865851358,11438530445209,34315457117898,102946102918237,308837771883798,926512241909569,2779534578245058,8338599439767877,25015789729369038,75047352008237929,225142021664975418,675425996275449517,2026277851387395078,6078833279284278289,18236499288097020978,54709496764779435157 add $0,1 mov $1,3 pow $1,$0 mov $2,2 pow $2,$0 add $1,$2 sub $1,5 div $1,2 add $1,3 mov $0,$1
44
483
0.819805
22d708519eadd8c90d37a9e611018c96a605af0e
380
asm
Assembly
Src/SacaraVm/vm_div.asm
mrfearless/sacara
126ee1c8c18c9d01a09fac4aedd9044976cf17c4
[ "MIT" ]
null
null
null
Src/SacaraVm/vm_div.asm
mrfearless/sacara
126ee1c8c18c9d01a09fac4aedd9044976cf17c4
[ "MIT" ]
null
null
null
Src/SacaraVm/vm_div.asm
mrfearless/sacara
126ee1c8c18c9d01a09fac4aedd9044976cf17c4
[ "MIT" ]
null
null
null
header_VmDiv vm_div PROC push ebp mov ebp, esp ; read the first operand push [ebp+arg0] call_vm_stack_pop_enc push eax ; read the second operand push [ebp+arg0] call_vm_stack_pop_enc mov ebx, eax ; do operation pop eax xor edx, edx div ebx ; push result push eax push [ebp+arg0] call_vm_stack_push_enc mov esp, ebp pop ebp ret vm_div ENDP header_marker
12.666667
26
0.736842
8f3a1bc480b0de3f3b306c330f4677c991bf8b38
1,668
asm
Assembly
programs/oeis/129/A129109.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/129/A129109.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/129/A129109.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A129109: Sums of three consecutive hexagonal numbers. ; 7,22,49,88,139,202,277,364,463,574,697,832,979,1138,1309,1492,1687,1894,2113,2344,2587,2842,3109,3388,3679,3982,4297,4624,4963,5314,5677,6052,6439,6838,7249,7672,8107,8554,9013,9484,9967,10462,10969,11488,12019,12562,13117,13684,14263,14854,15457,16072,16699,17338,17989,18652,19327,20014,20713,21424,22147,22882,23629,24388,25159,25942,26737,27544,28363,29194,30037,30892,31759,32638,33529,34432,35347,36274,37213,38164,39127,40102,41089,42088,43099,44122,45157,46204,47263,48334,49417,50512,51619,52738,53869,55012,56167,57334,58513,59704,60907,62122,63349,64588,65839,67102,68377,69664,70963,72274,73597,74932,76279,77638,79009,80392,81787,83194,84613,86044,87487,88942,90409,91888,93379,94882,96397,97924,99463,101014,102577,104152,105739,107338,108949,110572,112207,113854,115513,117184,118867,120562,122269,123988,125719,127462,129217,130984,132763,134554,136357,138172,139999,141838,143689,145552,147427,149314,151213,153124,155047,156982,158929,160888,162859,164842,166837,168844,170863,172894,174937,176992,179059,181138,183229,185332,187447,189574,191713,193864,196027,198202,200389,202588,204799,207022,209257,211504,213763,216034,218317,220612,222919,225238,227569,229912,232267,234634,237013,239404,241807,244222,246649,249088,251539,254002,256477,258964,261463,263974,266497,269032,271579,274138,276709,279292,281887,284494,287113,289744,292387,295042,297709,300388,303079,305782,308497,311224,313963,316714,319477,322252,325039,327838,330649,333472,336307,339154,342013,344884,347767,350662,353569,356488,359419,362362,365317,368284,371263,374254 mov $1,6 mul $1,$0 add $1,9 mul $1,$0 add $1,7
185.333333
1,563
0.828537
72dc162f882d9a6adc1fb3dc89f79cd71136c544
607
asm
Assembly
oeis/036/A036084.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/036/A036084.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/036/A036084.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A036084: Expansion of 1/(1-6*x)^6. ; 1,36,756,12096,163296,1959552,21555072,221709312,2161665792,20175547392,181579926528,1584697540608,13469929095168,111904026329088,911218500108288,7289748000866304,57406765506822144,445746649817677824,3417390981935529984,25900226389406121984,194251697920545914880,1443012613124055367680,10625820151186225889280,77614686321708084756480,562706475832383614484480,4051486625993162024288256,28983712016720312942985216,206106396563344447594561536,1457466661412221450847256576,10252524100968730205960011776 mov $1,6 pow $1,$0 mov $2,$0 add $2,5 bin $2,$0 mul $1,$2 mov $0,$1
55.181818
500
0.868204
57f05e8c1acb3774607b73add3e4e69149575273
435
asm
Assembly
oeis/124/A124758.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/124/A124758.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/124/A124758.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A124758: Product of the parts of the compositions in standard order. ; Submitted by Jon Maiga ; 1,1,2,1,3,2,2,1,4,3,4,2,3,2,2,1,5,4,6,3,6,4,4,2,4,3,4,2,3,2,2,1,6,5,8,4,9,6,6,3,8,6,8,4,6,4,4,2,5,4,6,3,6,4,4,2,4,3,4,2,3,2,2,1,7,6,10,5,12,8,8,4,12,9,12,6,9,6,6,3,10,8,12,6,12,8,8,4,8,6,8,4,6,4,4,2,6,5,8,4 mov $1,10 lpb $0 mov $2,$1 lpb $0 dif $0,2 add $1,10 add $1,$2 lpe div $0,2 lpe mov $0,$1 div $0,20 add $0,1
24.166667
208
0.56092
d68d03cda0cca615729830fe61904c2abb3a10c4
3,876
asm
Assembly
segaconsoles/_includes/constants.asm
ArcadeTV/megadrive-samples
bb00902a844f63d55c6f449d50b0ae8a72c3c05e
[ "CC0-1.0" ]
5
2021-05-15T21:47:38.000Z
2022-03-27T19:33:15.000Z
segaconsoles/_includes/constants.asm
ArcadeTV/megadrive-samples
bb00902a844f63d55c6f449d50b0ae8a72c3c05e
[ "CC0-1.0" ]
1
2021-06-09T10:17:41.000Z
2021-06-09T15:07:37.000Z
segaconsoles/_includes/constants.asm
ArcadeTV/megadrive-samples
bb00902a844f63d55c6f449d50b0ae8a72c3c05e
[ "CC0-1.0" ]
null
null
null
;============================================================== ; CONSTANTS ;============================================================== ; VDP port addresses vdp_control equ $00C00004 vdp_data equ $00C00000 ; VDP commands vdp_cmd_vram_write equ $40000000 vdp_cmd_cram_write equ $C0000000 vdp_cmd_vsram_write equ $40000010 ; VDP memory addresses ; according to VDP registers $2 and $4 (see table above) vram_addr_tiles equ $0000 vram_addr_plane_a equ $A000 vram_addr_plane_b equ $C000 vram_addr_sprite_table equ $F000 vram_addr_hscroll equ $FC00 ; Screen width and height (in pixels) vdp_screen_width equ $0140 vdp_screen_height equ $00F0 ; The plane width and height (in tiles) ; according to VDP register $10 (see table above) vdp_plane_width equ $40 vdp_plane_height equ $20 ; The size of the sprite plane (512x512 pixels) ; ; With only a 320x240 display size, a lot of this ; is off screen, which is useful for hiding sprites ; when not needed (saves needing to adjust the linked ; list in the attribute table). vdp_sprite_plane_width equ $0200 vdp_sprite_plane_height equ $0200 ; The sprite border (invisible area left + top) size ; ; The sprite plane is 512x512 pixels, but is offset by ; -128 pixels in both X and Y directions. To see a sprite ; on screen at 0,0 we need to offset its position by ; this border. vdp_sprite_border_x equ $80 vdp_sprite_border_y equ $80 ; Hardware version address hardware_ver_address equ $00A10001 ; TMSS tmss_address equ $00A14000 tmss_signature equ 'SEGA' ; The size of a word and longword size_word equ 2 size_long equ 4 ; The size of one palette (in bytes, words, and longwords) size_palette_b equ $20 size_palette_w equ size_palette_b/size_word size_palette_l equ size_palette_b/size_long ; The size of one graphics tile (in bytes, words, and longwords) size_tile_b equ $20 size_tile_w equ size_tile_b/size_word size_tile_l equ size_tile_b/size_long ; Gamepad/IO port addresses. ; See PAD_ReadPadA near bottom of file for usage pad_ctrl_a equ $00A10009 ; IO port A control port pad_ctrl_b equ $00A1000B ; IO port B control port pad_data_a equ $00A10003 ; IO port A data port pad_data_b equ $00A10005 ; IO port B data port ; Pad read latch, for fetching second byte from data port pad_byte_latch equ $40 ; Gamepad button bits ; ; After converting pad input data to a word (in PAD_ReadPadA), ; we can test each individual bit using BTST and these constants. ; ; The pad data word is in the binary format: ; 00SA0000 00CBRLDU ; Start, A, C, B, Right, Left, Down, Up pad_button_up equ $00 pad_button_down equ $01 pad_button_left equ $02 pad_button_right equ $03 pad_button_a equ $0C pad_button_b equ $04 pad_button_c equ $05 pad_button_start equ $0D ; All gamepad button bits (for masking) pad_button_all equ $303F psg_control equ $00C00011 ; address of PSG control port ; Z80 addresses z80_ram: equ $A00000 ; start of Z80 RAM z80_dac3_pitch: equ $A000EA z80_dac_status: equ $A01FFD z80_dac_sample: equ $A01FFF z80_ram_end: equ $A02000 ; end of non-reserved Z80 RAM z80_version: equ $A10001 z80_port_1_data: equ $A10002 z80_port_1_control: equ $A10008 z80_port_2_control: equ $A1000A z80_expansion_control: equ $A1000C z80_bus_request: equ $A11100 z80_reset: equ $A11200 ym2612_a0: equ $A04000 ym2612_d0: equ $A04001 ym2612_a1: equ $A04002 ym2612_d1: equ $A04003 ; DMA VDPREG_DMALEN_L: equ $9300 ; DMA length (low) VDPREG_DMALEN_H: equ $9400 ; DMA length (high) VDPREG_DMASRC_L: equ $9500 ; DMA source (low) VDPREG_DMASRC_M: equ $9600 ; DMA source (mid) VDPREG_DMASRC_H: equ $9700 ; DMA source (high)
30.046512
65
0.69453
8eb3e5c1b7cbb622d502886a128455af9c1b7676
602
asm
Assembly
programs/oeis/171/A171972.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/171/A171972.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/171/A171972.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A171972: Greatest integer k such that k/n^2 < sqrt(3). ; 0,1,6,15,27,43,62,84,110,140,173,209,249,292,339,389,443,500,561,625,692,763,838,916,997,1082,1170,1262,1357,1456,1558,1664,1773,1886,2002,2121,2244,2371,2501,2634,2771,2911,3055,3202,3353,3507,3665,3826,3990,4158,4330,4505,4683,4865,5050,5239,5431,5627,5826,6029,6235,6444,6658,6874,7094,7317,7544,7775,8009,8246,8487,8731,8978,9230,9484,9742,10004,10269,10537,10809,11085,11363,11646,11932,12221,12514,12810,13109,13413,13719,14029,14343,14660,14980,15304,15631,15962,16296,16634,16975 pow $0,2 seq $0,198081 ; Ceiling(n*Sqrt(3)). trn $0,1
86
489
0.76412