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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fd310fee574ebf47795b0ccadae33b97efe88dea | 209 | asm | Assembly | libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sccz80/SMS_loadSpritePalette.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sccz80/SMS_loadSpritePalette.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sccz80/SMS_loadSpritePalette.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ; void SMS_loadSpritePalette(void *palette)
SECTION code_clib
SECTION code_SMSlib
PUBLIC SMS_loadSpritePalette
EXTERN asm_SMSlib_loadSpritePalette
defc SMS_loadSpritePalette = asm_SMSlib_loadSpritePalette
| 19 | 57 | 0.880383 |
70e1580f3c6d64944ccabd59569512511b3c5382 | 448 | asm | Assembly | programs/oeis/316/A316026.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/316/A316026.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/316/A316026.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A316026: Coordination sequence Gal.3.36.3 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,6,9,15,18,24,30,33,39,42,48,54,57,63,66,72,78,81,87,90,96,102,105,111,114,120,126,129,135,138,144,150,153,159,162,168,174,177,183,186,192,198,201,207,210,216,222,225,231,234
mul $0,4
trn $0,1
mul $0,2
mov $1,1
lpb $0
sub $0,3
trn $0,2
add $2,3
mov $1,$2
lpe
| 32 | 177 | 0.696429 |
40f1b07c49062c1738bc803b1fd60ac2fd3cd46e | 354 | asm | Assembly | oeis/067/A067413.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/067/A067413.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/067/A067413.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A067413: Sixth column of triangle A067410.
; Submitted by Jon Maiga
; 1,7,84,1008,12096,145152,1741824,20901888,250822656,3009871872,36118462464,433421549568,5201058594816,62412703137792,748952437653504,8987429251842048,107849151022104576,1294189812265254912
mov $1,6
pow $1,$0
mul $1,21
div $1,18
mov $0,$1
lpb $0
dif $0,2
mul $1,2
lpe
mov $0,$1
| 23.6 | 190 | 0.774011 |
2c67a98dbe328e59111a2fe0ba0c15b2fbc19625 | 468 | asm | Assembly | oeis/020/A020764.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/020/A020764.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/020/A020764.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A020764: Decimal expansion of 1/sqrt(7).
; Submitted by Stefano Spezia
; 3,7,7,9,6,4,4,7,3,0,0,9,2,2,7,2,2,7,2,1,4,5,1,6,5,3,6,2,3,4,1,8,0,0,6,0,8,1,5,7,5,1,3,1,1,8,6,8,9,2,1,4,5,4,3,3,8,3,3,3,4,9,4,1,7,1,5,8,1,2,6,0,4,6,1,4,6,9,0,8,9,6,8,0,0,5,6,1,2,6,6,3,9,2,2,0,5,1,5,8
add $0,1
mov $3,$0
mul $3,4
lpb $3
add $1,$5
mov $2,$1
add $5,4
add $5,$1
add $1,$5
add $2,$1
mul $1,2
sub $3,1
lpe
mov $4,10
pow $4,$0
div $2,$4
div $1,$2
mov $0,$1
mod $0,10
| 19.5 | 201 | 0.532051 |
ebbe287c980f10b98348048b500b1b010ca8eed3 | 458 | asm | Assembly | 3rdParties/src/nasm/nasm-2.15.02/test/dup.asm | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | 1 | 2020-06-20T07:35:25.000Z | 2020-06-20T07:35:25.000Z | 3rdParties/src/nasm/nasm-2.15.02/test/dup.asm | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | 3rdParties/src/nasm/nasm-2.15.02/test/dup.asm | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | bits 32
db 33
db (44)
; db (44,55) -- error
db %(44,55)
db %('XX','YY')
db ('AA')
db %('BB')
db ?
db 6 dup (33)
db 6 dup (33, 34)
db 6 dup (33, 34), 35
db 7 dup (99)
db 7 dup dword (?, word ?,?)
dw byte (?,44)
dw 3 dup (0xcc, 4 dup byte ('PQR'), ?), 0xabcd
dd 16 dup (0xaaaa, ?, 0xbbbbbb)
dd 64 dup (?)
resb 1
resb 2
resb 4
resb 8
resw 1
resw 2
resw 4
resw 8
resq 1
resq 2
resq 4
resq 8
| 12.378378 | 48 | 0.4869 |
1bc93e6b05ba0248f27645e61bfdae556e353424 | 323 | asm | Assembly | programs/oeis/144/A144478.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/144/A144478.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/144/A144478.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A144478: Period 9: repeat 1,0,5,7,6,2,4,3,8.
; 1,0,5,7,6,2,4,3,8,1,0,5,7,6,2,4,3,8,1,0,5,7,6,2,4,3,8,1,0,5,7,6,2,4,3,8,1,0,5,7,6,2,4,3,8,1,0,5,7,6,2,4,3,8
mov $2,1
mov $3,$0
mov $0,2
mov $4,$3
mul $3,2
add $4,$3
mov $5,1
lpb $0,1
sub $4,$2
mov $2,$0
sub $0,1
mul $5,$4
lpe
mod $5,27
add $0,$5
mov $1,$0
div $1,3
| 15.380952 | 109 | 0.517028 |
34c164c942905828302208d8148be946b60272f1 | 3,401 | asm | Assembly | roms/mbc_test/mbc_test.asm | gerikkub/gameboycart | f5cbee20806cd0490abfc68102676a058fd631a9 | [
"Apache-2.0"
] | null | null | null | roms/mbc_test/mbc_test.asm | gerikkub/gameboycart | f5cbee20806cd0490abfc68102676a058fd631a9 | [
"Apache-2.0"
] | null | null | null | roms/mbc_test/mbc_test.asm | gerikkub/gameboycart | f5cbee20806cd0490abfc68102676a058fd631a9 | [
"Apache-2.0"
] | null | null | null |
SECTION "graphics", ROMX[$4000], BANK[1]
db $00, $18, $24, $24, $24, $24, $18, $00
db $00, $18, $38, $18, $18, $18, $3C, $00
db $00, $38, $44, $04, $08, $10, $3C, $00
db $00, $18, $24, $04, $38, $04, $38, $00
db $00, $24, $24, $24, $3C, $04, $04, $00
db $00, $3C, $20, $20, $3C, $04, $3C, $00
db $00, $1C, $20, $20, $38, $24, $18, $00
db $00, $3C, $02, $04, $08, $10, $20, $00
db $00, $3C, $42, $42, $3C, $42, $3C, $00
db $00, $18, $24, $24, $18, $04, $18, $00
db $00, $18, $24, $24, $3C, $24, $24, $00
db $00, $20, $20, $20, $38, $24, $38, $00
db $00, $3C, $40, $40, $40, $40, $3C, $00
db $00, $78, $44, $44, $44, $44, $78, $00
db $00, $3C, $20, $20, $3C, $20, $3C, $00
db $00, $3C, $20, $20, $3C, $20, $20, $00
SECTION "start",ROM0[$100]
start:
nop
jp main
SECTION "title",ROM0[$134]
db "SMILEY"
SECTION "mbc", ROMX,BANK[2]
db $A5, $98
SECTION "mbc2", ROMX,BANK[3]
db $29, $F7
SECTION "main",ROM0[$150]
main:
ld hl, $FFFE
ld sp, hl
ld hl, $FF44
ld a, [hl]
cp a, 144
jp nz, main
ld hl, $FF40
ld [hl], (1 | (1 << 7))
;ld h, $98
;ld l, 32
;ld [hl], 1
;inc hl
;ld [hl], 2
;inc hl
;ld [hl], 3
;inc hl
;ld [hl], 4
;inc hl
;ld [hl], 5
;inc hl
;ld [hl], 6
;inc hl
;ld [hl], 7
;inc hl
;ld [hl], 8
;inc hl
;ld [hl], 9
;inc hl
;ld [hl], $A
;inc hl
;ld [hl], $B
;inc hl
;ld [hl], $C
;inc hl
;ld [hl], $D
;inc hl
;ld [hl], $E
;inc hl
;ld [hl], $F
;inc hl
;ld [hl], $10
ld h, $90
ld l, 16
ld b, 64
ld de, $4000
loop1:
ld a, [de]
inc de
ld [hl+], a
ld [hl+], a
dec b
jp nz, loop1
loop2_start:
ld hl, $FF44
ld a, [hl]
cp a, 144
jp nz, loop2_start
ld h, $90
ld l, 144
ld b, 64
ld de, $4040
loop2:
ld a, [de]
inc de
ld [hl+], a
ld [hl+], a
dec b
jp nz, loop2
ld hl, $FF47
ld [hl], $E4
;ld h, $21
;ld l, $00
;ld a, 3
;nop
;nop
;nop
;nop
;ld [hl], a
;inc a
;ld [hl], a
;inc a
;ld [hl], a
;inc a
;ld [hl], a
;inc a
;ld [hl], a
;inc a
;ld [hl], a
;inc a
;ld [hl], a
;inc a
;ld [hl], a
;ld a, 2
;ld b, 0
;call get_bank_byte
;ld b, 0
;call write_byte
;ld a, 2
;ld b, 1
;call get_bank_byte
;ld b, 3
;call write_byte
;ld a, 3
;ld b, 0
;call get_bank_byte
;ld b, 32
;call write_byte
;ld a, 3
;ld b, 1
;call get_bank_byte
;ld b, 35
;call write_byte
ld h, $01
ld l, $00
ld a, $A
ld [hl], a
ld d, 0
loop_read:
ld h, $A0
ld l, $40
ld b, $8E
ld [hl], b
ld a, d
sla a
sla a
sla a
sla a
sla a
ld b, a
ld a, [hl]
call write_byte
inc d
ld a, d
cp a, $8
jp nz, loop_read
end:
jp end
get_bank_byte:
ld h, $21
ld l, $00
ld [hl], a
ld h, $40
ld l, b
ld a, [hl]
ret
write_byte:
ld c, a
write_byte_sync_video
ld hl, $FF44
ld a, [hl]
cp a, 144
jp nz, write_byte_sync_video
ld h, $98
ld l, b
ld a, c
and a, $F0
srl a
srl a
srl a
srl a
inc a
ld [hl+], a
ld a, c
and a, $F
inc a
ld [hl+], a
ret
| 13.182171 | 41 | 0.423993 |
2e197d8470b1f99b737aa3d2e2f029500b61a947 | 662 | asm | Assembly | oeis/167/A167889.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/167/A167889.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/167/A167889.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A167889: a(n) = (-7*3^n+(-3)^n+6*4^n) / 42.
; Submitted by Jamie Morken(s3)
; 0,0,1,4,25,100,481,1924,8425,33700,141361,565444,2320825,9283300,37664641,150658564,607417225,2429668900,9761722321,39046889284,156574977625,626299910500,2508686426401,10034745705604,40170363882025,160681455528100,643008251648881,2572033006595524,10290673892210425,41162695568841700,164673659067821761,658694636271287044,2634984436217242825,10539937744868971300,42161603999664737041,168646415998658948164,674602341176335459225,2698409364705341836900,10793787553456664346721,43175150213826657386884
mov $1,4
pow $1,$0
seq $0,133125 ; A133080 * A000244.
sub $1,$0
mov $0,$1
div $0,7
| 60.181818 | 499 | 0.830816 |
4ce3bbbc69b928236a98321c249b90ade245d897 | 1,808 | asm | Assembly | release/src/router/gmp/source/mpn/x86/copyd.asm | zhoutao0712/rtn11pb1 | 09e6b6c7ef4b91be0a9374daeacc3ac9f2fa3a05 | [
"Apache-2.0"
] | 184 | 2020-04-15T14:28:37.000Z | 2020-09-22T15:57:55.000Z | release/src/router/gmp/source/mpn/x86/copyd.asm | zhoutao0712/rtn11pb1 | 09e6b6c7ef4b91be0a9374daeacc3ac9f2fa3a05 | [
"Apache-2.0"
] | 8 | 2019-12-19T19:34:56.000Z | 2022-03-10T10:11:28.000Z | release/src/router/gmp/source/mpn/x86/copyd.asm | zhoutao0712/rtn11pb1 | 09e6b6c7ef4b91be0a9374daeacc3ac9f2fa3a05 | [
"Apache-2.0"
] | 5 | 2020-04-21T19:50:23.000Z | 2020-09-22T10:58:02.000Z | dnl x86 mpn_copyd -- copy limb vector, decrementing.
dnl Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
dnl
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
dnl modify it under the terms of the GNU Lesser General Public License as
dnl published by the Free Software Foundation; either version 3 of the
dnl License, or (at your option) any later version.
dnl
dnl The GNU MP Library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Lesser General Public License for more details.
dnl
dnl You should have received a copy of the GNU Lesser General Public License
dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
include(`../config.m4')
C cycles/limb startup (approx)
C P5: 1.0 40
C P6 2.4 70
C K6 1.0 55
C K7: 1.3 75
C P4: 2.6 175
C
C (Startup time includes some function call overheads.)
C void mpn_copyd (mp_ptr dst, mp_srcptr src, mp_size_t size);
C
C Copy src,size to dst,size, working from high to low addresses.
C
C The code here is very generic and can be expected to be reasonable on all
C the x86 family.
defframe(PARAM_SIZE,12)
defframe(PARAM_SRC, 8)
defframe(PARAM_DST, 4)
deflit(`FRAME',0)
TEXT
ALIGN(32)
PROLOGUE(mpn_copyd)
C eax saved esi
C ebx
C ecx counter
C edx saved edi
C esi src
C edi dst
C ebp
movl PARAM_SIZE, %ecx
movl %esi, %eax
movl PARAM_SRC, %esi
movl %edi, %edx
movl PARAM_DST, %edi
leal -4(%esi,%ecx,4), %esi
leal -4(%edi,%ecx,4), %edi
std
rep
movsl
cld
movl %eax, %esi
movl %edx, %edi
ret
EPILOGUE()
| 22.320988 | 78 | 0.706305 |
60347d6b2e5579cba148dd606e81fa1ad81fa87e | 23,583 | asm | Assembly | platforms/m3/pre_v12/compiled_prog_vlsipool/haltRX/SRAM_test_0.asm | lab11/M-ulator | 95b49c6194678c74accca4a20af71380efbcac5f | [
"Apache-2.0",
"MIT"
] | 19 | 2015-01-26T10:47:23.000Z | 2021-08-13T11:07:54.000Z | platforms/m3/pre_v12/compiled_prog_vlsipool/haltRX/SRAM_test_0.asm | lab11/M-ulator | 95b49c6194678c74accca4a20af71380efbcac5f | [
"Apache-2.0",
"MIT"
] | 14 | 2015-08-24T02:35:46.000Z | 2021-05-05T03:53:44.000Z | platforms/m3/pre_v12/compiled_prog_vlsipool/haltRX/SRAM_test_0.asm | lab11/M-ulator | 95b49c6194678c74accca4a20af71380efbcac5f | [
"Apache-2.0",
"MIT"
] | 9 | 2015-05-27T23:27:35.000Z | 2020-10-05T22:02:43.000Z |
SRAM_test_0/SRAM_test_0.elf: file format elf32-littlearm
Disassembly of section .text:
00000000 <hang-0x90>:
0: 00002000 .word 0x00002000
4: 000000a1 .word 0x000000a1
...
1c: 00000090 .word 0x00000090
20: 00000090 .word 0x00000090
24: 00000090 .word 0x00000090
28: 00000090 .word 0x00000090
...
34: 00000090 .word 0x00000090
...
40: 0000019d .word 0x0000019d
44: 000001a9 .word 0x000001a9
48: 000001b5 .word 0x000001b5
4c: 000001c1 .word 0x000001c1
50: 000001cd .word 0x000001cd
54: 000001d9 .word 0x000001d9
58: 000001e5 .word 0x000001e5
5c: 000001f1 .word 0x000001f1
60: 000001fd .word 0x000001fd
64: 0000020d .word 0x0000020d
68: 0000021d .word 0x0000021d
6c: 0000022d .word 0x0000022d
70: 0000023d .word 0x0000023d
74: 0000024d .word 0x0000024d
78: 0000025d .word 0x0000025d
7c: 0000026d .word 0x0000026d
80: 0000027d .word 0x0000027d
...
00000090 <hang>:
90: e7fe b.n 90 <hang>
...
000000a0 <_start>:
a0: f000 f9ea bl 478 <main>
a4: e7fc b.n a0 <_start>
Disassembly of section .text.mbus_write_message32:
000000a8 <mbus_write_message32>:
a8: 4b02 ldr r3, [pc, #8] ; (b4 <mbus_write_message32+0xc>)
aa: 0100 lsls r0, r0, #4
ac: 4318 orrs r0, r3
ae: 6001 str r1, [r0, #0]
b0: 2001 movs r0, #1
b2: 4770 bx lr
b4: a0003000 .word 0xa0003000
Disassembly of section .text.mbus_enumerate:
000000b8 <mbus_enumerate>:
b8: 0603 lsls r3, r0, #24
ba: 2080 movs r0, #128 ; 0x80
bc: 0580 lsls r0, r0, #22
be: 4318 orrs r0, r3
c0: 4b01 ldr r3, [pc, #4] ; (c8 <mbus_enumerate+0x10>)
c2: 6018 str r0, [r3, #0]
c4: 4770 bx lr
c6: 46c0 nop ; (mov r8, r8)
c8: a0003000 .word 0xa0003000
Disassembly of section .text.mbus_sleep_all:
000000cc <mbus_sleep_all>:
cc: 4b01 ldr r3, [pc, #4] ; (d4 <mbus_sleep_all+0x8>)
ce: 2200 movs r2, #0
d0: 601a str r2, [r3, #0]
d2: 4770 bx lr
d4: a0003010 .word 0xa0003010
Disassembly of section .text.delay:
000000d8 <delay>:
d8: b500 push {lr}
da: 2300 movs r3, #0
dc: e001 b.n e2 <delay+0xa>
de: 46c0 nop ; (mov r8, r8)
e0: 3301 adds r3, #1
e2: 4283 cmp r3, r0
e4: d1fb bne.n de <delay+0x6>
e6: bd00 pop {pc}
Disassembly of section .text.write_regfile:
000000e8 <write_regfile>:
e8: 0880 lsrs r0, r0, #2
ea: 0209 lsls r1, r1, #8
ec: b508 push {r3, lr}
ee: 0a09 lsrs r1, r1, #8
f0: 4b05 ldr r3, [pc, #20] ; (108 <write_regfile+0x20>)
f2: 0600 lsls r0, r0, #24
f4: 4308 orrs r0, r1
f6: 6018 str r0, [r3, #0]
f8: 4b04 ldr r3, [pc, #16] ; (10c <write_regfile+0x24>)
fa: 2210 movs r2, #16
fc: 601a str r2, [r3, #0]
fe: 200a movs r0, #10
100: f7ff ffea bl d8 <delay>
104: bd08 pop {r3, pc}
106: 46c0 nop ; (mov r8, r8)
108: a0002000 .word 0xa0002000
10c: a000200c .word 0xa000200c
Disassembly of section .text.set_wakeup_timer:
00000110 <set_wakeup_timer>:
110: b510 push {r4, lr}
112: 1c14 adds r4, r2, #0
114: 2900 cmp r1, #0
116: d003 beq.n 120 <set_wakeup_timer+0x10>
118: 2180 movs r1, #128 ; 0x80
11a: 0209 lsls r1, r1, #8
11c: 4301 orrs r1, r0
11e: e001 b.n 124 <set_wakeup_timer+0x14>
120: 0440 lsls r0, r0, #17
122: 0c41 lsrs r1, r0, #17
124: 4804 ldr r0, [pc, #16] ; (138 <set_wakeup_timer+0x28>)
126: f7ff ffdf bl e8 <write_regfile>
12a: 2c00 cmp r4, #0
12c: d002 beq.n 134 <set_wakeup_timer+0x24>
12e: 4b03 ldr r3, [pc, #12] ; (13c <set_wakeup_timer+0x2c>)
130: 2201 movs r2, #1
132: 601a str r2, [r3, #0]
134: bd10 pop {r4, pc}
136: 46c0 nop ; (mov r8, r8)
138: a0000034 .word 0xa0000034
13c: a0001300 .word 0xa0001300
Disassembly of section .text.set_halt_until_mbus_rx:
00000140 <set_halt_until_mbus_rx>:
140: 4805 ldr r0, [pc, #20] ; (158 <set_halt_until_mbus_rx+0x18>)
142: b508 push {r3, lr}
144: 6801 ldr r1, [r0, #0]
146: 4b05 ldr r3, [pc, #20] ; (15c <set_halt_until_mbus_rx+0x1c>)
148: 4019 ands r1, r3
14a: 2390 movs r3, #144 ; 0x90
14c: 021b lsls r3, r3, #8
14e: 4319 orrs r1, r3
150: f7ff ffca bl e8 <write_regfile>
154: bd08 pop {r3, pc}
156: 46c0 nop ; (mov r8, r8)
158: a0000028 .word 0xa0000028
15c: ffff0fff .word 0xffff0fff
Disassembly of section .text.set_halt_until_mbus_tx:
00000160 <set_halt_until_mbus_tx>:
160: 4805 ldr r0, [pc, #20] ; (178 <set_halt_until_mbus_tx+0x18>)
162: b508 push {r3, lr}
164: 6801 ldr r1, [r0, #0]
166: 4b05 ldr r3, [pc, #20] ; (17c <set_halt_until_mbus_tx+0x1c>)
168: 4019 ands r1, r3
16a: 23a0 movs r3, #160 ; 0xa0
16c: 021b lsls r3, r3, #8
16e: 4319 orrs r1, r3
170: f7ff ffba bl e8 <write_regfile>
174: bd08 pop {r3, pc}
176: 46c0 nop ; (mov r8, r8)
178: a0000028 .word 0xa0000028
17c: ffff0fff .word 0xffff0fff
Disassembly of section .text.init_interrupt:
00000180 <init_interrupt>:
180: 4a03 ldr r2, [pc, #12] ; (190 <init_interrupt+0x10>)
182: 4b04 ldr r3, [pc, #16] ; (194 <init_interrupt+0x14>)
184: 601a str r2, [r3, #0]
186: 4b04 ldr r3, [pc, #16] ; (198 <init_interrupt+0x18>)
188: 2200 movs r2, #0
18a: 601a str r2, [r3, #0]
18c: 4770 bx lr
18e: 46c0 nop ; (mov r8, r8)
190: 0001ffff .word 0x0001ffff
194: e000e280 .word 0xe000e280
198: e000e100 .word 0xe000e100
Disassembly of section .text.handler_ext_int_0:
0000019c <handler_ext_int_0>:
19c: 4b01 ldr r3, [pc, #4] ; (1a4 <handler_ext_int_0+0x8>)
19e: 2201 movs r2, #1
1a0: 601a str r2, [r3, #0]
1a2: 4770 bx lr
1a4: e000e280 .word 0xe000e280
Disassembly of section .text.handler_ext_int_1:
000001a8 <handler_ext_int_1>:
1a8: 4b01 ldr r3, [pc, #4] ; (1b0 <handler_ext_int_1+0x8>)
1aa: 2202 movs r2, #2
1ac: 601a str r2, [r3, #0]
1ae: 4770 bx lr
1b0: e000e280 .word 0xe000e280
Disassembly of section .text.handler_ext_int_2:
000001b4 <handler_ext_int_2>:
1b4: 4b01 ldr r3, [pc, #4] ; (1bc <handler_ext_int_2+0x8>)
1b6: 2204 movs r2, #4
1b8: 601a str r2, [r3, #0]
1ba: 4770 bx lr
1bc: e000e280 .word 0xe000e280
Disassembly of section .text.handler_ext_int_3:
000001c0 <handler_ext_int_3>:
1c0: 4b01 ldr r3, [pc, #4] ; (1c8 <handler_ext_int_3+0x8>)
1c2: 2208 movs r2, #8
1c4: 601a str r2, [r3, #0]
1c6: 4770 bx lr
1c8: e000e280 .word 0xe000e280
Disassembly of section .text.handler_ext_int_4:
000001cc <handler_ext_int_4>:
1cc: 4b01 ldr r3, [pc, #4] ; (1d4 <handler_ext_int_4+0x8>)
1ce: 2210 movs r2, #16
1d0: 601a str r2, [r3, #0]
1d2: 4770 bx lr
1d4: e000e280 .word 0xe000e280
Disassembly of section .text.handler_ext_int_5:
000001d8 <handler_ext_int_5>:
1d8: 4b01 ldr r3, [pc, #4] ; (1e0 <handler_ext_int_5+0x8>)
1da: 2220 movs r2, #32
1dc: 601a str r2, [r3, #0]
1de: 4770 bx lr
1e0: e000e280 .word 0xe000e280
Disassembly of section .text.handler_ext_int_6:
000001e4 <handler_ext_int_6>:
1e4: 4b01 ldr r3, [pc, #4] ; (1ec <handler_ext_int_6+0x8>)
1e6: 2240 movs r2, #64 ; 0x40
1e8: 601a str r2, [r3, #0]
1ea: 4770 bx lr
1ec: e000e280 .word 0xe000e280
Disassembly of section .text.handler_ext_int_7:
000001f0 <handler_ext_int_7>:
1f0: 4b01 ldr r3, [pc, #4] ; (1f8 <handler_ext_int_7+0x8>)
1f2: 2280 movs r2, #128 ; 0x80
1f4: 601a str r2, [r3, #0]
1f6: 4770 bx lr
1f8: e000e280 .word 0xe000e280
Disassembly of section .text.handler_ext_int_8:
000001fc <handler_ext_int_8>:
1fc: 4b02 ldr r3, [pc, #8] ; (208 <handler_ext_int_8+0xc>)
1fe: 2280 movs r2, #128 ; 0x80
200: 0052 lsls r2, r2, #1
202: 601a str r2, [r3, #0]
204: 4770 bx lr
206: 46c0 nop ; (mov r8, r8)
208: e000e280 .word 0xe000e280
Disassembly of section .text.handler_ext_int_9:
0000020c <handler_ext_int_9>:
20c: 4b02 ldr r3, [pc, #8] ; (218 <handler_ext_int_9+0xc>)
20e: 2280 movs r2, #128 ; 0x80
210: 0092 lsls r2, r2, #2
212: 601a str r2, [r3, #0]
214: 4770 bx lr
216: 46c0 nop ; (mov r8, r8)
218: e000e280 .word 0xe000e280
Disassembly of section .text.handler_ext_int_10:
0000021c <handler_ext_int_10>:
21c: 4b02 ldr r3, [pc, #8] ; (228 <handler_ext_int_10+0xc>)
21e: 2280 movs r2, #128 ; 0x80
220: 00d2 lsls r2, r2, #3
222: 601a str r2, [r3, #0]
224: 4770 bx lr
226: 46c0 nop ; (mov r8, r8)
228: e000e280 .word 0xe000e280
Disassembly of section .text.handler_ext_int_11:
0000022c <handler_ext_int_11>:
22c: 4b02 ldr r3, [pc, #8] ; (238 <handler_ext_int_11+0xc>)
22e: 2280 movs r2, #128 ; 0x80
230: 0112 lsls r2, r2, #4
232: 601a str r2, [r3, #0]
234: 4770 bx lr
236: 46c0 nop ; (mov r8, r8)
238: e000e280 .word 0xe000e280
Disassembly of section .text.handler_ext_int_12:
0000023c <handler_ext_int_12>:
23c: 4b02 ldr r3, [pc, #8] ; (248 <handler_ext_int_12+0xc>)
23e: 2280 movs r2, #128 ; 0x80
240: 0152 lsls r2, r2, #5
242: 601a str r2, [r3, #0]
244: 4770 bx lr
246: 46c0 nop ; (mov r8, r8)
248: e000e280 .word 0xe000e280
Disassembly of section .text.handler_ext_int_13:
0000024c <handler_ext_int_13>:
24c: 4b02 ldr r3, [pc, #8] ; (258 <handler_ext_int_13+0xc>)
24e: 2280 movs r2, #128 ; 0x80
250: 0192 lsls r2, r2, #6
252: 601a str r2, [r3, #0]
254: 4770 bx lr
256: 46c0 nop ; (mov r8, r8)
258: e000e280 .word 0xe000e280
Disassembly of section .text.handler_ext_int_14:
0000025c <handler_ext_int_14>:
25c: 4b02 ldr r3, [pc, #8] ; (268 <handler_ext_int_14+0xc>)
25e: 2280 movs r2, #128 ; 0x80
260: 01d2 lsls r2, r2, #7
262: 601a str r2, [r3, #0]
264: 4770 bx lr
266: 46c0 nop ; (mov r8, r8)
268: e000e280 .word 0xe000e280
Disassembly of section .text.handler_ext_int_15:
0000026c <handler_ext_int_15>:
26c: 4b02 ldr r3, [pc, #8] ; (278 <handler_ext_int_15+0xc>)
26e: 2280 movs r2, #128 ; 0x80
270: 0212 lsls r2, r2, #8
272: 601a str r2, [r3, #0]
274: 4770 bx lr
276: 46c0 nop ; (mov r8, r8)
278: e000e280 .word 0xe000e280
Disassembly of section .text.handler_ext_int_16:
0000027c <handler_ext_int_16>:
27c: 4b02 ldr r3, [pc, #8] ; (288 <handler_ext_int_16+0xc>)
27e: 2280 movs r2, #128 ; 0x80
280: 0252 lsls r2, r2, #9
282: 601a str r2, [r3, #0]
284: 4770 bx lr
286: 46c0 nop ; (mov r8, r8)
288: e000e280 .word 0xe000e280
Disassembly of section .text.initialization:
0000028c <initialization>:
28c: b508 push {r3, lr}
28e: 4a07 ldr r2, [pc, #28] ; (2ac <initialization+0x20>)
290: 4b07 ldr r3, [pc, #28] ; (2b0 <initialization+0x24>)
292: 601a str r2, [r3, #0]
294: 4b07 ldr r3, [pc, #28] ; (2b4 <initialization+0x28>)
296: 2200 movs r2, #0
298: 601a str r2, [r3, #0]
29a: f7ff ff51 bl 140 <set_halt_until_mbus_rx>
29e: 2004 movs r0, #4
2a0: f7ff ff0a bl b8 <mbus_enumerate>
2a4: f7ff ff5c bl 160 <set_halt_until_mbus_tx>
2a8: bd08 pop {r3, pc}
2aa: 46c0 nop ; (mov r8, r8)
2ac: deadbeef .word 0xdeadbeef
2b0: 000005b0 .word 0x000005b0
2b4: 000005ac .word 0x000005ac
Disassembly of section .text.cycle0:
000002b8 <cycle0>:
2b8: b508 push {r3, lr}
2ba: 4b05 ldr r3, [pc, #20] ; (2d0 <cycle0+0x18>)
2bc: 20a0 movs r0, #160 ; 0xa0
2be: 6819 ldr r1, [r3, #0]
2c0: f7ff fef2 bl a8 <mbus_write_message32>
2c4: 20fa movs r0, #250 ; 0xfa
2c6: 0080 lsls r0, r0, #2
2c8: f7ff ff06 bl d8 <delay>
2cc: bd08 pop {r3, pc}
2ce: 46c0 nop ; (mov r8, r8)
2d0: 000005ac .word 0x000005ac
Disassembly of section .text.cycle1:
000002d4 <cycle1>:
2d4: b508 push {r3, lr}
2d6: 4b05 ldr r3, [pc, #20] ; (2ec <cycle1+0x18>)
2d8: 20a1 movs r0, #161 ; 0xa1
2da: 6819 ldr r1, [r3, #0]
2dc: f7ff fee4 bl a8 <mbus_write_message32>
2e0: 20fa movs r0, #250 ; 0xfa
2e2: 0080 lsls r0, r0, #2
2e4: f7ff fef8 bl d8 <delay>
2e8: bd08 pop {r3, pc}
2ea: 46c0 nop ; (mov r8, r8)
2ec: 000005ac .word 0x000005ac
Disassembly of section .text.cycle2:
000002f0 <cycle2>:
2f0: b508 push {r3, lr}
2f2: 4b05 ldr r3, [pc, #20] ; (308 <cycle2+0x18>)
2f4: 20a2 movs r0, #162 ; 0xa2
2f6: 6819 ldr r1, [r3, #0]
2f8: f7ff fed6 bl a8 <mbus_write_message32>
2fc: 20fa movs r0, #250 ; 0xfa
2fe: 0080 lsls r0, r0, #2
300: f7ff feea bl d8 <delay>
304: bd08 pop {r3, pc}
306: 46c0 nop ; (mov r8, r8)
308: 000005ac .word 0x000005ac
Disassembly of section .text.cycle3:
0000030c <cycle3>:
30c: b508 push {r3, lr}
30e: 4b05 ldr r3, [pc, #20] ; (324 <cycle3+0x18>)
310: 20a3 movs r0, #163 ; 0xa3
312: 6819 ldr r1, [r3, #0]
314: f7ff fec8 bl a8 <mbus_write_message32>
318: 20fa movs r0, #250 ; 0xfa
31a: 0080 lsls r0, r0, #2
31c: f7ff fedc bl d8 <delay>
320: bd08 pop {r3, pc}
322: 46c0 nop ; (mov r8, r8)
324: 000005ac .word 0x000005ac
Disassembly of section .text.cycle4:
00000328 <cycle4>:
328: b508 push {r3, lr}
32a: 4b05 ldr r3, [pc, #20] ; (340 <cycle4+0x18>)
32c: 20a4 movs r0, #164 ; 0xa4
32e: 6819 ldr r1, [r3, #0]
330: f7ff feba bl a8 <mbus_write_message32>
334: 20fa movs r0, #250 ; 0xfa
336: 0080 lsls r0, r0, #2
338: f7ff fece bl d8 <delay>
33c: bd08 pop {r3, pc}
33e: 46c0 nop ; (mov r8, r8)
340: 000005ac .word 0x000005ac
Disassembly of section .text.cycle5:
00000344 <cycle5>:
344: b508 push {r3, lr}
346: 4b05 ldr r3, [pc, #20] ; (35c <cycle5+0x18>)
348: 20a5 movs r0, #165 ; 0xa5
34a: 6819 ldr r1, [r3, #0]
34c: f7ff feac bl a8 <mbus_write_message32>
350: 20fa movs r0, #250 ; 0xfa
352: 0080 lsls r0, r0, #2
354: f7ff fec0 bl d8 <delay>
358: bd08 pop {r3, pc}
35a: 46c0 nop ; (mov r8, r8)
35c: 000005ac .word 0x000005ac
Disassembly of section .text.cycle6:
00000360 <cycle6>:
360: b508 push {r3, lr}
362: 4b05 ldr r3, [pc, #20] ; (378 <cycle6+0x18>)
364: 20a6 movs r0, #166 ; 0xa6
366: 6819 ldr r1, [r3, #0]
368: f7ff fe9e bl a8 <mbus_write_message32>
36c: 20fa movs r0, #250 ; 0xfa
36e: 0080 lsls r0, r0, #2
370: f7ff feb2 bl d8 <delay>
374: bd08 pop {r3, pc}
376: 46c0 nop ; (mov r8, r8)
378: 000005ac .word 0x000005ac
Disassembly of section .text.cycle7:
0000037c <cycle7>:
37c: b508 push {r3, lr}
37e: 4b05 ldr r3, [pc, #20] ; (394 <cycle7+0x18>)
380: 20a7 movs r0, #167 ; 0xa7
382: 6819 ldr r1, [r3, #0]
384: f7ff fe90 bl a8 <mbus_write_message32>
388: 20fa movs r0, #250 ; 0xfa
38a: 0080 lsls r0, r0, #2
38c: f7ff fea4 bl d8 <delay>
390: bd08 pop {r3, pc}
392: 46c0 nop ; (mov r8, r8)
394: 000005ac .word 0x000005ac
Disassembly of section .text.cycle8:
00000398 <cycle8>:
398: b508 push {r3, lr}
39a: 4b05 ldr r3, [pc, #20] ; (3b0 <cycle8+0x18>)
39c: 20a8 movs r0, #168 ; 0xa8
39e: 6819 ldr r1, [r3, #0]
3a0: f7ff fe82 bl a8 <mbus_write_message32>
3a4: 20fa movs r0, #250 ; 0xfa
3a6: 0080 lsls r0, r0, #2
3a8: f7ff fe96 bl d8 <delay>
3ac: bd08 pop {r3, pc}
3ae: 46c0 nop ; (mov r8, r8)
3b0: 000005ac .word 0x000005ac
Disassembly of section .text.cycle9:
000003b4 <cycle9>:
3b4: b508 push {r3, lr}
3b6: 4b05 ldr r3, [pc, #20] ; (3cc <cycle9+0x18>)
3b8: 20a9 movs r0, #169 ; 0xa9
3ba: 6819 ldr r1, [r3, #0]
3bc: f7ff fe74 bl a8 <mbus_write_message32>
3c0: 20fa movs r0, #250 ; 0xfa
3c2: 0080 lsls r0, r0, #2
3c4: f7ff fe88 bl d8 <delay>
3c8: bd08 pop {r3, pc}
3ca: 46c0 nop ; (mov r8, r8)
3cc: 000005ac .word 0x000005ac
Disassembly of section .text.cycle10:
000003d0 <cycle10>:
3d0: b508 push {r3, lr}
3d2: 4b05 ldr r3, [pc, #20] ; (3e8 <cycle10+0x18>)
3d4: 20aa movs r0, #170 ; 0xaa
3d6: 6819 ldr r1, [r3, #0]
3d8: f7ff fe66 bl a8 <mbus_write_message32>
3dc: 20fa movs r0, #250 ; 0xfa
3de: 0080 lsls r0, r0, #2
3e0: f7ff fe7a bl d8 <delay>
3e4: bd08 pop {r3, pc}
3e6: 46c0 nop ; (mov r8, r8)
3e8: 000005ac .word 0x000005ac
Disassembly of section .text.cycle11:
000003ec <cycle11>:
3ec: b508 push {r3, lr}
3ee: 4b05 ldr r3, [pc, #20] ; (404 <cycle11+0x18>)
3f0: 20ab movs r0, #171 ; 0xab
3f2: 6819 ldr r1, [r3, #0]
3f4: f7ff fe58 bl a8 <mbus_write_message32>
3f8: 20fa movs r0, #250 ; 0xfa
3fa: 0080 lsls r0, r0, #2
3fc: f7ff fe6c bl d8 <delay>
400: bd08 pop {r3, pc}
402: 46c0 nop ; (mov r8, r8)
404: 000005ac .word 0x000005ac
Disassembly of section .text.cycle12:
00000408 <cycle12>:
408: b508 push {r3, lr}
40a: 4b05 ldr r3, [pc, #20] ; (420 <cycle12+0x18>)
40c: 20ac movs r0, #172 ; 0xac
40e: 6819 ldr r1, [r3, #0]
410: f7ff fe4a bl a8 <mbus_write_message32>
414: 20fa movs r0, #250 ; 0xfa
416: 0080 lsls r0, r0, #2
418: f7ff fe5e bl d8 <delay>
41c: bd08 pop {r3, pc}
41e: 46c0 nop ; (mov r8, r8)
420: 000005ac .word 0x000005ac
Disassembly of section .text.cycle13:
00000424 <cycle13>:
424: b508 push {r3, lr}
426: 4b05 ldr r3, [pc, #20] ; (43c <cycle13+0x18>)
428: 20ad movs r0, #173 ; 0xad
42a: 6819 ldr r1, [r3, #0]
42c: f7ff fe3c bl a8 <mbus_write_message32>
430: 20fa movs r0, #250 ; 0xfa
432: 0080 lsls r0, r0, #2
434: f7ff fe50 bl d8 <delay>
438: bd08 pop {r3, pc}
43a: 46c0 nop ; (mov r8, r8)
43c: 000005ac .word 0x000005ac
Disassembly of section .text.cycle14:
00000440 <cycle14>:
440: b508 push {r3, lr}
442: 4b05 ldr r3, [pc, #20] ; (458 <cycle14+0x18>)
444: 20ae movs r0, #174 ; 0xae
446: 6819 ldr r1, [r3, #0]
448: f7ff fe2e bl a8 <mbus_write_message32>
44c: 20fa movs r0, #250 ; 0xfa
44e: 0080 lsls r0, r0, #2
450: f7ff fe42 bl d8 <delay>
454: bd08 pop {r3, pc}
456: 46c0 nop ; (mov r8, r8)
458: 000005ac .word 0x000005ac
Disassembly of section .text.cycle15:
0000045c <cycle15>:
45c: b508 push {r3, lr}
45e: 4b05 ldr r3, [pc, #20] ; (474 <cycle15+0x18>)
460: 20af movs r0, #175 ; 0xaf
462: 6819 ldr r1, [r3, #0]
464: f7ff fe20 bl a8 <mbus_write_message32>
468: 20fa movs r0, #250 ; 0xfa
46a: 0080 lsls r0, r0, #2
46c: f7ff fe34 bl d8 <delay>
470: bd08 pop {r3, pc}
472: 46c0 nop ; (mov r8, r8)
474: 000005ac .word 0x000005ac
Disassembly of section .text.startup.main:
00000478 <main>:
478: b538 push {r3, r4, r5, lr}
47a: f7ff fe81 bl 180 <init_interrupt>
47e: 4b45 ldr r3, [pc, #276] ; (594 <main+0x11c>)
480: 681a ldr r2, [r3, #0]
482: 4b45 ldr r3, [pc, #276] ; (598 <main+0x120>)
484: 429a cmp r2, r3
486: d001 beq.n 48c <main+0x14>
488: f7ff ff00 bl 28c <initialization>
48c: 2400 movs r4, #0
48e: 4d43 ldr r5, [pc, #268] ; (59c <main+0x124>)
490: 682b ldr r3, [r5, #0]
492: 2b00 cmp r3, #0
494: d104 bne.n 4a0 <main+0x28>
496: 20fa movs r0, #250 ; 0xfa
498: 0080 lsls r0, r0, #2
49a: f7ff fe1d bl d8 <delay>
49e: e057 b.n 550 <main+0xd8>
4a0: 230f movs r3, #15
4a2: 4023 ands r3, r4
4a4: d102 bne.n 4ac <main+0x34>
4a6: f7ff ff07 bl 2b8 <cycle0>
4aa: e047 b.n 53c <main+0xc4>
4ac: 2b01 cmp r3, #1
4ae: d102 bne.n 4b6 <main+0x3e>
4b0: f7ff ff10 bl 2d4 <cycle1>
4b4: e042 b.n 53c <main+0xc4>
4b6: 2b02 cmp r3, #2
4b8: d102 bne.n 4c0 <main+0x48>
4ba: f7ff ff19 bl 2f0 <cycle2>
4be: e03d b.n 53c <main+0xc4>
4c0: 2b03 cmp r3, #3
4c2: d102 bne.n 4ca <main+0x52>
4c4: f7ff ff22 bl 30c <cycle3>
4c8: e038 b.n 53c <main+0xc4>
4ca: 2b04 cmp r3, #4
4cc: d102 bne.n 4d4 <main+0x5c>
4ce: f7ff ff2b bl 328 <cycle4>
4d2: e033 b.n 53c <main+0xc4>
4d4: 2b05 cmp r3, #5
4d6: d102 bne.n 4de <main+0x66>
4d8: f7ff ff34 bl 344 <cycle5>
4dc: e02e b.n 53c <main+0xc4>
4de: 2b06 cmp r3, #6
4e0: d102 bne.n 4e8 <main+0x70>
4e2: f7ff ff3d bl 360 <cycle6>
4e6: e029 b.n 53c <main+0xc4>
4e8: 2b07 cmp r3, #7
4ea: d102 bne.n 4f2 <main+0x7a>
4ec: f7ff ff46 bl 37c <cycle7>
4f0: e024 b.n 53c <main+0xc4>
4f2: 2b08 cmp r3, #8
4f4: d102 bne.n 4fc <main+0x84>
4f6: f7ff ff4f bl 398 <cycle8>
4fa: e01f b.n 53c <main+0xc4>
4fc: 2b09 cmp r3, #9
4fe: d102 bne.n 506 <main+0x8e>
500: f7ff ff58 bl 3b4 <cycle9>
504: e01a b.n 53c <main+0xc4>
506: 2b0a cmp r3, #10
508: d102 bne.n 510 <main+0x98>
50a: f7ff ff61 bl 3d0 <cycle10>
50e: e015 b.n 53c <main+0xc4>
510: 2b0b cmp r3, #11
512: d102 bne.n 51a <main+0xa2>
514: f7ff ff6a bl 3ec <cycle11>
518: e010 b.n 53c <main+0xc4>
51a: 2b0c cmp r3, #12
51c: d102 bne.n 524 <main+0xac>
51e: f7ff ff73 bl 408 <cycle12>
522: e00b b.n 53c <main+0xc4>
524: 2b0d cmp r3, #13
526: d102 bne.n 52e <main+0xb6>
528: f7ff ff7c bl 424 <cycle13>
52c: e006 b.n 53c <main+0xc4>
52e: 2b0e cmp r3, #14
530: d102 bne.n 538 <main+0xc0>
532: f7ff ff85 bl 440 <cycle14>
536: e001 b.n 53c <main+0xc4>
538: f7ff ff90 bl 45c <cycle15>
53c: 682b ldr r3, [r5, #0]
53e: 20fa movs r0, #250 ; 0xfa
540: 3301 adds r3, #1
542: 0080 lsls r0, r0, #2
544: 3401 adds r4, #1
546: 602b str r3, [r5, #0]
548: f7ff fdc6 bl d8 <delay>
54c: 2c64 cmp r4, #100 ; 0x64
54e: d19e bne.n 48e <main+0x16>
550: 4b12 ldr r3, [pc, #72] ; (59c <main+0x124>)
552: 4a13 ldr r2, [pc, #76] ; (5a0 <main+0x128>)
554: 6819 ldr r1, [r3, #0]
556: 4291 cmp r1, r2
558: d108 bne.n 56c <main+0xf4>
55a: 20dd movs r0, #221 ; 0xdd
55c: 4911 ldr r1, [pc, #68] ; (5a4 <main+0x12c>)
55e: f7ff fda3 bl a8 <mbus_write_message32>
562: 20fa movs r0, #250 ; 0xfa
564: 0080 lsls r0, r0, #2
566: f7ff fdb7 bl d8 <delay>
56a: e7fe b.n 56a <main+0xf2>
56c: 681a ldr r2, [r3, #0]
56e: 490e ldr r1, [pc, #56] ; (5a8 <main+0x130>)
570: 3201 adds r2, #1
572: 20dd movs r0, #221 ; 0xdd
574: 601a str r2, [r3, #0]
576: f7ff fd97 bl a8 <mbus_write_message32>
57a: 20fa movs r0, #250 ; 0xfa
57c: 0080 lsls r0, r0, #2
57e: f7ff fdab bl d8 <delay>
582: 2101 movs r1, #1
584: 2002 movs r0, #2
586: 1c0a adds r2, r1, #0
588: f7ff fdc2 bl 110 <set_wakeup_timer>
58c: f7ff fd9e bl cc <mbus_sleep_all>
590: 2001 movs r0, #1
592: bd38 pop {r3, r4, r5, pc}
594: 000005b0 .word 0x000005b0
598: deadbeef .word 0xdeadbeef
59c: 000005ac .word 0x000005ac
5a0: 000003e7 .word 0x000003e7
5a4: 0ea70ea7 .word 0x0ea70ea7
5a8: 0ea7f00d .word 0x0ea7f00d
| 31.825911 | 72 | 0.592842 |
247f017d4fef766ce21948b8fa132db1f7ffc562 | 260 | asm | Assembly | programs/oeis/169/A169825.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/169/A169825.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/169/A169825.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A169825: Multiples of 420.
; 0,420,840,1260,1680,2100,2520,2940,3360,3780,4200,4620,5040,5460,5880,6300,6720,7140,7560,7980,8400,8820,9240,9660,10080,10500,10920,11340,11760,12180,12600,13020,13440,13860,14280,14700,15120,15540,15960,16380,16800
mul $0,420
| 52 | 218 | 0.784615 |
2bc6a28ac358419b0b60e98ee031ae533f06ef31 | 524 | asm | Assembly | programs/oeis/286/A286750.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/286/A286750.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/286/A286750.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A286750: Positions of 0 in A286749; complement of A286751.
; 3,4,8,9,12,13,17,18,22,23,26,27,31,32,35,36,40,41,45,46,49,50,54,55,59,60,63,64,68,69,72,73,77,78,82,83,86,87,91,92,95,96,100,101,105,106,109,110,114,115,119,120,123,124,128,129,132,133,137,138,142,143,146,147,151,152,156,157,160,161,165,166,169,170,174,175,179,180,183,184,188,189,192,193,197,198,202,203,206,207,211,212,216,217,220,221,225,226,229,230
mov $2,$0
seq $0,137709 ; Secondary Upper Wythoff Sequence.
sub $0,3
div $0,2
add $0,2
add $0,$2
add $0,1
| 47.636364 | 355 | 0.706107 |
1312c7c9caf521a9c9dd0a38116c409ab6b68ac8 | 181 | asm | Assembly | programs/oeis/130/A130630.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/130/A130630.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/130/A130630.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A130630: Periodic sequence with period 1 1 1 1 1 0 0 0 0.
; 1,1,1,1,1,0,0,0,0,1,1,1,1,1,0,0,0,0,1,1,1,1,1,0,0,0,0,1,1,1,1,1,0,0,0,0,1,1,1,1,1,0,0,0,0
mod $0,9
trn $0,4
pow $1,$0
| 25.857143 | 91 | 0.563536 |
f37a66add18f2aa7b9aca5eec3f60395d0a5f03f | 1,890 | asm | Assembly | Kernel/source/syscall.asm | MessiahAndrw/Perception | 94d4acfb0f10782b329c709694ab70f7e1fe3ce4 | [
"Apache-2.0"
] | 56 | 2015-01-02T14:34:27.000Z | 2020-04-12T17:42:21.000Z | Kernel/source/syscall.asm | AndrewAPrice/Perception | 94d4acfb0f10782b329c709694ab70f7e1fe3ce4 | [
"Apache-2.0"
] | 1 | 2015-06-01T14:40:35.000Z | 2015-06-01T17:51:27.000Z | Kernel/source/syscall.asm | MessiahAndrw/Perception | 94d4acfb0f10782b329c709694ab70f7e1fe3ce4 | [
"Apache-2.0"
] | 6 | 2015-05-03T21:56:28.000Z | 2019-05-31T09:53:38.000Z | [BITS 64]
[GLOBAL syscall_entry]
[EXTERN SyscallHandler]
; temp location to put the stack pointer while we manipulate the code
sys_call_stack_pointer:
DQ 0x0000000000000000
[EXTERN currently_executing_thread_regs]
[EXTERN interrupt_stack_top]
syscall_entry:
; Temporarily save userland rsp
mov [sys_call_stack_pointer], rsp
; Store the current registers
mov rsp, [currently_executing_thread_regs]
add rsp, 19 * 8 ; point to usersp, skipping ss
; Push the registers
push qword [sys_call_stack_pointer] ; usersp
push r11 ; syscall puts rflags are in r11
sub rsp, 8 ; skip cs
push rcx ; syscall puts rip in rcx
push rbp
push rdi
push rax
push rbx
sub rsp, 8 ; don't care about rcx, it was lost in the syscall
push rdx
push rsi
push r8
push r9
push r10
sub rsp, 8; don't care about r11, it was lost in the syscall
push r12
push r13
push r14
push r15
; Move to kernel land data segment - maybe not needed?
mov ax, 0x10
mov ds, ax
mov es, ax
;mov fs, ax
;mov gs, ax
; Move to the interrupt's stack.
mov rsp, [interrupt_stack_top]
; Call the handler
mov rax, SyscallHandler
call rax
; Restore the registers of the caller - maybe not needed?
mov ax, 0x18 | 3
mov ds, ax
mov es, ax
;mov fs, ax
;mov gs, ax
mov rsp, [currently_executing_thread_regs]
pop r15
pop r14
pop r13
pop r12
add rsp, 8 ; skip r11, it was lost in the syscall
pop r10
pop r9
pop r8
pop rsi
pop rdx
add rsp, 8 ; skip rcx, it was lost in the syscall
pop rbx
pop rax
pop rdi
pop rbp
pop rcx ; pop rip into rcx
add rsp, 8 ; skip cs
pop r11 ; pop rflags into r11
pop rsp
o64 sysret | 22.5 | 70 | 0.617989 |
7dd76f05b73bad54c5b60fd58ffbfac3113469a7 | 17,693 | asm | Assembly | MD5.asm | Waleed-Daud/MD5-assembly-x86 | 62debade04649caf55ca43ddd52af640b0ce68da | [
"Apache-2.0"
] | null | null | null | MD5.asm | Waleed-Daud/MD5-assembly-x86 | 62debade04649caf55ca43ddd52af640b0ce68da | [
"Apache-2.0"
] | null | null | null | MD5.asm | Waleed-Daud/MD5-assembly-x86 | 62debade04649caf55ca43ddd52af640b0ce68da | [
"Apache-2.0"
] | null | null | null | ; All rights reserved.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Authors: Waleed Daud, Soona Sead Ahmed, Ahmed Elmujtaba,Mohammed Ibrahim.
; Date: May 2017
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; This function outputs
; the Padded Message from Preprocessing Proecdure.
; the final hash value.
; Receives: the message , Length of the message in bytes.
; Returns: Padded message, hash value.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
global _main
extern _printf
extern _malloc
extern _free
; ----------------------------------------------- DATA SECTION -----------------------------------------------------------------
section .data
;----------------------------------------- Preprocessing DATA: section .data --------------------------------------------------
;this is what you should change.
message: db 'The'
message_size_byte: dd 3
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; End of the changed inputs ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
message_size_bit: dd 448
format_default: db '%d ',0
format_hex: db '%04x ',0
format_hex_digest_message: db '%x',0
format_char: db '%c ',0
format_newline: db 10,0
paded_message_length: dd 8
max_block_size: dd 64
CONSTANT: dd 448
;--------------------------------------------------- End of Preprocessing DATA : section .data ---------------------------------
;---------------------------------------------- MD5 Hash DATA : section .data ---------------------------------------------------
KMD5 :
dd 0xd76aa478, 0xe8c7b756, 0x242070db, 0xc1bdceee
dd 0xf57c0faf, 0x4787c62a, 0xa8304613, 0xfd469501
dd 0x698098d8, 0x8b44f7af, 0xffff5bb1, 0x895cd7be
dd 0x6b901122, 0xfd987193, 0xa679438e, 0x49b40821
dd 0xf61e2562, 0xc040b340, 0x265e5a51, 0xe9b6c7aa
dd 0xd62f105d, 0x02441453, 0xd8a1e681, 0xe7d3fbc8
dd 0x21e1cde6, 0xc33707d6, 0xf4d50d87, 0x455a14ed
dd 0xa9e3e905, 0xfcefa3f8, 0x676f02d9, 0x8d2a4c8a
dd 0xfffa3942, 0x8771f681, 0x6d9d6122, 0xfde5380c
dd 0xa4beea44, 0x4bdecfa9, 0xf6bb4b60, 0xbebfbc70
dd 0x289b7ec6, 0xeaa127fa, 0xd4ef3085, 0x04881d05
dd 0xd9d4d039, 0xe6db99e5, 0x1fa27cf8, 0xc4ac5665
dd 0xf4292244, 0x432aff97, 0xab9423a7, 0xfc93a039
dd 0x655b59c3, 0x8f0ccc92, 0xffeff47d, 0x85845dd1
dd 0x6fa87e4f, 0xfe2ce6e0, 0xa3014314, 0x4e0811a1
dd 0xf7537e82, 0xbd3af235, 0x2ad7d2bb, 0xeb86d391
; this is the constant values used for shifting operation.
S :
dd 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22
dd 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20
dd 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23
dd 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21
; these are the initial hash values.
h1: dd 0x67452301
h2: dd 0xefcdab89
h3: dd 0x98badcfe
h4: dd 0x10325476
; Modified Total Rounds
Rounds: dd 63 ; 63 because a counter will start form 0.
Limit1: dd 15
Limit2: dd 31
Limit3: dd 47
Limit4: dd 63
section .bss
;----------------------------------------- Preprocessing DATA: section .bss --------------------------------------------------
block_counter: resd 1
allocating_space: resd 1
allocating_space_address: resd 1
K: resd 1
;----------------------------------------- End of Preprocessing DATA : section .bss ---------=--------------------------------
;-----------------------------------------MD5 Hash DATA: section .bss ---------------------------------------------------------
A: resd 1
B: resd 1
C: resd 1
D: resd 1
; these are the varribles used to save the results of the functions used in this code.
F_result: resd 1
G_result: resd 1
H_result: resd 1
I_result: resd 1
F_g_result: resd 1
G_g_result: resd 1
H_g_result: resd 1
I_g_result: resd 1
;to save the result of calculation of function to use it in the main.
result_f: resd 1
result_g: resd 1
; to save the result of Leftrotate function.
Leftrotate_result: resd 1
;final output.
Digest_message: resd 1
; temp vrriables.
temp_varriable: resd 1
TIME1: resd 1
TIME2: resd 1
;----------------------------------------------------- End of MD5 Hash DATA: section .bss ----------------------------------------------------
;-------------------------------------------------- End of DATA SECTION --------------------------------------------------------
;------------------------------------------------- Code SECTION ----------------------------------------------------------------
section .text
_main:
; ################################################# PREPROCESSING ##############################################################
; TIME Calculation: begin.
cpuid
rdtsc
xor ecx,ecx ; get current timestamp (saved in a 64 bit value: EDX [first half], EAX [second half])
add ecx,eax ; sets ECX to zero
mov [TIME1],ecx
cpuid
rdtsc
xor ecx,ecx ; get current timestamp (saved in a 64 bit value: EDX [first half], EAX [second half])
add ecx,eax ; sets ECX to zero
mov [TIME1],ecx
cpuid
rdtsc
xor ecx,ecx ; get current timestamp (saved in a 64 bit value: EDX [first half], EAX [second half])
add ecx,eax ; sets ECX to zero
mov [TIME1],ecx
;Begging
mov eax,[message_size_byte]
add eax,[paded_message_length]
add eax,1 ; this is the '1' byte which to be paded to the length of the message.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Allocation Section ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Block numbers Calculation.
mov ecx,[max_block_size]
shr eax,6
cmp eax,0
je Block_allocation_1
cmp eax,0
jg Block_allocation_2
Block_allocation_1:
mov ebx,1
mov [block_counter],ebx
jmp allocation_Size
Block_allocation_2:
mov ebx,eax
inc ebx
mov [block_counter],ebx
jmp allocation_Size
; Allocating Process.
allocation_Size:
mov ebx,[max_block_size]
mov eax,[block_counter]
mul ebx
mov [allocating_space],eax
push eax
call _malloc
add esp,4
test eax,eax ; test if malloc faild to allocate memory
jz faild_allocation
mov [allocating_space_address],eax ; save the new address.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Padding Section ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Adding the Message to the new Block.
; ebx will have the address of the allocating space reserved by malloc.
mov ebx , [allocating_space_address]
xor ecx,ecx
character_loop:
lea edx,[ebx+ecx]
mov byte al, [message+ecx]
mov byte [edx],al
inc ecx
cmp ecx,[message_size_byte]
jl character_loop
mov eax , [message_size_byte]
mov byte [ebx+eax],0x80 ; adding the 1 byte.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; adding Zeros ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Zeros Calculation.
mov ecx,[message_size_byte]
add ecx,1 ; this is the 8 bits used by the adding 1.
add ecx,8
mov eax, [allocating_space]
sub eax,ecx
add eax,7 ; this is the added zeros with the '1' bit.
; Zeros adding.
mov [K],eax
mov ecx,[message_size_byte]
mov edx,1
lea edi,[ebx+ecx]
zero_loop:
mov byte al, 0
mov byte [edi+edx],al
inc edx
cmp edx,[K]
jle zero_loop
mov ecx ,[message_size_byte]
add ecx,1
add ecx,[K]
lea edi,[ebx+ecx]
mov esi,[message_size_byte]
mov [edi] ,esi
pusha
mov ebx,[allocating_space_address]
mov ecx,[allocating_space]
call ShowMessageInByte
popa
;;;;;;;;;;;;;;;; new line ;;;;;;;;;;;;;;;;;;
pusha
push format_newline
call _printf
add esp,4
popa
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; ############################################## End of PREPROCESSING ##########################################################
; ############################################# MD5 HASH COMPUTING ############################################################
; A loop for iterating in blocks.
xor edi,edi ; a counter for block loop.
Block:
; initialize hash value for this block.
mov eax,[h1]
mov [A],eax
mov eax,[h2]
mov [B],eax
mov eax,[h3]
mov [C],eax
mov eax,[h4]
mov [D],eax
; A loop inside the block.
xor esi,esi ; a counter for the current block.
Inside_Block:
cmp esi,[Limit1]
jle Process_1
cmp esi,[Limit2]
jle Process_2
cmp esi,[Limit3]
jle Process_3
cmp esi,[Limit4]
jle Process_4
;these are the procedures for calculation.
Process_1:
pusha
mov eax,[B]
mov ebx,[C]
mov ecx,[D]
mov esi,esi
call F
mov eax,[F_result]
mov [result_f],eax
mov eax,[F_g_result]
mov [result_g],eax
popa
jmp Working_Varriables
Process_2:
pusha
mov eax,[B]
mov ebx,[C]
mov ecx,[D]
mov esi,esi
call G
mov eax,[G_result]
mov [result_f],eax
mov eax,[G_g_result]
mov [result_g],eax
popa
jmp Working_Varriables
Process_3:
pusha
mov eax,[B]
mov ebx,[C]
mov ecx,[D]
mov esi,esi
call H
mov eax,[H_result]
mov [result_f],eax
mov eax,[H_g_result]
mov [result_g],eax
popa
jmp Working_Varriables
Process_4:
pusha
mov eax,[B]
mov ebx,[C]
mov ecx,[D]
mov esi,esi
call I
mov eax,[I_result]
mov [result_f],eax
mov eax,[I_g_result]
mov [result_g],eax
popa
jmp Working_Varriables
; end of functions space.
Working_Varriables:
mov edx,[D]
mov ecx,[C]
mov [D],ecx ; update D
mov ecx,[B]
mov [C],ecx ; update C
pusha
;this is the calculation of the first element to be pushed to Leftrotate function.
mov ecx,[A]
add ecx,[result_f]
mov edx,[KMD5+esi]
add ecx,edx
; calculate M[g]
mov eax,edi
mov ebx,64 ; to walk through the blocks.
mul ebx
; this step for getting the 32 bit number , jumping by 4 byte.
mov [temp_varriable],eax ; save the value of eax.
; multiplication procedure.
mov eax,[result_g]
mov ebx,4
mul ebx
mov [result_g],eax
mov eax,[temp_varriable] ; return the value of eax.
add eax,[result_g]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
mov ebx,[allocating_space_address]
mov edi,[ebx+eax]
; add A,F,K[i] with M[g].
add ecx,edi
mov eax,ecx ; the first element to be pushed to the Leftrotate function.
mov ebx,[S+esi] ; the second element to be pushed to Leftrotate function.
call Leftrotate
popa
mov ecx,[B]
add ecx,[Leftrotate_result]
mov [B],ecx ; update B.
mov [A],edx ; update A.
inc esi
cmp esi,[Rounds]
jle Inside_Block
; update initial hash value.
mov eax,[h1]
add eax,[A] ; update h1.
mov [h1],eax
mov eax,[h2]
add eax,[B] ; update h2
mov [h2],eax
mov eax,[h3]
add eax,[C] ; update h3
mov [h3],eax
mov eax,[h4]
add eax,[D] ; update h4
mov [h4],eax
inc edi
cmp edi,[block_counter]
jl Block
; now let's reserve a size for final output by malloc.
mov eax,16 ; this is the 128 bits.
pusha
push eax
call _malloc
add esp,4
mov [Digest_message],eax
test eax,eax ; test if malloc faild to allocate memory
jz faild_allocation
popa
mov ebx,[Digest_message] ; save the address of the output in ebx.
; outputs will be in a little endian format.
mov eax,[h4]
mov dword [ebx],eax
mov eax,[h3]
mov dword [ebx+4],eax
mov eax,[h2]
mov dword [ebx+8],eax
mov eax,[h1]
mov dword [ebx+12],eax
; ############################################## END OF MD5 HASH COMPUTING ####################################################
; output the Hash.
pusha
mov eax,[Digest_message]
mov ecx,16
call ShowMessageInByte
popa
ret
; ###################################################### END OF MAIN ###########################################################
; --------------------------------------------------- Malloc test faild -------------------------------------------------------
faild_allocation:
ret
;--------------------------------------------- Functions SECTION ----------------------------------------------------------------
;-------------------------------------------------------------------------------------------------------------------------------
; F
; it performs bitwise operation: (B and C) or ((not B) and D).
; Received: a three working varriables B,C,D and g in eax,ebx,ecx,esi respectively.
; Returns : a 32 bit number.
;-------------------------------------------------------------------------------------------------------------------------------
F:
mov edx,eax
and eax,ebx
mov edi,eax ; edi for saving result of operation one.
not edx
and edx,ecx
or edi,edx
mov [F_result],edi
mov [F_g_result],esi
ret
;-------------------------------------------------------------------------------------------------------------------------------
; G
; it performs bitwise operation: (D and B) or ((not D) and C).
; Received: a three working varriables B,C,D and g in eax,ebx,ecx,esi respectively.
; Returns : a 32 bit number.
;-------------------------------------------------------------------------------------------------------------------------------
G:
mov edx,ecx ; saving value of d.
and ecx,eax
mov edi,ecx ; edi for saving result of operation one.
not edx ; inverting value of d.
and edx,ebx
or edi,edx
mov [G_result],edi
;calculate g
;performs (5*i+1)modulo 16 .
;(5*i+1)
mov eax,esi
mov ebx,5
mul ebx
add eax,1
;modulo 16 .
mov edx,0
mov ebx,16
div ebx ; result of division ( reminder) will be in edx.
mov [G_g_result],edx
ret
;-------------------------------------------------------------------------------------------------------------------------------
; H
; it performs bitwise operation: B xor C xor D.
; Received: a three working varriables B,C,D and g in eax,ebx,ecx,esi respectively.
; Returns : a 32 bit number.
;-------------------------------------------------------------------------------------------------------------------------------
H:
xor eax,ebx
xor eax,ecx
mov [H_result],eax
;calculate g
;performs (3*i+5)modulo 16 .
;(3*i+5)
mov eax,esi
mov ebx,3
mul ebx
add eax,5
;modulo 16 .
mov edx,0
mov ebx,16
div ebx ; result of division ( reminder) will be in edx.
mov [H_g_result],edx
ret
;-------------------------------------------------------------------------------------------------------------------------------
; I
; it performs bitwise operation: C xor (B or (not D)).
; Received: a three working varriables B,C,D and g in eax,ebx,ecx,esi respectively.
; Returns : a 32 bit number.
;-------------------------------------------------------------------------------------------------------------------------------
I:
not ecx
or eax,ecx
xor ebx,eax
mov [I_result],ebx
;calculate g
;performs (7*i)modulo 16 .
;(7*i)
mov eax,esi
mov ebx,7
mul ebx
;modulo 16 .
mov edx,0
mov ebx,16
div ebx ; result of division ( reminder) will be in edx.
mov [I_g_result],edx
ret
;-------------------------------------------------------------------------------------------------------------------------------
;Leftrotate
; it performs: (x << c) binary or (x >> (32-c));
;Received: x (sum),c in eax,ebx respectively.
;Returns : a 32 bit number.
;-------------------------------------------------------------------------------------------------------------------------------
Leftrotate:
mov edi,eax ; save the value of x.
mov ecx,ebx ; I do this code to transfer ebx value to cl through ecx. ecx ==> cx:ch,cl.
shl eax,cl ; because shl,shr the count must be in cl not any register.
mov edx,32
sub edx,ebx
mov ecx,edx ; I do this step for transfering edx value to cl through ecx.
shr edi,cl
or eax,edi
mov [Leftrotate_result],eax
ret
; ------------------------------------------------Functions: Test functions ----------------------------------------------------
;-------------------------------------------------------------------------------------------------------------------------------
; ShowMessageInByte
; it outputs the message byte by byte.
; Receives: ebx pointer to the message, ecx number of bytes.
; Returns: outputs the message in bytes.
;-------------------------------------------------------------------------------------------------------------------------------
;
ShowMessageInByte:
mov edi,0
L1:
movzx eax,byte[ebx+edi]
pusha
push eax
push format_hex
call _printf
add esp,8
popa
inc edi
cmp edi ,ecx
jl L1
ret
;-------------------------------------------------------------------------------------------------------------------------------
; ShowMessageInWord
; it outputs the message word by word.
; Receives: ebx pointer to the message, ecx number of bytes.
; Returns: outputs the message in words.
;-------------------------------------------------------------------------------------------------------------------------------
;
ShowMessageInWord:
mov edi,0
L2:
mov eax,[ebx+edi]
pusha
push eax
push format_hex
call _printf
add esp,8
popa
add edi,4
cmp edi ,ecx
jl L2
ret
| 26.407463 | 143 | 0.480077 |
cfa85b214e11d8a466142f0111515d627c990266 | 2,580 | asm | Assembly | _incObj/Sonic Spindash.asm | derpguy125/SnorcRomHack-Master | 649ec7bdd595d4752a9968367e516a3c32cd2566 | [
"Unlicense"
] | null | null | null | _incObj/Sonic Spindash.asm | derpguy125/SnorcRomHack-Master | 649ec7bdd595d4752a9968367e516a3c32cd2566 | [
"Unlicense"
] | null | null | null | _incObj/Sonic Spindash.asm | derpguy125/SnorcRomHack-Master | 649ec7bdd595d4752a9968367e516a3c32cd2566 | [
"Unlicense"
] | null | null | null | ;---------------------------------------------------------------------------
;Subroutine to make Sonic perform a spindash
;---------------------------------------------------------------------------
;||||||||||||||| S U B R O U T I N E |||||||||||||||||||||||||||||||||||||||
Sonic_SpinDash:
tst.b $39(a0) ; already Spin Dashing?
bne.s loc_1AC8E ; if set, branch
tst.b f_spindash(a0)
bne.s loc_1AC8E
cmpi.b #id_duck,obAnim(a0)
bne.s locret_1AC8C
move.b (v_jpadpress2).w,d0
andi.b #$70,d0
beq.w locret_1AC8C
move.b #id_Spindash,obAnim(a0) ; changed from #9
move.w #$BE,d0
jsr (PlaySound_Special).l
addq.l #4,sp
move.b #1,f_spindash(a0)
move.w #0,$3A(a0)
cmpi.b #$C,$28(a0)
bcs.s loc_1AC84
move.b #2,($FFFFD11C).w
loc_1AC84:
bsr.w Sonic_LevelBound
bsr.w Sonic_AnglePos
locret_1AC8C:
rts
;---------------------------------------------------------------------------
loc_1AC8E:
move.b #$1F,$1C(a0)
move.b (v_jpadhold2).w,d0
btst #1,d0
bne.w loc_1AD30
move.b #$E,$16(a0)
move.b #7,$17(a0)
move.b #2,obAnim(a0)
addq.w #5,$C(a0)
move.b #0,f_spindash(a0)
moveq #0,d0
move.b $3A(a0),d0
add.w d0,d0
move.w Dash_Speeds(pc,d0.w),$14(a0)
move.w obInertia(a0),d0
subi.w #$800,d0
add.w d0,d0
andi.w #$1F00,d0
neg.w d0
addi.w #$2000,d0
move.w d0,($FFFFEED0).w
btst #0,$22(a0)
beq.s loc_1ACF4
neg.w $14(a0)
loc_1ACF4:
bset #2,$22(a0)
move.b #0,($FFFFD11C).w
move.w #$BC,d0
jsr (PlaySound_Special).l
bra.s loc_1AD78
;===========================================================================
Dash_Speeds:
dc.w $800 ; 0
dc.w $880 ; 1
dc.w $900 ; 2
dc.w $980 ; 3
dc.w $A00 ; 4
dc.w $A80 ; 5
dc.w $B00 ; 6
dc.w $B80 ; 7
dc.w $C00 ; 8
;===========================================================================
loc_1AD30: ; If still charging the dash...
tst.w $3A(a0)
beq.s loc_1AD48
move.w $3A(a0),d0
lsr.w #5,d0
sub.w d0,$3A(a0)
bcc.s loc_1AD48
move.w #0,$3A(a0)
loc_1AD48:
move.b (v_jpadpress2).w,d0
andi.b #$70,d0 ; 'p'
beq.w loc_1AD78
move.w #$1F00,$1C(a0)
move.w #$BE,d0 ; 'à'
jsr (PlaySound_Special).l
addi.w #$200,$3A(a0)
cmpi.w #$800,$3A(a0)
bcs.s loc_1AD78
move.w #$800,$3A(a0)
loc_1AD78:
addq.l #4,sp
cmpi.w #$60,($FFFFEED8).w
beq.s loc_1AD8C
bcc.s loc_1AD88
addq.w #4,($FFFFEED8).w
loc_1AD88:
subq.w #2,($FFFFEED8).w
loc_1AD8C:
bsr.w Sonic_LevelBound
bsr.w Sonic_AnglePos
move.w #$60,(v_lookshift).w
rts
;End of subroutine Sonic_SpinDash | 22.241379 | 76 | 0.503488 |
c385d94ca4c60f37b8aed697a22d17e1d0095179 | 792 | asm | Assembly | oeis/335/A335857.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/335/A335857.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/335/A335857.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A335857: a(n) is the determinant of the n X n Hankel matrix A with A(i,j) = A000108(i+j+6) for 0<=i,j<=n-1.
; Submitted by Simon Strandgaard
; 1,132,4719,81796,884884,6852768,41314284,204951252,869562265,3245256300,10880587575,33309352440,94307358288,249485071616,621856804272,1470540624696,3318218562009,7179339254516,14955909351383,30104651175324,58733021049780,111358254207200,205671184855500,370795221096300,653733306903105,1128967908544476,1912540707229647,3182413883184304,5207532957946176,8388807501195264,13316243010735808,20847745444452784,32216739020929617,49177758427234020,74201680969276575,110735348641789300,163544106188111220
mul $0,2
add $0,1
mov $1,1
mov $2,$0
seq $0,107398 ; a(n) = binomial(n+7, 7) * binomial(n+9, 7).
add $1,$2
add $1,4
mul $1,$0
mov $0,$1
div $0,5760
| 52.8 | 499 | 0.809343 |
b88bea52611f3c3b916daff54bc0736e9dbdbf88 | 2,178 | asm | Assembly | gfx/sgb/pal_packets.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 28 | 2019-11-08T07:19:00.000Z | 2021-12-20T10:17:54.000Z | gfx/sgb/pal_packets.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 13 | 2020-01-11T17:00:40.000Z | 2021-09-14T01:27:38.000Z | gfx/sgb/pal_packets.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 22 | 2020-05-28T17:31:38.000Z | 2022-03-07T20:49:35.000Z | ; macros taken from pokered's data/sgb_packets.asm
; names taken from pandocs
; http://gbdev.gg8.se/wiki/articles/SGB_Functions#SGB_Palette_Commands
sgb_pal_set: MACRO
db (SGB_PAL_SET << 3) + 1
dw PREDEFPAL_\1, PREDEFPAL_\2, PREDEFPAL_\3, PREDEFPAL_\4
ds 7
ENDM
sgb_pal01: MACRO
db (SGB_PAL01 << 3) + 1
ENDM
sgb_pal23: MACRO
db (SGB_PAL23 << 3) + 1
ENDM
PalPacket_GSTitleScreen:
sgb_pal_set GS_TITLE_SCREEN_0, GS_TITLE_SCREEN_1, GS_TITLE_SCREEN_2, GS_TITLE_SCREEN_3
PalPacket_MagnetTrain:
sgb_pal_set BETA_SHINY_GREENMON, CGB_BADGE, RB_BROWNMON, 00
PalPacket_BetaPoker:
sgb_pal_set BETA_POKER_0, BETA_POKER_1, BETA_POKER_2, BETA_POKER_3
PalPacket_UnownPuzzle:
sgb_pal_set UNOWN_PUZZLE, UNOWN_PUZZLE, UNOWN_PUZZLE, UNOWN_PUZZLE
PalPacket_9bd6:
sgb_pal_set 00, 00, 00, 00
PalPacket_GSIntroShellderLapras:
sgb_pal_set GS_INTRO_SHELLDER_LAPRAS, 00, 00, 00
UnreferencedPalPacket_BetaIntroLapras:
sgb_pal_set BETA_INTRO_LAPRAS, 00, 00, 00
PalPacket_GSIntroJigglypuffPikachu:
sgb_pal_set GS_INTRO_JIGGLYPUFF_PIKACHU_BG, GS_INTRO_JIGGLYPUFF_PIKACHU_OB, 00, 00
PalPacket_GSIntroStartersTransition:
sgb_pal_set GS_INTRO_STARTERS_TRANSITION, 00, 00, 00
PalPacket_BetaIntroVenusaur:
sgb_pal_set BETA_INTRO_VENUSAUR, 00, 00, 00
PalPacket_Pack:
sgb_pal_set PACK, 00, 00, 00
PalPacket_BetaPikachuMinigame:
sgb_pal_set GS_INTRO_JIGGLYPUFF_PIKACHU_OB, 00, 00, 00
PalPacket_PartyMenu:
sgb_pal_set PARTY_ICON, HP_GREEN, HP_YELLOW, HP_RED
PalPacket_BattleGrayscale:
sgb_pal_set BLACKOUT, BLACKOUT, BLACKOUT, BLACKOUT
PalPacket_Pokegear:
sgb_pal_set POKEGEAR, 00, 00, 00
UnreferencedPalPacket_9c86:
sgb_pal_set PACK, 00, 00, 00
PalPacket_SlotMachine:
sgb_pal_set SLOT_MACHINE_0, SLOT_MACHINE_1, SLOT_MACHINE_2, SLOT_MACHINE_3
PalPacket_BetaTitleScreen:
sgb_pal_set BETA_LOGO_1, BETA_LOGO_2, DIPLOMA, RB_PURPLEMON
PalPacket_Diploma:
sgb_pal_set DIPLOMA, 00, 00, 00
PalPacket_TradeTube:
sgb_pal_set TRADE_TUBE, 00, 00, 00
PalPacket_GamefreakLogo:
sgb_pal_set GS_INTRO_GAMEFREAK_LOGO, 00, 00, 00
PalPacket_9ce6:
sgb_pal01
RGB 31, 31, 31
rept 6
RGB 00, 00, 00
endr
ds 1
PalPacket_9cf6:
sgb_pal23
RGB 31, 31, 31
rept 6
RGB 00, 00, 00
endr
ds 1
| 22.453608 | 87 | 0.817723 |
bce16bb69afa9e4d284f40491a43f01447b650b2 | 1,235 | asm | Assembly | programs/oeis/245/A245989.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/245/A245989.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/245/A245989.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A245989: Number of length n+2 0..2 arrays with no pair in any consecutive three terms totalling exactly 2.
; 8,12,18,26,38,56,82,120,176,258,378,554,812,1190,1744,2556,3746,5490,8046,11792,17282,25328,37120,54402,79730,116850,171252,250982,367832,539084,790066,1157898,1696982,2487048,3644946,5341928,7828976,11473922,16815850,24644826,36118748,52934598,77579424,113698172,166632770,244212194,357910366,524543136,768755330,1126665696,1651208832,2419964162,3546629858,5197838690,7617802852,11164432710,16362271400,23980074252,35144506962,51506778362,75486852614,110631359576,162138137938,237624990552,348256350128,510394488066,748019478618,1096275828746,1606670316812,2354689795430,3450965624176,5057635940988,7412325736418,10863291360594,15920927301582,23333253038000,34196544398594,50117471700176,73450724738176,107647269136770,157764740836946,231215465575122,338862734711892,496627475548838,727842941123960,1066705675835852,1563333151384690,2291176092508650,3357881768344502,4921214919729192,7212391012237842,10570272780582344,15491487700311536,22703878712549378,33274151493131722,48765639193443258,71469517905992636,104743669399124358,153509308592567616,224978826498560252
seq $0,48589 ; Pisot sequence L(7,9).
sub $0,3
mul $0,2
| 176.428571 | 1,068 | 0.879352 |
6b2ab3e204c15664c948d6b319fb07a52791f1e8 | 6,266 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1203.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1203.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1203.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 %r14
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x180b1, %rcx
nop
nop
nop
nop
sub $33961, %rdi
mov $0x6162636465666768, %r8
movq %r8, %xmm1
vmovups %ymm1, (%rcx)
nop
nop
nop
nop
lfence
lea addresses_A_ht+0xa321, %rsi
lea addresses_normal_ht+0x60e1, %rdi
nop
nop
dec %rbp
mov $83, %rcx
rep movsl
nop
nop
cmp %r8, %r8
lea addresses_WT_ht+0x5721, %rsi
lea addresses_WC_ht+0xc721, %rdi
nop
nop
nop
nop
sub %rbp, %rbp
mov $86, %rcx
rep movsl
nop
add $41877, %rcx
lea addresses_WT_ht+0xb201, %rsi
clflush (%rsi)
nop
nop
nop
nop
nop
sub %r9, %r9
mov $0x6162636465666768, %rcx
movq %rcx, %xmm4
and $0xffffffffffffffc0, %rsi
vmovntdq %ymm4, (%rsi)
nop
nop
nop
nop
nop
cmp $18550, %rbp
lea addresses_UC_ht+0xd9a1, %rsi
nop
nop
cmp %r9, %r9
mov (%rsi), %rdi
nop
dec %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
// Store
lea addresses_WC+0x1bc21, %r10
nop
nop
nop
add %r15, %r15
mov $0x5152535455565758, %rdi
movq %rdi, %xmm5
movups %xmm5, (%r10)
nop
nop
nop
nop
sub %rax, %rax
// Store
mov $0xce1, %rax
nop
nop
nop
nop
dec %rcx
mov $0x5152535455565758, %r15
movq %r15, %xmm4
vmovups %ymm4, (%rax)
nop
nop
nop
nop
nop
cmp %r10, %r10
// Store
lea addresses_WC+0x1e961, %r15
nop
nop
nop
add %rsi, %rsi
movw $0x5152, (%r15)
cmp %rdi, %rdi
// Store
lea addresses_WT+0x1d787, %r15
nop
nop
nop
nop
nop
and $8803, %rcx
movb $0x51, (%r15)
cmp $35612, %rcx
// Faulty Load
lea addresses_A+0x15f21, %rcx
sub %rdi, %rdi
mov (%rcx), %r15w
lea oracles, %rcx
and $0xff, %r15
shlq $12, %r15
mov (%rcx,%r15,1), %r15
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r15
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': False, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': True, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 1}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_A', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 4}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 6}}
{'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_WT_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 10}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': True, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC_ht', 'same': True, 'AVXalign': False, 'congruent': 7}}
{'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
*/
| 35.40113 | 2,999 | 0.657517 |
d489085c664819698aeab0190b3ec68cd2df8d2c | 462 | asm | Assembly | Working Disassembly/Levels/LRZ/Misc Object Data/Map - Button.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/LRZ/Misc Object Data/Map - Button.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 7e8a2c5df02271615ff4cae529521e6b1560d6b1 | [
"Apache-2.0"
] | null | null | null | Working Disassembly/Levels/LRZ/Misc Object Data/Map - Button.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 7e8a2c5df02271615ff4cae529521e6b1560d6b1 | [
"Apache-2.0"
] | null | null | null | dc.w word_2C74E-Map_LRZButton
dc.w word_2C75C-Map_LRZButton
dc.w word_2C76A-Map_LRZButton
word_2C74E: dc.w 2 ; DATA XREF: ROM:0002C748o
dc.b $F6, 5, 0, 0, $FF, $F0
dc.b $F6, 5, 8, 0, 0, 0
word_2C75C: dc.w 2 ; DATA XREF: ROM:0002C748o
dc.b $F6, 5, 0, 4, $FF, $F0
dc.b $F6, 5, 8, 4, 0, 0
word_2C76A: dc.w 2 ; DATA XREF: ROM:0002C748o
dc.b $FA, 5, 0, 0, $FF, $F0
dc.b $FA, 5, 8, 0, 0, 0
| 35.538462 | 48 | 0.532468 |
13b97064c8e6d37f950d7bc20d097601f8e91b45 | 1,272 | asm | Assembly | artwork/barbaro_espada_ouch.asm | fjpena/sword-of-ianna-zx | fdd6bdb5775933756e75402a7c6be80d5334702d | [
"Apache-2.0"
] | 67 | 2017-10-07T18:48:05.000Z | 2022-02-01T20:37:40.000Z | artwork/barbaro_espada_ouch.asm | fjpena/sword-of-ianna-zx | fdd6bdb5775933756e75402a7c6be80d5334702d | [
"Apache-2.0"
] | null | null | null | artwork/barbaro_espada_ouch.asm | fjpena/sword-of-ianna-zx | fdd6bdb5775933756e75402a7c6be80d5334702d | [
"Apache-2.0"
] | 9 | 2017-10-06T21:02:55.000Z | 2022-01-06T03:11:58.000Z | ; ASM source file created by SevenuP v1.20
; SevenuP (C) Copyright 2002-2006 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Frames: 2
;Sort Priorities: X char, Char line, Y char, Frame number
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
barbaro_espada_ouch:
DEFB 24, 0, 0, 24, 7, 0, 24,248
DEFB 128, 25, 1, 0, 26, 2, 0, 26
DEFB 121, 0, 50,249, 0, 48,202, 32
DEFB 54, 72, 2, 55, 48, 32,177,192
DEFB 68,177,232, 16,180,232,160, 2
DEFB 1, 10,117,224,160,115,240, 0
DEFB 119,242,136, 3,248, 4, 1,224
DEFB 0, 0, 8,160, 0, 1, 80, 0
DEFB 112,160, 0,249, 8, 0,124, 80
DEFB 0, 60, 0, 0, 28,160, 0, 41
DEFB 64, 0, 82,128, 0,233, 80, 1
DEFB 192, 0, 1,224, 0, 0,240, 0
DEFB 0, 0, 0, 96, 0, 32, 96,112
DEFB 80, 48,136, 40, 48,103,200, 24
DEFB 16, 16, 24, 96, 16, 12,130,128
DEFB 12, 3,192, 6,115,192, 6,249
DEFB 144, 3,124, 8, 3, 46, 96, 1
DEFB 135,104, 5,163, 80, 12,192, 0
DEFB 14,144, 80, 5, 57,224, 0, 89
DEFB 192, 0,224, 0, 0, 28, 0, 0
DEFB 62, 32, 0, 62, 80, 0, 28, 40
DEFB 0, 34, 84, 0, 28, 0, 0, 32
DEFB 10, 0,120, 32, 0,240, 84, 0
DEFB 112,160, 0, 16, 80, 0, 0, 40 | 34.378378 | 72 | 0.548742 |
a928c5e92a5c3a10a7be21063011f3faa3c79998 | 1,114 | asm | Assembly | data/mapObjects/silphco4.asm | etdv-thevoid/pokemon-rgb-enhanced | 5b244c1cf46aab98b9c820d1b7888814eb7fa53f | [
"MIT"
] | 1 | 2022-01-09T05:28:52.000Z | 2022-01-09T05:28:52.000Z | data/mapObjects/silphco4.asm | ETDV-TheVoid/pokemon-rgb-enhanced | 5b244c1cf46aab98b9c820d1b7888814eb7fa53f | [
"MIT"
] | null | null | null | data/mapObjects/silphco4.asm | ETDV-TheVoid/pokemon-rgb-enhanced | 5b244c1cf46aab98b9c820d1b7888814eb7fa53f | [
"MIT"
] | null | null | null | SilphCo4Object:
db $2e ; border block
db $7 ; warps
db $0, $18, $1, SILPH_CO_3F
db $0, $1a, $1, SILPH_CO_5F
db $0, $14, $0, SILPH_CO_ELEVATOR
db $7, $b, $3, SILPH_CO_10F
db $3, $11, $3, SILPH_CO_6F
db $f, $3, $4, SILPH_CO_10F
db $b, $11, $5, SILPH_CO_10F
db $0 ; signs
db $7 ; objects
object SPRITE_LAPRAS_GIVER, $6, $2, STAY, NONE, $1 ; person
object SPRITE_ROCKET, $9, $e, STAY, RIGHT, $2, OPP_ROCKET, $1a
object SPRITE_OAK_AIDE, $e, $6, STAY, LEFT, $3, OPP_SCIENTIST, $5
object SPRITE_ROCKET_F, $1a, $a, STAY, UP, $4, OPP_ROCKET_F, $8
object SPRITE_BALL, $3, $9, STAY, NONE, $5, FULL_HEAL
object SPRITE_BALL, $4, $7, STAY, NONE, $6, MAX_REVIVE
object SPRITE_BALL, $5, $8, STAY, NONE, $7, ESCAPE_ROPE
; warp-to
EVENT_DISP SILPH_CO_4F_WIDTH, $0, $18 ; SILPH_CO_3F
EVENT_DISP SILPH_CO_4F_WIDTH, $0, $1a ; SILPH_CO_5F
EVENT_DISP SILPH_CO_4F_WIDTH, $0, $14 ; SILPH_CO_ELEVATOR
EVENT_DISP SILPH_CO_4F_WIDTH, $7, $b ; SILPH_CO_10F
EVENT_DISP SILPH_CO_4F_WIDTH, $3, $11 ; SILPH_CO_6F
EVENT_DISP SILPH_CO_4F_WIDTH, $f, $3 ; SILPH_CO_10F
EVENT_DISP SILPH_CO_4F_WIDTH, $b, $11 ; SILPH_CO_10F
| 34.8125 | 66 | 0.691203 |
e781cb4e350efcf6784eaa5fb16c65d877d815fe | 85 | asm | Assembly | libsrc/math/mbf32/c/asm/___mbf32_FPINT.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/math/mbf32/c/asm/___mbf32_FPINT.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/math/mbf32/c/asm/___mbf32_FPINT.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | SECTION code_fp_mbf32
PUBLIC ___mbf32_FPINT
EXTERN FPINT
defc ___mbf32_FPINT = FPINT
| 17 | 27 | 0.870588 |
df755cfa62bb52e7187bb8c72393fb16354ee7c5 | 3,307 | asm | Assembly | 45/beef/cw/user/kanji.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | 45/beef/cw/user/kanji.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | 45/beef/cw/user/kanji.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | ;*
;* CW : Character Oriented Windows
;*
;* kanji.asm : Kanji (DBCS) support routines
.xlist
include user.inc
IFDEF KANJI ;* entire file
include kanji.inc
.list
sBegin USER_CORE
assumes CS,USER_CORE
assumes DS,DATA
assumes SS,DATA
;*****************************************************************************
;* single character checks
;********** FIsDbcsChar(ch) **********
;* entry: ch = char which may be first byte of double byte character
;* * Check for double byte character
;* exit: AX != 0 if LOBYTE(ch) is in DBCS range
;* else AX == 0 => single byte character
cPublic FIsDbcsChar, <FAR, PUBLIC, ATOMIC>
parmW chTest ;* CHAR
cBegin FIsDbcsChar
xor cx,cx ;* return value (assume 0)
mov ax,chTest
JmpNotDbc not_dbc
inc cx ;* return TRUE
not_dbc:
mov ax,cx
cEnd FIsDbcsChar
;*****************************************************************************
;* String length
;********** CchLenDbcs(sz) **********
;* entry: sz = string (CHAR *)
;* * count number of real characters
;* exit: AX == # of real characters
;* NOTE: does not check 2nd byte of DBCS characters.
cPublic CchLenDbcs, <FAR, PUBLIC, ATOMIC>, <SI>
parmDP sz
cBegin CchLenDbcs
mov si,sz
xor cx,cx ;* cch
loop_cchlen:
lodsb
or al,al
jz end_cchlen
inc cx
JmpNotDbc loop_cchlen
;* * is double byte character
inc si ;* bump si, don't bump cx
jmp short loop_cchlen
end_cchlen:
mov ax,cx
cEnd CchLenDbcs
;*****************************************************************************
;* String navagation
;********** PchNextDbcs(sz) **********
;* entry: sz = string (CHAR *)
;* * navigate to next character
;* exit: AX => next character
;* NOTE: does not check 2nd byte of DBCS characters.
;* NOTE: if positioned on '\0', then will return '\0'
cPublic PchNextDbcs, <FAR, PUBLIC, ATOMIC>
parmDP sz
cBegin PchNextDbcs
mov bx,sz
mov al,ds:[bx]
or al,al
jz end_pch_next ;* stay pointing to end
inc bx ;* assume single byte
JmpNotDbc end_pch_next
inc bx
end_pch_next: ;* bx = pch to return
mov ax,bx
cEnd PchNextDbcs
;********** PchPrevDbcs(pchChar, szMin) **********
;* entry: pchChar => current character position
;* szMin => start of string (to prevent going back too far)
;* * navigate to next character
;* exit: AX => next character, NULL if error (sz not in range of szMin)
;* NOTE: does not check 2nd byte of DBCS characters.
cPublic PchPrevDbcs, <FAR, PUBLIC, ATOMIC>
parmDP pchChar
parmDP szMin
cBegin PchPrevDbcs
;* * Note: we could do this intelligently, but easier to do it from
;* * the start of the string
mov bx,szMin
mov cx,pchChar ;* try to get here
cmp bx,cx
mov ax,bx
je end_pch_prev ;* stay at start
loop_pch_prev:
mov al,ds:[bx]
or al,al
jz err_pch_prev ;* return error if not found
mov dx,bx ;* start of char
inc bx ;* assume single byte
JmpNotDbc skip_pch_prev
inc bx
skip_pch_prev:
cmp bx,cx ;* at the specified character ?
jl loop_pch_prev
mov ax,dx
end_pch_prev: ;* ax = pch to return
cEnd PchPrevDbcs
err_pch_prev:
xor ax,ax ;* assume error
jmp short end_pch_prev
;*****************************************************************************
sEnd USER_CORE
;*****************************************************************************
ENDIF ;KANJI (entire file)
END
| 21.474026 | 78 | 0.596311 |
b49fa2e4a0e375091bd7f9bdf63d8bf8e84a372b | 381 | asm | Assembly | oeis/038/A038273.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/038/A038273.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/038/A038273.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A038273: Triangle whose (i,j)-th entry is binomial(i,j)*7^(i-j)*7^j.
; Submitted by Christian Krause
; 1,7,7,49,98,49,343,1029,1029,343,2401,9604,14406,9604,2401,16807,84035,168070,168070,84035,16807,117649,705894,1764735,2352980,1764735,705894,117649,823543,5764801,17294403,28824005,28824005
mov $1,1
lpb $0
add $2,1
sub $0,$2
mul $1,7
lpe
bin $2,$0
mul $1,$2
mov $0,$1
| 27.214286 | 192 | 0.713911 |
cd649a6e012a305ce7057e4c93813e9ce12befb8 | 396 | asm | Assembly | programs/oeis/057/A057947.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/057/A057947.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/057/A057947.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A057947: n has ambiguous representations in "bad hexadecimal": numbers with the digit 1 followed by a digit less than 6.
; 10,11,12,13,14,15,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146
mov $1,$0
lpb $1
sub $1,6
mov $2,84
lpe
add $0,$2
add $0,10
| 36 | 207 | 0.714646 |
df164e8b71b2f784fc57f4afd5686107bb6f8cb0 | 544 | asm | Assembly | programs/oeis/046/A046162.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/046/A046162.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/046/A046162.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A046162: Reduced numerators of (n-1)^2/(n^2+n+1). Arises in Routh's theorem.
; 0,1,4,3,16,25,12,49,64,27,100,121,48,169,196,75,256,289,108,361,400,147,484,529,192,625,676,243,784,841,300,961,1024,363,1156,1225,432,1369,1444,507,1600,1681,588,1849,1936,675,2116,2209,768,2401,2500,867,2704,2809,972,3025,3136,1083,3364,3481,1200,3721,3844,1323,4096,4225,1452,4489,4624,1587,4900,5041,1728,5329,5476,1875,5776,5929,2028,6241,6400,2187,6724,6889,2352,7225,7396,2523,7744,7921,2700,8281,8464,2883,8836,9025,3072,9409,9604,3267
pow $0,2
dif $0,3
| 90.666667 | 445 | 0.75 |
d2ac933fe953ab880e60d54e68d28064deaed39d | 7,435 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_745.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_745.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_745.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 %r11
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1b29b, %rcx
nop
nop
nop
nop
nop
add $39617, %r9
and $0xffffffffffffffc0, %rcx
vmovaps (%rcx), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $0, %xmm2, %rbp
nop
nop
nop
nop
nop
sub $46986, %r10
lea addresses_A_ht+0x1241b, %r9
nop
nop
nop
and %r10, %r10
movups (%r9), %xmm0
vpextrq $1, %xmm0, %rsi
nop
nop
nop
nop
nop
sub $26984, %r10
lea addresses_normal_ht+0x13a9b, %rsi
lea addresses_WC_ht+0x1b29b, %rdi
clflush (%rdi)
nop
nop
nop
nop
dec %r11
mov $41, %rcx
rep movsl
nop
cmp %r11, %r11
lea addresses_WC_ht+0xe29b, %rdi
nop
nop
nop
nop
sub %rbp, %rbp
movb $0x61, (%rdi)
nop
nop
nop
nop
nop
xor $19338, %rdi
lea addresses_D_ht+0x15b6b, %r9
nop
nop
nop
nop
sub $22632, %r10
movw $0x6162, (%r9)
nop
nop
nop
add $63734, %r11
lea addresses_A_ht+0xacdb, %rbp
nop
nop
nop
nop
inc %rdi
and $0xffffffffffffffc0, %rbp
movntdqa (%rbp), %xmm7
vpextrq $1, %xmm7, %rcx
nop
nop
nop
nop
nop
sub $27219, %rbp
lea addresses_D_ht+0x1c01b, %rbp
cmp %rdi, %rdi
mov $0x6162636465666768, %r11
movq %r11, (%rbp)
add %rsi, %rsi
lea addresses_UC_ht+0x29b, %rsi
clflush (%rsi)
nop
nop
nop
nop
nop
sub $44570, %r10
movw $0x6162, (%rsi)
nop
nop
xor $16565, %r9
lea addresses_D_ht+0x1131b, %r10
nop
nop
nop
dec %r11
mov $0x6162636465666768, %rdi
movq %rdi, %xmm0
vmovups %ymm0, (%r10)
add %rsi, %rsi
lea addresses_WT_ht+0x1c54b, %rbp
nop
nop
sub %r9, %r9
movw $0x6162, (%rbp)
nop
inc %r10
lea addresses_UC_ht+0x239b, %rcx
nop
nop
nop
nop
add $38401, %r11
mov (%rcx), %r10w
nop
nop
nop
nop
nop
add %r11, %r11
lea addresses_normal_ht+0x39f7, %rcx
nop
nop
inc %r10
movb (%rcx), %r9b
nop
nop
nop
nop
nop
and %rbp, %rbp
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r8
push %r9
push %rbp
push %rcx
push %rdx
push %rsi
// Store
lea addresses_WC+0x1f875, %r8
clflush (%r8)
and %rdx, %rdx
movb $0x51, (%r8)
nop
nop
add $10862, %r8
// Load
lea addresses_A+0xbe1b, %r9
nop
nop
nop
nop
nop
inc %rcx
movb (%r9), %dl
nop
nop
nop
and %r9, %r9
// Faulty Load
lea addresses_normal+0xda9b, %r8
nop
add %r11, %r11
mov (%r8), %r9
lea oracles, %rcx
and $0xff, %r9
shlq $12, %r9
mov (%rcx,%r9,1), %r9
pop %rsi
pop %rdx
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 5, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': True, 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 32.047414 | 2,999 | 0.654472 |
b0f663a7e4624c11b52c2efd3172d532e8bd27b4 | 663 | asm | Assembly | oeis/298/A298016.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/298/A298016.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/298/A298016.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A298016: Coordination sequence of snub-632 tiling with respect to a hexavalent node.
; 1,6,12,12,24,36,24,42,60,36,60,84,48,78,108,60,96,132,72,114,156,84,132,180,96,150,204,108,168,228,120,186,252,132,204,276,144,222,300,156,240,324,168,258,348,180,276,372,192,294,396,204,312,420,216,330,444,228,348,468,240,366,492,252,384,516,264,402,540,276,420,564,288,438,588,300,456,612,312,474,636,324,492,660,336,510,684,348,528,708,360,546,732,372,564,756,384,582,780,396
mov $3,2
mov $5,$0
lpb $3
mov $0,$5
sub $3,1
add $0,$3
trn $0,1
seq $0,298019 ; Partial sums of A298016.
mov $2,$3
mul $2,$0
add $4,$2
lpe
min $5,1
mul $5,$0
mov $0,$4
sub $0,$5
| 33.15 | 380 | 0.680241 |
8d10e97a8253698142829f0f7c6cfe09e9c3336d | 767 | asm | Assembly | oeis/061/A061238.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/061/A061238.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/061/A061238.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A061238: Prime numbers == 2 (mod 9).
; Submitted by Christian Krause
; 2,11,29,47,83,101,137,173,191,227,263,281,317,353,389,443,461,479,569,587,641,659,677,821,839,857,911,929,947,983,1019,1091,1109,1163,1181,1217,1289,1307,1361,1433,1451,1487,1523,1559,1613,1667,1721,1811,1847,1901,1973,2027,2063,2081,2099,2153,2207,2243,2297,2333,2351,2423,2441,2459,2477,2531,2549,2621,2657,2693,2711,2729,2801,2819,2837,2909,2927,2963,2999,3089,3251,3323,3359,3413,3449,3467,3539,3557,3593,3701,3719,3863,3881,3917,3989,4007,4079,4133,4241,4259
mov $1,10
mov $2,$0
pow $2,2
lpb $2
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,9
mov $4,$0
max $4,1
cmp $4,$0
mul $2,$4
lpe
mov $0,$1
sub $0,8
| 36.52381 | 465 | 0.706649 |
df074776a480546d72526ac38939e176ce0877ba | 1,176 | asm | Assembly | Documentation/Tutorial/larger.asm | geoffthorpe/ant-architecture | d85952e3050c352d5d715d9749171a335e6768f7 | [
"BSD-3-Clause"
] | null | null | null | Documentation/Tutorial/larger.asm | geoffthorpe/ant-architecture | d85952e3050c352d5d715d9749171a335e6768f7 | [
"BSD-3-Clause"
] | null | null | null | Documentation/Tutorial/larger.asm | geoffthorpe/ant-architecture | d85952e3050c352d5d715d9749171a335e6768f7 | [
"BSD-3-Clause"
] | 1 | 2020-07-15T04:09:05.000Z | 2020-07-15T04:09:05.000Z | # Dan Ellard -- 11/2/96
# larger.asm-- An Ant-8 program that computes and prints the larger
# of two numbers specified at runtime by the user.
# The algorithm used here is to put the larger of r2 and r3
# into r4, and then print r4.
# Registers used:
# r2 - used to hold the first number.
# r3 - used to hold the second number.
# r4 - used to hold the larger of r2 and r3.
# r5 - used to hold the address of the label "r2_larger"
# r6 - used to hold the a "newline" character
in r2, Hex # read a hexadecimal number into r2
in r3, Hex # read a hexadecimal number into r3
lc r5, $r2_larger # put the address of r2_larger into r5
bgt r5, r2, r3 # if r2 is larger, branch to r2_larger
add r4, r3, r0 # "copy" r3 into r4
jmp $endif # and then branch to endif
r2_larger:
add r4, r2, r0 # "copy" r2 into r4
endif:
out r4, Hex # print contents of r4 (in hex).
lc r6, '\n' # load a newline character into r6
out r6, ASCII # print contents of r6 (in ASCII).
hlt # Halt
# end of larger.asm.
| 39.2 | 70 | 0.587585 |
8b8c22cc55f71ea61d3ff1770a2759bdcb15d76a | 372 | asm | Assembly | libsrc/_DEVELOPMENT/arch/zx/nirvanam/z80/asm_NIRVANAM_drawT.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/arch/zx/nirvanam/z80/asm_NIRVANAM_drawT.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/arch/zx/nirvanam/z80/asm_NIRVANAM_drawT.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | 1 | 2019-12-03T23:57:48.000Z | 2019-12-03T23:57:48.000Z | ; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR THE NIRVANA ENGINE - by Einar Saukas
;
; See "nirvana-.h" for further details
; ----------------------------------------------------------------
SECTION code_clib
SECTION code_nirvanam
PUBLIC asm_NIRVANAM_drawT
defc asm_NIRVANAM_drawT = 57299 ; execute 'NIRVANAM_drawT'
| 28.615385 | 66 | 0.508065 |
0be8727397039c9f0c50f033fda589a5bf9a3184 | 517 | asm | Assembly | 3-1-Assembly/hardware/4-1.asm | Awdrtgg/Coursework-Projects | d48124b71e477f71b6370f5c3317c6800f8fdb06 | [
"MIT"
] | 3 | 2018-12-02T13:52:55.000Z | 2019-02-26T13:19:50.000Z | 3-1-Assembly/hardware/4-1.asm | Awdrtgg/Coursework-Projects | d48124b71e477f71b6370f5c3317c6800f8fdb06 | [
"MIT"
] | null | null | null | 3-1-Assembly/hardware/4-1.asm | Awdrtgg/Coursework-Projects | d48124b71e477f71b6370f5c3317c6800f8fdb06 | [
"MIT"
] | null | null | null | data segment
port dw 290h
mes0 db 'Start.',0dh,0ah,'$'
mes db 'Exit!$'
data ends
code segment
assume cs:code,ds:data
start:
mov ax,data
mov ds,ax
lea dx,mes0
mov ah,09h
int 21h
mov cl,0
mov dx,port
lp:
mov al,cl
out dx,al
add cl,1
call key
jz lp
lea dx,mes
mov ah,09h
int 21h
mov ah,4ch
int 21h
key proc near
push dx
mov ah,06h
mov dl,0ffh
int 21h
pop dx
ret
key endp
code ends
end start | 11.23913 | 36 | 0.547389 |
fdd8b854f6c8c53b7348360d7ebf99bb1090fd2a | 2,241 | asm | Assembly | helloos/Kernel/kernel.library.debug.asm | kbu1564/HelloOS | a30ed7822ec4ac250717fad6e2d4529a4970ccd9 | [
"MIT"
] | 15 | 2015-01-19T04:20:29.000Z | 2022-01-25T14:03:07.000Z | helloos/Kernel/kernel.library.debug.asm | kbu1564/HelloOS | a30ed7822ec4ac250717fad6e2d4529a4970ccd9 | [
"MIT"
] | 10 | 2015-01-25T08:09:08.000Z | 2016-11-09T03:15:29.000Z | helloos/Kernel/kernel.library.debug.asm | kbu1564/HelloOS | a30ed7822ec4ac250717fad6e2d4529a4970ccd9 | [
"MIT"
] | 9 | 2015-03-20T06:58:14.000Z | 2021-11-29T07:00:14.000Z | ; 숫자값을 hex 형태로 출력하는 함수
; void _print_hex32(int y, int x, DWORD register);
; push 출력할 Y좌표 값
; push 출력할 X좌표 값
; push 출력할 DWORD 크기의 데이터
_print_hex32:
push ebp
mov ebp, esp
pusha
mov esi, StrDumpData
mov dword [esi], 0x7830
; 0x 출력
mov ah, 0x04
; 색상값 셋팅
mov ecx, 8
mov edi, ebp
add edi, 11
.hex4bitLoop:
mov al, byte [edi]
;test ecx, 1
mov edx, ecx
and edx, 1
cmp edx, 1
; 최하위 1bit가 1이면 홀수 0이면 짝수
jne .hex4bit
dec edi
; 다음 메모리 값 검사
shl al, 4
.hex4bit:
shr al, 4
and al, 0x0F
; 상위 4bit and mask
add al, 0x30
; 0 ~ 9
cmp al, 0x3A
jb .hex4bitPrint
add al, 0x07
; 10 ~ 15
.hex4bitPrint:
mov byte [esi+2], al
add esi, 1
loop .hex4bitLoop
mov byte [esi+2], 0
push dword [ebp + 16]
push dword [ebp + 12]
push 0xFF0004
push StrDumpData
call _call_print
popa
mov esp, ebp
pop ebp
ret 12
; 특정 메모리 주소의 CX바이트 영역의 메모리 HEX 값을
; 덤프하는 함수
; push 출력할 Y좌표 값
; push 출력할 X좌표 값
; push 출력할 바이트 수
; push 출력할 메모리 주소
_print_byte_dump32:
push ebp
mov ebp, esp
pusha
mov esi, StrDumpData
xor edx, edx
xor ax, ax
mov edi, [ebp+8]
; init
mov ecx, [ebp+12]
shl ecx, 1
; ecx = ecx * 2
.for_loop:
cmp edx, ecx
je .for_end
; break for_loop
mov bl, byte [edi]
mov al, bl
; 1byte copy
mov bx, dx
and bx, 1
; 최하위 1bit가 1이면 홀수 0이면 짝수
cmp bx, 1
jne .hex4bit
inc edi
; 다음 메모리 값 검사
shl al, 4
.hex4bit:
shr al, 4
and al, 0x0F
; 상위 4bit and mask
mov bx, dx
and bx, 1
cmp bx, 1
je .hex1byteSpace
cmp dx, 0
jbe .hex1byteSpace
; di 값이 짝수라면 공백을 출력하지 않음
mov byte [esi], 0x20
; 공백 출력
add esi, 1
.hex1byteSpace:
cmp al, 10
jae .hex4bitAtoF
add al, 0x30
; 0 ~ 9
jmp .hex4bitPrint
.hex4bitAtoF:
add al, 0x37
; 10 ~ 15
.hex4bitPrint:
mov byte [esi], al
add esi, 1
inc dx
jmp .for_loop
.for_end:
mov byte [esi+2], 0
push dword [ebp + 20]
push dword [ebp + 16]
push 0xFF0004
push StrDumpData
call _call_print
popa
mov esp, ebp
pop ebp
ret 16
StrDumpData equ 0x5300
| 14.84106 | 50 | 0.560464 |
b409eb1f3b9735e387c5ebddfcbf719301d8618b | 8,057 | asm | Assembly | asm/6502/test/memopad.asm | rampa069/clc88 | 9da545b0d39f8288cdb1b9dd84835631de8840bf | [
"MIT"
] | 1 | 2022-03-25T03:41:05.000Z | 2022-03-25T03:41:05.000Z | asm/6502/test/memopad.asm | rampa069/clc88 | 9da545b0d39f8288cdb1b9dd84835631de8840bf | [
"MIT"
] | null | null | null | asm/6502/test/memopad.asm | rampa069/clc88 | 9da545b0d39f8288cdb1b9dd84835631de8840bf | [
"MIT"
] | null | null | null | icl '../os/symbols.asm'
POS_BASE = 22*40+9
POS_CAPS = POS_BASE
POS_SHIFT = POS_CAPS + 6
POS_CTRL = POS_SHIFT + 7
POS_ALT = POS_CTRL + 6
org BOOTADDR
lda #0
ldy #0
ldx #OS_SET_VIDEO_MODE
jsr OS_CALL
jsr calc_screen_offset
next_frame:
lda FRAMECOUNT
wait:
cmp FRAMECOUNT
beq wait
ldx #OS_KEYB_POLL
jsr OS_CALL
lda KEY_PRESSED
cmp last_key_pressed
bne new_key
lda in_auto_repeat
bne do_auto_repeat
lda auto_repeat_wait_max
cmp auto_repeat_wait
beq auto_repeat_start
inc auto_repeat_wait
jmp ignore_key
auto_repeat_start:
lda #1
sta in_auto_repeat
jmp repeat_key
do_auto_repeat:
lda auto_repeat_delay_max
cmp auto_repeat_delay
bne keep_waiting
lda #0
sta auto_repeat_delay
jmp repeat_key
keep_waiting:
inc auto_repeat_delay
jmp ignore_key
new_key
sta last_key_pressed
lda #0
sta auto_repeat_wait
sta auto_repeat_delay
sta in_auto_repeat
repeat_key:
jsr cursor_off
jsr print_key
ignore_key:
jsr cursor_on
jsr keybprint
jmp next_frame
keybprint:
lda #$FF
sta R5
lda caps
beq no_caps
lda #$DF
sta R5
no_caps:
jsr print_caps
lda #$FF
sta R5
lda KEY_META
and #KEY_META_SHIFT
beq no_shift
lda #$DF
sta R5
no_shift:
jsr print_shift
lda #$FF
sta R5
lda KEY_META
and #KEY_META_CTRL
beq no_ctrl
lda #$DF
sta R5
no_ctrl:
jsr print_ctrl
lda #$FF
sta R5
lda KEY_META
and #KEY_META_ALT
beq no_alt
lda #$DF
sta R5
no_alt:
jmp print_alt
print_caps:
mwa #key_caps R0
mwa #POS_CAPS R2
jmp print
print_shift:
mwa #key_shift R0
mwa #POS_SHIFT R2
jmp print
print_ctrl:
mwa #key_ctrl R0
mwa #POS_CTRL R2
jmp print
print_alt:
mwa #key_alt R0
mwa #POS_alt R2
jmp print
print:
mwa DISPLAY_START VRAM_TO_RAM
jsr lib_vram_to_ram
adw RAM_TO_VRAM R2
ldy #0
print_c:
lda (R0), y
beq end_print
and R5
sta (RAM_TO_VRAM), y
iny
bne print_c
end_print:
rts
print_key:
lda KEY_META
and #KEY_META_SHIFT
beq print_key_noshift
lda last_key_pressed
cmp #14
jeq cursor_home
cmp #15
jeq cursor_end
print_key_noshift
lda KEY_META
and #KEY_META_CTRL
beq print_key_noctrl
lda last_key_pressed
cmp #14
jeq word_prev
cmp #15
jeq word_next
print_key_noctrl:
lda last_key_pressed
cmp #46
jeq line_feed
cmp #14
jeq cursor_left
cmp #15
jeq cursor_right
cmp #16
jeq cursor_up
cmp #17
jeq cursor_down
cmp #32
jeq backspace
cmp #47
jeq caps_toggle
mwa DISPLAY_START VRAM_TO_RAM
jsr lib_vram_to_ram
jsr calc_screen_offset
adw RAM_TO_VRAM pos_offset
mwa #key_conversion_shift R0
lda KEY_META
and #KEY_META_SHIFT
bne search_key_start
MWA #key_conversion_alt R0
lda KEY_META
and #KEY_META_ALT
bne search_key_start
MWA #key_conversion_normal R0
search_key_start:
ldy #0
search_key:
lda (R0), y
beq end_print_key
cmp last_key_pressed
bne next_char
iny
lda (R0), y
ldx caps
beq normal_key
cmp #'A'
bcc normal_key
cmp #'Z'+1
bcs check_lower
ora #$20
jmp normal_key
check_lower
cmp #'a'
bcc normal_key
cmp #'z'+1
bcs normal_key
alpha_key:
and #$DF
normal_key:
ldy #0
sta (RAM_TO_VRAM), y
inc pos_x
lda pos_x
cmp #40
jeq line_feed
rts
next_char:
iny
iny
bne search_key
end_print_key:
rts
calc_screen_offset:
mwa #0 pos_offset
// pos_offset = y*32
lda pos_y
asl
rol pos_offset+1
asl
rol pos_offset+1
asl
rol pos_offset+1
asl
rol pos_offset+1
asl
rol pos_offset +1
sta pos_offset
// pos_offset += y*8 => pos_offset = y*40
lda pos_y
asl
asl
asl
clc
adc pos_offset
sta pos_offset
lda #0
adc pos_offset+1
sta pos_offset+1
// add x
clc
lda pos_x
adc pos_offset
sta pos_offset
lda #0
adc pos_offset+1
sta pos_offset+1
rts
backspace:
lda pos_x
cmp #0
beq backspace_wrap_left
dec pos_x
jmp backspace_del
backspace_wrap_left:
lda pos_y
cmp #0
beq backspace_abort
lda #39
sta pos_x
dec pos_y
backspace_del:
mwa DISPLAY_START VRAM_TO_RAM
jsr lib_vram_to_ram
jsr calc_screen_offset
adw RAM_TO_VRAM pos_offset
lda #0
ldy #0
sta (RAM_TO_VRAM), y
backspace_abort:
rts
line_feed:
lda pos_y
cmp #24
beq line_feed_end
lda #0
sta pos_x
inc pos_y
line_feed_end
rts
cursor_left:
lda pos_x
cmp #0
beq cursor_wrap_left
dec pos_x
jmp calc_screen_offset
cursor_wrap_left:
lda #39
sta pos_x
jmp calc_screen_offset
cursor_right:
lda pos_x
cmp #39
beq cursor_wrap_right
inc pos_x
jmp calc_screen_offset
cursor_wrap_right:
lda #0
sta pos_x
jmp calc_screen_offset
cursor_up:
lda pos_y
cmp #0
beq cursor_wrap_up
dec pos_y
jmp calc_screen_offset
cursor_wrap_up:
lda #20
sta pos_y
jmp calc_screen_offset
cursor_down:
lda pos_y
cmp #20
beq cursor_wrap_down
inc pos_y
jmp calc_screen_offset
cursor_wrap_down:
lda #0
sta pos_y
jmp calc_screen_offset
cursor_on:
lda #1
sta is_cursor_on
lda #$01
jmp change_cursor_attr
cursor_off:
lda #0
sta is_cursor_on
lda #$10
change_cursor_attr:
pha
mwa ATTRIB_START VRAM_TO_RAM
jsr lib_vram_to_ram
jsr calc_screen_offset
adw RAM_TO_VRAM pos_offset
pla
ldy #0
sta (RAM_TO_VRAM), y
rts
cursor_home:
mwa DISPLAY_START VRAM_TO_RAM
jsr lib_vram_to_ram
lda pos_x
sta R0
bne cursor_home_start
rts
cursor_home_start:
lda #0
sta pos_x
jsr calc_screen_offset
adw RAM_TO_VRAM pos_offset
ldy #0
cursor_home_next:
lda (RAM_TO_VRAM), y
bne cursor_home_found
iny
cpy R0
bne cursor_home_next
ldy #0
cursor_home_found:
sty pos_x
jmp calc_screen_offset
cursor_end:
mwa DISPLAY_START VRAM_TO_RAM
jsr lib_vram_to_ram
lda pos_x
sta R0
cmp #39
bne cursor_end_start
rts
cursor_end_start:
lda #0
sta pos_x
jsr calc_screen_offset
adw RAM_TO_VRAM pos_offset
ldy #39
cursor_end_next:
lda (RAM_TO_VRAM), y
bne cursor_end_found
dey
cpy R0
bne cursor_end_next
ldy #39
cursor_end_found:
sty pos_x
jmp calc_screen_offset
word_prev:
mwa DISPLAY_START VRAM_TO_RAM
jsr lib_vram_to_ram
mwa RAM_TO_VRAM display_base
ldx #1
word_prev_next:
mwa display_base RAM_TO_VRAM
mwa pos_x pos_save
lda pos_x
bne word_prev_x
lda pos_y
bne word_prev_y
rts
word_prev_y:
lda #39
sta pos_x
dec pos_y
jmp word_prev_start
word_prev_x:
dec pos_x
word_prev_start:
jsr calc_screen_offset
adw RAM_TO_VRAM pos_offset
ldy #0
lda (RAM_TO_VRAM), y
bne word_prev_next
cpx #1
bne word_prev_end
dex
jmp word_prev_next
word_prev_end:
mwa pos_save pos_x
rts
word_next:
mwa DISPLAY_START VRAM_TO_RAM
jsr lib_vram_to_ram
mwa RAM_TO_VRAM display_base
word_next_next:
mwa display_base RAM_TO_VRAM
lda pos_x
cmp #39
bne word_next_x
lda pos_y
cmp #22
bne word_next_y
rts
word_next_y:
lda #0
sta pos_x
inc pos_y
jmp word_next_start
word_next_x:
inc pos_x
word_next_start:
jsr calc_screen_offset
adw RAM_TO_VRAM pos_offset
ldy #0
lda (RAM_TO_VRAM), y
bne word_next_next
rts
caps_toggle:
lda caps
eor #1
sta caps
rts
last_key_pressed:
.byte 0
is_cursor_on: .byte 0
pos_x: .byte 0
pos_y: .byte 0
pos_offset: .word 0
pos_save: .word 0
in_auto_repeat: .byte 0
auto_repeat_wait: .byte 0
auto_repeat_delay: .byte 0
auto_repeat_wait_max: .byte 20
auto_repeat_delay_max: .byte 3
caps: .byte 1
display_base: .word 0
key_caps:
.byte 'caps', 0
key_shift:
.byte 'shift', 0
key_ctrl:
.byte 'ctrl', 0
key_alt:
.byte 'alt', 0
icl '../os/keyboard.asm'
icl '../os/stdlib.asm'
| 14.491007 | 46 | 0.681147 |
99c6408a84a7acb660f22cc15e89350d3d52dce7 | 443 | asm | Assembly | export_templates/gameboy/common/rgbdscheck.asm | disi33/libRetroReversing | 1c825a1971820dbb73fcc96aa444408f6b65803d | [
"MIT"
] | 8 | 2020-01-20T18:56:14.000Z | 2022-01-16T02:00:49.000Z | export_templates/gameboy/common/rgbdscheck.asm | disi33/libRetroReversing | 1c825a1971820dbb73fcc96aa444408f6b65803d | [
"MIT"
] | 9 | 2020-05-18T12:02:20.000Z | 2022-02-13T05:41:37.000Z | export_templates/gameboy/common/rgbdscheck.asm | disi33/libRetroReversing | 1c825a1971820dbb73fcc96aa444408f6b65803d | [
"MIT"
] | 4 | 2020-03-19T22:36:40.000Z | 2021-07-05T02:53:09.000Z | ; game requires rgbds 0.4.2 or newer.
MAJOR EQU 0
MINOR EQU 4
PATCH EQU 2
IF !DEF(__RGBDS_MAJOR__) || !DEF(__RGBDS_MINOR__) || !DEF(__RGBDS_PATCH__)
fail "NOT defined:game requires rgbds 0.4.2 or newer."
ELSE
IF (__RGBDS_MAJOR__ < MAJOR) || \
(__RGBDS_MAJOR__ == MAJOR && __RGBDS_MINOR__ < MINOR)
; || (__RGBDS_MAJOR__ == MAJOR && __RGBDS_MINOR__ == MINOR && __RGBDS_PATCH__ < PATCH)
fail "game requires rgbds 0.4.2 or newer."
ENDC
ENDC
| 29.533333 | 87 | 0.713318 |
8bca96227be8b838a06ea803e269b011881f928a | 713 | asm | Assembly | oeis/135/A135755.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/135/A135755.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/135/A135755.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A135755: a(n) = Sum_{k=0..n} C(n,k)*3^[k*(k-1)/2].
; Submitted by Jon Maiga
; 1,2,6,40,860,63000,14714728,10562062112,22960880409360,150300904214651680,2955814683617734854752,174481716707875308905153664,30905247968182392588500030233024,16423605022875515869684744918951064960,26184120631921143478178182301111552267630208,125237130297963767793259964894705352258099962636800,1797012303705373892554796550472761238345084352296879710464,77355431563734974947789260144566672283762380009894434606937891328,9989690488345921473416196682396801129077370100620188201250373409160955392
mov $1,1
mov $3,$0
mov $4,2
lpb $3
mul $1,$4
mul $1,$3
mul $4,3
add $5,2
div $1,$5
add $2,$1
sub $3,1
lpe
mov $0,$2
add $0,1
| 37.526316 | 494 | 0.819074 |
36bd3a104124e1d63356b646bb7187f23f976fab | 2,274 | asm | Assembly | external/source/shellcode/bsd/ia32/stager_sock_bind_ipv6.asm | madhavarao-yejarla/VoIP | 3f7d0cdc0bb1423f9e952e411d073a1424ef9f5e | [
"Apache-2.0",
"BSD-3-Clause"
] | 35 | 2015-08-08T07:23:38.000Z | 2021-04-07T18:00:44.000Z | external/source/shellcode/bsd/ia32/stager_sock_bind_ipv6.asm | madhavarao-yejarla/VoIP | 3f7d0cdc0bb1423f9e952e411d073a1424ef9f5e | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2019-02-12T12:13:53.000Z | 2019-02-12T12:13:53.000Z | external/source/shellcode/bsd/ia32/stager_sock_bind_ipv6.asm | fozavci/metasploit-framework-with-viproy | 3f7d0cdc0bb1423f9e952e411d073a1424ef9f5e | [
"Apache-2.0",
"BSD-3-Clause"
] | 23 | 2015-08-11T05:07:47.000Z | 2020-11-06T03:55:10.000Z | ;;
;
; Name: stager_sock_bind_ipv6
; Qualities: Can Have Nulls
; Version: $Revision: 1628 $
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is subject to the same licenses and copyrights as
; the rest of this package.
;
; Description:
;
; Implementation of a BSD portbind over IPv6 TCP stager.
;
; Meta-Information:
;
; meta-shortname=BSD Bind TCP Stager
; meta-description=Listen on a port for a connection and run a second stage
; meta-authors=skape <mmiller [at] hick.org>, vlad902 <vlad902 [at] gmail.com>, hdm <hdm [at] metasploit.com>
; meta-os=bsd
; meta-arch=ia32
; meta-category=stager
; meta-connection-type=bind
; meta-name=bind_tcp_ipv6
; meta-basemod=Msf::PayloadComponent::BindConnection
; meta-offset-lport=26
;;
BITS 32
GLOBAL main
main:
socket:
xor eax, eax
push eax ; Protocol: (IP=0)
inc eax
push eax ; Type: (SOCK_STREAM=1)
push byte 28 ; Domain: (PF_INET6=28)
push byte 97
pop eax ; socket()
push eax ; padding
int 0x80
mov ebx, eax ; save socket
xor edx, edx
push edx ; uint32_t sin6_scope_id; /* scope zone index */
push edx ; struct in6_addr sin6_addr; /* IP6 address */
push edx
push edx
push edx
push edx ; uint32_t sin6_flowinfo; /* IP6 flow information */
push dword 0xbfbf1c1c
; in_port_t sin6_port; /* Transport layer port # */
; uint8_t sin6_len; /* length of this struct */
; sa_family_t sin6_family; /* AF_INET6 */
mov ecx, esp
bind:
push byte 28
push ecx
push eax
push byte 104
pop eax
push eax ; padding
int 0x80
listen:
mov al, 106
int 0x80
accept:
push edx
push ebx
%ifndef USE_SINGLE_STAGE
mov dh, 0x10
%endif
push edx
mov al, 30
int 0x80
%ifndef USE_SINGLE_STAGE
read:
push ecx
push eax
push ecx
%ifdef FD_REG_EBX
xchg eax, ebx
%else
xchg eax, edi
%endif
push byte 0x3
pop eax
int 0x80
ret
%else
%ifdef FD_REG_EBX
xchg eax, ebx
%else
xchg eax, edi
%endif
%endif
| 20.862385 | 110 | 0.594107 |
3eb6e9ce4a25339a222b093b37e0d4f4d1be1fbe | 171 | asm | Assembly | libsrc/adt/queue/adt_QueueCount.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/adt/queue/adt_QueueCount.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/adt/queue/adt_QueueCount.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | ; uint __FASTCALL__ adt_QueueCount(struct adt_Queue *q)
; 09.2005 aralbrec
PUBLIC adt_QueueCount
.adt_QueueCount
ld a,(hl)
inc hl
ld h,(hl)
ld l,a
ret
| 11.4 | 55 | 0.678363 |
e5ff017dcc31a31758d32b60e7295562fb874ea5 | 213 | asm | Assembly | libsrc/_DEVELOPMENT/ctype/c/sccz80/iscntrl.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/ctype/c/sccz80/iscntrl.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/ctype/c/sccz80/iscntrl.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
; int iscntrl(int c)
SECTION code_ctype
PUBLIC iscntrl
EXTERN asm_iscntrl, error_znc
iscntrl:
inc h
dec h
jp nz, error_znc
ld a,l
call asm_iscntrl
ld l,h
ret nc
inc l
ret
| 8.875 | 29 | 0.624413 |
d6a0017f342569338543a98487f2f5acdaccf8a6 | 22,925 | asm | Assembly | Layer3Sprites/sprite_routines.asm | ped7g/EliteNext | 6e930f9b9924b295d7281ee6acb879600d7e597f | [
"Unlicense"
] | null | null | null | Layer3Sprites/sprite_routines.asm | ped7g/EliteNext | 6e930f9b9924b295d7281ee6acb879600d7e597f | [
"Unlicense"
] | null | null | null | Layer3Sprites/sprite_routines.asm | ped7g/EliteNext | 6e930f9b9924b295d7281ee6acb879600d7e597f | [
"Unlicense"
] | null | null | null |
galactic_cursor_sprite equ 0
galactic_cursor_sprite1 equ galactic_cursor_sprite+1
galactic_cursor_sprite2 equ galactic_cursor_sprite1+2
galactic_hyper_sprite equ galactic_cursor_sprite2+1
galactic_hyper_sprite1 equ galactic_hyper_sprite+1
galactic_hyper_sprite2 equ galactic_hyper_sprite1+1
local_cursor_sprite equ galactic_hyper_sprite2+1
local_cursor_sprite1 equ local_cursor_sprite+1
local_cursor_sprite2 equ local_cursor_sprite1+1
local_hyper_sprite equ local_cursor_sprite2+1
local_hyper_sprite1 equ local_hyper_sprite+1
local_hyper_sprite2 equ local_hyper_sprite1+2
reticlule_sprite1 equ local_hyper_sprite2+1
reticlule_sprite2 equ reticlule_sprite1+1
reticlule_sprite3 equ reticlule_sprite2+1
reticlule_sprite4 equ reticlule_sprite3+1
laser_sprite1 equ reticlule_sprite4+1
laser_sprite2 equ laser_sprite1 +1
laser_sprite3 equ laser_sprite2 +1
laser_sprite4 equ laser_sprite3 +1
laser_sprite5 equ laser_sprite4 +1
laser_sprite6 equ laser_sprite5 +1
laser_sprite7 equ laser_sprite6 +1
laser_sprite8 equ laser_sprite7 +1
laser_sprite9 equ laser_sprite8 +1
laser_sprite10 equ laser_sprite9 +1
laser_sprite11 equ laser_sprite10 +1
laser_sprite12 equ laser_sprite11 +1
laser_sprite13 equ laser_sprite12 +1
laser_sprite14 equ laser_sprite13 +1
laser_sprite15 equ laser_sprite14 +1
laser_sprite16 equ laser_sprite15 +1
compass_sun equ laser_sprite16 +1
compass_station equ compass_sun +1
glactic_pattern_1 equ 0
glactic_hyper_pattern_1 equ 2
local_pattern_1 equ 4
local_hyper_pattern_1 equ 6
reticule_pattern_1 equ 12
reticule_pattern_2 equ 13
laser_pattern_1 equ 14
laser_pattern_2 equ 15
laser_pattern_3 equ 16
laser_pattern_4 equ 17
laser_pattern_5 equ 18
laser_pattern_6 equ 19
laser_pattern_7 equ 20
laser_pattern_8 equ 21
compass_sun_infront equ 22
compass_sun_behind equ 23
compass_station_infront equ 24
compass_station_behind equ 25
spritecursoroffset equ 17
; " sprite_big BC = rowcol, D = sprite nbr , E= , pattern"
sprite_big:
.SetAnchor:
ld a,d ; a = sprite nbr, bug fix?
push af ; save id for next few
push de
nextreg SPRITE_PORT_INDEX_REGISTER,a ; set up sprite id
; write out X position bits 1 to 8
ld a,c
ld hl,spritecursoroffset
add hl,a ; hl = full x position
ld a,l
nextreg SPRITE_PORT_ATTR0_REGISTER,a ; Set up lower x cc
; write out Y position bits 1 to 8
ex de,hl ; de = full x position
ld a,b
ld hl,spritecursoroffset
add hl,a
ld a,l ; hl = full y position
nextreg SPRITE_PORT_ATTR1_REGISTER,a ; lower y coord on screen
; write out MSB of X as its an anchor
ld a,d ; de = MSB of X (hl bit 0)
nextreg SPRITE_PORT_ATTR2_REGISTER,a ; lower y
; write out sprite pattern
pop de ; de = pattern and sprite nbr
ld a,e
or %11000000 ;
nextreg SPRITE_PORT_ATTR3_REGISTER,a ; visible 5 bytes pattern e
; write out msb of y in h must be bit 0 only
ld a,%00000000 ; big unified composite
or h ; MSB Y
nextreg SPRITE_PORT_ATTR4_REGISTER,a ; visible 5 bytes pattern e
.BigSprite1:
pop af
inc a
push af
nextreg SPRITE_PORT_INDEX_REGISTER,a
ld a,16
nextreg SPRITE_PORT_ATTR0_REGISTER,a ; lower x
xor a
nextreg SPRITE_PORT_ATTR1_REGISTER,a ; lower y
nextreg SPRITE_PORT_ATTR2_REGISTER,a ; relative setup
ld a,%11000001 ; relative and 4 bytes of data, pattern 1
nextreg SPRITE_PORT_ATTR3_REGISTER,a
ld a,%01000001 ; big unified composite
nextreg SPRITE_PORT_ATTR4_REGISTER,a ; visible 5 bytes pattern e
.BigSprite2:
pop af
inc a
nextreg SPRITE_PORT_INDEX_REGISTER,a
xor a
nextreg SPRITE_PORT_ATTR0_REGISTER,a ; lower x
ld a,16
nextreg SPRITE_PORT_ATTR1_REGISTER,a ; lower y
xor a
nextreg SPRITE_PORT_ATTR2_REGISTER,a ; relative setup
ld a,%11000010 ; relative and 4 bytes of data, pattern 2
nextreg SPRITE_PORT_ATTR3_REGISTER,a
ld a,%01000001 ; big unified composite
nextreg SPRITE_PORT_ATTR4_REGISTER,a ; visible 5 bytes pattern e
ret
single_sprite: ld a,d ; a = sprite nbr, bug fix?
push af ; save id for next few
push de
nextreg SPRITE_PORT_INDEX_REGISTER,a ; set up sprite id
; write out X position bits 1 to 8
ld a,c
ld hl,spritecursoroffset
add hl,a ; hl = full x position
ld a,l
nextreg SPRITE_PORT_ATTR0_REGISTER,a ; Set up lower x cc
; write out Y position bits 1 to 8
ex de,hl ; de = full x position
ld a,b
ld hl,spritecursoroffset
add hl,a
ld a,l ; hl = full y position
nextreg SPRITE_PORT_ATTR1_REGISTER,a ; lower y coord on screen
; write out MSB of X as its an anchor
ld a,d ; de = MSB of X (hl bit 0)
nextreg SPRITE_PORT_ATTR2_REGISTER,a ; lower y
; write out sprite pattern
pop de ; de = pattern and sprite nbr
ld a,e
or %10000000 ;
nextreg SPRITE_PORT_ATTR3_REGISTER,a ; visible 5 bytes pattern e
ret
sprite_galactic_cursor:
; ">sprite_galactic_cursor BC = rowcol"
ld d,galactic_cursor_sprite
ld e,0
ld a,b
add a,galactic_chart_y_offset
ld b,a
call sprite_big:
ret
sprite_galactic_hyper_cursor:
; "> sprite_galactic_hyper_cursorBC = rowcol"
ld a,b
add a,galactic_chart_y_offset
ld b,a
ld d,galactic_hyper_sprite
ld e,3
call sprite_big:
ret
sprite_ghc_move:
ld a,galactic_hyper_sprite
nextreg SPRITE_PORT_INDEX_REGISTER,a ; set up sprite id
; write out X position bits 1 to 8
ld a,c
ld hl,spritecursoroffset
add hl,a ; hl = full x position
ld a,l
nextreg SPRITE_PORT_ATTR0_REGISTER,a ; Set up lower x cc
; write out Y position bits 1 to 8
ex de,hl ; de = full x position
ld a,b
add a,galactic_chart_y_offset
ld b,a
ld a,b
ld hl,spritecursoroffset
add hl,a
ld a,l ; hl = full y position
nextreg SPRITE_PORT_ATTR1_REGISTER,a ; lower y coord on screen
; write out MSB of X as its an anchor
ld a,d ; de = MSB of X (hl bit 0)
nextreg SPRITE_PORT_ATTR2_REGISTER,a ; lower y
; write out msb of y in h must be bit 0 only
ld a,%00000000 ; big unified composite
or d ; MSB Y
nextreg SPRITE_PORT_ATTR4_REGISTER,a ; visible 5 bytes pattern e
ret
sprite_lhc_move:
ld a,local_hyper_sprite
nextreg SPRITE_PORT_INDEX_REGISTER,a ; set up sprite id
; write out X position bits 1 to 8
ld a,c
ld hl,spritecursoroffset
add hl,a ; hl = full x position
ld a,l
nextreg SPRITE_PORT_ATTR0_REGISTER,a ; Set up lower x cc
; write out Y position bits 1 to 8
ex de,hl ; de = full x position
ld a,b
ld hl,spritecursoroffset
add hl,a
ld a,l ; hl = full y position
nextreg SPRITE_PORT_ATTR1_REGISTER,a ; lower y coord on screen
; write out MSB of X as its an anchor
ld a,d ; de = MSB of X (hl bit 0)
nextreg SPRITE_PORT_ATTR2_REGISTER,a ; lower y
; write out msb of y in h must be bit 0 only
ld a,%00000000 ; big unified composite
or d ; MSB Y
nextreg SPRITE_PORT_ATTR4_REGISTER,a ; visible 5 bytes pattern e
ret
; "sprite_local_cursor BC = rowcol"
sprite_local_cursor: ld d,local_cursor_sprite
ld e,6
call sprite_big
ret
; "sprite_local_hyper_cursor BC = rowcol"
sprite_local_hyper_cursor: ld d,local_hyper_sprite
ld e,9
call sprite_big
ret
compass_offset equ 4
compass_sun_move: ld a,compass_sun
nextreg SPRITE_PORT_INDEX_REGISTER,a ; set up sprite id
; write out X position bits 1 to 8
ld a,c
ld hl,compass_offset
add hl,a ; hl = full x position
ld a,l
nextreg SPRITE_PORT_ATTR0_REGISTER,a ; Set up lower x cc
; write out Y position bits 1 to 8
ex de,hl ; de = full x position
ld a,b
ld hl,compass_offset
add hl,a
ld a,l ; hl = full y position
nextreg SPRITE_PORT_ATTR1_REGISTER,a ; lower y coord on screen
; write out MSB of X as its an anchor
ld a,d ; de = MSB of X (hl bit 0)
nextreg SPRITE_PORT_ATTR2_REGISTER,a ; lower y
ret
compass_station_move: ld a,compass_station
nextreg SPRITE_PORT_INDEX_REGISTER,a ; set up sprite id
; write out X position bits 1 to 8
ld a,c
ld hl,compass_offset
add hl,a ; hl = full x position
ld a,l
nextreg SPRITE_PORT_ATTR0_REGISTER,a ; Set up lower x cc
; write out Y position bits 1 to 8
ex de,hl ; de = full x position
ld a,b
ld hl,compass_offset
add hl,a
ld a,l ; hl = full y position
nextreg SPRITE_PORT_ATTR1_REGISTER,a ; lower y coord on screen
; write out MSB of X as its an anchor
ld a,d ; de = MSB of X (hl bit 0)
nextreg SPRITE_PORT_ATTR2_REGISTER,a ; lower y
ret
sprite_reticule: ld a,reticlule_sprite1
nextreg SPRITE_PORT_INDEX_REGISTER,a ; select left hand side
ld a,(13*8) + 32
nextreg SPRITE_PORT_ATTR0_REGISTER,a ; Set up lower x pos as 136 (104 + 32 border)
ld a,(7 * 8) + 32 + 13 + 32
nextreg SPRITE_PORT_ATTR1_REGISTER,a ; lower y coord on screen
xor a
nextreg SPRITE_PORT_ATTR2_REGISTER,a ; attribute 2
ld a,reticule_pattern_2 | %10000000
nextreg SPRITE_PORT_ATTR3_REGISTER,a ; visible 5 bytes pattern left reticule
.rightReticule ld a,reticlule_sprite2
nextreg SPRITE_PORT_INDEX_REGISTER,a ; select left hand side
ld a,(17*8) + 32 -2
nextreg SPRITE_PORT_ATTR0_REGISTER,a ; Set up lower x pos as 136 (104 + 32 border)
ld a,(7 * 8) + 32 + 13 + 32
nextreg SPRITE_PORT_ATTR1_REGISTER,a ; lower y coord on screen
ld a,%00001000
nextreg SPRITE_PORT_ATTR2_REGISTER,a ; attribute 2 including mirroring horizontal
ld a,reticule_pattern_2 | %10000000
nextreg SPRITE_PORT_ATTR3_REGISTER,a ; visible 5 bytes pattern left reticule
.topReticule ld a,reticlule_sprite3
nextreg SPRITE_PORT_INDEX_REGISTER,a ; select left hand side
ld a,(16*8) + 32 -1
nextreg SPRITE_PORT_ATTR0_REGISTER,a ; Set up lower x pos as 136 (104 + 32 border)
ld a,(5 * 8) + 32 +4 + 32
nextreg SPRITE_PORT_ATTR1_REGISTER,a ; lower y coord on screen
xor a
nextreg SPRITE_PORT_ATTR2_REGISTER,a ; attribute 2
ld a,reticule_pattern_1 | %10000000
nextreg SPRITE_PORT_ATTR3_REGISTER,a ; visible 5 bytes pattern left reticule
.bottomReticule ld a,reticlule_sprite4
nextreg SPRITE_PORT_INDEX_REGISTER,a ; select left hand side
ld a,(16*8) + 32 -1
nextreg SPRITE_PORT_ATTR0_REGISTER,a ; Set up lower x pos as 136 (104 + 32 border)
ld a,(9 * 8) + 32 +5 + 32
nextreg SPRITE_PORT_ATTR1_REGISTER,a ; lower y coord on screen
ld a,%00000100
nextreg SPRITE_PORT_ATTR2_REGISTER,a ; attribute 2 including mirroring vertical
ld a,reticule_pattern_1 | %10000000
nextreg SPRITE_PORT_ATTR3_REGISTER,a ; visible 5 bytes pattern left reticule
ret
laserbasex equ 7
laserbasey equ 14
ShowSprite MACRO spritenbr, patternnbr
ld a, spritenbr
nextreg SPRITE_PORT_INDEX_REGISTER,a
ld a,patternnbr | %10000000
nextreg SPRITE_PORT_ATTR3_REGISTER,a
ENDM
LeftLaser: MACRO xoffset, yoffset, spriteL, patternL
ld a, spriteL
nextreg SPRITE_PORT_INDEX_REGISTER,a ; select left hand side
ld a,((laserbasex + xoffset) *8) + 32
nextreg SPRITE_PORT_ATTR0_REGISTER,a ; Set up lower x pos as 136 (104 + 32 border)
ld a,((laserbasey -yoffset) * 8) + 32 -1
nextreg SPRITE_PORT_ATTR1_REGISTER,a ; lower y coord on screen
xor a
nextreg SPRITE_PORT_ATTR2_REGISTER,a ; attribute 2
ld a, patternL | %00000000 ; hidden by default
nextreg SPRITE_PORT_ATTR3_REGISTER,a
ENDM
RightLaser: MACRO xoffset, yoffset, spriteL, patternL
ld a, spriteL
nextreg SPRITE_PORT_INDEX_REGISTER,a ; select left hand side
ld a,(((30-laserbasex) - xoffset) *8) + 32 -2
nextreg SPRITE_PORT_ATTR0_REGISTER,a ; Set up lower x pos as 136 (104 + 32 border)
ld a,((laserbasey -yoffset) * 8) + 32 -1
nextreg SPRITE_PORT_ATTR1_REGISTER,a ; lower y coord on screen
ld a,%00001000
nextreg SPRITE_PORT_ATTR2_REGISTER,a ; attribute 2
ld a, patternL | %00000000 ; hidden by default
nextreg SPRITE_PORT_ATTR3_REGISTER,a
ENDM
show_compass_sun_infront:ShowSprite compass_sun, compass_sun_infront
ret
show_compass_sun_behind: ShowSprite compass_sun, compass_sun_behind
ret
show_compass_station_infront: ShowSprite compass_station, compass_station_infront
ret
show_compass_statin_behind: ShowSprite compass_station, compass_station_behind
ret
sprite_laser: LeftLaser 0,0,laser_sprite1 ,laser_pattern_1
LeftLaser 2,0,laser_sprite2 ,laser_pattern_2
LeftLaser 2,2,laser_sprite3 ,laser_pattern_3
LeftLaser 4,1,laser_sprite4 ,laser_pattern_4
LeftLaser 3,3,laser_sprite5 ,laser_pattern_5
LeftLaser 5,3,laser_sprite6 ,laser_pattern_6
LeftLaser 6,5,laser_sprite7 ,laser_pattern_7
LeftLaser 8,5,laser_sprite8 ,laser_pattern_8
RightLaser 0,0,laser_sprite9 ,laser_pattern_1
RightLaser 2,0,laser_sprite10,laser_pattern_2
RightLaser 2,2,laser_sprite11,laser_pattern_3
RightLaser 4,1,laser_sprite12,laser_pattern_4
RightLaser 3,3,laser_sprite13,laser_pattern_5
RightLaser 5,3,laser_sprite14,laser_pattern_6
RightLaser 6,5,laser_sprite15,laser_pattern_7
RightLaser 8,5,laser_sprite16,laser_pattern_8
ret
; Need simple show updates just to update the show attribute
sprite_laser_show: ShowSprite laser_sprite1 ,laser_pattern_1
ShowSprite laser_sprite2 ,laser_pattern_2
ShowSprite laser_sprite3 ,laser_pattern_3
ShowSprite laser_sprite4 ,laser_pattern_4
ShowSprite laser_sprite5 ,laser_pattern_5
ShowSprite laser_sprite6 ,laser_pattern_6
ShowSprite laser_sprite7 ,laser_pattern_7
ShowSprite laser_sprite8 ,laser_pattern_8
ShowSprite laser_sprite9 ,laser_pattern_1
ShowSprite laser_sprite10,laser_pattern_2
ShowSprite laser_sprite11,laser_pattern_3
ShowSprite laser_sprite12,laser_pattern_4
ShowSprite laser_sprite13,laser_pattern_5
ShowSprite laser_sprite14,laser_pattern_6
ShowSprite laser_sprite15,laser_pattern_7
ShowSprite laser_sprite16,laser_pattern_8
ret
sprite_galactic_hide:
nextreg SPRITE_PORT_INDEX_REGISTER,galactic_cursor_sprite
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,galactic_cursor_sprite1
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,galactic_cursor_sprite2
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
ret
sprite_galactic_hyper_hide:
nextreg SPRITE_PORT_INDEX_REGISTER,galactic_hyper_sprite
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,galactic_hyper_sprite1
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,galactic_hyper_sprite2
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
ret
sprite_local_hide:
nextreg SPRITE_PORT_INDEX_REGISTER,local_cursor_sprite
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,local_cursor_sprite1
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,local_cursor_sprite2
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
ret
sprite_local_hyper_hide:
nextreg SPRITE_PORT_INDEX_REGISTER,local_hyper_sprite
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,local_hyper_sprite1
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,local_hyper_sprite2
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
ret
sprite_reticule_hide:
nextreg SPRITE_PORT_INDEX_REGISTER,reticlule_sprite1
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,reticlule_sprite2
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,reticlule_sprite3
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,reticlule_sprite4
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
ret
sprite_laser_hide:
nextreg SPRITE_PORT_INDEX_REGISTER,laser_sprite1
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,laser_sprite2
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,laser_sprite3
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,laser_sprite4
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,laser_sprite5
nextreg SPRITE_PORT_ATTR3_REGISTER,$0
nextreg SPRITE_PORT_INDEX_REGISTER,laser_sprite6
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,laser_sprite7
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,laser_sprite8
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,laser_sprite9
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,laser_sprite10
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,laser_sprite11
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,laser_sprite12
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,laser_sprite13
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,laser_sprite14
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,laser_sprite15
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,laser_sprite16
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
ret
sprite_compass_hide:
nextreg SPRITE_PORT_INDEX_REGISTER,compass_sun
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
nextreg SPRITE_PORT_INDEX_REGISTER,compass_station
nextreg SPRITE_PORT_ATTR3_REGISTER,$00
ret
sprite_cls_cursors:
call sprite_galactic_hide
call sprite_galactic_hyper_hide
call sprite_local_hide
call sprite_local_hyper_hide
call sprite_reticule_hide
;call sprite_laser_hide
;call sprite_compass_hide
ret
init_sprites:
call sprite_cls_cursors
nextreg SPRITE_LAYERS_SYSTEM_REGISTER,$63
ret
| 44.428295 | 104 | 0.594766 |
e9797fa033638918fa1681f07e283d4b57250bca | 2,879 | asm | Assembly | Defines.asm | AYCEdemo/LostInTranslation | 5fab3b34a9f8e7893d3bbde3dc0b119e5d86614d | [
"Unlicense"
] | null | null | null | Defines.asm | AYCEdemo/LostInTranslation | 5fab3b34a9f8e7893d3bbde3dc0b119e5d86614d | [
"Unlicense"
] | null | null | null | Defines.asm | AYCEdemo/LostInTranslation | 5fab3b34a9f8e7893d3bbde3dc0b119e5d86614d | [
"Unlicense"
] | null | null | null | ; ===============
; Project defines
; ===============
if !def(definesIncluded)
definesIncluded set 1
; Hardware defines
include "hardware.inc"
; ================
; Global constants
; ================
sys_DMG equ 0
sys_GBP equ 1
sys_SGB equ 2
sys_SGB2 equ 3
sys_GBC equ 4
sys_GBA equ 5
btnA equ 0
btnB equ 1
btnSelect equ 2
btnStart equ 3
btnRight equ 4
btnLeft equ 5
btnUp equ 6
btnDown equ 7
_A equ 1
_B equ 2
_Select equ 4
_Start equ 8
_Right equ 16
_Left equ 32
_Up equ 64
_Down equ 128
; ==========================
; Project-specific constants
; ==========================
; ======
; Macros
; ======
; Copy a tileset to a specified VRAM address.
; USAGE: CopyTileset [tileset],[VRAM address],[number of tiles to copy]
CopyTileset: macro
ld bc,$10*\3 ; number of tiles to copy
ld hl,\1 ; address of tiles to copy
ld de,$8000+\2 ; address to copy to
call _CopyTileset
endm
; Same as CopyTileset, but waits for VRAM accessibility.
CopyTilesetSafe: macro
ld bc,$10*\3 ; number of tiles to copy
ld hl,\1 ; address of tiles to copy
ld de,$8000+\2 ; address to copy to
call _CopyTilesetSafe
endm
; Copy a 1BPP tileset to a specified VRAM address.
; USAGE: CopyTileset1BPP [tileset],[VRAM address],[number of tiles to copy]
CopyTileset1BPP: macro
ld bc,$10*\3 ; number of tiles to copy
ld hl,\1 ; address of tiles to copy
ld de,$8000+\2 ; address to copy to
call _CopyTileset1BPP
endm
; Same as CopyTileset1BPP, but waits for VRAM accessibility.
CopyTileset1BPPSafe: macro
ld bc,$10*\3 ; number of tiles to copy
ld hl,\1 ; address of tiles to copy
ld de,$8000+\2 ; address to copy to
call _CopyTileset1BPPSafe
endm
; Loads a DMG palette.
; USAGE: SetPal <rBGP/rOBP0/rOBP1>,(color 1),(color 2),(color 3),(color 4)
SetDMGPal: macro
ld a,(\2 + (\3 << 2) + (\4 << 4) + (\5 << 6))
ldh [\1],a
endm
; Define ROM title.
romTitle: macro
.str\@
db \1
.str\@_end
rept 15-(.str\@_end-.str\@)
db 0
endr
endm
endc
; Wait for VRAM accessibility.
WaitForVRAM: macro
ldh a,[rSTAT]
and 2
jr nz,@-4
endm
RestoreStackPtr: macro
ld hl,tempSP
call PtrToHL
ld sp,hl
endm
string: macro
db \1,0
endm
; === Project-specific macros ===
; =========
; Variables
; =========
section "Variables",wram0[$c000]
SpriteBuffer: ds 40*4 ; 40 sprites, 4 bytes each
sys_GBType: ds 1
sys_CurrentFrame: ds 1
sys_btnPress: ds 1
sys_btnHold: ds 1
sys_VBlankFlag: ds 1
sys_TimerFlag: ds 1
sys_LCDCFlag: ds 1
; project-specific
ScrollerPos: ds 2
ScrollerOffset: ds 1
FadeLevel: ds 1
DemoTimer: ds 1
section "Zeropage",hram
OAM_DMA: ds 16
tempAF: ds 2
tempBC: ds 2
tempDE: ds 2
tempHL: ds 2
tempSP: ds 2 | 19.322148 | 76 | 0.609587 |
4698f76225835f530644f4bbff5b6f5b0be9ef27 | 306 | asm | Assembly | programs/oeis/084/A084902.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/084/A084902.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/084/A084902.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A084902: a(n) = 5^(n-1)*n*(n+1)/2.
; 0,1,15,150,1250,9375,65625,437500,2812500,17578125,107421875,644531250,3808593750,22216796875,128173828125,732421875000,4150390625000,23345947265625,130462646484375,724792480468750,4005432128906250
mov $2,5
pow $2,$0
mul $2,$0
add $0,2
mul $0,$2
sub $0,$2
div $0,10
| 27.818182 | 199 | 0.748366 |
ec51f0ebd97343f1c057e4db821a9bf8ca6981cc | 5,766 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1034.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_0xca.log_21829_1034.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_0xca.log_21829_1034.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 %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1b392, %rsi
lea addresses_normal_ht+0xf392, %rdi
nop
nop
nop
xor $40233, %r13
mov $102, %rcx
rep movsl
sub %r14, %r14
lea addresses_WT_ht+0x1e192, %r12
nop
nop
nop
xor $65309, %rbp
movb $0x61, (%r12)
nop
nop
nop
nop
nop
add $2844, %rcx
lea addresses_WC_ht+0x8592, %rsi
lea addresses_A_ht+0xe962, %rdi
nop
nop
nop
nop
nop
add %r8, %r8
mov $87, %rcx
rep movsw
nop
nop
nop
nop
add %rdi, %rdi
lea addresses_D_ht+0x2e12, %r8
clflush (%r8)
nop
nop
nop
nop
dec %r12
mov $0x6162636465666768, %rdi
movq %rdi, (%r8)
nop
nop
nop
nop
nop
cmp $3720, %r12
lea addresses_A_ht+0x17452, %rsi
lea addresses_normal_ht+0x1e792, %rdi
clflush (%rsi)
cmp $41198, %r12
mov $16, %rcx
rep movsl
nop
nop
nop
cmp $1863, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r14
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r15
push %r8
push %rbp
push %rbx
// Store
lea addresses_WT+0x11892, %r15
nop
nop
add $16363, %rbp
mov $0x5152535455565758, %r8
movq %r8, %xmm3
vmovups %ymm3, (%r15)
sub $29018, %r8
// Store
lea addresses_WT+0x96f6, %r12
nop
nop
nop
nop
nop
dec %r11
movw $0x5152, (%r12)
nop
nop
nop
nop
inc %r8
// Faulty Load
lea addresses_PSE+0x1bf92, %r11
nop
nop
dec %rbx
mov (%r11), %r15w
lea oracles, %r8
and $0xff, %r15
shlq $12, %r15
mov (%r8,%r15,1), %r15
pop %rbx
pop %rbp
pop %r8
pop %r15
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_PSE', 'same': True, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 2}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_PSE', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 8}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 10}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 4}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 6}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 4}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 11}}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
| 38.18543 | 2,999 | 0.661117 |
51add47b06399306d0937b4244e00000caee35f2 | 910 | asm | Assembly | lab_08/signed.asm | zakolm/ASM | 786d3609387f65c5011b4689a5c9618b73ea50a3 | [
"MIT"
] | 9 | 2018-04-23T09:10:36.000Z | 2020-05-09T21:49:55.000Z | lab_08/signed.asm | zakolm/ASM | 786d3609387f65c5011b4689a5c9618b73ea50a3 | [
"MIT"
] | null | null | null | lab_08/signed.asm | zakolm/ASM | 786d3609387f65c5011b4689a5c9618b73ea50a3 | [
"MIT"
] | 3 | 2019-03-26T17:16:15.000Z | 2020-10-05T15:19:44.000Z | PUBLIC F2
PUBLIC F4
PUBLIC F6
EXTRN F1 : NEAR
EXTRN F3 : NEAR
EXTRN F5 : NEAR
CSEG SEGMENT PARA PUBLIC 'CODE'
ASSUME CS:CSEG
F2 PROC NEAR
PUSH BP
MOV BP, SP
MOV CX, [BP + 4]
MOV BX, [BP + 6]
CMP CL, 0
JE F2_SKIP_NEG
MOV AH, 2
MOV DL, '-'
INT 21H
NEG BX
F2_SKIP_NEG:
PUSH BX
PUSH CX
CALL F1
POP BP
RET 4
F2 ENDP
F4 PROC NEAR
PUSH BP
MOV BP, SP
MOV CX, [BP + 4]
MOV BX, [BP + 6]
CMP CL, 0
JE F4_SKIP_NEG
MOV AH, 2
MOV DL, '-'
INT 21H
NEG BX
F4_SKIP_NEG:
PUSH BX
PUSH CX
CALL F3
POP BP
RET 4
F4 ENDP
F6 PROC NEAR
PUSH BP
MOV BP, SP
MOV CX, [BP + 4]
MOV BX, [BP + 6]
CMP CL, 0
JE F6_SKIP_NEG
MOV AH, 2
MOV DL, '-'
INT 21H
NEG BX
F6_SKIP_NEG:
PUSH BX
PUSH CX
CALL F5
POP BP
RET 4
F6 ENDP
CSEG ENDS
END | 10 | 31 | 0.524176 |
0e3497786bd0b6f57ef432358795511295288e4d | 310 | asm | Assembly | Exercises/128/128.asm | unlam/68HC11-simulator | dd5f7e718fc50caa92543224c8671bae653a3c45 | [
"Apache-2.0"
] | 1 | 2019-05-07T20:58:12.000Z | 2019-05-07T20:58:12.000Z | Exercises/128/128.asm | unlam/68HC11-simulator | dd5f7e718fc50caa92543224c8671bae653a3c45 | [
"Apache-2.0"
] | null | null | null | Exercises/128/128.asm | unlam/68HC11-simulator | dd5f7e718fc50caa92543224c8671bae653a3c45 | [
"Apache-2.0"
] | null | null | null | ORG $0000
DATO RMB 1
RES RMB 1
ORG $8000
LDAA DATO
CMPA #128
BEQ IGUAL
BLO MENOR
BHI MAYOR
IGUAL LDAB #'=' ; "=" = $3D
STAB RES
BRA FIN
MENOR LDAB #'<' ; "<" = $3C
STAB RES
BRA FIN
MAYOR LDAB #'>' ; ">" = $3E
STAB RES
BRA FIN
FIN BRA FIN | 12.4 | 28 | 0.480645 |
d78e08148c9abb60ddae72033f27358882d3052b | 715 | asm | Assembly | Mid-Term/Solution/1.asm | MehbinMimi/CSE331L-Section-1-Fall20-NSU | 9c3bc01296ce880681fb70ba36d400197f046270 | [
"MIT"
] | null | null | null | Mid-Term/Solution/1.asm | MehbinMimi/CSE331L-Section-1-Fall20-NSU | 9c3bc01296ce880681fb70ba36d400197f046270 | [
"MIT"
] | null | null | null | Mid-Term/Solution/1.asm | MehbinMimi/CSE331L-Section-1-Fall20-NSU | 9c3bc01296ce880681fb70ba36d400197f046270 | [
"MIT"
] | null | null | null | .MODEL SMALL
.STACK 100H
.DATA
NUM1 DB ?
NUM2 DB ?
RESULT DB ?
PROMPT_1 DB "Enter integer 1: $"
PROMPT_2 DB 0DH,0AH, "Enter integer 2: $"
PROMPT_3 DB 0DH,0AH, "MUL of the integers: $"
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
LEA DX, PROMPT_1
MOV AH,9
INT 21H
MOV AH,1
INT 21H
SUB AL,30H
MOV NUM1,AL
LEA DX,PROMPT_2
MOV AH,9
INT 21H
MOV AH,1
INT 21H
SUB AL,30H
MOV NUM2,AL
MUL NUM1
MOV RESULT,AL
AAM
ADD AH,30H
ADD AL,30H
MOV BX,AX
LEA DX,PROMPT_3
MOV AH,9
INT 21H
MOV AH,2
MOV DL,BH
INT 21H
MOV AH,2
MOV DL,BL
INT 21H
MOV AH,4CH
INT 21H
MAIN ENDP
END MAIN
| 11 | 47 | 0.558042 |
7263c8ee1e4af1b7f6a1e6ccc3b0e042a5c3cafd | 745 | asm | Assembly | oeis/018/A018918.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/018/A018918.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/018/A018918.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A018918: Define the generalized Pisot sequence T(a(0),a(1)) by: a(n+2) is the greatest integer such that a(n+2)/a(n+1) < a(n+1)/a(n). This is T(3,6).
; Submitted by Jon Maiga
; 3,6,11,20,36,64,113,199,350,615,1080,1896,3328,5841,10251,17990,31571,55404,97228,170624,299425,525455,922110,1618191,2839728,4983376,8745216,15346785,26931731,47261894,82938843,145547524,255418100,448227520,786584465,1380359511,2422362078,4250949111,7459895656,13091204280,22973462016,40315615409,70748973083,124155792774,217878227875,382349636060,670976837020,1177482265856,2066337330753,3626169232671,6363483400446,11167134898975,19596955630176,34390259761824,60350698792448,105908093453249
add $0,4
mul $0,2
seq $0,182097 ; Expansion of 1/(1-x^2-x^3).
sub $0,1
| 82.777778 | 495 | 0.801342 |
289cf950f762b0d38b937d8e75966809b3a10170 | 2,780 | asm | Assembly | src/drivers/DalSoRiR2.asm | sharksym/vgmplay-sharksym | d7763b87a379da4e6dadcc55026969d310957952 | [
"BSD-2-Clause"
] | 6 | 2020-04-21T17:26:27.000Z | 2021-09-25T18:41:01.000Z | src/drivers/DalSoRiR2.asm | sharksym/vgmplay-sharksym | d7763b87a379da4e6dadcc55026969d310957952 | [
"BSD-2-Clause"
] | null | null | null | src/drivers/DalSoRiR2.asm | sharksym/vgmplay-sharksym | d7763b87a379da4e6dadcc55026969d310957952 | [
"BSD-2-Clause"
] | null | null | null | ;
; DalSoRiR2 YMF278B OPL4
;
DalSoRiR2_FM_BASE_PORT: equ 0C4H
DalSoRiR2_WAVE_BASE_PORT: equ 07EH
DalSoRiR2_CONFIG: equ 6700H
DalSoRiR2_C0_ENABLE: equ 01H
DalSoRiR2_C4_ENABLE: equ 02H
DalSoRiR2_YRW801_DISABLE: equ 20H
DalSoRiR2: MACRO ?fmbase = DalSoRiR2_FM_BASE_PORT
this:
super: OPL4 ?fmbase, DalSoRiR2_WAVE_BASE_PORT, DalSoRiR2_name
slot:
db 0
SafeWriteRegister: equ super.SafeWriteRegister
SafeWriteRegister2: equ super.SafeWriteRegister2
ProcessRAMDataBlock: equ super.ProcessRAMDataBlock
; e = register
; d = value
SafeWriteRegisterWave:
ld a,e
cp OPL4_WAVE_MEMORY_CONTROL
jr nz,super.SafeWriteRegisterWave
ld a,d
and 00011100B
ld d,a
ld a,e
jr super.WriteRegisterWave
; dehl = size
; iy = reader
ProcessROMDataBlock:
ld ix,this
jp DalSoRiR2_ProcessROMDataBlock
ENDM
; ix = this
; iy = drivers
DalSoRiR2_Construct:
call Driver_Construct
call DalSoRiR2_Detect
jp nc,Driver_NotFound
jp OPL4_Reset
; ix = this
DalSoRiR2_Destruct: PROC
call OPL4_Destruct
call Driver_IsFound
ret nc
ld hl,JIFFY
ld c,(hl)
Loop:
halt
ld a,(hl) ; wait 16 ms for sounds to die out
sub c
cp 2
jr c,Loop
ld a,DalSoRiR2_C4_ENABLE
jr DalSoRiR2_SetConfig ; re-enable YRW801 ROM
ENDP
; dehl = size
; ix = this
; iy = reader
DalSoRiR2_ProcessROMDataBlock:
push de
push hl
ld a,DalSoRiR2_YRW801_DISABLE | DalSoRiR2_C4_ENABLE
call DalSoRiR2_SetConfig
pop hl
pop de
jp OPL4_ProcessROMDataBlock
; a = configuration
; ix = this
DalSoRiR2_SetConfig:
ld e,a
ld a,(ix + DalSoRiR2.slot)
ld hl,DalSoRiR2_CONFIG
jp Memory_WriteSlot
; ix = this
; iy = drivers
; a <- slot
; f <- c: found
DalSoRiR2_Detect:
ld bc,Drivers.moonSound
push ix
call Drivers_TryGet_IY
pop ix
ld hl,DalSoRiR2_MatchSlot
jp nc,Memory_SearchSlots
and a
ret
; a = slot id
; ix = this
; f <- c: found
DalSoRiR2_MatchSlot: PROC
call Utils_IsNotRAMSlot
ret nc
ld bc,8
ld de,DalSoRiR2_emptyID
ld hl,4000H
call Memory_MatchSlotString
jr c,Continue
ld bc,5
ld de,DalSoRiR2_msxAudioBIOSID
ld hl,0080H
call Memory_MatchSlotString
ret nc
Continue:
ld (ix + DalSoRiR2.slot),a
xor a
call DalSoRiR2_SetConfig ; disable all ports
call OPL4_Detect
jr c,NotFound
ld a,DalSoRiR2_C4_ENABLE
call DalSoRiR2_SetConfig ; enable C4 port
call OPL4_Detect
jr nc,NotFound
Found:
scf
ret
NotFound:
and a
ret
ENDP
;
SECTION RAM
DalSoRiR2_instance: DalSoRiR2
ENDS
DalSoRiR2_interface:
InterfaceOffset DalSoRiR2.SafeWriteRegister
InterfaceOffset DalSoRiR2.SafeWriteRegister2
InterfaceOffset DalSoRiR2.SafeWriteRegisterWave
InterfaceOffset DalSoRiR2.ProcessROMDataBlock
InterfaceOffset DalSoRiR2.ProcessRAMDataBlock
DalSoRiR2_name:
db "DalSoRi R2",0
DalSoRiR2_emptyID:
db 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH
DalSoRiR2_msxAudioBIOSID:
db "AUDIO"
| 17.820513 | 62 | 0.779137 |
ec2cbbe40d57dca53b80b68349b8dd5a9a37abc3 | 8,747 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_651.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_651.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_651.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 %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xe554, %rsi
lea addresses_WC_ht+0x7554, %rdi
cmp %r15, %r15
mov $33, %rcx
rep movsq
nop
nop
xor $48553, %r12
lea addresses_UC_ht+0x8d54, %r15
nop
and %r13, %r13
vmovups (%r15), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $0, %xmm7, %rsi
nop
nop
inc %r13
lea addresses_A_ht+0x9554, %rsi
lea addresses_A_ht+0x6994, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
sub %r13, %r13
mov $95, %rcx
rep movsw
cmp $54631, %rdi
lea addresses_UC_ht+0xa294, %r15
clflush (%r15)
nop
nop
nop
nop
nop
and %rdx, %rdx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm2
vmovups %ymm2, (%r15)
nop
nop
nop
cmp $43660, %r15
lea addresses_WT_ht+0xf4d4, %rsi
nop
nop
nop
and %r12, %r12
mov $0x6162636465666768, %rdx
movq %rdx, %xmm3
vmovups %ymm3, (%rsi)
nop
nop
nop
nop
dec %r12
lea addresses_WT_ht+0x161, %rsi
lea addresses_D_ht+0x1c98c, %rdi
nop
nop
nop
nop
nop
dec %rdx
mov $41, %rcx
rep movsb
nop
nop
nop
nop
nop
dec %r15
lea addresses_normal_ht+0x170c8, %rsi
lea addresses_UC_ht+0x1b374, %rdi
clflush (%rsi)
nop
nop
nop
nop
sub %r8, %r8
mov $101, %rcx
rep movsq
nop
nop
nop
inc %r8
lea addresses_WC_ht+0x8954, %rsi
lea addresses_D_ht+0x1c9d8, %rdi
nop
nop
nop
nop
and $32938, %r12
mov $93, %rcx
rep movsq
dec %rcx
lea addresses_WT_ht+0x1e1d4, %rsi
nop
nop
cmp %r8, %r8
movb $0x61, (%rsi)
add %rcx, %rcx
lea addresses_WC_ht+0x594, %rsi
lea addresses_normal_ht+0x1db4, %rdi
nop
nop
xor $2203, %r12
mov $46, %rcx
rep movsl
nop
nop
cmp %r8, %r8
lea addresses_normal_ht+0x13d34, %r8
nop
nop
nop
xor $10614, %rdi
mov $0x6162636465666768, %r15
movq %r15, %xmm0
vmovups %ymm0, (%r8)
sub %rdx, %rdx
lea addresses_WC_ht+0x1dc54, %r15
nop
nop
nop
nop
and %r8, %r8
movb (%r15), %r13b
nop
nop
add %rcx, %rcx
lea addresses_WT_ht+0x64cc, %r13
nop
nop
nop
xor %r15, %r15
mov $0x6162636465666768, %r12
movq %r12, (%r13)
nop
nop
nop
nop
add %r13, %r13
lea addresses_A_ht+0x454, %rdi
nop
add %rcx, %rcx
movw $0x6162, (%rdi)
cmp %rdx, %rdx
lea addresses_WC_ht+0x1154, %r13
nop
nop
nop
add $48482, %r8
mov $0x6162636465666768, %r12
movq %r12, %xmm7
and $0xffffffffffffffc0, %r13
vmovaps %ymm7, (%r13)
nop
nop
inc %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r8
push %r9
push %rbp
push %rbx
push %rcx
push %rdx
// Store
lea addresses_UC+0xbd04, %rcx
nop
nop
nop
nop
and %rdx, %rdx
mov $0x5152535455565758, %r9
movq %r9, %xmm5
movups %xmm5, (%rcx)
nop
and $57569, %rbp
// Store
lea addresses_normal+0xa264, %r12
nop
nop
dec %rbx
mov $0x5152535455565758, %r9
movq %r9, (%r12)
nop
dec %rbp
// Load
lea addresses_US+0x1df14, %rbx
nop
nop
nop
nop
and %r8, %r8
movups (%rbx), %xmm1
vpextrq $0, %xmm1, %rbp
cmp %rcx, %rcx
// Faulty Load
lea addresses_UC+0x12554, %r8
nop
sub %rbp, %rbp
movb (%r8), %bl
lea oracles, %rbp
and $0xff, %rbx
shlq $12, %rbx
mov (%rbp,%rbx,1), %rbx
pop %rdx
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r8
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_UC', 'AVXalign': False, 'size': 16}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_normal', 'AVXalign': False, 'size': 8}}
{'src': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_US', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 11, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}}
{'src': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 11, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 5, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32}}
{'src': {'same': False, 'congruent': 0, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_D_ht'}}
{'src': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_UC_ht'}}
{'src': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_D_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1}}
{'src': {'same': False, 'congruent': 5, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32}}
{'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2}}
{'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 9, 'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 32}}
{'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
*/
| 32.158088 | 2,999 | 0.657597 |
22203ac5776639888bb771f8a2e1a50db8035a82 | 255 | asm | Assembly | src/units/call_return.asm | cburbridge/z80 | 743a294788a7af79f3b0d3fa097a10d02b5e0065 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 18 | 2016-09-29T01:07:29.000Z | 2021-12-23T06:05:35.000Z | src/units/call_return.asm | cburbridge/z80 | 743a294788a7af79f3b0d3fa097a10d02b5e0065 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/units/call_return.asm | cburbridge/z80 | 743a294788a7af79f3b0d3fa097a10d02b5e0065 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 5 | 2015-09-06T14:32:20.000Z | 2019-12-25T17:10:41.000Z | CALL 7219H
CALL NZ, 7219H
CALL Z, 7219H
CALL NC, 7219H
CALL C, 7219H
CALL PO, 7219H
CALL PE, 7219H
CALL P, 7219H
CALL M, 7219H
RETI
RETN
RET
RET NZ
RET Z
RET NC
RET C
RET PO
RET PE
RET P
RET M
RST 0H
RST 8H
RST 10H
RST 18H
RST 20H
RST 28H
RST 30H
RST 38H | 9.107143 | 14 | 0.729412 |
17c5931d4d6bd14cc668f6f7b7334210aa7b718d | 414 | asm | Assembly | oeis/193/A193665.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/193/A193665.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/193/A193665.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A193665: Q-residue of A075392, where Q=A075392. (See Comments.)
; 1,6,33,208,1505,12330,112973,1145568,12742389,154308350,2021296189,28480485024,429565218277,6905903216562,117891260108985,2129869055824000,40600135597843817,814383095809997142,17147155400516728601,378137512431282658800
add $0,1
lpb $0
cmp $3,0
lpb $0
mul $3,$0
sub $0,1
add $1,$3
add $2,$1
mov $3,$2
lpe
lpe
mov $0,$3
| 25.875 | 220 | 0.727053 |
0a5a3ddfb0193a87a8a68bd30a80dad9875821ad | 333 | asm | Assembly | oeis/021/A021515.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/021/A021515.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/021/A021515.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A021515: Decimal expansion of 1/511.
; Submitted by Jamie Morken(s2)
; 0,0,1,9,5,6,9,4,7,1,6,2,4,2,6,6,1,4,4,8,1,4,0,9,0,0,1,9,5,6,9,4,7,1,6,2,4,2,6,6,1,4,4,8,1,4,0,9,0,0,1,9,5,6,9,4,7,1,6,2,4,2,6,6,1,4,4,8,1,4,0,9,0,0,1,9,5,6,9,4,7,1,6,2,4,2,6,6,1,4,4,8,1,4,0,9,0,0,1
mov $1,10
pow $1,$0
mov $0,$1
mul $0,10
div $0,511
mod $0,10
| 30.272727 | 199 | 0.561562 |
e433ec29279ec4352dcb647daee0d7eb28801088 | 710 | asm | Assembly | oeis/038/A038291.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/038/A038291.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/038/A038291.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A038291: Triangle whose (i,j)-th entry is binomial(i,j)*9^(i-j)*1^j.
; Submitted by Christian Krause
; 1,9,1,81,18,1,729,243,27,1,6561,2916,486,36,1,59049,32805,7290,810,45,1,531441,354294,98415,14580,1215,54,1,4782969,3720087,1240029,229635,25515,1701,63,1,43046721,38263752,14880348,3306744,459270,40824,2268,72,1,387420489,387420489,172186884,44641044,7440174,826686,61236,2916,81,1,3486784401,3874204890,1937102445,573956280,111602610,14880348,1377810,87480,3645,90,1,31381059609,38354628411,21308126895,7102708965,1578379770,245525742,27280638,2165130,120285,4455,99,1,282429536481,376572715308
lpb $0
add $1,1
sub $0,$1
mov $2,$1
sub $2,$0
lpe
bin $1,$0
mov $0,9
pow $0,$2
mul $1,$0
mov $0,$1
| 44.375 | 498 | 0.761972 |
5ef44fce1d765214bfdf10c21d54ebc19960da0e | 2,059 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_1_479.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_1_479.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_1_479.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 %r11
push %r12
push %r13
push %r15
push %rbp
push %rdi
lea addresses_WT_ht+0x17935, %r13
nop
nop
nop
nop
add %r11, %r11
mov (%r13), %r15d
nop
nop
nop
sub %r13, %r13
lea addresses_D_ht+0x45b5, %r12
nop
add %r10, %r10
movb $0x61, (%r12)
nop
and $55385, %r13
lea addresses_A_ht+0xc3b5, %r10
nop
nop
nop
dec %rdi
mov (%r10), %r13d
nop
nop
nop
nop
nop
mfence
pop %rdi
pop %rbp
pop %r15
pop %r13
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_WC+0x3545, %rax
nop
nop
nop
nop
nop
xor %r13, %r13
movb $0x51, (%rax)
nop
nop
nop
and $45733, %rdi
// REPMOV
lea addresses_WT+0x63d, %rsi
lea addresses_RW+0x129fd, %rdi
xor $7605, %r12
mov $14, %rcx
rep movsb
nop
nop
nop
nop
nop
cmp $57292, %rdi
// Faulty Load
lea addresses_A+0x1cbb5, %rsi
xor %rax, %rax
mov (%rsi), %edi
lea oracles, %rcx
and $0xff, %rdi
shlq $12, %rdi
mov (%rcx,%rdi,1), %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WC'}}
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_WT'}, 'OP': 'REPM', 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_RW'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 4, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_D_ht'}}
{'src': {'congruent': 11, 'AVXalign': False, 'same': True, 'size': 4, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'00': 1}
00
*/
| 17.302521 | 142 | 0.642545 |
9c76e33bc6e94766f7edc1b30af9ec28f5143a08 | 643 | asm | Assembly | oeis/020/A020799.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/020/A020799.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/020/A020799.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A020799: Decimal expansion of 1/sqrt(42).
; Submitted by Jamie Morken(s2)
; 1,5,4,3,0,3,3,4,9,9,6,2,0,9,1,9,1,0,2,6,1,0,9,4,4,6,2,7,6,3,9,9,9,9,2,0,4,2,1,5,5,2,4,8,3,5,0,1,3,8,9,2,0,3,5,6,4,5,5,6,0,5,7,0,9,0,7,0,5,1,7,5,6,6,2,9,5,3,4,3,7,4,1,4,2,9,4,3,0,7,3,0,0,1,3,3,5,7,7,0
mov $1,1
mov $2,1
mov $3,$0
add $3,8
mov $4,$0
add $0,5
add $4,3
mul $4,2
mov $7,10
pow $7,$4
mov $9,10
lpb $3
mov $4,$2
pow $4,2
mul $4,42
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,2
div $1,$8
div $2,$8
sub $3,1
lpe
mov $3,$9
pow $3,$0
div $2,$3
mov $0,$2
mod $0,10
| 16.075 | 201 | 0.51633 |
97509e8ab8c445539b9fcdfdaf2e5b96578e9809 | 10,974 | asm | Assembly | 45/qb/ir/prsstmt.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | 45/qb/ir/prsstmt.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | 45/qb/ir/prsstmt.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | TITLE prsstmt.asm - Parser Statement Parsing
;==========================================================================
;
; Module: prsstmt.asm - Parser Statement Parsing
; Subsystem: Parser
; System: Quick BASIC Interpreter
; Copyright <C> 1985, Microsoft Corporation
;
; Note:
; See general comments at top of prsnt.asm
;
;=========================================================================
include version.inc
PRSSTMT_ASM = ON
includeOnce architec
includeOnce context
includeOnce msgshort
includeOnce opmin
includeOnce opstmt
includeOnce parser
includeOnce prsirw
includeOnce prstab
includeOnce psint
includeOnce util
includeOnce variable ;needed for mkVar
sBegin DATA
sEnd DATA
sBegin CP
assumes CS,CP
assumes DS,DATA
assumes SS,DATA
assumes ES,NOTHING
;**********************************************************************
; PARSE_RESULT NEAR NtStatement()
;
; Purpose:
; Parse the start of a sequence of statements.
;
; Entry:
; pTokScan = 1st token of statement list.
;
; Exit:
; If no statement is recognized, no tokens are consumed and the
; return value is PR_NotFound.
; If the statement head is recognized, the token is consumend,
; code is emitted and the entire statement is parsed.
; If it was good syntax, return value is PR_GoodSyntax.
; If it was bad syntax, return value is PR_BadSyntax.
; Condition codes set based on value in al
;
;******************************************************************
cProc NtStatement <PUBLIC,NODATA,NEAR>,<si,di>
localW pState
localW pCgFunc
localW cgArg
cBegin NtStatement
sub ax,ax ;ax = 0
mov [mkVar.MKVAR_flags],ax
mov [cIdArgs],ax ;cIdArgs = 0 (used by NtId())
mov [pCgFunc],ax ;assume no post-stmt code generator
mov bx,[pTokScan] ;bx points to current token
cmp [bx.TOK_class],CL_id
jne NotImplied ;branch if token wasn't an id
sub ax,ax ;allow LET or CALL
push ax
call NtImpliedLetOrCall ;parse implied LET or CALL
jg J_CheckForEos ;brif PR_GoodSyntax, parse end-of-stmt
jmp NtStmtExit ;branch if PR_NotFound or PR_BadSyntax
J_CheckForEos:
jmp CheckForEos
;bx points to 1st token in statement
NotImplied:
mov [pCurStkMark],MAX_STK_MARK
;reset stack used by MARK bnf directive
cmp [bx.TOK_class],CL_resWord
jne NtStmtNotFound
mov di,[bx.TOK_rw_rwf] ;di = reserved word flags
mov cx,[bx.TOK_rw_iRw] ;cx = reserved word's id
test di,RWF_NSTMTS
jne GotStmt
;Reserved word table says this res word can't begin a statement.
;Check for special cases.
mov ax,opStData
cmp cx,IRW_DATA
je EmitTheRem ;branch if stmt is DATA
mov ax,opStRem
cmp cx,IRW_REM ;branch if stmt is REM
je EmitTheRem
cmp cx,IRW_SQuote
jne NtStmtNotFound ;branch if stmt isn't '<rem>
GotSQuote:
mov ax,opQuoteRem
EmitTheRem:
push ax ;pass opcode to be emitted
call NtEmitRem ;emit REM/DATA, al = PR_GoodSyntax
jle J1_NtStmtExit ;brif bad syntax (return AL as result)
jmp CheckForEos ;brif good syntax
NtStmtNotFound:
sub al,al ;ax = PR_NotFound
J1_NtStmtExit:
jmp NtStmtExit
;got a statement reserved word
; bx points to 1st token in statement (current token)
; di = reserved word flags
; cx = reserved word's id
;
GotStmt:
;Fetch info for a particular intrinsic function out of the
;parser's reserved word table 'tRw'.
.errnz IRW_DEFINT - IRW_DEFDBL - 1
.errnz IRW_DEFLNG - IRW_DEFDBL - 2
.errnz IRW_DEFSNG - IRW_DEFDBL - 3
.errnz IRW_DEFSTR - IRW_DEFDBL - 4
xchg ax,cx ;ax = iRw
cmp ax,IRW_DEFDBL
jb NotDefType
cmp ax,IRW_DEFSTR
ja NotDefType
or [psFlags],PSIF_NoCaseChg
;no identifiers in rest of this statement will affect nammgr's
;upper/lower case of identifiers. Otherwise, DEFINT A-Z would
;change statements like a=z to A=Z
NotDefType:
test [psFlags],PSIF_fNot1stStmt
je FirstStmt ;brif this is 1st stmt on line
cmp ax,IRW_ELSE
je NtStmtNotFound ;brif got ELSE
cmp ax,IRW_ELSEIF
je NtStmtNotFound ;brif not ELSEIF
FirstStmt:
mov si,[bx.TOK_rw_pArgs] ;si -> pRwArgs in tRw
test di,RWF_FUNC
je NoFunc ;brif this res word is not an Intrinsic
lodsw ;skip intrinsic's oState (lodsw is a
; small-code way to bump si by 2.
; Speed doesn't matter in this case)
test di,RWF_FUNC_CG
je NoFunc ;branch if no code generator for func
lodsw ;skip intrinsic's code gen info
lodsw
NoFunc:
;There are 2 or more different statements which can begin
; with this reserved word. We now call a function which
; looks ahead in the pcode to resolve the ambiguity.
mov ax,di ;ax = reserved word flags
and ax,RWF_NSTMTS ;ax = num stmts beginning with res word
dec ax
je NoAmbiguity ;branch if only 1
lods WORD PTR cs:[si] ;ax=adr of look-ahead function
call ax ;invoke it to resolve ambiguity
;ax = 0,6,12,... for correct stmt
add si,ax ;advance to proper stmt's info
NoAmbiguity:
lods WORD PTR cs:[si] ;ax=state table offset for stmt's syntax
add ax,OFFSET CP:tState ;pState = &(tState[oState])
mov [pState],ax
test di,RWF_STMT_CG
je NoStmtCg ;branch if no code generator for stmt
lods WORD PTR cs:[si] ;ax=adr of code generation func
mov [pCgFunc],ax
lods WORD PTR cs:[si] ;ax=arg to pass to code generation func
mov [cgArg],ax
NoStmtCg:
cmp [grs.GRS_fDirect],0
je NotProtDirect ;brif we're not parsing a direct mode
; statement
test di,RWF_NO_DIRECT
jne ErrorId ;branch if stmt illegal in direct mode
NoScanner:
;Beyond this point, we can only return PR_GoodSyntax or PR_BadSyntax
;because we've consumed something.
;
NotProtDirect:
call ScanTok ;skip keyword token
mov ax,[pState]
mov [pStateLastScan],ax
call NtParse ;parse the statement @ ax
jle StmtNotGood ;branch if result wasn't PR_GoodSyntax
cmp [ps.PS_errCode],0
jne CheckForEos ;brif got some error like out-of-memory
mov dx,[pCgFunc]
or dx,dx
je CheckForEos ;brif no code generator to be called
mov ax,[cgArg] ;pass cgArg (opcode) in ax
call dx ;invoke code generation routine
CheckForEos:
or [psFlags],PSIF_fNot1stStmt ;no longer 1st stmt on line
jmp SHORT NtStmtGoodSyntax
StmtNotGood:
jl NtStmtExit ;branch if Parse() returned PR_BadSyntax
call PErrState ; or <b> or ..."
;al = PR_BadSyntax
SKIP2_PSW ;skip mov al,PR_GoodSyntax instr
NtStmtGoodSyntax:
mov al,PR_GoodSyntax
NtStmtExit:
and [psFlags],NOT PSIF_NoCaseChg
or al,al ;set condition codes for caller
cEnd NtStatement
ErrorId:
mov ax,ER_ID ;Error: Stmt is illegal in Direct Mode
call PErrMsg_AX ; al = PR_BadSyntax
jmp SHORT NtStmtExit
;**********************************************************************
; PARSE_RESULT NEAR NtStatementList()
;
; Purpose:
; Parse 0 or more statements of the form: Statement {: [Statement]}
;
; Entry:
; pTokScan = 1st token of statement list.
;
; Exit:
; If no statement is recognized, no tokens are consumed and the
; return value is PR_NotFound.
; If the statement head is recognized, the token is consumend,
; code is emitted and the entire statement is parsed.
; If it was good syntax, return value is PR_GoodSyntax.
; If it was bad syntax, return value is PR_BadSyntax.
; Condition codes set based on al (return value)
;
;******************************************************************
; NOTE: Control flow may appear strange, but is optimized for "Typical case"
;
;NtStatementList0 is called by ParseLine() for the source line.
;NtStatementList is called for blocks within a 1 line THEN or ELSE clause
;
PUBLIC NtStatementList, NtStatementList0
NtStatementList PROC NEAR
or [psFlags],PSIF_fNot1stStmt ;no longer 1st stmt on line
NtStatementList ENDP
;fall into NtStatementList0
NtStatementList0 PROC NEAR
push si ;preserve caller's si
sub si,si ;prepare to return PR_NotFound
StmtLoop:
call NtStatement ;parse 1 statement
jle NtStmtNotGood ;branch if result != PR_GoodSyntax
inc si ;remember we've consumed something
; assumes no more than 32767 statements
; per line (very safe)
TryColon:
mov ax,IRW_Colon
call TestScan_AX ;bx points to current token
jne NotColon ;branch if didn't get a ':'
push [bx.TOK_oSrc] ;save column of :
inc si ;remember we've consumed something
call ScanTok ;skip ':', bx points to next token
pop ax ;ax = column of :
sub ax,[bx.TOK_oSrc] ;ax = -#spaces between : and next token
cmp al,-2
jl BosSp ;brif more than 1 space
mov ax,opBos ;emit statement separator
call Emit16_AX
jmp SHORT StmtLoop ;test return value
BosSp:
push [bx.TOK_oSrc] ;pass column of token after : to Emit16
mov ax,opBosSp ;emit statement separator
call Emit16_AX
call Emit16 ;emit column
jmp SHORT StmtLoop ;test return value
NotColon:
mov ax,IRW_SQuote
call TestScan_AX
je StmtLoop ;branch if got a 'comment
mov al,PR_GoodSyntax ;if we've consumed anything, return
or si,si ; PR_GoodSyntax
jne NtStmtListExit
sub al,al ;return PR_NotFound
jmp SHORT NtStmtListExit ;return PR_BadSyntax (cond codes set)
;al = PR_NotFound or PR_BadSyntax after calling NtStatement
NtStmtNotGood:
je TryColon ;brif NtStatement returned PR_NotFound
NtStmtListExit:
pop si ;restore caller's si
ret
NtStatementList0 ENDP
;**********************************************************************
; PARSE_RESULT NEAR NtEndStatement()
;
; Purpose:
; Parse End-of-Statement or End-of-Line, but don't consume any
; tokens or emit any opcodes.
;
; Exit:
; Returns PR_GoodSyntax if pTokScan is either End-Statement or End-Line.
; Otherwise returns PR_NotFound.
; condition codes are set via or al,al.
;
;******************************************************************
PUBLIC NtEndStatement
NtEndStatement PROC NEAR
call NtEndLine
jg NtEndExit ;brif got end-of-line
cmp cx,IRW_Colon ;NtEndLine set cx=token's IRW_xxx
je NtEndGood ;branch if token is ':'
cmp cx,IRW_ELSE
jne NtEndExit ;branch if token isn't 'ELSE' (returning
; PR_NotFound as set by NtEndLine)
NtEndGood:
mov al,PR_GoodSyntax ;return PR_GoodSyntax for ':'
NtEndExit:
or al,al ;set condition codes for caller
ret
NtEndStatement ENDP
;**********************************************************************
; PARSE_RESULT NEAR NtEndLine()
;
; Purpose:
; Parse End-of-Line, but don't consume any tokens or emit any opcodes.
;
; Exit:
; Returns PR_GoodSyntax if pTokScan is End-of-Line.
; Otherwise returns PR_NotFound.
; If token is res word, its IRW_xxx is returned in cx
; condition codes are set via or al,al.
;
;******************************************************************
PUBLIC NtEndLine
NtEndLine PROC NEAR
mov bx,[pTokScan] ;bx points to current token
sub cx,cx ;cx = impossible IRW_xxx
cmp [bx.TOK_class],CL_resWord
jne NotEol ;branch if not a reserved word token
mov al,PR_GoodSyntax ;prepare to return Good Syntax
mov cx,[bx.TOK_rw_iRw] ;cx = reserved word's id
cmp cx,IRW_NewLine
je GotEol ;branch if token is newline
cmp cx,IRW_SQuote
je GotEol ;branch if token is single quote rem
NotEol:
sub al,al ;return PR_NotFound
GotEol:
or al,al ;set condition codes for caller
ret
NtEndLine ENDP
CP ENDS
end
| 29.739837 | 76 | 0.698834 |
7b4c688d663a7d371a478b1b6ca2c42a085c4074 | 6,487 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2858.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2858.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2858.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 %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x14115, %rdx
nop
nop
nop
xor %r10, %r10
movb $0x61, (%rdx)
xor $25081, %rbx
lea addresses_WT_ht+0x2bef, %r12
nop
nop
nop
nop
cmp $24409, %rbx
movb (%r12), %r9b
nop
nop
nop
nop
xor %r10, %r10
lea addresses_normal_ht+0x19fef, %r15
clflush (%r15)
nop
nop
nop
nop
and $30145, %r12
mov (%r15), %edx
nop
nop
nop
nop
xor $47763, %r10
lea addresses_normal_ht+0x95ef, %rsi
lea addresses_D_ht+0x1493f, %rdi
nop
nop
nop
nop
dec %r9
mov $116, %rcx
rep movsb
nop
nop
nop
nop
cmp $18425, %r12
lea addresses_UC_ht+0xc2ef, %rcx
nop
add %rsi, %rsi
mov $0x6162636465666768, %r10
movq %r10, (%rcx)
nop
nop
nop
add $64149, %rdx
lea addresses_A_ht+0x24ff, %rsi
lea addresses_A_ht+0x1a7ef, %rdi
clflush (%rsi)
nop
nop
nop
and $4009, %r15
mov $3, %rcx
rep movsq
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_WC_ht+0x6262, %r12
nop
and %rsi, %rsi
movl $0x61626364, (%r12)
add $4496, %rbx
lea addresses_A_ht+0x7fef, %rsi
lea addresses_D_ht+0x1321f, %rdi
nop
nop
and %r15, %r15
mov $42, %rcx
rep movsb
nop
nop
cmp $11445, %r10
lea addresses_WT_ht+0x8bf, %rsi
lea addresses_A_ht+0x1890f, %rdi
clflush (%rdi)
nop
nop
nop
and %r9, %r9
mov $89, %rcx
rep movsl
nop
nop
nop
nop
xor $44380, %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r15
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %r8
push %r9
push %rbx
push %rdi
// Store
lea addresses_normal+0xcd49, %rdi
dec %r14
movl $0x51525354, (%rdi)
dec %r12
// Faulty Load
lea addresses_D+0x197ef, %r8
nop
cmp %rbx, %rbx
mov (%r8), %r14
lea oracles, %rdi
and $0xff, %r14
shlq $12, %r14
mov (%rdi,%r14,1), %r14
pop %rdi
pop %rbx
pop %r9
pop %r8
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_D', 'same': False, 'size': 1, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_normal', 'same': False, 'size': 4, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_D', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 1, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 1, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': True}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 8, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'}
{'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
*/
| 37.068571 | 2,999 | 0.658702 |
4dacdbe16074015c4e0b05fa2e7435ce24cd5e7f | 728 | asm | Assembly | programs/oeis/061/A061503.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/061/A061503.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/061/A061503.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A061503: a(n) = Sum_{k=1..n} tau(k^2), where tau is the number of divisors function A000005.
; 1,4,7,12,15,24,27,34,39,48,51,66,69,78,87,96,99,114,117,132,141,150,153,174,179,188,195,210,213,240,243,254,263,272,281,306,309,318,327,348,351,378,381,396,411,420,423,450,455,470,479,494,497,518,527,548,557,566,569,614,617,626,641,654,663,690,693,708,717,744,747,782,785,794,809,824,833,860,863,890,899,908,911,956,965,974,983,1004,1007,1052,1061,1076,1085,1094,1103,1136,1139,1154,1169,1194
mov $2,$0
add $2,1
mov $4,$0
lpb $2
mov $0,$4
sub $2,1
sub $0,$2
seq $0,146564 ; a(n) is the number of solutions of the equation k*n/(k-n) = c. k,c integers.
mov $3,$0
div $3,3
mul $3,2
add $3,1
add $1,$3
lpe
mov $0,$1
| 38.315789 | 394 | 0.668956 |
d909e81dcf51e772d978703fd682006fa40b89af | 734 | asm | Assembly | src/PJ/flic386p/libsrc/fileio/doswrite.asm | AnimatorPro/Animator-Pro | 6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb | [
"BSD-3-Clause"
] | 119 | 2015-01-10T15:13:50.000Z | 2022-01-24T04:54:34.000Z | src/PJ/flic386p/libsrc/fileio/doswrite.asm | AnimatorPro/Animator-Pro | 6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb | [
"BSD-3-Clause"
] | 6 | 2015-10-22T20:14:59.000Z | 2021-07-10T03:25:21.000Z | src/PJ/flic386p/libsrc/fileio/doswrite.asm | AnimatorPro/Animator-Pro | 6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb | [
"BSD-3-Clause"
] | 27 | 2015-04-24T22:55:30.000Z | 2022-01-21T13:54:00.000Z | CGROUP group code
code segment dword 'CODE'
assume cs:CGROUP,ds:CGROUP
include errcodes.i
; pj_dwrite(int file_handle, char *buffer, int size)
; returns bytes actually written
public pj_dwrite
pj_dwrite proc near
pjwrite struc
pjw_savebp dd ?
pjw_ret dd ?
pjw_handle dd ?
pjw_buffer dd ?
pjw_size dd ?
pjwrite ends
push ebp
mov ebp,esp
push ebx
push ecx
push edx
mov eax,[ebp].pjw_size
cmp eax,00h ; size of 0 is always successful
jz #retok
mov ebx,[ebp].pjw_handle
mov ecx,eax
mov edx,[ebp].pjw_buffer
mov ah,40h
int 21h
jnc #retok
mov eax,-1 ;error other than no space left on disk
#retok:
pop edx
pop ecx
pop ebx
pop ebp
ret
pj_dwrite endp
code ends
end
| 16.681818 | 53 | 0.692098 |
38f0286844275cdd0d45a18c4515da4e6d033b5c | 1,136 | asm | Assembly | programs/oeis/290/A290112.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/290/A290112.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/290/A290112.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A290112: Binary representation of the diagonal from the origin to the corner of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 643", based on the 5-celled von Neumann neighborhood.
; 1,11,101,1011,10111,101111,1011111,10111111,101111111,1011111111,10111111111,101111111111,1011111111111,10111111111111,101111111111111,1011111111111111,10111111111111111,101111111111111111,1011111111111111111,10111111111111111111,101111111111111111111,1011111111111111111111,10111111111111111111111,101111111111111111111111,1011111111111111111111111,10111111111111111111111111,101111111111111111111111111,1011111111111111111111111111,10111111111111111111111111111,101111111111111111111111111111,1011111111111111111111111111111,10111111111111111111111111111111,101111111111111111111111111111111,1011111111111111111111111111111111,10111111111111111111111111111111111,101111111111111111111111111111111111
add $0,1
lpb $0
mov $3,$2
cmp $3,0
add $4,$2
add $2,$3
mov $3,$4
cmp $3,0
add $4,$3
mov $3,$0
cmp $3,1
add $0,$3
sub $0,1
mod $2,$4
mul $4,10
lpe
mov $0,$4
div $0,10
mul $0,10
add $0,1
| 47.333333 | 703 | 0.829225 |
ac14705e924412b56e7337cafd79b4298c3ff1f0 | 380 | asm | Assembly | Kernel/asm/keyboard.asm | mlombardia/arqui_tpe | eff3005e48899c37c5e1f1ea914d2e7b355fb42f | [
"BSD-3-Clause"
] | 1 | 2019-11-11T15:07:03.000Z | 2019-11-11T15:07:03.000Z | Kernel/asm/keyboard.asm | mlombardia/arqui_tpe | eff3005e48899c37c5e1f1ea914d2e7b355fb42f | [
"BSD-3-Clause"
] | null | null | null | Kernel/asm/keyboard.asm | mlombardia/arqui_tpe | eff3005e48899c37c5e1f1ea914d2e7b355fb42f | [
"BSD-3-Clause"
] | 1 | 2019-11-12T16:51:27.000Z | 2019-11-12T16:51:27.000Z | GLOBAL kbd_getKey
section .text
kbd_getKey:
push rbp ; create stackframe
mov rbp, rsp
xor rax, rax ; empty register
in al, 0x64 ; port for keyboard controller
and al, 0x01 ; bitwise AND for last bit
test al, al ; if it is 0: jump to end; if it is 1: data available
jz .end
in al, 0x60 ; read output
.end:
leave
ret | 22.352941 | 75 | 0.607895 |
c1ea5791118598bbef76648171f2d26790818d01 | 253 | asm | Assembly | 3rdParties/src/nasm/nasm-2.15.02/test/evalmacro.asm | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | 1 | 2020-06-20T07:35:25.000Z | 2020-06-20T07:35:25.000Z | 3rdParties/src/nasm/nasm-2.15.02/test/evalmacro.asm | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | 3rdParties/src/nasm/nasm-2.15.02/test/evalmacro.asm | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | %define tonum(=x) x
dd tonum(1+3)
dd tonum(5*7)
%define mixed(a,=b,c) (a + b)
%define mixed2(a,=b,) (a + b)
%define ALPHA (1 + 2)
%define BETA (3 + 4)
%define GAMMA (5 + 6)
dd mixed(ALPHA, BETA, GAMMA)
dd mixed2(ALPHA, BETA, GAMMA)
| 18.071429 | 31 | 0.56917 |
0a15d30deff3705b80cf6a59116a28fe06830966 | 1,002 | asm | Assembly | src/foundation/HispanoAO/FoundationValues.asm | Dunkansdk/AoW | 59dfc984c510f1e98fe46d221d01c4a36e4a527f | [
"Apache-2.0"
] | 2 | 2016-02-05T15:57:30.000Z | 2018-05-25T06:09:43.000Z | src/foundation/HispanoAO/FoundationValues.asm | Drexlor/AoW | 59dfc984c510f1e98fe46d221d01c4a36e4a527f | [
"Apache-2.0"
] | null | null | null | src/foundation/HispanoAO/FoundationValues.asm | Drexlor/AoW | 59dfc984c510f1e98fe46d221d01c4a36e4a527f | [
"Apache-2.0"
] | 1 | 2021-11-15T15:24:03.000Z | 2021-11-15T15:24:03.000Z | ;//////////////////////////////////////////////////////////////////////
;/// This file is subject to the terms and conditions defined in ///
;/// file 'LICENSE.txt', which is part of this source code package. ///
;//////////////////////////////////////////////////////////////////////
[SEGMENT .text]
;////////////////////////////////////////////////////
;///!< Default filename
;////////////////////////////////////////////////////
__szFilename DB "HispanoAO.exe", 0x00
;////////////////////////////////////////////////////
;///!< Packets header
;////////////////////////////////////////////////////
__szPacketCharacterStat DB "", 0x00
;////////////////////////////////////////////////////
;///!< Max interval of the speedhack
;////////////////////////////////////////////////////
SPEEDHACK_MAX_INTERVAL: EQU 0x00000010
;////////////////////////////////////////////////////
;///!< Cooldown of potions
;////////////////////////////////////////////////////
POTION_MAX_INTERVAL: EQU 0x00000000
| 38.538462 | 71 | 0.303393 |
97bb32e83c5785ac24d431229285383b58b91417 | 3,097 | asm | Assembly | GB/ShipShooter/ShipShooter.asm | MooseTheGoose/G32K | caa4f82375351d5f385e3a1fbdf17bfb922acd23 | [
"CC0-1.0"
] | null | null | null | GB/ShipShooter/ShipShooter.asm | MooseTheGoose/G32K | caa4f82375351d5f385e3a1fbdf17bfb922acd23 | [
"CC0-1.0"
] | null | null | null | GB/ShipShooter/ShipShooter.asm | MooseTheGoose/G32K | caa4f82375351d5f385e3a1fbdf17bfb922acd23 | [
"CC0-1.0"
] | null | null | null |
.include "../gbdefs.h"
.section .bss
# Background/Window palette will usually be 0, 3, 1, 2
# Enemies and ship get OBP0
# (Ship gets palette entry 2, enemies gets palette entry 1).
# OBP1 goes unused
.comm game_palettes, 3, 4
.set default_bg_palette, 0x63
.set bg_palette_idx, 0
.set default_entity_palette, 0xCC
.set entity_palette_idx, 1
.section .text
_start:
.macro vector_call hname=unexpected_handler
PUSH HL
LD HL, \hname
JP vector_handler
NOP
.endm
rst0:
vector_call
rst8:
vector_call
rst10:
vector_call
rst18:
vector_call
rst20:
vector_call
rst28:
vector_call
rst30:
vector_call
rst38:
vector_call
vblank_intr:
vector_call vblank_isr
lcd_intr:
vector_call
timer_ovflow:
vector_call
serial_link:
vector_call
joypad_press:
vector_call
vector_handler:
PUSH BC
PUSH DE
PUSH AF
LD BC, vector_cleanup
PUSH BC
JP (HL)
vector_cleanup:
POP AF
POP DE
POP BC
POP HL
RETI
vector_padding:
.skip 0x100 - (. - _start)
header:
NOP
NOP
JR gb_entry
nintendo_logo:
.skip 0x30
game_title:
.ascii "ASTEROIDS"
.skip 0xF - (. - game_title), 0
cgb_flag:
.byte 0
new_licensee_code:
.byte 0, 0
sgb_flag:
.byte 0
cartridge_type:
.byte 0
rom_size:
.byte 0
exram_size:
.byte 0
dest_code:
.byte 1
old_licensee_code:
.byte 0x33
mask_rom_version:
.byte 0
header_checksum:
.byte 0
global_checksum:
.byte 0, 0
gb_entry:
LD SP, 0xFFFC
EI
LD HL, IOHI|IELO
LD (HL), VBLANK_IE
LD L, LCDCLO
HALT
LD (HL), LCD_ENABLE|OBJ_ENABLE|OBJ_SIZE
LD HL, game_palettes
LD A, default_bg_palette
LD (HL+), A
LD A, default_entity_palette
LD (HL+), A
XOR A
LD (HL+), A
load_patterns:
LD HL, OBJVRAMLO
LD BC, ship_patterns_data
LD D, ship_patterns_tile_length
.load_ship_patterns_loop:
LD E, 8
.load_ship_tile_loop:
XOR A
LD (HL+), A
LD A, (BC)
INC BC
LD (HL+), A
DEC E
JR NZ, .load_ship_tile_loop
DEC D
JR NZ, .load_ship_patterns_loop
main_loop:
vblank_wait:
HALT
CALL initialize_ship
main_update:
LD HL, IOHI|BGPLO
LD BC, game_palettes
LD E, 3
.palette_copy:
LD A, (BC)
LD (HL+), A
INC C
DEC E
JR NZ, .palette_copy
JR main_loop
# This is a bit absurd, but this is
# just for example
initialize_ship:
LD HL, OAM
LD A, 0x80
LD (HL+), A
LD (HL+), A
LD A, upward_ship_tile_ofs
LD (HL+), A
XOR A
LD (HL+), A
LD A, 0x80
LD (HL+), A
LD A, 0x88
LD (HL+), A
LD A, upward_ship_tile_ofs+2
LD (HL+), A
XOR A
LD (HL), A
RET
unexpected_handler:
HALT
JR unexpected_handler
vblank_isr:
empty_isr:
RET
# Pattern data which can fit all in VRAM
# Ship patterns first, then asteroids, then text, then background.
patterns_data:
ship_patterns_data:
.byte 0, 0, 0, 0, 0, 0, 0, 0
.byte 0, 0, 0, 0, 0, 0, 0, 0
upward_ship_pattern:
.set upward_ship_tile_ofs, (. - patterns_data) / 8
.byte 0, 0, 0, 0, 0x1, 0x3, 0x7, 0xF
.byte 0x1F, 0x3F, 0x7F, 0x7F, 0, 0, 0, 0
.byte 0, 0, 0, 0, 0x80, 0xC0, 0xE0, 0xF0
.byte 0xF8, 0xFC, 0xFE, 0xFE, 0, 0, 0, 0
.set ship_patterns_tile_length, (. - ship_patterns_data) / 8
| 14.539906 | 66 | 0.679044 |
f475ffe206fd3a7ca63a3600691aceee59f47dac | 9,285 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2.log_1650_1796.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2.log_1650_1796.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2.log_1650_1796.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 %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1bb56, %rbx
nop
nop
add %rcx, %rcx
movb (%rbx), %r14b
nop
nop
nop
nop
cmp %r11, %r11
lea addresses_WC_ht+0x1ad86, %rax
cmp $33691, %r9
mov $0x6162636465666768, %rcx
movq %rcx, %xmm4
vmovups %ymm4, (%rax)
nop
nop
nop
nop
add $37577, %rax
lea addresses_WT_ht+0x7b36, %rsi
lea addresses_UC_ht+0xdda2, %rdi
add $40500, %r14
mov $37, %rcx
rep movsb
nop
cmp $16337, %rbx
lea addresses_A_ht+0x6dd5, %rax
nop
nop
nop
sub $13875, %r14
movb $0x61, (%rax)
inc %rcx
lea addresses_normal_ht+0x1d546, %rsi
lea addresses_D_ht+0x156a0, %rdi
nop
nop
nop
nop
dec %rax
mov $100, %rcx
rep movsb
nop
nop
sub %r11, %r11
lea addresses_UC_ht+0x8f16, %rdi
nop
nop
nop
cmp %rbx, %rbx
mov (%rdi), %r9d
nop
nop
nop
add %rdi, %rdi
lea addresses_normal_ht+0x5f2e, %rcx
nop
nop
sub $23660, %rsi
mov $0x6162636465666768, %rbx
movq %rbx, %xmm6
vmovups %ymm6, (%rcx)
nop
nop
nop
nop
nop
sub %r9, %r9
lea addresses_D_ht+0x17016, %rsi
lea addresses_A_ht+0x4f26, %rdi
nop
nop
nop
nop
nop
xor $7854, %rax
mov $30, %rcx
rep movsb
nop
nop
nop
nop
and $56226, %r9
lea addresses_UC_ht+0x17f2e, %rsi
nop
nop
nop
dec %rbx
mov (%rsi), %r14d
nop
add %rcx, %rcx
lea addresses_UC_ht+0xa1a6, %rax
nop
nop
nop
cmp %r9, %r9
movb (%rax), %cl
nop
nop
nop
nop
inc %rsi
lea addresses_WT_ht+0x1dc9e, %r11
clflush (%r11)
nop
sub %rcx, %rcx
and $0xffffffffffffffc0, %r11
movntdqa (%r11), %xmm2
vpextrq $1, %xmm2, %rdi
cmp %rax, %rax
lea addresses_UC_ht+0x5736, %r11
nop
nop
nop
nop
nop
add %r9, %r9
mov $0x6162636465666768, %rcx
movq %rcx, (%r11)
nop
nop
nop
nop
nop
cmp %rcx, %rcx
lea addresses_WT_ht+0x1e49a, %rsi
nop
sub $42177, %r14
movl $0x61626364, (%rsi)
nop
nop
nop
xor %r11, %r11
lea addresses_WT_ht+0x88ca, %rsi
lea addresses_A_ht+0x528d, %rdi
nop
nop
nop
nop
sub %rbx, %rbx
mov $80, %rcx
rep movsq
nop
nop
nop
inc %r11
lea addresses_WT_ht+0x12826, %rsi
add $39186, %rbx
mov $0x6162636465666768, %r14
movq %r14, %xmm4
movups %xmm4, (%rsi)
nop
nop
nop
and %rsi, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r15
push %r8
push %rbp
push %rdx
push %rsi
// Store
lea addresses_WC+0xc97f, %rsi
nop
xor $49414, %r15
mov $0x5152535455565758, %rdx
movq %rdx, (%rsi)
nop
add $23799, %r10
// Store
lea addresses_D+0x106aa, %rdx
xor %r14, %r14
movb $0x51, (%rdx)
and $56259, %rbp
// Store
lea addresses_WT+0x1f74e, %rdx
dec %r8
mov $0x5152535455565758, %rbp
movq %rbp, (%rdx)
nop
nop
add $16243, %r10
// Store
lea addresses_UC+0x1d426, %r14
nop
xor $19107, %rbp
movw $0x5152, (%r14)
nop
nop
sub %r10, %r10
// Store
lea addresses_WC+0x6426, %rbp
nop
nop
nop
nop
cmp $55931, %r10
mov $0x5152535455565758, %r14
movq %r14, %xmm3
movups %xmm3, (%rbp)
sub $7973, %r14
// Store
lea addresses_normal+0x1cfae, %r8
nop
cmp %rdx, %rdx
movl $0x51525354, (%r8)
nop
nop
nop
nop
sub $24116, %r10
// Faulty Load
lea addresses_WC+0x6426, %r8
nop
nop
nop
cmp %r14, %r14
vmovaps (%r8), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $0, %xmm2, %r10
lea oracles, %r8
and $0xff, %r10
shlq $12, %r10
mov (%r8,%r10,1), %r10
pop %rsi
pop %rdx
pop %rbp
pop %r8
pop %r15
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 1, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': True, 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': True, 'NT': True, 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'00': 1650}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 31.368243 | 2,999 | 0.652989 |
175e02ea80ef8797ea21c21cadef01e19af19a3a | 4,458 | asm | Assembly | Project4/Sandbox/reset.asm | orrinjelo/virtual-machine | 2236db81b5e5e6b99161dc8c5aa5d5f3c9ca0a01 | [
"MIT"
] | null | null | null | Project4/Sandbox/reset.asm | orrinjelo/virtual-machine | 2236db81b5e5e6b99161dc8c5aa5d5f3c9ca0a01 | [
"MIT"
] | null | null | null | Project4/Sandbox/reset.asm | orrinjelo/virtual-machine | 2236db81b5e5e6b99161dc8c5aa5d5f3c9ca0a01 | [
"MIT"
] | null | null | null | ; GLOBALS ===========================================================
SIZE .INT 7
cnt .INT 0
tenth .INT 0
c .BYT 0
.BYT 0
.BYT 0
.BYT 0
.BYT 0
.BYT 0
.BYT 0
data .INT 0
flag .INT 0
opdv .INT 0
; Other useful values
ZERO .INT 0
I .INT 1
II .INT 2
III .INT 3
IV .INT 4
V .INT 5
VI .INT 6
VII .INT 7
VIII .INT 8
IX .INT 9
cZERO .BYT 48
cI .BYT 49
cII .BYT 50
cIII .BYT 51
cIV .BYT 52
cV .BYT 53
cVI .BYT 54
cVII .BYT 55
cVIII .BYT 56
cIX .BYT 57
opd_err_msg .BYT 32
.BYT 'i'
.BYT 's'
.BYT 32
.BYT 'n'
.BYT 'o'
.BYT 't'
.BYT 32
A .BYT 'a'
.BYT 32
.BYT 'n'
.BYT 'u'
.BYT 'm'
.BYT 'b'
.BYT 'e'
.BYT 'r'
.BYT 10 ; /n
.BYT 3 ; END OF TEXT
PLUS .BYT '+'
SPC .BYT 32
EOT .BYT 3
JMP START
; Reset c to all 0's
; Assign values to data, opdv, cnt, and flag
reset MOV R6 FP
ADI R6 -12 ; Access w
LDR R0 (R6)
ADI R6 -4 ; x
LDR R1 (R6)
ADI R6 -4 ; y
LDR R2 (R6)
ADI R6 -4 ; z
LDR R4 (R6)
; === End variable initiation
LDR R6 ZERO
LDA R5 c
for0 LDR R7 SIZE
CMP R7 R6
BRZ R7 ef0
LDR R7 ZERO
STB R7 (R5)
ADI R6 1
ADI R5 1
JMP for0
ef0 LDR R5 ZERO
STR R5 data
STR R5 opdv
STR R5 cnt
STR R5 flag
; === Begin return call ===============================================
MOV SP FP ; Test for underflow
MOV R5 SP
CMP R6 SB
BGT R6 UNDERFLOW
; === Store Ret value
LDR R7 ZERO ; Return value
; === Return to last location
MOV R6 FP ; Return address pointed to by FP
ADI R6 -4
LDR R6 (R6)
JMR R6
START LDB R3 A
; === Begin Function call ============================================
MOV R7 SP ; Test for overflow
ADI R7 -8 ; Adjust for Rtn address & PFP
ADI R7 -24 ; Registers
ADI R7 -20 ; Vars
CMP R7 SL
BLT R7 OVERFLOW
; === Store Ret and PFP ==============================================
MOV R7 FP ; Save FP in R1, this will be PFP
MOV FP SP ; Point at current activation record
ADI SP -4 ; Adjust SP for ret address
MOV R6 PC ; PC incremented by 1 instruction
ADI R6 360 ; Compute return address
STR R6 (SP) ; Push return address
ADI SP -4 ; Adjust for PFP
STR R7 (SP) ; Push PFP to top of stack
; === Store registers ================================================
ADI SP -4 ; R0
STR R0 (SP)
ADI SP -4 ; R1
STR R1 (SP)
ADI SP -4 ; R2
STR R2 (SP)
ADI SP -4 ; R3
STR R3 (SP)
ADI SP -4 ; R4
STR R4 (SP)
ADI SP -4 ; R5
STR R5 (SP)
; === Store variables ================================================
ADI SP -4
LDR R6 I
STR R6 (SP) ; w
ADI SP -4
LDR R6 ZERO
STR R6 (SP) ; x
ADI SP -4
LDR R6 ZERO
STR R6 (SP) ; y
ADI SP -4
LDR R6 ZERO
STR R6 (SP) ; z
; === Function call ==================================================
JMP reset
; === Restore the registers
MOV R6 FP
ADI R6 -12
LDR R0 (R6)
ADI R6 -4
LDR R1 (R6)
ADI R6 -4
LDR R2 (R6)
ADI R6 -4
LDR R3 (R6)
ADI R6 -4
LDR R4 (R6)
ADI R6 -4
LDR R5 (R6)
ADI R6 -4
; === Roll back SP and FP ============================================
MOV SP FP
ADI FP -8
LDR FP (FP)
; === End function call ==============================================
TRP 3
TRP 0
| 25.474286 | 71 | 0.352849 |
3334aafe64db20e74282bd4ccf4387c171e7b358 | 822 | asm | Assembly | programs/oeis/025/A025699.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/025/A025699.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/025/A025699.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A025699: Index of 3^n within sequence of numbers of form 3^i*8^j.
; 1,2,4,6,9,12,16,20,25,30,36,42,49,56,64,72,81,90,100,111,122,134,146,159,172,186,200,215,230,246,262,279,296,314,332,351,371,391,412,433,455,477,500,523,547,571,596,621,647,673,700,727,755,784,813,843,873,904,935
mov $3,$0
add $3,1
mov $6,$0
lpb $3
mov $0,$6
sub $3,1
sub $0,$3
mov $8,$0
add $8,1
mov $11,$0
mov $12,0
lpb $8
mov $0,$11
sub $8,1
sub $0,$8
mov $2,$0
mov $0,69
sub $2,2
mod $2,17
mov $7,1
mov $10,$2
add $10,1
sub $0,$10
mov $9,0
mov $10,2
lpb $0
sub $0,1
gcd $0,2
add $9,$7
mul $0,$9
mov $5,$10
add $5,2
lpe
mov $2,0
sub $5,$0
add $2,$5
mov $4,$2
sub $4,2
add $12,$4
lpe
add $1,$12
lpe
mov $0,$1
| 17.489362 | 214 | 0.512165 |
e044d26ee54dfd75da9ee93d73827f0d2ca89213 | 7,620 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1521.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1521.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1521.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 %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x12e21, %rdx
nop
nop
nop
sub %r8, %r8
movb (%rdx), %bl
xor %r12, %r12
lea addresses_D_ht+0x10e21, %rbx
nop
nop
nop
nop
sub $37406, %rdi
mov $0x6162636465666768, %r11
movq %r11, (%rbx)
nop
nop
nop
nop
nop
dec %rbx
lea addresses_WC_ht+0xc677, %r8
nop
nop
sub %r11, %r11
mov (%r8), %di
nop
nop
nop
nop
add $38893, %r8
lea addresses_WC_ht+0x1d189, %rsi
lea addresses_UC_ht+0xf7a1, %rdi
clflush (%rdi)
nop
nop
nop
dec %r8
mov $13, %rcx
rep movsw
inc %rbx
lea addresses_UC_ht+0xa021, %rsi
lea addresses_UC_ht+0x87d9, %rdi
nop
nop
nop
nop
sub $8838, %r8
mov $107, %rcx
rep movsl
nop
nop
nop
nop
nop
and $33009, %r8
lea addresses_A_ht+0x13f8e, %rsi
lea addresses_D_ht+0x11365, %rdi
nop
nop
nop
nop
add $15111, %rbx
mov $45, %rcx
rep movsl
and $17272, %r8
lea addresses_WC_ht+0x15207, %rsi
lea addresses_WC_ht+0x5ca9, %rdi
and %rdx, %rdx
mov $82, %rcx
rep movsq
nop
nop
nop
and %rdx, %rdx
lea addresses_WT_ht+0x8021, %r12
nop
nop
add $48791, %rdi
movw $0x6162, (%r12)
nop
nop
cmp %r12, %r12
lea addresses_D_ht+0xf409, %r11
nop
nop
nop
nop
nop
cmp $31607, %rsi
vmovups (%r11), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %rbx
nop
nop
nop
xor %rbx, %rbx
lea addresses_A_ht+0xc821, %rbx
and %rdx, %rdx
movl $0x61626364, (%rbx)
nop
nop
add $55844, %rsi
lea addresses_WC_ht+0xf821, %rsi
lea addresses_D_ht+0x13b19, %rdi
nop
nop
mfence
mov $86, %rcx
rep movsl
nop
nop
nop
nop
nop
inc %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r15
push %r9
push %rbp
push %rbx
// Store
lea addresses_US+0x190a1, %r9
nop
and %r11, %r11
mov $0x5152535455565758, %rbx
movq %rbx, %xmm2
movups %xmm2, (%r9)
nop
nop
xor %rbp, %rbp
// Load
lea addresses_normal+0x18821, %r11
add %r13, %r13
movb (%r11), %r9b
nop
nop
nop
nop
nop
cmp %rbx, %rbx
// Store
lea addresses_UC+0x3ad9, %rbp
nop
nop
nop
nop
inc %r10
mov $0x5152535455565758, %r13
movq %r13, %xmm0
movups %xmm0, (%rbp)
nop
nop
nop
cmp $59712, %r9
// Faulty Load
lea addresses_WC+0x16021, %r13
nop
nop
nop
nop
nop
sub $50967, %r15
vmovups (%r13), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %r9
lea oracles, %r13
and $0xff, %r9
shlq $12, %r9
mov (%r13,%r9,1), %r9
pop %rbx
pop %rbp
pop %r9
pop %r15
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_WC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'size': 1, 'NT': True, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': True, 'AVXalign': False, 'congruent': 8}}
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 3}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 0}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 1}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 2}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_D_ht', '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
*/
| 32.844828 | 2,999 | 0.656955 |
e5c249fce31434dfa820405b27f9b4984d7e0cb0 | 1,436 | asm | Assembly | programs/oeis/324/A324129.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/324/A324129.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/324/A324129.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A324129: a(n) = n*Fibonacci(n) + ((-1)^n + 1)/2.
; 1,1,3,6,13,25,49,91,169,306,551,979,1729,3029,5279,9150,15793,27149,46513,79439,135301,229866,389643,659111,1112833,1875625,3156219,5303286,8898709,14912641,24961201,41734339,69705889,116311074,193898159,322961275,537492673,893839229,1485350423,2466593454,4093366201,6788785781,11252400433,18640260791,30861984253,51070642650,84470347539,139647108431,230761294849,381158360401,629313451251,1038615564774,1713466565149,2825763432169,4658448848689,7677112434475,12647680288153,20829811881234,34294630332983,56446599536419,92880525355201,152788577699621,251269851348623,413120630150046,679053430894273,1115899211541725,1833340742329009,3011353204261151,4945195296873589,8119163101808586,13327474349639451,21872368003079159,35888688855307009,58875633912605689,96567746324720619,158361380848353750,259650551340909733,425651356968126289,697662757255734193,1143314387949421459,1873338267877414801,3069014052224656386,5027074839172150463,8233172806864706251,13482054080574835393,22074117237445419725,36136868102564111879,59150572474559266446,96807724496216969929,158418168024419562821,259206047493373450801,424064241544173258119,693690470036663871469,1134614918606334536634,1855585776667612977699,3034341290324059490975,4961348050066399014913,8111250918515297028769,13259581529781261112803,21673376587620961733574
mov $2,$0
seq $0,45925 ; a(n) = n*Fibonacci(n).
gcd $2,2
add $0,$2
sub $0,1
| 159.555556 | 1,307 | 0.885794 |
e624140581f97c151405b1ce3d03b219fba8f895 | 1,795 | asm | Assembly | programs/oeis/081/A081407.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/081/A081407.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/081/A081407.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A081407: 4th-order non-linear ("factorial") recursion: a(0)=a(1)=a(2)=a(3)=1, a(n) = (n+1)*a(n-4).
; 1,1,1,1,5,6,7,8,45,60,77,96,585,840,1155,1536,9945,15120,21945,30720,208845,332640,504735,737280,5221125,8648640,13627845,20643840,151412625,259459200,422463195,660602880,4996616625,8821612800,14786211825,23781703680,184874815125,335221286400,576662261175,951268147200,7579867420125,14079294028800,24796477230525,41855798476800,341094033905625,647647525324800,1165434429834675,2009078326886400,16713607661375625,32382376266240000,59437155921568425,104472072998092800,885821206052908125,1748648318376960000,3269043575686263375,5850436087893196800,50491808745015763125,101421602465863680000,192873570965489539125,351026165273591808000,3080000333445961550625,6288139352883548160000,12151034970825840964875,22465674577509875712000,200200021673987500790625,415017197290314178560000,814119343045331344646625,1527665871270671548416000,13813801495505137554553125,29051203810321992499200000,57802473356218525469910375,109991942731488351485952000,1008407509171875041482378125,2149789081963827444940800000,4335185501716389410243278125,8359387647593114712932352000,77647378206234378194143115625,167683548393178540705382400000,342479654635594763409218971875,668751011807449177034588160000,6289437634704984633725592365625,13750050968240640337841356800000,28425811334754365362965174665625,56175084991825730870905405440000,534602198949923693866675351078125,1182504383268695069054356684800000,2473045586123629786577970195909375,4943407479280664316639675678720000,47579595706543208754134106245953125,106425394494182556214892101632000000,225047148337250310578595287827753125,454793488093821117130850162442240000
add $0,1
mov $2,100
lpb $0
mov $1,$2
mul $2,$0
sub $0,1
trn $0,3
lpe
div $1,100
mov $0,$1
| 128.214286 | 1,594 | 0.896936 |
c9f8ff936d3023bdaa4b7e54c01a1a59c65bb77d | 301 | asm | Assembly | libsrc/games/pc88/bit_open.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/games/pc88/bit_open.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/games/pc88/bit_open.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ; $Id: bit_open.asm $
;
; NEC PC-8801 - 1 bit sound functions
;
; void bit_open();
;
; Stefano Bodrato - 2018
;
SECTION code_clib
PUBLIC bit_open
PUBLIC _bit_open
EXTERN __snd_tick
.bit_open
._bit_open
ld a,($E6C1)
ld (__snd_tick),a
ret
| 15.05 | 37 | 0.568106 |
b2153c74ab82231ddb50ae09e0acad6bc3b63b4e | 4,173 | asm | Assembly | DeliriOS_64bits/common_code/init_ioapic.asm | Izikiel/intel_multicore | 10ab11fa901f555608a75f9256ea7d14f8aab84d | [
"MIT"
] | 3 | 2015-12-16T06:17:14.000Z | 2019-09-01T08:21:21.000Z | DeliriOS_64bits/common_code/init_ioapic.asm | Izikiel/intel_multicore | 10ab11fa901f555608a75f9256ea7d14f8aab84d | [
"MIT"
] | null | null | null | DeliriOS_64bits/common_code/init_ioapic.asm | Izikiel/intel_multicore | 10ab11fa901f555608a75f9256ea7d14f8aab84d | [
"MIT"
] | null | null | null | ; =============================================================================
; Pure64 -- a 64-bit OS loader written in Assembly for x86-64 systems
; Copyright (C) 2008-2012 Return Infinity -- see LICENSE.TXT
;
; INIT IO-APIC
; =============================================================================
global init_ioapic
os_IOAPICAddress: dq 0x0
init_ioapic:
push rbp
mov rbp, rsp
mov [os_IOAPICAddress], rdi
mov al, 0x70 ; IMCR access
out 0x22, al
mov al, 0x01 ; set bit 1 for SMP mode
out 0x23, al
xor eax, eax
mov rcx, 1 ; Register 1 - IOAPIC VERSION REGISTER
call ioapic_reg_read
shr eax, 16 ; Extract bytes 16-23 (Maximum Redirection Entry)
and eax, 0xFF ; Clear bits 16-31
add eax, 1
mov rcx, rax
xor rax, rax
mov eax, dword [rsi+0x20] ; Grab the BSP APIC ID; stored in bits 31:24
shr rax, 24 ; AL now holds the BSP CPU's APIC ID
shl rax, 56
bts rax, 16 ; Interrupt Mask Enabled
initentry: ; Initialize all entries 1:1
dec rcx
call ioapic_entry_write
cmp rcx, 0
jne initentry
; Enable the Keyboard
mov rcx, 1 ; IRQ value
mov rax, 0x21 ; Interrupt value
call ioapic_entry_write
; Enable the RTC
mov rcx, 8 ; IRQ value
mov rax, 0x28 ; Interrupt value
call ioapic_entry_write
; Set the periodic flag in the RTC
mov al, 0x0B ; Status Register B
out 0x70, al ; Select the address
in al, 0x71 ; Read the current settings
push rax
mov al, 0x0B ; Status Register B
out 0x70, al ; Select the address
pop rax
bts ax, 6 ; Set Periodic(6)
out 0x71, al ; Write the new settings
sti ; Enable interrupts
; Acknowledge the RTC
mov al, 0x0C ; Status Register C
out 0x70, al ; Select the address
in al, 0x71 ; Read the current settings
pop rbp
ret
; -----------------------------------------------------------------------------
; ioapic_reg_write -- Write to an I/O APIC register
; IN: EAX = Value to write
; ECX = Index of register
; OUT: Nothing. All registers preserved
ioapic_reg_write:
push rsi
mov rsi, [os_IOAPICAddress]
mov dword [rsi], ecx ; Write index to register selector
mov dword [rsi + 0x10], eax ; Write data to window register
pop rsi
ret
; -----------------------------------------------------------------------------
; -----------------------------------------------------------------------------
; ioapic_reg_read -- Read from an I/O APIC register
; IN: ECX = Index of register
; OUT: EAX = Value of register
; All other registers preserved
ioapic_reg_read:
push rsi
mov rsi, [os_IOAPICAddress]
mov dword [rsi], ecx ; Write index to register selector
mov eax, dword [rsi + 0x10] ; Read data from window register
pop rsi
ret
; -----------------------------------------------------------------------------
; -----------------------------------------------------------------------------
; ioapic_entry_write -- Write to an I/O APIC entry in the redirection table
; IN: RAX = Data to write to entry
; ECX = Index of the entry
; OUT: Nothing. All registers preserved
ioapic_entry_write:
push rax
push rcx
; Calculate index for lower DWORD
shl rcx, 1 ; Quick multiply by 2
add rcx, 0x10 ; IO Redirection tables start at 0x10
; Write lower DWORD
call ioapic_reg_write
; Write higher DWORD
shr rax, 32
add rcx, 1
call ioapic_reg_write
pop rcx
pop rax
ret
; -----------------------------------------------------------------------------
; -----------------------------------------------------------------------------
; ioapic_entry_read -- Read an I/O APIC entry from the redirection table
; IN: ECX = Index of the entry
; OUT: RAX = Data that was read
; All other registers preserved
ioapic_entry_read:
push rbx
push rcx
; Calculate index for lower DWORD
shl rcx, 1 ; Quick multiply by 2
add rcx, 0x10 ; IO Redirection tables start at 0x10
; Read lower DWORD
call ioapic_reg_read
mov rbx, rax
; Read higher DWORD
add rcx, 1
call ioapic_reg_read
; Combine
shr rax, 32
or rbx, rax
xchg rbx, rax
pop rcx
pop rbx
ret
; -----------------------------------------------------------------------------
; =============================================================================
; EOF
| 25.445122 | 79 | 0.557153 |
b04659823f75759ca85907a5a6b39a2fbfbef4bc | 589 | asm | Assembly | oeis/299/A299198.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/299/A299198.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/299/A299198.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A299198: a(n) = n^4/6 - 2*n^3/3 - n^2/6 + 5*n/3 + 1.
; 2,1,0,5,26,77,176,345,610,1001,1552,2301,3290,4565,6176,8177,10626,13585,17120,21301,26202,31901,38480,46025,54626,64377,75376,87725,101530,116901,133952,152801,173570,196385,221376,248677,278426,310765,345840,383801,424802,469001,516560,567645,622426,681077,743776,810705,882050,958001,1038752,1124501,1215450,1311805,1413776,1521577,1635426,1755545,1882160,2015501,2155802,2303301,2458240,2620865,2791426,2970177,3157376,3353285,3558170,3772301,3995952,4229401,4472930,4726825,4991376,5266877
pow $0,2
sub $0,3
bin $0,2
div $0,3
| 73.625 | 496 | 0.78438 |
3ada18a2caf7e901750bab1a68e90e76b35291f0 | 110,334 | asm | Assembly | reports/14_captures_1.exp1.asm | arnaudroger/re2j-benchmark | ecfb2d6975948a1fbb53ccf101b285655b850058 | [
"MIT"
] | null | null | null | reports/14_captures_1.exp1.asm | arnaudroger/re2j-benchmark | ecfb2d6975948a1fbb53ccf101b285655b850058 | [
"MIT"
] | null | null | null | reports/14_captures_1.exp1.asm | arnaudroger/re2j-benchmark | ecfb2d6975948a1fbb53ccf101b285655b850058 | [
"MIT"
] | null | null | null | # JMH version: 1.19
# VM version: JDK 1.8.0_131, VM 25.131-b11
# VM invoker: /usr/lib/jvm/java-8-oracle/jre/bin/java
# VM options: <none>
# Warmup: 20 iterations, 1 s each
# Measurement: 20 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: com.github.arnaudroger.re2j.Re2jFindRegex.testExp1
# Run progress: 0.00% complete, ETA 00:00:40
# Fork: 1 of 1
# Preparing profilers: LinuxPerfAsmProfiler
# Profilers consume stdout and stderr from target VM, use -v EXTRA to copy to console
# Warmup Iteration 1: 10354.371 ops/s
# Warmup Iteration 2: 22221.284 ops/s
# Warmup Iteration 3: 22228.872 ops/s
# Warmup Iteration 4: 22231.775 ops/s
# Warmup Iteration 5: 22254.877 ops/s
# Warmup Iteration 6: 22220.622 ops/s
# Warmup Iteration 7: 22222.597 ops/s
# Warmup Iteration 8: 22289.636 ops/s
# Warmup Iteration 9: 22309.060 ops/s
# Warmup Iteration 10: 22311.315 ops/s
# Warmup Iteration 11: 22306.973 ops/s
# Warmup Iteration 12: 22203.725 ops/s
# Warmup Iteration 13: 22309.664 ops/s
# Warmup Iteration 14: 22184.138 ops/s
# Warmup Iteration 15: 21284.180 ops/s
# Warmup Iteration 16: 21284.535 ops/s
# Warmup Iteration 17: 22348.663 ops/s
# Warmup Iteration 18: 22350.927 ops/s
# Warmup Iteration 19: 22350.904 ops/s
# Warmup Iteration 20: 17754.789 ops/s
Iteration 1: 22356.336 ops/s
Iteration 2: 22358.576 ops/s
Iteration 3: 22370.510 ops/s
Iteration 4: 22370.800 ops/s
Iteration 5: 22372.747 ops/s
Iteration 6: 22376.588 ops/s
Iteration 7: 22374.753 ops/s
Iteration 8: 22374.282 ops/s
Iteration 9: 22371.748 ops/s
Iteration 10: 22387.797 ops/s
Iteration 11: 21825.081 ops/s
Iteration 12: 21827.372 ops/s
Iteration 13: 21828.396 ops/s
Iteration 14: 22451.683 ops/s
Iteration 15: 22451.005 ops/s
Iteration 16: 22449.155 ops/s
Iteration 17: 22429.704 ops/s
Iteration 18: 22360.314 ops/s
Iteration 19: 22354.049 ops/s
Iteration 20: 22351.624 ops/s
# Processing profiler results: LinuxPerfAsmProfiler
Result "com.github.arnaudroger.re2j.Re2jFindRegex.testExp1":
22302.126 ±(99.9%) 180.073 ops/s [Average]
(min, avg, max) = (21825.081, 22302.126, 22451.683), stdev = 207.372
CI (99.9%): [22122.053, 22482.199] (assumes normal distribution)
Secondary result "com.github.arnaudroger.re2j.Re2jFindRegex.testExp1:·asm":
PrintAssembly processed: 195245 total address lines.
Perf output processed (skipped 23.377 seconds):
Column 1: cycles (20345 events)
Column 2: instructions (20339 events)
Hottest code regions (>10.00% "cycles" events):
....[Hottest Region 1]..............................................................................
C2, level 4, com.google.re2j.Machine::step, version 493 (895 bytes)
0x00007fd70921fb74: jae 0x00007fd709220365
0x00007fd70921fb7a: mov %rdx,%r10
0x00007fd70921fb7d: mov %rcx,%r8
0x00007fd70921fb80: shr $0x3,%r8
0x00007fd70921fb84: mov %r8d,(%rdx)
0x00007fd70921fb87: shr $0x9,%r10
0x00007fd70921fb8b: movabs $0x7fd719e4b000,%r8
0x00007fd70921fb95: mov %r12b,(%r8,%r10,1) ;*synchronization entry
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.02% 0.01% 0x00007fd70921fb99: mov 0x10(%rsp),%rax
0.21% 0.08% 0x00007fd70921fb9e: mov 0xac(%rsp),%r13d
0.10% 0.08% 0x00007fd70921fba6: mov 0xa4(%rsp),%r10d ;*aload
; - com.google.re2j.Machine::step@211 (line 316)
2.48% 2.98% ↗ 0x00007fd70921fbae: inc %r10d ;*iinc
│ ; - com.google.re2j.Machine::step@222 (line 283)
0.00% 0.01% │ 0x00007fd70921fbb1: cmp %r13d,%r10d
│ 0x00007fd70921fbb4: jge 0x00007fd70922002b ;*iload
│ ; - com.google.re2j.Machine::step@31 (line 286)
0.35% 0.57% │ 0x00007fd70921fbba: mov 0x20(%rax),%r8d ;*getfield denseThreadsInstructions
│ ; - com.google.re2j.Machine::step@86 (line 296)
0.38% 0.49% │ 0x00007fd70921fbbe: mov 0xc(%r12,%r8,8),%ecx ; implicit exception: dispatches to 0x00007fd709220fb9
2.09% 2.21% │ 0x00007fd70921fbc3: cmp %ecx,%r10d
│ 0x00007fd70921fbc6: jae 0x00007fd709220169
0.14% 0.07% │ 0x00007fd70921fbcc: shl $0x3,%r8
0.36% 0.41% │ 0x00007fd70921fbd0: mov 0x10(%r8,%r10,4),%r9d ;*aaload
│ ; - com.google.re2j.Machine::step@91 (line 296)
0.38% 0.38% │ 0x00007fd70921fbd5: mov 0xc(%r12,%r9,8),%ebp ;*getfield op
│ ; - com.google.re2j.Machine::step@96 (line 298)
│ ; implicit exception: dispatches to 0x00007fd709220fcd
3.21% 3.54% │ 0x00007fd70921fbda: cmp $0x6,%ebp
│ 0x00007fd70921fbdd: je 0x00007fd70922019d ;*if_icmpne
│ ; - com.google.re2j.Machine::step@101 (line 298)
1.08% 1.36% │ 0x00007fd70921fbe3: cmp $0xa,%ebp
│ 0x00007fd70921fbe6: jne 0x00007fd70921ffbb ;*if_icmpne
│ ; - com.google.re2j.Inst::matchRune@6 (line 90)
│ ; - com.google.re2j.Machine::step@183 (line 313)
0.22% 0.24% │ 0x00007fd70921fbec: mov 0x2c(%r12,%r9,8),%r9d ;*getfield outInst
│ ; - com.google.re2j.Machine::step@191 (line 314)
0.25% 0.16% │ 0x00007fd70921fbf1: mov 0x8(%r12,%r9,8),%ecx ; implicit exception: dispatches to 0x00007fd709220fdd
3.36% 3.47% │ 0x00007fd70921fbf6: lea (%r12,%r9,8),%r8
0.01% 0.01% │ 0x00007fd70921fbfa: cmp $0xf8019843,%ecx ; {metadata('com/google/re2j/Inst$Alt2Inst')}
0.70% 0.80% │ 0x00007fd70921fc00: jne 0x00007fd70922005b ;*invokevirtual add
│ ; - com.google.re2j.Machine::step@206 (line 314)
0.69% 0.58% │ 0x00007fd70921fc06: mov 0x18(%r8),%edx ;*getfield pc
│ ; - com.google.re2j.Inst$Alt2Inst::add@2 (line 175)
│ ; - com.google.re2j.Machine::step@-1 (line 280)
0.00% 0.01% │ 0x00007fd70921fc0a: mov 0x10(%r11),%r9 ;*getfield pcsl
│ ; - com.google.re2j.Machine$Queue::contains@7 (line 42)
│ ; - com.google.re2j.Inst$Alt2Inst::add@5 (line 175)
│ ; - com.google.re2j.Machine::step@-1 (line 280)
│ ; implicit exception: dispatches to 0x00007fd709220ff1
0.03% 0.06% │ 0x00007fd70921fc0e: cmp $0x40,%edx
│ 0x00007fd70921fc11: jg 0x00007fd7092204c1 ;*if_icmpgt
│ ; - com.google.re2j.Machine$Queue::contains@3 (line 41)
│ ; - com.google.re2j.Inst$Alt2Inst::add@5 (line 175)
│ ; - com.google.re2j.Machine::step@-1 (line 280)
0.14% 0.10% │ 0x00007fd70921fc17: mov $0x1,%edi
0.60% 0.45% │ 0x00007fd70921fc1c: mov %edx,%ecx
│ 0x00007fd70921fc1e: shl %cl,%rdi ;*lshl
│ ; - com.google.re2j.Machine$Queue::contains@12 (line 42)
│ ; - com.google.re2j.Inst$Alt2Inst::add@5 (line 175)
│ ; - com.google.re2j.Machine::step@-1 (line 280)
0.83% 0.85% │ 0x00007fd70921fc21: mov %r9,%rcx
0.01% 0.02% │ 0x00007fd70921fc24: and %rdi,%rcx
0.02% │ 0x00007fd70921fc27: test %rcx,%rcx
╰ 0x00007fd70921fc2a: jne 0x00007fd70921fbae ;*ifeq
; - com.google.re2j.Machine$Queue::contains@16 (line 42)
; - com.google.re2j.Inst$Alt2Inst::add@5 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.29% 0.29% 0x00007fd70921fc30: cmp $0x40,%edx
0x00007fd70921fc33: jge 0x00007fd70922051d ;*if_icmpge
; - com.google.re2j.Machine$Queue::add@3 (line 51)
; - com.google.re2j.Inst$Alt2Inst::add@19 (line 178)
; - com.google.re2j.Machine::step@-1 (line 280)
0.37% 0.36% 0x00007fd70921fc39: mov %r12b,0x18(%r11) ;*putfield empty
; - com.google.re2j.Machine$Queue::add@33 (line 56)
; - com.google.re2j.Inst$Alt2Inst::add@19 (line 178)
; - com.google.re2j.Machine::step@-1 (line 280)
0.01% 0x00007fd70921fc3d: mov 0x2c(%r8),%ebp ;*getfield outInst
; - com.google.re2j.Inst$Alt2Inst::add@23 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0.01% 0.05% 0x00007fd70921fc41: or %r9,%rdi ;*lor ; - com.google.re2j.Machine$Queue::add@14 (line 52)
; - com.google.re2j.Inst$Alt2Inst::add@19 (line 178)
; - com.google.re2j.Machine::step@-1 (line 280)
0.23% 0.31% 0x00007fd70921fc44: mov %rdi,0x10(%r11) ;*putfield pcsl
; - com.google.re2j.Machine$Queue::add@15 (line 52)
; - com.google.re2j.Inst$Alt2Inst::add@19 (line 178)
; - com.google.re2j.Machine::step@-1 (line 280)
0.46% 0.39% 0x00007fd70921fc48: mov 0x8(%r12,%rbp,8),%ecx ; implicit exception: dispatches to 0x00007fd709221005
0.63% 0.65% 0x00007fd70921fc4d: cmp $0xf8019909,%ecx ; {metadata('com/google/re2j/Inst$MatchInst')}
0x00007fd70921fc53: jne 0x00007fd709220259
0.48% 0.43% 0x00007fd70921fc59: lea (%r12,%rbp,8),%r9 ;*invokevirtual add
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0.00% 0.00% 0x00007fd70921fc5d: mov 0x18(%r9),%ecx ;*getfield pc
; - com.google.re2j.Inst$MatchInst::add@2 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0.43% 0.32% 0x00007fd70921fc61: cmp $0x40,%ecx
0x00007fd70921fc64: jg 0x00007fd709220579 ;*if_icmpgt
; - com.google.re2j.Machine$Queue::contains@3 (line 41)
; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0.38% 0.23% 0x00007fd70921fc6a: mov $0x1,%ebx
0.10% 0.10% 0x00007fd70921fc6f: shl %cl,%rbx ;*lshl
; - com.google.re2j.Machine$Queue::contains@12 (line 42)
; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
1.13% 0.73% 0x00007fd70921fc72: mov %rdi,%rdx
0.08% 0.06% 0x00007fd70921fc75: and %rbx,%rdx ;*land
; - com.google.re2j.Machine$Queue::contains@13 (line 42)
; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0x00007fd70921fc78: test %rdx,%rdx
0x00007fd70921fc7b: jne 0x00007fd709220116 ;*ifeq
; - com.google.re2j.Machine$Queue::contains@16 (line 42)
; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0.47% 0.37% 0x00007fd70921fc81: xor %ebp,%ebp ;*ireturn
; - com.google.re2j.Machine$Queue::contains@24 (line 42)
; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0.06% 0.04% 0x00007fd70921fc83: test %rdx,%rdx
0x00007fd70921fc86: jne 0x00007fd7092205d9 ;*ifeq
; - com.google.re2j.Inst$MatchInst::add@8 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0.32% 0.29% 0x00007fd70921fc8c: cmp $0x40,%ecx
0x00007fd70921fc8f: jge 0x00007fd709220635 ;*if_icmpge
; - com.google.re2j.Machine$Queue::add@3 (line 51)
; - com.google.re2j.Inst$MatchInst::add@19 (line 147)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0.00% 0.01% 0x00007fd70921fc95: or %rbx,%rdi ;*lor ; - com.google.re2j.Machine$Queue::add@14 (line 52)
; - com.google.re2j.Inst$MatchInst::add@19 (line 147)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0.24% 0.13% 0x00007fd70921fc98: mov %rdi,0x10(%r11) ;*putfield pcsl
; - com.google.re2j.Machine$Queue::add@15 (line 52)
; - com.google.re2j.Inst$MatchInst::add@19 (line 147)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0.08% 0.08% 0x00007fd70921fc9c: mov 0x20(%r11),%ebx ;*getfield denseThreadsInstructions
; - com.google.re2j.Machine$Queue::addThread@1 (line 66)
; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0.35% 0.37% 0x00007fd70921fca0: mov 0xc(%r11),%ecx ;*getfield size
; - com.google.re2j.Machine$Queue::addThread@6 (line 66)
; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0.01% 0x00007fd70921fca4: mov %ecx,%edx
0.30% 0.02% 0x00007fd70921fca6: inc %edx ;*iadd
; - com.google.re2j.Machine$Queue::addThread@11 (line 66)
; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0.13% 0.08% 0x00007fd70921fca8: mov %edx,0xc(%r11) ;*putfield size
; - com.google.re2j.Machine$Queue::addThread@12 (line 66)
; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0.30% 0.25% 0x00007fd70921fcac: mov 0xc(%r12,%rbx,8),%r14d ; implicit exception: dispatches to 0x00007fd709221019
0.01% 0x00007fd70921fcb1: cmp %r14d,%ecx
0x00007fd70921fcb4: jae 0x00007fd7092201fd
0.29% 0.01% 0x00007fd70921fcba: mov 0x8(%r12,%rbx,8),%esi
0.09% 0.03% 0x00007fd70921fcbf: cmp $0xf8019807,%esi ; {metadata('com/google/re2j/Inst'[])}
0x00007fd70921fcc5: jne 0x00007fd7092202b5 ;*aastore
; - com.google.re2j.Machine$Queue::addThread@16 (line 66)
; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0.38% 0.24% 0x00007fd70921fccb: mov 0x34(%r8),%r8d ;*getfield inst2
; - com.google.re2j.Inst$Alt2Inst::add@43 (line 181)
; - com.google.re2j.Machine::step@-1 (line 280)
0.02% 0x00007fd70921fccf: mov %r9,%rsi
0.20% 0.01% 0x00007fd70921fcd2: shr $0x3,%rsi ;*aastore
; - com.google.re2j.Machine$Queue::addThread@16 (line 66)
; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0.09% 0.02% 0x00007fd70921fcd6: lea (%r12,%rbx,8),%r9 ;*getfield denseThreadsInstructions
; - com.google.re2j.Machine$Queue::addThread@1 (line 66)
; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0.38% 0.23% 0x00007fd70921fcda: lea 0x10(%r9,%rcx,4),%rbp
0.01% 0.00% 0x00007fd70921fcdf: mov %esi,0x0(%rbp)
0.27% 0.02% 0x00007fd70921fce2: mov %rbp,%rsi
0.10% 0.06% 0x00007fd70921fce5: shr $0x9,%rsi
0.34% 0.39% 0x00007fd70921fce9: movabs $0x7fd719e4b000,%rbp
0.00% 0.01% 0x00007fd70921fcf3: mov %r12b,0x0(%rbp,%rsi,1) ;*aastore
; - com.google.re2j.Machine$Queue::addThread@16 (line 66)
; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Machine::step@-1 (line 280)
0.32% 0.01% 0x00007fd70921fcf8: mov 0x8(%r12,%r8,8),%esi ;*invokevirtual add
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Machine::step@-1 (line 280)
; implicit exception: dispatches to 0x00007fd709221035
0.06% 0.06% 0x00007fd70921fcfd: vmovd %edx,%xmm2
0.30% 0.20% 0x00007fd70921fd01: vmovd %ebx,%xmm0
0.00% 0.02% 0x00007fd70921fd05: mov %r10d,0xa4(%rsp)
0.24% 0.02% 0x00007fd70921fd0d: mov %r13d,0xac(%rsp)
0.10% 0.07% 0x00007fd70921fd15: mov %r11,%r13
0.30% 0.30% 0x00007fd70921fd18: mov %rax,0x10(%rsp)
0.01% 0.00% 0x00007fd70921fd1d: vmovd %ecx,%xmm1
0.23% 0.03% 0x00007fd70921fd21: movslq %ecx,%r10
0.15% 0.06% 0x00007fd70921fd24: lea (%r9,%r10,4),%rbx ;*aastore
; - com.google.re2j.Machine$Queue::addThread@16 (line 66)
; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.39% 0.30% 0x00007fd70921fd28: mov %rbx,%rdx
0.02% 0.02% 0x00007fd70921fd2b: add $0x14,%rdx ;*aastore
; - com.google.re2j.Machine$Queue::addThread@16 (line 66)
; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Machine::step@-1 (line 280)
0.29% 0.13% 0x00007fd70921fd2f: lea (%r12,%r8,8),%r11
0.09% 0.04% 0x00007fd70921fd33: mov %ecx,%r10d
0.36% 0.30% 0x00007fd70921fd36: add $0x2,%r10d ;*iadd
; - com.google.re2j.Machine$Queue::addThread@11 (line 66)
; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Machine::step@-1 (line 280)
0.02% 0.02% 0x00007fd70921fd3a: cmp $0xf8019885,%esi ; {metadata('com/google/re2j/Inst$CaptureInst')}
0.27% 0.11% 0x00007fd70921fd40: jne 0x00007fd70921fb11 ;*invokevirtual add
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Machine::step@-1 (line 280)
0.07% 0.07% 0x00007fd70921fd46: mov %r11,%rax
0.36% 0.31% 0x00007fd70921fd49: mov 0x18(%r11),%r11d ;*getfield pc
; - com.google.re2j.Inst$CaptureInst::add@2 (line 461)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.00% 0.00% 0x00007fd70921fd4d: mov %r11d,%ecx
0.23% 0.34% 0x00007fd70921fd50: cmp $0x40,%r11d
0x00007fd70921fd54: jg 0x00007fd709220835 ;*if_icmpgt
; - com.google.re2j.Machine$Queue::contains@3 (line 41)
; - com.google.re2j.Inst$CaptureInst::add@5 (line 461)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.08% 0.08% 0x00007fd70921fd5a: mov $0x1,%r8d
0.30% 0.19% 0x00007fd70921fd60: shl %cl,%r8 ;*lshl
; - com.google.re2j.Machine$Queue::contains@12 (line 42)
; - com.google.re2j.Inst$CaptureInst::add@5 (line 461)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.35% 0.16% 0x00007fd70921fd63: mov %rdi,%r11
0.35% 0.10% 0x00007fd70921fd66: and %r8,%r11 ;*land
; - com.google.re2j.Machine$Queue::contains@13 (line 42)
; - com.google.re2j.Inst$CaptureInst::add@5 (line 461)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.03% 0.01% 0x00007fd70921fd69: test %r11,%r11
0x00007fd70921fd6c: jne 0x00007fd709220120 ;*ifeq
; - com.google.re2j.Machine$Queue::contains@16 (line 42)
; - com.google.re2j.Inst$CaptureInst::add@5 (line 461)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.29% 0.36% 0x00007fd70921fd72: xor %ebp,%ebp ;*ireturn
; - com.google.re2j.Machine$Queue::contains@24 (line 42)
; - com.google.re2j.Inst$CaptureInst::add@5 (line 461)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.09% 0.04% 0x00007fd70921fd74: test %r11,%r11
0x00007fd70921fd77: jne 0x00007fd709220871 ;*ifeq
; - com.google.re2j.Inst$CaptureInst::add@8 (line 461)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.37% 0.17% 0x00007fd70921fd7d: mov %ecx,%r11d
0.02% 0.00% 0x00007fd70921fd80: cmp $0x40,%r11d
0x00007fd70921fd84: jge 0x00007fd70922089d ;*if_icmpge
; - com.google.re2j.Machine$Queue::add@3 (line 51)
; - com.google.re2j.Inst$CaptureInst::add@19 (line 464)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.25% 0.33% 0x00007fd70921fd8a: mov 0x2c(%rax),%ebp ;*getfield outInst
; - com.google.re2j.Inst$CaptureInst::add@82 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.08% 0.02% 0x00007fd70921fd8d: or %r8,%rdi ;*lor ; - com.google.re2j.Machine$Queue::add@14 (line 52)
; - com.google.re2j.Inst$CaptureInst::add@19 (line 464)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.40% 0.20% 0x00007fd70921fd90: mov %rdi,0x10(%r13) ;*putfield pcsl
; - com.google.re2j.Machine$Queue::add@15 (line 52)
; - com.google.re2j.Inst$CaptureInst::add@19 (line 464)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.02% 0.01% 0x00007fd70921fd94: mov 0x8(%r12,%rbp,8),%r11d ; implicit exception: dispatches to 0x00007fd709221069
0.31% 0.29% 0x00007fd70921fd99: cmp $0xf8019843,%r11d ; {metadata('com/google/re2j/Inst$Alt2Inst')}
0x00007fd70921fda0: jne 0x00007fd709220455
0.08% 0.11% 0x00007fd70921fda6: lea (%r12,%rbp,8),%rax ;*invokevirtual add
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.38% 0.12% 0x00007fd70921fdaa: mov 0x18(%rax),%r11d ;*getfield pc
; - com.google.re2j.Inst$Alt2Inst::add@2 (line 175)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.00% 0.00% 0x00007fd70921fdae: vmovd %r11d,%xmm3
0.25% 0.27% 0x00007fd70921fdb3: cmp $0x40,%r11d
0x00007fd70921fdb7: jg 0x00007fd709220a09 ;*if_icmpgt
; - com.google.re2j.Machine$Queue::contains@3 (line 41)
; - com.google.re2j.Inst$Alt2Inst::add@5 (line 175)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.09% 0.01% 0x00007fd70921fdbd: mov $0x1,%r8d
0.29% 0.21% 0x00007fd70921fdc3: mov %r11d,%ecx
0.02% 0.00% 0x00007fd70921fdc6: shl %cl,%r8 ;*lshl
; - com.google.re2j.Machine$Queue::contains@12 (line 42)
; - com.google.re2j.Inst$Alt2Inst::add@5 (line 175)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.67% 0.48% 0x00007fd70921fdc9: mov %rdi,%r11
0.00% 0.02% 0x00007fd70921fdcc: and %r8,%r11
0.25% 0.48% 0x00007fd70921fdcf: test %r11,%r11
0x00007fd70921fdd2: jne 0x00007fd709220139 ;*ifeq
; - com.google.re2j.Machine$Queue::contains@16 (line 42)
; - com.google.re2j.Inst$Alt2Inst::add@5 (line 175)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.07% 0.10% 0x00007fd70921fdd8: mov %ecx,%r11d
0.35% 0.59% 0x00007fd70921fddb: cmp $0x40,%r11d
0x00007fd70921fddf: jge 0x00007fd709220a45 ;*if_icmpge
; - com.google.re2j.Machine$Queue::add@3 (line 51)
; - com.google.re2j.Inst$Alt2Inst::add@19 (line 178)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.01% 0.02% 0x00007fd70921fde5: mov 0x2c(%rax),%ebp ;*getfield outInst
; - com.google.re2j.Inst$Alt2Inst::add@23 (line 180)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.25% 0.29% 0x00007fd70921fde8: or %r8,%rdi ;*lor ; - com.google.re2j.Machine$Queue::add@14 (line 52)
; - com.google.re2j.Inst$Alt2Inst::add@19 (line 178)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.10% 0.13% 0x00007fd70921fdeb: mov %rdi,0x10(%r13) ;*putfield pcsl
; - com.google.re2j.Machine$Queue::add@15 (line 52)
; - com.google.re2j.Inst$Alt2Inst::add@19 (line 178)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.29% 0.43% 0x00007fd70921fdef: mov 0x8(%r12,%rbp,8),%r8d ; implicit exception: dispatches to 0x00007fd70922107d
0.01% 0.03% 0x00007fd70921fdf4: cmp $0xf8019909,%r8d ; {metadata('com/google/re2j/Inst$MatchInst')}
0x00007fd70921fdfb: jne 0x00007fd70922047d
0.29% 0.26% 0x00007fd70921fe01: lea (%r12,%rbp,8),%r11 ;*invokevirtual add
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.12% 0.17% 0x00007fd70921fe05: vmovq %r11,%xmm3
0.30% 0.55% 0x00007fd70921fe0a: mov 0x18(%r11),%r11d ;*getfield pc
; - com.google.re2j.Inst$MatchInst::add@2 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.02% 0.01% 0x00007fd70921fe0e: mov %r11d,%ecx
0.29% 0.45% 0x00007fd70921fe11: cmp $0x40,%r11d
0x00007fd70921fe15: jg 0x00007fd709220a81 ;*if_icmpgt
; - com.google.re2j.Machine$Queue::contains@3 (line 41)
; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.09% 0.10% 0x00007fd70921fe1b: mov $0x1,%r8d
0.35% 0.46% 0x00007fd70921fe21: shl %cl,%r8 ;*lshl
; - com.google.re2j.Machine$Queue::contains@12 (line 42)
; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.42% 0.38% 0x00007fd70921fe24: mov %rdi,%r11
0.31% 0.32% 0x00007fd70921fe27: and %r8,%r11 ;*land
; - com.google.re2j.Machine$Queue::contains@13 (line 42)
; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.02% 0.02% 0x00007fd70921fe2a: test %r11,%r11
0x00007fd70921fe2d: jne 0x00007fd709220141 ;*ifeq
; - com.google.re2j.Machine$Queue::contains@16 (line 42)
; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.23% 0.24% 0x00007fd70921fe33: xor %ebp,%ebp ;*ireturn
; - com.google.re2j.Machine$Queue::contains@24 (line 42)
; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.11% 0.08% 0x00007fd70921fe35: test %r11,%r11
0x00007fd70921fe38: jne 0x00007fd709220ac1 ;*ifeq
; - com.google.re2j.Inst$MatchInst::add@8 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.34% 0.38% 0x00007fd70921fe3e: mov %ecx,%r11d
0.00% 0.01% 0x00007fd70921fe41: cmp $0x40,%r11d
0x00007fd70921fe45: jge 0x00007fd709220af9 ;*if_icmpge
; - com.google.re2j.Machine$Queue::add@3 (line 51)
; - com.google.re2j.Inst$MatchInst::add@19 (line 147)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.27% 0.28% 0x00007fd70921fe4b: mov %r10d,0xc(%r13) ;*putfield size
; - com.google.re2j.Machine$Queue::addThread@12 (line 66)
; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.10% 0.10% 0x00007fd70921fe4f: or %r8,%rdi ;*lor ; - com.google.re2j.Machine$Queue::add@14 (line 52)
; - com.google.re2j.Inst$MatchInst::add@19 (line 147)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.37% 0.34% 0x00007fd70921fe52: mov %rdi,0x10(%r13) ;*putfield pcsl
; - com.google.re2j.Machine$Queue::add@15 (line 52)
; - com.google.re2j.Inst$MatchInst::add@19 (line 147)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.02% 0.01% 0x00007fd70921fe56: cmp %r14d,%r10d
0x00007fd70921fe59: jae 0x00007fd7092203e1 ;*aastore
; - com.google.re2j.Machine$Queue::addThread@16 (line 66)
; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.22% 0.30% 0x00007fd70921fe5f: mov 0x34(%rax),%r11d ;*getfield inst2
; - com.google.re2j.Inst$Alt2Inst::add@43 (line 181)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.11% 0.12% 0x00007fd70921fe63: mov %rdx,%r8
0.33% 0.42% 0x00007fd70921fe66: vmovq %xmm3,%r10
0.02% 0.03% 0x00007fd70921fe6b: shr $0x3,%r10
0.27% 0.25% 0x00007fd70921fe6f: mov %r10d,(%rdx)
0.09% 0.09% 0x00007fd70921fe72: shr $0x9,%r8
0.32% 0.50% 0x00007fd70921fe76: movabs $0x7fd719e4b000,%r10
0.02% 0.03% 0x00007fd70921fe80: mov %r12b,(%r10,%r8,1) ;*aastore
; - com.google.re2j.Machine$Queue::addThread@16 (line 66)
; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
; - com.google.re2j.Inst$Alt2Inst::add@37 (line 180)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.31% 0.33% 0x00007fd70921fe84: mov 0x8(%r12,%r11,8),%ecx ; implicit exception: dispatches to 0x00007fd709221091
0.09% 0.09% 0x00007fd70921fe89: lea (%r12,%r11,8),%r10
0.29% 0.34% 0x00007fd70921fe8d: cmp $0xf8019885,%ecx ; {metadata('com/google/re2j/Inst$CaptureInst')}
0x00007fd70921fe93: je 0x00007fd70921ff1d
0.02% 0x00007fd70921fe99: cmp $0xf8019909,%ecx ; {metadata('com/google/re2j/Inst$MatchInst')}
0x00007fd70921fe9f: jne 0x00007fd7092207dd ;*invokevirtual add
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.28% 0.36% 0x00007fd70921fea5: mov 0x18(%r10),%ecx ;*getfield pc
; - com.google.re2j.Inst$MatchInst::add@2 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.08% 0.12% 0x00007fd70921fea9: cmp $0x40,%ecx
0x00007fd70921feac: jg 0x00007fd709220bdd ;*if_icmpgt
; - com.google.re2j.Machine$Queue::contains@3 (line 41)
; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.34% 0.36% 0x00007fd70921feb2: mov $0x1,%r11d
0.01% 0.00% 0x00007fd70921feb8: shl %cl,%r11 ;*lshl
; - com.google.re2j.Machine$Queue::contains@12 (line 42)
; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.70% 0.55% 0x00007fd70921febb: mov %rdi,%r8
0.01% 0.00% 0x00007fd70921febe: and %r11,%r8 ;*land
; - com.google.re2j.Machine$Queue::contains@13 (line 42)
; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.27% 0.23% 0x00007fd70921fec1: test %r8,%r8
0x00007fd70921fec4: jne 0x00007fd709220155 ;*ifeq
; - com.google.re2j.Machine$Queue::contains@16 (line 42)
; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.08% 0.13% 0x00007fd70921feca: xor %ebp,%ebp ;*ireturn
; - com.google.re2j.Machine$Queue::contains@24 (line 42)
; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.31% 0.47% 0x00007fd70921fecc: test %r8,%r8
0x00007fd70921fecf: jne 0x00007fd709220c4d ;*ifeq
; - com.google.re2j.Inst$MatchInst::add@8 (line 144)
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.02% 0.01% 0x00007fd70921fed5: cmp $0x40,%ecx
0x00007fd70921fed8: jge 0x00007fd709220c9d ;*if_icmpge
; - com.google.re2j.Machine$Queue::add@3 (line 51)
; - com.google.re2j.Inst$MatchInst::add@19 (line 147)
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.31% 0.36% 0x00007fd70921fede: or %r11,%rdi
0.07% 0.13% 0x00007fd70921fee1: mov %r13,%r11
0.32% 0.50% 0x00007fd70921fee4: mov %rdi,0x10(%r11) ;*putfield pcsl
; - com.google.re2j.Machine$Queue::add@15 (line 52)
; - com.google.re2j.Inst$MatchInst::add@19 (line 147)
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.00% 0.02% 0x00007fd70921fee8: add $0x18,%rbx
0.32% 0.30% 0x00007fd70921feec: mov %r10,%r8
0.08% 0.10% 0x00007fd70921feef: shr $0x3,%r8
0.32% 0.43% 0x00007fd70921fef3: mov %r8d,(%rbx) ;*aastore
; - com.google.re2j.Machine$Queue::addThread@16 (line 66)
; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.03% 0.03% 0x00007fd70921fef6: mov %rbx,%r10
0.19% 0.36% 0x00007fd70921fef9: vmovd %xmm1,%r9d
0.10% 0.11% 0x00007fd70921fefe: add $0x3,%r9d
0.33% 0.47% 0x00007fd70921ff02: mov %r9d,0xc(%r11) ;*putfield size
; - com.google.re2j.Machine$Queue::addThread@12 (line 66)
; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.02% 0.01% 0x00007fd70921ff06: shr $0x9,%r10
0.26% 0.32% 0x00007fd70921ff0a: movabs $0x7fd719e4b000,%r8
0.09% 0.09% 0x00007fd70921ff14: mov %r12b,(%r8,%r10,1) ;*aastore
; - com.google.re2j.Machine$Queue::addThread@16 (line 66)
; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
0.32% 0.20% 0x00007fd70921ff18: jmpq 0x00007fd70921fb99 ;*invokevirtual add
; - com.google.re2j.Inst$Alt2Inst::add@57 (line 181)
; - com.google.re2j.Inst$CaptureInst::add@96 (line 472)
; - com.google.re2j.Inst$Alt2Inst::add@-1 (line 175)
; - com.google.re2j.Machine::step@-1 (line 280)
....................................................................................................
47.30% 45.74% <total for region 1>
....[Hottest Region 2]..............................................................................
C2, level 4, com.google.re2j.Machine::match, version 534 (978 bytes)
0x00007fd70923a691: or $0x1,%r11d ;*ishr
; - com.google.re2j.Machine::match@104 (line 200)
0x00007fd70923a695: vmovd %xmm1,%r10d
0x00007fd70923a69a: test %r10d,%r10d
0x00007fd70923a69d: jne 0x00007fd70923b9c1 ;*ifne
; - com.google.re2j.Machine::match@115 (line 204)
0x00007fd70923a6a3: test %edi,%edi
0x00007fd70923a6a5: jl 0x00007fd70923afbb ;*ifge
; - com.google.re2j.Utils::emptyOpContext@21 (line 179)
; - com.google.re2j.Machine::match@121 (line 205)
0.01% 0x00007fd70923a6ab: mov %r8d,%ebx
0x00007fd70923a6ae: mov %r11d,0x30(%rsp)
0x00007fd70923a6b3: mov $0x5,%r10d ;*iload_1
; - com.google.re2j.Utils::emptyOpContext@29 (line 182)
; - com.google.re2j.Machine::match@121 (line 205)
0x00007fd70923a6b9: cmp $0xa,%edi
0x00007fd70923a6bc: je 0x00007fd70923afdc ;*iload_0
; - com.google.re2j.Utils::emptyOpContext@39 (line 185)
; - com.google.re2j.Machine::match@121 (line 205)
0.01% 0x00007fd70923a6c2: mov %edi,%r8d
0x00007fd70923a6c5: add $0xffffffbf,%r8d
0x00007fd70923a6c9: cmp $0x1a,%r8d
╭ 0x00007fd70923a6cd: jb 0x00007fd70923a6e0 ;*if_icmple
│ ; - com.google.re2j.Utils::isWordRune@9 (line 149)
│ ; - com.google.re2j.Utils::emptyOpContext@44 (line 185)
│ ; - com.google.re2j.Machine::match@121 (line 205)
│ 0x00007fd70923a6cf: mov %edi,%r11d
0.00% │ 0x00007fd70923a6d2: add $0xffffff9f,%r11d
0.00% │ 0x00007fd70923a6d6: cmp $0x1a,%r11d
│ 0x00007fd70923a6da: jae 0x00007fd70923aff3 ;*iconst_1
│ ; - com.google.re2j.Utils::isWordRune@42 (line 149)
│ ; - com.google.re2j.Utils::emptyOpContext@44 (line 185)
│ ; - com.google.re2j.Machine::match@121 (line 205)
↘ 0x00007fd70923a6e0: or $0x10,%r10d ;*iload_2
; - com.google.re2j.Utils::emptyOpContext@63 (line 190)
; - com.google.re2j.Machine::match@121 (line 205)
0.00% 0x00007fd70923a6e4: vmovq %xmm0,%r11
0.00% 0x00007fd70923a6e9: movzbl 0x11(%r11),%r8d ;*getfield captures
; - com.google.re2j.Machine::match@283 (line 240)
0.00% 0.01% 0x00007fd70923a6ee: mov %rcx,%r11
0x00007fd70923a6f1: shl $0x3,%r11 ;*getfield q1
; - com.google.re2j.Machine::match@53 (line 192)
0x00007fd70923a6f5: mov %r11,0x60(%rsp)
0.00% 0.00% 0x00007fd70923a6fa: xor %eax,%eax
0x00007fd70923a6fc: xor %r11d,%r11d
0x00007fd70923a6ff: mov %r11d,0x58(%rsp)
0.00% ╭ 0x00007fd70923a704: jmpq 0x00007fd70923a891
0.18% 0.21% │ ↗ 0x00007fd70923a709: or $0x20,%r10d ;*ior ; - com.google.re2j.Utils::emptyOpContext@61 (line 188)
│ │ ; - com.google.re2j.Machine::match@326 (line 245)
0.09% 0.09% │ │ 0x00007fd70923a70d: mov %r10d,0x2c(%rsp) ;*iload_2
│ │ ; - com.google.re2j.Utils::emptyOpContext@63 (line 190)
│ │ ; - com.google.re2j.Machine::match@326 (line 245)
0.22% 0.21% │ │↗ 0x00007fd70923a712: cmp 0x14(%rsp),%eax
│ ││ 0x00007fd70923a716: je 0x00007fd70923af08 ;*if_icmpne
│ ││ ; - com.google.re2j.Machine::match@351 (line 246)
0.35% 0.39% │ ││ 0x00007fd70923a71c: xor %r10d,%r10d
0.16% 0.18% │ ││ 0x00007fd70923a71f: mov %rax,-0x8(%rsp)
0.16% 0.25% │ ││ 0x00007fd70923a724: mov 0x58(%rsp),%eax
0.13% 0.07% │ ││ 0x00007fd70923a728: mov %eax,0x34(%rsp)
0.48% 0.32% │ ││ 0x00007fd70923a72c: mov -0x8(%rsp),%rax
0.55% 0.34% │ ││ 0x00007fd70923a731: mov %ebx,0x58(%rsp)
0.19% 0.14% │ ││ 0x00007fd70923a735: mov %r11d,0x20(%rsp)
0.12% 0.09% │ ││ 0x00007fd70923a73a: mov 0x50(%rsp),%rsi
0.18% 0.14% │ ││ 0x00007fd70923a73f: mov 0x18(%rsp),%rdx
0.14% 0.19% │ ││ 0x00007fd70923a744: mov 0x60(%rsp),%rcx
0.22% 0.20% │ ││ 0x00007fd70923a749: mov %eax,%r8d
0.20% 0.09% │ ││ 0x00007fd70923a74c: mov %ebx,%r9d
0.17% 0.07% │ ││ 0x00007fd70923a74f: mov 0x2c(%rsp),%r11d
0.19% 0.12% │ ││ 0x00007fd70923a754: mov %r11d,(%rsp)
0.25% 0.28% │ ││ 0x00007fd70923a758: mov 0x40(%rsp),%r11d
0.15% 0.11% │ ││ 0x00007fd70923a75d: mov %r11d,0x8(%rsp)
0.28% 0.26% │ ││ 0x00007fd70923a762: mov %r10d,0x10(%rsp)
0.22% 0.26% │ ││ 0x00007fd70923a767: callq 0x00007fd709046020 ; OopMap{[24]=Oop [56]=NarrowOop [72]=Oop [80]=Oop [96]=Oop off=652}
│ ││ ;*invokespecial step
│ ││ ; - com.google.re2j.Machine::match@359 (line 246)
│ ││ ; {optimized virtual_call}
0.00% │ ││ 0x00007fd70923a76c: mov 0x50(%rsp),%r10
0.68% 0.95% │ ││ 0x00007fd70923a771: movzbl 0x11(%r10),%r8d ;*getfield captures
│ ││ ; - com.google.re2j.Machine::match@371 (line 250)
0.01% 0.00% │ ││ 0x00007fd70923a776: movzbl 0x10(%r10),%eax ;*getfield matched
│ ││ ; - com.google.re2j.Machine::match@378 (line 250)
0.00% │ ││ 0x00007fd70923a77b: mov 0x28(%rsp),%r11d
0.72% 0.78% │ ││ 0x00007fd70923a780: test %r11d,%r11d
│ ││ 0x00007fd70923a783: je 0x00007fd70923aeb6 ;*ifne
│ ││ ; - com.google.re2j.Machine::match@364 (line 247)
│ ││ 0x00007fd70923a789: test %r8d,%r8d
│ ││ 0x00007fd70923a78c: jne 0x00007fd70923b281 ;*ifne
│ ││ ; - com.google.re2j.Machine::match@374 (line 250)
0.01% │ ││ 0x00007fd70923a792: test %eax,%eax
│ ││ 0x00007fd70923a794: jne 0x00007fd70923b4a1 ;*ifeq
│ ││ ; - com.google.re2j.Machine::match@381 (line 250)
0.01% │ ││ 0x00007fd70923a79a: mov 0x48(%rsp),%rdx
0.87% 0.82% │ ││ 0x00007fd70923a79f: mov 0x10(%rdx),%ecx ;*getfield end
│ ││ ; - com.google.re2j.MachineInput$UTF16Input::step@9 (line 186)
│ ││ ; - com.google.re2j.Machine::match@411 (line 259)
0.00% 0.00% │ ││ 0x00007fd70923a7a2: mov 0xc(%rdx),%r11d ;*getfield start
│ ││ ; - com.google.re2j.MachineInput$UTF16Input::step@2 (line 185)
│ ││ ; - com.google.re2j.Machine::match@411 (line 259)
0.01% 0.03% │ ││ 0x00007fd70923a7a6: mov %r11d,0x24(%rsp)
0.01% │ ││ 0x00007fd70923a7ab: mov 0x14(%rdx),%r9d ;*getfield str
│ ││ ; - com.google.re2j.MachineInput$UTF16Input::step@16 (line 187)
│ ││ ; - com.google.re2j.Machine::match@411 (line 259)
0.70% 0.40% │ ││ 0x00007fd70923a7af: mov 0x20(%rsp),%ebp
0.00% │ ││ 0x00007fd70923a7b3: cmp $0xffffffff,%ebp
│ ││ 0x00007fd70923a7b6: je 0x00007fd70923af13 ;*if_icmpeq
│ ││ ; - com.google.re2j.Machine::match@403 (line 258)
│ ││ 0x00007fd70923a7bc: mov 0x30(%rsp),%r14d
0.01% │ ││ 0x00007fd70923a7c1: add 0x58(%rsp),%r14d
0.63% 0.76% │ ││ 0x00007fd70923a7c6: add %r11d,%r14d ;*iadd
│ ││ ; - com.google.re2j.MachineInput$UTF16Input::step@5 (line 185)
│ ││ ; - com.google.re2j.Machine::match@411 (line 259)
│ ││ 0x00007fd70923a7c9: cmp %ecx,%r14d
│ ││ 0x00007fd70923a7cc: jge 0x00007fd70923af22 ;*if_icmpge
│ ││ ; - com.google.re2j.MachineInput$UTF16Input::step@12 (line 186)
│ ││ ; - com.google.re2j.Machine::match@411 (line 259)
│ ││ 0x00007fd70923a7d2: mov %ebp,%r13d
0.01% │ ││ 0x00007fd70923a7d5: mov %r10,%rdi
0.73% 0.74% │ ││ 0x00007fd70923a7d8: mov 0x8(%r12,%r9,8),%r10d ; implicit exception: dispatches to 0x00007fd70923c209
0.02% 0.02% │ ││ 0x00007fd70923a7dd: cmp $0xf80002da,%r10d ; {metadata('java/lang/String')}
│ ││ 0x00007fd70923a7e4: jne 0x00007fd70923b19d
0.02% 0.04% │ ││ 0x00007fd70923a7ea: lea (%r12,%r9,8),%r10 ;*invokeinterface charAt
│ ││ ; - java.lang.Character::codePointAt@2 (line 4866)
│ ││ ; - com.google.re2j.MachineInput$UTF16Input::step@20 (line 187)
│ ││ ; - com.google.re2j.Machine::match@411 (line 259)
│ ││ 0x00007fd70923a7ee: vmovq %r10,%xmm0
0.63% 1.00% │ ││ 0x00007fd70923a7f3: test %r14d,%r14d
│ ││ 0x00007fd70923a7f6: jl 0x00007fd70923b2d5 ;*iflt
│ ││ ; - java.lang.String::charAt@1 (line 657)
│ ││ ; - java.lang.Character::codePointAt@2 (line 4866)
│ ││ ; - com.google.re2j.MachineInput$UTF16Input::step@20 (line 187)
│ ││ ; - com.google.re2j.Machine::match@411 (line 259)
│ ││ 0x00007fd70923a7fc: mov 0xc(%r10),%ebx ;*getfield value
│ ││ ; - java.lang.String::charAt@6 (line 657)
│ ││ ; - java.lang.Character::codePointAt@2 (line 4866)
│ ││ ; - com.google.re2j.MachineInput$UTF16Input::step@20 (line 187)
│ ││ ; - com.google.re2j.Machine::match@411 (line 259)
0.05% 0.01% │ ││ 0x00007fd70923a800: mov 0xc(%r12,%rbx,8),%ebp ;*arraylength
│ ││ ; - java.lang.String::charAt@9 (line 657)
│ ││ ; - java.lang.Character::codePointAt@2 (line 4866)
│ ││ ; - com.google.re2j.MachineInput$UTF16Input::step@20 (line 187)
│ ││ ; - com.google.re2j.Machine::match@411 (line 259)
│ ││ ; implicit exception: dispatches to 0x00007fd70923c21d
0.51% 0.45% │ ││ 0x00007fd70923a805: cmp %ebp,%r14d
│ ││ 0x00007fd70923a808: jge 0x00007fd70923b4f5 ;*if_icmplt
│ ││ ; - java.lang.String::charAt@10 (line 657)
│ ││ ; - java.lang.Character::codePointAt@2 (line 4866)
│ ││ ; - com.google.re2j.MachineInput$UTF16Input::step@20 (line 187)
│ ││ ; - com.google.re2j.Machine::match@411 (line 259)
0.74% 0.62% │ ││ 0x00007fd70923a80e: cmp %ebp,%r14d
│ ││ 0x00007fd70923a811: jae 0x00007fd70923b091
0.02% 0.01% │ ││ 0x00007fd70923a817: lea (%r12,%rbx,8),%r10
│ ││ 0x00007fd70923a81b: movzwl 0x10(%r10,%r14,2),%r11d ;*caload
│ ││ ; - java.lang.String::charAt@27 (line 660)
│ ││ ; - java.lang.Character::codePointAt@2 (line 4866)
│ ││ ; - com.google.re2j.MachineInput$UTF16Input::step@20 (line 187)
│ ││ ; - com.google.re2j.Machine::match@411 (line 259)
0.15% 0.19% │ ││ 0x00007fd70923a821: cmp $0xd800,%r11d
│ ││ 0x00007fd70923a828: jge 0x00007fd70923b551 ;*if_icmplt
│ ││ ; - java.lang.Character::isHighSurrogate@3 (line 4729)
│ ││ ; - java.lang.Character::codePointAt@9 (line 4867)
│ ││ ; - com.google.re2j.MachineInput$UTF16Input::step@20 (line 187)
│ ││ ; - com.google.re2j.Machine::match@411 (line 259)
0.70% 0.80% │ ││ 0x00007fd70923a82e: shl $0x3,%r11d ;*ishl
│ ││ ; - com.google.re2j.MachineInput$UTF16Input::step@38 (line 190)
│ ││ ; - com.google.re2j.Machine::match@411 (line 259)
0.01% 0.04% │ ││ 0x00007fd70923a832: mov %r11d,%ebx
│ ││ 0x00007fd70923a835: or $0x1,%ebx
0.44% 0.66% │ ││ 0x00007fd70923a838: and $0x7,%r11d
0.26% 0.30% │ ││ 0x00007fd70923a83c: sar $0x3,%ebx ;*ishr
│ ││ ; - com.google.re2j.Machine::match@419 (line 260)
0.53% 0.55% │ ││ 0x00007fd70923a83f: or $0x1,%r11d ;*ior ; - com.google.re2j.MachineInput$UTF16Input::step@41 (line 190)
│ ││ ; - com.google.re2j.Machine::match@411 (line 259)
│ ││ 0x00007fd70923a843: mov %rdi,%r10
0.00% │ ││ 0x00007fd70923a846: mov %r13d,%ebp ;*aload
│ ││ ; - com.google.re2j.Machine::match@429 (line 263)
0.20% 0.28% │ ││ 0x00007fd70923a849: vmovq %r10,%xmm0 ; OopMap{r10=Oop r9=NarrowOop xmm0=Oop [24]=Oop [72]=Oop [96]=Oop off=878}
│ ││ ;*goto
│ ││ ; - com.google.re2j.Machine::match@441 (line 266)
0.47% 0.52% │ ││ 0x00007fd70923a84e: test %eax,0x182087ac(%rip) # 0x00007fd721443000
│ ││ ;*goto
│ ││ ; - com.google.re2j.Machine::match@441 (line 266)
│ ││ ; {poll}
0.03% 0.02% │ ││ 0x00007fd70923a854: mov 0x28(%r10),%r14d ;*getfield matchcap
│ ││ ; - com.google.re2j.Machine::match@307 (line 243)
0.00% 0.00% │ ││ 0x00007fd70923a858: mov 0x14(%r10),%r13d ;*getfield re2
│ ││ ; - com.google.re2j.Machine::match@169 (line 220)
0.29% 0.40% │ ││ 0x00007fd70923a85c: mov 0x60(%rsp),%r10
0.48% 0.44% │ ││ 0x00007fd70923a861: shr $0x3,%r10
0.01% │ ││ 0x00007fd70923a865: mov %r10d,0x38(%rsp)
0.00% 0.01% │ ││ 0x00007fd70923a86a: mov %ebp,%edi
0.23% 0.17% │ ││ 0x00007fd70923a86c: mov 0x2c(%rsp),%r10d
0.40% 0.45% │ ││ 0x00007fd70923a871: mov 0x18(%rsp),%rdx
0.01% 0.01% │ ││ 0x00007fd70923a876: mov %rdx,0x60(%rsp)
0.01% │ ││ 0x00007fd70923a87b: mov 0x30(%rsp),%esi
0.21% 0.20% │ ││ 0x00007fd70923a87f: mov %esi,0x28(%rsp)
0.49% 0.54% │ ││ 0x00007fd70923a883: mov %r11d,0x30(%rsp)
0.00% 0.00% │ ││ 0x00007fd70923a888: mov %ecx,0x14(%rsp)
0.00% │ ││ 0x00007fd70923a88c: vmovd %r9d,%xmm3 ;*getfield matchcap
│ ││ ; - com.google.re2j.Machine::match@307 (line 243)
0.18% 0.19% ↘ ││ 0x00007fd70923a891: mov 0x38(%rsp),%r11d
0.46% 0.64% ││ 0x00007fd70923a896: movzbl 0x18(%r12,%r11,8),%ecx ; implicit exception: dispatches to 0x00007fd70923c1b1
0.02% 0.02% ││ 0x00007fd70923a89c: shl $0x3,%r11 ;*aload
││ ; - com.google.re2j.Machine::match@136 (line 211)
0.02% ││ 0x00007fd70923a8a0: mov %r11,0x18(%rsp)
0.26% 0.36% ││ 0x00007fd70923a8a5: test %ecx,%ecx
││ 0x00007fd70923a8a7: jne 0x00007fd70923ab3c ;*aload_0
││ ; - com.google.re2j.Machine::match@267 (line 237)
0.52% 0.44% ││ 0x00007fd70923a8ad: test %eax,%eax
││ 0x00007fd70923a8af: jne 0x00007fd70923b1f9 ;*ifne
││ ; - com.google.re2j.Machine::match@271 (line 237)
0.01% ││ 0x00007fd70923a8b5: mov 0x58(%rsp),%r9d
0.01% ││ 0x00007fd70923a8ba: test %r9d,%r9d
││ 0x00007fd70923a8bd: je 0x00007fd70923afa8 ;*ifeq
││ ; - com.google.re2j.Machine::match@275 (line 237)
0.18% 0.26% ││ 0x00007fd70923a8c3: mov 0x40(%rsp),%ecx
0.46% 0.41% ││ 0x00007fd70923a8c7: test %ecx,%ecx
││ 0x00007fd70923a8c9: jne 0x00007fd70923b239 ;*aload_0
││ ; - com.google.re2j.Machine::match@282 (line 240)
0.03% 0.01% ││ 0x00007fd70923a8cf: test %r8d,%r8d
││ 0x00007fd70923a8d2: jne 0x00007fd70923b345 ;*ifeq
││ ; - com.google.re2j.Machine::match@286 (line 240)
0.01% 0.01% ││ 0x00007fd70923a8d8: vmovq %xmm0,%rdx
0.24% 0.25% ││ 0x00007fd70923a8dd: mov 0x18(%rdx),%r11d ;*getfield prog
││ ; - com.google.re2j.Machine::match@297 (line 243)
0.50% 0.66% ││ 0x00007fd70923a8e1: mov 0x1c(%r12,%r11,8),%ebp ;*getfield startInst
││ ; - com.google.re2j.Machine::match@300 (line 243)
││ ; implicit exception: dispatches to 0x00007fd70923c1c1
0.26% 0.26% ││ 0x00007fd70923a8e6: mov 0x58(%rsp),%eax
││ 0x00007fd70923a8ea: mov %ecx,0x40(%rsp)
0.16% 0.19% ││ 0x00007fd70923a8ee: vmovsd %xmm0,0x50(%rsp)
0.46% 0.59% ││ 0x00007fd70923a8f4: mov 0x8(%r12,%rbp,8),%r9d ; implicit exception: dispatches to 0x00007fd70923c1d1
1.04% 1.29% ││ 0x00007fd70923a8f9: cmp $0xf8019909,%r9d ; {metadata('com/google/re2j/Inst$MatchInst')}
0.37% 0.45% ││ 0x00007fd70923a900: jne 0x00007fd70923b0f9
0.43% 0.72% ││ 0x00007fd70923a906: lea (%r12,%rbp,8),%r10 ;*invokevirtual add
││ ; - com.google.re2j.Machine::match@318 (line 243)
0.18% 0.23% ││ 0x00007fd70923a90a: mov 0x18(%r10),%ecx ;*getfield pc
││ ; - com.google.re2j.Inst$MatchInst::add@2 (line 144)
││ ; - com.google.re2j.Machine::match@318 (line 243)
0.00% ││ 0x00007fd70923a90e: cmp $0x40,%ecx
││ 0x00007fd70923a911: jg 0x00007fd70923b389 ;*if_icmpgt
││ ; - com.google.re2j.Machine$Queue::contains@3 (line 41)
││ ; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
││ ; - com.google.re2j.Machine::match@318 (line 243)
0.08% 0.06% ││ 0x00007fd70923a917: mov %r10,%rdx
0.57% 0.50% ││ 0x00007fd70923a91a: mov $0x1,%r10d
0.17% 0.22% ││ 0x00007fd70923a920: shl %cl,%r10 ;*lshl
││ ; - com.google.re2j.Machine$Queue::contains@12 (line 42)
││ ; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
││ ; - com.google.re2j.Machine::match@318 (line 243)
0.69% 0.61% ││ 0x00007fd70923a923: mov 0x38(%rsp),%r9d
0.13% 0.13% ││ 0x00007fd70923a928: mov 0x10(%r12,%r9,8),%r11 ;*getfield pcsl
││ ; - com.google.re2j.Machine$Queue::contains@7 (line 42)
││ ; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
││ ; - com.google.re2j.Machine::match@318 (line 243)
││ 0x00007fd70923a92d: mov %r11,%r9
││ 0x00007fd70923a930: and %r10,%r9 ;*land
││ ; - com.google.re2j.Machine$Queue::contains@13 (line 42)
││ ; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
││ ; - com.google.re2j.Machine::match@318 (line 243)
0.50% 0.56% ││ 0x00007fd70923a933: test %r9,%r9
││ 0x00007fd70923a936: jne 0x00007fd70923afb1 ;*ifeq
││ ; - com.google.re2j.Machine$Queue::contains@16 (line 42)
││ ; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
││ ; - com.google.re2j.Machine::match@318 (line 243)
0.23% 0.14% ││ 0x00007fd70923a93c: xor %ebp,%ebp ;*ireturn
││ ; - com.google.re2j.Machine$Queue::contains@24 (line 42)
││ ; - com.google.re2j.Inst$MatchInst::add@5 (line 144)
││ ; - com.google.re2j.Machine::match@318 (line 243)
││ 0x00007fd70923a93e: test %r9,%r9
││ 0x00007fd70923a941: jne 0x00007fd70923b3e5 ;*ifeq
││ ; - com.google.re2j.Inst$MatchInst::add@8 (line 144)
││ ; - com.google.re2j.Machine::match@318 (line 243)
0.19% 0.14% ││ 0x00007fd70923a947: cmp $0x40,%ecx
││ 0x00007fd70923a94a: jge 0x00007fd70923b445 ;*if_icmpge
││ ; - com.google.re2j.Machine$Queue::add@3 (line 51)
││ ; - com.google.re2j.Inst$MatchInst::add@19 (line 147)
││ ; - com.google.re2j.Machine::match@318 (line 243)
0.37% 0.39% ││ 0x00007fd70923a950: mov 0x38(%rsp),%r9d
0.15% 0.13% ││ 0x00007fd70923a955: mov %r12b,0x18(%r12,%r9,8) ;*putfield empty
││ ; - com.google.re2j.Machine$Queue::add@33 (line 56)
││ ; - com.google.re2j.Inst$MatchInst::add@19 (line 147)
││ ; - com.google.re2j.Machine::match@318 (line 243)
0.00% ││ 0x00007fd70923a95a: mov 0xc(%r12,%r9,8),%r8d ;*getfield size
││ ; - com.google.re2j.Machine$Queue::addThread@6 (line 66)
││ ; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
││ ; - com.google.re2j.Machine::match@318 (line 243)
0.12% 0.19% ││ 0x00007fd70923a95f: mov 0x20(%r12,%r9,8),%r9d ;*getfield denseThreadsInstructions
││ ; - com.google.re2j.Machine$Queue::addThread@1 (line 66)
││ ; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
││ ; - com.google.re2j.Machine::match@318 (line 243)
0.32% 0.51% ││ 0x00007fd70923a964: or %r11,%r10
0.13% 0.22% ││ 0x00007fd70923a967: mov 0x38(%rsp),%ecx
0.00% ││ 0x00007fd70923a96b: mov %r10,0x10(%r12,%rcx,8) ;*putfield pcsl
││ ; - com.google.re2j.Machine$Queue::add@15 (line 52)
││ ; - com.google.re2j.Inst$MatchInst::add@19 (line 147)
││ ; - com.google.re2j.Machine::match@318 (line 243)
0.17% 0.19% ││ 0x00007fd70923a970: mov %r8d,%r11d
0.39% 0.38% ││ 0x00007fd70923a973: inc %r11d
0.17% 0.15% ││ 0x00007fd70923a976: mov %r11d,0xc(%r12,%rcx,8) ;*putfield size
││ ; - com.google.re2j.Machine$Queue::addThread@12 (line 66)
││ ; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
││ ; - com.google.re2j.Machine::match@318 (line 243)
0.01% 0.00% ││ 0x00007fd70923a97b: mov 0xc(%r12,%r9,8),%r11d ; implicit exception: dispatches to 0x00007fd70923c1f1
0.22% 0.20% ││ 0x00007fd70923a980: cmp %r11d,%r8d
││ 0x00007fd70923a983: jae 0x00007fd70923b03e
0.57% 0.63% ││ 0x00007fd70923a989: mov 0x8(%r12,%r9,8),%r11d
0.17% 0.09% ││ 0x00007fd70923a98e: cmp $0xf8019807,%r11d ; {metadata('com/google/re2j/Inst'[])}
││ 0x00007fd70923a995: jne 0x00007fd70923b149 ;*aastore
││ ; - com.google.re2j.Machine$Queue::addThread@16 (line 66)
││ ; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
││ ; - com.google.re2j.Machine::match@318 (line 243)
││ 0x00007fd70923a99b: test %edi,%edi
╭ ││ 0x00007fd70923a99d: jl 0x00007fd70923aa4b ;*ifge
│ ││ ; - com.google.re2j.Utils::emptyOpContext@3 (line 173)
│ ││ ; - com.google.re2j.Machine::match@326 (line 245)
0.20% 0.20% │ ││ 0x00007fd70923a9a3: xor %r10d,%r10d ;*iload_0
│ ││ ; - com.google.re2j.Utils::emptyOpContext@10 (line 176)
│ ││ ; - com.google.re2j.Machine::match@326 (line 245)
0.48% 0.47% │ ││↗ 0x00007fd70923a9a6: cmp $0xa,%edi
│ │││ 0x00007fd70923a9a9: je 0x00007fd70923aef6 ;*iload_1
│ │││ ; - com.google.re2j.Utils::emptyOpContext@20 (line 179)
│ │││ ; - com.google.re2j.Machine::match@326 (line 245)
0.12% 0.15% │ │││ 0x00007fd70923a9af: mov %ebx,%r11d
│ │││ 0x00007fd70923a9b2: test %ebx,%ebx
│╭ │││ 0x00007fd70923a9b4: jl 0x00007fd70923aa56 ;*iload_1
││ │││ ; - com.google.re2j.Utils::emptyOpContext@29 (line 182)
││ │││ ; - com.google.re2j.Machine::match@326 (line 245)
0.18% 0.15% ││ │││↗ 0x00007fd70923a9ba: cmp $0xa,%ebx
││ ││││ 0x00007fd70923a9bd: je 0x00007fd70923aeff ;*iload_0
││ ││││ ; - com.google.re2j.Utils::emptyOpContext@39 (line 185)
││ ││││ ; - com.google.re2j.Machine::match@326 (line 245)
0.43% 0.41% ││ ││││ 0x00007fd70923a9c3: mov %rdx,%rcx
0.12% 0.12% ││ ││││ 0x00007fd70923a9c6: shr $0x3,%rcx ;*aastore
││ ││││ ; - com.google.re2j.Machine$Queue::addThread@16 (line 66)
││ ││││ ; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
││ ││││ ; - com.google.re2j.Machine::match@318 (line 243)
0.01% ││ ││││ 0x00007fd70923a9ca: shl $0x3,%r9 ;*getfield denseThreadsInstructions
││ ││││ ; - com.google.re2j.Machine$Queue::addThread@1 (line 66)
││ ││││ ; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
││ ││││ ; - com.google.re2j.Machine::match@318 (line 243)
0.20% 0.14% ││ ││││ 0x00007fd70923a9ce: lea 0x10(%r9,%r8,4),%r8
0.37% 0.43% ││ ││││ 0x00007fd70923a9d3: mov %ecx,(%r8)
0.50% 0.55% ││ ││││ 0x00007fd70923a9d6: mov %edi,%ecx
││ ││││ 0x00007fd70923a9d8: add $0xffffffbf,%ecx
0.17% 0.15% ││ ││││ 0x00007fd70923a9db: shr $0x9,%r8
0.27% 0.26% ││ ││││ 0x00007fd70923a9df: movabs $0x7fd719e4b000,%r9
0.21% 0.23% ││ ││││ 0x00007fd70923a9e9: mov %r12b,(%r9,%r8,1) ;*aastore
││ ││││ ; - com.google.re2j.Machine$Queue::addThread@16 (line 66)
││ ││││ ; - com.google.re2j.Inst$MatchInst::add@72 (line 158)
││ ││││ ; - com.google.re2j.Machine::match@318 (line 243)
0.55% 0.54% ││ ││││ 0x00007fd70923a9ed: cmp $0x1a,%ecx
││╭ ││││ 0x00007fd70923a9f0: jb 0x00007fd70923aa03 ;*if_icmple
│││ ││││ ; - com.google.re2j.Utils::isWordRune@9 (line 149)
│││ ││││ ; - com.google.re2j.Utils::emptyOpContext@40 (line 185)
│││ ││││ ; - com.google.re2j.Machine::match@326 (line 245)
0.17% 0.07% │││ ││││ 0x00007fd70923a9f2: mov %edi,%r9d
0.28% 0.15% │││ ││││ 0x00007fd70923a9f5: add $0xffffff9f,%r9d
0.18% 0.21% │││ ││││ 0x00007fd70923a9f9: cmp $0x1a,%r9d
│││ ││││ 0x00007fd70923a9fd: jae 0x00007fd70923af87 ;*iconst_1
│││ ││││ ; - com.google.re2j.Utils::isWordRune@42 (line 149)
│││ ││││ ; - com.google.re2j.Utils::emptyOpContext@40 (line 185)
│││ ││││ ; - com.google.re2j.Machine::match@326 (line 245)
0.13% 0.15% ││↘ ││││ 0x00007fd70923aa03: mov $0x1,%ebp ;*invokevirtual endPos
││ ││││ ; - com.google.re2j.Machine::match@348 (line 246)
0.19% 0.11% ││ ││││ 0x00007fd70923aa08: mov 0x58(%rsp),%ebx
0.24% 0.15% ││ ││││ 0x00007fd70923aa0c: add 0x28(%rsp),%ebx ;*iadd
││ ││││ ; - com.google.re2j.Machine::match@340 (line 246)
0.12% 0.22% ││ ││││ 0x00007fd70923aa10: mov %r11d,%r9d
0.19% 0.15% ││ ││││ 0x00007fd70923aa13: add $0xffffffbf,%r9d
0.13% 0.11% ││ ││││ 0x00007fd70923aa17: cmp $0x1a,%r9d
││ ╭││││ 0x00007fd70923aa1b: jb 0x00007fd70923aa2e ;*if_icmple
││ │││││ ; - com.google.re2j.Utils::isWordRune@9 (line 149)
││ │││││ ; - com.google.re2j.Utils::emptyOpContext@44 (line 185)
││ │││││ ; - com.google.re2j.Machine::match@326 (line 245)
0.21% 0.16% ││ │││││ 0x00007fd70923aa1d: mov %r11d,%r8d
0.19% 0.22% ││ │││││ 0x00007fd70923aa20: add $0xffffff9f,%r8d
0.16% 0.09% ││ │││││ 0x00007fd70923aa24: cmp $0x1a,%r8d
││ │││││ 0x00007fd70923aa28: jae 0x00007fd70923af64 ;*iconst_1
││ │││││ ; - com.google.re2j.Utils::isWordRune@42 (line 149)
││ │││││ ; - com.google.re2j.Utils::emptyOpContext@44 (line 185)
││ │││││ ; - com.google.re2j.Machine::match@326 (line 245)
0.14% 0.10% ││ ↘││││ 0x00007fd70923aa2e: mov $0x1,%r8d ;*ireturn
││ ││││ ; - com.google.re2j.Utils::isWordRune@47 (line 149)
││ ││││ ; - com.google.re2j.Utils::emptyOpContext@44 (line 185)
││ ││││ ; - com.google.re2j.Machine::match@326 (line 245)
0.20% 0.19% ││ ││││ 0x00007fd70923aa34: cmp %r8d,%ebp
││ ╰│││ 0x00007fd70923aa37: je 0x00007fd70923a709 ;*if_icmpeq
││ │││ ; - com.google.re2j.Utils::emptyOpContext@47 (line 185)
││ │││ ; - com.google.re2j.Machine::match@326 (line 245)
0.12% 0.09% ││ │││ 0x00007fd70923aa3d: or $0x10,%r10d ;*ior ; - com.google.re2j.Utils::emptyOpContext@53 (line 186)
││ │││ ; - com.google.re2j.Machine::match@326 (line 245)
0.03% 0.01% ││ │││ 0x00007fd70923aa41: mov %r10d,0x2c(%rsp)
0.36% 0.39% ││ ╰││ 0x00007fd70923aa46: jmpq 0x00007fd70923a712
↘│ ││ 0x00007fd70923aa4b: mov $0x5,%r10d
0.00% │ ╰│ 0x00007fd70923aa51: jmpq 0x00007fd70923a9a6
0.00% ↘ │ 0x00007fd70923aa56: or $0xa,%r10d ;*ior ; - com.google.re2j.Utils::emptyOpContext@27 (line 180)
│ ; - com.google.re2j.Machine::match@326 (line 245)
0.00% ╰ 0x00007fd70923aa5a: jmpq 0x00007fd70923a9ba
0x00007fd70923aa5f: nop
0.00% 0x00007fd70923aa60: mov %r9d,0x50(%rsp)
0.02% 0.00% 0x00007fd70923aa65: jmpq 0x00007fd70923acd2
0x00007fd70923aa6a: mov 0x50(%rsp),%r11d
0x00007fd70923aa6f: add $0x2,%r11d
0x00007fd70923aa73: mov %r11d,0x50(%rsp)
0.00% 0x00007fd70923aa78: mov 0x50(%rsp),%r11d
0.00% 0x00007fd70923aa7d: inc %r11d
0x00007fd70923aa80: mov %r11d,0x3c(%rsp)
0x00007fd70923aa85: jmp 0x00007fd70923aab2
0x00007fd70923aa87: mov 0x50(%rsp),%r11d
0x00007fd70923aa8c: add $0x2,%r11d
0x00007fd70923aa90: mov %r11d,0x3c(%rsp)
0x00007fd70923aa95: jmp 0x00007fd70923aaa5
0x00007fd70923aa97: mov 0x50(%rsp),%r11d
0x00007fd70923aa9c: add $0x2,%r11d
0x00007fd70923aaa0: mov %r11d,0x50(%rsp)
0x00007fd70923aaa5: mov 0x50(%rsp),%r11d
....................................................................................................
33.95% 35.21% <total for region 2>
....[Hottest Regions]...............................................................................
47.30% 45.74% C2, level 4 com.google.re2j.Machine::step, version 493 (895 bytes)
33.95% 35.21% C2, level 4 com.google.re2j.Machine::match, version 534 (978 bytes)
7.48% 8.76% C2, level 4 com.google.re2j.Machine::step, version 493 (342 bytes)
6.17% 6.59% C2, level 4 com.google.re2j.Machine::step, version 493 (108 bytes)
0.77% 0.71% C2, level 4 com.google.re2j.Machine::match, version 534 (190 bytes)
0.34% 0.03% C2, level 4 com.google.re2j.RE2::match, version 551 (64 bytes)
0.27% 0.27% [kernel.kallsyms] [unknown] (0 bytes)
0.20% 0.10% C2, level 4 com.google.re2j.Machine::match, version 534 (178 bytes)
0.18% 0.12% C2, level 4 com.google.re2j.Machine::match, version 534 (276 bytes)
0.17% 0.07% C2, level 4 com.google.re2j.RE2::match, version 551 (33 bytes)
0.14% 0.10% C2, level 4 com.google.re2j.Machine::match, version 534 (268 bytes)
0.14% 0.06% C2, level 4 com.google.re2j.RE2::match, version 551 (8 bytes)
0.13% 0.10% C2, level 4 java.util.Collections::shuffle, version 559 (94 bytes)
0.10% 0.00% [kernel.kallsyms] [unknown] (51 bytes)
0.09% 0.00% [kernel.kallsyms] [unknown] (2 bytes)
0.09% 0.11% C2, level 4 com.google.re2j.RE2::match, version 551 (8 bytes)
0.08% 0.03% [kernel.kallsyms] [unknown] (28 bytes)
0.07% 0.01% [kernel.kallsyms] [unknown] (28 bytes)
0.06% 0.02% [kernel.kallsyms] [unknown] (27 bytes)
0.05% C2, level 4 com.google.re2j.RE2::match, version 551 (68 bytes)
2.20% 1.94% <...other 370 warm regions...>
....................................................................................................
100.00% 100.00% <totals>
....[Hottest Methods (after inlining)]..............................................................
60.95% 61.09% C2, level 4 com.google.re2j.Machine::step, version 493
35.41% 36.29% C2, level 4 com.google.re2j.Machine::match, version 534
1.36% 1.13% [kernel.kallsyms] [unknown]
1.11% 0.38% C2, level 4 com.google.re2j.RE2::match, version 551
0.29% 0.12% C2, level 4 java.util.Collections::shuffle, version 559
0.10% 0.08% C2, level 4 com.github.arnaudroger.re2j.generated.Re2jFindRegex_testExp1_jmhTest::testExp1_thrpt_jmhStub, version 594
0.09% 0.04% [vdso] [unknown]
0.04% 0.10% libjvm.so _ZN13RelocIterator10initializeEP7nmethodPhS2_
0.03% 0.03% libjvm.so _ZN10fileStream5writeEPKcm
0.03% 0.04% libc-2.26.so _IO_fwrite
0.03% 0.01% libpthread-2.26.so __libc_write
0.03% 0.03% libjvm.so _ZN12outputStream15update_positionEPKcm
0.03% 0.06% libc-2.26.so vfprintf
0.03% 0.05% hsdis-amd64.so [unknown]
0.02% 0.03% libpthread-2.26.so __pthread_enable_asynccancel
0.02% 0.00% libjvm.so _ZN12stringStream5writeEPKcm
0.02% C2, level 4 org.openjdk.jmh.infra.Blackhole::consume, version 552
0.01% 0.02% libc-2.26.so __strlen_avx2
0.01% libpthread-2.26.so __pthread_getspecific
0.01% libjvm.so _ZN2os15elapsed_counterEv
0.35% 0.23% <...other 55 warm methods...>
....................................................................................................
100.00% 99.73% <totals>
....[Distribution by Source]........................................................................
97.89% 97.96% C2, level 4
1.36% 1.13% [kernel.kallsyms]
0.38% 0.43% libjvm.so
0.14% 0.30% libc-2.26.so
0.09% 0.04% [vdso]
0.08% 0.06% libpthread-2.26.so
0.03% 0.05% hsdis-amd64.so
0.01% 0.01% interpreter
0.00% 0.00% runtime stub
0.00% perf-15164.map
....................................................................................................
100.00% 100.00% <totals>
# Run complete. Total time: 00:00:45
Benchmark Mode Cnt Score Error Units
Re2jFindRegex.testExp1 thrpt 20 22302.126 ± 180.073 ops/s
Re2jFindRegex.testExp1:·asm thrpt NaN ---
| 95.033592 | 150 | 0.395807 |
4d30830cb60becf849eb63421691395746cc73b5 | 650 | asm | Assembly | oeis/343/A343223.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/343/A343223.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/343/A343223.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A343223: a(n) = gcd(A003415(n), A003415(sigma(n))-n), where A003415 is the arithmetic derivative, and sigma is the sum of divisors of n.
; Submitted by Christian Krause
; 1,1,1,1,1,5,1,12,2,1,1,4,1,3,1,1,1,1,1,3,1,1,1,4,2,15,1,32,1,1,1,1,1,1,1,4,1,3,1,1,1,1,1,16,13,5,1,16,1,1,5,1,1,1,1,4,1,1,1,4,1,3,1,3,1,1,1,1,1,1,1,1,1,3,1,16,3,1,1,1,1,1,1,4,1,3,1,4,1,3,1,48,1,1,1,8,1,1,1,2
mov $1,$0
seq $0,342926 ; a(n) = A003415(sigma(n)) - n, where A003415 is the arithmetic derivative, and sigma is the sum of divisors of n.
add $1,1
seq $1,3415 ; a(n) = n' = arithmetic derivative of n: a(0) = a(1) = 0, a(prime) = 1, a(mn) = m*a(n) + n*a(m).
gcd $0,$1
| 65 | 209 | 0.609231 |
099e622fa800b19ca1c5661082dcf21476b03be4 | 728 | asm | Assembly | programs/oeis/178/A178248.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/178/A178248.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/178/A178248.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A178248: a(n) = 12^n + 1.
; 2,13,145,1729,20737,248833,2985985,35831809,429981697,5159780353,61917364225,743008370689,8916100448257,106993205379073,1283918464548865,15407021574586369,184884258895036417,2218611106740436993,26623333280885243905,319479999370622926849,3833759992447475122177,46005119909369701466113,552061438912436417593345,6624737266949237011120129,79496847203390844133441537,953962166440690129601298433,11447545997288281555215581185,137370551967459378662586974209,1648446623609512543951043690497,19781359483314150527412524285953,237376313799769806328950291431425,2848515765597237675947403497177089,34182189187166852111368841966125057,410186270246002225336426103593500673
mov $1,12
pow $1,$0
add $1,1
mov $0,$1
| 91 | 659 | 0.903846 |
2fd4f9ac103c54bf790fa19e651380612773b287 | 8,456 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0xca_notsx.log_21829_676.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0xca_notsx.log_21829_676.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0xca_notsx.log_21829_676.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 %r8
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x101d4, %rsi
lea addresses_WT_ht+0x8ee9, %rdi
nop
nop
nop
nop
nop
inc %r9
mov $92, %rcx
rep movsl
nop
nop
nop
nop
xor $25035, %rax
lea addresses_WT_ht+0x1d46b, %r13
nop
nop
nop
and $5591, %rax
mov $0x6162636465666768, %rcx
movq %rcx, %xmm0
movups %xmm0, (%r13)
nop
nop
sub $16084, %rcx
lea addresses_normal_ht+0x165ac, %r9
nop
add %r8, %r8
mov $0x6162636465666768, %r13
movq %r13, (%r9)
xor %r13, %r13
lea addresses_WT_ht+0xd2f4, %rsi
lea addresses_WC_ht+0x4f54, %rdi
clflush (%rdi)
nop
xor %rdx, %rdx
mov $114, %rcx
rep movsl
xor %rcx, %rcx
lea addresses_WT_ht+0x11914, %r13
nop
sub $63405, %rsi
mov $0x6162636465666768, %r8
movq %r8, %xmm1
movups %xmm1, (%r13)
nop
nop
nop
and $46102, %rax
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
// Load
lea addresses_WT+0x14c54, %r9
dec %rbx
mov (%r9), %dx
nop
nop
nop
add $39285, %rbx
// REPMOV
lea addresses_A+0xda8c, %rsi
lea addresses_normal+0x163d4, %rdi
nop
cmp $47506, %r9
mov $119, %rcx
rep movsl
nop
nop
nop
nop
nop
sub $9071, %rdx
// Store
lea addresses_UC+0xc0d4, %rcx
nop
nop
nop
add %rbx, %rbx
mov $0x5152535455565758, %r9
movq %r9, %xmm0
movups %xmm0, (%rcx)
sub $58196, %rdi
// Store
lea addresses_normal+0x163d4, %r11
nop
xor %rdx, %rdx
movl $0x51525354, (%r11)
nop
xor $60373, %r11
// Store
lea addresses_normal+0x163d4, %rsi
nop
nop
nop
nop
add $55511, %rdx
movw $0x5152, (%rsi)
nop
nop
add %rdx, %rdx
// Store
lea addresses_normal+0x163d4, %rdi
nop
nop
dec %rsi
mov $0x5152535455565758, %rcx
movq %rcx, (%rdi)
nop
cmp $7047, %rdi
// Store
lea addresses_RW+0x135d4, %r11
clflush (%r11)
nop
nop
nop
and $14730, %rbx
movl $0x51525354, (%r11)
nop
xor %r11, %r11
// Store
lea addresses_D+0x19ed4, %rdx
xor %rcx, %rcx
movw $0x5152, (%rdx)
add $5529, %r8
// Store
lea addresses_WT+0x16ecc, %rsi
nop
nop
nop
nop
nop
xor %rdi, %rdi
movl $0x51525354, (%rsi)
nop
nop
nop
nop
nop
sub $62045, %r9
// Store
mov $0xc77, %r11
nop
nop
cmp %rdx, %rdx
movb $0x51, (%r11)
nop
nop
add %rcx, %rcx
// Store
mov $0x3f2a620000000b44, %r14
nop
nop
nop
inc %rdx
movw $0x5152, (%r14)
// Exception!!!
nop
mov (0), %rbx
nop
add $15904, %r8
// Store
lea addresses_UC+0x177d4, %r8
nop
inc %rsi
movl $0x51525354, (%r8)
nop
nop
add %r14, %r14
// Store
lea addresses_WC+0x18874, %r8
nop
nop
nop
nop
nop
inc %rdx
movw $0x5152, (%r8)
xor %rdi, %rdi
// Faulty Load
lea addresses_normal+0x163d4, %rdi
nop
cmp $11664, %r8
movb (%rdi), %dl
lea oracles, %r14
and $0xff, %rdx
shlq $12, %rdx
mov (%r14,%rdx,1), %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r8
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_WT', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal', 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_UC', 'size': 16, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 4, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_normal', 'size': 2, 'AVXalign': True}}
{'OP': 'STOR', 'dst': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 8, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_RW', 'size': 4, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_D', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WT', 'size': 4, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_P', 'size': 1, 'AVXalign': True}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_NC', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': True, 'type': 'addresses_UC', 'size': 4, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WC', 'size': 2, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False}}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 31.088235 | 2,999 | 0.649361 |
30494bb6fcc7b7c65356647cb3882e930d768d6b | 595 | nasm | Assembly | Project-Einstein/src/E-Assembly/src/max.nasm | FelixLuciano/Elements-of-Computing-Systems | bf36e4f4bbaa75aebefd1b864514a146b371495d | [
"MIT"
] | null | null | null | Project-Einstein/src/E-Assembly/src/max.nasm | FelixLuciano/Elements-of-Computing-Systems | bf36e4f4bbaa75aebefd1b864514a146b371495d | [
"MIT"
] | null | null | null | Project-Einstein/src/E-Assembly/src/max.nasm | FelixLuciano/Elements-of-Computing-Systems | bf36e4f4bbaa75aebefd1b864514a146b371495d | [
"MIT"
] | 1 | 2022-02-20T21:45:28.000Z | 2022-02-20T21:45:28.000Z | ; Arquivo: Max.nasm
; Curso: Elementos de Sistemas
; Criado por: Luciano Soares
; Data: 27/03/2017
; Log :
; - Rafael Corsi portado para Z01
;
; Calcula R2 = max(R0, R1) (R0,R1,R2 se referem a RAM[0],RAM[1],RAM[2])
; ou seja, o maior valor que estiver, ou em R0 ou R1 sera copiado para R2
; Estamos considerando número inteiros
leaw $0, %A
movw (%A), %D
lead $1, %A
subw (%A), %D, %D
IF:
lead $ELSE, %A
jge %D
nop
leaw $0, %A
movw (%A), %D
leaw $2, %A
movw %D, (%A)
leaw $ENDINF, %A
jmp
nop
ELSE:
leaw $1, %A
movw (%A), %D
leaw $2, %A
movw %D, (%A)
ENDIF:
| 17 | 73 | 0.584874 |
e4cdd7a96084e3321c6633d2e10d1061a82141bf | 550 | asm | Assembly | oeis/017/A017009.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/017/A017009.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/017/A017009.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A017009: a(n) = (7*n + 2)^5.
; 32,59049,1048576,6436343,24300000,69343957,164916224,345025251,656356768,1160290625,1934917632,3077056399,4704270176,6956883693,10000000000,14025517307,19254145824,25937424601,34359738368,44840334375,57735339232,73439775749,92389579776,115063617043,141985700000,173726604657,210906087424,254194901951,304316815968,362050628125,428232184832,503756397099,589579257376,686719856393,796262400000,919358226007,1057227821024,1211162837301,1382528109568,1572763671875,1783386774432,2015993900449
mul $0,7
add $0,2
pow $0,5
| 78.571429 | 490 | 0.863636 |
4b642dcda1c63ac43ee0cfa61d920c60a1ee9d3c | 7,165 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0_notsx.log_21829_1048.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_1048.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_1048.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 %r13
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xb102, %rsi
lea addresses_A_ht+0x1d552, %rdi
xor %r9, %r9
mov $63, %rcx
rep movsb
nop
nop
nop
nop
and $23788, %rax
lea addresses_normal_ht+0x9efa, %rsi
lea addresses_WT_ht+0x2, %rdi
nop
nop
nop
nop
cmp %r12, %r12
mov $121, %rcx
rep movsb
nop
nop
sub %rdi, %rdi
lea addresses_WC_ht+0x1bb82, %rsi
lea addresses_UC_ht+0x11882, %rdi
nop
nop
sub $52756, %r12
mov $42, %rcx
rep movsl
nop
nop
nop
nop
nop
add %rcx, %rcx
lea addresses_UC_ht+0x3502, %rsi
lea addresses_A_ht+0xdb02, %rdi
clflush (%rsi)
and $33110, %r11
mov $71, %rcx
rep movsb
nop
nop
xor %r11, %r11
lea addresses_WT_ht+0x3d82, %r11
and %r12, %r12
mov $0x6162636465666768, %rdi
movq %rdi, %xmm6
vmovups %ymm6, (%r11)
nop
nop
nop
nop
sub $64304, %rsi
lea addresses_WT_ht+0x19302, %r12
nop
nop
nop
nop
nop
cmp $30127, %r9
mov (%r12), %rdi
nop
nop
nop
nop
cmp $7656, %rdi
lea addresses_normal_ht+0x17e02, %rsi
lea addresses_normal_ht+0x5b02, %rdi
nop
nop
nop
nop
nop
sub $22052, %r13
mov $124, %rcx
rep movsq
cmp $1447, %r9
lea addresses_UC_ht+0x1d25a, %r11
dec %rcx
and $0xffffffffffffffc0, %r11
vmovntdqa (%r11), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $1, %xmm2, %rdi
nop
nop
nop
nop
nop
xor $55312, %rax
lea addresses_A_ht+0x9772, %rsi
lea addresses_UC_ht+0x4dc0, %rdi
cmp $14203, %rax
mov $31, %rcx
rep movsb
nop
nop
nop
cmp %rcx, %rcx
lea addresses_D_ht+0x1d202, %rsi
nop
xor %r13, %r13
movb (%rsi), %r12b
inc %r12
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r9
push %rax
push %rcx
push %rdx
push %rsi
// Store
lea addresses_UC+0xb8b2, %rax
nop
inc %rdx
mov $0x5152535455565758, %rcx
movq %rcx, %xmm1
movups %xmm1, (%rax)
nop
nop
nop
dec %rsi
// Store
mov $0x34e, %rax
cmp %r9, %r9
movb $0x51, (%rax)
nop
sub $14846, %r11
// Faulty Load
lea addresses_A+0x6b02, %r9
nop
nop
nop
nop
nop
and %rax, %rax
movntdqa (%r9), %xmm6
vpextrq $0, %xmm6, %rcx
lea oracles, %r12
and $0xff, %rcx
shlq $12, %rcx
mov (%r12,%rcx,1), %rcx
pop %rsi
pop %rdx
pop %rcx
pop %rax
pop %r9
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 1}}
[Faulty Load]
{'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 16, 'NT': True, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 7}}
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32, 'NT': True, 'same': False, 'congruent': 2}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'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
*/
| 36.005025 | 2,999 | 0.659177 |
8eb919f5216a318bba2547385faa6d89f4bb03ac | 384 | asm | Assembly | hello.asm | smirzaei/systems-programming-class | f63c9ccc5305a26a0388e6cb6b374cb93a17a30c | [
"MIT"
] | null | null | null | hello.asm | smirzaei/systems-programming-class | f63c9ccc5305a26a0388e6cb6b374cb93a17a30c | [
"MIT"
] | null | null | null | hello.asm | smirzaei/systems-programming-class | f63c9ccc5305a26a0388e6cb6b374cb93a17a30c | [
"MIT"
] | null | null | null | ; Display Hello world!
STK SEGMENT
DW 32 DUP(?)
STK ENDS
DTS SEGMENT
P1 DB 'Hello, World!$'
DTS ENDS
CDS SEGMENT
ASSUME CS:CDS,SS:STK,DS:DTS
MAIN PROC FAR
MOV AX,SEG DTS
MOV DS,AX
MOV AH,09
MOV DX,OFFSET P1
INT 21H
MOV AH,4CH
INT 21H
MAIN ENDP
CDS ENDS
END MAIN
| 18.285714 | 35 | 0.505208 |
aa921279340ebec2d2f888e0463e924ba76f67b6 | 1,239 | asm | Assembly | programs/oeis/246/A246306.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/246/A246306.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/246/A246306.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A246306: Numbers k such that cos(k) > cos(k+1) < cos(k+2) < cos(k+3) > cos(k+4).
; 0,6,13,19,25,32,38,44,50,57,63,69,76,82,88,94,101,107,113,120,126,132,138,145,151,157,164,170,176,182,189,195,201,207,214,220,226,233,239,245,251,258,264,270,277,283,289,295,302,308,314,321,327,333,339,346,352,358,365,371,377,383,390,396,402,409,415,421,427,434,440,446,453,459,465,471,478,484,490,497,503,509,515,522,528,534,540,547,553,559,566,572,578,584,591,597,603,610,616,622,628,635,641,647,654,660,666,672,679,685,691,698,704,710,716,723,729,735,742,748,754,760,767,773,779,786,792,798,804,811,817,823,830,836,842,848,855,861,867,874,880,886,892,899,905,911,917,924,930,936,943,949,955,961,968,974,980,987,993,999,1005,1012,1018,1024,1031,1037,1043,1049,1056,1062,1068,1075,1081,1087,1093,1100,1106,1112,1119,1125,1131,1137,1144,1150,1156,1163,1169,1175,1181,1188,1194,1200,1207,1213,1219,1225,1232,1238,1244,1250,1257,1263,1269,1276,1282,1288,1294,1301,1307,1313,1320,1326,1332,1338,1345,1351,1357,1364,1370,1376,1382,1389,1395,1401,1408,1414,1420,1426,1433,1439,1445,1452,1458,1464,1470,1477,1483,1489,1496,1502,1508,1514,1521,1527,1533,1540,1546,1552,1558,1565
mul $0,2
add $0,1
cal $0,22853 ; a(n) = integer nearest n*Pi.
mov $1,$0
sub $1,3
| 137.666667 | 1,073 | 0.740113 |
5d5b06f6b49ab27287c425799db5e1bc0a12d4d4 | 4,346 | asm | Assembly | src/titleoptions_data.asm | NotImplementedLife/rubik | e0bf62e069682273f8679f9297decd66079aa9c3 | [
"MIT"
] | 4 | 2021-06-12T06:07:57.000Z | 2022-01-31T04:39:08.000Z | src/titleoptions_data.asm | NotImplementedLife/rubik | e0bf62e069682273f8679f9297decd66079aa9c3 | [
"MIT"
] | null | null | null | src/titleoptions_data.asm | NotImplementedLife/rubik | e0bf62e069682273f8679f9297decd66079aa9c3 | [
"MIT"
] | null | null | null | SECTION "TITLE OPTIONS GFX", ROM0
TitleOptionsTiles::
DB $1F, $1F, $1E, $1E, $1C, $1C, $18, $18, $1F, $1F, $1F, $1F, $1F, $1F, $18, $18
DB $FF, $FF, $FF, $FF, $7F, $7F, $3F, $3F, $FF, $FF, $FF, $FF, $FF, $FF, $3F, $3F
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
DB $FF, $FF, $FF, $FF, $E6, $E6, $E6, $E6, $E2, $E2, $E0, $E0, $E4, $E4, $E6, $E6
DB $FF, $FF, $FF, $FF, $78, $78, $78, $78, $73, $73, $73, $73, $73, $73, $78, $78
DB $FF, $FF, $FF, $FF, $78, $78, $71, $71, $39, $39, $38, $38, $39, $39, $79, $79
DB $FF, $FF, $FF, $FF, $3D, $3D, $9D, $9D, $9C, $9C, $3C, $3C, $7C, $7C, $3C, $3C
DB $FF, $FF, $FF, $FF, $EF, $EF, $EF, $EF, $CF, $CF, $0F, $0F, $CF, $CF, $CE, $CE
DB $FF, $FF, $FF, $FF, $CF, $CF, $8F, $8F, $AF, $AF, $A7, $A7, $07, $07, $73, $73
DB $FF, $FF, $FF, $FF, $9F, $9F, $9F, $9F, $9F, $9F, $9F, $9F, $9F, $9F, $9F, $9F
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
DB $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0
DB $1C, $1C, $1E, $1E, $1F, $1F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
DB $7F, $7F, $FF, $FF, $FF, $FF, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
DB $FF, $FF, $FF, $FF, $FF, $FF, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
DB $E6, $E6, $FF, $FF, $FF, $FF, $02, $02, $03, $03, $00, $00, $00, $00, $00, $00
DB $78, $78, $FF, $FF, $FF, $FF, $AB, $AB, $F7, $F7, $EB, $EA, $5F, $5F, $0B, $0B
DB $79, $79, $FF, $FF, $FF, $FF, $FF, $88, $FF, $D5, $FF, $A2, $FF, $D5, $FF, $88
DB $9C, $9C, $FF, $FF, $FF, $FF, $FA, $8A, $FF, $57, $FF, $2A, $FF, $55, $FF, $88
DB $CE, $CE, $FF, $FF, $FF, $FF, $AB, $AB, $FF, $FF, $EE, $EE, $FF, $7F, $FA, $9A
DB $FB, $FB, $FF, $FF, $FF, $FF, $AA, $AA, $F7, $F7, $EA, $EA, $D5, $D5, $AA, $AA
DB $83, $83, $FF, $FF, $FF, $FF, $A8, $A8, $70, $70, $A0, $A0, $40, $40, $80, $80
DB $FF, $FF, $FF, $FF, $FF, $FF, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
DB $FF, $FF, $FF, $FF, $FF, $FF, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
DB $E0, $E0, $E0, $E0, $E0, $E0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
DB $1F, $1F, $1E, $1E, $1C, $1C, $18, $18, $1F, $1F, $1F, $1F, $1F, $1F, $18, $18
DB $FF, $FF, $FF, $FF, $78, $78, $39, $39, $F9, $F9, $F0, $F0, $F9, $F9, $39, $39
DB $FF, $FF, $FF, $FF, $3C, $3C, $F8, $F8, $FC, $FC, $3C, $3C, $FC, $FC, $FC, $FC
DB $FF, $FF, $FF, $FF, $1F, $1F, $CF, $CF, $CF, $CF, $1F, $1F, $BF, $BF, $9F, $9F
DB $FF, $FF, $FF, $FF, $07, $07, $3F, $3F, $3F, $3F, $0F, $0F, $3F, $3F, $3F, $3F
DB $FF, $FF, $FF, $FF, $83, $83, $9F, $9F, $9F, $9F, $87, $87, $9F, $9F, $9F, $9F
DB $FF, $FF, $FD, $FD, $F0, $F0, $E7, $E7, $E7, $E7, $F0, $F0, $FE, $FE, $F6, $F6
DB $FF, $FF, $FF, $FF, $F0, $F0, $7C, $7C, $FC, $FC, $FC, $FC, $7C, $7C, $7C, $7C
DB $FF, $FF, $FF, $FF, $39, $39, $FD, $FD, $FC, $FC, $FE, $FE, $FE, $FE, $FE, $FE
DB $FF, $FF, $FF, $FF, $9C, $9C, $BC, $BC, $3C, $3C, $7C, $7C, $7C, $7C, $7C, $7C
DB $FF, $FF, $FF, $FF, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE
DB $FF, $FF, $FF, $FF, $0F, $0F, $7F, $7F, $7F, $7F, $1F, $1F, $7F, $7F, $7F, $7F
DB $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0
DB $1C, $1C, $1E, $1E, $1F, $1F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
DB $79, $79, $FF, $FF, $FF, $FF, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
DB $FC, $FC, $FF, $FF, $FF, $FF, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
DB $CF, $CF, $FF, $FF, $FF, $FF, $02, $02, $03, $03, $00, $00, $00, $00, $00, $00
DB $07, $07, $FF, $FF, $FF, $FF, $AB, $AB, $F7, $F7, $EB, $EA, $5F, $5F, $0B, $0B
DB $83, $83, $FF, $FF, $FF, $FF, $FF, $88, $FF, $D5, $FF, $A2, $FF, $D5, $FF, $88
DB $E8, $E8, $FF, $FF, $FF, $FF, $FA, $8A, $FF, $57, $FF, $2A, $FF, $55, $FF, $88
DB $FC, $FC, $FF, $FF, $FF, $FF, $AB, $AB, $FF, $FF, $EE, $EE, $FF, $7F, $FA, $9A
DB $FE, $FE, $FF, $FF, $FF, $FF, $AA, $AA, $F7, $F7, $EA, $EA, $D5, $D5, $AA, $AA
DB $7C, $7C, $FF, $FF, $FF, $FF, $A8, $A8, $70, $70, $A0, $A0, $40, $40, $80, $80
DB $1E, $1E, $FF, $FF, $FF, $FF, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
DB $0F, $0F, $FF, $FF, $FF, $FF, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
DB $E0, $E0, $E0, $E0, $E0, $E0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
TitleOptionsTilesEnd::
| 71.245902 | 81 | 0.421307 |
b75320e30344145fb3b2614e0f2e00834e952dab | 1,107 | asm | Assembly | programs/oeis/285/A285077.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/285/A285077.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/285/A285077.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A285077: Positions of 0 in A285076; complement of A285078.
; 2,3,5,7,8,10,12,13,15,17,19,20,22,24,25,27,29,31,32,34,36,37,39,41,42,44,46,48,49,51,53,54,56,58,60,61,63,65,66,68,70,71,73,75,77,78,80,82,83,85,87,89,90,92,94,95,97,99,101,102,104,106,107,109,111,112,114,116,118,119,121,123,124,126,128,130,131,133,135,136,138,140,141,143,145,147,148,150,152,153,155,157,159,160,162,164,165,167,169,171,172,174,176,177,179,181,182,184,186,188,189,191,193,194,196,198,200,201,203,205,206,208,210,211,213,215,217,218,220,222,223,225,227,229,230,232,234,235,237,239,240,242,244,246,247,249,251,252,254,256,258,259,261,263,264,266,268,270,271,273,275,276,278,280,281,283,285,287,288,290,292,293,295,297,299,300,302,304,305,307,309,310,312,314,316,317,319,321,322,324,326,328,329,331,333,334,336,338,340,341,343,345,346,348,350,351,353,355,357,358,360,362,363,365,367,369,370,372,374,375,377,379,380,382,384,386,387,389,391,392,394,396,398,399,401,403,404,406,408,409,411,413,415,416,418,420,421,423,425,427
mov $2,$0
pow $0,2
div $0,2
lpb $0,1
add $1,1
sub $0,$1
sub $0,$1
trn $0,1
lpe
add $1,2
add $1,$2
| 73.8 | 938 | 0.71093 |
486aa9ab5914741d4f4aa7bffc11649f217cdb0f | 73,724 | asm | Assembly | Palmtree.Math.Core.Implements/vs_build/x86_Debug/pmc_bitwiseor.asm | rougemeilland/Palmtree.Math.Core.Implements | 52f4f6c765d16c9b0baf1fd212c61a33daae138c | [
"MIT"
] | null | null | null | Palmtree.Math.Core.Implements/vs_build/x86_Debug/pmc_bitwiseor.asm | rougemeilland/Palmtree.Math.Core.Implements | 52f4f6c765d16c9b0baf1fd212c61a33daae138c | [
"MIT"
] | null | null | null | Palmtree.Math.Core.Implements/vs_build/x86_Debug/pmc_bitwiseor.asm | rougemeilland/Palmtree.Math.Core.Implements | 52f4f6c765d16c9b0baf1fd212c61a33daae138c | [
"MIT"
] | null | null | null | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
TITLE Z:\Sources\Lunor\Repos\rougemeilland\Palmtree.Math.Core.Implements\Palmtree.Math.Core.Implements\pmc_bitwiseor.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
msvcjmc SEGMENT
__7B7A869E_ctype@h DB 01H
__457DD326_basetsd@h DB 01H
__4384A2D9_corecrt_memcpy_s@h DB 01H
__4E51A221_corecrt_wstring@h DB 01H
__2140C079_string@h DB 01H
__1887E595_winnt@h DB 01H
__9FC7C64B_processthreadsapi@h DB 01H
__FA470AEC_memoryapi@h DB 01H
__F37DAFF1_winerror@h DB 01H
__7A450CCC_winbase@h DB 01H
__B4B40122_winioctl@h DB 01H
__86261D59_stralign@h DB 01H
__7B8DBFC3_pmc_uint_internal@h DB 01H
__6B0481B0_pmc_inline_func@h DB 01H
__AC60EF90_pmc_bitwiseor@c DB 01H
msvcjmc ENDS
PUBLIC _Initialize_BitwiseOr
PUBLIC _PMC_BitwiseOr_I_X@12
PUBLIC _PMC_BitwiseOr_L_X@16
PUBLIC _PMC_BitwiseOr_X_I@12
PUBLIC _PMC_BitwiseOr_X_L@16
PUBLIC _PMC_BitwiseOr_X_X@12
PUBLIC __JustMyCode_Default
EXTRN _CheckBlockLight:PROC
EXTRN _AllocateNumber:PROC
EXTRN _CommitNumber:PROC
EXTRN _CheckNumber:PROC
EXTRN _DuplicateNumber:PROC
EXTRN _From_I_Imp:PROC
EXTRN _From_L_Imp:PROC
EXTRN @_RTC_CheckStackVars@8:PROC
EXTRN @__CheckForDebuggerJustMyCode@4:PROC
EXTRN __RTC_CheckEsp:PROC
EXTRN __RTC_InitBase:PROC
EXTRN __RTC_Shutdown:PROC
EXTRN __aullshr:PROC
EXTRN _number_zero:BYTE
; COMDAT rtc$TMZ
rtc$TMZ SEGMENT
__RTC_Shutdown.rtc$TMZ DD FLAT:__RTC_Shutdown
rtc$TMZ ENDS
; COMDAT rtc$IMZ
rtc$IMZ SEGMENT
__RTC_InitBase.rtc$IMZ DD FLAT:__RTC_InitBase
rtc$IMZ ENDS
; Function compile flags: /Odt
; COMDAT __JustMyCode_Default
_TEXT SEGMENT
__JustMyCode_Default PROC ; COMDAT
push ebp
mov ebp, esp
pop ebp
ret 0
__JustMyCode_Default ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_bitwiseor.c
_TEXT SEGMENT
_nw_light_check_code$1 = -84 ; size = 4
_w_bit_count$2 = -76 ; size = 4
_v_bit_count$3 = -72 ; size = 4
_u_bit_count$4 = -68 ; size = 4
_w_light_check_code$5 = -60 ; size = 4
_w_bit_count$6 = -52 ; size = 4
_v_bit_count$7 = -48 ; size = 4
_w_light_check_code$8 = -40 ; size = 4
_w_bit_count$9 = -32 ; size = 4
_v_bit_count$10 = -28 ; size = 4
_v_lo$11 = -24 ; size = 4
_v_hi$12 = -16 ; size = 4
_u_bit_count$13 = -8 ; size = 4
_result$ = -4 ; size = 4
_u$ = 8 ; size = 4
_v$ = 12 ; size = 8
_w$ = 20 ; size = 4
_PMC_BitwiseOr_X_L_Imp PROC
; 275 : {
push ebp
mov ebp, esp
sub esp, 88 ; 00000058H
push edi
lea edi, DWORD PTR [ebp-88]
mov ecx, 22 ; 00000016H
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, OFFSET __AC60EF90_pmc_bitwiseor@c
call @__CheckForDebuggerJustMyCode@4
; 276 : PMC_STATUS_CODE result;
; 277 : if (u->IS_ZERO)
mov eax, DWORD PTR _u$[ebp]
mov ecx, DWORD PTR [eax+24]
shr ecx, 1
and ecx, 1
je SHORT $LN2@PMC_Bitwis
; 278 : {
; 279 : // u が 0 である場合
; 280 : if (v == 0)
mov edx, DWORD PTR _v$[ebp]
or edx, DWORD PTR _v$[ebp+4]
jne SHORT $LN4@PMC_Bitwis
; 281 : {
; 282 : // v が 0 である場合
; 283 : *w = &number_zero;
mov eax, DWORD PTR _w$[ebp]
mov DWORD PTR [eax], OFFSET _number_zero
; 284 : }
jmp SHORT $LN5@PMC_Bitwis
$LN4@PMC_Bitwis:
; 285 : else
; 286 : {
; 287 : // v が 0 でない場合
; 288 : if ((result = From_L_Imp(v, w)) != PMC_STATUS_OK)
mov ecx, DWORD PTR _w$[ebp]
push ecx
mov edx, DWORD PTR _v$[ebp+4]
push edx
mov eax, DWORD PTR _v$[ebp]
push eax
call _From_L_Imp
add esp, 12 ; 0000000cH
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN5@PMC_Bitwis
; 289 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp $LN1@PMC_Bitwis
$LN5@PMC_Bitwis:
; 290 : }
; 291 : }
jmp $LN3@PMC_Bitwis
$LN2@PMC_Bitwis:
; 292 : else if (v == 0)
mov ecx, DWORD PTR _v$[ebp]
or ecx, DWORD PTR _v$[ebp+4]
jne SHORT $LN7@PMC_Bitwis
; 293 : {
; 294 : // v が 0 である場合
; 295 : if ((result = DuplicateNumber(u, w)) != PMC_STATUS_OK)
mov edx, DWORD PTR _w$[ebp]
push edx
mov eax, DWORD PTR _u$[ebp]
push eax
call _DuplicateNumber
add esp, 8
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN9@PMC_Bitwis
; 296 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp $LN1@PMC_Bitwis
$LN9@PMC_Bitwis:
; 297 : }
jmp $LN3@PMC_Bitwis
$LN7@PMC_Bitwis:
; 298 : else
; 299 : {
; 300 : // u と v がともに 0 ではない場合
; 301 : if (__UNIT_TYPE_BIT_COUNT < sizeof(v) * 8)
mov ecx, 1
test ecx, ecx
je $LN10@PMC_Bitwis
; 302 : {
; 303 : // _UINT64_T が 1 ワードで表現しきれない場合
; 304 : __UNIT_TYPE u_bit_count = u->UNIT_BIT_COUNT;
mov edx, DWORD PTR _u$[ebp]
mov eax, DWORD PTR [edx+12]
mov DWORD PTR _u_bit_count$13[ebp], eax
; 305 : _UINT32_T v_hi;
; 306 : _UINT32_T v_lo = _FROMDWORDTOWORD(v, &v_hi);
lea ecx, DWORD PTR _v_hi$12[ebp]
push ecx
mov edx, DWORD PTR _v$[ebp+4]
push edx
mov eax, DWORD PTR _v$[ebp]
push eax
call __FROMDWORDTOWORD
add esp, 12 ; 0000000cH
mov DWORD PTR _v_lo$11[ebp], eax
; 307 : if (v_hi == 0)
cmp DWORD PTR _v_hi$12[ebp], 0
jne $LN12@PMC_Bitwis
; 308 : {
; 309 : // v の値が 32bit で表現可能な場合
; 310 : __UNIT_TYPE v_bit_count = sizeof(v_lo) * 8 - _LZCNT_ALT_32(v_lo);
mov ecx, DWORD PTR _v_lo$11[ebp]
push ecx
call __LZCNT_ALT_32
add esp, 4
mov edx, 32 ; 00000020H
sub edx, eax
mov DWORD PTR _v_bit_count$10[ebp], edx
; 311 : __UNIT_TYPE w_bit_count = _MAXIMUM_UNIT(u_bit_count, v_bit_count);
mov eax, DWORD PTR _v_bit_count$10[ebp]
push eax
mov ecx, DWORD PTR _u_bit_count$13[ebp]
push ecx
call __MAXIMUM_UNIT
add esp, 8
mov DWORD PTR _w_bit_count$9[ebp], eax
; 312 : __UNIT_TYPE w_light_check_code;
; 313 : if ((result = AllocateNumber(w, w_bit_count, &w_light_check_code)) != PMC_STATUS_OK)
lea edx, DWORD PTR _w_light_check_code$8[ebp]
push edx
mov eax, DWORD PTR _w_bit_count$9[ebp]
push eax
mov ecx, DWORD PTR _w$[ebp]
push ecx
call _AllocateNumber
add esp, 12 ; 0000000cH
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN14@PMC_Bitwis
; 314 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp $LN1@PMC_Bitwis
$LN14@PMC_Bitwis:
; 315 : BitwiseOr_X_1W(u->BLOCK, u->UNIT_WORD_COUNT, v_lo, (*w)->BLOCK);
mov edx, DWORD PTR _w$[ebp]
mov eax, DWORD PTR [edx]
mov ecx, DWORD PTR [eax+32]
push ecx
mov edx, DWORD PTR _v_lo$11[ebp]
push edx
mov eax, DWORD PTR _u$[ebp]
mov ecx, DWORD PTR [eax+8]
push ecx
mov edx, DWORD PTR _u$[ebp]
mov eax, DWORD PTR [edx+32]
push eax
call _BitwiseOr_X_1W
add esp, 16 ; 00000010H
; 316 : if ((result = CheckBlockLight((*w)->BLOCK, w_light_check_code)) != PMC_STATUS_OK)
mov ecx, DWORD PTR _w_light_check_code$8[ebp]
push ecx
mov edx, DWORD PTR _w$[ebp]
mov eax, DWORD PTR [edx]
mov ecx, DWORD PTR [eax+32]
push ecx
call _CheckBlockLight
add esp, 8
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN15@PMC_Bitwis
; 317 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp $LN1@PMC_Bitwis
$LN15@PMC_Bitwis:
; 318 : }
jmp $LN13@PMC_Bitwis
$LN12@PMC_Bitwis:
; 319 : else
; 320 : {
; 321 : // y の値が 32bit では表現できない場合
; 322 : __UNIT_TYPE v_bit_count = sizeof(v) * 8 - _LZCNT_ALT_32(v_hi);
mov edx, DWORD PTR _v_hi$12[ebp]
push edx
call __LZCNT_ALT_32
add esp, 4
mov ecx, 64 ; 00000040H
sub ecx, eax
mov DWORD PTR _v_bit_count$7[ebp], ecx
; 323 : __UNIT_TYPE w_bit_count = _MAXIMUM_UNIT(u_bit_count, v_bit_count);
mov edx, DWORD PTR _v_bit_count$7[ebp]
push edx
mov eax, DWORD PTR _u_bit_count$13[ebp]
push eax
call __MAXIMUM_UNIT
add esp, 8
mov DWORD PTR _w_bit_count$6[ebp], eax
; 324 : __UNIT_TYPE w_light_check_code;
; 325 : if ((result = AllocateNumber(w, w_bit_count, &w_light_check_code)) != PMC_STATUS_OK)
lea ecx, DWORD PTR _w_light_check_code$5[ebp]
push ecx
mov edx, DWORD PTR _w_bit_count$6[ebp]
push edx
mov eax, DWORD PTR _w$[ebp]
push eax
call _AllocateNumber
add esp, 12 ; 0000000cH
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN16@PMC_Bitwis
; 326 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp $LN1@PMC_Bitwis
$LN16@PMC_Bitwis:
; 327 : BitwiseOr_X_2W(u->BLOCK, u->UNIT_WORD_COUNT, v_hi, v_lo, (*w)->BLOCK);
mov ecx, DWORD PTR _w$[ebp]
mov edx, DWORD PTR [ecx]
mov eax, DWORD PTR [edx+32]
push eax
mov ecx, DWORD PTR _v_lo$11[ebp]
push ecx
mov edx, DWORD PTR _v_hi$12[ebp]
push edx
mov eax, DWORD PTR _u$[ebp]
mov ecx, DWORD PTR [eax+8]
push ecx
mov edx, DWORD PTR _u$[ebp]
mov eax, DWORD PTR [edx+32]
push eax
call _BitwiseOr_X_2W
add esp, 20 ; 00000014H
; 328 : if ((result = CheckBlockLight((*w)->BLOCK, w_light_check_code)) != PMC_STATUS_OK)
mov ecx, DWORD PTR _w_light_check_code$5[ebp]
push ecx
mov edx, DWORD PTR _w$[ebp]
mov eax, DWORD PTR [edx]
mov ecx, DWORD PTR [eax+32]
push ecx
call _CheckBlockLight
add esp, 8
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN13@PMC_Bitwis
; 329 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp $LN1@PMC_Bitwis
$LN13@PMC_Bitwis:
; 330 : }
; 331 : CommitNumber(*w);
mov edx, DWORD PTR _w$[ebp]
mov eax, DWORD PTR [edx]
push eax
call _CommitNumber
add esp, 4
; 332 : }
jmp $LN3@PMC_Bitwis
$LN10@PMC_Bitwis:
; 333 : else
; 334 : {
; 335 : // _UINT64_T が 1 ワードで表現できる場合
; 336 :
; 337 : __UNIT_TYPE u_bit_count = u->UNIT_BIT_COUNT;
mov ecx, DWORD PTR _u$[ebp]
mov edx, DWORD PTR [ecx+12]
mov DWORD PTR _u_bit_count$4[ebp], edx
; 338 : __UNIT_TYPE v_bit_count = sizeof(v) * 8 - _LZCNT_ALT_UNIT((__UNIT_TYPE)v);
mov eax, DWORD PTR _v$[ebp]
push eax
call __LZCNT_ALT_UNIT
add esp, 4
mov ecx, 64 ; 00000040H
sub ecx, eax
mov DWORD PTR _v_bit_count$3[ebp], ecx
; 339 : __UNIT_TYPE w_bit_count = _MAXIMUM_UNIT(u_bit_count, v_bit_count) + 1;
mov edx, DWORD PTR _v_bit_count$3[ebp]
push edx
mov eax, DWORD PTR _u_bit_count$4[ebp]
push eax
call __MAXIMUM_UNIT
add esp, 8
add eax, 1
mov DWORD PTR _w_bit_count$2[ebp], eax
; 340 : __UNIT_TYPE nw_light_check_code;
; 341 : if ((result = AllocateNumber(w, w_bit_count, &nw_light_check_code)) != PMC_STATUS_OK)
lea ecx, DWORD PTR _nw_light_check_code$1[ebp]
push ecx
mov edx, DWORD PTR _w_bit_count$2[ebp]
push edx
mov eax, DWORD PTR _w$[ebp]
push eax
call _AllocateNumber
add esp, 12 ; 0000000cH
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN18@PMC_Bitwis
; 342 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN18@PMC_Bitwis:
; 343 : BitwiseOr_X_1W(u->BLOCK, u->UNIT_WORD_COUNT, (__UNIT_TYPE)v, (*w)->BLOCK);
mov ecx, DWORD PTR _w$[ebp]
mov edx, DWORD PTR [ecx]
mov eax, DWORD PTR [edx+32]
push eax
mov ecx, DWORD PTR _v$[ebp]
push ecx
mov edx, DWORD PTR _u$[ebp]
mov eax, DWORD PTR [edx+8]
push eax
mov ecx, DWORD PTR _u$[ebp]
mov edx, DWORD PTR [ecx+32]
push edx
call _BitwiseOr_X_1W
add esp, 16 ; 00000010H
; 344 : if ((result = CheckBlockLight((*w)->BLOCK, nw_light_check_code)) != PMC_STATUS_OK)
mov eax, DWORD PTR _nw_light_check_code$1[ebp]
push eax
mov ecx, DWORD PTR _w$[ebp]
mov edx, DWORD PTR [ecx]
mov eax, DWORD PTR [edx+32]
push eax
call _CheckBlockLight
add esp, 8
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN19@PMC_Bitwis
; 345 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN19@PMC_Bitwis:
; 346 : CommitNumber(*w);
mov ecx, DWORD PTR _w$[ebp]
mov edx, DWORD PTR [ecx]
push edx
call _CommitNumber
add esp, 4
$LN3@PMC_Bitwis:
; 347 : }
; 348 : }
; 349 : return (PMC_STATUS_OK);
xor eax, eax
$LN1@PMC_Bitwis:
; 350 : }
push edx
mov ecx, ebp
push eax
lea edx, DWORD PTR $LN26@PMC_Bitwis
call @_RTC_CheckStackVars@8
pop eax
pop edx
pop edi
add esp, 88 ; 00000058H
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 0
npad 2
$LN26@PMC_Bitwis:
DD 4
DD $LN25@PMC_Bitwis
$LN25@PMC_Bitwis:
DD -16 ; fffffff0H
DD 4
DD $LN21@PMC_Bitwis
DD -40 ; ffffffd8H
DD 4
DD $LN22@PMC_Bitwis
DD -60 ; ffffffc4H
DD 4
DD $LN23@PMC_Bitwis
DD -84 ; ffffffacH
DD 4
DD $LN24@PMC_Bitwis
$LN24@PMC_Bitwis:
DB 110 ; 0000006eH
DB 119 ; 00000077H
DB 95 ; 0000005fH
DB 108 ; 0000006cH
DB 105 ; 00000069H
DB 103 ; 00000067H
DB 104 ; 00000068H
DB 116 ; 00000074H
DB 95 ; 0000005fH
DB 99 ; 00000063H
DB 104 ; 00000068H
DB 101 ; 00000065H
DB 99 ; 00000063H
DB 107 ; 0000006bH
DB 95 ; 0000005fH
DB 99 ; 00000063H
DB 111 ; 0000006fH
DB 100 ; 00000064H
DB 101 ; 00000065H
DB 0
$LN23@PMC_Bitwis:
DB 119 ; 00000077H
DB 95 ; 0000005fH
DB 108 ; 0000006cH
DB 105 ; 00000069H
DB 103 ; 00000067H
DB 104 ; 00000068H
DB 116 ; 00000074H
DB 95 ; 0000005fH
DB 99 ; 00000063H
DB 104 ; 00000068H
DB 101 ; 00000065H
DB 99 ; 00000063H
DB 107 ; 0000006bH
DB 95 ; 0000005fH
DB 99 ; 00000063H
DB 111 ; 0000006fH
DB 100 ; 00000064H
DB 101 ; 00000065H
DB 0
$LN22@PMC_Bitwis:
DB 119 ; 00000077H
DB 95 ; 0000005fH
DB 108 ; 0000006cH
DB 105 ; 00000069H
DB 103 ; 00000067H
DB 104 ; 00000068H
DB 116 ; 00000074H
DB 95 ; 0000005fH
DB 99 ; 00000063H
DB 104 ; 00000068H
DB 101 ; 00000065H
DB 99 ; 00000063H
DB 107 ; 0000006bH
DB 95 ; 0000005fH
DB 99 ; 00000063H
DB 111 ; 0000006fH
DB 100 ; 00000064H
DB 101 ; 00000065H
DB 0
$LN21@PMC_Bitwis:
DB 118 ; 00000076H
DB 95 ; 0000005fH
DB 104 ; 00000068H
DB 105 ; 00000069H
DB 0
_PMC_BitwiseOr_X_L_Imp ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_bitwiseor.c
_TEXT SEGMENT
_nz_check_code$1 = -24 ; size = 4
_w_bit_count$2 = -16 ; size = 4
_v_bit_count$3 = -12 ; size = 4
_u_bit_count$4 = -8 ; size = 4
_result$ = -4 ; size = 4
_u$ = 8 ; size = 4
_v$ = 12 ; size = 4
_w$ = 16 ; size = 4
_PMC_BitwiseOr_X_I_Imp PROC
; 188 : {
push ebp
mov ebp, esp
sub esp, 28 ; 0000001cH
mov eax, -858993460 ; ccccccccH
mov DWORD PTR [ebp-28], eax
mov DWORD PTR [ebp-24], eax
mov DWORD PTR [ebp-20], eax
mov DWORD PTR [ebp-16], eax
mov DWORD PTR [ebp-12], eax
mov DWORD PTR [ebp-8], eax
mov DWORD PTR [ebp-4], eax
mov ecx, OFFSET __AC60EF90_pmc_bitwiseor@c
call @__CheckForDebuggerJustMyCode@4
; 189 : PMC_STATUS_CODE result;
; 190 : if (u->IS_ZERO)
mov eax, DWORD PTR _u$[ebp]
mov ecx, DWORD PTR [eax+24]
shr ecx, 1
and ecx, 1
je SHORT $LN2@PMC_Bitwis
; 191 : {
; 192 : // u が 0 である場合
; 193 : if (v == 0)
cmp DWORD PTR _v$[ebp], 0
jne SHORT $LN4@PMC_Bitwis
; 194 : {
; 195 : // v が 0 である場合
; 196 : *w = &number_zero;
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx], OFFSET _number_zero
; 197 : }
jmp SHORT $LN5@PMC_Bitwis
$LN4@PMC_Bitwis:
; 198 : else
; 199 : {
; 200 : // v が 0 でない場合
; 201 : if ((result = From_I_Imp(v, w)) != PMC_STATUS_OK)
mov eax, DWORD PTR _w$[ebp]
push eax
mov ecx, DWORD PTR _v$[ebp]
push ecx
call _From_I_Imp
add esp, 8
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN5@PMC_Bitwis
; 202 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp $LN1@PMC_Bitwis
$LN5@PMC_Bitwis:
; 203 : }
; 204 : }
jmp $LN3@PMC_Bitwis
$LN2@PMC_Bitwis:
; 205 : else if (v == 0)
cmp DWORD PTR _v$[ebp], 0
jne SHORT $LN7@PMC_Bitwis
; 206 : {
; 207 : // v が 0 である場合
; 208 : if ((result = DuplicateNumber(u, w)) != PMC_STATUS_OK)
mov edx, DWORD PTR _w$[ebp]
push edx
mov eax, DWORD PTR _u$[ebp]
push eax
call _DuplicateNumber
add esp, 8
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN9@PMC_Bitwis
; 209 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp $LN1@PMC_Bitwis
$LN9@PMC_Bitwis:
; 210 : }
jmp $LN3@PMC_Bitwis
$LN7@PMC_Bitwis:
; 211 : else
; 212 : {
; 213 : // x と y がともに 0 ではない場合
; 214 : __UNIT_TYPE u_bit_count = u->UNIT_BIT_COUNT;
mov ecx, DWORD PTR _u$[ebp]
mov edx, DWORD PTR [ecx+12]
mov DWORD PTR _u_bit_count$4[ebp], edx
; 215 : __UNIT_TYPE v_bit_count = sizeof(v) * 8 - _LZCNT_ALT_32(v);
mov eax, DWORD PTR _v$[ebp]
push eax
call __LZCNT_ALT_32
add esp, 4
mov ecx, 32 ; 00000020H
sub ecx, eax
mov DWORD PTR _v_bit_count$3[ebp], ecx
; 216 : __UNIT_TYPE w_bit_count = _MAXIMUM_UNIT(u_bit_count, v_bit_count) + 1;
mov edx, DWORD PTR _v_bit_count$3[ebp]
push edx
mov eax, DWORD PTR _u_bit_count$4[ebp]
push eax
call __MAXIMUM_UNIT
add esp, 8
add eax, 1
mov DWORD PTR _w_bit_count$2[ebp], eax
; 217 : __UNIT_TYPE nz_check_code;
; 218 : if ((result = AllocateNumber(w, w_bit_count, &nz_check_code)) != PMC_STATUS_OK)
lea ecx, DWORD PTR _nz_check_code$1[ebp]
push ecx
mov edx, DWORD PTR _w_bit_count$2[ebp]
push edx
mov eax, DWORD PTR _w$[ebp]
push eax
call _AllocateNumber
add esp, 12 ; 0000000cH
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN10@PMC_Bitwis
; 219 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN10@PMC_Bitwis:
; 220 : BitwiseOr_X_1W(u->BLOCK, u->UNIT_WORD_COUNT, v, (*w)->BLOCK);
mov ecx, DWORD PTR _w$[ebp]
mov edx, DWORD PTR [ecx]
mov eax, DWORD PTR [edx+32]
push eax
mov ecx, DWORD PTR _v$[ebp]
push ecx
mov edx, DWORD PTR _u$[ebp]
mov eax, DWORD PTR [edx+8]
push eax
mov ecx, DWORD PTR _u$[ebp]
mov edx, DWORD PTR [ecx+32]
push edx
call _BitwiseOr_X_1W
add esp, 16 ; 00000010H
; 221 : if ((result = CheckBlockLight((*w)->BLOCK, nz_check_code)) != PMC_STATUS_OK)
mov eax, DWORD PTR _nz_check_code$1[ebp]
push eax
mov ecx, DWORD PTR _w$[ebp]
mov edx, DWORD PTR [ecx]
mov eax, DWORD PTR [edx+32]
push eax
call _CheckBlockLight
add esp, 8
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN11@PMC_Bitwis
; 222 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN11@PMC_Bitwis:
; 223 : CommitNumber(*w);
mov ecx, DWORD PTR _w$[ebp]
mov edx, DWORD PTR [ecx]
push edx
call _CommitNumber
add esp, 4
$LN3@PMC_Bitwis:
; 224 : }
; 225 : return (PMC_STATUS_OK);
xor eax, eax
$LN1@PMC_Bitwis:
; 226 : }
push edx
mov ecx, ebp
push eax
lea edx, DWORD PTR $LN15@PMC_Bitwis
call @_RTC_CheckStackVars@8
pop eax
pop edx
add esp, 28 ; 0000001cH
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 0
npad 2
$LN15@PMC_Bitwis:
DD 1
DD $LN14@PMC_Bitwis
$LN14@PMC_Bitwis:
DD -24 ; ffffffe8H
DD 4
DD $LN13@PMC_Bitwis
$LN13@PMC_Bitwis:
DB 110 ; 0000006eH
DB 122 ; 0000007aH
DB 95 ; 0000005fH
DB 99 ; 00000063H
DB 104 ; 00000068H
DB 101 ; 00000065H
DB 99 ; 00000063H
DB 107 ; 0000006bH
DB 95 ; 0000005fH
DB 99 ; 00000063H
DB 111 ; 0000006fH
DB 100 ; 00000064H
DB 101 ; 00000065H
DB 0
_PMC_BitwiseOr_X_I_Imp ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_bitwiseor.c
_TEXT SEGMENT
_count$ = -12 ; size = 4
_cp_count$ = -8 ; size = 4
_or_count$ = -4 ; size = 4
_u$ = 8 ; size = 4
_u_count$ = 12 ; size = 4
_v$ = 16 ; size = 4
_v_count$ = 20 ; size = 4
_w$ = 24 ; size = 4
_BitwiseOr_X_X PROC
; 73 : {
push ebp
mov ebp, esp
sub esp, 12 ; 0000000cH
push esi
mov DWORD PTR [ebp-12], -858993460 ; ccccccccH
mov DWORD PTR [ebp-8], -858993460 ; ccccccccH
mov DWORD PTR [ebp-4], -858993460 ; ccccccccH
mov ecx, OFFSET __AC60EF90_pmc_bitwiseor@c
call @__CheckForDebuggerJustMyCode@4
; 74 : __UNIT_TYPE or_count = v_count;
mov eax, DWORD PTR _v_count$[ebp]
mov DWORD PTR _or_count$[ebp], eax
; 75 : __UNIT_TYPE cp_count = u_count - v_count;
mov ecx, DWORD PTR _u_count$[ebp]
sub ecx, DWORD PTR _v_count$[ebp]
mov DWORD PTR _cp_count$[ebp], ecx
; 76 :
; 77 : __UNIT_TYPE count = or_count >> 5;
mov edx, DWORD PTR _or_count$[ebp]
shr edx, 5
mov DWORD PTR _count$[ebp], edx
$LN2@BitwiseOr_:
; 78 : while (count > 0)
cmp DWORD PTR _count$[ebp], 0
jbe $LN3@BitwiseOr_
; 79 : {
; 80 : w[0] = u[0] | v[0];
mov eax, 4
imul ecx, eax, 0
mov edx, 4
imul eax, edx, 0
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 0
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 81 : w[1] = u[1] | v[1];
mov eax, 4
shl eax, 0
mov ecx, 4
shl ecx, 0
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [edx+eax]
or eax, DWORD PTR [esi+ecx]
mov ecx, 4
shl ecx, 0
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+ecx], eax
; 82 : w[2] = u[2] | v[2];
mov eax, 4
shl eax, 1
mov ecx, 4
shl ecx, 1
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [edx+eax]
or eax, DWORD PTR [esi+ecx]
mov ecx, 4
shl ecx, 1
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+ecx], eax
; 83 : w[3] = u[3] | v[3];
mov eax, 4
imul ecx, eax, 3
mov edx, 4
imul eax, edx, 3
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 3
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 84 : w[4] = u[4] | v[4];
mov eax, 4
shl eax, 2
mov ecx, 4
shl ecx, 2
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [edx+eax]
or eax, DWORD PTR [esi+ecx]
mov ecx, 4
shl ecx, 2
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+ecx], eax
; 85 : w[5] = u[5] | v[5];
mov eax, 4
imul ecx, eax, 5
mov edx, 4
imul eax, edx, 5
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 5
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 86 : w[6] = u[6] | v[6];
mov eax, 4
imul ecx, eax, 6
mov edx, 4
imul eax, edx, 6
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 6
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 87 : w[7] = u[7] | v[7];
mov eax, 4
imul ecx, eax, 7
mov edx, 4
imul eax, edx, 7
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 7
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 88 : w[8] = u[8] | v[8];
mov eax, 4
shl eax, 3
mov ecx, 4
shl ecx, 3
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [edx+eax]
or eax, DWORD PTR [esi+ecx]
mov ecx, 4
shl ecx, 3
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+ecx], eax
; 89 : w[9] = u[9] | v[9];
mov eax, 4
imul ecx, eax, 9
mov edx, 4
imul eax, edx, 9
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 9
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 90 : w[10] = u[10] | v[10];
mov eax, 4
imul ecx, eax, 10
mov edx, 4
imul eax, edx, 10
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 10
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 91 : w[11] = u[11] | v[11];
mov eax, 4
imul ecx, eax, 11
mov edx, 4
imul eax, edx, 11
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 11
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 92 : w[12] = u[12] | v[12];
mov eax, 4
imul ecx, eax, 12
mov edx, 4
imul eax, edx, 12
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 12
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 93 : w[13] = u[13] | v[13];
mov eax, 4
imul ecx, eax, 13
mov edx, 4
imul eax, edx, 13
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 13
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 94 : w[14] = u[14] | v[14];
mov eax, 4
imul ecx, eax, 14
mov edx, 4
imul eax, edx, 14
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 14
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 95 : w[15] = u[15] | v[15];
mov eax, 4
imul ecx, eax, 15
mov edx, 4
imul eax, edx, 15
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 15
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 96 : w[16] = u[16] | v[16];
mov eax, 4
shl eax, 4
mov ecx, 4
shl ecx, 4
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [edx+eax]
or eax, DWORD PTR [esi+ecx]
mov ecx, 4
shl ecx, 4
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+ecx], eax
; 97 : w[17] = u[17] | v[17];
mov eax, 4
imul ecx, eax, 17
mov edx, 4
imul eax, edx, 17
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 17
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 98 : w[18] = u[18] | v[18];
mov eax, 4
imul ecx, eax, 18
mov edx, 4
imul eax, edx, 18
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 18
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 99 : w[19] = u[19] | v[19];
mov eax, 4
imul ecx, eax, 19
mov edx, 4
imul eax, edx, 19
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 19
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 100 : w[20] = u[20] | v[20];
mov eax, 4
imul ecx, eax, 20
mov edx, 4
imul eax, edx, 20
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 20
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 101 : w[21] = u[21] | v[21];
mov eax, 4
imul ecx, eax, 21
mov edx, 4
imul eax, edx, 21
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 21
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 102 : w[22] = u[22] | v[22];
mov eax, 4
imul ecx, eax, 22
mov edx, 4
imul eax, edx, 22
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 22
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 103 : w[23] = u[23] | v[23];
mov eax, 4
imul ecx, eax, 23
mov edx, 4
imul eax, edx, 23
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 23
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 104 : w[24] = u[24] | v[24];
mov eax, 4
imul ecx, eax, 24
mov edx, 4
imul eax, edx, 24
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 24
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 105 : w[25] = u[25] | v[25];
mov eax, 4
imul ecx, eax, 25
mov edx, 4
imul eax, edx, 25
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 25
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 106 : w[26] = u[26] | v[26];
mov eax, 4
imul ecx, eax, 26
mov edx, 4
imul eax, edx, 26
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 26
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 107 : w[27] = u[27] | v[27];
mov eax, 4
imul ecx, eax, 27
mov edx, 4
imul eax, edx, 27
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 27
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 108 : w[28] = u[28] | v[28];
mov eax, 4
imul ecx, eax, 28
mov edx, 4
imul eax, edx, 28
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 28
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 109 : w[29] = u[29] | v[29];
mov eax, 4
imul ecx, eax, 29
mov edx, 4
imul eax, edx, 29
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 29
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 110 : w[30] = u[30] | v[30];
mov eax, 4
imul ecx, eax, 30
mov edx, 4
imul eax, edx, 30
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 30
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 111 : w[31] = u[31] | v[31];
mov eax, 4
imul ecx, eax, 31
mov edx, 4
imul eax, edx, 31
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 31
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 112 : u += 32;
mov eax, DWORD PTR _u$[ebp]
add eax, 128 ; 00000080H
mov DWORD PTR _u$[ebp], eax
; 113 : v += 32;
mov ecx, DWORD PTR _v$[ebp]
add ecx, 128 ; 00000080H
mov DWORD PTR _v$[ebp], ecx
; 114 : w += 32;
mov edx, DWORD PTR _w$[ebp]
add edx, 128 ; 00000080H
mov DWORD PTR _w$[ebp], edx
; 115 : --count;
mov eax, DWORD PTR _count$[ebp]
sub eax, 1
mov DWORD PTR _count$[ebp], eax
; 116 : }
jmp $LN2@BitwiseOr_
$LN3@BitwiseOr_:
; 117 :
; 118 : if (or_count & 0x10)
mov ecx, DWORD PTR _or_count$[ebp]
and ecx, 16 ; 00000010H
je $LN4@BitwiseOr_
; 119 : {
; 120 : w[0] = u[0] | v[0];
mov edx, 4
imul eax, edx, 0
mov ecx, 4
imul edx, ecx, 0
mov ecx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [ecx+eax]
or eax, DWORD PTR [esi+edx]
mov ecx, 4
imul edx, ecx, 0
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+edx], eax
; 121 : w[1] = u[1] | v[1];
mov edx, 4
shl edx, 0
mov eax, 4
shl eax, 0
mov ecx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov edx, DWORD PTR [ecx+edx]
or edx, DWORD PTR [esi+eax]
mov eax, 4
shl eax, 0
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+eax], edx
; 122 : w[2] = u[2] | v[2];
mov edx, 4
shl edx, 1
mov eax, 4
shl eax, 1
mov ecx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov edx, DWORD PTR [ecx+edx]
or edx, DWORD PTR [esi+eax]
mov eax, 4
shl eax, 1
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+eax], edx
; 123 : w[3] = u[3] | v[3];
mov edx, 4
imul eax, edx, 3
mov ecx, 4
imul edx, ecx, 3
mov ecx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [ecx+eax]
or eax, DWORD PTR [esi+edx]
mov ecx, 4
imul edx, ecx, 3
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+edx], eax
; 124 : w[4] = u[4] | v[4];
mov edx, 4
shl edx, 2
mov eax, 4
shl eax, 2
mov ecx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov edx, DWORD PTR [ecx+edx]
or edx, DWORD PTR [esi+eax]
mov eax, 4
shl eax, 2
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+eax], edx
; 125 : w[5] = u[5] | v[5];
mov edx, 4
imul eax, edx, 5
mov ecx, 4
imul edx, ecx, 5
mov ecx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [ecx+eax]
or eax, DWORD PTR [esi+edx]
mov ecx, 4
imul edx, ecx, 5
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+edx], eax
; 126 : w[6] = u[6] | v[6];
mov edx, 4
imul eax, edx, 6
mov ecx, 4
imul edx, ecx, 6
mov ecx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [ecx+eax]
or eax, DWORD PTR [esi+edx]
mov ecx, 4
imul edx, ecx, 6
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+edx], eax
; 127 : w[7] = u[7] | v[7];
mov edx, 4
imul eax, edx, 7
mov ecx, 4
imul edx, ecx, 7
mov ecx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [ecx+eax]
or eax, DWORD PTR [esi+edx]
mov ecx, 4
imul edx, ecx, 7
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+edx], eax
; 128 : w[8] = u[8] | v[8];
mov edx, 4
shl edx, 3
mov eax, 4
shl eax, 3
mov ecx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov edx, DWORD PTR [ecx+edx]
or edx, DWORD PTR [esi+eax]
mov eax, 4
shl eax, 3
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+eax], edx
; 129 : w[9] = u[9] | v[9];
mov edx, 4
imul eax, edx, 9
mov ecx, 4
imul edx, ecx, 9
mov ecx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [ecx+eax]
or eax, DWORD PTR [esi+edx]
mov ecx, 4
imul edx, ecx, 9
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+edx], eax
; 130 : w[10] = u[10] | v[10];
mov edx, 4
imul eax, edx, 10
mov ecx, 4
imul edx, ecx, 10
mov ecx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [ecx+eax]
or eax, DWORD PTR [esi+edx]
mov ecx, 4
imul edx, ecx, 10
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+edx], eax
; 131 : w[11] = u[11] | v[11];
mov edx, 4
imul eax, edx, 11
mov ecx, 4
imul edx, ecx, 11
mov ecx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [ecx+eax]
or eax, DWORD PTR [esi+edx]
mov ecx, 4
imul edx, ecx, 11
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+edx], eax
; 132 : w[12] = u[12] | v[12];
mov edx, 4
imul eax, edx, 12
mov ecx, 4
imul edx, ecx, 12
mov ecx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [ecx+eax]
or eax, DWORD PTR [esi+edx]
mov ecx, 4
imul edx, ecx, 12
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+edx], eax
; 133 : w[13] = u[13] | v[13];
mov edx, 4
imul eax, edx, 13
mov ecx, 4
imul edx, ecx, 13
mov ecx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [ecx+eax]
or eax, DWORD PTR [esi+edx]
mov ecx, 4
imul edx, ecx, 13
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+edx], eax
; 134 : w[14] = u[14] | v[14];
mov edx, 4
imul eax, edx, 14
mov ecx, 4
imul edx, ecx, 14
mov ecx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [ecx+eax]
or eax, DWORD PTR [esi+edx]
mov ecx, 4
imul edx, ecx, 14
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+edx], eax
; 135 : w[15] = u[15] | v[15];
mov edx, 4
imul eax, edx, 15
mov ecx, 4
imul edx, ecx, 15
mov ecx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [ecx+eax]
or eax, DWORD PTR [esi+edx]
mov ecx, 4
imul edx, ecx, 15
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+edx], eax
; 136 : u += 16;
mov edx, DWORD PTR _u$[ebp]
add edx, 64 ; 00000040H
mov DWORD PTR _u$[ebp], edx
; 137 : v += 16;
mov eax, DWORD PTR _v$[ebp]
add eax, 64 ; 00000040H
mov DWORD PTR _v$[ebp], eax
; 138 : w += 16;
mov ecx, DWORD PTR _w$[ebp]
add ecx, 64 ; 00000040H
mov DWORD PTR _w$[ebp], ecx
$LN4@BitwiseOr_:
; 139 : }
; 140 :
; 141 : if (or_count & 0x8)
mov edx, DWORD PTR _or_count$[ebp]
and edx, 8
je $LN5@BitwiseOr_
; 142 : {
; 143 : w[0] = u[0] | v[0];
mov eax, 4
imul ecx, eax, 0
mov edx, 4
imul eax, edx, 0
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 0
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 144 : w[1] = u[1] | v[1];
mov eax, 4
shl eax, 0
mov ecx, 4
shl ecx, 0
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [edx+eax]
or eax, DWORD PTR [esi+ecx]
mov ecx, 4
shl ecx, 0
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+ecx], eax
; 145 : w[2] = u[2] | v[2];
mov eax, 4
shl eax, 1
mov ecx, 4
shl ecx, 1
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [edx+eax]
or eax, DWORD PTR [esi+ecx]
mov ecx, 4
shl ecx, 1
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+ecx], eax
; 146 : w[3] = u[3] | v[3];
mov eax, 4
imul ecx, eax, 3
mov edx, 4
imul eax, edx, 3
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 3
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 147 : w[4] = u[4] | v[4];
mov eax, 4
shl eax, 2
mov ecx, 4
shl ecx, 2
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [edx+eax]
or eax, DWORD PTR [esi+ecx]
mov ecx, 4
shl ecx, 2
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+ecx], eax
; 148 : w[5] = u[5] | v[5];
mov eax, 4
imul ecx, eax, 5
mov edx, 4
imul eax, edx, 5
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 5
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 149 : w[6] = u[6] | v[6];
mov eax, 4
imul ecx, eax, 6
mov edx, 4
imul eax, edx, 6
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 6
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 150 : w[7] = u[7] | v[7];
mov eax, 4
imul ecx, eax, 7
mov edx, 4
imul eax, edx, 7
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 7
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 151 : u += 8;
mov eax, DWORD PTR _u$[ebp]
add eax, 32 ; 00000020H
mov DWORD PTR _u$[ebp], eax
; 152 : v += 8;
mov ecx, DWORD PTR _v$[ebp]
add ecx, 32 ; 00000020H
mov DWORD PTR _v$[ebp], ecx
; 153 : w += 8;
mov edx, DWORD PTR _w$[ebp]
add edx, 32 ; 00000020H
mov DWORD PTR _w$[ebp], edx
$LN5@BitwiseOr_:
; 154 : }
; 155 :
; 156 : if (or_count & 0x4)
mov eax, DWORD PTR _or_count$[ebp]
and eax, 4
je $LN6@BitwiseOr_
; 157 : {
; 158 : w[0] = u[0] | v[0];
mov ecx, 4
imul edx, ecx, 0
mov eax, 4
imul ecx, eax, 0
mov eax, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov edx, DWORD PTR [eax+edx]
or edx, DWORD PTR [esi+ecx]
mov eax, 4
imul ecx, eax, 0
mov eax, DWORD PTR _w$[ebp]
mov DWORD PTR [eax+ecx], edx
; 159 : w[1] = u[1] | v[1];
mov ecx, 4
shl ecx, 0
mov edx, 4
shl edx, 0
mov eax, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [eax+ecx]
or ecx, DWORD PTR [esi+edx]
mov edx, 4
shl edx, 0
mov eax, DWORD PTR _w$[ebp]
mov DWORD PTR [eax+edx], ecx
; 160 : w[2] = u[2] | v[2];
mov ecx, 4
shl ecx, 1
mov edx, 4
shl edx, 1
mov eax, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [eax+ecx]
or ecx, DWORD PTR [esi+edx]
mov edx, 4
shl edx, 1
mov eax, DWORD PTR _w$[ebp]
mov DWORD PTR [eax+edx], ecx
; 161 : w[3] = u[3] | v[3];
mov ecx, 4
imul edx, ecx, 3
mov eax, 4
imul ecx, eax, 3
mov eax, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov edx, DWORD PTR [eax+edx]
or edx, DWORD PTR [esi+ecx]
mov eax, 4
imul ecx, eax, 3
mov eax, DWORD PTR _w$[ebp]
mov DWORD PTR [eax+ecx], edx
; 162 : u += 4;
mov ecx, DWORD PTR _u$[ebp]
add ecx, 16 ; 00000010H
mov DWORD PTR _u$[ebp], ecx
; 163 : v += 4;
mov edx, DWORD PTR _v$[ebp]
add edx, 16 ; 00000010H
mov DWORD PTR _v$[ebp], edx
; 164 : w += 4;
mov eax, DWORD PTR _w$[ebp]
add eax, 16 ; 00000010H
mov DWORD PTR _w$[ebp], eax
$LN6@BitwiseOr_:
; 165 : }
; 166 :
; 167 : if (or_count & 0x2)
mov ecx, DWORD PTR _or_count$[ebp]
and ecx, 2
je SHORT $LN7@BitwiseOr_
; 168 : {
; 169 : w[0] = u[0] | v[0];
mov edx, 4
imul eax, edx, 0
mov ecx, 4
imul edx, ecx, 0
mov ecx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov eax, DWORD PTR [ecx+eax]
or eax, DWORD PTR [esi+edx]
mov ecx, 4
imul edx, ecx, 0
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+edx], eax
; 170 : w[1] = u[1] | v[1];
mov edx, 4
shl edx, 0
mov eax, 4
shl eax, 0
mov ecx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov edx, DWORD PTR [ecx+edx]
or edx, DWORD PTR [esi+eax]
mov eax, 4
shl eax, 0
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+eax], edx
; 171 : u += 2;
mov edx, DWORD PTR _u$[ebp]
add edx, 8
mov DWORD PTR _u$[ebp], edx
; 172 : v += 2;
mov eax, DWORD PTR _v$[ebp]
add eax, 8
mov DWORD PTR _v$[ebp], eax
; 173 : w += 2;
mov ecx, DWORD PTR _w$[ebp]
add ecx, 8
mov DWORD PTR _w$[ebp], ecx
$LN7@BitwiseOr_:
; 174 : }
; 175 :
; 176 : if (or_count & 0x1)
mov edx, DWORD PTR _or_count$[ebp]
and edx, 1
je SHORT $LN8@BitwiseOr_
; 177 : {
; 178 : w[0] = u[0] | v[0];
mov eax, 4
imul ecx, eax, 0
mov edx, 4
imul eax, edx, 0
mov edx, DWORD PTR _u$[ebp]
mov esi, DWORD PTR _v$[ebp]
mov ecx, DWORD PTR [edx+ecx]
or ecx, DWORD PTR [esi+eax]
mov edx, 4
imul eax, edx, 0
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+eax], ecx
; 179 : u += 1;
mov eax, DWORD PTR _u$[ebp]
add eax, 4
mov DWORD PTR _u$[ebp], eax
; 180 : v += 1;
mov ecx, DWORD PTR _v$[ebp]
add ecx, 4
mov DWORD PTR _v$[ebp], ecx
; 181 : w += 1;
mov edx, DWORD PTR _w$[ebp]
add edx, 4
mov DWORD PTR _w$[ebp], edx
$LN8@BitwiseOr_:
; 182 : }
; 183 :
; 184 : _COPY_MEMORY_UNIT(w, u, cp_count);
mov eax, DWORD PTR _cp_count$[ebp]
push eax
mov ecx, DWORD PTR _u$[ebp]
push ecx
mov edx, DWORD PTR _w$[ebp]
push edx
call __COPY_MEMORY_UNIT
add esp, 12 ; 0000000cH
; 185 : }
pop esi
add esp, 12 ; 0000000cH
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 0
_BitwiseOr_X_X ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_bitwiseor.c
_TEXT SEGMENT
_u$ = 8 ; size = 4
_u_count$ = 12 ; size = 4
_v_hi$ = 16 ; size = 4
_v_lo$ = 20 ; size = 4
_w$ = 24 ; size = 4
_BitwiseOr_X_2W PROC
; 52 : {
push ebp
mov ebp, esp
mov ecx, OFFSET __AC60EF90_pmc_bitwiseor@c
call @__CheckForDebuggerJustMyCode@4
; 53 : if (u_count == 1)
cmp DWORD PTR _u_count$[ebp], 1
jne SHORT $LN2@BitwiseOr_
; 54 : {
; 55 : w[0] = u[0] | v_lo;
mov eax, 4
imul ecx, eax, 0
mov edx, DWORD PTR _u$[ebp]
mov eax, DWORD PTR [edx+ecx]
or eax, DWORD PTR _v_lo$[ebp]
mov ecx, 4
imul edx, ecx, 0
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+edx], eax
; 56 : w[1] = v_hi;
mov edx, 4
shl edx, 0
mov eax, DWORD PTR _w$[ebp]
mov ecx, DWORD PTR _v_hi$[ebp]
mov DWORD PTR [eax+edx], ecx
; 57 : }
jmp $LN1@BitwiseOr_
$LN2@BitwiseOr_:
; 58 : else if (u_count == 2)
cmp DWORD PTR _u_count$[ebp], 2
jne SHORT $LN4@BitwiseOr_
; 59 : {
; 60 : w[0] = u[0] | v_lo;
mov edx, 4
imul eax, edx, 0
mov ecx, DWORD PTR _u$[ebp]
mov edx, DWORD PTR [ecx+eax]
or edx, DWORD PTR _v_lo$[ebp]
mov eax, 4
imul ecx, eax, 0
mov eax, DWORD PTR _w$[ebp]
mov DWORD PTR [eax+ecx], edx
; 61 : w[1] = u[1] | v_hi;
mov ecx, 4
shl ecx, 0
mov edx, DWORD PTR _u$[ebp]
mov eax, DWORD PTR [edx+ecx]
or eax, DWORD PTR _v_hi$[ebp]
mov ecx, 4
shl ecx, 0
mov edx, DWORD PTR _w$[ebp]
mov DWORD PTR [edx+ecx], eax
; 62 : }
jmp SHORT $LN1@BitwiseOr_
$LN4@BitwiseOr_:
; 63 : else
; 64 : {
; 65 : w[0] = u[0] | v_lo;
mov eax, 4
imul ecx, eax, 0
mov edx, DWORD PTR _u$[ebp]
mov eax, DWORD PTR [edx+ecx]
or eax, DWORD PTR _v_lo$[ebp]
mov ecx, 4
imul edx, ecx, 0
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+edx], eax
; 66 : w[1] = u[1] | v_hi;
mov edx, 4
shl edx, 0
mov eax, DWORD PTR _u$[ebp]
mov ecx, DWORD PTR [eax+edx]
or ecx, DWORD PTR _v_hi$[ebp]
mov edx, 4
shl edx, 0
mov eax, DWORD PTR _w$[ebp]
mov DWORD PTR [eax+edx], ecx
; 67 : _COPY_MEMORY_UNIT(w + 2, u + 2, u_count - 2);
mov ecx, DWORD PTR _u_count$[ebp]
sub ecx, 2
push ecx
mov edx, DWORD PTR _u$[ebp]
add edx, 8
push edx
mov eax, DWORD PTR _w$[ebp]
add eax, 8
push eax
call __COPY_MEMORY_UNIT
add esp, 12 ; 0000000cH
$LN1@BitwiseOr_:
; 68 : }
; 69 : }
cmp ebp, esp
call __RTC_CheckEsp
pop ebp
ret 0
_BitwiseOr_X_2W ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_bitwiseor.c
_TEXT SEGMENT
_u$ = 8 ; size = 4
_u_count$ = 12 ; size = 4
_v$ = 16 ; size = 4
_w$ = 20 ; size = 4
_BitwiseOr_X_1W PROC
; 40 : {
push ebp
mov ebp, esp
mov ecx, OFFSET __AC60EF90_pmc_bitwiseor@c
call @__CheckForDebuggerJustMyCode@4
; 41 : if (u_count == 1)
cmp DWORD PTR _u_count$[ebp], 1
jne SHORT $LN2@BitwiseOr_
; 42 : w[0] = u[0] | v;
mov eax, 4
imul ecx, eax, 0
mov edx, DWORD PTR _u$[ebp]
mov eax, DWORD PTR [edx+ecx]
or eax, DWORD PTR _v$[ebp]
mov ecx, 4
imul edx, ecx, 0
mov ecx, DWORD PTR _w$[ebp]
mov DWORD PTR [ecx+edx], eax
jmp SHORT $LN1@BitwiseOr_
$LN2@BitwiseOr_:
; 43 : else
; 44 : {
; 45 : w[0] = u[0] | v;
mov edx, 4
imul eax, edx, 0
mov ecx, DWORD PTR _u$[ebp]
mov edx, DWORD PTR [ecx+eax]
or edx, DWORD PTR _v$[ebp]
mov eax, 4
imul ecx, eax, 0
mov eax, DWORD PTR _w$[ebp]
mov DWORD PTR [eax+ecx], edx
; 46 : _COPY_MEMORY_UNIT(w + 1, u + 1, u_count - 1);
mov ecx, DWORD PTR _u_count$[ebp]
sub ecx, 1
push ecx
mov edx, DWORD PTR _u$[ebp]
add edx, 4
push edx
mov eax, DWORD PTR _w$[ebp]
add eax, 4
push eax
call __COPY_MEMORY_UNIT
add esp, 12 ; 0000000cH
$LN1@BitwiseOr_:
; 47 : }
; 48 : }
cmp ebp, esp
call __RTC_CheckEsp
pop ebp
ret 0
_BitwiseOr_X_1W ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
_TEXT SEGMENT
_pos$ = -8 ; size = 4
_x$ = 8 ; size = 4
__LZCNT_ALT_UNIT PROC
; 629 : {
push ebp
mov ebp, esp
sub esp, 12 ; 0000000cH
mov DWORD PTR [ebp-12], -858993460 ; ccccccccH
mov DWORD PTR [ebp-8], -858993460 ; ccccccccH
mov DWORD PTR [ebp-4], -858993460 ; ccccccccH
mov ecx, OFFSET __6B0481B0_pmc_inline_func@h
call @__CheckForDebuggerJustMyCode@4
; 630 : if (x == 0)
cmp DWORD PTR _x$[ebp], 0
jne SHORT $LN2@LZCNT_ALT_
; 631 : return (sizeof(x) * 8);
mov eax, 32 ; 00000020H
jmp SHORT $LN1@LZCNT_ALT_
$LN2@LZCNT_ALT_:
; 632 : #ifdef _M_IX86
; 633 : _UINT32_T pos;
; 634 : #ifdef _MSC_VER
; 635 : _BitScanReverse(&pos, x);
bsr eax, DWORD PTR _x$[ebp]
mov DWORD PTR _pos$[ebp], eax
; 636 : #elif defined(__GNUC__)
; 637 : __asm__("bsrl %1, %0" : "=r"(pos) : "rm"(x));
; 638 : #else
; 639 : #error unknown compiler
; 640 : #endif
; 641 : #elif defined(_M_X64)
; 642 : #ifdef _MSC_VER
; 643 : _UINT32_T pos;
; 644 : _BitScanReverse64(&pos, x);
; 645 : #elif defined(__GNUC__)
; 646 : _UINT64_T pos;
; 647 : __asm__("bsrq %1, %0" : "=r"(pos) : "rm"(x));
; 648 : #else
; 649 : #error unknown compiler
; 650 : #endif
; 651 : #else
; 652 : #error unknown platform
; 653 : #endif
; 654 : return (sizeof(x) * 8 - 1 - pos);
mov eax, 31 ; 0000001fH
sub eax, DWORD PTR _pos$[ebp]
$LN1@LZCNT_ALT_:
; 655 : }
push edx
mov ecx, ebp
push eax
lea edx, DWORD PTR $LN6@LZCNT_ALT_
call @_RTC_CheckStackVars@8
pop eax
pop edx
add esp, 12 ; 0000000cH
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 0
$LN6@LZCNT_ALT_:
DD 1
DD $LN5@LZCNT_ALT_
$LN5@LZCNT_ALT_:
DD -8 ; fffffff8H
DD 4
DD $LN4@LZCNT_ALT_
$LN4@LZCNT_ALT_:
DB 112 ; 00000070H
DB 111 ; 0000006fH
DB 115 ; 00000073H
DB 0
__LZCNT_ALT_UNIT ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
_TEXT SEGMENT
_pos$ = -8 ; size = 4
_x$ = 8 ; size = 4
__LZCNT_ALT_32 PROC
; 596 : {
push ebp
mov ebp, esp
sub esp, 12 ; 0000000cH
mov DWORD PTR [ebp-12], -858993460 ; ccccccccH
mov DWORD PTR [ebp-8], -858993460 ; ccccccccH
mov DWORD PTR [ebp-4], -858993460 ; ccccccccH
mov ecx, OFFSET __6B0481B0_pmc_inline_func@h
call @__CheckForDebuggerJustMyCode@4
; 597 : if (x == 0)
cmp DWORD PTR _x$[ebp], 0
jne SHORT $LN2@LZCNT_ALT_
; 598 : return (sizeof(x) * 8);
mov eax, 32 ; 00000020H
jmp SHORT $LN1@LZCNT_ALT_
$LN2@LZCNT_ALT_:
; 599 : _UINT32_T pos;
; 600 : #ifdef _MSC_VER
; 601 : _BitScanReverse(&pos, x);
bsr eax, DWORD PTR _x$[ebp]
mov DWORD PTR _pos$[ebp], eax
; 602 : #elif defined(__GNUC__)
; 603 : __asm__("bsrl %1, %0" : "=r"(pos) : "rm"(x));
; 604 : #else
; 605 : #error unknown compiler
; 606 : #endif
; 607 : return (sizeof(x) * 8 - 1 - pos);
mov eax, 31 ; 0000001fH
sub eax, DWORD PTR _pos$[ebp]
$LN1@LZCNT_ALT_:
; 608 : }
push edx
mov ecx, ebp
push eax
lea edx, DWORD PTR $LN6@LZCNT_ALT_
call @_RTC_CheckStackVars@8
pop eax
pop edx
add esp, 12 ; 0000000cH
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 0
$LN6@LZCNT_ALT_:
DD 1
DD $LN5@LZCNT_ALT_
$LN5@LZCNT_ALT_:
DD -8 ; fffffff8H
DD 4
DD $LN4@LZCNT_ALT_
$LN4@LZCNT_ALT_:
DB 112 ; 00000070H
DB 111 ; 0000006fH
DB 115 ; 00000073H
DB 0
__LZCNT_ALT_32 ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
_TEXT SEGMENT
tv65 = -4 ; size = 4
_x$ = 8 ; size = 4
_y$ = 12 ; size = 4
__MAXIMUM_UNIT PROC
; 203 : {
push ebp
mov ebp, esp
push ecx
mov DWORD PTR [ebp-4], -858993460 ; ccccccccH
mov ecx, OFFSET __6B0481B0_pmc_inline_func@h
call @__CheckForDebuggerJustMyCode@4
; 204 : return (x >= y ? x : y);
mov eax, DWORD PTR _x$[ebp]
cmp eax, DWORD PTR _y$[ebp]
jb SHORT $LN3@MAXIMUM_UN
mov ecx, DWORD PTR _x$[ebp]
mov DWORD PTR tv65[ebp], ecx
jmp SHORT $LN4@MAXIMUM_UN
$LN3@MAXIMUM_UN:
mov edx, DWORD PTR _y$[ebp]
mov DWORD PTR tv65[ebp], edx
$LN4@MAXIMUM_UN:
mov eax, DWORD PTR tv65[ebp]
; 205 : }
add esp, 4
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 0
__MAXIMUM_UNIT ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
_TEXT SEGMENT
_value$ = 8 ; size = 8
_result_high$ = 16 ; size = 4
__FROMDWORDTOWORD PROC
; 182 : {
push ebp
mov ebp, esp
mov ecx, OFFSET __6B0481B0_pmc_inline_func@h
call @__CheckForDebuggerJustMyCode@4
; 183 : *result_high = (_UINT32_T)(value >> 32);
mov eax, DWORD PTR _value$[ebp]
mov edx, DWORD PTR _value$[ebp+4]
mov cl, 32 ; 00000020H
call __aullshr
mov ecx, DWORD PTR _result_high$[ebp]
mov DWORD PTR [ecx], eax
; 184 : return ((_UINT32_T)value);
mov eax, DWORD PTR _value$[ebp]
; 185 : }
cmp ebp, esp
call __RTC_CheckEsp
pop ebp
ret 0
__FROMDWORDTOWORD ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
_TEXT SEGMENT
_d$ = 8 ; size = 4
_s$ = 12 ; size = 4
_count$ = 16 ; size = 4
__COPY_MEMORY_UNIT PROC
; 66 : {
push ebp
mov ebp, esp
push esi
push edi
mov ecx, OFFSET __6B0481B0_pmc_inline_func@h
call @__CheckForDebuggerJustMyCode@4
; 67 : #ifdef _M_IX86
; 68 : __movsd((unsigned long *)d, (unsigned long *)s, (unsigned long)count);
mov edi, DWORD PTR _d$[ebp]
mov esi, DWORD PTR _s$[ebp]
mov ecx, DWORD PTR _count$[ebp]
rep movsd
; 69 : #elif defined(_M_X64)
; 70 : __movsq(d, s, count);
; 71 : #else
; 72 : #error unknown platform
; 73 : #endif
; 74 : }
pop edi
pop esi
cmp ebp, esp
call __RTC_CheckEsp
pop ebp
ret 0
__COPY_MEMORY_UNIT ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_bitwiseor.c
_TEXT SEGMENT
_nw_light_check_code$1 = -48 ; size = 4
_w_bit_count$2 = -40 ; size = 4
_v_bit_count$3 = -36 ; size = 4
_u_bit_count$4 = -32 ; size = 4
_t$5 = -28 ; size = 4
_nw$ = -20 ; size = 4
_result$ = -12 ; size = 4
_nv$ = -8 ; size = 4
_nu$ = -4 ; size = 4
_u$ = 8 ; size = 4
_v$ = 12 ; size = 4
_w$ = 16 ; size = 4
_PMC_BitwiseOr_X_X@12 PROC
; 399 : {
push ebp
mov ebp, esp
sub esp, 52 ; 00000034H
push edi
lea edi, DWORD PTR [ebp-52]
mov ecx, 13 ; 0000000dH
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, OFFSET __AC60EF90_pmc_bitwiseor@c
call @__CheckForDebuggerJustMyCode@4
; 400 : if (u == NULL)
cmp DWORD PTR _u$[ebp], 0
jne SHORT $LN2@PMC_Bitwis
; 401 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp $LN1@PMC_Bitwis
$LN2@PMC_Bitwis:
; 402 : if (v == NULL)
cmp DWORD PTR _v$[ebp], 0
jne SHORT $LN3@PMC_Bitwis
; 403 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp $LN1@PMC_Bitwis
$LN3@PMC_Bitwis:
; 404 : if (w == NULL)
cmp DWORD PTR _w$[ebp], 0
jne SHORT $LN4@PMC_Bitwis
; 405 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp $LN1@PMC_Bitwis
$LN4@PMC_Bitwis:
; 406 : NUMBER_HEADER* nu = (NUMBER_HEADER*)u;
mov eax, DWORD PTR _u$[ebp]
mov DWORD PTR _nu$[ebp], eax
; 407 : NUMBER_HEADER* nv = (NUMBER_HEADER*)v;
mov ecx, DWORD PTR _v$[ebp]
mov DWORD PTR _nv$[ebp], ecx
; 408 : PMC_STATUS_CODE result;
; 409 : if ((result = CheckNumber(nu)) != PMC_STATUS_OK)
mov edx, DWORD PTR _nu$[ebp]
push edx
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN5@PMC_Bitwis
; 410 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp $LN1@PMC_Bitwis
$LN5@PMC_Bitwis:
; 411 : if ((result = CheckNumber(nv)) != PMC_STATUS_OK)
mov eax, DWORD PTR _nv$[ebp]
push eax
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN6@PMC_Bitwis
; 412 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp $LN1@PMC_Bitwis
$LN6@PMC_Bitwis:
; 413 : NUMBER_HEADER* nw;
; 414 : if (nu->IS_ZERO)
mov ecx, DWORD PTR _nu$[ebp]
mov edx, DWORD PTR [ecx+24]
shr edx, 1
and edx, 1
je SHORT $LN7@PMC_Bitwis
; 415 : {
; 416 : if ((result = DuplicateNumber(nv, &nw)) != PMC_STATUS_OK)
lea eax, DWORD PTR _nw$[ebp]
push eax
mov ecx, DWORD PTR _nv$[ebp]
push ecx
call _DuplicateNumber
add esp, 8
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN9@PMC_Bitwis
; 417 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp $LN1@PMC_Bitwis
$LN9@PMC_Bitwis:
; 418 : }
jmp $LN8@PMC_Bitwis
$LN7@PMC_Bitwis:
; 419 : else if (nv->IS_ZERO)
mov edx, DWORD PTR _nv$[ebp]
mov eax, DWORD PTR [edx+24]
shr eax, 1
and eax, 1
je SHORT $LN10@PMC_Bitwis
; 420 : {
; 421 : if ((result = DuplicateNumber(nu, &nw)) != PMC_STATUS_OK)
lea ecx, DWORD PTR _nw$[ebp]
push ecx
mov edx, DWORD PTR _nu$[ebp]
push edx
call _DuplicateNumber
add esp, 8
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN12@PMC_Bitwis
; 422 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp $LN1@PMC_Bitwis
$LN12@PMC_Bitwis:
; 423 : }
jmp $LN8@PMC_Bitwis
$LN10@PMC_Bitwis:
; 424 : else
; 425 : {
; 426 : if (nu->UNIT_WORD_COUNT < nv->UNIT_WORD_COUNT)
mov eax, DWORD PTR _nu$[ebp]
mov ecx, DWORD PTR _nv$[ebp]
mov edx, DWORD PTR [eax+8]
cmp edx, DWORD PTR [ecx+8]
jae SHORT $LN13@PMC_Bitwis
; 427 : {
; 428 : NUMBER_HEADER* t = nu;
mov eax, DWORD PTR _nu$[ebp]
mov DWORD PTR _t$5[ebp], eax
; 429 : nu = nv;
mov ecx, DWORD PTR _nv$[ebp]
mov DWORD PTR _nu$[ebp], ecx
; 430 : nv = t;
mov edx, DWORD PTR _t$5[ebp]
mov DWORD PTR _nv$[ebp], edx
$LN13@PMC_Bitwis:
; 431 : }
; 432 : __UNIT_TYPE u_bit_count = nu->UNIT_BIT_COUNT;
mov eax, DWORD PTR _nu$[ebp]
mov ecx, DWORD PTR [eax+12]
mov DWORD PTR _u_bit_count$4[ebp], ecx
; 433 : __UNIT_TYPE v_bit_count = nv->UNIT_BIT_COUNT;
mov edx, DWORD PTR _nv$[ebp]
mov eax, DWORD PTR [edx+12]
mov DWORD PTR _v_bit_count$3[ebp], eax
; 434 : __UNIT_TYPE w_bit_count = _MAXIMUM_UNIT(u_bit_count, v_bit_count);
mov ecx, DWORD PTR _v_bit_count$3[ebp]
push ecx
mov edx, DWORD PTR _u_bit_count$4[ebp]
push edx
call __MAXIMUM_UNIT
add esp, 8
mov DWORD PTR _w_bit_count$2[ebp], eax
; 435 : __UNIT_TYPE nw_light_check_code;
; 436 : if ((result = AllocateNumber(&nw, w_bit_count, &nw_light_check_code)) != PMC_STATUS_OK)
lea eax, DWORD PTR _nw_light_check_code$1[ebp]
push eax
mov ecx, DWORD PTR _w_bit_count$2[ebp]
push ecx
lea edx, DWORD PTR _nw$[ebp]
push edx
call _AllocateNumber
add esp, 12 ; 0000000cH
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN14@PMC_Bitwis
; 437 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN14@PMC_Bitwis:
; 438 : BitwiseOr_X_X(nu->BLOCK, nu->UNIT_WORD_COUNT, nv->BLOCK, nv->UNIT_WORD_COUNT, nw->BLOCK);
mov eax, DWORD PTR _nw$[ebp]
mov ecx, DWORD PTR [eax+32]
push ecx
mov edx, DWORD PTR _nv$[ebp]
mov eax, DWORD PTR [edx+8]
push eax
mov ecx, DWORD PTR _nv$[ebp]
mov edx, DWORD PTR [ecx+32]
push edx
mov eax, DWORD PTR _nu$[ebp]
mov ecx, DWORD PTR [eax+8]
push ecx
mov edx, DWORD PTR _nu$[ebp]
mov eax, DWORD PTR [edx+32]
push eax
call _BitwiseOr_X_X
add esp, 20 ; 00000014H
; 439 : if ((result = CheckBlockLight(nw->BLOCK, nw_light_check_code)) != PMC_STATUS_OK)
mov ecx, DWORD PTR _nw_light_check_code$1[ebp]
push ecx
mov edx, DWORD PTR _nw$[ebp]
mov eax, DWORD PTR [edx+32]
push eax
call _CheckBlockLight
add esp, 8
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN15@PMC_Bitwis
; 440 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN15@PMC_Bitwis:
; 441 : CommitNumber(nw);
mov ecx, DWORD PTR _nw$[ebp]
push ecx
call _CommitNumber
add esp, 4
$LN8@PMC_Bitwis:
; 442 : }
; 443 : *w = nw;
mov edx, DWORD PTR _w$[ebp]
mov eax, DWORD PTR _nw$[ebp]
mov DWORD PTR [edx], eax
; 444 : #ifdef _DEBUG
; 445 : if ((result = CheckNumber(*w)) != PMC_STATUS_OK)
mov ecx, DWORD PTR _w$[ebp]
mov edx, DWORD PTR [ecx]
push edx
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN16@PMC_Bitwis
; 446 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN16@PMC_Bitwis:
; 447 : #endif
; 448 : return (PMC_STATUS_OK);
xor eax, eax
$LN1@PMC_Bitwis:
; 449 : }
push edx
mov ecx, ebp
push eax
lea edx, DWORD PTR $LN21@PMC_Bitwis
call @_RTC_CheckStackVars@8
pop eax
pop edx
pop edi
add esp, 52 ; 00000034H
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 12 ; 0000000cH
npad 3
$LN21@PMC_Bitwis:
DD 2
DD $LN20@PMC_Bitwis
$LN20@PMC_Bitwis:
DD -20 ; ffffffecH
DD 4
DD $LN18@PMC_Bitwis
DD -48 ; ffffffd0H
DD 4
DD $LN19@PMC_Bitwis
$LN19@PMC_Bitwis:
DB 110 ; 0000006eH
DB 119 ; 00000077H
DB 95 ; 0000005fH
DB 108 ; 0000006cH
DB 105 ; 00000069H
DB 103 ; 00000067H
DB 104 ; 00000068H
DB 116 ; 00000074H
DB 95 ; 0000005fH
DB 99 ; 00000063H
DB 104 ; 00000068H
DB 101 ; 00000065H
DB 99 ; 00000063H
DB 107 ; 0000006bH
DB 95 ; 0000005fH
DB 99 ; 00000063H
DB 111 ; 0000006fH
DB 100 ; 00000064H
DB 101 ; 00000065H
DB 0
$LN18@PMC_Bitwis:
DB 110 ; 0000006eH
DB 119 ; 00000077H
DB 0
_PMC_BitwiseOr_X_X@12 ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_bitwiseor.c
_TEXT SEGMENT
_result$ = -4 ; size = 4
_u$ = 8 ; size = 4
_v$ = 12 ; size = 8
_w$ = 20 ; size = 4
_PMC_BitwiseOr_X_L@16 PROC
; 376 : {
push ebp
mov ebp, esp
push ecx
mov DWORD PTR [ebp-4], -858993460 ; ccccccccH
mov ecx, OFFSET __AC60EF90_pmc_bitwiseor@c
call @__CheckForDebuggerJustMyCode@4
; 377 : if (__UNIT_TYPE_BIT_COUNT * 2 < sizeof(v) * 8)
xor eax, eax
je SHORT $LN2@PMC_Bitwis
; 378 : {
; 379 : // _UINT64_T が 2 ワードで表現しきれない処理系には対応しない
; 380 : return (PMC_STATUS_INTERNAL_ERROR);
mov eax, -256 ; ffffff00H
jmp SHORT $LN1@PMC_Bitwis
$LN2@PMC_Bitwis:
; 381 : }
; 382 : if (u == NULL)
cmp DWORD PTR _u$[ebp], 0
jne SHORT $LN3@PMC_Bitwis
; 383 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Bitwis
$LN3@PMC_Bitwis:
; 384 : if (w == NULL)
cmp DWORD PTR _w$[ebp], 0
jne SHORT $LN4@PMC_Bitwis
; 385 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Bitwis
$LN4@PMC_Bitwis:
; 386 : PMC_STATUS_CODE result;
; 387 : if ((result = CheckNumber((NUMBER_HEADER*)u)) != PMC_STATUS_OK)
mov ecx, DWORD PTR _u$[ebp]
push ecx
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN5@PMC_Bitwis
; 388 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN5@PMC_Bitwis:
; 389 : if ((result = PMC_BitwiseOr_X_L_Imp((NUMBER_HEADER*)u, v, (NUMBER_HEADER**)w)) != PMC_STATUS_OK)
mov edx, DWORD PTR _w$[ebp]
push edx
mov eax, DWORD PTR _v$[ebp+4]
push eax
mov ecx, DWORD PTR _v$[ebp]
push ecx
mov edx, DWORD PTR _u$[ebp]
push edx
call _PMC_BitwiseOr_X_L_Imp
add esp, 16 ; 00000010H
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN6@PMC_Bitwis
; 390 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN6@PMC_Bitwis:
; 391 : #ifdef _DEBUG
; 392 : if ((result = CheckNumber(*w)) != PMC_STATUS_OK)
mov eax, DWORD PTR _w$[ebp]
mov ecx, DWORD PTR [eax]
push ecx
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN7@PMC_Bitwis
; 393 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN7@PMC_Bitwis:
; 394 : #endif
; 395 : return (PMC_STATUS_OK);
xor eax, eax
$LN1@PMC_Bitwis:
; 396 : }
add esp, 4
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 16 ; 00000010H
_PMC_BitwiseOr_X_L@16 ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_bitwiseor.c
_TEXT SEGMENT
_result$ = -4 ; size = 4
_u$ = 8 ; size = 4
_v$ = 12 ; size = 4
_w$ = 16 ; size = 4
_PMC_BitwiseOr_X_I@12 PROC
; 252 : {
push ebp
mov ebp, esp
push ecx
mov DWORD PTR [ebp-4], -858993460 ; ccccccccH
mov ecx, OFFSET __AC60EF90_pmc_bitwiseor@c
call @__CheckForDebuggerJustMyCode@4
; 253 : if (__UNIT_TYPE_BIT_COUNT < sizeof(v) * 8)
xor eax, eax
je SHORT $LN2@PMC_Bitwis
; 254 : {
; 255 : // _UINT32_T が 1 ワードで表現しきれない処理系には対応しない
; 256 : return (PMC_STATUS_INTERNAL_ERROR);
mov eax, -256 ; ffffff00H
jmp SHORT $LN1@PMC_Bitwis
$LN2@PMC_Bitwis:
; 257 : }
; 258 : if (u == NULL)
cmp DWORD PTR _u$[ebp], 0
jne SHORT $LN3@PMC_Bitwis
; 259 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Bitwis
$LN3@PMC_Bitwis:
; 260 : if (w == NULL)
cmp DWORD PTR _w$[ebp], 0
jne SHORT $LN4@PMC_Bitwis
; 261 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Bitwis
$LN4@PMC_Bitwis:
; 262 : PMC_STATUS_CODE result;
; 263 : if ((result = CheckNumber((NUMBER_HEADER*)u)) != PMC_STATUS_OK)
mov ecx, DWORD PTR _u$[ebp]
push ecx
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN5@PMC_Bitwis
; 264 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN5@PMC_Bitwis:
; 265 : if ((result = PMC_BitwiseOr_X_I_Imp((NUMBER_HEADER*)u, v, (NUMBER_HEADER**)w)) != PMC_STATUS_OK)
mov edx, DWORD PTR _w$[ebp]
push edx
mov eax, DWORD PTR _v$[ebp]
push eax
mov ecx, DWORD PTR _u$[ebp]
push ecx
call _PMC_BitwiseOr_X_I_Imp
add esp, 12 ; 0000000cH
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN6@PMC_Bitwis
; 266 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN6@PMC_Bitwis:
; 267 : #ifdef _DEBUG
; 268 : if ((result = CheckNumber(*w)) != PMC_STATUS_OK)
mov edx, DWORD PTR _w$[ebp]
mov eax, DWORD PTR [edx]
push eax
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN7@PMC_Bitwis
; 269 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN7@PMC_Bitwis:
; 270 : #endif
; 271 : return (PMC_STATUS_OK);
xor eax, eax
$LN1@PMC_Bitwis:
; 272 : }
add esp, 4
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 12 ; 0000000cH
_PMC_BitwiseOr_X_I@12 ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_bitwiseor.c
_TEXT SEGMENT
_result$ = -4 ; size = 4
_u$ = 8 ; size = 8
_v$ = 16 ; size = 4
_w$ = 20 ; size = 4
_PMC_BitwiseOr_L_X@16 PROC
; 353 : {
push ebp
mov ebp, esp
push ecx
mov DWORD PTR [ebp-4], -858993460 ; ccccccccH
mov ecx, OFFSET __AC60EF90_pmc_bitwiseor@c
call @__CheckForDebuggerJustMyCode@4
; 354 : if (__UNIT_TYPE_BIT_COUNT * 2 < sizeof(u) * 8)
xor eax, eax
je SHORT $LN2@PMC_Bitwis
; 355 : {
; 356 : // _UINT64_T が 2 ワードで表現しきれない処理系には対応しない
; 357 : return (PMC_STATUS_INTERNAL_ERROR);
mov eax, -256 ; ffffff00H
jmp SHORT $LN1@PMC_Bitwis
$LN2@PMC_Bitwis:
; 358 : }
; 359 : if (v == NULL)
cmp DWORD PTR _v$[ebp], 0
jne SHORT $LN3@PMC_Bitwis
; 360 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Bitwis
$LN3@PMC_Bitwis:
; 361 : if (w == NULL)
cmp DWORD PTR _w$[ebp], 0
jne SHORT $LN4@PMC_Bitwis
; 362 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Bitwis
$LN4@PMC_Bitwis:
; 363 : PMC_STATUS_CODE result;
; 364 : if ((result = CheckNumber((NUMBER_HEADER*)v)) != PMC_STATUS_OK)
mov ecx, DWORD PTR _v$[ebp]
push ecx
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN5@PMC_Bitwis
; 365 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN5@PMC_Bitwis:
; 366 : if ((result = PMC_BitwiseOr_X_L_Imp((NUMBER_HEADER*)v, u, (NUMBER_HEADER**)w)) != PMC_STATUS_OK)
mov edx, DWORD PTR _w$[ebp]
push edx
mov eax, DWORD PTR _u$[ebp+4]
push eax
mov ecx, DWORD PTR _u$[ebp]
push ecx
mov edx, DWORD PTR _v$[ebp]
push edx
call _PMC_BitwiseOr_X_L_Imp
add esp, 16 ; 00000010H
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN6@PMC_Bitwis
; 367 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN6@PMC_Bitwis:
; 368 : #ifdef _DEBUG
; 369 : if ((result = CheckNumber(*w)) != PMC_STATUS_OK)
mov eax, DWORD PTR _w$[ebp]
mov ecx, DWORD PTR [eax]
push ecx
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN7@PMC_Bitwis
; 370 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN7@PMC_Bitwis:
; 371 : #endif
; 372 : return (PMC_STATUS_OK);
xor eax, eax
$LN1@PMC_Bitwis:
; 373 : }
add esp, 4
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 16 ; 00000010H
_PMC_BitwiseOr_L_X@16 ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_bitwiseor.c
_TEXT SEGMENT
_result$ = -4 ; size = 4
_u$ = 8 ; size = 4
_v$ = 12 ; size = 4
_w$ = 16 ; size = 4
_PMC_BitwiseOr_I_X@12 PROC
; 229 : {
push ebp
mov ebp, esp
push ecx
mov DWORD PTR [ebp-4], -858993460 ; ccccccccH
mov ecx, OFFSET __AC60EF90_pmc_bitwiseor@c
call @__CheckForDebuggerJustMyCode@4
; 230 : if (__UNIT_TYPE_BIT_COUNT < sizeof(u) * 8)
xor eax, eax
je SHORT $LN2@PMC_Bitwis
; 231 : {
; 232 : // _UINT32_T が 1 ワードで表現しきれない処理系には対応しない
; 233 : return (PMC_STATUS_INTERNAL_ERROR);
mov eax, -256 ; ffffff00H
jmp SHORT $LN1@PMC_Bitwis
$LN2@PMC_Bitwis:
; 234 : }
; 235 : if (v == NULL)
cmp DWORD PTR _v$[ebp], 0
jne SHORT $LN3@PMC_Bitwis
; 236 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Bitwis
$LN3@PMC_Bitwis:
; 237 : if (w == NULL)
cmp DWORD PTR _w$[ebp], 0
jne SHORT $LN4@PMC_Bitwis
; 238 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Bitwis
$LN4@PMC_Bitwis:
; 239 : PMC_STATUS_CODE result;
; 240 : if ((result = CheckNumber((NUMBER_HEADER*)v)) != PMC_STATUS_OK)
mov ecx, DWORD PTR _v$[ebp]
push ecx
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN5@PMC_Bitwis
; 241 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN5@PMC_Bitwis:
; 242 : if ((result = PMC_BitwiseOr_X_I_Imp((NUMBER_HEADER*)v, u, (NUMBER_HEADER**)w)) != PMC_STATUS_OK)
mov edx, DWORD PTR _w$[ebp]
push edx
mov eax, DWORD PTR _u$[ebp]
push eax
mov ecx, DWORD PTR _v$[ebp]
push ecx
call _PMC_BitwiseOr_X_I_Imp
add esp, 12 ; 0000000cH
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN6@PMC_Bitwis
; 243 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN6@PMC_Bitwis:
; 244 : #ifdef _DEBUG
; 245 : if ((result = CheckNumber(*w)) != PMC_STATUS_OK)
mov edx, DWORD PTR _w$[ebp]
mov eax, DWORD PTR [edx]
push eax
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN7@PMC_Bitwis
; 246 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Bitwis
$LN7@PMC_Bitwis:
; 247 : #endif
; 248 : return (PMC_STATUS_OK);
xor eax, eax
$LN1@PMC_Bitwis:
; 249 : }
add esp, 4
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 12 ; 0000000cH
_PMC_BitwiseOr_I_X@12 ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_bitwiseor.c
_TEXT SEGMENT
_feature$ = 8 ; size = 4
_Initialize_BitwiseOr PROC
; 452 : {
push ebp
mov ebp, esp
mov ecx, OFFSET __AC60EF90_pmc_bitwiseor@c
call @__CheckForDebuggerJustMyCode@4
; 453 : return (PMC_STATUS_OK);
xor eax, eax
; 454 : }
cmp ebp, esp
call __RTC_CheckEsp
pop ebp
ret 0
_Initialize_BitwiseOr ENDP
_TEXT ENDS
END
| 21.356895 | 121 | 0.625129 |
14d1ce13f4fff813023131c34f4babadd698fb7b | 3,113 | asm | Assembly | programs/oeis/017/A017052.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/017/A017052.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/017/A017052.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A017052: a(n) = (7*n + 5)^12.
; 244140625,8916100448256,2213314919066161,95428956661682176,1667889514952984961,16777216000000000000,116191483108948578241,614787626176508399616,2654348974297586158321,9774779120406941925376,31676352024078369140625,92420056270299898187776,246990403565262140303521,612709757329767363772416,1425760886846178945447841,3138428376721000000000000,6580067382037190942729361,13214788658781797667045376,25542038069936263923006961,47703367363695867545849856,86380562306022715087890625,152097843090208773684330496,261075123337098804348567681,437821471697555965584019456,718709255220793060317103921,1156831381426176000000000000,1828518162230556187140793681,2841978310637314049208487936,4348632317396990233762642401,6557827967253220516257857536,9755769237612933691650390625,14329653645048357641297596416,20798201815902925734870098641,29849979392446980130179383296,42391158275216203514294433201,59604644775390625000000000000,83022819845310162051379891201,114616494721029974161197367296,156903087818962082857498424641,213077479576736094126128828416,287169505347519450195556640625,384232606918345112299069505536,510568785444411275443565936401,673995687544113646503571623936,884162417215006648162206715681,1152921504606846976000000000000,1494765384295483228389391941921,1927336746591631502843839123456,2472023231929042220921962513681,3154648147137881977010830442496,4006270200351760530820556640625,5064106685657562460643248377856,6372596106925961399422623920961,7984617920426728775852675301376,9962888906032515816542942031361,12381557655576425121000000000000,15328020803120684935518067665841,18904986924730564508992631996416,23232816514396602443039513869521,28452169107935982225126351179776,34726991488323271274566650390625,42247883974617233597120303333376,51235885083508853935305470692321,61946718368946856158571745775616,74675549003124234238645683260241,89762301673555234816000000000000,107597595648665281034526000582961,128629357421297433588475439026176,153370176189268183007030246252161,182405472588468433947695572320256,216402556571320625160840087890625,256120656136427175934096908292096,302422004779181639964896403690481,356284082063617120106689547206656,418813108628950582279367124082321,491258904256726154641000000000000,575031225353216910123132111013281,671717706364343388493779080052736,783103538254824010709579716221601,911193026268095406548718923943936,1058233178757736020094453369140625,1226739488964205980896866405974016,1419524082222703866524488543155441,1639726412249378930288083240554496,1890846701885093112349176364977601,2176782336000000000000000000000000,2501867427200535611013579150076801,2870915788555681280615533043716096,3289267561794796586432994591137841,3762839764348723035947174320930816,4298181034233585027335625244140625,4902530868137692837562848551899136,5583883665191690782190407704127201,6351057906806684781258041391579136,7213770821681211396962910689226081,8182718904632857144561000000000000,9269664678331989431355838883693521,10487530108331917143843967919456256,11850497104030975984667318617160881,13374115561397272104186549578960896
mul $0,7
add $0,5
pow $0,12
| 444.714286 | 3,051 | 0.957276 |
4a387f8bd62f55d2e30a9ec19e2ad0468b23654f | 8,154 | asm | Assembly | lib/avx512/mb_mgr_aes_cbcs_1_9_flush_avx512.asm | intel/intel-ipsec-mb | bde82c8737edc04d80549f0a68225ede7e5cefdb | [
"BSD-3-Clause"
] | 174 | 2017-11-12T18:36:43.000Z | 2022-03-26T12:31:21.000Z | lib/avx512/mb_mgr_aes_cbcs_1_9_flush_avx512.asm | intel/intel-ipsec-mb | bde82c8737edc04d80549f0a68225ede7e5cefdb | [
"BSD-3-Clause"
] | 84 | 2017-12-28T10:45:46.000Z | 2022-03-31T19:06:44.000Z | lib/avx512/mb_mgr_aes_cbcs_1_9_flush_avx512.asm | intel/intel-ipsec-mb | bde82c8737edc04d80549f0a68225ede7e5cefdb | [
"BSD-3-Clause"
] | 70 | 2017-11-05T10:14:51.000Z | 2022-03-26T12:31:04.000Z | ;;
;; Copyright (c) 2020-2021, Intel Corporation
;;
;; 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 Intel Corporation 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.
;;
%define CBCS
%include "avx512/mb_mgr_aes_flush_avx512.asm"
%include "include/cet.inc"
%define AES_CBCS_ENC_X16 aes_cbcs_1_9_enc_128_vaes_avx512
%define FLUSH_JOB_AES_CBCS_ENC flush_job_aes128_cbcs_1_9_enc_vaes_avx512
; void AES_CBCS_ENC_X16(AES_ARGS *args, UINT64 len_in_bytes);
extern AES_CBCS_ENC_X16
; JOB* FLUSH_JOB_AES_CBCS_ENC(MB_MGR_AES_OOO *state, IMB_JOB *job)
; arg 1 : state
; arg 2 : job
MKGLOBAL(FLUSH_JOB_AES_CBCS_ENC,function,internal)
FLUSH_JOB_AES_CBCS_ENC:
endbranch64
mov rax, rsp
sub rsp, STACK_size
and rsp, -16
mov [rsp + _gpr_save + 8*0], rbx
mov [rsp + _gpr_save + 8*1], rbp
mov [rsp + _gpr_save + 8*2], r12
mov [rsp + _gpr_save + 8*3], r13
mov [rsp + _gpr_save + 8*4], r14
mov [rsp + _gpr_save + 8*5], r15
%ifndef LINUX
mov [rsp + _gpr_save + 8*6], rsi
mov [rsp + _gpr_save + 8*7], rdi
%endif
mov [rsp + _rsp_save], rax ; original SP
; check for empty
cmp qword [state + _aes_lanes_in_use], 0
je return_null
; find a lane with a non-null job
vpxord zmm0, zmm0, zmm0
vmovdqu64 zmm1, [state + _aes_job_in_lane + (0*PTR_SZ)]
vmovdqu64 zmm2, [state + _aes_job_in_lane + (8*PTR_SZ)]
vpcmpq k1, zmm1, zmm0, 4 ; NEQ
vpcmpq k2, zmm2, zmm0, 4 ; NEQ
kmovw DWORD(tmp), k1
kmovw DWORD(tmp1), k2
mov DWORD(tmp2), DWORD(tmp1)
shl DWORD(tmp2), 8
or DWORD(tmp2), DWORD(tmp) ; mask of non-null jobs in tmp2
not BYTE(tmp)
kmovw k4, DWORD(tmp)
not BYTE(tmp1)
kmovw k5, DWORD(tmp1)
mov DWORD(tmp), DWORD(tmp2)
not WORD(tmp)
kmovw k6, DWORD(tmp) ; mask of NULL jobs in k4, k5 and k6
mov DWORD(tmp), DWORD(tmp2)
xor tmp2, tmp2
bsf WORD(tmp2), WORD(tmp) ; index of the 1st set bit in tmp2
;; copy good lane data into NULL lanes
mov tmp, [state + _aes_args_in + tmp2*8]
vpbroadcastq zmm1, tmp
vmovdqa64 [state + _aes_args_in + (0*PTR_SZ)]{k4}, zmm1
vmovdqa64 [state + _aes_args_in + (8*PTR_SZ)]{k5}, zmm1
;; - out pointer
mov tmp, [state + _aes_args_out + tmp2*8]
vpbroadcastq zmm1, tmp
vmovdqa64 [state + _aes_args_out + (0*PTR_SZ)]{k4}, zmm1
vmovdqa64 [state + _aes_args_out + (8*PTR_SZ)]{k5}, zmm1
mov tmp, 0xfff
kmovq k3, tmp
;; - set len to MAX
vmovdqa64 zmm6, [state + _aes_lens_64]
vmovdqa64 zmm7, [state + _aes_lens_64 + 64]
mov tmp, 0xffffffffffffffff
vpbroadcastq zmm1, tmp
vmovdqa64 zmm6{k4}, zmm1
vmovdqa64 zmm7{k5}, zmm1
vmovdqa64 [state + _aes_lens_64]{k3}, zmm6
vmovdqa64 [state + _aes_lens_64 + 64]{k3}, zmm7
;; scale up good lane idx before copying IV and keys
shl tmp2, 4
;; - copy IV and round keys to null lanes
COPY_IV_KEYS_TO_NULL_LANES tmp2, tmp1, tmp3, xmm4, xmm5, k6
;; Update lens and find min for lanes 8-15
vpsllq zmm8, zmm6, 4
vpsllq zmm9, zmm7, 4
vporq zmm8, zmm8, [rel index_to_lane16]
vporq zmm9, zmm9, [rel index_to_lane16 + 64]
vpminuq zmm8, zmm8, zmm9
vextracti64x4 ymm9, zmm8, 1
vpminuq ymm8, ymm9, ymm8
vextracti32x4 xmm9, ymm8, 1
vpminuq xmm8, xmm9, xmm8
vpsrldq xmm9, xmm8, 8
vpminuq xmm8, xmm9, xmm8
vmovq len2, xmm8
mov idx, len2
and idx, 0xf
shr len2, 4
or len2, len2
jz len_is_0
vpbroadcastq zmm5, len2
vpsubq zmm6, zmm6, zmm5
vpsubq zmm7, zmm7, zmm5
vmovdqa64 [state + _aes_lens_64]{k3}, zmm6
vmovdqa64 [state + _aes_lens_64 + 64]{k3}, zmm7
; "state" and "args" are the same address, arg1
; len is arg2
call AES_CBCS_ENC_X16
; state and idx are intact
len_is_0:
; process completed job "idx"
mov job_rax, [state + _aes_job_in_lane + idx*8]
mov unused_lanes, [state + _aes_unused_lanes]
mov qword [state + _aes_job_in_lane + idx*8], 0
or dword [job_rax + _status], IMB_STATUS_COMPLETED_CIPHER
shl unused_lanes, 4
or unused_lanes, idx
mov [state + _aes_unused_lanes], unused_lanes
sub qword [state + _aes_lanes_in_use], 1
;; store last cipher block as next_iv
lea tmp3, [idx*8]
mov tmp1, [job_rax + _cbcs_next_iv]
vmovdqa xmm0, [state + _aes_args_IV + tmp3*2]
vmovdqu [tmp1], xmm0
%ifdef SAFE_DATA
; Set bit of lane of returned job
xor DWORD(tmp3), DWORD(tmp3)
bts DWORD(tmp3), DWORD(idx)
kmovw k1, DWORD(tmp3)
korw k6, k1, k6
;; Clear IV and expanded keys of returned job and "NULL lanes"
;; (k6 contains the mask of the jobs)
CLEAR_IV_KEYS_IN_NULL_LANES tmp1, xmm0, k6
%endif
return:
mov rbx, [rsp + _gpr_save + 8*0]
mov rbp, [rsp + _gpr_save + 8*1]
mov r12, [rsp + _gpr_save + 8*2]
mov r13, [rsp + _gpr_save + 8*3]
mov r14, [rsp + _gpr_save + 8*4]
mov r15, [rsp + _gpr_save + 8*5]
%ifndef LINUX
mov rsi, [rsp + _gpr_save + 8*6]
mov rdi, [rsp + _gpr_save + 8*7]
%endif
mov rsp, [rsp + _rsp_save] ; original SP
ret
return_null:
xor job_rax, job_rax
jmp return
mksection .rodata
default rel
align 64
index_to_lane16:
dq 0x0000000000000000, 0x0000000000000001
dq 0x0000000000000002, 0x0000000000000003
dq 0x0000000000000004, 0x0000000000000005
dq 0x0000000000000006, 0x0000000000000007
dq 0x0000000000000008, 0x0000000000000009
dq 0x000000000000000a, 0x000000000000000b
dq 0x000000000000000c, 0x000000000000000d
dq 0x000000000000000e, 0x000000000000000f
mksection stack-noexec
| 38.28169 | 83 | 0.5883 |
e2a6edb74a67c70f624cf7fd881bfe43c72435a4 | 184 | asm | Assembly | data/wildPokemon/route5.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | null | null | null | data/wildPokemon/route5.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | null | null | null | data/wildPokemon/route5.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | null | null | null | Route5Mons:
db $0F
db 15,PIDGEY
db 14,RATTATA
db 10,ABRA
db 16,PIDGEY
db 16,RATTATA
db 17,FARFETCHD
db 17,PIDGEOTTO
db 10,JIGGLYPUFF
db 15,MURKROW
db 17,JIGGLYPUFF
db $00
| 12.266667 | 17 | 0.722826 |
b14d2af78b99135c5314ff37d46f13411445681e | 223 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math48/c/sccz80/cm48_sccz80_pow.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/math/float/math48/c/sccz80/cm48_sccz80_pow.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/math/float/math48/c/sccz80/cm48_sccz80_pow.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
; double pow(double x, double y)
SECTION code_fp_math48
PUBLIC cm48_sccz80_pow
EXTERN am48_pow, cm48_sccz80p_dparam2
cm48_sccz80_pow:
call cm48_sccz80p_dparam2
; AC'= y
; AC = x
exx
jp am48_pow
| 11.736842 | 37 | 0.704036 |
912cc8e0b79b0e20812aa4e93865e5158ffa5eb3 | 2,122 | asm | Assembly | src/zxtrans_receiver_inf1.asm | xelalexv/zxtrans4l | 5f448ca33feb4d92cfd2954d0d1142f357bab955 | [
"BSD-2-Clause"
] | 1 | 2021-09-20T05:46:34.000Z | 2021-09-20T05:46:34.000Z | src/zxtrans_receiver_inf1.asm | xelalexv/zxtrans4l | 5f448ca33feb4d92cfd2954d0d1142f357bab955 | [
"BSD-2-Clause"
] | null | null | null | src/zxtrans_receiver_inf1.asm | xelalexv/zxtrans4l | 5f448ca33feb4d92cfd2954d0d1142f357bab955 | [
"BSD-2-Clause"
] | null | null | null | ;; ZX-Trans Receiver (+3 Version)
;;
;; Load ZX Spectrum snapshot, via RS232 serial port, based
;; on output from zxtrans_sender application.
;;
;;
;; Copyright 2015 George Beckett, All Rights Reserved
;;
;; Redistribution and use in source and binary forms,
;; with or without modification, are permitted provided
;; that the following conditions are met:
;;
;; - Redistributions of source code must retain the above
;; copyright notice, this list of conditions 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.
;;
;; THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
;;
;;
;; Version history:
;; Written by George Beckett <markgbeckett@gmail.com>
;; Version 0.2, Written 25th June 2015
;; Version 0.3, Written 2nd September 2015
;; Version 1.0, Written 17th September 2015 - 48k support
;; Version 1.1, Written 27th September 2015 - 16k support added
;;
;;
;;
include 'zxtrans_receiver.asm' ; Generic part of receiver program
include 'zxtrans_reader_inf1.asm' ; +3-specific serial input routine
include 'zxtrans_receiver_store.asm' ; Segmentation of memory used for temporary storage
| 44.208333 | 89 | 0.721489 |
ce396c4426dcddad1bc53092a0f848eca444c164 | 673 | asm | Assembly | oeis/130/A130624.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/130/A130624.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/130/A130624.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A130624: Binomial transform of A101000.
; Submitted by Jamie Morken(s4)
; 0,1,5,12,23,43,84,169,341,684,1367,2731,5460,10921,21845,43692,87383,174763,349524,699049,1398101,2796204,5592407,11184811,22369620,44739241,89478485,178956972,357913943,715827883,1431655764,2863311529,5726623061,11453246124,22906492247,45812984491,91625968980,183251937961,366503875925,733007751852,1466015503703,2932031007403,5864062014804,11728124029609,23456248059221,46912496118444,93824992236887,187649984473771,375299968947540,750599937895081,1501199875790165,3002399751580332
lpb $0
sub $0,1
add $2,2
add $3,$2
sub $3,1
add $4,1
mul $4,2
add $2,$4
sub $2,$3
lpe
mov $0,$3
| 42.0625 | 485 | 0.803863 |
2012104301ab3065bf1eb9667d5b88b32ff246ca | 358 | asm | Assembly | programs/oeis/040/A040224.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/040/A040224.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/040/A040224.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A040224: Continued fraction for sqrt(240).
; 15,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30,2,30
sub $0,1
mod $0,2
mul $0,12
add $0,2
mul $0,5
pow $0,2
mov $1,$0
div $1,99
mul $1,5
div $1,7
mul $1,16
div $1,20
add $1,2
| 21.058824 | 189 | 0.603352 |
9d66dc3efe05d3637e6472976064fd4df514857a | 652 | asm | Assembly | programs/oeis/073/A073784.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/073/A073784.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/073/A073784.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A073784: Number of primes between successive composite numbers.
; 1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,0,0,1,1,0,0,0,0,1,0,0,1,1,0,0,1,0,0,0,0,1,0,0,0,0,1,1,0,0,0,0,1,0,0,1,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,1,1,0
mov $3,2
mov $5,$0
lpb $3
mov $0,$5
sub $3,1
add $0,$3
sub $0,1
mov $6,$0
add $0,3
cal $0,65090 ; Natural numbers which are not odd primes: composites plus 1 and 2.
cal $0,230980 ; Number of primes <= n, starting at n=0.
mov $2,$3
mov $4,$0
sub $4,1
add $4,$6
lpb $2
mov $1,$4
sub $2,1
lpe
lpe
lpb $5
sub $1,$4
mov $5,0
lpe
sub $1,1
| 22.482759 | 211 | 0.558282 |
2f0c2e7e23e6b7b1a966a49c4cee5a05c8b3c59f | 712 | asm | Assembly | oeis/257/A257984.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/257/A257984.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/257/A257984.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A257984: Nonhomogeneous Beatty sequence: ceiling((n - 1/2)*Pi))
; Submitted by Jon Maiga
; 2,5,8,11,15,18,21,24,27,30,33,37,40,43,46,49,52,55,59,62,65,68,71,74,77,81,84,87,90,93,96,99,103,106,109,112,115,118,121,125,128,131,134,137,140,143,147,150,153,156,159,162,165,169,172,175,178,181,184,187,191,194,197,200,203,206,209,213,216,219,222,225,228,231,235,238,241,244,247,250,253,257,260,263,266,269,272,275,279,282,285,288,291,294,297,301,304,307,310,313
mov $1,1
mov $2,1
mov $3,$0
mul $3,5
lpb $3
mul $1,$3
mov $5,$3
mul $5,2
add $5,1
mul $2,$5
add $1,$2
mov $5,$0
add $5,$0
mov $4,$5
cmp $4,0
add $5,$4
div $1,$5
add $1,$2
div $2,$5
sub $3,1
lpe
div $1,$2
mov $0,$1
add $0,1
| 24.551724 | 366 | 0.629213 |
649af49abc89ceaeb8a4bc89edf3fcbb41cdabc6 | 479 | asm | Assembly | programs/oeis/321/A321195.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/321/A321195.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/321/A321195.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A321195: Minimum number of monochromatic Schur triples over all 2-colorings of [n].
; 0,0,0,0,1,1,2,3,4,6,7,9,11,13,15,18,20,23,26,29,33,36,40,44,48,52,57,61,66,71,76,82,87,93,99,105,111,118,124,131,138,145,153,160,168,176,184,192,201,209,218,227,236,246,255,265,275,285,295,306,316,327,338,349,361,372,384,396,408,420,433,445,458,471,484,498,511,525,539,553,567,582,596,611,626,641,657,672,688,704,720,736,753,769,786,803,820,838,855,873
sub $0,1
pow $0,2
add $0,2
div $0,11
| 59.875 | 354 | 0.7119 |
e4fde562822bbab68ee25daaceb4a188129e367f | 1,973 | asm | Assembly | src/bootloader/gdt.asm | i-yam-jeremy/self-alchemy-os | 09ba0c1a4266bbf977bd921ec7ff93b7a155ad49 | [
"MIT"
] | null | null | null | src/bootloader/gdt.asm | i-yam-jeremy/self-alchemy-os | 09ba0c1a4266bbf977bd921ec7ff93b7a155ad49 | [
"MIT"
] | null | null | null | src/bootloader/gdt.asm | i-yam-jeremy/self-alchemy-os | 09ba0c1a4266bbf977bd921ec7ff93b7a155ad49 | [
"MIT"
] | null | null | null | ; GDT
gdt_start:
gdt_null: ; the mandatory null descriptor
dd 0x0 ; ’dd’ means define double word (i.e. 4 bytes)
dd 0x0
gdt_code: ; the code segment descriptor
; base=0x0, limit=0xfffff ,
; 1st flags: (present )1 (privilege )00 (descriptor type)1 -> 1001b
; type flags: (code)1 (conforming )0 (readable )1 (accessed )0 -> 1010b
; 2nd flags: (granularity )1 (32-bit default )1 (64-bit seg)0 (AVL)0 -> 1100b
dw 0xffff ; Limit (bits 0-15)
dw 0x0 ; Base (bits 0-15)
db 0x0 ; Base (bits 16 -23)
db 10011010b ; 1st flags , type flags
db 11001111b ; 2nd flags , Limit (bits 16-19)
db 0x0 ; Base (bits 24 -31)
gdt_data: ;the data segment descriptor
; Same as code segment except for the type flags:
; type flags: (code)0 (expand down)0 (writable )1 (accessed )0 -> 0010b
dw 0xffff ; Limit (bits 0-15)
dw 0x0 ; Base (bits 0-15)
db 0x0 ; Base (bits 16 -23)
db 10010010b ; 1st flags , type flags
db 11001111b ; 2nd flags , Limit (bits 16-19)
db 0x0 ; Base (bits 24 -31)
gdt_end: ; The reason for putting a label at the end of the
; GDT is so we can have the assembler calculate
; the size of the GDT for the GDT decriptor (below)
; GDT descriptior
gdt_descriptor:
dw gdt_end - gdt_start - 1 ; Size of our GDT , always less one
; of the true size
dd gdt_start ; Start address of our GDT
; Define some handy constants for the GDT segment descriptor offsets , which
; are what segment registers must contain when in protected mode. For example ,
; when we set DS = 0x10 in PM , the CPU knows that we mean it to use the
; segment described at offset 0x10 (i.e. 16 bytes) in our GDT , which in our
; case is the DATA segment (0x0 -> NULL; 0x08 -> CODE; 0x10 -> DATA)
CODE_SEG equ gdt_code - gdt_start
DATA_SEG equ gdt_data - gdt_start
| 48.121951 | 91 | 0.621896 |
f9800dc8e2a88380c64387923c827c3e41c23bb6 | 533 | asm | Assembly | audio/sfx/cry25_3.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | audio/sfx/cry25_3.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | audio/sfx/cry25_3.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | SFX_Cry25_3_Ch5:
duty_cycle_pattern 2, 2, 1, 1
square_note 6, 15, 4, 1856
square_note 15, 14, 3, 1840
square_note 4, 15, 4, 1856
square_note 5, 11, 3, 1864
square_note 8, 13, 1, 1872
sound_ret
SFX_Cry25_3_Ch6:
duty_cycle_pattern 1, 3, 1, 3
square_note 6, 12, 3, 1810
square_note 15, 11, 3, 1796
square_note 3, 12, 3, 1810
square_note 4, 12, 3, 1825
square_note 8, 11, 1, 1842
sound_ret
SFX_Cry25_3_Ch8:
noise_note 8, 13, 6, 44
noise_note 12, 12, 6, 60
noise_note 10, 11, 6, 44
noise_note 8, 9, 1, 28
sound_ret
| 19.740741 | 30 | 0.699812 |
21f31fc78b5b0e2566b2ce2f427a9d64623a813a | 741 | asm | Assembly | tp04.asm | wjacoud/Assembly_Repo | 355cd587c69fbdd47cb1e76448ea9f87f8ad1138 | [
"MIT"
] | null | null | null | tp04.asm | wjacoud/Assembly_Repo | 355cd587c69fbdd47cb1e76448ea9f87f8ad1138 | [
"MIT"
] | null | null | null | tp04.asm | wjacoud/Assembly_Repo | 355cd587c69fbdd47cb1e76448ea9f87f8ad1138 | [
"MIT"
] | null | null | null | ; TRABALHO PRATICO - CODIGO XXXX
; Aluno 1:
; Aluno 2:
; Aluno 3:
.8086
.model small
.stack 2048
dseg segment para public 'data'
lin byte 2 ; VARIAVEIS...
col byte 3
alt byte 7
larg byte 5
dseg ends
cseg segment para public 'code'
assume cs:cseg, ds:dseg
main proc
mov ax, dseg
mov ds, ax
mov ax, 0B800h
mov es, ax
mov al, lin ;iniciar num local do ecra (linha/coluna)
mov bl, 160
mul bl
mov di, ax
mov al, col
mov bl, 2
mul bl
add di, ax
mov al, larg
mov bl, 2
mul bl
mov si; ax
add si, di
mov al, alt
mov bl, 2
div bl
mov bh, 01110100b
mov bl, ’+’
mov cx, al
ciclo1:
mov es:[di], bx
mov es:[si], bx
mov ah, 4ch
int 21h
main endp
cseg ends
end main | 12.775862 | 57 | 0.609987 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.