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
72f0419f2fd8ef3ded906b070772153232da8b6f
217
asm
Assembly
libsrc/stdio/vg5k/getk.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
null
null
null
libsrc/stdio/vg5k/getk.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
null
null
null
libsrc/stdio/vg5k/getk.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
null
null
null
; ; Philips VG5000 ; ; getkey() Wait for keypress ; ; Jun 2014 - Joaopa ; ; ; $Id: getk.asm,v 1.4 2015/10/08 17:12:22 stefano Exp $ ; PUBLIC getk ld ix,$47FA .getk call $aa ld l,a ld h,0 ret
10.85
58
0.562212
418f6c5c1888e4700b948f0d68ae938d8ba49e0e
714
asm
Assembly
oeis/159/A159925.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/159/A159925.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/159/A159925.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A159925: Row sums of triangle A159924. ; Submitted by Jamie Morken(s2) ; 1,3,12,61,370,2606,20925,188772,1890773,20822481,250082522,3253176309,45567394330,683783923476,10944068960451,186098265906832,3350501663825617,63671208559149815,1273621946395366224,26749609151178886245,588558620811370842746,13538189120093360094738,324944629332823651871537,8124232382391985677228996,211244196780383115348489205,5703932412537868425801615381,159718570882910232219514866510,4632058263133027033778349253837,138967671533931979181188697355538,4308163459762715433016907352628616 mov $2,$0 mov $4,$0 add $4,1 lpb $4 mov $0,$2 sub $4,1 sub $0,$4 lpb $0 sub $0,1 add $3,$1 lpe add $3,1 add $1,$3 lpe mov $0,$3
35.7
489
0.815126
8ec657712d9c706f53460ec77760b24c912cf430
87
asm
Assembly
public/wintab/wintabx/qsizeset.asm
SmileyAG/cstrike15_src
5315265785320e0f53ebd27c3486e6c7b826a227
[ "Unlicense" ]
2
2022-02-25T12:18:31.000Z
2022-03-16T23:59:59.000Z
public/wintab/wintabx/qsizeset.asm
SmileyAG/cstrike15_src
5315265785320e0f53ebd27c3486e6c7b826a227
[ "Unlicense" ]
null
null
null
public/wintab/wintabx/qsizeset.asm
SmileyAG/cstrike15_src
5315265785320e0f53ebd27c3486e6c7b826a227
[ "Unlicense" ]
7
2021-08-22T11:29:02.000Z
2022-03-29T11:59:15.000Z
include xlibproc.inc include Wintab.inc PROC_TEMPLATE WTQueueSizeSet, 2, Wintab, -, 85
21.75
46
0.804598
ff91ff58ffe8d894b187e2a621ce01f9af6ab362
3,190
asm
Assembly
dino/lcs/item/1C.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
dino/lcs/item/1C.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
dino/lcs/item/1C.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
1
2020-12-17T08:59:10.000Z
2020-12-17T08:59:10.000Z
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 0018B8 add.w ($1c,A6), D0 [123p+ 16, enemy+16, item+16] 0018BC move.w D0, ($16,A6) [123p+ 1C, enemy+1C, item+1C] 0048F4 move.l D0, (A4)+ 0048F6 move.l D0, (A4)+ 004D3E move.l D0, (A4)+ 004D40 dbra D1, $4d38 024808 move.w #$ffd0, ($1c,A6) [item+16] 02480E moveq #$0, D0 [item+1C] 0250E0 move.w #$ffd0, ($1c,A6) [item+16] 0250E6 move.b #$2, ($5,A6) [item+1C] 0253A4 move.w D3, ($1c,A6) 0253A8 moveq #$0, D0 0254D4 move.w D3, ($1c,A6) 0254D8 moveq #$0, D0 025882 move.w D3, ($1c,A6) 025886 moveq #$0, D0 025B1A move.w D3, ($1c,A6) 025B1E moveq #$0, D0 025D08 move.w D3, ($1c,A6) [item+16] 025D0C moveq #$0, D0 [item+1C] 025DAE move.w D3, ($1c,A6) [item+16] 025DB2 moveq #$0, D0 [item+1C] 025F0E move.w #$ffbb, ($1c,A6) 025F14 addq.b #1, ($b1,A6) [item+1C] 026086 move.w #$ffc0, ($1c,A6) [item+16] 02608C move.w #$200, D0 [item+1C] 028A20 move.w #$ffd0, ($1c,A6) [item+16] 028A26 addq.b #2, ($5,A6) [item+1C] 028FEC move.w (A1)+, ($1c,A6) [item+16] 028FF0 moveq #$0, D0 [item+1C] 0296E2 move.w #$ffe0, ($1c,A6) [item+16] 0296E8 move.w #$300, D0 [item+1C] 029D7C move.w #$c0, ($1c,A6) [item+16] 029D82 move.l #$29eb4, ($40,A6) [item+1C] 029DCA neg.w ($1c,A6) 029DCE addi.w #$b0, ($16,A6) [item+1C] 029DE0 neg.w ($1c,A6) 029DE4 subi.w #$b0, ($16,A6) [item+1C] 02A0B6 move.w #$ffd0, ($1c,A6) [item+16] 02A0BC move.b #$2, ($5,A6) [item+1C] 0AAACA move.l (A0), D2 0AAACC move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, enemy+DE, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAACE move.w D0, ($2,A0) 0AAAD2 cmp.l (A0), D0 0AAAD4 bne $aaafc 0AAAD8 move.l D2, (A0)+ 0AAADA cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, enemy+DE, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAAE6 move.l (A0), D2 0AAAE8 move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, enemy+DE, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAAF4 move.l D2, (A0)+ 0AAAF6 cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, enemy+DE, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] copyright zengfr site:http://github.com/zengfr/romhack
55
350
0.62884
715807ae61f9311e3d1b147fef1bb42e67c2f734
317
asm
Assembly
programs/oeis/024/A024715.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/024/A024715.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/024/A024715.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A024715: a(n) = residue mod 11 of n-th term of A024702. ; 1,2,5,7,1,4,0,2,7,2,4,0,4,7,2,1,0,1,2,7,1,0,7,7,2,4,0,4,1,0,1,2,1,4,4,7,7,4,4,1,2,1,0,0,7,4,2,7,7,4,0,7,2,0,1,2,7,1,4,2,0,4,1,7,0,2,1,4,0,2,2,0,1,7,2,0,1,7,0,4,7,2,0,4,7,1,0,0,1,1,4,2,2,4,4,2,1,7,4,2 seq $0,215848 ; Primes > 3. pow $0,2 div $0,2 mod $0,11
39.625
201
0.542587
fe73a42348dccacaaea763aacc98dd2a83ef4338
6,886
asm
Assembly
src/other/model_detector.asm
Hacktix/sketchtests
cf3a3490f444b84b52420949e31e27340bd475d7
[ "MIT" ]
2
2020-08-26T19:07:24.000Z
2020-08-27T11:09:14.000Z
src/other/model_detector.asm
Hacktix/sketchtests
cf3a3490f444b84b52420949e31e27340bd475d7
[ "MIT" ]
3
2020-08-26T21:52:28.000Z
2020-08-29T15:10:57.000Z
src/other/model_detector.asm
Hacktix/sketchtests
cf3a3490f444b84b52420949e31e27340bd475d7
[ "MIT" ]
null
null
null
include "src/inc/hardware.inc" ;------------------------------------------------------------------------- ; NOTE: This ROM must be assembled with CGB and SGB support ; options enabled! ;------------------------------------------------------------------------- ; # $C000 - Test Result ; - $00 : Unknown Model ; - $01 : DMG ; - $02 : MGB (currently also SGB2) ; - $03 : SGB ; - $04 : SGB2 ; - $05 : CGB ; - $06 : AGB/AGS ;------------------------------------------------------------------------- section "Header", rom0[$100] di jp EntryPoint section "Main Code", rom0[$150] EntryPoint: ; Preserve Flags push af ; Check for A = $01 cp $01 jr nz, .accNot01 ; If not jumped, can only be DMG or SGB ; Check equal values ld a, b ; Check if B = $00 and a jp nz, .unknownModel ld a, d ; Check if D = $00 and a jp nz, .unknownModel ; Check for DMG ld a, c ; Check if C = $13 cp $13 jr nz, .notDMG ld a, e ; Check if D = $D3 cp $d8 jr nz, .notDMG ld a, h ; Check if H = $01 cp $01 jr nz, .notDMG ld a, l ; Check if L = $4D cp $4d jr nz, .notDMG pop de ; Check initial flags (F = $B0) push de ld a, e cp $b0 jr nz, .notDMG ld a, $01 ld [$c000], a jp DisplayResults .notDMG ; Check for SGB ld a, c ; Check if C = $14 cp $14 jp nz, .unknownModel ld a, e ; Check if E = $00 and a jp nz, .unknownModel ld a, h ; Check if H = $C0 cp $C0 jp nz, .unknownModel ld a, l ; Check if L = $60 cp $60 jp nz, .unknownModel pop de ; Check initial flags (F = $00) push de ld a, e cp $00 jr nz, .unknownModel ld a, $03 ld [$c000], a jp DisplayResults .accNot01 ; Check for A = $FF cp $FF jr nz, .accNotFF ; If not jumped, can only be MGB or SGB2 ; TODO: Detect difference between SGB2 and MGB ld a, $02 ld [$c000], a jp DisplayResults .accNotFF ; Check for A = $11 cp $11 jp nz, .unknownModel ; If not jumped, can only be CGB, AGB or AGS ; Check common values ld a, c ; Check if C = $00 and a jp nz, .unknownModel ld a, d ; Check if D = $FF cp $FF jp nz, .unknownModel ld a, e ; Check if E = $56 cp $56 jp nz, .unknownModel ld a, h ; Check if H = $00 and a jp nz, .unknownModel ld a, l ; Check if L = $0D cp $0d jp nz, .unknownModel ; Check for CGB ld a, b ; Check if B = $00 and a jr nz, .notCGB pop de ; Check initial flags (F = $80) push de ld a, e cp $80 jr nz, .notCGB ld a, $05 ld [$c000], a jp DisplayResults .notCGB ; Check for AGB/AGS ld a, b ; Check if B = $01 cp a, $01 jr nz, .unknownModel pop de ; Check initial flags (F = $00) push de ld a, e and a jr nz, .unknownModel ld a, $06 ld [$c000], a jp DisplayResults .unknownModel ld a, $00 ld [$c000], a jp DisplayResults ;------------------------------------------------------------------------- ; Prints string pointed to by DE to the screen ;------------------------------------------------------------------------- DisplayResults: ; Wait for VBlank ld de, $0000 .waitVblank inc de ld a, d cp $50 jr z, .vblankTimeout ld a, [$ff41] and $03 jr nz, .waitVblank .vblankTimeout ; Disable LCD xor a ld [rLCDC], a ; Initialize VRAM call InitFont ; Initialize VRAM offset and print title ld a, $02 ld [$c100], a ld de, strTitle call PrintStringSerial call PrintStringGFX ; Add 'VRAM linebreak' ld hl, $c100 inc [hl] inc [hl] ; Load model string pointer ld de, strModels ld a, [$c000] and a jr z, .skipModelLoop ld b, a .modelLoop ld a, 12 add e ld e, a ld a, d adc $00 ld d, a dec b jr nz, .modelLoop .skipModelLoop ; Print model string call PrintStringSerial call PrintStringGFX ; Load DMG-BGP ld a, %11100100 ld [rBGP], a ; Load CGB Palettes ld a, $80 ld [rBCPS], a ld a, $FF ld b, $06 .cgbPaletteLoop ld [rBCPD], a dec b jr nz, .cgbPaletteLoop xor a ld [rBCPD], a ld [rBCPD], a ; Restart LCD ld a, %10000001 ld [rLCDC], a jr @ ;------------------------------------------------------------------------- ; Prints string pointed to by DE to the screen ;------------------------------------------------------------------------- PrintStringGFX: ; Preserve HL push hl ; Calculate VRAM pointer with offset in $C100 ld hl, $c100 ld a, [hl] swap a and $0F jr z, .noOverflow ; If overflow to H push bc ld b, a ld a, [hl] swap a and $F0 inc [hl] inc [hl] ld hl, $9801 add l ld l, a ld a, b add h ld h, a pop bc jr .writeString .noOverflow ld a, [hl] swap a and $F0 inc [hl] inc [hl] ld hl, $9801 add l ld l, a .writeString ld a, [de] and a jr z, .finishWrite ld [hli], a inc de jr .writeString .finishWrite pop hl ret ;------------------------------------------------------------------------- ; Prints string pointed to by DE to serial port ;------------------------------------------------------------------------- PrintStringSerial: push de .writeString ld a, [de] and a jr z, .finishWrite ld [rSB], a inc de jr .writeString .finishWrite pop de ret ;------------------------------------------------------------------------- ; Loads font tiles into VRAM ;------------------------------------------------------------------------- InitFont: ld hl, $9000 ld de, FontTiles ld bc, FontTilesEnd - FontTiles .copyFont ld a, [de] ld [hli], a inc de dec bc ld a, b or c jr nz, .copyFont ret section "Graphics", rom0 FontTiles: incbin "src/inc/font.chr" FontTilesEnd: section "Strings", rom0[$1000] strTitle: db "model_detector\n\n", 0 strModels: ; Include padding so each string is 12 bytes db "Unknown", 0 ds 12 - ((@ - strModels) % 12), 0 db "DMG", 0 ds 12 - ((@ - strModels) % 12), 0 db "MGB/SGB2", 0 ds 12 - ((@ - strModels) % 12), 0 db "SGB", 0 ds 12 - ((@ - strModels) % 12), 0 db "SGB2", 0 ds 12 - ((@ - strModels) % 12), 0 db "CGB", 0 ds 12 - ((@ - strModels) % 12), 0 db "AGB/AGS", 0 ds 12 - ((@ - strModels) % 12), 0
20.312684
74
0.452948
fca4a97267958a53c9ad230c068e70b93d1f0317
1,540
asm
Assembly
example/example.asm
pwestrich/csc_3410
9b424c6aee65892b90bd77171fe5fa0151762ef5
[ "MIT" ]
null
null
null
example/example.asm
pwestrich/csc_3410
9b424c6aee65892b90bd77171fe5fa0151762ef5
[ "MIT" ]
null
null
null
example/example.asm
pwestrich/csc_3410
9b424c6aee65892b90bd77171fe5fa0151762ef5
[ "MIT" ]
null
null
null
; Example assembly language program -- adds two numbers ; Author: R. Detmer ; Date: revised 7/97 .386 .MODEL FLAT ExitProcess PROTO NEAR32 stdcall, dwExitCode:DWORD INCLUDE ../io.h ; header file for input/output cr EQU 0dh ; carriage return character Lf EQU 0ah ; line feed .STACK 4096 ; reserve 4096-byte stack .DATA ; reserve storage for data number1 DWORD ? number2 DWORD ? prompt1 BYTE "Enter first number: ", 0 prompt2 BYTE "Enter second number: ", 0 string BYTE 40 DUP (?) label1 BYTE cr, Lf, "The sum is " sum BYTE 11 DUP (?) BYTE cr, Lf, 0 .CODE ; start of main program code _start: output prompt1 ; prompt for first number input string, 40 ; read ASCII characters atod string ; convert to integer mov number1, eax ; store in memory output prompt2 ; repeat for second number input string, 40 atod string mov number2, eax mov eax, number1 ; first number to EAX add eax, number2 ; add second number dtoa sum, eax ; convert to ASCII characters output label1 ; output label and sum INVOKE ExitProcess, 0 ; exit with return code 0 PUBLIC _start ; make entry point public END ; end of source code
30.8
62
0.537013
e594438da18c7ed2eb7b31037d3bdbda725bbe10
4,879
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1168.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_0xca_notsx.log_21829_1168.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_0xca_notsx.log_21829_1168.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 %rax push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x1c202, %rsi lea addresses_normal_ht+0xfb68, %rdi nop nop nop nop cmp $19131, %r10 mov $36, %rcx rep movsb nop nop nop nop nop add $657, %rbp lea addresses_A_ht+0x1d7c8, %rbp cmp %rax, %rax mov (%rbp), %di nop nop inc %rdi pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r15 push %r9 push %rcx push %rdi push %rsi // REPMOV lea addresses_A+0x6b08, %rsi lea addresses_WT+0xbf88, %rdi nop nop and $11691, %r9 mov $34, %rcx rep movsw nop nop nop sub %rcx, %rcx // Load lea addresses_UC+0xe988, %r11 nop add $59562, %r14 movups (%r11), %xmm5 vpextrq $1, %xmm5, %rdi sub %rcx, %rcx // Faulty Load lea addresses_WC+0x1a308, %r15 clflush (%r15) add $32160, %rdi movb (%r15), %r9b lea oracles, %r14 and $0xff, %r9 shlq $12, %r9 mov (%r14,%r9,1), %r9 pop %rsi pop %rdi pop %rcx pop %r9 pop %r15 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_A'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_WT'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7, 'same': False, 'type': 'addresses_UC'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_WC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 1, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
48.306931
2,999
0.658947
8ac33fe96ead0717d42ccf44b319eab5566602a2
606
asm
Assembly
oeis/317/A317405.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/317/A317405.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/317/A317405.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A317405: a(n) = n * A001353(n). ; 1,8,45,224,1045,4680,20377,86912,364905,1513160,6211909,25290720,102251773,410963336,1643288625,6541692416,25939798993,102503274120,403800061789,1586318259680,6216231359205,24304019419592,94826736906697,369285078314880,1435615286196025,5572100755734344,21595184783958645,83579301879704288,323062279686057421,1247260181169717000,4809999645262378081,18530232836652873728,71316888248171862945,274223651906552484104,1053517089833286951565,4044115857497072928480,15512091569981666309557 add $0,1 mov $2,$0 lpb $0 sub $0,1 add $1,$2 add $2,$1 add $2,$1 lpe mov $0,$1
46.615385
483
0.833333
94a90be957d72f8df2cf9c8df429e4cae13c09ab
888
asm
Assembly
_maps/obj48.asm
vladjester2020/Sonic1TMR
22e749a2aab74cc725729e476d6252b071c12e42
[ "Apache-2.0" ]
null
null
null
_maps/obj48.asm
vladjester2020/Sonic1TMR
22e749a2aab74cc725729e476d6252b071c12e42
[ "Apache-2.0" ]
2
2019-06-13T14:26:59.000Z
2019-10-10T13:15:14.000Z
_maps/obj48.asm
vladjester2020/Sonic1TMR
22e749a2aab74cc725729e476d6252b071c12e42
[ "Apache-2.0" ]
null
null
null
; --------------------------------------------------------------------------- ; Sprite mappings - swinging ball on a chain from GHZ boss ; --------------------------------------------------------------------------- dc.w byte_81B2-Map_obj48, byte_81D1-Map_obj48 dc.w byte_81E6-Map_obj48, byte_81FB-Map_obj48 byte_81B2: dc.b 6 dc.b $F0, 4, 0, $24, $F0 dc.b $F8, 4, $10, $24, $F0 dc.b $E8, $A, 0, 0, $E8 dc.b $E8, $A, 8, 0, 0 dc.b 0, $A, $10, 0, $E8 dc.b 0, $A, $18, 0, 0 byte_81D1: dc.b 4 dc.b $E8, $A, 0, 9, $E8 dc.b $E8, $A, 8, 9, 0 dc.b 0, $A, $10, 9, $E8 dc.b 0, $A, $18, 9, 0 byte_81E6: dc.b 4 dc.b $E8, $A, 0, $12, $E8 dc.b $E8, $A, 0, $1B, 0 dc.b 0, $A, $18, $1B, $E8 dc.b 0, $A, $18, $12, 0 byte_81FB: dc.b 4 dc.b $E8, $A, 8, $1B, $E8 dc.b $E8, $A, 8, $12, 0 dc.b 0, $A, $10, $12, $E8 dc.b 0, $A, $10, $1B, 0 even
31.714286
78
0.407658
4b4dc3164b739092d1883c27e25625934b32bded
448
asm
Assembly
programs/oeis/131/A131421.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/131/A131421.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/131/A131421.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A131421: Triangle read by rows (n>=1, 1<=k<=n): T(n,k) = 2*(n+k) - 3. ; 1,3,5,5,7,9,7,9,11,13,9,11,13,15,17,11,13,15,17,19,21,13,15,17,19,21,23,25,15,17,19,21,23,25,27,29,17,19,21,23,25,27,29,31,33,19,21,23,25,27,29,31,33,35,37,21,23,25,27,29,31,33,35,37,39,41,23,25,27,29,31,33,35,37,39,41,43,45,25,27,29,31,33,35,37,39,41,43,45,47,49,27,29,31,33,35,37,39,41,43 mov $2,$0 lpb $2 add $1,1 sub $2,$1 lpe add $1,$2 mul $1,2 add $1,1 mov $0,$1
34.461538
292
0.602679
3327cd093be72f9fd4f747d019bce7bca3e0c116
54
asm
Assembly
8088/arduino_keyboard/simple.asm
reenigne/reenigne
c3eb8b31d7964e78bbe44908987d4be052a74488
[ "Unlicense" ]
92
2015-04-10T17:45:11.000Z
2022-03-30T17:58:51.000Z
8088/arduino_keyboard/simple.asm
MS-DOS-stuff/reenigne
0a113990aef398550c6f14d1c7a33af1cb091887
[ "Unlicense" ]
2
2017-11-05T07:21:35.000Z
2018-11-04T23:36:13.000Z
8088/arduino_keyboard/simple.asm
MS-DOS-stuff/reenigne
0a113990aef398550c6f14d1c7a33af1cb091887
[ "Unlicense" ]
18
2015-04-11T20:32:44.000Z
2021-11-06T05:19:57.000Z
mov ax,0xb800 mov es,ax mov byte[es:0],42 hlt
10.8
19
0.611111
a52f79a547e05630647c1d5cb8e06131198027b1
1,031
asm
Assembly
base/crts/crtw32/direct/i386/enable.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/crts/crtw32/direct/i386/enable.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/crts/crtw32/direct/i386/enable.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
page ,132 title enable - enable/disable interrupts ;*** ;enable.asm - contains _enable() and _disable() routines ; ; Copyright (c) 1993-2001, Microsoft Corporation. All rights reserved. ; ;Purpose: ; ;Revision History: ; 06-15-93 GJF Module created. ; 10-25-93 GJF Added ifndef to ensure this is not part of the NT ; SDK build. ; ;******************************************************************************* ifndef _NTSDK .xlist include cruntime.inc .list page ;*** ;void _enable(void) - enables interrupts ;void _disable(void) - disables interrupts ; ;Purpose: ; The _enable() functions executes a "sti" instruction. The _disable() ; function executes a "cli" instruction. ; ;Entry: ; ;Exit: ; ;Uses: ; ;Exceptions: ; ;******************************************************************************* CODESEG public _enable, _disable _enable proc sti ret _enable endp align 4 _disable proc cli ret _disable endp endif ; _NTSDK end
15.621212
81
0.550921
ab9479c128d411211a2e0b2dd2be61ef8c553af2
428
asm
Assembly
programs/oeis/164/A164304.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/164/A164304.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/164/A164304.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A164304: a(n) = 4*a(n-1) - 2*a(n-2) for n > 1; a(0) = 3, a(1) = 14. ; 3,14,50,172,588,2008,6856,23408,79920,272864,931616,3180736,10859712,37077376,126590080,432205568,1475642112,5038157312,17201345024,58729065472,200513571840,684596156416,2337357481984,7980237615104,27246235496448,93024466755584,317605396029440,1084372650606592,3702279810367488 mov $1,3 mov $2,4 lpb $0,1 sub $0,1 add $1,$2 add $2,$1 mul $1,2 lpe
35.666667
279
0.738318
5e46cb5d99da8ba9b9e17a0bd901aab0a6d3afd7
284
asm
Assembly
programs/oeis/179/A179976.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/179/A179976.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/179/A179976.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A179976: 2^(2n+1) mod (2n+1). ; 0,2,2,2,8,2,2,8,2,2,8,2,7,26,2,2,8,18,2,8,2,2,17,2,30,8,2,43,8,2,2,8,32,2,8,2,2,68,18,2,80,2,32,8,2,37,8,13,2,17,2,2,92,2,2,8,2,78,44,60,112,8,57,2,8,2,128,53,2,2,8,85,32,50,2,2,53,63,2,8,151 mul $0,2 add $0,1 mov $1,2 pow $1,$0 mod $1,$0 mov $0,$1
28.4
193
0.556338
7a759a512cb4d2722e91085d80784c31d5529974
2,477
asm
Assembly
1 Unidad/Practica1B.asm
AramisRamirezITT/MicrocontroladoresUAG
fd41e6926cd3a51b7fa14d27d86022e368985f6d
[ "MIT" ]
null
null
null
1 Unidad/Practica1B.asm
AramisRamirezITT/MicrocontroladoresUAG
fd41e6926cd3a51b7fa14d27d86022e368985f6d
[ "MIT" ]
null
null
null
1 Unidad/Practica1B.asm
AramisRamirezITT/MicrocontroladoresUAG
fd41e6926cd3a51b7fa14d27d86022e368985f6d
[ "MIT" ]
null
null
null
; PIC16F15313 Configuration Bit Settings ; Assembly source line config statements #include "p16f15313.inc" ; CONFIG1 ; __config 0xFF8F __CONFIG _CONFIG1, _FEXTOSC_ECH & _RSTOSC_HFINT32 & _CLKOUTEN_OFF & _CSWEN_ON & _FCMEN_ON ; CONFIG2 ; __config 0x3FFF __CONFIG _CONFIG2, _MCLRE_ON & _PWRTE_OFF & _LPBOREN_OFF & _BOREN_ON & _BORV_LO & _ZCD_OFF & _PPS1WAY_ON & _STVREN_ON ; CONFIG3 ; __config 0x3F9F __CONFIG _CONFIG3, _WDTCPS_WDTCPS_31 & _WDTE_OFF & _WDTCWS_WDTCWS_7 & _WDTCCS_SC ; CONFIG4 ; __config 0x3FFF __CONFIG _CONFIG4, _BBSIZE_BB512 & _BBEN_OFF & _SAFEN_OFF & _WRTAPP_OFF & _WRTB_OFF & _WRTC_OFF & _WRTSAF_OFF & _LVP_ON ; CONFIG5 ; __config 0x3FFF __CONFIG _CONFIG5, _CP_OFF ; TODO INSERT CONFIG CODE HERE USING CONFIG BITS GENERATOR ; <Fecha::Nombre, Ejemplo 2010/01/15::Cuerdas, Juan> ; <Titulo, ejemplo: Practica_1A_HelloWorld> ; <Grupo, Ejemplo, 9A matutino> ; TODO INSERT CONFIG CODE HERE USING CONFIG BITS GENERATOR ;----------------------------------------------------------------------- ; TODO INSERT CONFIG CODE HERE USING CONFIG BITS GENERATOR ;----------------------------------------------------------------------- RES_VECT CODE 0x0000 ; processor reset vector GOTO START ; go to beginning of program ; TODO ADD INTERRUPTS HERE IF USED ;----------------------------------------------------------------------- MAIN_PROG CODE ; let linker place main program ;----------------------------------------------------------------------- ; Configuracion del micro para la practica START call SETUP ; Codigo de la practica loop_forever call LOOP goto loop_forever ;----------------------------------------------------------------------- SETUP BANKSEL PORTA CLRF PORTA BANKSEL LATA CLRF LATA BANKSEL ANSELA CLRF ANSELA ;digital I/O BANKSEL TRISA MOVLW B'00000011' ; Set int/out 1 = int ; 0 = Out MOVWF TRISA return ;----------------------------------------------------------------------- LOOP BANKSEL PORTA ;Select PortA BTFSC PORTA, RA0 ; Si el Bit RA0 Es 1 ve a la etiqueta "ELSE_CODE" GOTO ELSE_CODE ; ve a la etiqueta "ELSE_CODE" BCF PORTA, RA5 ; Limpia bit 5 del portA "Apagar Led" GOTO END_IF ; Ve a etiqueta "END_IF" ELSE_CODE BSF PORTA, RA5 ; Set bit 5 del puierto A "Prende Led" END_IF GOTO LOOP ;"Ciclo ingfinito" END
32.168831
121
0.569237
25babb82b846356c1e971f60dd97b1609743a6b2
869
asm
Assembly
constants/status_constants.asm
AmateurPanda92/pokemon-rby-dx
f7ba1cc50b22d93ed176571e074a52d73360da93
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
constants/status_constants.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
constants/status_constants.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
; non-volatile statuses SLP EQU %111 ; sleep counter PSN EQU 3 BRN EQU 4 FRZ EQU 5 PAR EQU 6 ; volatile statuses 1 STORING_ENERGY EQU 0 ; Bide THRASHING_ABOUT EQU 1 ; e.g. Thrash ATTACKING_MULTIPLE_TIMES EQU 2 ; e.g. Double Kick, Fury Attack FLINCHED EQU 3 CHARGING_UP EQU 4 ; e.g. Solar Beam, Fly USING_TRAPPING_MOVE EQU 5 ; e.g. Wrap INVULNERABLE EQU 6 ; charging up Fly/Dig CONFUSED EQU 7 ; volatile statuses 2 USING_X_ACCURACY EQU 0 PROTECTED_BY_MIST EQU 1 GETTING_PUMPED EQU 2 ; Focus Energy ; EQU 3 ; unused HAS_SUBSTITUTE_UP EQU 4 NEEDS_TO_RECHARGE EQU 5 ; Hyper Beam USING_RAGE EQU 6 SEEDED EQU 7 ; volatile statuses 3 BADLY_POISONED EQU 0 HAS_LIGHT_SCREEN_UP EQU 1 HAS_REFLECT_UP EQU 2 TRANSFORMED EQU 3
26.333333
62
0.64557
feefc258c2ed8702487182f11087e01c8cd5db1b
605
asm
Assembly
Assignment6/execve_bin_sh.asm
sajithshetty/SLAE32
1171a9e3ef78786e069226fcd31ad6d5f2a4057b
[ "CC0-1.0" ]
null
null
null
Assignment6/execve_bin_sh.asm
sajithshetty/SLAE32
1171a9e3ef78786e069226fcd31ad6d5f2a4057b
[ "CC0-1.0" ]
null
null
null
Assignment6/execve_bin_sh.asm
sajithshetty/SLAE32
1171a9e3ef78786e069226fcd31ad6d5f2a4057b
[ "CC0-1.0" ]
null
null
null
global _start section .text _start: xor eax, eax ;zero out eax register push eax ; push 0 on to stack ; objective is to push 0x68732f2f--- > (hs//) on to stack. mov ecx, 0x978CD0D0 ; move 0x978CD0D0 to ecx register not ecx ;not (0x978CD0D0) = 0x68732f2f push ecx ;push 0x68732f2f onto stack -- hs// push 0x6e69622f ; push nib/ onto stack xor ecx, ecx ; zero out ecx register xchg esp, ebx ; objective is to place esp pointer to arg in ebx reg.. instead of using mov ebx, esp ,use xchg to reduce the byte of shellcode mov al, 0xb ; execve sys call number int 0x80
31.842105
146
0.689256
971ca5f9a77ca77a3e2e0998e25823686b8d0bf2
746
asm
Assembly
src/sprite/constants.asm
geniiii/genesis-pong
e733238cf1fe8a7d0e628b926ebfa438e42fbcda
[ "MIT" ]
null
null
null
src/sprite/constants.asm
geniiii/genesis-pong
e733238cf1fe8a7d0e628b926ebfa438e42fbcda
[ "MIT" ]
1
2021-06-25T12:21:04.000Z
2021-06-25T12:21:04.000Z
src/sprite/constants.asm
geniiii/genesis-pong
e733238cf1fe8a7d0e628b926ebfa438e42fbcda
[ "MIT" ]
null
null
null
spr_1_1: equ %0000 ; 1x1 tiles spr_2_1: equ %0100 ; 2x1 tiles spr_3_1: equ %1000 ; 3x1 tiles spr_4_1: equ %1100 ; 4x1 tiles spr_1_2: equ %0001 ; 1x2 tiles spr_2_2: equ %0101 ; 2x2 tiles spr_3_2: equ %1001 ; 3x2 tiles spr_4_2: equ %1101 ; 4x2 tiles spr_1_3: equ %0010 ; 1x3 tiles spr_2_3: equ %0110 ; 2x3 tiles spr_3_3: equ %1010 ; 3x3 tiles spr_4_3: equ %1110 ; 4x3 tiles spr_1_4: equ %0011 ; 1x4 tiles spr_2_4: equ %0111 ; 2x4 tiles spr_3_4: equ %1011 ; 3x4 tiles spr_4_4: equ %1111 ; 4x4 tiles spr_hflip: equ $0800 ; Flip horizontally spr_vflip: equ $1000 ; Flip vertically spr_vhflip: equ $1800 ; Flip both ways spr_max: equ 80 spr_table_size_b: equ 8 * spr_max spr_table_size_w: equ spr_table_size_b / size_word
28.692308
51
0.705094
de0272e408726731f6629c33e09a2119868fd16d
1,543
asm
Assembly
scripts/SSAnneCaptainsRoom.asm
AmateurPanda92/pokemon-rby-dx
f7ba1cc50b22d93ed176571e074a52d73360da93
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
scripts/SSAnneCaptainsRoom.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
scripts/SSAnneCaptainsRoom.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
SSAnneCaptainsRoom_Script: call SSAnne7Script_6189b jp EnableAutoTextBoxDrawing SSAnne7Script_6189b: CheckEvent EVENT_RUBBED_CAPTAINS_BACK ret nz ld hl, wd72d set 5, [hl] ret SSAnneCaptainsRoom_TextPointers: dw SSAnne7Text1 dw SSAnne7Text2 dw SSAnne7Text3 SSAnne7Text1: TX_ASM CheckEvent EVENT_GOT_HM01 jr nz, .asm_797c4 ld hl, SSAnne7RubText call PrintText ld hl, ReceivingHM01Text call PrintText lb bc, HM_01, 1 call GiveItem jr nc, .BagFull ld hl, ReceivedHM01Text call PrintText SetEvent EVENT_GOT_HM01 jr .asm_0faf5 .BagFull ld hl, HM01NoRoomText call PrintText ld hl, wd72d set 5, [hl] jr .asm_0faf5 .asm_797c4 ld hl, SSAnne7Text_61932 call PrintText .asm_0faf5 jp TextScriptEnd SSAnne7RubText: TX_FAR _SSAnne7RubText TX_ASM ld a, [wAudioROMBank] cp BANK(Audio3_UpdateMusic) ld [wAudioSavedROMBank], a jr nz, .asm_61908 ld a, $ff ld [wNewSoundID], a call PlaySound ld a, Bank(Music_PkmnHealed) ld [wAudioROMBank], a .asm_61908 ld a, MUSIC_PKMN_HEALED ld [wNewSoundID], a call PlaySound .asm_61910 ld a, [wChannelSoundIDs] cp MUSIC_PKMN_HEALED jr z, .asm_61910 call PlayDefaultMusic SetEvent EVENT_RUBBED_CAPTAINS_BACK ld hl, wd72d res 5, [hl] jp TextScriptEnd ReceivingHM01Text: TX_FAR _ReceivingHM01Text db "@" ReceivedHM01Text: TX_FAR _ReceivedHM01Text TX_SFX_KEY_ITEM db "@" SSAnne7Text_61932: TX_FAR _SSAnne7Text_61932 db "@" HM01NoRoomText: TX_FAR _HM01NoRoomText db "@" SSAnne7Text2: TX_FAR _SSAnne7Text2 db "@" SSAnne7Text3: TX_FAR _SSAnne7Text3 db "@"
16.414894
38
0.780946
396adf443a016e392dd37697043f395c68f33278
167
asm
Assembly
audio/sfx/ball_poof.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
audio/sfx/ball_poof.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
audio/sfx/ball_poof.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
SFX_Ball_Poof_Ch5: duty_cycle 2 pitch_sweep 1, 6 square_note 15, 15, 2, 1024 pitch_sweep 0, 8 sound_ret SFX_Ball_Poof_Ch8: noise_note 15, 10, 2, 34 sound_ret
13.916667
28
0.754491
ec73b07037dc172b38e6657b24631964f54497d4
6,798
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_983_464.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.log_983_464.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.log_983_464.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 %rbp push %rcx push %rdx push %rsi lea addresses_normal_ht+0x1232f, %rsi nop nop nop nop cmp %r12, %r12 movb (%rsi), %r9b nop nop xor $45707, %r13 lea addresses_normal_ht+0xd7af, %rcx inc %rbp mov (%rcx), %r9 nop nop nop nop nop cmp $23241, %r13 lea addresses_UC_ht+0x141af, %rbp nop nop nop inc %rdx movb $0x61, (%rbp) nop nop nop sub $50391, %rsi lea addresses_WC_ht+0x105af, %rdx clflush (%rdx) nop nop and %rbp, %rbp and $0xffffffffffffffc0, %rdx movaps (%rdx), %xmm5 vpextrq $1, %xmm5, %r12 sub $22474, %rsi lea addresses_D_ht+0x1e97f, %rdx nop nop nop nop xor %r9, %r9 movb $0x61, (%rdx) nop nop dec %rbp lea addresses_D_ht+0x16af, %r12 nop nop nop nop nop sub $37753, %rbp mov (%r12), %cx nop nop nop nop nop sub $37021, %rcx lea addresses_normal_ht+0x764f, %rsi clflush (%rsi) add %rcx, %rcx mov (%rsi), %bp inc %rsi lea addresses_D_ht+0xb92f, %rbp nop nop nop xor %r12, %r12 mov $0x6162636465666768, %r9 movq %r9, %xmm3 movups %xmm3, (%rbp) nop sub $2878, %rcx lea addresses_normal_ht+0x127b, %r13 nop dec %rbp mov $0x6162636465666768, %r9 movq %r9, (%r13) nop nop cmp %rsi, %rsi lea addresses_WT_ht+0x6c3b, %r12 dec %rcx mov $0x6162636465666768, %r9 movq %r9, %xmm2 vmovups %ymm2, (%r12) and $24128, %r12 lea addresses_A_ht+0x85f1, %rdx nop nop nop add %rcx, %rcx mov $0x6162636465666768, %rbp movq %rbp, %xmm4 vmovups %ymm4, (%rdx) nop nop and %r12, %r12 pop %rsi pop %rdx pop %rcx pop %rbp pop %r9 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %rcx push %rdi push %rsi // Store lea addresses_A+0x1d14f, %rcx nop nop dec %rsi mov $0x5152535455565758, %rdi movq %rdi, %xmm1 movups %xmm1, (%rcx) nop add %rsi, %rsi // Faulty Load lea addresses_PSE+0x139af, %rdi nop nop nop dec %r10 vmovups (%rdi), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $0, %xmm3, %r13 lea oracles, %r10 and $0xff, %r13 shlq $12, %r13 mov (%r10,%r13,1), %r13 pop %rsi pop %rdi pop %rcx pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'33': 983} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
37.351648
2,948
0.656075
d9663b6b056e165618f6691fd2e5523ab7a13894
2,795
asm
Assembly
keys.asm
neilbaldwin/PR8
045cbd282aba6357a4ae555958cf65c018952e49
[ "BSD-2-Clause-FreeBSD", "MIT" ]
8
2021-03-14T18:20:40.000Z
2021-08-04T20:32:25.000Z
keys.asm
neilbaldwin/PR8
045cbd282aba6357a4ae555958cf65c018952e49
[ "BSD-2-Clause-FreeBSD", "MIT" ]
2
2021-09-17T02:53:10.000Z
2021-09-17T03:11:10.000Z
keys.asm
neilbaldwin/PR8
045cbd282aba6357a4ae555958cf65c018952e49
[ "BSD-2-Clause-FreeBSD", "MIT" ]
null
null
null
;------------------------------------------------------------------------------ ; KEY REPEAT HANDLING ;------------------------------------------------------------------------------ keyRepeatRateStart = 24 keyRepeatRateSelect = 24 keyRepeatSpeed = 1 keyRepeatRateA = 12;8 keyRepeatRateB = 12;8 keyRepeatDelay = 8 initKeyRepeats: lda #$00 sta keyRepeatA sta keyRepeatB sta keyRepeatUD sta keyRepeatLR sta keyRepeatStart sta keyRepeatSelect sta keyReleaseA sta keyReleaseB sta keyReleaseStart sta keyReleaseSelect rts checkRepeatKeyB: ;lda PAD1_sel ;bne @x lda keyDelayB beq @no_delay dec keyDelayB rts @no_delay: lda keyReleaseB beq @a dec keyReleaseB rts @a: lda PAD1_fireb bne @b lda keyRepeatB beq @x cmp #keyRepeatRateB bcs @b0 inc keyReleaseB @b0: lda #$00 sta keyRepeatB rts @b: clc adc keyRepeatB bmi @x sta keyRepeatB @x: rts checkRepeatKeyA: ;lda PAD1_sel ;bne @x lda keyDelayA beq @no_delay dec keyDelayA rts @no_delay: lda keyReleaseA beq @a dec keyReleaseA rts @a: lda PAD1_firea bne @b lda keyRepeatA beq @x cmp #keyRepeatRateA bcs @b0 inc keyReleaseA @b0: lda #$00 sta keyRepeatA rts @b: clc adc keyRepeatA bmi @x sta keyRepeatA @x: rts checkRepeatKeyUD: lda keyDelayUD beq @no_delay dec keyDelayUD rts @no_delay: lda PAD1_ud bne @do_key sta keyRepeatUD sta keyRepeatOldUD lda #keyRepeatDelay sta keyRepeatRateUD rts @do_key: cmp keyRepeatOldUD beq @same_key sta keyRepeatOldUD rts @same_key: lda keyRepeatRateUD beq @do_repeat dec keyRepeatRateUD rts @do_repeat: sta keyRepeatUD inc keyRepeatCounterUD lda keyRepeatCounterUD and #keyRepeatSpeed bne @a lda keyRepeatOldUD sta keyRepeatUD @a: rts checkRepeatKeyLR: lda keyDelayLR beq @no_delay dec keyDelayLR rts @no_delay: lda PAD1_lr bne @do_key sta keyRepeatLR sta keyRepeatOldLR lda #keyRepeatDelay sta keyRepeatRateLR rts @do_key: cmp keyRepeatOldLR beq @same_key sta keyRepeatOldLR rts @same_key: lda keyRepeatRateLR beq @do_repeat dec keyRepeatRateLR rts @do_repeat: sta keyRepeatLR inc keyRepeatCounterLR lda keyRepeatCounterLR and #keyRepeatSpeed bne @a lda keyRepeatOldLR sta keyRepeatLR @a: rts checkRepeatKeyStart: lda keyReleaseStart beq @a dec keyReleaseStart rts @a: lda PAD1_str bne @b lda keyRepeatStart beq @x cmp #keyRepeatRateStart bcs @b0 inc keyReleaseStart @b0: lda #$00 sta keyRepeatStart rts @b: clc adc keyRepeatStart bmi @x sta keyRepeatStart @x: rts checkRepeatKeySelect: lda keyReleaseSelect beq @a dec keyReleaseSelect rts @a: lda PAD1_sel bne @b lda keyRepeatSelect beq @x cmp #keyRepeatRateSelect bcs @b0 inc keyReleaseSelect @b0: lda #$00 sta keyRepeatSelect rts @b: clc adc keyRepeatSelect bmi @x sta keyRepeatSelect @x: rts
14.710526
79
0.71449
1ad1256cf4a319ff886f7006696b4904bb28f57d
57,646
asm
Assembly
Microsoft Word for Windows Version 1.1a/Word 1.1a CHM Distribution/Opus/asm/disp1n2.asm
lborgav/Historical-Source-Codes
c0aeaae1d482718e3b469d9eb7a6d0002faa1ff5
[ "MIT" ]
7
2017-01-12T17:48:48.000Z
2021-11-28T04:37:34.000Z
Microsoft Word for Windows Version 1.1a/Word 1.1a CHM Distribution/Opus/asm/disp1n2.asm
lborgav/Historical-Source-Codes
c0aeaae1d482718e3b469d9eb7a6d0002faa1ff5
[ "MIT" ]
null
null
null
Microsoft Word for Windows Version 1.1a/Word 1.1a CHM Distribution/Opus/asm/disp1n2.asm
lborgav/Historical-Source-Codes
c0aeaae1d482718e3b469d9eb7a6d0002faa1ff5
[ "MIT" ]
5
2017-03-28T08:04:30.000Z
2020-03-25T14:25:29.000Z
include w2.inc include noxport.inc include consts.inc include structs.inc include windows.inc createSeg disp1_PCODE,disp1,byte,public,CODE ; DEBUGGING DECLARATIONS ifdef DEBUG midDisp1n2 equ 11 ; module ID, for native asserts NatPause equ 1 endif ifdef NatPause PAUSE MACRO int 3 ENDM else PAUSE MACRO ENDM endif ; EXTERNAL FUNCTIONS externFP <N_PwwdWw> externFP <N_LoadFcidFull> externFP <DrawPatternLine> externFP <FEmptyRc> externFP <PmdcdCacheIdrb> externFP <HilitePicSel1> externFP <NMultDiv> ifdef DEBUG externFP <SelectObjectFP> externFP <PatBltFP> externFP <StretchBltFP> else ;!DEBUG ifdef HYBRID externFP <SelectObjectPR> externFP <PatBltPR> externFP <StretchBltPR> else ;!HYBRID externFP <SelectObject> externFP <PatBlt> externFP <StretchBlt> endif ;!HYBRID endif ;!DEBUG externFP <OtlMarkPos> externFP <DrawOtlPat> externFP <N_PtOrigin> externFP <N_FormatDrLine> externFP <ClipRectFromDr> externFP <ClientToScreen> externFP <FSectRc> externFP <GetWindow> externFP <GetClipBox> externFP <IsWindowVisible> externFP <N_PdrFetchAndFree> ifdef DEBUG externFP <AssertProcForNative> externFP <ShakeHeapSb> externFP <S_XpFromDcp> externFP <S_LoadFcidFull> externFP <ScribbleProc> externFP <S_FMarkLine> externFP <S_FormatDrLine> externFP <S_PdrFetchAndFree> externFP <S_PtOrigin> externFP <LockHeap, UnlockHeap> externFP <S_DrawInsertLine> endif ;DEBUG sBegin data ; ; /* E X T E R N A L S */ ; externW vhgrpchr ; extern struct CHR **vhgrpchr; externW mpwwhwwd ; extern struct WWD **mpwwhwwd[]; externW selCur ; extern struct SEL selCur; externW vsci ; extern struct SCI vsci; externW vfli ; extern struct FLI vfli; externW vfti ; extern struct FTI vfti; externW selDotted ; extern struct SEL selDotted; externW vxpFirstMark ; extern int vxpFirstMark; externW vxpLimMark ; extern int vxpLimMark; externW vhwwdOrigin ; extern struct WWD **vhwwdOrigin; externW vpref ; extern struct PREF vpref; externW vhwndApp ; extern HWND vhwndApp; externW wwCur ; extern int wwCur; ; #ifdef DEBUG ifdef DEBUG externW cHpFreeze ; extern int cHpFreeze; externW vdbs ; extern struct DBS vdbs; ; #endif /* DEBUG */ endif sEnd data ; CODE SEGMENT _DISP1 sBegin disp1 assumes cs,disp1 assumes ds,dgroup assumes ss,dgroup ;------------------------------------------------------------------------- ; MarkSel( ww, hpldr, idr, psel, pedl, cpMinDl, cpMacDl ) ;------------------------------------------------------------------------- ;/* M A R K S E L */ ;/* Mark the selection (i.e. do appropriate inversion) psel in dc hdc ; for line pedl whose location is given by (xpLine, ypLine). */ ;/* We do not mark the selection if its hidden bit is on; if the selection */ ;/* is in a TLE, we do not mark it and we set the hidden bit to TRUE */ ; ;NATIVE MarkSel(ww, hpldr, idr, psel, pedl, cpMinDl, cpMacDl) ;int ww; ;struct PLDR **hpldr; ;int idr; ;struct EDL *pedl; ;struct SEL *psel; ;CP cpMinDl, cpMacDl; ;{ ; struct DRF drfFetch; ; %%Function:MarkSel %%Owner:BRADV cProc MarkSel,<PUBLIC,FAR>,<si> ParmW ww ParmW hpldr ParmW idr ParmW psel ParmW pedl ParmD cpMinDl ParmD cpMacDl LocalV drfFetch,cbDrfMin cBegin lea ax,[drfFetch] ifdef DEBUG cCall S_PdrFetchAndFree,<[hpldr],[idr],ax> else ;not DEBUG cCall N_PdrFetchAndFree,<[hpldr],[idr],ax> endif ;DEBUG xchg ax,bx ; if (psel->ww == ww && !psel->fHidden && !psel->fNil && ; psel->doc == PdrFetchAndFree(hpldr, idr, &drfFetch)->doc && ; psel->cpLim >= cpMinDl && psel->cpFirst <= cpMacDl) ; { mov si,[psel] mov ax,[ww] cmp [si.wwSel],ax jne MS01 cmp [si.fHiddenSel],fFalse jne MS01 test [si.fNilSel],maskFNilSel jne MS01 mov ax,[si.docSel] cmp ax,[bx.docDr] jne MS01 mov ax,[OFF_cpMinDl] mov dx,[SEG_cpMinDl] mov bx,[si.LO_cpLimSel] mov cx,[si.HI_cpLimSel] sub bx,ax sbb cx,dx jl MS01 mov bx,[si.LO_cpFirstSel] mov cx,[si.HI_cpFirstSel] sub [OFF_cpMacDl],bx sbb [SEG_cpMacDl],cx jl MS01 ; if (FMarkLine(psel, hpldr, idr, pedl, ; psel->cpFirst, psel->cpLim, cpMinDl)) ; { push si push [hpldr] push [idr] push [pedl] push cx push bx push [si.HI_cpLimSel] push [si.LO_cpLimSel] push dx push ax ifdef DEBUG cCall S_FMarkLine,<> else ;not DEBUG push cs call near ptr N_FMarkLine endif ;DEBUG or ax,ax je MS01 ; psel->fOn = fTrue; mov [si.fOnSel],fTrue ; } ; } MS01: ;} cEnd ;End of MarkSel ;------------------------------------------------------------------------- ; FMarkLine(psel, idr, pedl, cpFirstSel, cpLimSel, cpFirstLine) ;------------------------------------------------------------------------- ;/* F M A R K L I N E */ ;/* Highlight the visible portion of the selection psel in the line pedl. ;Returns: ;if fIns: ; true if insert line is drawn ; false if nothing is drawn ;if !fIns ; true if selection is complete (cpLimSel < cpFirstLine) ; false if selection is not yet completely drawn ;Highlight is done effectively in xor mode. ;FormatLine may be called to ensure vfli validity. ; ;implicit: wwCur, psel->fInsEnd if fIns. ;pa is the highlighting mode: invert or dotted. ;xpOut, ypOut give starting coordinates of the display area showing the line ;*/ ; ;native int FMarkLine(psel, hpldr, idr, pedl, ; cpFirstSel, cpLimSel, cpFirstLine) ;struct SEL *psel; ;struct PLDR **hpldr; ;int idr; ;struct EDL *pedl; /* read-only */ ;CP cpFirstSel, cpLimSel, cpFirstLine; ;{ ; int xpFirst, xpLim, dxp, dyp, ypLine, xwFirst, xwLim, ywLine; ; int sk = psel->sk, ichT; ; struct WWD *pwwd; ; struct DR *pdr; ; CP cpLimLine = cpFirstLine + pedl->dcp; ; struct RC rc; ; struct DRC drcp; ; struct RC rcwClip; ; BOOL fTableSel; ; struct DRF drfFetch; ; %%Function:N_FMarkLine %%Owner:BRADV cProc N_FMarkLine,<PUBLIC,FAR>,<si,di> ParmW psel ParmW hpldr ParmW idr ParmW pedl ParmD cpFirstSelArg ParmD cpLimSelArg ParmD cpFirstLine LocalW skShifted LocalW ww LocalW dyp LocalW ypLine LocalW xpFirst LocalW xpLim LocalW xpFirstT LocalW ichT LocalD cpLimLine LocalW pdr LocalV rcVar,cbRcMin LocalV drcp,cbDrcMin LocalV drfFetch,cbDrfMin ifdef DFLDSELECT LocalV rgw,10 LocalV szFrame,40 endif ;/* DFLDSELECT */ cBegin mov si,[psel] mov al,[si.skSel] and al,maskSkSel mov bptr ([skShifted]),al mov di,[pedl] mov bx,[di.LO_dcpEdl] mov cx,[di.HI_dcpEdl] add bx,[OFF_cpFirstLine] adc cx,[SEG_cpFirstLine] mov [OFF_cpLimLine],bx mov [SEG_cpLimLine],cx ;/* since FormatLine can move the heap, and we don't always call it... */ ; Debug(vdbs.fShakeHeap ? ShakeHeap() : 0); ifdef DEBUG ; /* Do this debug code with a call so as not to mess up ; short jumps */ call FML30 endif ;/* DEBUG */ ;/* check if sel entirely below or entirely above the line */ ; if (cpLimSel < cpFirstLine) return (sk != skIns); mov ax,[OFF_cpLimSelArg] mov dx,[SEG_cpLimSelArg] sub ax,[OFF_cpFirstLine] sbb dx,[SEG_cpFirstLine] jge FML01 mov al,bptr ([skShifted]) sub al,skIns SHL ibitSkSel cbw jmp FML29 FML01: ;/* if the sel is a block selection, we want to continue for one line more ; since its cpLimSel is really the cpFirst of the last line of the ; selection. */ ; if (cpLimSel == cpFirstLine && (!psel->fBlock || psel->fTable)) or ax,dx jne FML02 errnz <(fBlockSel) - (fTableSel)> mov al,[si.fBlockSel] and al,maskfBlockSel + maskfTableSel xor al,maskfBlockSel jz FML02 ; if (sk != skIns || psel->fInsEnd) return fFalse; cmp bptr ([skShifted]),skIns SHL ibitSkSel jne Ltemp006 cmp [si.fInsEndSel],fFalse jne Ltemp006 FML02: ; if (cpFirstSel > cpLimLine) return fFalse; sub bx,[OFF_cpFirstSelArg] sbb cx,[SEG_cpFirstSelArg] jl Ltemp006 ; if (cpFirstSel == cpLimLine) or bx,cx jne FML03 ;/* return if fIns sel is at the end of line but fInsEnd is not set; ;or if 0 chars left in a !fIns selection */ ; if (sk != skIns || !psel->fInsEnd) ; return fFalse; cmp bptr ([skShifted]),skIns SHL ibitSkSel jne Ltemp006 cmp [si.fInsEndSel],fFalse je Ltemp006 FML03: ; dyp = pedl->dyp; mov ax,[di.dypEdl] mov [dyp],ax ; ypLine = pedl->ypTop + dyp; add ax,[di.ypTopEdl] mov [ypLine],ax ; pdr = PdrFetchAndFree(hpldr, idr, &drfFetch); lea ax,[drfFetch] ifdef DEBUG cCall S_PdrFetchAndFree,<[hpldr],[idr],ax> else ;not DEBUG cCall N_PdrFetchAndFree,<[hpldr],[idr],ax> endif ;DEBUG xchg ax,bx mov [pdr],bx ; if (fTableSel = (pdr->fInTable && !(psel->fWithinCell || psel->fIns))) ; { errnz <(fInsSel) - (fWithinCellSel) - 1> mov ax,maskfWithinCellSel + (maskfInsSel SHL 8) and ax,wptr ([si.fWithinCellSel]) jne FML031 mov al,maskfInTableDr and al,[bx.fInTableDr] xor al,maskfInTableDr FML031: push ax ;save !fTableSel mov dx,[idr] jne FML035 ;expects dx == idr ;#ifdef REVIEW ; Inherited from Mac ; Assert(cpFirstSel <= cpFirstLine && cpLimLine <= cpLimSel); ;#endif ; if (psel->fColumn && ; (idr < psel->itcFirst || idr >= psel->itcLim)) ; return fFalse; test [si.fColumnSel],maskfColumnSel je FML033 cmp dx,[si.itcFirstSel] jl FML032 cmp dx,[si.itcLimSel] jl FML033 FML032: pop ax ;remove !fTableSel from the stack Ltemp006: jmp FML26 FML033: ; drcp = pdr->drcl; ;FML295 performs drcp = [ax]; no registers are altered. lea ax,[bx.drclDr] call FML295 ; drcp.yp = 0; xor ax,ax mov [drcp.ypDrc],ax ; drcp.xp = xpFirst = idr == 0 ? 0 : -pdr->dxpOutLeft; or dx,dx je FML034 sub ax,[bx.dxpOutLeftDr] FML034: mov [xpFirst],ax mov [drcp.xpDrc],ax ; xpLim = pdr->dxl + pdr->dxpOutRight; mov cx,[bx.dxpOutRightDr] push cx add cx,[bx.dxlDr] mov [xpLim],cx pop cx ; drcp.dxp += (-xpFirst + pdr->dxpOutRight); sub cx,ax add [drcp.dxpDrc],cx ; } jmp short FML036 ; else FML035: ;expects dx == idr ; { ; drcp = pedl->drcp; ;FML295 performs drcp = [ax]; no registers are altered. lea ax,[di.drcpEdl] call FML295 ; if (psel->fBlock) ; { test [si.fBlockSel],maskfBlockSel je FML036 ; drcp.xp = psel->xpFirst; ; drcp.dxp = psel->xpLim - drcp.xp; ; } mov ax,[si.xpFirstSel] mov [drcp.xpDrc],ax neg ax add ax,[si.xpLimSel] mov [drcp.dxpDrc],ax ; } FML036: ;expects dx == idr ; ClipRectFromDr(HwwdWw(psel->ww), hpldr, idr, &drcp, &rcwClip); mov bx,[si.wwSel] shl bx,1 push [bx.mpwwhwwd] push [hpldr] push dx lea ax,[drcp] push ax lea ax,[si.rcwClipSel] push ax cCall ClipRectFromDr,<> ;/* Pad rcwClip to allow the insertion point to the right of the character */ ; if (psel->fIns && !psel->fBlock) ; rcwClip.xwRight += (vsci.dxpBorder << 1); ; psel->rcwClip = rcwClip; errnz <(fInsSel) - (fBlockSel)> mov al,[si.fInsSel] and al,maskFInsSel+maskFBlockSel xor al,maskFInsSel jne FML038 mov ax,[vsci.dxpBorderSci] shl ax,1 add [si.rcwClipSel.xwRightRc],ax FML038: pop ax ;restore !fTableSel ;/* check if column or row selection */ ; if (!fTableSel) ; { or ax,ax je Ltemp003 ;/* check if block selection */ ; if (psel->fBlock) ; { test [si.fBlockSel],maskFBlockSel je FML04 ; xpFirst = psel->xpFirst; mov ax,[si.xpFirstSel] mov [xpFirst],ax ; xpLim = psel->xpLim; mov ax,[si.xpLimSel] mov [xpLim],ax ; } Ltemp003: jmp FML22 ; else ;/* check if entire line is selected; for pics, we have to do a FormatLine anyway */ ; { FML04: ; BOOL fNeedFirst = fFalse, fNeedLim = fFalse; xor cx,cx ; cpFirstSel = CpMax(cpFirstLine, cpFirstSel); mov ax,[OFF_cpFirstLine] mov dx,[SEG_cpFirstLine] mov bx,ax sub bx,[OFF_cpFirstSelArg] mov bx,dx sbb bx,[SEG_cpFirstSelArg] jl FML05 mov [OFF_cpFirstSelArg],ax mov [SEG_cpFirstSelArg],dx FML05: ; cpLimSel = CpMin(cpLimLine, cpLimSel); mov ax,[OFF_cpLimLine] mov dx,[SEG_cpLimLine] mov bx,ax sub bx,[OFF_cpLimSelArg] mov bx,dx sbb bx,[SEG_cpLimSelArg] jge FML06 mov [OFF_cpLimSelArg],ax mov [SEG_cpLimSelArg],dx FML06: ;/* following series of checks is simple in native code. */ ;/* REVIEW: BobZ, do you need sk == skIns here? The current Mac code does not ; have it. */ ; if (psel->fGraphics /* || sk == skIns */) ; { ; fNeedFirst = fTrue; fNeedLim = fTrue; ; goto LFormat; ; } test [si.fGraphicsSel],maskFGraphicsSel je FML066 dec cx jmp LFormat FML066: ; if (cpFirstSel == cpFirstLine) ; xpFirst = pedl->xpLeft; mov ax,[OFF_cpFirstSelArg] mov dx,[SEG_cpFirstSelArg] mov bx,[di.xpLeftEdl] cmp ax,[OFF_cpFirstLine] jne FML07 cmp dx,[SEG_cpFirstLine] je FML10 ; else if (cpFirstSel == psel->cpFirst ; && psel->xpFirst != xpNil && sk != skIns) ; xpFirst = psel->xpFirst; ; else if (cpFirstSel == psel->cpLim ; && psel->xpLim != xpNil && sk != skIns) ; xpFirst = psel->xpLim; FML07: cmp bptr ([skShifted]),skIns SHL ibitSkSel je FML09 cmp ax,[si.LO_cpFirstSel] jne FML08 cmp dx,[si.HI_cpFirstSel] jne FML08 mov bx,[si.xpFirstSel] cmp bx,xpNil jne FML10 FML08: cmp ax,[si.LO_cpLimSel] jne FML09 cmp dx,[si.HI_cpLimSel] jne FML09 mov bx,[si.xpLimSel] cmp bx,xpNil jne FML10 ; else fNeedFirst = fTrue; FML09: inc cx FML10: mov [xpFirst],bx ; if (cpLimSel == cpLimLine) ; xpLim = pedl->xpLeft + pedl->dxp; mov ax,[OFF_cpLimSelArg] mov dx,[SEG_cpLimSelArg] mov bx,[di.xpLeftEdl] add bx,[di.dxpEdl] cmp ax,[OFF_cpLimLine] jne FML11 cmp dx,[SEG_cpLimLine] je FML14 ; else if (cpLimSel == psel->cpFirst ; && psel->xpFirst != xpNil && sk != skIns) ; xpLim = psel->xpFirst; ; else if (cpLimSel == psel->cpLim ; && psel->xpLim != xpNil && sk != skIns) ; xpLim = psel->xpLim; FML11: cmp bptr ([skShifted]),skIns SHL ibitSkSel je FML13 cmp ax,[si.LO_cpFirstSel] jne FML12 cmp dx,[si.HI_cpFirstSel] jne FML12 mov bx,[si.xpFirstSel] cmp bx,xpNil jne FML14 FML12: cmp ax,[si.LO_cpLimSel] jne FML13 cmp dx,[si.HI_cpLimSel] jne FML13 mov bx,[si.xpLimSel] cmp bx,xpNil jne FML14 ; else fNeedLim = fTrue; FML13: inc ch FML14: mov [xpLim],bx ; if (fNeedFirst || fNeedLim) ; { jcxz FML19 ; int xpLimT, xpFirstT; ;/* ensure vfli is correct */ ;LFormat: LFormat: push cx ;save fNeed flags ; FormatLineDr(psel->ww, cpFirstLine, pdr); ifdef DEBUG cCall S_FormatDrLine,<[si.wwSel],[SEG_cpFirstLine],[OFF_cpFirstLine],[pdr]> else ;not DEBUG cCall N_FormatDrLine,<[si.wwSel],[SEG_cpFirstLine],[OFF_cpFirstLine],[pdr]> endif ;DEBUG ;/* decode cpFirstSel => xpFirst */ ; ; xpLimT = XpFromDcp( ; (cpFirstSel - cpFirstLine), ; (cpLimSel - cpFirstLine), ; &xpFirstT, &ichT); mov ax,[OFF_cpFirstSelArg] mov dx,[SEG_cpFirstSelArg] sub ax,[OFF_cpFirstLine] sbb dx,[SEG_cpFirstLine] push dx push ax mov ax,[OFF_cpLimSelArg] mov dx,[SEG_cpLimSelArg] sub ax,[OFF_cpFirstLine] sbb dx,[SEG_cpFirstLine] push dx push ax lea cx,[xpFirstT] lea dx,[ichT] push cx push dx ifdef DEBUG cCall S_XpFromDcp,<> else ;not DEBUG push cs call near ptr N_XpFromDcp endif ;DEBUG ;#ifdef DFLDSELECT ; { ; uns rgw [5]; ; rgw[0]=(uns)(cpFirstSel-cpFirstLine); ; rgw[1]=(uns)(cpLimSel-cpFirstLine); ; rgw[2]=(uns)xpFirstT; ; rgw[3]=(uns)xpLimT; ; rgw[4]=ichT; ; CommSzRgNum( ; SzShared("XpFromDcp (dcp1,dcp2,xpF,xpL,ich): "), ; rgw, 5); ; } ;#endif /* DFLDSELECT */ ifdef DFLDSELECT ; Do this DFLDSELECT stuff with a call so ; as not to mess up short jumps */ call FML32 endif ;/* DFLDSELECT */ pop cx ;restore fNeed flags ; if (fNeedFirst) xpFirst = xpFirstT; or cl,cl je FML17 mov bx,[xpFirstT] mov [xpFirst],bx FML17: ; if (fNeedLim) xpLim = xpLimT; or ch,ch je FML18 mov [xpLim],ax FML18: ; } FML19: ;/* return globals */ ; if (cpFirstSel > cpFirstLine) vxpFirstMark = xpFirst; mov ax,[OFF_cpFirstLine] mov dx,[SEG_cpFirstLine] sub ax,[OFF_cpFirstSelArg] sbb dx,[SEG_cpFirstSelArg] jge FML20 mov ax,[xpFirst] mov [vxpFirstMark],ax FML20: ; if (cpLimSel < cpLimLine) vxpLimMark = xpLim; mov ax,[OFF_cpLimSelArg] mov dx,[SEG_cpLimSelArg] sub ax,[OFF_cpLimLine] sbb dx,[SEG_cpLimLine] jge FML21 mov ax,[xpLim] mov [vxpLimMark],ax FML21: ; } ; } FML22: ;/* now we have xpFirst, xpLim in unscrolled line coordinates. Transform: */ ; ywLine = YwFromYp(hpldr, idr, ypLine); ; ***Begin in line YwFromYp ; pt = PtOrigin(hpldr, idr); ifdef DEBUG cCall S_PtOrigin,<[hpldr], [idr]> else ;not DEBUG cCall N_PtOrigin,<[hpldr], [idr]> endif ;DEBUG ; yw = yp + (*vhwwdOrigin)->rcePage.yeTop + (*vhwwdOrigin)->ywMin + pt.yl; mov bx,[vhwwdOrigin] mov bx,[bx] add dx,[bx.rcePageWwd.yeTopRc] add dx,[bx.ywMinWwd] add dx,[ypLine] ; return(yw); ; ***End in lin YwFromYp ; xwFirst = XwFromXp(hpldr, idr, xpFirst); ; ***Begin in line XwFromXp ; pt = PtOrigin(hpldr, idr); ; cCall PtOrigin,<[hpldr],[idr]> ; xw = xp + (*vhwwdOrigin)->rcePage.xeLeft + (*vhwwdOrigin)->xwMin + pt.xl; ; mov bx,[vhwwdOrigin] ; mov bx,[bx] add ax,[bx.rcePageWwd.xeLeftRc] add ax,[bx.xwMinWwd] mov cx,ax add ax,[xpFirst] ; return(xw); ; ***End in lin XwFromXp ; xwLim = xwFirst - xpFirst + xpLim; add cx,[xpLim] ; ax = xwFirst, cx = xwLim, dx = ywLine, si = psel ; if (sk != skIns) ; { cmp bptr ([skShifted]),skIns SHL ibitSkSel je Ltemp011 ; HDC hdc; ; pwwd = PwwdWw(psel->ww); mov di,[si.wwSel] shl di,1 mov di,[di.mpwwhwwd] mov di,[di] ; Assembler note: get the hdc when we need it, not here. ; hdc = pwwd->hdc; ; xwFirstNoClip = xwFirst; mov bx,ax ; /* clip out the selbar */ ; xwFirst = max(xwFirst, pwwd->xwMin); cmp ax,[di.xwMinWwd] jge FML23 mov ax,[di.xwMinWwd] FML23: ;/* invert solid highlighting */ ; PrcSet(&rc, xwFirst, ywLine - dyp, xwLim, ywLine); ; ax = xwFirst, bx = xwFirstNoClip, cx = xwLim, dx = ywLine, ; si = psel, di = pwwd push di ;save pwwd push bx ;save xwFirstNoClip push dx ;save ywLine lea di,[rcVar] push di ;argument for FSectRc lea bx,[si.rcwClipSel] push bx ;argument for FSectRc push di ;argument for FSectRc ; ***Begin in line PrcSet push ds pop es stosw mov ax,dx sub ax,[dyp] stosw xchg ax,cx stosw xchg ax,dx stosw ; ***End in line PrcSet ; if (!FSectRc(&rc, &psel->rcwClip, &rc)) ; return fFalse; cCall FSectRc,<> or ax,ax pop dx ;restore ywLine pop bx ;restore xwFirstNoClip pop di ;restore pwwd je FML26 ; if (psel->pa != paDotted || sk == skBlock) ; { cmp [si.paSel],paDotted jne FML235 cmp bptr ([skShifted]),skBlock SHL ibitSkSel jne FML25 FML235: ; if (psel->fGraphics) ; { test [si.fGraphicsSel],maskFGraphicsSel je FML24 ; rc.xwLeft = xwFirstNoClip; ; rc.ywBottom = ywLine; ; rc.ywTop = ywLine-dyp; /*necessary only to */ ; /*make valid rect */ mov [rcVar.xwLeftRc],bx mov [rcVar.ywBottomRc],dx sub dx,[dyp] mov [rcVar.ywTopRc],dx ; HilitePicSel1(psel, &rc, &psel->rcwClip); ; } lea ax,[rcVar] lea bx,[si.rcwClipSel] cCall HilitePicSel1,<si,ax,bx> jmp short FML26 ;Assembler note: This jump to FML27 has nothing to do with nearby code. Ltemp011: jmp short FML27 ; else FML24: ; if (rc.ywTop < pwwd->rcwDisp.ywTop) ; { ; rc.ywTop = pwwd->rcwDisp.ywTop; ; } mov ax,[di.rcwDispWwd.ywTopRc] cmp ax,[rcVar.ywTopRc] jle FML245 mov [rcVar.ywTopRc],ax FML245: ; PatBltRc( hdc, &rc, DSTINVERT ); lea bx,[rcVar] mov cx,DSTINVERT_L mov dx,DSTINVERT_H push [di.hdcWwd] push bx push dx push cx push cs call near ptr PatBltRc jmp short FML26 ; } ; else FML25: ; { ; /* note: rc has been clipped by the clip rect */ ; DrawPatternLine( hdc, rc.xpLeft, ywLine, ; rc.xpRight - rc.xpLeft, ipatHorzGray, ; pltHorz | pltInvert ); ; } ; dx = ywLine, si = psel, di = pwwd mov ax,[rcVar.xpLeftRc] mov cx,[rcVar.xpRightRc] push [di.hdcWwd] push ax push dx sub cx,ax push cx mov ax,ipatHorzGray push ax mov ax,pltHorz + pltInvert push ax cCall DrawPatternLine,<> FML26: ; return fFalse; errnz <fFalse> xor ax,ax jmp short FML29 ; } ; else ; { FML27: ;/* Set up cursor draw dimensions. */ ; Assert( vfli.ww == psel->ww ); ifdef DEBUG ; /* Assert(vfli.ww == psel->ww ) with a call so ; as not to mess up short jumps */ call FML35 endif ;/* DEBUG */ ; psel->dyp = min(vfli.dypFont, vfli.dypLine - vfli.dypAfter); ; psel->yw = ywLine - vfli.dypAfter; ; psel->xw = xwFirst; ; ax = xwFirst, cx = xwLim, dx = ywLine, si = psel mov [si.xwSel],ax sub dx,[vfli.dypAfterFli] mov ax,[vfli.dypLineFli] sub ax,[vfli.dypAfterFli] cmp ax,[vfli.dypFontFli] jle FML28 mov ax,[vfli.dypFontFli] FML28: mov [si.dypSel],ax mov [si.ywSel],dx ; psel->tickOld = 0; xor ax,ax mov [si.LO_tickOldSel],ax mov [si.HI_tickOldSel],ax ; DrawInsertLine(psel); push si ifdef DEBUG cCall S_DrawInsertLine,<> else ;not DEBUG push cs call near ptr N_DrawInsertLine endif ;DEBUG ; return fTrue; mov ax,fTrue ; } FML29: ;} cEnd ;FML295 performs drcp = [dx]; no registers are altered. FML295: push di push ds pop es xchg ax,si lea di,[drcp] movsw movsw movsw movsw xchg ax,si pop di ret ; Debug(vdbs.fShakeHeap ? ShakeHeap() : 0); ifdef DEBUG FML30: cmp vdbs.fShakeHeapDbs,fFalse je FML31 push ax push bx push cx push dx mov ax,1 cCall ShakeHeapSb,<ax> pop dx pop cx pop bx pop ax FML31: ret endif ;/* DEBUG */ ;#ifdef DFLDSELECT ; { ; uns rgw [5]; ifdef DFLDSELECT FML32: push ax push bx push cx push dx push si push di ; rgw[0]=(uns)(cpFirstSel-cpFirstLine); mov bx,[OFF_cpFirstSelArg] sub bx,[OFF_cpFirstLine] mov word ptr [([rgw])+00000h],bx ; rgw[1]=(uns)(cpLimSel-cpFirstLine); mov bx,[OFF_cpLimSelArg] sub bx,[OFF_cpFirstLine] mov word ptr [([rgw])+00002h],bx ; rgw[2]=(uns)xpFirstT; mov bx,[xpLimT] mov word ptr [([rgw])+00004h],bx ; rgw[3]=(uns)xpLimT; mov word ptr [([rgw])+00006h],ax ; rgw[4]=ichT; mov ax,ichT mov word ptr [([rgw])+00008h],ax ; CommSzRgNum( ; SzShared("XpFromDcp (dcp1,dcp2,xpF,xpL,ich): "), ; rgw, 5); FML33: db 'XpFromDcp (dcp1,dcp2,xpF,xpL,ich): ' db 0 FML34: push ds push cs pop ds mov si,FML33 push ss pop es mov di,[szFrame] mov cx,(FML34) - (FML33) rep movsb pop ds lea ax,[szFrame] lea bx,rgw mov cx,5 cCall CommSzRgNum,<ax, bx, cx> pop di pop si pop dx pop cx pop bx pop ax ; } ;#endif /* DFLDSELECT */ ret endif ;/* DFLDSELECT */ ; Assert( vfli.ww == psel->ww ); ifdef DEBUG FML35: push ax push bx push cx push dx mov ax,[vfli.wwFli] cmp ax,[si.wwSel] je FML36 mov ax,midDisp1n2 mov bx,1010 cCall AssertProcForNative,<ax,bx> FML36: pop dx pop cx pop bx pop ax ret endif ;/* DEBUG */ ;------------------------------------------------------------------------- ; XpFromDcp(dcp1, dcp2, pxpFirst, pich) ;------------------------------------------------------------------------- ;/* X P F R O M D C P */ ;/* returns the xpFirst integrated from the beginning of the line until the ;front of the char with cp>=cpMin+dcp1 with vanished runs taken into ;account. Continues integration to dcp2 with the position returned as the ;result. ;Assumes dcp's <= dcpMac of the line (no check for chrmEnd.) ;*/ ; ;native int XpFromDcp(dcp1, dcp2, pxpFirst, pich) ;uns dcp1, dcp2; uns *pxpFirst; int *pich; ;{ ; uns *pdxp = &vfli.rgdxp[0]; ; int ich, ichNext, xp, chrm; ; BOOL fFirst = fTrue; ; int dcp = dcp1; /* modified by vanish */ ; struct CHR *pchr = &(**vhgrpchr)[0]; ; int xpCeil; /* mac xp seen during scan before formula moves */ ; int xpBeforeFG; ; %%Function:N_XpFromDcp %%Owner:BRADV cProc N_XpFromDcp,<PUBLIC,FAR>,<si,di> ParmD dcp1 ParmD dcp2 ParmW pxpFirst ParmW pich LocalW pdxp LocalW pchrNew LocalW xpBeforeFG cBegin mov [pdxp],dataoffset [vfli.rgdxpFli] mov bx,[vhgrpchr] mov bx,[bx] mov ch,fTrue mov si,[OFF_dcp1] mov di,[SEG_dcp1] ; Assert( vfli.ww != docNil ); ifdef DEBUG push ax push bx push cx push dx cmp vfli.wwFli,wwNil jne XFD01 mov ax,midDisp1n2 mov bx,1012 cCall AssertProcForNative,<ax,bx> XFD01: pop dx pop cx pop bx pop ax endif ;/* DEBUG */ ; ich = 0; xor dx,dx ; xp = vfli.xpLeft; mov ax,[vfli.xpLeftFli] ; for (;;) ; { ; xpBeforeFG = -1; XFD02: mov [xpBeforeFG],-1 ; while (pchr->ich == ich) ; { XFD03: cmp [bx.ichChr],dl jne XFD07 ; if ((chrm = pchr->chrm) == chrmVanish) ; dcp -= ((struct CHRV *)pchr)->dcp; mov cl,[bx.chrmChr] cmp cl,chrmVanish jne XFD04 sub si,[bx.LO_dcpChrv] sbb di,[bx.HI_dcpChrv] jmp short XFD06 ; else if (chrm == chrmDisplayField) ; { XFD04: cmp cl,chrmDisplayField jne XFD05 ;/* chrmDisplayField has a vfli.rgdxp entry, which takes care of width */ ;/* -1 adjusts for the vfli.rgch entry that corresponds to the dxp */ ; dcp -= ((struct CHRDF *)pchr)->dcp - 1; ; } sub si,[bx.LO_dcpChrdf] sbb di,[bx.HI_dcpChrdf] add si,1 adc di,0 jmp short XFD06 XFD05: ; else if (chrm == chrmFormatGroup) ; { cmp cl,chrmFormatGroup jne XFD06 ; struct CHR *pchrNew = (char *)pchr + ; ((struct CHRFG *)pchr)->dbchr; push bx ;save pchr add bx,[bx.dbchrChrfg] ; int dich = pchrNew->ich - ich; mov bl,[bx.ichChr] xor bh,bh sub bx,dx ; ich += dich; add dx,bx ; dcp -= ((struct CHRFG *)pchr)->dcp - dich; add si,bx adc di,0 pop bx ;restore pchr sub si,[bx.LO_dcpChrfg] sbb di,[bx.HI_dcpChrfg] ; pdxp = &vfli.rgdxp[ich]; push dx ;save ich shl dx,1 add dx,dataoffset [vfli.rgdxpFli] mov [pdxp],dx pop dx ;restore ich ; xpBeforeFG = xp; mov [xpBeforeFG],ax ; xp += ((struct CHRFG *)pchr)->dxp; add ax,[bx.dxpChrfg] ; pchr = pchrNew; add bx,[bx.dbchrChrfg] ; break; jmp short XFD07 ; } ; Assert (chrm != chrmFormula); /* hidden by formatgroup */ ;Assembler note: This assert is performed at XFD20 XFD06: ; if (chrm == chrmEnd) break; cmp cl,chrmEnd je XFD07 ; Assert( chrm == chrmTab || ; chrm == chrmDisplayField ; chrm == chrmChp || chrm == chrmVanish ; || chrm == chrmFormatGroup ); ifdef DEBUG ; /* Assert( chrm == ... ) with a call so ; as not to mess up short jumps */ call XFD20 endif ;/* DEBUG */ ; (char *)pchr += chrm; add bl,cl adc bh,0 ; } jmp short XFD03 ; if ((CP) ich >= dcp) ; { XFD07: push ax ;save xp push dx ;save ich xchg dx,ax cwd sub ax,si sbb dx,di pop dx ;restore ich pop ax ;restore xp jl XFD10 ; if (fFirst) ; { errnz <fFalse> or ch,ch je XFD09 ; fFirst = fFalse; xor ch,ch ; *pxpFirst = dcp1 == 0 ? vfli.xpLeft : ; xpBeforeFG == -1 || ich == dcp ? ; xp : xpBeforeFG; push bx ;save pchr push ax ;save xp ;XFD24 performs ax = (xpBeforeFG == -1 || 0:dx == di:si) ; ? ax : xpBeforeFG; ;Only ax is altered. call XFD24 mov bx,[OFF_dcp1] or bx,[SEG_dcp1] mov bx,[pxpFirst] jne XFD08 mov ax,[vfli.xpLeftFli] XFD08: mov [bx],ax pop ax ;restore xp pop bx ;restore pchr ;/* correct dcp2 by the vanish already seen: dcp = dcp2 - (dcp1 - dcp) */ ; dcp += dcp2 - dcp1; add si,[OFF_dcp2] adc di,[SEG_dcp2] sub si,[OFF_dcp1] sbb di,[SEG_dcp1] ; continue; ; } jmp short Ltemp002 ; else ; { XFD09: ; *pich = ich; mov bx,[pich] mov [bx],dx ; return xpBeforeFG == -1 || ich == dcp ? ; xp : xpBeforeFG; ;XFD24 performs ax = (xpBeforeFG == -1 || 0:dx == di:si) ; ? ax : xpBeforeFG; ;Only ax is altered. call XFD24 jmp short XFD17 ; } ; } XFD10: ; if (chrm == chrmEnd) ; { cmp cl,chrmEnd jne XFD12 ;#ifdef DEBUG ; struct WWD *pwwdT = PwwdWw(vfli.ww); ; Assert(vfli.fOutline || pwwdT->fPageView); ;#endif ifdef DEBUG call XFD22 endif ;DEBUG ; if (fFirst) errnz <fFalse> or ch,ch je XFD11 ; *pxpFirst = xp; mov bx,[pxpFirst] mov [bx],ax XFD11: ; *pich = ich; mov bx,[pich] mov [bx],dx ; return xp; jmp short XFD17 ; } XFD12: ;/* scan until dcp expires or beginning of chr is reached */ ; ichNext = CpMin((CP)pchr->ich, dcp); push cx ;save chrm, fFirst mov cl,[bx.ichChr] xor ch,ch or di,di js XFD13 jnz XFD14 cmp cx,si jb XFD14 XFD13: mov cx,si XFD14: ;/* next while loop is speed critical section */ ; while (ich < ichNext) ; { push cx ;save ichNext sub cx,dx jle XFD16 ; xp += *pdxp++; ; ich++; xchg ax,dx xchg si,[pdxp] ;save OFF_dcp XFD15: lodsw add dx,ax loop XFD15 xchg si,[pdxp] ;restore OFF_dcp xchg ax,dx ; } XFD16: pop dx ;ich = ichNext pop cx ;restore chrm,fFirst ; } Ltemp002: jmp XFD02 XFD17: ;} cEnd ; Assert( chrm == chrmTab || ; chrm == chrmDisplayField ; chrm == chrmChp || chrm == chrmVanish ; || chrm == chrmFormatGroup ); ifdef DEBUG XFD20: cmp cl,chrmTab je XFD21 cmp cl,chrmDisplayField je XFD21 cmp cl,chrmChp je XFD21 cmp cl,chrmVanish je XFD21 cmp cl,chrmFormatGroup je XFD21 push ax push bx push cx push dx mov ax,midDisp1n2 mov bx,1014 cCall AssertProcForNative,<ax,bx> pop dx pop cx pop bx pop ax XFD21: ret endif ;/* DEBUG */ ; struct WWD *pwwdT = PwwdWw(vfli.ww); ; Assert(vfli.fOutline || pwwdT->fPageView); ifdef DEBUG XFD22: push ax push bx push cx push dx mov bx,[vfli.wwFli] shl bx,1 mov bx,[bx.mpwwhwwd] mov bx,[bx] cmp [vfli.fOutlineFli],fFalse jne XFD23 test [bx.fPageViewWwd],maskFPageViewWwd jne XFD23 mov ax,midDisp1n2 mov bx,1015 cCall AssertProcForNative,<ax,bx> XFD23: pop dx pop cx pop bx pop ax endif ;DEBUG ;XFD24 performs ax = (xpBeforeFG == -1 || 0:dx == di:si) ; ? ax : xpBeforeFG; ;Only ax is altered. XFD24: cmp [xpBeforeFG],-1 je XFD25 push dx sub dx,si or dx,di pop dx je XFD25 mov ax,[xpBeforeFG] XFD25: ret ;------------------------------------------------------------------------- ; PatBltRc( hdc, prc, rop ) ;------------------------------------------------------------------------- ;/* P A T B L T R C */ ;native PatBltRc( hdc, prc, rop ) ;HDC hdc; ;struct RC *prc; ;long rop; ;{ /* Pat Blt for our RC type (test for Nil is necessary because it uses ; our own criteria, not Windows') */ ; %%Function:PatBltRc %%Owner:BRADV cProc PatBltRc,<PUBLIC,FAR>,<si> ParmW hdc ParmW prc ParmD rop cBegin ; if (!FEmptyRc( prc )) cCall FEmptyRc,<[prc]> or ax,ax jnz PBR01 ; PatBlt( hdc, prc->xpLeft, prc->ypTop, prc->xpRight - prc->xpLeft, ; prc->ypBottom - prc->ypTop, rop ); push [hdc] mov si,[prc] errnz <(xpLeftRc)-0> errnz <(ypTopRc)-2> errnz <(xpRightRc)-4> errnz <(ypBottomRc)-6> lodsw push ax xchg ax,cx lodsw push ax xchg ax,dx lodsw sub ax,cx push ax lodsw sub ax,dx push ax push [SEG_rop] push [OFF_rop] ifdef DEBUG cCall PatBltFP,<> else ;!DEBUG ifdef HYBRID cCall PatBltPR,<> else ;!HYBRID cCall PatBlt,<> endif ;!HYBRID endif ;!DEBUG PBR01: ;} cEnd ;------------------------------------------------------------------------- ; AddVisiSpaces(hdc, dxpToXw, ywLine, prcwClip) ;------------------------------------------------------------------------- ;/* A D D V I S I S P A C E S */ ;/* Put a centered dot in each space character, and show all tabs. ;Graphport and clipping are all set up. Parameters are in vfli ;and from locals in DisplayFli */ ;HANDNATIVE C_AddVisiSpaces(hdc, dxpToXw, ywLine, prcwClip) ;HDC hdc; ;int dxpToXw; ;int ywLine; ;struct RC *prcwClip; ;{ ; int ich, ichNext; ; int chrm, ch; ; struct CHR *pchr; ; int bchrCur; ; int *pdxp; ; int xwPos, ywPos; ; int xwLast; ; int hps, hpsLast = -1; /* illegal value */ ; int dypDot, dypDotPrev = 0; ; HBRUSH hbrOld; ; int dxp, dyp; ; GRPFVISI grpfvisi; ; %%Function:N_AddVisiSpaces %%Owner:BRADV cProc N_AddVisiSpaces,<PUBLIC,FAR>,<si,di> ParmW hdc ParmW dxpToXw ParmW ywLine ParmW prcwClip LocalW hpsLast LocalW xwLast LocalW dypDotPrev LocalW xwT LocalW ywT ;frame variables for LN_DrawChVis LocalW idcb LocalW pmdcd LocalW ywPos LocalV rcT,cbRcMin LocalV rcwDest,cbRcMin cBegin mov bptr ([hpsLast]),-1 mov [dypDotPrev],0 ;/* position to start of the line. c.f. DisplayFli */ ; xwPos = vfli.xpLeft + dxpToXw; ; ywPos = ywLine - vfli.dypBase; mov cx,[vfli.xpLeftFli] add cx,[dxpToXw] mov dx,[ywLine] sub dx,[vfli.dypBaseFli] ; if (vfli.omk != omkNil && vfli.fOutline) ; { mov al,[vfli.omkFli] errnz <omkNil - 0> and ax,maskOmkFli je AVS007 cmp [vfli.fOutlineFli],fFalse je AVS007 push dx ; save ywPos push cx ; save xwPos ; int xwT, ywT; ; OtlMarkPos(xwPos, ywLine - vfli.dypLine, vfli.dypLine, ; &xwT, &ywT); ; DrawOtlPat(vfli.ww, hdc, vfli.omk == omkPlus ? idcbOtlMarkPlus : ; (vfli.omk == omkMinus) ? ; idcbOtlMarkMinus : idcbOtlMarkBody, ; xwT, ywT); errnz <omkPlus - 1> errnz <omkMinus - 2> errnz <omkBody - 3> errnz <idcbOtlMarkPlus - 0> errnz <idcbOtlMarkMinus - 2> errnz <idcbOtlMarkBody - 4> errnz <maskOmkFli - 0C0H> rol al,1 rol al,1 dec ax rol al,1 push [vfli.wwFli] ;argument for DrawOtlPat push [hdc] ;argument for DrawOtlPat push ax ;argument for DrawOtlPat push cx mov ax, [vfli.dypLineFli] mov dx, [ywLine] sub dx, ax push dx push ax lea ax,[xwT] push ax lea ax,[ywT] push ax cCall OtlMarkPos,<> push [xwT] ;argument for DrawOtlPat push [ywT] ;argument for DrawOtlPat cCall DrawOtlPat,<> ; if (!vfli.grpfvisi.w) return; /* for speed */ ; } pop cx ; restore xwPos pop dx ; restore ywPos cmp [vfli.grpfvisiFli],fFalse jnz Ltemp004 jmp AVS11 Ltemp004: AVS007: ; grpfvisi = vfli.grpfvisi; mov ah,bptr [vfli.grpfvisiFli] ; pchr = &(**vhgrpchr)[0]; ; bchrCur = 0; mov di,[vhgrpchr] mov di,[di] ; pdxp = &vfli.rgdxp[0]; mov si,dataoffset [vfli.rgdxpFli] ; Assert(pchr->ich == 0); ifdef DEBUG cmp [di.ichChr],0 je AVS01 push ax push bx push cx push dx mov ax,midDisp1n2 mov bx,1016 cCall AssertProcForNative,<ax,bx> pop dx pop cx pop bx pop ax AVS01: endif ;/* DEBUG */ ; for (ich = 0;;) ; { xor bx,bx AVS02: ; ichNext = pchr->ich; ; while (ich < ichNext) ; { jmp short AVS05 AVS03: ;/* unlike Mac: spaces are handled in FormatLine, non-breaking-spaces ; are handled like non-breaking-hyphen */ ; if (vfli.rgch [ich] == chTab && ; (grpfvisi.fvisiTabs || grpfvisi.fvisiShowAll) ) ; DrawChVis( hdc, idcbChVisTab, xwPos, ich, ; ywPos, prcwClip ); cmp [bx.vfli.rgchFli],chTab jne AVS04 errnz <maskfvisiTabsGrpfvisi - 01h> errnz <maskfvisiShowAllGrpfvisi - 20h> test ah,maskfvisiTabsGrpfvisi+maskfvisiShowAllGrpfvisi jz AVS04 push ax ;save grpfvisi push bx ;save ich push cx ;save xwPos push dx ;save ywPos ; LN_DrawChVis performs: ; DrawChVis( hdc, ax, cx, bx, dx, prcwClip ); ; ax, bx, cx, and dx are altered mov ax,idcbChVisTab call LN_DrawChVis pop dx ;restore ywPos pop cx ;restore xpPos pop bx ;restore ich pop ax ;restore grpfvisi AVS04: ; xwLast = xwPos; ; xwPos += *pdxp++; ; ich++; mov [xwLast],cx add cx,[si] inc si inc si inc bx ; } AVS05: cmp bl,[di.ichChr] jb AVS03 ; The following line is done below in the C version ; (char *)pchr += chrm; mov al,[di.chrmChr] push ax cbw add di,ax pop ax ; if ((chrm = pchr->chrm) == chrmTab && ; (ch = ((struct CHRT *)pchr)->ch) != 0) ; { cmp al,chrmTab jne AVS07 cmp [di.chChrt-cbChrt],0 je AVS05 ;/* weird chrmTab for visi chars */ ;/* NOTE: chNonBreakSpace and chNonReqHyphen generate one of these but ; are currently handled by character substitution */ ; if (ch == chNonBreakHyphen && ; (grpfvisi.fvisiCondHyphens || grpfvisi.fvisiShowAll) && ; (xwPos >= prcwClip->xwLeft && xwPos < prcwClip->xwRight)) ; { ; int xwLim = min(xwPos + vfli.rgdxp [ich], prcwClip->xwRight); ; ; DrawPatternLine( hdc, ; xwPos, ywLine - vfli.dypAfter - ; ((vfli.dypLine - vfli.dypAfter - vfli.dypBefore)>>1), ; xwLim - xwPos, ipatHorzBlack, pltHorz ); ; } push si ;save pdxp cmp [di.chChrt-cbChrt],chNonBreakHyphen jne AVS06 errnz <maskfvisiCondHyphensGrpfvisi - 10h> errnz <maskfvisiShowAllGrpfvisi - 20h> test ah,maskfvisiCondHyphensGrpfvisi+maskfvisiShowAllGrpfvisi jz AVS06 mov si,[prcwClip] cmp cx,[si.xwLeftRc] jl AVS06 cmp cx,[si.xwRightRc] jge AVS06 push ax ;save grpfvisi and chrm push bx ;save ich push cx ;save xwPos push dx ;save ywPos shl bx,1 mov bx,[bx.vfli.rgdxpFli] add bx,cx cmp bx,[si.xwRightRc] jl AVS055 mov bx,[si.xwRightRc] AVS055: ;PAUSE sub bx,cx push [hdc] push cx mov ax,[vfli.dypAfterFli] mov cx,[vfli.dypLineFli] sub cx,[vfli.dypBeforeFli] sub cx,ax sar cx,1 mov dx,[ywLine] sub dx,ax sub dx,cx push dx push bx mov ax,ipatHorzBlack push ax errnz <pltHorz - 0> xor ax,ax push ax cCall DrawPatternLine,<> pop dx ;restore ywPos pop cx ;restore xwPos pop bx ;restore ich pop ax ;restore grpfvisi and chrm AVS06: pop si ;restore pdxp ; xwPos += *pdxp++; ; ich++; add cx,[si] inc si inc si inc bx ; } Ltemp001: jmp short AVS05 ; else if (chrm == chrmChp) ; { AVS07: cmp al,chrmChp jne AVS08 ; LoadFcidFull(pchr->fcid); ; /* reset the pointer into the heap. */ ; pchr = (char *)*vhgrpchr + bchrCur; push ax ;save grpfvisi and chrm push bx ;save ich push cx ;save xwPos push dx ;save ywPos push [di.HI_fcidChr-cbChr] push [di.LO_fcidChr-cbChr] mov bx,[vhgrpchr] sub di,[bx] ifdef DEBUG cCall S_LoadFcidFull,<> else ;not DEBUG cCall N_LoadFcidFull,<> endif ;DEBUG mov bx,[vhgrpchr] add di,[bx] pop dx ;restore ywPos pop cx ;restore xwPos pop bx ;restore ich pop ax ;restore grpfvisi and chrm ; if ((hps = pchr->chp.hps) != hpsLast) ;/* set ywPos according to new font size */ ; { mov al,[di.chpChr.hpsChp-cbChr] cmp al,bptr ([hpsLast]) je Ltemp001 ; hpsLast = hps; mov bptr ([hpsLast]),al ;#define DypFromHps(hps) (NMultDiv(hps * (dyaPoint / 2), vfli.dysInch, dxaInch)) ; dypDot = DypFromHps(hps) / 4; push ax ;save grpfvisi push bx ;save ich push cx ;save xpPos push dx ;save ywPos errnz <dyaPoint - 20> mov ah,dyaPoint/2 imul ah imul [vfli.dysInchFli] errnz <dxaInch - 1440> add ax,dxaInch SHR 1 adc dx,0 mov cx,dxaInch SHL 2 ifdef DEBUG ; Assert we won't overflow during this divide. call AVS12 endif ;DEBUG idiv cx pop dx ;restore ywPos pop cx ;restore xpPos pop bx ;restore ich ; ywPos = ywPos - dypDot + dypDotPrev; ; dypDotPrev = dypDot; sub dx,ax xchg ax,[dypDotPrev] add dx,ax pop ax ;restore grpfvisi ; } jmp short Ltemp001 ; } ; else if (chrm == chrmFormula) ; { AVS08: cmp al,chrmFormula jne AVS10 ; xwPos += ((struct CHRF *)pchr)->dxp; ; ywPos += ((struct CHRF *)pchr)->dyp; ; } add cx,[di.dxpChrf-cbChrf] add dx,[di.dypChrf-cbChrf] Ltemp005: jmp AVS05 ; else if (chrm == chrmEnd) ; break; AVS10: cmp al,chrmEnd jne Ltemp005 ; The following line is done above in the assembler version ; (char *)pchr += chrm; ; } ;/* draw CRJ symbol if needed */ ; if (vfli.chBreak == chCRJ && ; (grpfvisi.fvisiParaMarks || grpfvisi.fvisiShowAll) ) ; DrawChVis( hdc, idcbChVisCRJ, xwLast, vfli.ichMac-1, ywPos, prcwClip ); cmp [vfli.chBreakFli],chCRJ jne AVS11 errnz <maskfvisiParaMarksGrpfvisi - 04h> errnz <maskfvisiShowAllGrpfvisi - 20h> test ah,maskfvisiParaMarksGrpfvisi+maskfvisiShowAllGrpfvisi jz AVS11 ; LN_DrawChVis performs: ; DrawChVis( hdc, ax, cx, bx, dx, prcwClip ); ; ax, bx, cx, and dx are altered errnz <idcbChVisCRJ> xor ax,ax mov cx,[xwLast] mov bl,[vfli.ichMacFli] xor bh,bh dec bx call LN_DrawChVis AVS11: ;} cEnd ifdef DEBUG AVS12: push ax push bx push cx push dx shr cx,1 or dx,dx jns AVS13 neg dx AVS13: cmp dx,cx jb AVS14 mov ax,midDisp1n2 mov bx,1019 cCall AssertProcForNative,<ax,bx> AVS14: pop dx pop cx pop bx pop ax ret endif ;DEBUG ;------------------------------------------------------------------------- ; DrawChVis( hdc, idcb, xp, ich, ywLine, prcwClip ) ;------------------------------------------------------------------------- ;/* D R A W C H V I S */ ;DrawChVis( hdc, idcb, xp, ich, ywPos, prcwClip ) ;HDC hdc; ;int idcb; ;int xp; ;int ich; ;int ywPos; ;struct RC *prcwClip; ;{ ; struct MDCD *pmdcd; ; int dxp, dyp; ; int xpSrc, ypSrc, dxpSrc, dypSrc; ; struct RC rcwDest, rcT; ; LN_DrawChVis performs: ; DrawChVis( hdc, ax, cx, bx, dx, prcwClip ); ; ax, bx, cx, and dx are altered ; %%Function:LN_DrawChVis %%Owner:BRADV PUBLIC LN_DrawChVis LN_DrawChVis: ; if ((pmdcd = PmdcdCacheIdrb( idrbChVis, hdc )) == NULL) ; return; mov [ywPos],dx push di ;save caller's di push si ;save caller's si mov [idcb],ax push bx ;save ich push cx ;save xp mov ax,idrbChVis cCall PmdcdCacheIdrb,<ax,[hdc]> pop cx ;restore xp pop bx ;restore ich errnz <NULL> or ax,ax je Ltemp012 mov [pmdcd],ax ; if (idcb == idcbChVisTab) ; { ; /* center it. */ ; if (dxpChVisEach > vfli.rgdxp[ich]) ; { ; dxp = vfli.rgdxp[ich]; ; } ; else ; { ; dxp = dxpChVisEach; ; xp += (vfli.rgdxp[ich] - dxpChVisEach) / 2; ; } ; } ; else /* CRJ */ ; { ; dxp = vfli.rgdxp[ich]; ; } shl bx,1 mov bx,[bx.vfli.rgdxpFli] mov dx,bx cmp [idcb],idcbChVisTab jne LN_DCV01 sub bx,dxpChVisEach jl LN_DCV01 mov dx,dxpChVisEach shr bx,1 add cx,bx LN_DCV01: ; dyp = min( dypChVis, vfli.dypLine - vfli.dypBase - vfli.dypBefore ); mov ax,[vfli.dypLineFli] sub ax,[vfli.dypBaseFli] sub ax,[vfli.dypBeforeFli] cmp ax,dypChVis jle LN_DCV02 mov ax,dypChVis LN_DCV02: ;/* clipping part */ ; PrcSet(&rcT, xp, ywPos - dyp, dxp, dyp); ; DrcToRc(&rcT, &rcT); ;Assembler note: here we are performing PrcSet and DrcToRc in-line ;simultaneously. ; dx = dxp, ax = dyp, cx = xp push dx ;save dxp push ax ;save dyp push ds pop es lea si,[rcwDest] lea di,[rcT] push di ;argument for FSectRc push [prcwClip] ;argument for FSectRc push si ;argument for FSectRc xchg ax,cx errnz <(xpLeftRc) - 0> stosw xchg ax,bx mov ax,[ywPos] mov si,ax sub ax,cx errnz <(ypTopRc) - 2> stosw xchg ax,bx add ax,dx errnz <(xpRightRc) - 4> stosw xchg ax,si errnz <(ypBottomRc) - 6> stosw ; if (!FSectRc(&rcT, prcwClip, &rcwDest /*rcResult*/)) ; return; cCall FSectRc,<> or ax,ax pop ax ;restore dyp pop dx ;restore dxp Ltemp012: je LN_DCV04 ; dxpSrc = NMultDiv(dxpChVisEach, rcwDest.xwRight-rcwDest.xwLeft, dxp); ; dypSrc = NMultDiv(dypChVis, rcwDest.ywBottom-rcwDest.ywTop, dyp); ; xpSrc = idcb * dxpChVisEach; ; if (rcwDest.xpLeft != rcT.xpLeft) ; xpSrc += dxpChVisEach - dxpSrc; ; ; StretchBlt( hdc, rcwDest.xwLeft, rcwDest.ywTop, ; rcwDest.xwRight - rcwDest.xwLeft, rcwDest.ywBottom - rcwDest.ywTop, ; pmdcd->hdc, /* hdcSrc */ ; xpSrc, 0, /* xpSrc,ypSrc */ ; dxpSrc, dypSrc, ; vsci.dcibMemDC.ropBitBlt ); push [hdc] ;argument for StretchBlt mov bx,[rcwDest.xwLeftRc] push bx ;argument for StretchBlt mov cx,[rcwDest.ywTopRc] push cx ;argument for StretchBlt mov si,[rcwDest.xwRightRc] sub si,bx push si ;argument for StretchBlt mov di,[rcwDest.ywBottomRc] sub di,cx push di ;argument for StretchBlt mov bx,dxpChVisEach mov cx,dypChVis push bx ;argument for first NMultDiv push si ;argument for first NMultDiv push dx ;argument for first NMultDiv push cx ;argument for second NMultDiv push di ;argument for second NMultDiv push ax ;argument for second NMultDiv cCall NMultDiv,<> xchg ax,di ;dypSrc in di cCall NMultDiv,<> xchg ax,si ;dxpSrc in si mov bx,[pmdcd] push [bx.hdcMdcd] ;argument for StretchBlt ;Assembler note: these lines are performed above in the C source ; xpSrc = idcb * dxpChVisEach; ; if (rcwDest.xpLeft != rcT.xpLeft) ; /* clipped on the left edge, show right edge of bitmap */ ; xpSrc += dxpChVisEach - dxpSrc; mov ax,dxpChVisEach mul [idcb] mov bx,[rcwDest.xpLeftRc] cmp bx,[rcT.xpLeftRc] je LN_DCV03 add ax,dxpChVisEach sub ax,si LN_DCV03: push ax ;argument for StretchBlt xor ax,ax push ax ;argument for StretchBlt push si ;argument for StretchBlt push di ;argument for StretchBlt push [vsci.dcibMemDCSci.HI_ropBitBltDcib] push [vsci.dcibMemDCSci.LO_ropBitBltDcib] ifdef DEBUG cCall StretchBltFP,<> else ;!DEBUG ifdef HYBRID cCall StretchBltPR,<> else ;!HYBRID cCall StretchBlt,<> endif ;!HYBRID endif ;!DEBUG LN_DCV04: pop si ;restore caller's si pop di ;restore caller's di ;} ret ; Assert(dx == 0); ifdef DEBUG LN_DCV05: or dx,dx je LN_DCV06 push ax push bx push cx push dx mov ax,midDisp1n2 mov bx,1018 cCall AssertProcForNative,<ax,bx> pop dx pop cx pop bx pop ax LN_DCV06: ret endif ;/* DEBUG */ ;------------------------------------------------------------------------- ; FScrollOK( ww ) ;------------------------------------------------------------------------- ;/* F S C R O L L O K */ ;/* DypScroll may not be called if this proc returns false meaning not ;all of the window is visible either by its position on the screen or ;because it is not on the top. */ ;NATIVE BOOL FScrollOK(ww) ;int ww; ;{ ; extern int vwwClipboard; ; extern HWND vhwndApp; ; extern int vfFocus; ; struct RC rcwDisp, rcScreen, rcInter; ; struct WWD *pwwd = PwwdWw(ww); ;/* Check 1: is any of the window off the screen edge? */ ; %%Function:FScrollOK %%Owner:BRADV cProc FScrollOK,<PUBLIC,FAR>,<si,di> ParmW ww LocalV rcwDisp, cbRcMin LocalV rcScreen, cbRcMin LocalV rcInter, cbRcMin cBegin cCall N_PwwdWw,<[ww]> xchg ax,bx ; FreezeHp(); ifdef DEBUG call LN_FreezeHp endif ;DEBUG ; Assert( pwwd->hdc != NULL ); ifdef DEBUG cmp [bx.hdcWwd],NULL jne FSO01 push ax push bx push cx push dx mov ax,midDisp1n2 mov bx,1060 cCall AssertProcForNative,<ax,bx> pop dx pop cx pop bx pop ax FSO01: endif ;/* DEBUG */ push ds pop es ; rcwDisp = pwwd->rcwDisp; lea si,[bx.rcwDispWwd] lea di,[rcwDisp] errnz <cbRcMin - 8> movsw movsw movsw movsw ; if (GetClipBox(pwwd->hdc, (LPRECT)&rcScreen) != SIMPLEREGION push [bx.hdcWwd] lea bx,[rcScreen] push ds push bx cCall GetClipBox,<> cmp ax,SIMPLEREGION ifdef DEBUG jne FSO02 else ;not DEBUG jne FSO06 endif ;DEBUG ; || !FSectRc( &rcwDisp, &rcScreen, &rcInter ) lea di,[rcwDisp] push di lea ax,[rcScreen] push ax lea si,[rcInter] push si cCall FSectRc,<> or ax,ax ifdef DEBUG je FSO02 else ;not DEBUG je FSO06 endif ;DEBUG ; || FNeRgw(&rcInter, &rcwDisp, cwRC)) ; { ; MeltHp(); ; return fFalse; ; } push ds pop es mov cx,cbRcMin/2 rep cmpsw ifdef DEBUG je FSO03 FSO02: ifdef DEBUG call LN_MeltHp endif ;DEBUG jmp short FSO06 else ;not DEBUG jne FSO06 endif ;DEBUG FSO03: ; /* Check 2: is any window covering this ww? */ ; MeltHp(); ifdef DEBUG call LN_MeltHp endif ;DEBUG ; if (ww != wwCur) ; { ; return fFalse; ; } ; else mov ax,[wwCur] cmp [ww],ax jne FSO06 ; { ; HWND hwnd; ; ; hwnd = GetWindow(vhwndApp, GW_HWNDFIRST); errnz <GW_HWNDFIRST - 0> xor di,di cCall GetWindow,<[vhwndApp], di> errnz <GW_HWNDNEXT - 2> inc di inc di ; while (hwnd != NULL && !IsWindowVisible(hwnd)) ; { FSO04: errnz <NULL> or ax,ax je FSO05 xchg ax,si cCall IsWindowVisible,<si> or ax,ax xchg ax,si jne FSO05 ; hwnd = GetWindow(hwnd, GW_HWNDNEXT); cCall GetWindow,<ax, di> ; } jmp short FSO04 FSO05: ; return (vhwndApp == hwnd); cmp ax,[vhwndApp] mov ax,fTrue jne FSO06 ; } db 03Dh ;turns next "xor ax,ax" into "cmp ax,immediate" FSO06: errnz <fFalse> xor ax,ax ;} cEnd ;End of FScrollOK ;------------------------------------------------------------------------- ; DrawInsertLine( psel ) ;------------------------------------------------------------------------- ;NATIVE DrawInsertLine(psel) ;struct SEL *psel; ;{ ; struct WWD *pwwd = PwwdWw(psel->ww); ; struct RC rcIns, rcT; ; HBRUSH hbrOld; ; int xwLeftT; ; int plt; ; %%Function:N_DrawInsertLine %%Owner:BRADV cProc N_DrawInsertLine,<PUBLIC,FAR>,<si,di> ParmW psel LocalV rcIns,cbRcMin cBegin mov si,[psel] cCall N_PwwdWw,<[si.wwSel]> xchg ax,bx ; Assert( pwwd->hdc != NULL ); ifdef DEBUG cmp [bx.hdcWwd],NULL jne DIL01 push ax push bx push cx push dx mov ax,midDisp1n2 mov bx,1061 cCall AssertProcForNative,<ax,bx> pop dx pop cx pop bx pop ax DIL01: endif ;/* DEBUG */ ; SetRect( (LPRECT) &rcIns, psel->xw, psel->yw - psel->dyp + 1, ; psel->xw + (vsci.dxpBorder << 1), ; psel->yw - vsci.dypBorder + 1 ); push ds pop es lea di,[rcIns] mov ax,[si.xwSel] stosw xchg ax,dx mov ax,[si.ywSel] inc ax mov cx,ax sub ax,[si.dypSel] stosw xchg ax,dx mov dx,[vsci.dxpBorderSci] sub cx,dx shl dx,1 add ax,dx stosw xchg ax,cx stosw ; if (!FSectRc( &rcIns, &psel->rcwClip, &rcIns)) ; { lea di,[si.rcwClipSel] push bx ;save pwwd lea bx,[rcIns] cCall FSectRc,<bx, di, bx> pop bx ;restore pwwd or ax,ax jne DIL02 ; selCur.fOn = fFalse; mov bptr ([selCur.fOnSel]),fFalse ; return; jmp short DIL07 ; } DIL02: ;/* following line assumes we do not need to take responsibility for ; clipping the insert line on the right */ ; hbrOld = SelectObject(pwwd->hdc, vsci.hbrText); mov di,[bx.hdcWwd] push bx ;save pwwd ifdef DEBUG cCall SelectObjectFP,<di, [vsci.hbrTextSci]> else ;!DEBUG ifdef HYBRID cCall SelectObjectPR,<di, [vsci.hbrTextSci]> else ;!HYBRID cCall SelectObject,<di, [vsci.hbrTextSci]> endif ;!HYBRID endif ;!DEBUG pop bx ;restore pwwd push ax ;save hbrOld ; xwLeftT = rcIns.xpLeft - 1; mov ax,[rcIns.xpLeftRc] dec ax ; plt = pltVert | pltInvert | pltDouble; mov cx,pltVert OR pltInvert OR pltDouble ; if (pwwd->fPageView && xwLeftT < psel->rcwClip.xwLeft) ; { test [bx.fPageViewWwd],maskFPageViewWwd je DIL025 cmp ax,[si.rcwClipSel.xwLeftRc] jg DIL025 ; struct RC rcwPage; ; RceToRcw(pwwd, &pwwd->rcePage, &rcwPage); ;***Begin in-line RceToRcw for prcw->xwLeft ;HANDNATIVE RceToRcw(pwwd, prce, prcw) ;struct WWD *pwwd; ;struct RC *prce; ;struct RC *prcw; ;{ ; int dxeToXw = pwwd->xwMin; ; int dyeToYw = pwwd->ywMin; ; ; prcw->xwLeft = prce->xeLeft + dxeToXw; ; prcw->xwRight = prce->xeRight + dxeToXw; ; prcw->ywTop = prce->yeTop + dyeToYw; ; prcw->ywBottom = prce->yeBottom + dyeToYw; ;} mov dx,[bx.rcePageWwd.xeLeftRc] add dx,[bx.xwMinWwd] ;***End in-line RceToRcw for prcw->xwLeft ; if (xwLeftT < rcwPage.xwLeft) ; { ;/* make ip thin only if on paper edge */ ; plt = pltVert | pltInvert; ; xwLeftT = rcwPage.xwLeft; ; } ; } ; cmp ax,dx jge DIL025 errnz <pltVert - 1> errnz <pltInvert - 4> errnz <pltDouble - 8> mov cl,pltVert OR pltInvert xchg ax,dx DIL025: ; DrawPatternLine( pwwd->hdc, xwLeftT, rcIns.ypTop, ; rcIns.ypBottom - rcIns.ypTop, ; psel->pa == paDotted ? ipatVertGray : ipatVertBlack, ; plt ); push di push ax mov bx,[rcIns.ypTopRc] push bx mov ax,[rcIns.ypBottomRc] sub ax,bx push ax errnz <ipatVertGray - 0> errnz <ipatVertBlack - 1> errnz <paDotted - 1> mov ax,paDotted cmp [si.paSel],ax jne DIL03 dec ax DIL03: push ax push cx cCall DrawPatternLine,<> ; if (hbrOld != hNil) ; SelectObject(pwwd->hdc, hbrOld); pop cx ;restore hbrOld errnz <hNil> jcxz DIL04 ifdef DEBUG cCall SelectObjectFP,<di, cx> else ;!DEBUG ifdef HYBRID cCall SelectObjectPR,<di, cx> else ;!HYBRID cCall SelectObject,<di, cx> endif ;!HYBRID endif ;!DEBUG DIL04: ; psel->fOn = 1 - psel->fOn; xor bptr ([si.fOnSel]),1 ; Scribble(ispInsertLine, psel->fOn ? '|' : ' '); ifdef DEBUG push ax push bx push cx push dx mov ax,ispInsertLine mov bx,07Ch cmp [si.fOnSel],fFalse jne DIL05 mov bx,020h DIL05: cmp [vdbs.grpfScribbleDbs],0 jz DIL06 cCall ScribbleProc,<ax,bx> DIL06: pop dx pop cx pop bx pop ax endif ;DEBUG DIL07: ;} cEnd ;End of DrawInsertLine ifdef NOTUSED ;------------------------------------------------------------------------- ; EraseInDr( hdc, prcw, hpldr, idr, fPartialErase ) ;------------------------------------------------------------------------- ;/* E R A S E I N D R */ ;NATIVE EraseInDr(hdc, prcw, hpldr, idr, fPartialErase) ;HDC hdc; ;struct RC *prcw; /* the portion of the dr you want to erase */ ;struct PLDR **hpldr; ;int idr; ;int fPartialErase; /* ENABLES partial erasing; vpref overrides */ ;{ ; struct DR *pdr; ; struct RC rcwErase; ; %%Function:N_EraseInDr %%Owner:BRADV cProc N_EraseInDr,<PUBLIC,FAR>,<si,di> ParmW hdc ParmW prcw ParmW hpldr ParmW idr ParmW fPartialErase LocalV rcwErase,cbRcMin LocalV drfFetch,cbDrfMin cBegin lea ax,[drfFetch] ifdef DEBUG cCall S_PdrFetchAndFree,<[hpldr],[idr],ax> else ;not DEBUG cCall N_PdrFetchAndFree,<[hpldr],[idr],ax> endif ;DEBUG xchg ax,bx push ds pop es mov si,[prcw] lea di,[rcwErase] errnz <cbRcMin - 8> movsw movsw movsw movsw ; if (fPartialErase && FDrawPageDrsPref) ; { cmp [fPartialErase],fFalse je EID01 ;#define FDrawPageDrsPref (vpref.grpfvisi.fDrawPageDrs || vpref.grpfvisi.ShowAll) errnz <maskfDrawPageDrsGrpfvisi - 04000h> errnz <maskfvisiShowAllGrpfvisi - 00020h> test [vpref.grpfvisiPref],maskfDrawPageDrsGrpfvisi+maskfvisiShowAllGrpfvisi je EID01 ; /* erase in pieces to avoid border flicker; rcw spans the ; dr exactly from left to right */ ;Assembler note: rcwErase = rcw is done above ; rcwErase = *prcw; ; pdr = PdrFetchAndFree(hpldr, idr, &drfFetch); mov si,[vsci.dypBorderSci] mov di,[rcwErase.xpRightRc] ; rcwErase.ywBottom -= vsci.dypBorder; ; rcwErase.xpRight = rcwErase.xpLeft + pdr->dxpOutLeft; ; PatBltRc(hdc, &rcwErase, vsci.ropErase); sub [rcwErase.ywBottomRc],si mov dx,[rcwErase.xpLeftRc] add dx,[bx.dxpOutLeftDr] mov [rcwErase.xpRightRc],dx ;EID02 performs PatBltRc(di, si, vsci.ropErase); ;ax, cx, dx are altered. call EID02 ; rcwErase.xpLeft = rcwErase.xpRight + vsci.dxpBorder; ; rcwErase.xpRight = prcw->xpRight - pdr->dxpOutRight - vsci.dxpBorder; ; PatBltRc(hdc, &rcwErase, vsci.ropErase); mov dx,di sub dx,[bx.dxpOutRightDr] sub dx,si xchg dx,[rcwErase.xpRightRc] add dx,si mov [rcwErase.xpLeftRc],dx ;EID02 performs PatBltRc(di, si, vsci.ropErase); ;ax, cx, dx are altered. call EID02 ; rcwErase.xpLeft = rcwErase.xpRight + vsci.dxpBorder; ; rcwErase.xpRight = prcw->xpRight; ; PatBltRc(hdc, &rcwErase, vsci.ropErase); xchg di,[rcwErase.xpRightRc] add di,si mov [rcwErase.xpLeftRc],di EID01: ;EID02 performs PatBltRc(di, si, vsci.ropErase); ;ax, cx, dx are altered. call EID02 ; } ; else ;Assembler note: this is performed at EID01 ; PatBltRc(hdc, prcw, vsci.ropErase); ;} cEnd ;End of EraseInDr ;EID02 performs PatBltRc(hdc, &rcwErase, vsci.ropErase); ;ax, cx, dx are altered. EID02: push bx ;save pdr push [hdc] lea ax,[rcwErase] push ax push [vsci.HI_ropEraseSci] push [vsci.LO_ropEraseSci] push cs call near ptr PatBltRc pop bx ;restore pdr ret endif ; NOTUSED ifdef DEBUG LN_FreezeHp: ;#define FreezeHp() (cHpFreeze++?0:LockHeap(sbDds)) cmp [cHpFreeze],0 jne LN_FH01 push ax push bx push cx push dx mov ax,sbDds cCall LockHeap,<ax> pop dx pop cx pop bx pop ax LN_FH01: inc [cHpFreeze] ret endif ;DEBUG ifdef DEBUG LN_MeltHp: ;#define MeltHp() (--cHpFreeze?0:UnlockHeap(sbDds)) dec [cHpFreeze] jne LN_MH01 push ax push bx push cx push dx mov ax,sbDds cCall UnlockHeap,<ax> pop dx pop cx pop bx pop ax LN_MH01: ret endif ;DEBUG sEnd disp1_PCODE end
20.706178
91
0.621223
abe3808d09924b2edf6df7a72aa13ede6cecdcfa
739
asm
Assembly
util/gut/thex.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
util/gut/thex.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
util/gut/thex.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; Execute Thing Utility through HOTKEY System II section gen_util xdef gu_thex xref gu_thexn ;+++ ; Execute Thing Utility through HOTKEY System II. ; Note this only works if a HOTKEY System version 2.03 or later is present. ; ; Entry Exit ; d1 owner Job ID ; d2 priority/timeout preserved ; a0 thing name preserved ; a1 parameter string preserved ; ; Condition codes set ;--- gu_thex move.l a2,-(sp) sub.l a2,a2 ; no job name jsr gu_thexn move.l (sp)+,a2 rts end
26.392857
75
0.466847
af2c803fe87f25a3f0a7fab5601592631808cce9
7,614
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0.log_21829_1704.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0.log_21829_1704.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0.log_21829_1704.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 %r13 push %r15 push %r8 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x1a604, %rbx nop nop nop and $59129, %r8 movb (%rbx), %r15b nop nop xor %r10, %r10 lea addresses_WC_ht+0xf7b2, %rdx clflush (%rdx) nop nop nop and %rbp, %rbp mov (%rdx), %r13w nop nop nop and %rdx, %rdx lea addresses_WC_ht+0x7804, %r8 clflush (%r8) nop sub %rbx, %rbx movw $0x6162, (%r8) nop nop nop cmp $12991, %r8 lea addresses_A_ht+0x173b4, %rdx sub $61600, %r13 movb (%rdx), %r15b dec %rdx lea addresses_WC_ht+0x4c60, %r10 nop nop nop nop nop add %r8, %r8 mov (%r10), %rbx nop nop nop nop nop and $25691, %r8 lea addresses_A_ht+0x2dec, %r15 nop nop nop sub $15375, %rdx mov $0x6162636465666768, %r10 movq %r10, (%r15) add %r8, %r8 lea addresses_UC_ht+0xf354, %rbp dec %r13 mov (%rbp), %r10 nop nop nop nop xor $37931, %rdx lea addresses_D_ht+0xb804, %rsi lea addresses_WC_ht+0x19204, %rdi clflush (%rsi) nop nop cmp %r10, %r10 mov $20, %rcx rep movsw nop nop dec %r15 lea addresses_UC_ht+0x12104, %rdx nop nop nop nop and $64691, %rbp movups (%rdx), %xmm3 vpextrq $1, %xmm3, %rdi xor $4420, %r15 lea addresses_WC_ht+0x1a604, %r15 nop nop nop nop inc %r10 movb $0x61, (%r15) nop nop nop nop nop inc %r10 lea addresses_WT_ht+0x4f04, %r8 inc %r13 movb $0x61, (%r8) nop nop nop nop nop xor $13148, %rdx lea addresses_normal_ht+0x1804, %rdi nop add %r13, %r13 mov $0x6162636465666768, %r15 movq %r15, (%rdi) nop nop nop and $38440, %rbp lea addresses_A_ht+0x4144, %rsi lea addresses_D_ht+0x82bc, %rdi clflush (%rsi) nop nop nop and $9147, %r10 mov $109, %rcx rep movsq nop nop nop nop nop add $29759, %rbx lea addresses_D_ht+0x1e604, %rdx nop nop nop nop nop dec %r8 movb $0x61, (%rdx) nop nop nop nop nop add %r10, %r10 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r15 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %rax push %rdi push %rsi // Store lea addresses_US+0xd004, %r12 nop nop nop nop inc %r11 mov $0x5152535455565758, %rax movq %rax, %xmm2 vmovaps %ymm2, (%r12) nop nop nop nop dec %r14 // Faulty Load mov $0x5a54440000000e04, %r11 nop nop nop nop nop cmp $11290, %rsi mov (%r11), %r12d lea oracles, %rax and $0xff, %r12 shlq $12, %r12 mov (%rax,%r12,1), %r12 pop %rsi pop %rdi pop %rax pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 9, 'type': 'addresses_US', 'AVXalign': True, 'size': 32}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 2}} {'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8}} {'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_WC_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 10, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}} {'src': {'same': False, 'congruent': 5, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1}} {'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 */
31.857741
2,999
0.65419
6781eca75555e700fe84a7647db22729bbc1e7e5
1,394
asm
Assembly
ATMega328P/07-string-reverse/string-reverse_avr.asm
agguro/arduino-project
a5bd0b92616133f6dde9149472bcd03e659b5a11
[ "Unlicense" ]
null
null
null
ATMega328P/07-string-reverse/string-reverse_avr.asm
agguro/arduino-project
a5bd0b92616133f6dde9149472bcd03e659b5a11
[ "Unlicense" ]
null
null
null
ATMega328P/07-string-reverse/string-reverse_avr.asm
agguro/arduino-project
a5bd0b92616133f6dde9149472bcd03e659b5a11
[ "Unlicense" ]
null
null
null
string-reverse.hex: file format ihex Disassembly of section .sec1: 00000000 <.sec1>: 0: 0e 94 15 00 call 0x2a ; 0x2a 4: 3a e0 ldi r19, 0x0A ; 10 6: 3f 93 push r19 8: 3e e3 ldi r19, 0x3E ; 62 a: 0e 94 21 00 call 0x42 ; 0x42 e: 0e 94 28 00 call 0x50 ; 0x50 12: 0e 94 21 00 call 0x42 ; 0x42 16: 3a 30 cpi r19, 0x0A ; 10 18: 11 f0 breq .+4 ; 0x1e 1a: 3f 93 push r19 1c: f8 cf rjmp .-16 ; 0xe 1e: 3f 91 pop r19 20: 0e 94 21 00 call 0x42 ; 0x42 24: 3a 30 cpi r19, 0x0A ; 10 26: 71 f3 breq .-36 ; 0x4 28: fa cf rjmp .-12 ; 0x1e 2a: 07 e6 ldi r16, 0x67 ; 103 2c: 11 27 eor r17, r17 2e: 10 93 c5 00 sts 0x00C5, r17 ; 0x8000c5 32: 00 93 c4 00 sts 0x00C4, r16 ; 0x8000c4 36: 08 e1 ldi r16, 0x18 ; 24 38: 00 93 c1 00 sts 0x00C1, r16 ; 0x8000c1 3c: 0e e0 ldi r16, 0x0E ; 14 3e: 00 93 c2 00 sts 0x00C2, r16 ; 0x8000c2 42: 00 91 c0 00 lds r16, 0x00C0 ; 0x8000c0 46: 05 ff sbrs r16, 5 48: fc cf rjmp .-8 ; 0x42 4a: 30 93 c6 00 sts 0x00C6, r19 ; 0x8000c6 4e: 08 95 ret 50: 00 91 c0 00 lds r16, 0x00C0 ; 0x8000c0 54: 07 ff sbrs r16, 7 56: fc cf rjmp .-8 ; 0x50 58: 30 91 c6 00 lds r19, 0x00C6 ; 0x8000c6 5c: 08 95 ret
33.190476
46
0.521521
db3dfae6a0b314af4338dce1d53c891c509cfda4
735
asm
Assembly
oeis/203/A203536.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/203/A203536.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/203/A203536.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A203536: Number of nX2 0..2 arrays with every element neighboring horizontally or vertically both a 0 and a 1 ; 0,4,4,16,64,196,676,2304,7744,26244,88804,300304,1016064,3437316,11628100,39337984,133079296,450203524,1523028676,5152368400,17430336576,58966408900,199481929956,674842534144,2282975946304,7723252297476,26127575372196,88388954371600,299017690768384,1011569602053124,3422115451322500,11576933646745600,39164485993636864,132492507079020804,448218940877334916,1516313815704754704,5129652895070679616,17353491441793866436,58706441036157328164,198602467445336557824,671867334813960284224 add $0,1 seq $0,73 ; Tribonacci numbers: a(n) = a(n-1) + a(n-2) + a(n-3) for n >= 3 with a(0) = a(1) = 0 and a(2) = 1. pow $0,2 mul $0,4
91.875
484
0.814966
8a38a15c27501b172ea94c46c84586122cf01040
380
asm
Assembly
programs/oeis/112/A112539.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/112/A112539.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/112/A112539.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A112539: Half-baked Thue-Morse: at successive steps the sequence or its bit-inverted form is appended to itself. ; 1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,0,1,0,1 lpb $0 add $1,$0 div $0,4 lpe gcd $1,2 sub $1,1 mov $0,$1
34.545455
201
0.586842
67384367f0437be5509cc29a691988f1a1670383
1,665
asm
Assembly
programs/oeis/051/A051866.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/051/A051866.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/051/A051866.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A051866: 14-gonal (or tetradecagonal) numbers: a(n) = n*(6*n-5). ; 0,1,14,39,76,125,186,259,344,441,550,671,804,949,1106,1275,1456,1649,1854,2071,2300,2541,2794,3059,3336,3625,3926,4239,4564,4901,5250,5611,5984,6369,6766,7175,7596,8029,8474,8931,9400,9881,10374,10879,11396,11925,12466,13019,13584,14161,14750,15351,15964,16589,17226,17875,18536,19209,19894,20591,21300,22021,22754,23499,24256,25025,25806,26599,27404,28221,29050,29891,30744,31609,32486,33375,34276,35189,36114,37051,38000,38961,39934,40919,41916,42925,43946,44979,46024,47081,48150,49231,50324,51429,52546,53675,54816,55969,57134,58311,59500,60701,61914,63139,64376,65625,66886,68159,69444,70741,72050,73371,74704,76049,77406,78775,80156,81549,82954,84371,85800,87241,88694,90159,91636,93125,94626,96139,97664,99201,100750,102311,103884,105469,107066,108675,110296,111929,113574,115231,116900,118581,120274,121979,123696,125425,127166,128919,130684,132461,134250,136051,137864,139689,141526,143375,145236,147109,148994,150891,152800,154721,156654,158599,160556,162525,164506,166499,168504,170521,172550,174591,176644,178709,180786,182875,184976,187089,189214,191351,193500,195661,197834,200019,202216,204425,206646,208879,211124,213381,215650,217931,220224,222529,224846,227175,229516,231869,234234,236611,239000,241401,243814,246239,248676,251125,253586,256059,258544,261041,263550,266071,268604,271149,273706,276275,278856,281449,284054,286671,289300,291941,294594,297259,299936,302625,305326,308039,310764,313501,316250,319011,321784,324569,327366,330175,332996,335829,338674,341531,344400,347281,350174,353079,355996,358925,361866,364819,367784,370761 mov $1,6 mul $1,$0 sub $1,5 mul $1,$0
208.125
1,558
0.822823
db020a383f7f5e82d29c41ff1ea6be012fd7169b
6,084
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca_notsx.log_1215_960.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca_notsx.log_1215_960.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca_notsx.log_1215_960.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 %r13 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x4678, %rdi xor %r8, %r8 vmovups (%rdi), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $1, %xmm0, %r10 nop nop nop nop nop add %rbx, %rbx lea addresses_normal_ht+0x10de8, %rax nop nop nop nop add $24112, %r13 mov $0x6162636465666768, %r11 movq %r11, %xmm7 movups %xmm7, (%rax) sub $59391, %rbx lea addresses_UC_ht+0x12078, %rbx nop nop nop nop inc %rdi movw $0x6162, (%rbx) nop nop nop sub $29590, %r8 lea addresses_UC_ht+0x19968, %rbx nop nop nop nop nop sub $50007, %r11 mov (%rbx), %rax nop nop nop nop nop dec %rdi lea addresses_WT_ht+0x7e9a, %rsi lea addresses_A_ht+0xc878, %rdi add $12420, %r10 mov $21, %rcx rep movsl nop nop nop nop nop cmp %r8, %r8 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %rbp push %rbx push %rcx push %rdi push %rsi // Store mov $0x78, %rbx nop nop nop nop nop dec %r10 movw $0x5152, (%rbx) nop nop nop dec %r11 // REPMOV mov $0xb2c, %rsi lea addresses_US+0x1b938, %rdi nop sub $33856, %r11 mov $23, %rcx rep movsw nop nop nop nop add $17474, %rbp // Store mov $0x14f8350000000078, %rdi clflush (%rdi) nop nop nop nop nop add $50010, %rbx mov $0x5152535455565758, %rcx movq %rcx, %xmm6 vmovups %ymm6, (%rdi) add $9126, %r11 // Faulty Load lea addresses_A+0x16078, %rcx nop nop and $20816, %r14 vmovups (%rcx), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $1, %xmm2, %rbp lea oracles, %rcx and $0xff, %rbp shlq $12, %rbp mov (%rcx,%rbp,1), %rbp pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_P', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 11}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_P'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_US'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 11}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 8}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 4}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 10}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 4}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_WT_ht'}, 'dst': {'same': True, 'congruent': 9, 'type': 'addresses_A_ht'}} {'00': 1215} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
35.372093
2,999
0.657298
e0d0bf5e9ccae78e124d164e47b1349c8ab810db
630
asm
Assembly
programs/oeis/140/A140253.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/140/A140253.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/140/A140253.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A140253: a(2*n) = 2*(2*4^(n-1)-1) and a(2*n-1) = 2*4^(n-1)-1. ; -1,1,2,7,14,31,62,127,254,511,1022,2047,4094,8191,16382,32767,65534,131071,262142,524287,1048574,2097151,4194302,8388607,16777214,33554431,67108862,134217727,268435454,536870911,1073741822,2147483647,4294967294,8589934591,17179869182,34359738367,68719476734,137438953471,274877906942,549755813887,1099511627774,2199023255551,4398046511102,8796093022207,17592186044414,35184372088831,70368744177662,140737488355327,281474976710654,562949953421311,1125899906842622,2251799813685247,4503599627370494,9007199254740991 mov $1,2 pow $1,$0 mov $2,-2 gcd $2,$0 sub $1,$2
70
515
0.812698
f4ad3cad259f759416d8bd7373021159b6dc6556
405
asm
Assembly
programs/oeis/229/A229118.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/229/A229118.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/229/A229118.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A229118: Distance from the n-th triangular number to the nearest square. ; 0,1,2,1,1,4,3,0,4,6,2,3,9,5,1,8,9,2,6,14,6,3,13,11,1,10,17,6,6,19,12,1,15,19,5,10,26,12,4,21,20,3,15,29,11,8,28,20,0,21,30,9,13,36,19,4,28,30,6,19,42,17,9,36,29,2,26,42,14,15,45,27,3,34,41,10,22,55,24,9,43,39,5,30,55,20,16,53,36,1,39,53,15,24,64,32,8,49,50,9 add $0,2 bin $0,2 seq $0,53188 ; Distance from n to nearest square.
57.857143
260
0.654321
76c9209e0c768c6043223724528977336e9ab1da
2,565
asm
Assembly
SystemRoutines.asm
DevEd2/JetpackDude
522dc035c65eb86eba7fe6c5953019221fe1dda0
[ "MIT" ]
4
2016-07-24T17:13:34.000Z
2020-01-05T21:40:36.000Z
SystemRoutines.asm
DevEd2/JetpackDude
522dc035c65eb86eba7fe6c5953019221fe1dda0
[ "MIT" ]
null
null
null
SystemRoutines.asm
DevEd2/JetpackDude
522dc035c65eb86eba7fe6c5953019221fe1dda0
[ "MIT" ]
1
2020-01-05T21:40:41.000Z
2020-01-05T21:40:41.000Z
; ================================================================ ; System routines ; ================================================================ ; ================================================================ ; Clear work RAM ; ================================================================ ClearWRAM: ld hl,$c001 ; don't clear first byte of WRAM (preserve GBType) ld bc,$1fff jr ClearLoop ; routine continues in ClearLoop ; ================================================================ ; Clear tilemap area ; ================================================================ ClearScreen: ld hl,$9800 ld bc,$800 jr ClearLoop ; routine continues in ClearLoop ; ================================================================ ; Clear video RAM ; ================================================================ ClearVRAM: ld hl,$8000 ld bc,$2000 ; routine continues in ClearLoop ; ================================================================ ; Clear a section of RAM ; ================================================================ ClearLoop: xor a ld [hl+],a dec bc ld a,b or c jr nz,ClearLoop ret ; ================================================================ ; Wait for LCD status to change ; ================================================================ WaitStat: push af .wait ld a,[rSTAT] and 2 jr z,.wait .wait2 ld a,[rSTAT] and 2 jr nz,.wait2 pop af ret ; ================================================================ ; Check joypad input ; ================================================================ CheckInput: ld a,P1F_5 ld [rP1],a ld a,[rP1] ld a,[rP1] cpl and a,$f swap a ld b,a ld a,P1F_4 ld [rP1],a ld a,[rP1] ld a,[rP1] ld a,[rP1] ld a,[rP1] ld a,[rP1] ld a,[rP1] cpl and a,$f or a,b ld b,a ld a,[sys_btnHold] xor a,b and a,b ld [sys_btnPress],a ld a,b ld [sys_btnHold],a ld a,P1F_5|P1F_4 ld [rP1],a ret ; ================================================================ ; Draw hexadecimal number A at HL ; ================================================================ DrawHex: push af swap a call .loop1 pop af .loop1 and $f cp $a jr c,.loop2 add a,$7 .loop2 add a,$10 ld [hl+],a ret ; ================================================================ ; Load a tilemap ; ================================================================ LoadMap: ld de,_SCRN0 ld bc,$1214 .loop ld a,[hl+] ld [de],a inc de dec c jr nz,.loop ld c,$14 ld a,e add $C jr nc,.continue inc d .continue ld e,a dec b jr nz,.loop ret
18.06338
66
0.339571
8787a5668f9bfd295e236a526a91695d92ea82c5
694
asm
Assembly
oeis/115/A115454.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/115/A115454.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/115/A115454.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A115454: Composite positive integers written in base 2. ; Submitted by Jon Maiga ; 100,110,1000,1001,1010,1100,1110,1111,10000,10010,10100,10101,10110,11000,11001,11010,11011,11100,11110,100000,100001,100010,100011,100100,100110,100111,101000,101010,101100,101101,101110,110000,110001,110010,110011,110100,110110,110111,111000,111001,111010,111100,111110,111111,1000000,1000001,1000010,1000100,1000101,1000110,1001000,1001010,1001011,1001100,1001101,1001110,1010000,1010001,1010010,1010100,1010101,1010110,1010111,1011000,1011010,1011011,1011100,1011101,1011110,1011111,1100000 seq $0,282671 ; Twice composite numbers. seq $0,204094 ; Numbers whose set of base 10 digits is {0,7}. div $0,70
86.75
496
0.819885
b2e1a88278928395b8c76205919dba5926bf6e75
717
asm
Assembly
oeis/212/A212962.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/212/A212962.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/212/A212962.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A212962: Expansion of x*(3+x-x^3)/((1-3*x-x^2)*(1-x)*(1+x)). ; Submitted by Christian Krause ; 0,3,10,36,118,393,1297,4287,14158,46764,154450,510117,1684801,5564523,18378370,60699636,200477278,662131473,2186871697,7222746567,23855111398,78788080764,260219353690,859446141837,2838557779201,9375119479443,30963916217530,102266868132036,337764520613638,1115560429972953,3684445810532497,12168897861570447,40191139395243838,132742316047301964,438418087537149730,1447996578658751157,4782407823513403201,15795220049198960763,52168067971110285490,172299423962529817236,569066339858699737198 add $0,1 mov $1,1 lpb $0 sub $0,1 add $1,1 mov $2,$3 mul $2,3 div $2,2 add $3,$1 add $1,$2 mul $1,2 lpe mov $0,$2
39.833333
490
0.79219
855727ac8d8088f87d046a5f60a53eefa1c1a96d
741
asm
Assembly
HW_Example/h601-1.asm
smallru8/smallMasmLib
5c6e525a9867ecf82fa0db98d0a46c8b00c1ec74
[ "BSD-3-Clause" ]
null
null
null
HW_Example/h601-1.asm
smallru8/smallMasmLib
5c6e525a9867ecf82fa0db98d0a46c8b00c1ec74
[ "BSD-3-Clause" ]
null
null
null
HW_Example/h601-1.asm
smallru8/smallMasmLib
5c6e525a9867ecf82fa0db98d0a46c8b00c1ec74
[ "BSD-3-Clause" ]
null
null
null
TITLE (.asm) INCLUDE Irvine32.inc INCLUDE Macros.inc .data .code main PROC mWrite "GCD(5,20) = " mov eax,5 mov ebx,20 call GCD call WriteDec call crlf mWrite "GCD(24,18) = " mov eax,24 mov ebx,18 call GCD call WriteDec call crlf mWrite "GCD(11,7) = " mov eax,11 mov ebx,7 call GCD call WriteDec call crlf mWrite "GCD(432,226) = " mov eax,432 mov ebx,226 call GCD call WriteDec call crlf mWrite "GCD(26,13) = " mov eax,26 mov ebx,13 call GCD call WriteDec call crlf exit main ENDP ;GCD(x,y) ;eax : x ;ebx : y GCD PROC USES edx mov edx,0 div ebx mov eax,ebx ;x=y mov ebx,edx ;y=n cmp ebx,0 jng return call GCD return: ret GCD ENDP END main
13
26
0.618084
1c28d2afc7ad4afc720e141756787a2a26ea9e36
3,303
asm
Assembly
iod/con2/ql/sprite/drop.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
iod/con2/ql/sprite/drop.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
iod/con2/ql/sprite/drop.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; Sprite dropping code V1.01  1985 Tony Tebby ; 2005 Marcel Kilgus ; ; 2005-03-27 1.01 Extension for empty (solid) mask (MK) ; ; d0 c s byte offset / green composite ; d1 c s row offset / red composite ; d2 s green sprite ; d3 s red sprite ; d4 s sprite mask ; d5 c s sprite word counter / horizontal mask (high word) ; d6 c s row counter ; d7 c p right shift (low word) / 16-shift (high word) ; ; a0 s ; a3 c s new pointer to screen ; a4 s pointer to sprite pattern ; a5 c s pointer to sprite pointers / pointer to sprite mask ; a6 c p address increment of screen ; section driver ; xdef sp_drop xdef sp_dropi ; sp_drop move.l a5,a4 set pointer to sprite pattern add.l (a5)+,a4 move.l a5,d3 move.l (a5),a5 move.l a5,d4 beq.s spd_nomask ; ... sprite mask ptr is 0 add.l d3,a5 ; absolute sprite mask ptr add.w d0,a5 ; offset to start spd_nomask add.w d0,a4 ; offset to start sp_dropi move.l d5,-(sp) save sprite word counter move.l a5,d0 ; any mask? beq.s sp_nomask sp_line move.l (sp),d5 set counter ; moveq #0,d2 clear the sprite registers moveq #0,d3 moveq #0,d4 ; long_word movep.w 0(a4),d2 set sprite - green / flash movep.w 1(a4),d3 - red / blue movep.w 0(a5),d4 - mask addq.l #4,a4 addq.l #4,a5 ; last_word ror.l d7,d2 and move into position ror.l d7,d3 ror.l d7,d4 ; swap d5 check if this word to be dropped in lsl.w #1,d5 bcs.s next_word ; movep.w 0(a3),d0 get current background from screen movep.w 1(a3),d1 ; not.w d4 and.w d4,d0 mask out bit where sprite is to go and.w d4,d1 not.w d4 eor.w d2,d0 eor in the sprite eor.w d3,d1 movep.w d0,0(a3) put it back into the screen movep.w d1,1(a3) addq.l #4,a3 move screen address on next_word swap d7 lsr.l d7,d2 prepare registers for next go lsr.l d7,d3 lsr.l d7,d4 swap d7 ; swap d5 subq.w #1,d5 next long word bgt.s long_word ... there is another one blt.s next_line ... all gone clr.w d2 ... no more sprite definition clr.w d3 clr.w d4 bra.s last_word ; next_line add.w a6,a3 move address to next line dbra d6,sp_line next line exit addq.l #4,sp remove line counter rts sp_nomask move.l (sp),d5 set counter ; moveq #0,d2 clear the sprite registers moveq #0,d3 moveq #0,d4 ; snm_long_word movep.w 0(a4),d2 set sprite - green / flash movep.w 1(a4),d3 - red / blue move.w #$ffff,d4 - mask addq.l #4,a4 ; snm_last_word ror.l d7,d2 and move into position ror.l d7,d3 ror.l d7,d4 ; swap d5 check if this word to be dropped in lsl.w #1,d5 bcs.s snm_next_word ; movep.w 0(a3),d0 get current background from screen movep.w 1(a3),d1 ; not.w d4 and.w d4,d0 mask out bit where sprite is to go and.w d4,d1 not.w d4 eor.w d2,d0 eor in the sprite eor.w d3,d1 movep.w d0,0(a3) put it back into the screen movep.w d1,1(a3) addq.l #4,a3 move screen address on snm_next_word swap d7 lsr.l d7,d2 prepare registers for next go lsr.l d7,d3 lsr.l d7,d4 swap d7 ; swap d5 subq.w #1,d5 next long word bgt.s snm_long_word ... there is another one blt.s snm_next_line ... all gone clr.w d2 ... no more sprite definition clr.w d3 clr.w d4 bra.s snm_last_word ; snm_next_line add.w a6,a3 move address to next line dbra d6,sp_nomask next line addq.l #4,sp remove line counter rts end end
20.773585
60
0.680896
a043f1809c26a210d34ac638faf7e16151e6770b
523
asm
Assembly
programs/oeis/328/A328987.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/328/A328987.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/328/A328987.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A328987: The sequence C(n) defined in the comments (A and B smallest missing numbers, offset 0). ; 3,10,15,20,27,32,39,44,51,56,61,68,73,80,85,90,97,102,109,114,119,126,131,138,143,150,155,160,167,172,179,184,189,196,201,208,213,220,225,230,237,242,249,254,259,266,271,278,283,290,295,300,307,312,319 mov $2,8 mov $4,$0 add $4,$0 add $4,1 mov $5,$0 mov $6,$0 mul $6,$0 lpb $2,1 add $0,$2 lpb $6,1 add $0,2 add $4,2 trn $6,$4 lpe mov $2,1 lpe add $0,5 mov $1,$0 sub $1,10 mov $3,$5 mul $3,4 add $1,$3
20.115385
203
0.627151
fc5e2eeca98673213d9564a00e0c22b20bec8de4
269
asm
Assembly
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sccz80/tshc_aaddrcdown.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sccz80/tshc_aaddrcdown.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sccz80/tshc_aaddrcdown.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void *tshc_aaddrcdown(void *aaddr) SECTION code_clib SECTION code_arch PUBLIC tshc_aaddrcdown EXTERN zx_saddrcdown defc tshc_aaddrcdown = zx_saddrcdown ; SDCC bridge for Classic IF __CLASSIC PUBLIC _tshc_aaddrcdown defc _tshc_aaddrcdown = tshc_aaddrcdown ENDIF
14.944444
39
0.836431
4844bf0a8bda2f803f411351cb0dedaf9ae5d70c
171
asm
Assembly
ESEMPI/05 PROGRAMMA NUM CRESCENTI.asm
Porchetta/py-pdp8-tk
5eba6bb2cf72b97602bfa2239e7bf44c454794e0
[ "MIT" ]
8
2019-06-07T10:38:41.000Z
2022-03-24T13:05:12.000Z
ESEMPI/05 PROGRAMMA NUM CRESCENTI.asm
Porchetta/py-pdp8-tk
5eba6bb2cf72b97602bfa2239e7bf44c454794e0
[ "MIT" ]
2
2015-07-14T12:22:33.000Z
2018-05-11T08:35:24.000Z
ESEMPI/05 PROGRAMMA NUM CRESCENTI.asm
Porchetta/py-pdp8-tk
5eba6bb2cf72b97602bfa2239e7bf44c454794e0
[ "MIT" ]
9
2015-05-06T14:35:08.000Z
2021-03-23T14:27:21.000Z
ORG 100 / Ordina in senso crescente le locazioni A e B LDA A CMA INC ADD B SNA STP, HLT LDA B STA BUF LDA A STA B LDA BUF STA A BUN STP A, DEC 10 B, DEC -9 BUF, DEC 0 END
9
54
0.701754
5bbf0911c7839ef8a775b72f0d83616a8100b11e
336
asm
Assembly
oeis/021/A021188.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/021/A021188.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/021/A021188.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A021188: Decimal expansion of 1/184. ; Submitted by Jon Maiga ; 0,0,5,4,3,4,7,8,2,6,0,8,6,9,5,6,5,2,1,7,3,9,1,3,0,4,3,4,7,8,2,6,0,8,6,9,5,6,5,2,1,7,3,9,1,3,0,4,3,4,7,8,2,6,0,8,6,9,5,6,5,2,1,7,3,9,1,3,0,4,3,4,7,8,2,6,0,8,6,9,5,6,5,2,1,7,3,9,1,3,0,4,3,4,7,8,2,6,0 seq $0,83812 ; 4n-1 is the digit reversal of n-1. div $0,368 mod $0,10
42
199
0.577381
ab1d2fe3fdf40c9f1e901ed0a8caa30aab8c2d20
2,997
asm
Assembly
uw1/eop-mouseLookOrMoveCursor.asm
JohnGlassmyer/UltimaHacks
f9a114e00c4a1edf1ac7792b465feff2c9b88ced
[ "MIT" ]
68
2018-03-04T22:34:22.000Z
2022-03-10T15:18:32.000Z
uw1/eop-mouseLookOrMoveCursor.asm
ptrie/UltimaHacks
2c3557a86d94ad8b54b26bc395b9aed1604f8be1
[ "MIT" ]
19
2018-11-20T04:06:49.000Z
2021-11-08T16:37:10.000Z
uw1/eop-mouseLookOrMoveCursor.asm
ptrie/UltimaHacks
2c3557a86d94ad8b54b26bc395b9aed1604f8be1
[ "MIT" ]
4
2020-09-01T17:57:36.000Z
2022-01-04T20:51:11.000Z
%ifndef EXE_LENGTH %include "../UltimaPatcher.asm" %include "include/uw1.asm" %include "include/uw1-eop.asm" %endif [bits 16] startPatch EXE_LENGTH, \ expanded overlay procedure: mouseLookOrMoveCursor startBlockAt addr_eop_mouseLookOrMoveCursor push bp mov bp, sp ; bp-based stack frame: %assign arg_mouseXDelta 0x06 %assign arg_mouseYDelta 0x04 %assign ____callerIp 0x02 %assign ____callerBp 0x00 push si push di cmp byte [dseg_isMouseLookEnabled], 0 jz moveCursor changeLookDirection: ; mouse x changes heading cmp word [bp+arg_mouseXDelta], 0 jz xZero mov ax, word [bp+arg_mouseXDelta] shl ax, 6 test byte [dseg_mouseLookOrientation], MOUSE_LOOK_INVERT_X jz afterInvertX neg ax afterInvertX: add word [dseg_heading], ax xZero: ; mouse y changes pitch cmp word [bp+arg_mouseYDelta], 0 jz yZero mov ax, word [bp+arg_mouseYDelta] shl ax, 7 test byte [dseg_mouseLookOrientation], MOUSE_LOOK_INVERT_Y jz afterInvertY neg ax afterInvertY: sub word [dseg_pitch], ax cmp word [dseg_pitch], pitchBound jle boundedAbove mov word [dseg_pitch], pitchBound boundedAbove: cmp word [dseg_pitch], -pitchBound jge boundedBelow mov word [dseg_pitch], -pitchBound boundedBelow: yZero: ; update avatar heading for compass display (as at seg008:02A4) les bx, [dseg_ps_avatarItem] mov ax, [es:bx+2] and ax, 0b1111110001111111 mov dx, [dseg_heading] sar dx, 13 and dx, 0b0000000000000111 shl dx, 7 or ax, dx mov [es:bx+2], ax mov al, [es:bx+0x18] and al, 0b11100000 mov dx, [dseg_heading] sar dx, 8 and dl, 0b00011111 or al, dl mov [es:bx+0x18], al ; signal that the 3d view needs to be redrawn push 2 callFromOverlay setInterfaceRoutineBit add sp, 2 mov ax, 1 jmp endProc moveCursor: ; add X mov ax, [dseg_cursorX] add ax, [bp+arg_mouseXDelta] ; bound X cmp ax, [dseg_cursorMinX] jge xBoundedBelow mov ax, [dseg_cursorMinX] jmp xBounded xBoundedBelow: cmp ax, [dseg_cursorMaxX] jle xBounded mov ax, [dseg_cursorMaxX] xBounded: ; set X mov [dseg_cursorX], ax ; subtract Y (vertical coordinates are bottom-up in this game) mov ax, [dseg_cursorY] sub ax, [bp+arg_mouseYDelta] ; bound Y cmp ax, [dseg_cursorMinY] jge yBoundedBelow mov ax, [dseg_cursorMinY] jmp yBounded yBoundedBelow: cmp ax, [dseg_cursorMaxY] jle yBounded mov ax, [dseg_cursorMaxY] yBounded: ; set Y mov [dseg_cursorY], ax xor ax, ax endProc: ; ax == 0 if cursor was moved ; ax == 1 if look direction was changed pop di pop si mov sp, bp pop bp retn endBlockAt off_eop_mouseLookOrMoveCursor_end endPatch
20.114094
66
0.637971
0186db42c8f6c02df3bbb0423057936df917a01b
265
asm
Assembly
programs/oeis/215/A215272.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/215/A215272.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/215/A215272.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A215272: a(n) = a(n-1)*a(n-2) with a(0)=1, a(1)=9. ; 1,9,9,81,729,59049,43046721,2541865828329,109418989131512359209,278128389443693511257285776231761 seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1. mov $1,9 pow $1,$0 mov $0,$1
33.125
99
0.645283
c24d18f52ba1f33c0d93ba427fa2dbfda986f3a7
253
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sccz80/pow_callee.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sccz80/pow_callee.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sccz80/pow_callee.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_fp_math32 PUBLIC pow_callee EXTERN cm32_sccz80_pow_callee defc pow_callee = cm32_sccz80_pow_callee ; SDCC bridge for Classic IF __CLASSIC PUBLIC _pow_callee EXTERN cm32_sdcc_pow_callee defc _pow_callee = cm32_sdcc_pow_callee ENDIF
15.8125
41
0.849802
56e02e23fa485a72504377e081ffbd389f35b7f3
754
asm
Assembly
ecdsa128/src/aRC4_src/src/rc4_setkey.asm
FloydZ/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
11
2015-03-17T10:31:23.000Z
2022-01-21T17:42:43.000Z
ecdsa128/src/aRC4_src/src/rc4_setkey.asm
0xFF1E071F/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
null
null
null
ecdsa128/src/aRC4_src/src/rc4_setkey.asm
0xFF1E071F/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
6
2018-01-29T16:06:36.000Z
2021-05-08T19:22:24.000Z
.686p .mmx .model flat,stdcall option casemap:none option prologue:none option epilogue:none extern rc4keytable:DWORD .code rc4_setkey proc ptrPass:DWORD, lPass:DWORD pushad mov ebp, dword ptr [esp+20h+4+4] test ebp, ebp jz @done mov eax, 0FFFEFDFCh mov ecx, 256/4 @@: mov dword ptr [rc4keytable+4*ecx-4], eax sub eax, 04040404h dec ecx jnz @B xor eax, eax mov edi, dword ptr [esp+20h+4] ;ptrPass @setKey: xor ebx, ebx mov esi, ebp jmp @new_key @@: inc bl dec esi jz @setKey @new_key: mov dl, byte ptr [rc4keytable+ecx] add al, byte ptr [edi+ebx] add al, dl mov dh, byte ptr [rc4keytable+eax] mov byte ptr [rc4keytable+ecx], dh mov byte ptr [rc4keytable+eax], dl inc cl jnz @B @done: popad ret 8 rc4_setkey endp end
14.226415
44
0.700265
f8014b20432a92b97f25c938e0df2f10e643801a
520
asm
Assembly
oeis/058/A058063.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/058/A058063.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/058/A058063.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A058063: Number of prime factors (when counted with multiplicity) of sigma(n), the sum of divisors of n. ; 0,1,2,1,2,3,3,2,1,3,3,3,2,4,4,1,3,2,3,3,5,4,4,4,1,3,4,4,3,5,5,3,5,4,5,2,2,4,4,4,3,6,3,4,3,5,5,3,2,2,5,3,4,5,5,5,5,4,4,5,2,6,4,1,4,6,3,4,6,6,5,3,2,3,3,4,6,5,5,3,2,4,4,6,5,4,5,5,4,4,5,5,7,6,5,5,3,3,4,2 seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n). lpb $0 sub $0,1 seq $0,32742 ; a(1) = 1; for n > 1, a(n) = largest proper divisor of n. add $1,2 lpe mov $0,$1 div $0,2
43.333333
201
0.586538
f8d3b3644eaed7bd45fa5c1cfd9efd7d54701656
506
asm
Assembly
oeis/135/A135817.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/135/A135817.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/135/A135817.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A135817: Length of Wythoff representation of n. ; Submitted by Christian Krause ; 1,1,2,3,2,4,3,3,5,4,4,4,3,6,5,5,5,4,5,4,4,7,6,6,6,5,6,5,5,6,5,5,5,4,8,7,7,7,6,7,6,6,7,6,6,6,5,7,6,6,6,5,6,5,5,9,8,8,8,7,8,7,7,8,7,7,7,6,8,7,7,7,6,7,6,6,8,7,7,7,6,7,6,6,7,6,6,6,5,10,9,9,9,8,9,8,8,9,8,8 lpb $0 mov $2,$0 add $2,2 seq $2,193564 ; In A014675, replace the n-th occurrence of 1 with n-1 and also replace the n-th occurrence of 2 with n-1. mov $0,$2 sub $0,1 add $1,2 lpe div $1,2 mov $0,$1 add $0,1
31.625
202
0.598814
fcb2a0dbd5b4a1bbdbc5ef2448e340c114431707
6,041
asm
Assembly
newboot/kernelLoader.asm
jaredwhitney/os3
05e0cda4670da093cc720d0dccbfeb29e788fa0f
[ "MIT" ]
5
2015-02-25T01:28:09.000Z
2021-05-22T09:03:04.000Z
newboot/kernelLoader.asm
jaredwhitney/os3
05e0cda4670da093cc720d0dccbfeb29e788fa0f
[ "MIT" ]
38
2015-02-10T18:37:11.000Z
2017-10-03T03:08:50.000Z
newboot/kernelLoader.asm
jaredwhitney/os3
05e0cda4670da093cc720d0dccbfeb29e788fa0f
[ "MIT" ]
2
2016-05-06T22:48:46.000Z
2017-01-12T19:28:49.000Z
KERNEL_START : %include "../newboot/bootdefinitions.asm" %include "../Tools/methodTraceMacros.asm" [map all labels.map] [bits 16] [org KERNEL_LOADER_LOC] pusha mov bh, 0x0 mov bl, 0x7 mov ah, 0xE mov al, '2' int 0x10 popa xor ax, ax mov es, ax mov ax, 0x2000 mov di, ax mov ax, 0x4F00 int 0x10 pusha mov bh, 0x0 mov bl, 0x7 mov ah, 0xE mov al, '3' int 0x10 popa mov ax, [0x2010] mov es, ax mov ax, [0x200E] mov di, ax modeSearchLoop : mov cx, [es:di] cmp cx, 0xFFFF je modeSearchLoop.done push es push di xor ax, ax mov es, ax mov ax, 0x3000 mov di, ax mov ax, 0x4F01 int 0x10 mov dx, [0x3012] mov ax, MAX_XRES sub ax, [closestXres] mov bx, MAX_XRES sub bx, dx cmp dx, MAX_XRES jg modeSearchLoop.checkNotBetter cmp bx, ax jge modeSearchLoop.checkNotBetter mov dx, [0x3014] mov ax, MAX_YRES sub ax, [closestYres] mov bx, MAX_YRES sub bx, dx cmp dx, MAX_YRES jg modeSearchLoop.checkNotBetter cmp bx, ax jge modeSearchLoop.checkNotBetter mov dx, [0x3000] and dx, 0b10010000 cmp dx, 0b10010000 jne modeSearchLoop.checkNotBetter mov dl, [0x3019] cmp dl, 32 jne modeSearchLoop.checkNotBetter mov edx, [0x3028] mov [closestBufferLoc], edx ;mov dl, [0x3019] ;cmp dl, 32 ; jne modeSearchLoop.checkNotBetter mov ax, [0x3012] mov bx, [0x3014] mov [closestXres], ax mov [closestYres], bx mov [closestMatch], cx modeSearchLoop.checkNotBetter : pop di pop es mov ax, di add ax, 2 mov di, ax jmp modeSearchLoop modeSearchLoop.done : pusha mov bh, 0x0 mov bl, 0x7 mov ah, 0xE mov al, '4' int 0x10 popa mov ax, 0x4F02 xor bx, bx mov es, bx mov bx, 0x3000 mov di, bx mov bx, [closestMatch] or bx, 0x4000 int 0x10 ;mov edx, [closestBufferLoc] ;mov dword [edx], 0xFF00FF jmp goPmode goPmode : mov ax, 0x2401 int 0x15 lgdt [PMGDT] mov eax, cr0 or eax, 1 mov cr0, eax cli ;mov edx, [closestBufferLoc] ;mov dword [edx], 0xFF0000 jmp codeOffs:pmStart [bits 32] pmStart : ;mov dword [edx], 0x0000FF mov ax, dataOffs mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax mov ebp, 0xA00000 mov esp, ebp ;mov edx, [closestBufferLoc] ;mov dword [edx], 0xFFB233 call loadIDT jmp finishLoading loadIDT : lidt [PMIDT] sti call setupPIC call setupPIT ret setupPIT : cli mov al, 0b00110110 mov dx, 0x43 out dx, al mov ax, 1193180/1000 mov dx, 0x40 out dx, al mov al, ah out dx, al sti ret setupPIC : pusha mov dx, 0x21 in al, dx mov bl, al ; storing interrupt masks mov dx, 0xa1 in al, dx mov cl, al ; storing interrupt masks mov al, 0x10 ; initialization code mov dx, 0x20 out dx, al ; tell the master PIC to initialize mov dx, 0xa0 out dx, al ; tell the slave PIC to initialize mov al, 0x0 ; where IRQs 0-7 should be mapped mov dx, 0x21 out dx, al mov al, 0x20 ; where IRQs 8-15 should be mapped mov dx, 0xa1 out dx, al mov dx, 0x21 mov al, 4 out dx, al mov dx, 0xa1 mov al, 2 out dx, al mov dx, 0x21 mov al, 0x1 out dx, al mov dx, 0xa1 out dx, al mov dx, 0x21 mov al, 0b11111000 ; bit 2 cleared enables the slave (IRQs 7-15) out dx, al mov dx, 0xa1 mov al, 0b11101111 out dx, al popa ;pop eax ; if things are not working keep this uncommented, it will skip enabling interrupts ret KERNEL_SIZE equ (((KERNEL_END-KERNEL_START)-1)/0x200)+1 finishLoading : mov ax, [0x1000] and eax, 0xFFFF mov edx, KERNEL_SIZE sub edx, eax inc edx push eax mov ecx, KERNEL_LOADER_LOC imul eax, 0x200 add ecx, eax pop eax sub ecx, 0x200 mov dword [sloadcount2], eax mov dword [sloadcount], ecx mov dword [rmfunc], realModeAtaDetectLBAsupport call realModeExec cmp byte [realModeAtaDetectLBAsupport.result], 0xFF je .goOn mov edx, [closestBufferLoc] mov dword [edx], 0xFF0000 mov dword [edx+0x08], 0xFF0000 mov dword [edx+0x10], 0xFF0000 cli hlt .goOn : mov dword [rmfunc], realModeAtaLoad finishLoading.loop : mov [rmATAdata.lowP], eax call realModeExec mov esi, 0x7c00 mov edi, ecx push ax xor ax, ax mov es, ax pop ax push ecx mov ecx, 0x200/4 finishLoading.copyDataLoop : mov ebx, [esi] mov [edi], ebx add esi, 4 add edi, 4 dec ecx cmp ecx, 0x0 jg finishLoading.copyDataLoop pop ecx inc eax dec edx add ecx, 0x200 cmp edx, 0 jg finishLoading.loop ;xor ebx, ebx ; fix needed as os3 expects screen width in bytes ;mov bx, [closestXres] ;shl ebx, 2 ;mov [closestXres], ebx call ps2.init jmp Kernel.init [bits 16] realModeAtaDetectLBAsupport : mov ah, 0x41 mov bx, 0x55AA mov dl, 0x80 int 0x13 jc .nosupport mov byte [.result], 0xFF ret .nosupport : mov byte [.result], 0x00 ret .result : db 0x0 realModeAtaLoad : ; this will not work properly on Bochs! (add in workaround) mov di, 0x0 mov si, rmATAdata mov dl, 0x80 mov ah, 0x42 int 0x13 ret realModeAtaSave : ; this will not work properly on Bochs! (add in workaround) mov di, 0x0 mov si, rmATAdata mov dl, 0x80 mov ah, 0x43 int 0x13 ret rmATAdata : db 0x10 db 0 dw 1 dw 0x7c00 dw 0 rmATAdata.lowP : dd 0x0 rmATAdata.highP : dd 0x0 [bits 32] %include "..\newboot\pmdata.asm" closestXres : dd 0x0 closestYres : dd 0x0 closestBufferLoc : dd 0x0 closestMatch : dd 0x0 sloadcount : dd 0x0 sloadcount2 : dd 0x0 DisplayMode : ; for backwards compatibility dd 1 INTERRUPT_DISABLE : dd 0x00 os_imageDataBaseLBA equ 0 [bits 16] realMode.ATAload : realMode.ATAwrite : ret [bits 32] %include "..\newboot\rmexec.asm" %include "..\kernel\kernel.asm" times ((($-$$)/0x200+1)*0x200)-($-$$) db 0 ; pad code to the nearest sector KERNEL_END : dd "MINFS5.0" dd 0xDEADD15C dd null dd 0x30 dd 0xFFFFFFFF dd 1 dd Minnow5.ATTRIB_NO_WRITE db "Os3_Boot", 0 times ((($-$$)/0x200+1)*0x200)-($-$$) db 0 ; pad to the nearest sector dd "MINFS5.0" dd 2 dd 0 dd 0x3A dd 0 dd null dd Minnow5.ATTRIB_NO_WRITE | Minnow5.ATTRIB_DELETE_PROTECTED db "boot", 0 times ((($-$$)/0x200+1)*0x200)-($-$$) db 0 ; pad to the nearest sector dd "MINFS5.0" dd null dd 0 dd 0x3A dd 0 dd null dd Minnow5.ATTRIB_NO_WRITE | Minnow5.ATTRIB_DELETE_PROTECTED db "root", 0 times ((($-$$)/0x200+1)*0x200)-($-$$) db 0 times 0x20000 dq 0
14.662621
93
0.703195
520d74071866992aba532ee94786d3b98f77b766
42,182
asm
Assembly
user/stressfs.asm
siyuanhu98/6.S081-xv
1804fe32d487eba6d5f454cb0f740baf973dbaca
[ "MIT-0" ]
null
null
null
user/stressfs.asm
siyuanhu98/6.S081-xv
1804fe32d487eba6d5f454cb0f740baf973dbaca
[ "MIT-0" ]
null
null
null
user/stressfs.asm
siyuanhu98/6.S081-xv
1804fe32d487eba6d5f454cb0f740baf973dbaca
[ "MIT-0" ]
null
null
null
user/_stressfs: 文件格式 elf64-littleriscv Disassembly of section .text: 0000000000000000 <main>: #include "kernel/fs.h" #include "kernel/fcntl.h" int main(int argc, char *argv[]) { 0: dd010113 addi sp,sp,-560 4: 22113423 sd ra,552(sp) 8: 22813023 sd s0,544(sp) c: 20913c23 sd s1,536(sp) 10: 21213823 sd s2,528(sp) 14: 1c00 addi s0,sp,560 int fd, i; char path[] = "stressfs0"; 16: 00001797 auipc a5,0x1 1a: 8c278793 addi a5,a5,-1854 # 8d8 <malloc+0x118> 1e: 6398 ld a4,0(a5) 20: fce43823 sd a4,-48(s0) 24: 0087d783 lhu a5,8(a5) 28: fcf41c23 sh a5,-40(s0) char data[512]; printf("stressfs starting\n"); 2c: 00001517 auipc a0,0x1 30: 87c50513 addi a0,a0,-1924 # 8a8 <malloc+0xe8> 34: 00000097 auipc ra,0x0 38: 6ce080e7 jalr 1742(ra) # 702 <printf> memset(data, 'a', sizeof(data)); 3c: 20000613 li a2,512 40: 06100593 li a1,97 44: dd040513 addi a0,s0,-560 48: 00000097 auipc ra,0x0 4c: 136080e7 jalr 310(ra) # 17e <memset> for(i = 0; i < 4; i++) 50: 4481 li s1,0 52: 4911 li s2,4 if(fork() > 0) 54: 00000097 auipc ra,0x0 58: 326080e7 jalr 806(ra) # 37a <fork> 5c: 00a04563 bgtz a0,66 <main+0x66> for(i = 0; i < 4; i++) 60: 2485 addiw s1,s1,1 62: ff2499e3 bne s1,s2,54 <main+0x54> break; printf("write %d\n", i); 66: 85a6 mv a1,s1 68: 00001517 auipc a0,0x1 6c: 85850513 addi a0,a0,-1960 # 8c0 <malloc+0x100> 70: 00000097 auipc ra,0x0 74: 692080e7 jalr 1682(ra) # 702 <printf> path[8] += i; 78: fd844783 lbu a5,-40(s0) 7c: 9cbd addw s1,s1,a5 7e: fc940c23 sb s1,-40(s0) fd = open(path, O_CREATE | O_RDWR); 82: 20200593 li a1,514 86: fd040513 addi a0,s0,-48 8a: 00000097 auipc ra,0x0 8e: 338080e7 jalr 824(ra) # 3c2 <open> 92: 892a mv s2,a0 94: 44d1 li s1,20 for(i = 0; i < 20; i++) // printf(fd, "%d\n", i); write(fd, data, sizeof(data)); 96: 20000613 li a2,512 9a: dd040593 addi a1,s0,-560 9e: 854a mv a0,s2 a0: 00000097 auipc ra,0x0 a4: 302080e7 jalr 770(ra) # 3a2 <write> for(i = 0; i < 20; i++) a8: 34fd addiw s1,s1,-1 aa: f4f5 bnez s1,96 <main+0x96> close(fd); ac: 854a mv a0,s2 ae: 00000097 auipc ra,0x0 b2: 2fc080e7 jalr 764(ra) # 3aa <close> printf("read\n"); b6: 00001517 auipc a0,0x1 ba: 81a50513 addi a0,a0,-2022 # 8d0 <malloc+0x110> be: 00000097 auipc ra,0x0 c2: 644080e7 jalr 1604(ra) # 702 <printf> fd = open(path, O_RDONLY); c6: 4581 li a1,0 c8: fd040513 addi a0,s0,-48 cc: 00000097 auipc ra,0x0 d0: 2f6080e7 jalr 758(ra) # 3c2 <open> d4: 892a mv s2,a0 d6: 44d1 li s1,20 for (i = 0; i < 20; i++) read(fd, data, sizeof(data)); d8: 20000613 li a2,512 dc: dd040593 addi a1,s0,-560 e0: 854a mv a0,s2 e2: 00000097 auipc ra,0x0 e6: 2b8080e7 jalr 696(ra) # 39a <read> for (i = 0; i < 20; i++) ea: 34fd addiw s1,s1,-1 ec: f4f5 bnez s1,d8 <main+0xd8> close(fd); ee: 854a mv a0,s2 f0: 00000097 auipc ra,0x0 f4: 2ba080e7 jalr 698(ra) # 3aa <close> wait(0); f8: 4501 li a0,0 fa: 00000097 auipc ra,0x0 fe: 290080e7 jalr 656(ra) # 38a <wait> exit(0); 102: 4501 li a0,0 104: 00000097 auipc ra,0x0 108: 27e080e7 jalr 638(ra) # 382 <exit> 000000000000010c <strcpy>: #include "kernel/fcntl.h" #include "user/user.h" char* strcpy(char *s, const char *t) { 10c: 1141 addi sp,sp,-16 10e: e422 sd s0,8(sp) 110: 0800 addi s0,sp,16 char *os; os = s; while((*s++ = *t++) != 0) 112: 87aa mv a5,a0 114: 0585 addi a1,a1,1 116: 0785 addi a5,a5,1 118: fff5c703 lbu a4,-1(a1) 11c: fee78fa3 sb a4,-1(a5) 120: fb75 bnez a4,114 <strcpy+0x8> ; return os; } 122: 6422 ld s0,8(sp) 124: 0141 addi sp,sp,16 126: 8082 ret 0000000000000128 <strcmp>: int strcmp(const char *p, const char *q) { 128: 1141 addi sp,sp,-16 12a: e422 sd s0,8(sp) 12c: 0800 addi s0,sp,16 while(*p && *p == *q) 12e: 00054783 lbu a5,0(a0) 132: cb91 beqz a5,146 <strcmp+0x1e> 134: 0005c703 lbu a4,0(a1) 138: 00f71763 bne a4,a5,146 <strcmp+0x1e> p++, q++; 13c: 0505 addi a0,a0,1 13e: 0585 addi a1,a1,1 while(*p && *p == *q) 140: 00054783 lbu a5,0(a0) 144: fbe5 bnez a5,134 <strcmp+0xc> return (uchar)*p - (uchar)*q; 146: 0005c503 lbu a0,0(a1) } 14a: 40a7853b subw a0,a5,a0 14e: 6422 ld s0,8(sp) 150: 0141 addi sp,sp,16 152: 8082 ret 0000000000000154 <strlen>: uint strlen(const char *s) { 154: 1141 addi sp,sp,-16 156: e422 sd s0,8(sp) 158: 0800 addi s0,sp,16 int n; for(n = 0; s[n]; n++) 15a: 00054783 lbu a5,0(a0) 15e: cf91 beqz a5,17a <strlen+0x26> 160: 0505 addi a0,a0,1 162: 87aa mv a5,a0 164: 4685 li a3,1 166: 9e89 subw a3,a3,a0 168: 00f6853b addw a0,a3,a5 16c: 0785 addi a5,a5,1 16e: fff7c703 lbu a4,-1(a5) 172: fb7d bnez a4,168 <strlen+0x14> ; return n; } 174: 6422 ld s0,8(sp) 176: 0141 addi sp,sp,16 178: 8082 ret for(n = 0; s[n]; n++) 17a: 4501 li a0,0 17c: bfe5 j 174 <strlen+0x20> 000000000000017e <memset>: void* memset(void *dst, int c, uint n) { 17e: 1141 addi sp,sp,-16 180: e422 sd s0,8(sp) 182: 0800 addi s0,sp,16 char *cdst = (char *) dst; int i; for(i = 0; i < n; i++){ 184: ce09 beqz a2,19e <memset+0x20> 186: 87aa mv a5,a0 188: fff6071b addiw a4,a2,-1 18c: 1702 slli a4,a4,0x20 18e: 9301 srli a4,a4,0x20 190: 0705 addi a4,a4,1 192: 972a add a4,a4,a0 cdst[i] = c; 194: 00b78023 sb a1,0(a5) for(i = 0; i < n; i++){ 198: 0785 addi a5,a5,1 19a: fee79de3 bne a5,a4,194 <memset+0x16> } return dst; } 19e: 6422 ld s0,8(sp) 1a0: 0141 addi sp,sp,16 1a2: 8082 ret 00000000000001a4 <strchr>: char* strchr(const char *s, char c) { 1a4: 1141 addi sp,sp,-16 1a6: e422 sd s0,8(sp) 1a8: 0800 addi s0,sp,16 for(; *s; s++) 1aa: 00054783 lbu a5,0(a0) 1ae: cb99 beqz a5,1c4 <strchr+0x20> if(*s == c) 1b0: 00f58763 beq a1,a5,1be <strchr+0x1a> for(; *s; s++) 1b4: 0505 addi a0,a0,1 1b6: 00054783 lbu a5,0(a0) 1ba: fbfd bnez a5,1b0 <strchr+0xc> return (char*)s; return 0; 1bc: 4501 li a0,0 } 1be: 6422 ld s0,8(sp) 1c0: 0141 addi sp,sp,16 1c2: 8082 ret return 0; 1c4: 4501 li a0,0 1c6: bfe5 j 1be <strchr+0x1a> 00000000000001c8 <gets>: char* gets(char *buf, int max) { 1c8: 711d addi sp,sp,-96 1ca: ec86 sd ra,88(sp) 1cc: e8a2 sd s0,80(sp) 1ce: e4a6 sd s1,72(sp) 1d0: e0ca sd s2,64(sp) 1d2: fc4e sd s3,56(sp) 1d4: f852 sd s4,48(sp) 1d6: f456 sd s5,40(sp) 1d8: f05a sd s6,32(sp) 1da: ec5e sd s7,24(sp) 1dc: 1080 addi s0,sp,96 1de: 8baa mv s7,a0 1e0: 8a2e mv s4,a1 int i, cc; char c; for(i=0; i+1 < max; ){ 1e2: 892a mv s2,a0 1e4: 4481 li s1,0 cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; if(c == '\n' || c == '\r') 1e6: 4aa9 li s5,10 1e8: 4b35 li s6,13 for(i=0; i+1 < max; ){ 1ea: 89a6 mv s3,s1 1ec: 2485 addiw s1,s1,1 1ee: 0344d863 bge s1,s4,21e <gets+0x56> cc = read(0, &c, 1); 1f2: 4605 li a2,1 1f4: faf40593 addi a1,s0,-81 1f8: 4501 li a0,0 1fa: 00000097 auipc ra,0x0 1fe: 1a0080e7 jalr 416(ra) # 39a <read> if(cc < 1) 202: 00a05e63 blez a0,21e <gets+0x56> buf[i++] = c; 206: faf44783 lbu a5,-81(s0) 20a: 00f90023 sb a5,0(s2) if(c == '\n' || c == '\r') 20e: 01578763 beq a5,s5,21c <gets+0x54> 212: 0905 addi s2,s2,1 214: fd679be3 bne a5,s6,1ea <gets+0x22> for(i=0; i+1 < max; ){ 218: 89a6 mv s3,s1 21a: a011 j 21e <gets+0x56> 21c: 89a6 mv s3,s1 break; } buf[i] = '\0'; 21e: 99de add s3,s3,s7 220: 00098023 sb zero,0(s3) return buf; } 224: 855e mv a0,s7 226: 60e6 ld ra,88(sp) 228: 6446 ld s0,80(sp) 22a: 64a6 ld s1,72(sp) 22c: 6906 ld s2,64(sp) 22e: 79e2 ld s3,56(sp) 230: 7a42 ld s4,48(sp) 232: 7aa2 ld s5,40(sp) 234: 7b02 ld s6,32(sp) 236: 6be2 ld s7,24(sp) 238: 6125 addi sp,sp,96 23a: 8082 ret 000000000000023c <stat>: int stat(const char *n, struct stat *st) { 23c: 1101 addi sp,sp,-32 23e: ec06 sd ra,24(sp) 240: e822 sd s0,16(sp) 242: e426 sd s1,8(sp) 244: e04a sd s2,0(sp) 246: 1000 addi s0,sp,32 248: 892e mv s2,a1 int fd; int r; fd = open(n, O_RDONLY); 24a: 4581 li a1,0 24c: 00000097 auipc ra,0x0 250: 176080e7 jalr 374(ra) # 3c2 <open> if(fd < 0) 254: 02054563 bltz a0,27e <stat+0x42> 258: 84aa mv s1,a0 return -1; r = fstat(fd, st); 25a: 85ca mv a1,s2 25c: 00000097 auipc ra,0x0 260: 17e080e7 jalr 382(ra) # 3da <fstat> 264: 892a mv s2,a0 close(fd); 266: 8526 mv a0,s1 268: 00000097 auipc ra,0x0 26c: 142080e7 jalr 322(ra) # 3aa <close> return r; } 270: 854a mv a0,s2 272: 60e2 ld ra,24(sp) 274: 6442 ld s0,16(sp) 276: 64a2 ld s1,8(sp) 278: 6902 ld s2,0(sp) 27a: 6105 addi sp,sp,32 27c: 8082 ret return -1; 27e: 597d li s2,-1 280: bfc5 j 270 <stat+0x34> 0000000000000282 <atoi>: int atoi(const char *s) { 282: 1141 addi sp,sp,-16 284: e422 sd s0,8(sp) 286: 0800 addi s0,sp,16 int n; n = 0; while('0' <= *s && *s <= '9') 288: 00054603 lbu a2,0(a0) 28c: fd06079b addiw a5,a2,-48 290: 0ff7f793 andi a5,a5,255 294: 4725 li a4,9 296: 02f76963 bltu a4,a5,2c8 <atoi+0x46> 29a: 86aa mv a3,a0 n = 0; 29c: 4501 li a0,0 while('0' <= *s && *s <= '9') 29e: 45a5 li a1,9 n = n*10 + *s++ - '0'; 2a0: 0685 addi a3,a3,1 2a2: 0025179b slliw a5,a0,0x2 2a6: 9fa9 addw a5,a5,a0 2a8: 0017979b slliw a5,a5,0x1 2ac: 9fb1 addw a5,a5,a2 2ae: fd07851b addiw a0,a5,-48 while('0' <= *s && *s <= '9') 2b2: 0006c603 lbu a2,0(a3) 2b6: fd06071b addiw a4,a2,-48 2ba: 0ff77713 andi a4,a4,255 2be: fee5f1e3 bgeu a1,a4,2a0 <atoi+0x1e> return n; } 2c2: 6422 ld s0,8(sp) 2c4: 0141 addi sp,sp,16 2c6: 8082 ret n = 0; 2c8: 4501 li a0,0 2ca: bfe5 j 2c2 <atoi+0x40> 00000000000002cc <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 2cc: 1141 addi sp,sp,-16 2ce: e422 sd s0,8(sp) 2d0: 0800 addi s0,sp,16 char *dst; const char *src; dst = vdst; src = vsrc; if (src > dst) { 2d2: 02b57663 bgeu a0,a1,2fe <memmove+0x32> while(n-- > 0) 2d6: 02c05163 blez a2,2f8 <memmove+0x2c> 2da: fff6079b addiw a5,a2,-1 2de: 1782 slli a5,a5,0x20 2e0: 9381 srli a5,a5,0x20 2e2: 0785 addi a5,a5,1 2e4: 97aa add a5,a5,a0 dst = vdst; 2e6: 872a mv a4,a0 *dst++ = *src++; 2e8: 0585 addi a1,a1,1 2ea: 0705 addi a4,a4,1 2ec: fff5c683 lbu a3,-1(a1) 2f0: fed70fa3 sb a3,-1(a4) while(n-- > 0) 2f4: fee79ae3 bne a5,a4,2e8 <memmove+0x1c> src += n; while(n-- > 0) *--dst = *--src; } return vdst; } 2f8: 6422 ld s0,8(sp) 2fa: 0141 addi sp,sp,16 2fc: 8082 ret dst += n; 2fe: 00c50733 add a4,a0,a2 src += n; 302: 95b2 add a1,a1,a2 while(n-- > 0) 304: fec05ae3 blez a2,2f8 <memmove+0x2c> 308: fff6079b addiw a5,a2,-1 30c: 1782 slli a5,a5,0x20 30e: 9381 srli a5,a5,0x20 310: fff7c793 not a5,a5 314: 97ba add a5,a5,a4 *--dst = *--src; 316: 15fd addi a1,a1,-1 318: 177d addi a4,a4,-1 31a: 0005c683 lbu a3,0(a1) 31e: 00d70023 sb a3,0(a4) while(n-- > 0) 322: fee79ae3 bne a5,a4,316 <memmove+0x4a> 326: bfc9 j 2f8 <memmove+0x2c> 0000000000000328 <memcmp>: int memcmp(const void *s1, const void *s2, uint n) { 328: 1141 addi sp,sp,-16 32a: e422 sd s0,8(sp) 32c: 0800 addi s0,sp,16 const char *p1 = s1, *p2 = s2; while (n-- > 0) { 32e: ca05 beqz a2,35e <memcmp+0x36> 330: fff6069b addiw a3,a2,-1 334: 1682 slli a3,a3,0x20 336: 9281 srli a3,a3,0x20 338: 0685 addi a3,a3,1 33a: 96aa add a3,a3,a0 if (*p1 != *p2) { 33c: 00054783 lbu a5,0(a0) 340: 0005c703 lbu a4,0(a1) 344: 00e79863 bne a5,a4,354 <memcmp+0x2c> return *p1 - *p2; } p1++; 348: 0505 addi a0,a0,1 p2++; 34a: 0585 addi a1,a1,1 while (n-- > 0) { 34c: fed518e3 bne a0,a3,33c <memcmp+0x14> } return 0; 350: 4501 li a0,0 352: a019 j 358 <memcmp+0x30> return *p1 - *p2; 354: 40e7853b subw a0,a5,a4 } 358: 6422 ld s0,8(sp) 35a: 0141 addi sp,sp,16 35c: 8082 ret return 0; 35e: 4501 li a0,0 360: bfe5 j 358 <memcmp+0x30> 0000000000000362 <memcpy>: void * memcpy(void *dst, const void *src, uint n) { 362: 1141 addi sp,sp,-16 364: e406 sd ra,8(sp) 366: e022 sd s0,0(sp) 368: 0800 addi s0,sp,16 return memmove(dst, src, n); 36a: 00000097 auipc ra,0x0 36e: f62080e7 jalr -158(ra) # 2cc <memmove> } 372: 60a2 ld ra,8(sp) 374: 6402 ld s0,0(sp) 376: 0141 addi sp,sp,16 378: 8082 ret 000000000000037a <fork>: # generated by usys.pl - do not edit #include "kernel/syscall.h" .global fork fork: li a7, SYS_fork 37a: 4885 li a7,1 ecall 37c: 00000073 ecall ret 380: 8082 ret 0000000000000382 <exit>: .global exit exit: li a7, SYS_exit 382: 4889 li a7,2 ecall 384: 00000073 ecall ret 388: 8082 ret 000000000000038a <wait>: .global wait wait: li a7, SYS_wait 38a: 488d li a7,3 ecall 38c: 00000073 ecall ret 390: 8082 ret 0000000000000392 <pipe>: .global pipe pipe: li a7, SYS_pipe 392: 4891 li a7,4 ecall 394: 00000073 ecall ret 398: 8082 ret 000000000000039a <read>: .global read read: li a7, SYS_read 39a: 4895 li a7,5 ecall 39c: 00000073 ecall ret 3a0: 8082 ret 00000000000003a2 <write>: .global write write: li a7, SYS_write 3a2: 48c1 li a7,16 ecall 3a4: 00000073 ecall ret 3a8: 8082 ret 00000000000003aa <close>: .global close close: li a7, SYS_close 3aa: 48d5 li a7,21 ecall 3ac: 00000073 ecall ret 3b0: 8082 ret 00000000000003b2 <kill>: .global kill kill: li a7, SYS_kill 3b2: 4899 li a7,6 ecall 3b4: 00000073 ecall ret 3b8: 8082 ret 00000000000003ba <exec>: .global exec exec: li a7, SYS_exec 3ba: 489d li a7,7 ecall 3bc: 00000073 ecall ret 3c0: 8082 ret 00000000000003c2 <open>: .global open open: li a7, SYS_open 3c2: 48bd li a7,15 ecall 3c4: 00000073 ecall ret 3c8: 8082 ret 00000000000003ca <mknod>: .global mknod mknod: li a7, SYS_mknod 3ca: 48c5 li a7,17 ecall 3cc: 00000073 ecall ret 3d0: 8082 ret 00000000000003d2 <unlink>: .global unlink unlink: li a7, SYS_unlink 3d2: 48c9 li a7,18 ecall 3d4: 00000073 ecall ret 3d8: 8082 ret 00000000000003da <fstat>: .global fstat fstat: li a7, SYS_fstat 3da: 48a1 li a7,8 ecall 3dc: 00000073 ecall ret 3e0: 8082 ret 00000000000003e2 <link>: .global link link: li a7, SYS_link 3e2: 48cd li a7,19 ecall 3e4: 00000073 ecall ret 3e8: 8082 ret 00000000000003ea <mkdir>: .global mkdir mkdir: li a7, SYS_mkdir 3ea: 48d1 li a7,20 ecall 3ec: 00000073 ecall ret 3f0: 8082 ret 00000000000003f2 <chdir>: .global chdir chdir: li a7, SYS_chdir 3f2: 48a5 li a7,9 ecall 3f4: 00000073 ecall ret 3f8: 8082 ret 00000000000003fa <dup>: .global dup dup: li a7, SYS_dup 3fa: 48a9 li a7,10 ecall 3fc: 00000073 ecall ret 400: 8082 ret 0000000000000402 <getpid>: .global getpid getpid: li a7, SYS_getpid 402: 48ad li a7,11 ecall 404: 00000073 ecall ret 408: 8082 ret 000000000000040a <sbrk>: .global sbrk sbrk: li a7, SYS_sbrk 40a: 48b1 li a7,12 ecall 40c: 00000073 ecall ret 410: 8082 ret 0000000000000412 <sleep>: .global sleep sleep: li a7, SYS_sleep 412: 48b5 li a7,13 ecall 414: 00000073 ecall ret 418: 8082 ret 000000000000041a <uptime>: .global uptime uptime: li a7, SYS_uptime 41a: 48b9 li a7,14 ecall 41c: 00000073 ecall ret 420: 8082 ret 0000000000000422 <ntas>: .global ntas ntas: li a7, SYS_ntas 422: 48d9 li a7,22 ecall 424: 00000073 ecall ret 428: 8082 ret 000000000000042a <putc>: static char digits[] = "0123456789ABCDEF"; static void putc(int fd, char c) { 42a: 1101 addi sp,sp,-32 42c: ec06 sd ra,24(sp) 42e: e822 sd s0,16(sp) 430: 1000 addi s0,sp,32 432: feb407a3 sb a1,-17(s0) write(fd, &c, 1); 436: 4605 li a2,1 438: fef40593 addi a1,s0,-17 43c: 00000097 auipc ra,0x0 440: f66080e7 jalr -154(ra) # 3a2 <write> } 444: 60e2 ld ra,24(sp) 446: 6442 ld s0,16(sp) 448: 6105 addi sp,sp,32 44a: 8082 ret 000000000000044c <printint>: static void printint(int fd, int xx, int base, int sgn) { 44c: 7139 addi sp,sp,-64 44e: fc06 sd ra,56(sp) 450: f822 sd s0,48(sp) 452: f426 sd s1,40(sp) 454: f04a sd s2,32(sp) 456: ec4e sd s3,24(sp) 458: 0080 addi s0,sp,64 45a: 84aa mv s1,a0 char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 45c: c299 beqz a3,462 <printint+0x16> 45e: 0805c863 bltz a1,4ee <printint+0xa2> neg = 1; x = -xx; } else { x = xx; 462: 2581 sext.w a1,a1 neg = 0; 464: 4881 li a7,0 466: fc040693 addi a3,s0,-64 } i = 0; 46a: 4701 li a4,0 do{ buf[i++] = digits[x % base]; 46c: 2601 sext.w a2,a2 46e: 00000517 auipc a0,0x0 472: 48250513 addi a0,a0,1154 # 8f0 <digits> 476: 883a mv a6,a4 478: 2705 addiw a4,a4,1 47a: 02c5f7bb remuw a5,a1,a2 47e: 1782 slli a5,a5,0x20 480: 9381 srli a5,a5,0x20 482: 97aa add a5,a5,a0 484: 0007c783 lbu a5,0(a5) 488: 00f68023 sb a5,0(a3) }while((x /= base) != 0); 48c: 0005879b sext.w a5,a1 490: 02c5d5bb divuw a1,a1,a2 494: 0685 addi a3,a3,1 496: fec7f0e3 bgeu a5,a2,476 <printint+0x2a> if(neg) 49a: 00088b63 beqz a7,4b0 <printint+0x64> buf[i++] = '-'; 49e: fd040793 addi a5,s0,-48 4a2: 973e add a4,a4,a5 4a4: 02d00793 li a5,45 4a8: fef70823 sb a5,-16(a4) 4ac: 0028071b addiw a4,a6,2 while(--i >= 0) 4b0: 02e05863 blez a4,4e0 <printint+0x94> 4b4: fc040793 addi a5,s0,-64 4b8: 00e78933 add s2,a5,a4 4bc: fff78993 addi s3,a5,-1 4c0: 99ba add s3,s3,a4 4c2: 377d addiw a4,a4,-1 4c4: 1702 slli a4,a4,0x20 4c6: 9301 srli a4,a4,0x20 4c8: 40e989b3 sub s3,s3,a4 putc(fd, buf[i]); 4cc: fff94583 lbu a1,-1(s2) 4d0: 8526 mv a0,s1 4d2: 00000097 auipc ra,0x0 4d6: f58080e7 jalr -168(ra) # 42a <putc> while(--i >= 0) 4da: 197d addi s2,s2,-1 4dc: ff3918e3 bne s2,s3,4cc <printint+0x80> } 4e0: 70e2 ld ra,56(sp) 4e2: 7442 ld s0,48(sp) 4e4: 74a2 ld s1,40(sp) 4e6: 7902 ld s2,32(sp) 4e8: 69e2 ld s3,24(sp) 4ea: 6121 addi sp,sp,64 4ec: 8082 ret x = -xx; 4ee: 40b005bb negw a1,a1 neg = 1; 4f2: 4885 li a7,1 x = -xx; 4f4: bf8d j 466 <printint+0x1a> 00000000000004f6 <vprintf>: } // Print to the given fd. Only understands %d, %x, %p, %s. void vprintf(int fd, const char *fmt, va_list ap) { 4f6: 7119 addi sp,sp,-128 4f8: fc86 sd ra,120(sp) 4fa: f8a2 sd s0,112(sp) 4fc: f4a6 sd s1,104(sp) 4fe: f0ca sd s2,96(sp) 500: ecce sd s3,88(sp) 502: e8d2 sd s4,80(sp) 504: e4d6 sd s5,72(sp) 506: e0da sd s6,64(sp) 508: fc5e sd s7,56(sp) 50a: f862 sd s8,48(sp) 50c: f466 sd s9,40(sp) 50e: f06a sd s10,32(sp) 510: ec6e sd s11,24(sp) 512: 0100 addi s0,sp,128 char *s; int c, i, state; state = 0; for(i = 0; fmt[i]; i++){ 514: 0005c903 lbu s2,0(a1) 518: 18090f63 beqz s2,6b6 <vprintf+0x1c0> 51c: 8aaa mv s5,a0 51e: 8b32 mv s6,a2 520: 00158493 addi s1,a1,1 state = 0; 524: 4981 li s3,0 if(c == '%'){ state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 526: 02500a13 li s4,37 if(c == 'd'){ 52a: 06400c13 li s8,100 printint(fd, va_arg(ap, int), 10, 1); } else if(c == 'l') { 52e: 06c00c93 li s9,108 printint(fd, va_arg(ap, uint64), 10, 0); } else if(c == 'x') { 532: 07800d13 li s10,120 printint(fd, va_arg(ap, int), 16, 0); } else if(c == 'p') { 536: 07000d93 li s11,112 putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]); 53a: 00000b97 auipc s7,0x0 53e: 3b6b8b93 addi s7,s7,950 # 8f0 <digits> 542: a839 j 560 <vprintf+0x6a> putc(fd, c); 544: 85ca mv a1,s2 546: 8556 mv a0,s5 548: 00000097 auipc ra,0x0 54c: ee2080e7 jalr -286(ra) # 42a <putc> 550: a019 j 556 <vprintf+0x60> } else if(state == '%'){ 552: 01498f63 beq s3,s4,570 <vprintf+0x7a> for(i = 0; fmt[i]; i++){ 556: 0485 addi s1,s1,1 558: fff4c903 lbu s2,-1(s1) 55c: 14090d63 beqz s2,6b6 <vprintf+0x1c0> c = fmt[i] & 0xff; 560: 0009079b sext.w a5,s2 if(state == 0){ 564: fe0997e3 bnez s3,552 <vprintf+0x5c> if(c == '%'){ 568: fd479ee3 bne a5,s4,544 <vprintf+0x4e> state = '%'; 56c: 89be mv s3,a5 56e: b7e5 j 556 <vprintf+0x60> if(c == 'd'){ 570: 05878063 beq a5,s8,5b0 <vprintf+0xba> } else if(c == 'l') { 574: 05978c63 beq a5,s9,5cc <vprintf+0xd6> } else if(c == 'x') { 578: 07a78863 beq a5,s10,5e8 <vprintf+0xf2> } else if(c == 'p') { 57c: 09b78463 beq a5,s11,604 <vprintf+0x10e> printptr(fd, va_arg(ap, uint64)); } else if(c == 's'){ 580: 07300713 li a4,115 584: 0ce78663 beq a5,a4,650 <vprintf+0x15a> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 588: 06300713 li a4,99 58c: 0ee78e63 beq a5,a4,688 <vprintf+0x192> putc(fd, va_arg(ap, uint)); } else if(c == '%'){ 590: 11478863 beq a5,s4,6a0 <vprintf+0x1aa> putc(fd, c); } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 594: 85d2 mv a1,s4 596: 8556 mv a0,s5 598: 00000097 auipc ra,0x0 59c: e92080e7 jalr -366(ra) # 42a <putc> putc(fd, c); 5a0: 85ca mv a1,s2 5a2: 8556 mv a0,s5 5a4: 00000097 auipc ra,0x0 5a8: e86080e7 jalr -378(ra) # 42a <putc> } state = 0; 5ac: 4981 li s3,0 5ae: b765 j 556 <vprintf+0x60> printint(fd, va_arg(ap, int), 10, 1); 5b0: 008b0913 addi s2,s6,8 5b4: 4685 li a3,1 5b6: 4629 li a2,10 5b8: 000b2583 lw a1,0(s6) 5bc: 8556 mv a0,s5 5be: 00000097 auipc ra,0x0 5c2: e8e080e7 jalr -370(ra) # 44c <printint> 5c6: 8b4a mv s6,s2 state = 0; 5c8: 4981 li s3,0 5ca: b771 j 556 <vprintf+0x60> printint(fd, va_arg(ap, uint64), 10, 0); 5cc: 008b0913 addi s2,s6,8 5d0: 4681 li a3,0 5d2: 4629 li a2,10 5d4: 000b2583 lw a1,0(s6) 5d8: 8556 mv a0,s5 5da: 00000097 auipc ra,0x0 5de: e72080e7 jalr -398(ra) # 44c <printint> 5e2: 8b4a mv s6,s2 state = 0; 5e4: 4981 li s3,0 5e6: bf85 j 556 <vprintf+0x60> printint(fd, va_arg(ap, int), 16, 0); 5e8: 008b0913 addi s2,s6,8 5ec: 4681 li a3,0 5ee: 4641 li a2,16 5f0: 000b2583 lw a1,0(s6) 5f4: 8556 mv a0,s5 5f6: 00000097 auipc ra,0x0 5fa: e56080e7 jalr -426(ra) # 44c <printint> 5fe: 8b4a mv s6,s2 state = 0; 600: 4981 li s3,0 602: bf91 j 556 <vprintf+0x60> printptr(fd, va_arg(ap, uint64)); 604: 008b0793 addi a5,s6,8 608: f8f43423 sd a5,-120(s0) 60c: 000b3983 ld s3,0(s6) putc(fd, '0'); 610: 03000593 li a1,48 614: 8556 mv a0,s5 616: 00000097 auipc ra,0x0 61a: e14080e7 jalr -492(ra) # 42a <putc> putc(fd, 'x'); 61e: 85ea mv a1,s10 620: 8556 mv a0,s5 622: 00000097 auipc ra,0x0 626: e08080e7 jalr -504(ra) # 42a <putc> 62a: 4941 li s2,16 putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]); 62c: 03c9d793 srli a5,s3,0x3c 630: 97de add a5,a5,s7 632: 0007c583 lbu a1,0(a5) 636: 8556 mv a0,s5 638: 00000097 auipc ra,0x0 63c: df2080e7 jalr -526(ra) # 42a <putc> for (i = 0; i < (sizeof(uint64) * 2); i++, x <<= 4) 640: 0992 slli s3,s3,0x4 642: 397d addiw s2,s2,-1 644: fe0914e3 bnez s2,62c <vprintf+0x136> printptr(fd, va_arg(ap, uint64)); 648: f8843b03 ld s6,-120(s0) state = 0; 64c: 4981 li s3,0 64e: b721 j 556 <vprintf+0x60> s = va_arg(ap, char*); 650: 008b0993 addi s3,s6,8 654: 000b3903 ld s2,0(s6) if(s == 0) 658: 02090163 beqz s2,67a <vprintf+0x184> while(*s != 0){ 65c: 00094583 lbu a1,0(s2) 660: c9a1 beqz a1,6b0 <vprintf+0x1ba> putc(fd, *s); 662: 8556 mv a0,s5 664: 00000097 auipc ra,0x0 668: dc6080e7 jalr -570(ra) # 42a <putc> s++; 66c: 0905 addi s2,s2,1 while(*s != 0){ 66e: 00094583 lbu a1,0(s2) 672: f9e5 bnez a1,662 <vprintf+0x16c> s = va_arg(ap, char*); 674: 8b4e mv s6,s3 state = 0; 676: 4981 li s3,0 678: bdf9 j 556 <vprintf+0x60> s = "(null)"; 67a: 00000917 auipc s2,0x0 67e: 26e90913 addi s2,s2,622 # 8e8 <malloc+0x128> while(*s != 0){ 682: 02800593 li a1,40 686: bff1 j 662 <vprintf+0x16c> putc(fd, va_arg(ap, uint)); 688: 008b0913 addi s2,s6,8 68c: 000b4583 lbu a1,0(s6) 690: 8556 mv a0,s5 692: 00000097 auipc ra,0x0 696: d98080e7 jalr -616(ra) # 42a <putc> 69a: 8b4a mv s6,s2 state = 0; 69c: 4981 li s3,0 69e: bd65 j 556 <vprintf+0x60> putc(fd, c); 6a0: 85d2 mv a1,s4 6a2: 8556 mv a0,s5 6a4: 00000097 auipc ra,0x0 6a8: d86080e7 jalr -634(ra) # 42a <putc> state = 0; 6ac: 4981 li s3,0 6ae: b565 j 556 <vprintf+0x60> s = va_arg(ap, char*); 6b0: 8b4e mv s6,s3 state = 0; 6b2: 4981 li s3,0 6b4: b54d j 556 <vprintf+0x60> } } } 6b6: 70e6 ld ra,120(sp) 6b8: 7446 ld s0,112(sp) 6ba: 74a6 ld s1,104(sp) 6bc: 7906 ld s2,96(sp) 6be: 69e6 ld s3,88(sp) 6c0: 6a46 ld s4,80(sp) 6c2: 6aa6 ld s5,72(sp) 6c4: 6b06 ld s6,64(sp) 6c6: 7be2 ld s7,56(sp) 6c8: 7c42 ld s8,48(sp) 6ca: 7ca2 ld s9,40(sp) 6cc: 7d02 ld s10,32(sp) 6ce: 6de2 ld s11,24(sp) 6d0: 6109 addi sp,sp,128 6d2: 8082 ret 00000000000006d4 <fprintf>: void fprintf(int fd, const char *fmt, ...) { 6d4: 715d addi sp,sp,-80 6d6: ec06 sd ra,24(sp) 6d8: e822 sd s0,16(sp) 6da: 1000 addi s0,sp,32 6dc: e010 sd a2,0(s0) 6de: e414 sd a3,8(s0) 6e0: e818 sd a4,16(s0) 6e2: ec1c sd a5,24(s0) 6e4: 03043023 sd a6,32(s0) 6e8: 03143423 sd a7,40(s0) va_list ap; va_start(ap, fmt); 6ec: fe843423 sd s0,-24(s0) vprintf(fd, fmt, ap); 6f0: 8622 mv a2,s0 6f2: 00000097 auipc ra,0x0 6f6: e04080e7 jalr -508(ra) # 4f6 <vprintf> } 6fa: 60e2 ld ra,24(sp) 6fc: 6442 ld s0,16(sp) 6fe: 6161 addi sp,sp,80 700: 8082 ret 0000000000000702 <printf>: void printf(const char *fmt, ...) { 702: 711d addi sp,sp,-96 704: ec06 sd ra,24(sp) 706: e822 sd s0,16(sp) 708: 1000 addi s0,sp,32 70a: e40c sd a1,8(s0) 70c: e810 sd a2,16(s0) 70e: ec14 sd a3,24(s0) 710: f018 sd a4,32(s0) 712: f41c sd a5,40(s0) 714: 03043823 sd a6,48(s0) 718: 03143c23 sd a7,56(s0) va_list ap; va_start(ap, fmt); 71c: 00840613 addi a2,s0,8 720: fec43423 sd a2,-24(s0) vprintf(1, fmt, ap); 724: 85aa mv a1,a0 726: 4505 li a0,1 728: 00000097 auipc ra,0x0 72c: dce080e7 jalr -562(ra) # 4f6 <vprintf> } 730: 60e2 ld ra,24(sp) 732: 6442 ld s0,16(sp) 734: 6125 addi sp,sp,96 736: 8082 ret 0000000000000738 <free>: static Header base; static Header *freep; void free(void *ap) { 738: 1141 addi sp,sp,-16 73a: e422 sd s0,8(sp) 73c: 0800 addi s0,sp,16 Header *bp, *p; bp = (Header*)ap - 1; 73e: ff050693 addi a3,a0,-16 for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 742: 00000797 auipc a5,0x0 746: 1c67b783 ld a5,454(a5) # 908 <freep> 74a: a805 j 77a <free+0x42> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ bp->s.size += p->s.ptr->s.size; 74c: 4618 lw a4,8(a2) 74e: 9db9 addw a1,a1,a4 750: feb52c23 sw a1,-8(a0) bp->s.ptr = p->s.ptr->s.ptr; 754: 6398 ld a4,0(a5) 756: 6318 ld a4,0(a4) 758: fee53823 sd a4,-16(a0) 75c: a091 j 7a0 <free+0x68> } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ p->s.size += bp->s.size; 75e: ff852703 lw a4,-8(a0) 762: 9e39 addw a2,a2,a4 764: c790 sw a2,8(a5) p->s.ptr = bp->s.ptr; 766: ff053703 ld a4,-16(a0) 76a: e398 sd a4,0(a5) 76c: a099 j 7b2 <free+0x7a> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 76e: 6398 ld a4,0(a5) 770: 00e7e463 bltu a5,a4,778 <free+0x40> 774: 00e6ea63 bltu a3,a4,788 <free+0x50> { 778: 87ba mv a5,a4 for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 77a: fed7fae3 bgeu a5,a3,76e <free+0x36> 77e: 6398 ld a4,0(a5) 780: 00e6e463 bltu a3,a4,788 <free+0x50> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 784: fee7eae3 bltu a5,a4,778 <free+0x40> if(bp + bp->s.size == p->s.ptr){ 788: ff852583 lw a1,-8(a0) 78c: 6390 ld a2,0(a5) 78e: 02059713 slli a4,a1,0x20 792: 9301 srli a4,a4,0x20 794: 0712 slli a4,a4,0x4 796: 9736 add a4,a4,a3 798: fae60ae3 beq a2,a4,74c <free+0x14> bp->s.ptr = p->s.ptr; 79c: fec53823 sd a2,-16(a0) if(p + p->s.size == bp){ 7a0: 4790 lw a2,8(a5) 7a2: 02061713 slli a4,a2,0x20 7a6: 9301 srli a4,a4,0x20 7a8: 0712 slli a4,a4,0x4 7aa: 973e add a4,a4,a5 7ac: fae689e3 beq a3,a4,75e <free+0x26> } else p->s.ptr = bp; 7b0: e394 sd a3,0(a5) freep = p; 7b2: 00000717 auipc a4,0x0 7b6: 14f73b23 sd a5,342(a4) # 908 <freep> } 7ba: 6422 ld s0,8(sp) 7bc: 0141 addi sp,sp,16 7be: 8082 ret 00000000000007c0 <malloc>: return freep; } void* malloc(uint nbytes) { 7c0: 7139 addi sp,sp,-64 7c2: fc06 sd ra,56(sp) 7c4: f822 sd s0,48(sp) 7c6: f426 sd s1,40(sp) 7c8: f04a sd s2,32(sp) 7ca: ec4e sd s3,24(sp) 7cc: e852 sd s4,16(sp) 7ce: e456 sd s5,8(sp) 7d0: e05a sd s6,0(sp) 7d2: 0080 addi s0,sp,64 Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 7d4: 02051493 slli s1,a0,0x20 7d8: 9081 srli s1,s1,0x20 7da: 04bd addi s1,s1,15 7dc: 8091 srli s1,s1,0x4 7de: 0014899b addiw s3,s1,1 7e2: 0485 addi s1,s1,1 if((prevp = freep) == 0){ 7e4: 00000517 auipc a0,0x0 7e8: 12453503 ld a0,292(a0) # 908 <freep> 7ec: c515 beqz a0,818 <malloc+0x58> base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 7ee: 611c ld a5,0(a0) if(p->s.size >= nunits){ 7f0: 4798 lw a4,8(a5) 7f2: 02977f63 bgeu a4,s1,830 <malloc+0x70> 7f6: 8a4e mv s4,s3 7f8: 0009871b sext.w a4,s3 7fc: 6685 lui a3,0x1 7fe: 00d77363 bgeu a4,a3,804 <malloc+0x44> 802: 6a05 lui s4,0x1 804: 000a0b1b sext.w s6,s4 p = sbrk(nu * sizeof(Header)); 808: 004a1a1b slliw s4,s4,0x4 p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 80c: 00000917 auipc s2,0x0 810: 0fc90913 addi s2,s2,252 # 908 <freep> if(p == (char*)-1) 814: 5afd li s5,-1 816: a88d j 888 <malloc+0xc8> base.s.ptr = freep = prevp = &base; 818: 00000797 auipc a5,0x0 81c: 0f878793 addi a5,a5,248 # 910 <base> 820: 00000717 auipc a4,0x0 824: 0ef73423 sd a5,232(a4) # 908 <freep> 828: e39c sd a5,0(a5) base.s.size = 0; 82a: 0007a423 sw zero,8(a5) if(p->s.size >= nunits){ 82e: b7e1 j 7f6 <malloc+0x36> if(p->s.size == nunits) 830: 02e48b63 beq s1,a4,866 <malloc+0xa6> p->s.size -= nunits; 834: 4137073b subw a4,a4,s3 838: c798 sw a4,8(a5) p += p->s.size; 83a: 1702 slli a4,a4,0x20 83c: 9301 srli a4,a4,0x20 83e: 0712 slli a4,a4,0x4 840: 97ba add a5,a5,a4 p->s.size = nunits; 842: 0137a423 sw s3,8(a5) freep = prevp; 846: 00000717 auipc a4,0x0 84a: 0ca73123 sd a0,194(a4) # 908 <freep> return (void*)(p + 1); 84e: 01078513 addi a0,a5,16 if((p = morecore(nunits)) == 0) return 0; } } 852: 70e2 ld ra,56(sp) 854: 7442 ld s0,48(sp) 856: 74a2 ld s1,40(sp) 858: 7902 ld s2,32(sp) 85a: 69e2 ld s3,24(sp) 85c: 6a42 ld s4,16(sp) 85e: 6aa2 ld s5,8(sp) 860: 6b02 ld s6,0(sp) 862: 6121 addi sp,sp,64 864: 8082 ret prevp->s.ptr = p->s.ptr; 866: 6398 ld a4,0(a5) 868: e118 sd a4,0(a0) 86a: bff1 j 846 <malloc+0x86> hp->s.size = nu; 86c: 01652423 sw s6,8(a0) free((void*)(hp + 1)); 870: 0541 addi a0,a0,16 872: 00000097 auipc ra,0x0 876: ec6080e7 jalr -314(ra) # 738 <free> return freep; 87a: 00093503 ld a0,0(s2) if((p = morecore(nunits)) == 0) 87e: d971 beqz a0,852 <malloc+0x92> for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 880: 611c ld a5,0(a0) if(p->s.size >= nunits){ 882: 4798 lw a4,8(a5) 884: fa9776e3 bgeu a4,s1,830 <malloc+0x70> if(p == freep) 888: 00093703 ld a4,0(s2) 88c: 853e mv a0,a5 88e: fef719e3 bne a4,a5,880 <malloc+0xc0> p = sbrk(nu * sizeof(Header)); 892: 8552 mv a0,s4 894: 00000097 auipc ra,0x0 898: b76080e7 jalr -1162(ra) # 40a <sbrk> if(p == (char*)-1) 89c: fd5518e3 bne a0,s5,86c <malloc+0xac> return 0; 8a0: 4501 li a0,0 8a2: bf45 j 852 <malloc+0x92>
29.789548
62
0.462923
1535dbb6b67797581279cfb288c819eac1c727a4
17,792
asm
Assembly
v2.0/source/msdos/xenix2.asm
neozeed/MS-DOS
1cb8b96cd347b7eb150922eeb4924ec92911dc31
[ "MIT" ]
7
2018-09-29T16:03:48.000Z
2021-04-06T20:08:57.000Z
v2.0/source/msdos/xenix2.asm
neozeed/MS-DOS
1cb8b96cd347b7eb150922eeb4924ec92911dc31
[ "MIT" ]
null
null
null
v2.0/source/msdos/xenix2.asm
neozeed/MS-DOS
1cb8b96cd347b7eb150922eeb4924ec92911dc31
[ "MIT" ]
null
null
null
; ; xenix file calls for MSDOS ; INCLUDE DOSSEG.ASM IFNDEF KANJI KANJI EQU 0 ;FALSE ENDIF CODE SEGMENT BYTE PUBLIC 'CODE' ASSUME SS:DOSGROUP,CS:DOSGROUP .xlist .xcref INCLUDE DOSSYM.ASM INCLUDE DEVSYM.ASM .cref .list TITLE XENIX - IO system to mimic UNIX NAME XENIX i_need NoSetDir,BYTE i_need CURDRV,BYTE i_need IOCALL,BYTE i_need IOMED,BYTE i_need IOSCNT,WORD i_need IOXAD,DWORD i_need DIRSTART,WORD i_need ATTRIB,BYTE i_need THISFCB,DWORD i_need AuxStack,BYTE i_need Creating,BYTE i_need ThisDRV,BYTE i_need NAME1,BYTE i_need LastEnt,WORD i_need ThisDPB,DWORD i_need EntLast,WORD i_need CurrentPDB,WORD i_need sft_addr,DWORD ; pointer to head of table i_need CURBUF,DWORD ; pointer to current buffer i_need DMAADD,DWORD ; pointer to current dma address BREAK <Local data> CODE ENDS DATA SEGMENT BYTE PUBLIC 'DATA' PushSave DW ? PushES DW ? PushBX DW ? xenix_count DW ? DATA ENDS CODE SEGMENT BYTE PUBLIC 'CODE' BREAK <get_sf_from_sfn - translate a sfn into sf pointer> ; ; get_sf_from_sfn ; input: AX has sfn (0 based) ; DS is DOSGROUP ; output: JNC <found> ; ES:DI is sf entry ; JC <error> ; ES,DI indeterminate ; procedure get_sf_from_sfn,NEAR ASSUME DS:DOSGROUP,ES:NOTHING PUSH AX ; we trash AX in process LES DI,[sft_addr] get_sfn_loop: CMP DI,-1 ; end of chain of tables? JZ get_sf_invalid ; I guess so... SUB AX,ES:[DI].sft_count ; chop number of entries in this table JL get_sf_gotten ; sfn is in this table LES DI,ES:[DI].sft_link ; step to next table JMP get_sfn_loop get_sf_gotten: ADD AX,ES:[DI].sft_count ; reset to index in this table PUSH BX MOV BX,SIZE sf_entry MUL BL ; number of bytes offset into table POP BX ADD AX,sft_table ; offset into sf table structure ADD DI,AX ; offset into memory CLC JMP SHORT get_sf_ret get_sf_jfn_invalid: get_sf_invalid: STC get_sf_jfn_ret: get_sf_ret: POP AX ; remember him? RET get_sf_from_sfn ENDP BREAK <get_sf_from_jfn - translate a jfn into sf pointer> ; ; get_sf_from_jfn ; input: BX is jfn 0 based ; DS is DOSGROUP ; output: JNC <found> ; ES:DI is sf entry ; JC <error> ; ES,DI is indeterminate ; procedure get_sf_from_jfn,NEAR ASSUME DS:DOSGROUP,ES:NOTHING PUSH AX ; save him invoke get_jfn_pointer JC get_sf_jfn_invalid MOV AL,ES:[DI] ; get sfn CMP AL,0FFh ; is it free? JZ get_sf_jfn_invalid ; yep... error XOR AH,AH invoke get_sf_from_sfn ; check this sfn out... JMP SHORT get_sf_jfn_ret ; condition codes are properly set get_sf_from_jfn ENDP BREAK <get_jfn_pointer - map a jfn into a pointer to jfn> ; ; get_jfn_pointer ; input: BX is jfn ; DS is DOSGROUP ; output: JNC <found> ; ES:DI is pointer to jfn ; JC <bad jfn> ; procedure Get_jfn_pointer,NEAR ASSUME DS:DOSGROUP,ES:NOTHING CMP BX,FilPerProc JAE get_jfn_bad MOV ES,[CurrentPDB] MOV DI,BX ADD DI,PDB_JFN_Table CLC RET get_jfn_bad: STC RET get_jfn_pointer ENDP BREAK <$Close - release a handle> ; ; Assembler usage: ; MOV BX, handle ; MOV AH, Close ; INT int_command ; ; Error return: ; AX = error_invalid_handle ; procedure $Close,NEAR ASSUME DS:NOTHING,ES:NOTHING context DS invoke get_jfn_pointer ; get jfn loc JNC close_jfn close_bad_handle: error error_invalid_handle close_jfn: MOV AL,BYTE PTR ES:[DI] CMP AL,0FFh JE close_bad_handle MOV BYTE PTR ES:[DI],0FFh; XOR AH,AH invoke get_sf_from_sfn JC close_bad_handle PUSH ES POP DS ASSUME DS:NOTHING DEC [DI].sf_ref_count ; no more reference LEA DX,[DI].sf_fcb ; ; need to restuff Attrib if we are closing a protected file ; TEST [DI.sf_fcb.fcb_DevID],devid_file_clean+devid_device JNZ close_ok PUSH WORD PTR [DI].sf_attr invoke MOVNAMENOSET POP BX MOV [Attrib],BL invoke FCB_CLOSE_INNER CMP AL,0FFh ; file not found error? JNZ close_ok error error_file_not_found close_ok: transfer SYS_RET_OK $Close ENDP BREAK <PushDMA, PopDMA, ptr_normalize - set up local dma and save old> ; PushDMA ; input: DS:DX is DMA ; output: DS:DX is normalized , ES:BX destroyed ; [DMAADD] is now set up to DS:DX ; old DMA is pushed procedure PushDMA,NEAR ASSUME DS:NOTHING,ES:NOTHING MOV PushES,ES MOV PushBX,BX POP PushSave LES BX,DWORD PTR [DMAADD] ; get old dma PUSH ES PUSH BX PUSH PushSave invoke ptr_normalize ; get new dma MOV WORD PTR [DMAADD],DX ; save IT! MOV WORD PTR [DMAADD+2],DS MOV ES,PushES MOV BX,PushBX RET PushDMA ENDP ; PopDMA ; input: old DMA under ret address on stack ; output: [DMAADD] set to old version and stack popped procedure PopDMA,NEAR ASSUME DS:NOTHING,ES:NOTHING POP PushSave POP WORD PTR [DMAADD] POP WORD PTR [DMAADD+2] PUSH PushSave RET PopDMA ENDP ; ptr_normalize ; input: DS:DX is a pointer ; output: DS:DX is normalized (DX < 10h) procedure ptr_normalize,NEAR PUSH CX ; T1 = CX PUSH DX ; T2 = DX MOV CL,4 SHR DX,CL ; DX = (DX >> 4) (using CX) MOV CX,DS ADD CX,DX MOV DS,CX ; DS = DS + DX (using CX) POP DX AND DX,0Fh ; DX = T2 & 0Fh POP CX ; CX = T1 ; PUSH AX ; PUSH DX ; MOV AX,DS ; PUSH CX ; MOV CL,4 ; SHR DX,CL ; get upper part of dx ; POP CX ; ADD AX,DX ; add into seg address ; MOV DS,AX ; POP DX ; AND DX,0Fh ; save low part ; POP AX RET ptr_normalize ENDP BREAK <$Read - Do file/device I/O> ; ; Assembler usage: ; LDS DX, buf ; MOV CX, count ; MOV BX, handle ; MOV AH, Read ; INT int_command ; AX has number of bytes read ; Errors: ; AX = read_invalid_handle ; = read_access_denied ; procedure $Read,NEAR ASSUME DS:NOTHING,ES:NOTHING invoke PushDMA CALL IO_setup JC IO_err CMP ES:[DI].sf_mode,open_for_write JNE read_setup IO_bad_mode: MOV AL,read_access_denied IO_err: invoke PopDMA transfer SYS_RET_ERR read_setup: invoke $FCB_RANDOM_READ_BLOCK ; do read IO_done: invoke get_user_stack ; get old frame MOV AX,[SI].user_CX ; get returned CX MOV CX,xenix_count MOV [SI].user_CX,CX ; stash our CX invoke PopDMA ; get old DMA transfer SYS_RET_OK $Read ENDP BREAK <$Write - Do file/device I/O> ; ; Assembler usage: ; LDS DX, buf ; MOV CX, count ; MOV BX, handle ; MOV AH, Write ; INT int_command ; AX has number of bytes written ; Errors: ; AX = write_invalid_handle ; = write_access_denied ; procedure $Write,NEAR ASSUME DS:NOTHING,ES:NOTHING invoke PushDMA CALL IO_setup JC IO_err CMP ES:[DI].sf_mode,open_for_read JE IO_bad_mode invoke $FCB_RANDOM_WRITE_BLOCK ; do write JMP IO_done $write ENDP IO_setup: ASSUME DS:NOTHING,ES:NOTHING context DS MOV xenix_count,CX invoke Get_sf_from_jfn ; ES:DI is sf pointer MOV AL,read_invalid_handle ;Assume an error MOV CX,xenix_count LEA DX,[DI].sf_fcb PUSH ES POP DS ASSUME DS:NOTHING RET BREAK <$LSEEK - set random record field> ; ; Assembler usage: ; MOV DX, offsetlow ; MOV CX, offsethigh ; MOV BX, handle ; MOV AL, method ; MOV AH, LSeek ; INT int_command ; DX:AX has the new location of the pointer ; Error returns: ; AX = error_invalid_handle ; = error_invalid_function procedure $LSEEK,NEAR ASSUME DS:NOTHING,ES:NOTHING CMP AL,3 JB lseek_get_sf error error_invalid_function lseek_get_sf: context DS invoke get_sf_from_jfn PUSH ES POP DS ASSUME DS:NOTHING JC lseek_bad ; ; don't seek device ; TEST [DI.sf_fcb+fcb_devid],devid_device JZ lseek_dispatch XOR AX,AX XOR DX,DX JMP SHORT lseek_ret lseek_dispatch: DEC AL JL lseek_beginning DEC AL JL lseek_current ; move from end of file ; first, get end of file XCHG AX,DX ; AX <- low XCHG DX,CX ; DX <- high ASSUME DS:NOTHING ADD AX,[DI+sf_fcb+fcb_FILSIZ] ADC DX,[DI+sf_fcb+fcb_FILSIZ+2] JMP SHORT lseek_ret lseek_beginning: XCHG AX,DX ; AX <- low XCHG DX,CX ; DX <- high lseek_ret: MOV WORD PTR [DI+sf_fcb+fcb_RR],AX MOV WORD PTR [DI+sf_fcb+fcb_RR+2],DX invoke get_user_stack MOV [SI.user_DX],DX MOV [SI.user_AX],AX transfer SYS_RET_OK lseek_current: ; ES:DI is pointer to sf... need to invoke set random record for place XCHG AX,DX ; AX <- low XCHG DX,CX ; DX <- high ADD AX,WORD PTR [DI+sf_fcb+fcb_RR] ADC DX,WORD PTR [DI+sf_fcb+fcb_RR+2] JMP lseek_ret lseek_bad: error error_invalid_handle $lseek ENDP BREAK <$IOCTL - return/set device dependent stuff> ; ; Assembler usage: ; MOV BX, Handle ; MOV DX, Data ; ; (or LDS DX,BUF ; MOV CX,COUNT) ; ; MOV AH, Ioctl ; MOV AL, Request ; INT 21h ; ; Error returns: ; AX = error_invalid_handle ; = error_invalid_function ; = error_invalid_data procedure $IOCTL,NEAR ASSUME DS:NOTHING,ES:NOTHING MOV SI,DS ;Stash DS for calls 2,3,4 and 5 context DS CMP AL,3 JA ioctl_check_block ;Block device PUSH DX invoke get_sf_from_jfn POP DX ;Restore DATA JNC ioctl_check_permissions ; have valid handle error error_invalid_handle ioctl_check_permissions: CMP AL,2 JAE ioctl_control_string CMP AL,0 MOV AL,BYTE PTR ES:[DI+sf_fcb+fcb_devid] JZ ioctl_read ; read the byte OR DH,DH JZ ioctl_check_device ; can I set with this data? error error_invalid_data ; no DH <> 0 ioctl_check_device: TEST AL,devid_ISDEV ; can I set this handle? JZ ioctl_bad_fun ; no, it is a file. MOV BYTE PTR ES:[DI+sf_fcb+fcb_devid],DL transfer SYS_RET_OK ioctl_read: XOR AH,AH TEST AL,devid_ISDEV ; Should I set high byte JZ ioctl_no_high ; no LES DI,DWORD PTR ES:[DI+sf_fcb+fcb_FIRCLUS] ;Get device pointer MOV AH,BYTE PTR ES:[DI.SDEVATT+1] ;Get high byte ioctl_no_high: invoke get_user_stack MOV DX,AX MOV [SI.user_DX],DX transfer SYS_RET_OK ioctl_control_string: TEST BYTE PTR ES:[DI+sf_fcb+fcb_devid],devid_ISDEV ; can I? JZ ioctl_bad_fun ; no, it is a file. LES DI,DWORD PTR ES:[DI+sf_fcb+fcb_FIRCLUS] ;Get device pointer XOR BL,BL ; Unit number of char dev = 0 JMP SHORT ioctl_do_string ioctl_check_block: DEC AL DEC AL ;4=2,5=3,6=4,7=5 CMP AL,3 JBE ioctl_get_dev MOV AH,1 SUB AL,4 ;6=0,7=1 JZ ioctl_get_status MOV AH,3 DEC AL JNZ ioctl_bad_fun ioctl_get_status: PUSH AX invoke GET_IO_FCB POP AX JC ioctl_acc_err invoke IOFUNC MOV AH,AL MOV AL,0FFH JNZ ioctl_status_ret INC AL ioctl_status_ret: transfer SYS_RET_OK ioctl_bad_fun: error error_invalid_function ioctl_acc_err: error error_access_denied ioctl_get_dev: PUSH CX PUSH DX PUSH AX PUSH SI ;DS in disguise MOV AL,BL ;Drive invoke GETTHISDRV JC ioctl_bad_drv invoke FATREAD ;"get" the drive MOV BL,ES:[BP.dpb_UNIT] ; Unit number LES DI,ES:[BP.dpb_driver_addr] CLC ;Make sure error jump not taken ioctl_bad_drv: POP SI POP AX POP DX POP CX JC ioctl_acc_err ioctl_do_string: TEST ES:[DI.SDEVATT],DEVIOCTL ;See if device accepts control JZ ioctl_bad_fun ;NO DEC AL DEC AL JZ ioctl_control_read MOV [IOCALL.REQFUNC],DEVWRIOCTL JMP SHORT ioctl_control_call ioctl_control_read: MOV [IOCALL.REQFUNC],DEVRDIOCTL ioctl_control_call: MOV AL,DRDWRHL MOV AH,BL ;Unit number MOV WORD PTR [IOCALL.REQLEN],AX XOR AX,AX MOV [IOCALL.REQSTAT],AX MOV [IOMED],AL MOV [IOSCNT],CX MOV WORD PTR [IOXAD],DX MOV WORD PTR [IOXAD+2],SI PUSH ES POP DS ASSUME DS:NOTHING MOV SI,DI ;DS:SI -> driver PUSH SS POP ES MOV BX,OFFSET DOSGROUP:IOCALL ;ES:BX -> Call header invoke DEVIOCALL2 MOV AX,[IOSCNT] ;Get actual bytes transferred transfer SYS_RET_OK $IOCTL ENDP BREAK <File_Times - modify write times on a handle> ; ; Assembler usage: ; MOV AH, FileTimes ; MOV AL, func ; MOV BX, handle ; ; if AL = 1 then then next two are mandatory ; MOV CX, time ; MOV DX, date ; INT 21h ; ; if AL = 0 then CX/DX has the last write time/date ; ; for the handle. ; ; Error returns: ; AX = error_invalid_function ; = error_invalid_handle ; procedure $File_times,near CMP AL,2 JB filetimes_ok error error_invalid_function filetimes_ok: PUSH SS POP DS CALL Get_sf_from_jfn JNC filetimes_disp error error_invalid_handle filetimes_disp: OR AL,AL JNZ filetimes_set MOV CX,ES:[DI.sf_fcb.fcb_FTIME] MOV DX,ES:[DI.sf_fcb.fcb_FDATE] invoke Get_user_stack MOV [SI.user_CX],CX MOV [SI.user_DX],DX transfer SYS_RET_OK filetimes_set: MOV ES:[DI.sf_fcb.fcb_FTIME],CX MOV ES:[DI.sf_fcb.fcb_FDATE],DX AND ES:[DI.sf_fcb.fcb_DEVID],NOT devid_file_clean transfer SYS_RET_OK $file_times ENDP do_ext CODE ENDS END
28.421725
79
0.49629
2490572af5d8c3f48c23fdd097893b0a26191310
808
asm
Assembly
programs/oeis/027/A027934.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/027/A027934.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/027/A027934.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A027934: a(0)=0, a(1)=1, a(2)=2; for n > 2, a(n) = 3*a(n-1) - a(n-2) - 2*a(n-3). ; 0,1,2,5,11,24,51,107,222,457,935,1904,3863,7815,15774,31781,63939,128488,257963,517523,1037630,2079441,4165647,8342240,16702191,33433039,66912446,133899917,267921227,536038872,1072395555,2145305339,4291442718,8584231705,17170641719,34344808016,68695318919,137399865303,274814660958,549653479733,1099346047635,2198755341256,4397613016667,8795391613475,17591051141246,35182535776929,70365772962591,140732680828352,281467197968607,562937367152287,1125879541831550,2251766862405149,4503546311079323,9007112987169720 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 cal $0,8466 ; a(n) = 2^n - Fibonacci(n+2). mov $2,$3 mov $4,$0 lpb $2 mov $1,$4 sub $2,1 lpe lpe lpb $5 sub $1,$4 mov $5,0 lpe
36.727273
513
0.731436
1e5e51fbe69c866e77410469c2a10227bf2c4e48
291
asm
Assembly
oeis/109/A109231.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/109/A109231.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/109/A109231.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A109231: a(n) = floor(n*cosh(1)). ; Submitted by Jamie Morken(s4) ; 1,3,4,6,7,9,10,12,13,15,16,18,20,21,23,24,26,27,29,30,32,33,35,37,38,40,41,43,44,46,47,49,50,52,54,55,57,58,60,61,63,64,66,67,69,70,72,74,75,77,78,80,81,83,84,86,87,89,91,92,94,95,97,98,100 add $0,1 mul $0,108 div $0,70
36.375
191
0.642612
d727f07f89900a5a2b5b3b7c072ccfac3b030263
13
asm
Assembly
asminator/Debug/test.asm
mgohde/MiniMicroII
28351912580956551041fe00ebcbd320562a617e
[ "BSD-2-Clause" ]
null
null
null
asminator/Debug/test.asm
mgohde/MiniMicroII
28351912580956551041fe00ebcbd320562a617e
[ "BSD-2-Clause" ]
null
null
null
asminator/Debug/test.asm
mgohde/MiniMicroII
28351912580956551041fe00ebcbd320562a617e
[ "BSD-2-Clause" ]
null
null
null
nop r1,r2,r3
6.5
12
0.692308
48ccab472595f893a934f0b8cd56a16000869f9a
827
asm
Assembly
oeis/142/A142809.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142809.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142809.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142809: Primes congruent to 11 mod 61. ; Submitted by Jon Maiga ; 11,499,743,1109,1231,1597,2207,2939,3061,3671,3793,4159,5501,5623,5867,6599,7331,8429,9161,9283,9649,10259,11113,12211,12577,12821,13187,13309,13553,14407,15017,15139,15383,15749,16481,16603,17579,18311,18433,19531,20507,20873,21727,22093,23557,23801,24533,25997,26119,26729,27583,27827,28559,30389,31121,32341,32707,33073,33317,34171,34537,34781,35879,37831,38197,40637,40759,41491,42101,42223,42467,42589,43321,44053,47591,47713,48079,49177,49787,50153,52837,53569,53813,54667,55399,56009,56131 mov $1,5 mov $2,$0 add $2,2 pow $2,2 lpb $2 sub $2,2 mov $3,$1 mul $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,61 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 mul $0,2 sub $0,121
34.458333
498
0.73156
b5ed02761b31e93d699a620ac5ef1da9217ae486
455
asm
Assembly
Assembly/backward.asm
Purbayan2014/Exploitation-Development
a64e996c45ed7540ae008795eb22804f2ee03841
[ "MIT" ]
null
null
null
Assembly/backward.asm
Purbayan2014/Exploitation-Development
a64e996c45ed7540ae008795eb22804f2ee03841
[ "MIT" ]
null
null
null
Assembly/backward.asm
Purbayan2014/Exploitation-Development
a64e996c45ed7540ae008795eb22804f2ee03841
[ "MIT" ]
null
null
null
;------------------------x64--------------------------------- .code main proc mov rax,2 mov rbx,3 mov rcx,4 ret main endp end ;---------------------x86----------------------------------- .386 .model flat .code main proc mov eax,2 mov ebx,3 mov ecx,4 ret main endp end main ;---------------------16bit----------------------------------- .386 .model flat .code main proc mov ax,2 mov bx,3 mov cx,4 ret main endp end main
11.375
62
0.397802
c2ec93a7ac74b28e464bb6254b2de3d516b55dd9
1,116
asm
Assembly
programs/oeis/047/A047525.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/047/A047525.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/047/A047525.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A047525: Numbers that are congruent to {0, 2, 7} mod 8. ; 0,2,7,8,10,15,16,18,23,24,26,31,32,34,39,40,42,47,48,50,55,56,58,63,64,66,71,72,74,79,80,82,87,88,90,95,96,98,103,104,106,111,112,114,119,120,122,127,128,130,135,136,138,143,144,146,151,152,154,159,160,162,167,168,170,175,176,178,183,184,186,191,192,194,199,200,202,207,208,210,215,216,218,223,224,226,231,232,234,239,240,242,247,248,250,255,256,258,263,264,266,271,272,274,279,280,282,287,288,290,295,296,298,303,304,306,311,312,314,319,320,322,327,328,330,335,336,338,343,344,346,351,352,354,359,360,362,367,368,370,375,376,378,383,384,386,391,392,394,399,400,402,407,408,410,415,416,418,423,424,426,431,432,434,439,440,442,447,448,450,455,456,458,463,464,466,471,472,474,479,480,482,487,488,490,495,496,498,503,504,506,511,512,514,519,520,522,527,528,530,535,536,538,543,544,546,551,552,554,559,560,562,567,568,570,575,576,578,583,584,586,591,592,594,599,600,602,607,608,610,615,616,618,623,624,626,631,632,634,639,640,642,647,648,650,655,656,658,663,664 mov $2,$0 lpb $0 add $1,3 trn $1,$0 trn $0,3 add $0,$1 add $2,1 lpe mul $2,2 add $1,$2
79.714286
959
0.71147
1083396772dfbe51b35fcbd90cbab05bdfcda78c
7,901
asm
Assembly
MSP430F541xA_MSP430F543xA_Code_Examples/Assembly_CCS/msp430x54xA_adc12_07.asm
sususweet/MSP430F541x-MSP430F543x-Code-Examples
183b45c1aea66c1e71f717c697159acc4261d9cd
[ "Apache-2.0" ]
null
null
null
MSP430F541xA_MSP430F543xA_Code_Examples/Assembly_CCS/msp430x54xA_adc12_07.asm
sususweet/MSP430F541x-MSP430F543x-Code-Examples
183b45c1aea66c1e71f717c697159acc4261d9cd
[ "Apache-2.0" ]
null
null
null
MSP430F541xA_MSP430F543xA_Code_Examples/Assembly_CCS/msp430x54xA_adc12_07.asm
sususweet/MSP430F541x-MSP430F543x-Code-Examples
183b45c1aea66c1e71f717c697159acc4261d9cd
[ "Apache-2.0" ]
null
null
null
; --COPYRIGHT--,BSD_EX ; Copyright (c) 2012, Texas Instruments Incorporated ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions ; are met: ; ; * Redistributions of source code must retain the above copyright ; notice, this list of conditions and the following disclaimer. ; ; * Redistributions in binary form must reproduce the above copyright ; notice, this list of conditions and the following disclaimer in the ; documentation and/or other materials provided with the distribution. ; ; * Neither the name of Texas Instruments Incorporated nor the names of ; its contributors may be used to endorse or promote products derived ; from this software without specific prior written permission. ; ; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, ; THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR ; PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR ; CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, ; EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, ; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; ; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, ; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR ; OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, ; EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ; ; ****************************************************************************** ; ; MSP430 CODE EXAMPLE DISCLAIMER ; ; MSP430 code examples are self-contained low-level programs that typically ; demonstrate a single peripheral function or device feature in a highly ; concise manner. For this the code may rely on the device's power-on default ; register values and settings such as the clock configuration and care must ; be taken when combining code from several examples to avoid potential side ; effects. Also see www.ti.com/grace for a GUI- and www.ti.com/msp430ware ; for an API functional library-approach to peripheral configuration. ; ; --/COPYRIGHT-- ;****************************************************************************** ; MSP430F543xA Demo - ADC12_A, Repeated Single Channel Conversions ; ; Description: This example shows how to perform repeated conversions on a ; single channel using "repeat-single-channel" mode. AVcc is used for the ; reference and repeated conversions are performed on Channel A0. Each ; conversion result is moved to an 8-element array called results[]. Test by ; applying a voltage to channel A0, then running. Open a watch window in ; debugger and view the results. Set Breakpoint1 in the index increment line ; to see the array value change sequentially and Breakpoint to see the entire ; array of conversion results in "results[]" for the specified Num_of_Results. ; This can run even in LPM4 mode as ADC has its own clock (MODOSC) ; ; MSP430F5438A ; ----------------- ; /|\| | ; | | | ; --|RST | ; | | ; Vin -->|P6.0/A0 | ; | | ; ; ; D. Dang ; Texas Instruments Inc. ; December 2009 ; Built with CCS Version: 4.0.2 ;****************************************************************************** .cdecls C,LIST,"msp430.h" ;------------------------------------------------------------------------------- .def RESET ; Export program entry-point to ; make it known to linker. ;------------------------------------------------------------------------------- ;------------------------------------------------------------------------------- .bss results,16 ;------------------------------------------------------------------------------- .global _main .text ; Assemble to Flash memory ;------------------------------------------------------------------------------- _main RESET mov.w #0x5C00,SP ; Initialize stackpointer mov.w #WDTPW + WDTHOLD,&WDTCTL; Stop WDT clr.w R4 ; Clear the array index bis.b #0x01,&P6SEL ; Enable A/D channel inputs mov.w #ADC12ON + ADC12MSC + ADC12SHT0_8,&ADC12CTL0 ; Turn on ADC12, set sampling time ; set multiple sample conversion mov.w #ADC12SHP + ADC12CONSEQ_2,&ADC12CTL1 ; Use sampling timer, set mode mov.w #0x01,&ADC12IE ; Enabled ADC12IFG.0 bis.w #ADC12ENC,&ADC12CTL0 ; Enable conversions bis.w #ADC12SC,&ADC12CTL0 ; Start conversion - sw trigger bis.w #LPM4 + GIE,SR ; Enter LPM0, enable interrupts nop ; Only for debugging purposes ;------------------------------------------------------------------------------- ADC12_ISR ;------------------------------------------------------------------------------- add.w &ADC12IV,PC ; Add offset to PC reti ; Vector 0: No interrupt reti ; Vector 2: ADC overflow reti ; Vector 4: ADC timing overflow jmp ADC12IFG0_HND ; Vector 6: ADC12IFG0 reti ; Vector 8: ADC12IFG1 reti ; Vector 10: ADC12IFG2 reti ; Vector 12: ADC12IFG3 reti ; Vector 14: ADC12IFG4 reti ; Vector 16: ADC12IFG5 reti ; Vector 18: ADC12IFG6 reti ; Vector 20: ADC12IFG7 reti ; Vector 22: ADC12IFG8 reti ; Vector 24: ADC12IFG9 reti ; Vector 26: ADC12IFG10 reti ; Vector 28: ADC12IFG11 reti ; Vector 30: ADC12IFG12 reti ; Vector 32: ADC12IFG13 reti ; Vector 34: ADC12IFG14 ADC12IFG0_HND rla.w R4 ; Index * 2 > indirect offset mov.w &ADC12MEM0,0x1C00(R4) ; Move A0 results, IFG is cleared rra.w R4 ; Indirect offset / 2 > index inc.w R4 ; Increment arr_index cmp.b #0x08,R4 ; Is arr_index < 8 ? jne exit_isr ; yes -> Jump to exit_isr clr R4 ; no -> Clear arr_index nop ; Set breakpoint here exit_isr reti ; Return from interrupt ;------------------------------------------------------------------------------- ; Interrupt Vectors ;------------------------------------------------------------------------------- .sect ".int55" ; ADC12 isr vector .short ADC12_ISR .sect ".reset" ; POR, ext. Reset .short RESET .end
54.116438
83
0.471712
d2f16a27674e43d58cda62bf8a4c201efbfe7844
597
asm
Assembly
oeis/161/A161745.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/161/A161745.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/161/A161745.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A161745: The subfactorial with index Fibonacci(n). ; Submitted by Christian Krause ; 1,0,0,1,2,44,14833,2290792932,18795307255050944540,108610077126170304674801654684367969729,4670745770631032719532167343578469593767847509478551181633606988413996494,6072937319478231872309290589396120030976689606115602163895597264208946560972536121418451229176157272858902035296297919927823920368164776 seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1. seq $0,166 ; Subfactorial or rencontres numbers, or derangements: number of permutations of n elements with no fixed points.
85.285714
303
0.837521
4f2849834bc59d9aac79f74294dd44bf482ec704
260
asm
Assembly
eng_mecat_bkp/vhdl_microcont/Lab01/prat1/orig.asm
Mutanne/hiworld
d4c536775ecdd948b6fa205cd43fb5f92c7496c5
[ "Unlicense" ]
null
null
null
eng_mecat_bkp/vhdl_microcont/Lab01/prat1/orig.asm
Mutanne/hiworld
d4c536775ecdd948b6fa205cd43fb5f92c7496c5
[ "Unlicense" ]
null
null
null
eng_mecat_bkp/vhdl_microcont/Lab01/prat1/orig.asm
Mutanne/hiworld
d4c536775ecdd948b6fa205cd43fb5f92c7496c5
[ "Unlicense" ]
null
null
null
org 00h ; MOV P1,#00h ; principal: clr p1.0 ; lcall tempo ; setb p1.0 ; lcall tempo ; ljmp principal ; tempo: mov r6,#255 ; mov r5,#150 ; tempo1: djnz r6,tempo1 ; mov r6,#255 ; djnz r5,tempo1 ; ret ;
14.444444
18
0.503846
7e6b2103aa7462a80095048c78700cd16315578e
854
asm
Assembly
data/pokemon/base_stats/swalot.asm
TastySnax12/pokecrystal16-493-plus
9de36c8803c9bdf4b8564ed547f988b0b66f0c41
[ "blessing" ]
2
2021-07-31T07:05:06.000Z
2021-10-16T03:32:26.000Z
data/pokemon/base_stats/swalot.asm
TastySnax12/pokecrystal16-493-plus
9de36c8803c9bdf4b8564ed547f988b0b66f0c41
[ "blessing" ]
null
null
null
data/pokemon/base_stats/swalot.asm
TastySnax12/pokecrystal16-493-plus
9de36c8803c9bdf4b8564ed547f988b0b66f0c41
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
db 0 ; species ID placeholder db 100, 73, 83, 55, 73, 83 ; hp atk def spd sat sdf db POISON, POISON ; type db 75 ; catch rate db 168 ; base exp db NO_ITEM, BIG_PEARL ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/swalot/front.dimensions" db 0, 0, 0, 0 ; padding db GROWTH_FLUCTUATING ; growth rate dn EGG_INDETERMINATE, EGG_INDETERMINATE ; egg groups ; tm/hm learnset tmhm DYNAMICPUNCH, HEADBUTT, CURSE, ROLLOUT, TOXIC, ROCK_SMASH, HIDDEN_POWER, SUNNY_DAY, SNORE, HYPER_BEAM, PROTECT, RAIN_DANCE, GIGA_DRAIN, ENDURE, FRUSTRATION, SOLARBEAM, EARTHQUAKE, RETURN, SHADOW_BALL, MUD_SLAP, DOUBLE_TEAM, ICE_PUNCH, SWAGGER, SLEEP_TALK, SLUDGE_BOMB, DEFENSE_CURL, THUNDERPUNCH, DREAM_EATER, REST, ATTRACT, FIRE_PUNCH, NIGHTMARE, STRENGTH, ICE_BEAM ; end
38.818182
372
0.741218
91449cecdd51daf0c7f96d0d8d2a6de2b9612a5f
830
asm
Assembly
Library/User/Gen/genListEntry.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/User/Gen/genListEntry.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/User/Gen/genListEntry.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @----------------------------------------------------------------------- Copyright (c) GeoWorks 1988 -- All Rights Reserved PROJECT: PC GEOS MODULE: UserInterface/Gen FILE: genListEntryClass.asm ROUTINES: Name Description ---- ----------- GLB GenListEntryClass ListEntry object REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 2/89 Initial version (genTrigger) Clayton 5/89 Initial version (genListEntry) Eric 4/90 Name changes, USER/ACTUAL rework. DESCRIPTION: This file contains routines to implement the GenListEntry class Documentation for the GenListEntry is in genList.asm. $Id: genListEntry.asm,v 1.1 97/04/07 11:45:00 newdeal Exp $ -------------------------------------------------------------------------------@ Nuked. 7/ 7/92 cbh
27.666667
81
0.557831
8f1a40c8117a010cdeb77fdb9c8a7f1cbbe59a90
383
asm
Assembly
oeis/207/A207332.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/207/A207332.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/207/A207332.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A207332: Double factorials (prime(n)-2)!!. ; 1,1,3,15,945,10395,2027025,34459425,13749310575,213458046676875,6190283353629375,221643095476699771875,319830986772877770815625,13113070457687988603440625,25373791335626257947657609375,2980227913743310874726229193921875 seq $0,6005 ; The odd prime numbers together with 1. sub $0,2 max $1,$0 mov $0,1 lpb $1 mul $0,$1 sub $1,2 lpe
31.916667
221
0.796345
cc5bc88f5c42e7b5fdd4ff19285010bafcec9ed3
363
asm
Assembly
programs/oeis/260/A260300.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/260/A260300.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/260/A260300.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A260300: Bisection of A258409: a(n) = A258409(2n+1). ; 2,4,6,2,10,12,2,16,18,2,22,4,2,28,30,2,2,36,2,40,42,2,46,6,2,52,2,2,58,60,2,4,66,2,70,72,2,2,78,2,82,4,2,88,6,2,2,96,2,100,102,2,106,108,2,112,2,2,2,10,2,4,126,2,130,6,2,136,138,2,2,4,2,148,150 add $0,1 mov $1,$0 seq $1,90368 ; a(1) = 1; for n>1, smallest divisor > 1 of 2n-1. div $1,2 gcd $0,$1 mul $0,2
36.3
195
0.603306
f5b9266ccf1116dc2ee9d71d10fc2d9c7f7502af
143
asm
Assembly
libsrc/nc100/kmsetexpand.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/nc100/kmsetexpand.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/nc100/kmsetexpand.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
PUBLIC kmsetexpand .kmsetexpand pop de pop bc pop hl push hl push bc push de call 0xB806 ld hl, 0 ret c dec hl ret
7.944444
20
0.615385
fef10ba72135c9311afc7518a75ee187b5df98b8
6,110
asm
Assembly
test/ppu/scanline/scanline.asm
JonForShort/nes-emulator
513d00a0f1774a262d8a879367db8d3c2a69fbc1
[ "MIT" ]
2
2018-01-24T01:18:07.000Z
2018-12-29T05:17:32.000Z
test/ppu/scanline/scanline.asm
JonForShort/nes-emulator
513d00a0f1774a262d8a879367db8d3c2a69fbc1
[ "MIT" ]
null
null
null
test/ppu/scanline/scanline.asm
JonForShort/nes-emulator
513d00a0f1774a262d8a879367db8d3c2a69fbc1
[ "MIT" ]
null
null
null
text_loc: text_lo: .block 1 text_hi: .block 1 vramaddy: .block 1 scanline: .block 1 carry: .block 1 ctr: .block 1 tmp: .block 1 .org $C000 text: .db " " .db " This is a test for | Stars " .db " proper mid-scanline | Below " .db " PPU write emulation | Denote " .db " | Errors " .db " " .db " This first area | ****** " .db " toggles D3 of $2001 | ****** " .db " to toggle background | ****** " .db " rendering at the | ****** " .db " appropriate times | ****** " .db " and locations. | ****** " .db " " .db " " .db " " .db " This second area | ****** " .db " toggles D4 of $2000 | ****** " .db " to toggle the address | ****** " .db " of the background | ****** " .db " pattern table at the | ****** " .db " proper locations. | ****** " .db " " .db " " .db " " .db " This third area uses | ****** " .db " $2005/$2006 to update | ****** " .db " the VRAM address at | ****** " .db " the proper locations. | ****** " .db " " .db " " .db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 .db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 waitframe: JMP waitframe reset: SEI CLD LDX #$00 STX $2000 STX $2001 INX ppuinit: LDA $2002 BPL ppuinit DEX BPL ppuinit TXS LDA #$80 STA text_hi LDA #$00 STA text_lo LDA $2002 LDX #$20 STX $2006 LDY #$00 STY $2006 init_vram1: LDA (text_loc),y STA $2007 CLC LDA text_lo ADC #$01 STA text_lo LDA text_hi ADC #$00 STA text_hi CMP #$84 BNE init_vram1 LDY #$04 LDX #$00 LDA #$00 init_vram2: STA $2007 DEX BNE init_vram2 DEY BNE init_vram2 ;clear 2nd nametable LDA #$FF init_spr: STA $0200,X DEX BNE init_spr ;clear sprite buffer LDA #$3F STA $2006 LDA #$00 STA $2006 LDA #$00 STA $2007 ;palette 0 color 0 == $00 LDA #$30 STA $2007 ;palette 0 color 1 == $30 STA $2007 ;palette 0 color 2 == $30 STA $2007 ;palette 0 color 3 == $30 LDA #$00 STA $4015 ;kill sound LDA #$C0 STA $4017 ;disable frame IRQs LDA #$90 STA $2000 LDA #$00 STA $2005 STA $2005 ;clear scroll regs JMP waitframe .fill $C500-*,$FF ;wait 21 scanlines for vblank, 48 scanlines for title text ;counter: 7833 (69 scanlines - 7 cycles for NMI - 3 latency) nmi: LDA #$90 ;2 STA $2000 ;4 LDA $2002 ;4 LDX #$00 ;2 STX $2005 ;4 STX $2005 ;4 STX $2003 ;4 LDA #$1E ;2 STA $2001 ;4 LDA #$02 ;2 STA $4014 ;4+512 wait1: DEX ;512 BNE wait1 ;767 wait2: DEX ;512 BNE wait2 ;767 wait3: DEX ;512 BNE wait3 ;767 wait4: DEX ;512 BNE wait4 ;767 wait5: DEX ;512 BNE wait5 ;767 ;counter: 890 LDX #$B0 ;2 (num: 176) wait6: DEX ;352 BNE wait6 ;527 STX carry ;3 SEC ;2 LDA #$1E ;2 - written to $2001, XORed with $08 LDY #$30 ;2 - 48 scanlines worth of stuff here ;counter: 0 test1: ;counter += 64 ;counter == 64 LDX #$0B ;2 t1a: DEX ;22 BNE t1a ;31 NOP ;2 EOR #$08 ;2 STA $2001 ;4 ;counter: 0 ;counter += 22 ;counter == 22 LDX #$03 ;2 t1b: DEX ;6 BNE t1b ;8 EOR #$08 ;2 STA $2001 ;4 ;counter: 0 ;counter += 27+2/3 ;counter == 27+2/3 NOP ;2 PHA ;3 LDA carry ;3 LDA carry ;3 ADC #$55 ;2 BCC t1c ;2+2/3 t1c: STA carry ;3 PLA ;4 DEY ;2 BNE test1 ;3[/2] ;counter: 0 ;counter: 1 ;counter += 2728 (24 scanlines minus 1 cycle) ;counter == 2729 LDX #$00 ;2 m1_1: DEX ;512 BNE m1_1 ;767 m1_2: DEX ;512 BNE m1_2 ;767 ;counter: 169 LDX #$20 ;2 (num: 32) m1_3: DEX ;64 BNE m1_3 ;95 NOP ;2 NOP ;2 LDA #$90 ;2 - written to $2000, XORed with #$10 in various places LDY #$30 ;2 - 48 scanlines worth of stuff here test2: ;counter += 58+2/3 ;counter == 58+2/3 LDX #$09 ;2 t2a: DEX ;18 BNE t2a ;26 NOP ;2 NOP ;2 NOP ;2 EOR #$10 ;2 STA $2000 ;4 ;counter: 2/3 ;counter += 26+2/3 ;counter == 27+1/3 LDX #$04 ;2 t2b: DEX ;8 BNE t2b ;11 EOR #$10 ;2 STA $2000 ;4 ;counter: 1/3 ;counter += 28+1/3 ;counter == 28+2/3 NOP ;2 NOP ;2 NOP ;2 PHA ;3 LDA carry ;3 ADC #$55 ;2 BCC t2c ;2+2/3 t2c: STA carry ;3 PLA ;4 DEY ;2 BNE test2 ;3[/2] ;counter: 0 ;counter: 1 ;counter += 2728 (24 scanlines) ;counter == 2729 m2: LDX #$00 ;2 m2_1: DEX ;512 BNE m2_1 ;767 m2_2: DEX ;512 BNE m2_2 ;767 ;counter: 169 LDX #$1D ;2 (num: 29; eff: 30) m2_3: DEX ;62 BPL m2_3 ;92 STX carry ;3 LDA #$C1 ;2 STA scanline ;3 LDA #$20 ;2 - 32 scanlines worth of stuff here STA ctr ;3 LDA #$55 ;2 STA tmp ;3 ;counter: 0 test3: ;counter += 58+2/3 ;counter == 58+2/3 LDX #$09 ;2 t3a: DEX ;18 BNE t3a ;26 NOP ;2 LDA #$04 ;2 STA $2006 ;4 STA $2006 ;4 ;counter: 2/3 ;counter += 29 ;counter == 29+2/3 LDY scanline ;3 TYA ;2 ASL A ;2 ASL A ;2 AND #$E0 ;2 NOP ;2 STX $2006 ;4 STY $2005 ;4 STX $2005 ;4 STA $2006 ;4 ;counter: 2/3 ;counter += 26 ;counter == 26+2/3 INC scanline ;5 LDA carry ;3 CLC ;2 ADC tmp ;3 BCC t3b ;2+2/3 t3b: STA carry ;3 DEC ctr ;5 BNE test3 ;3[/2] ;counter: 0 irq: RTI ;done! .fill $FFFA-*,$00 .org $FFFA ;interrupt vectors .dw nmi, reset, irq .end
20.503356
79
0.467758
577d955c00676ef105c3459468af778c992b8c43
7,692
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca.log_9028_1742.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca.log_9028_1742.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca.log_9028_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 %r13 push %r15 push %r9 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x14e3d, %r9 nop sub $25020, %rbx mov (%r9), %r13d nop nop xor $20546, %rax lea addresses_A_ht+0xcbb1, %r15 nop nop sub %rcx, %rcx mov $0x6162636465666768, %rbp movq %rbp, %xmm7 movups %xmm7, (%r15) nop nop xor %r13, %r13 lea addresses_WC_ht+0x447d, %rcx nop nop nop add %r9, %r9 vmovups (%rcx), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $0, %xmm4, %r13 nop nop nop nop and %r13, %r13 lea addresses_A_ht+0x1b1bd, %r9 sub %r13, %r13 movb (%r9), %cl nop nop nop nop nop add $44113, %rbp lea addresses_A_ht+0x6075, %rsi lea addresses_UC_ht+0x1ac5d, %rdi nop nop nop nop nop sub $46481, %rax mov $105, %rcx rep movsq nop nop nop cmp %rax, %rax lea addresses_normal_ht+0x12ce9, %r9 clflush (%r9) nop nop nop nop nop xor %rdi, %rdi movl $0x61626364, (%r9) nop nop dec %r9 lea addresses_normal_ht+0x91c9, %r15 clflush (%r15) nop nop add $44876, %r13 movups (%r15), %xmm1 vpextrq $1, %xmm1, %rcx xor %rcx, %rcx lea addresses_UC_ht+0x1413d, %rsi nop nop nop nop nop and %rdi, %rdi mov (%rsi), %bp nop nop nop nop nop and $3591, %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r9 pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %r15 push %rcx push %rdi push %rdx // Store lea addresses_normal+0x1913d, %r10 clflush (%r10) nop nop nop nop inc %r15 mov $0x5152535455565758, %r13 movq %r13, %xmm4 vmovntdq %ymm4, (%r10) xor %rdx, %rdx // Store mov $0x38ebf60000000fcb, %r13 nop dec %rcx movw $0x5152, (%r13) nop dec %rcx // Store lea addresses_WC+0x19ebd, %r10 nop nop add %rdx, %rdx mov $0x5152535455565758, %r13 movq %r13, (%r10) nop nop inc %r10 // Store lea addresses_normal+0x693d, %rdi add $41783, %rdx mov $0x5152535455565758, %r14 movq %r14, (%rdi) nop nop nop sub $17670, %r14 // Store mov $0x54ac9a00000002ad, %r15 xor $44700, %rcx movb $0x51, (%r15) nop and $2356, %rdx // Store lea addresses_US+0x1df3d, %r14 clflush (%r14) nop nop nop nop nop cmp %r15, %r15 mov $0x5152535455565758, %r13 movq %r13, (%r14) nop cmp $50734, %r13 // Store mov $0x5dd, %r15 clflush (%r15) nop and %rdx, %rdx movl $0x51525354, (%r15) cmp %r15, %r15 // Faulty Load lea addresses_WT+0x953d, %r15 nop nop nop inc %r10 mov (%r15), %di lea oracles, %r14 and $0xff, %rdi shlq $12, %rdi mov (%r14,%rdi,1), %rdi pop %rdx pop %rdi pop %rcx pop %r15 pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 32, 'NT': True, 'type': 'addresses_normal'}} {'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_NC'}} {'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WC'}} {'OP': 'STOR', 'dst': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_normal'}} {'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_NC'}} {'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': True, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_US'}} {'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_P'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': True, 'same': True, 'size': 2, 'NT': True, 'type': 'addresses_WT'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_A_ht'}} {'src': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_normal_ht'}} {'src': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'00': 9028} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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.59322
2,999
0.651586
be02af59ef0e8c1a827092692401b64aebb01f27
300
asm
Assembly
oeis/021/A021756.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/021/A021756.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/021/A021756.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A021756: Decimal expansion of 1/752. ; 0,0,1,3,2,9,7,8,7,2,3,4,0,4,2,5,5,3,1,9,1,4,8,9,3,6,1,7,0,2,1,2,7,6,5,9,5,7,4,4,6,8,0,8,5,1,0,6,3,8,2,9,7,8,7,2,3,4,0,4,2,5,5,3,1,9,1,4,8,9,3,6,1,7,0,2,1,2,7,6,5,9,5,7,4,4,6,8,0,8,5,1,0,6,3,8,2,9,7 add $0,1 mov $2,10 pow $2,$0 mov $0,$2 div $0,752 mod $0,10
30
199
0.54
beba7bda290df09dd4435e6673136de9ec0c5052
571
asm
Assembly
programs/oeis/072/A072219.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/072/A072219.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/072/A072219.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A072219: Any number n can be written uniquely in the form n = 2^k_1 - 2^k_2 + 2^k_3 - ... + 2^k_{2r+1} where the signs alternate, there are an odd number of terms, and k_1 > k_2 > k_3 > ... > k_{2r+1} >= 0; sequence gives number of terms 2r+1. ; 1,1,3,1,3,3,3,1,3,3,5,3,3,3,3,1,3,3,5,3,5,5,5,3,3,3,5,3,3,3,3,1,3,3,5,3,5,5,5,3,5,5,7,5,5,5,5,3,3,3,5,3,5,5,5,3,3,3,5,3,3,3,3,1,3,3,5,3,5,5,5,3,5,5,7,5,5,5,5,3,5,5,7,5,7,7,7,5,5,5,7,5,5,5,5,3,3,3,5,3 seq $0,5811 ; Number of runs in binary expansion of n (n>0); number of 1's in Gray code for n. div $0,2 mul $0,2 add $0,1
71.375
245
0.597198
32ee9caab8dd73f595a6c13a1029048a1e86e119
6,030
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_3901_1837.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_3901_1837.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_3901_1837.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 %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0xf3c7, %rsi lea addresses_A_ht+0xf19c, %rdi clflush (%rsi) nop nop nop nop and $9257, %rbp mov $84, %rcx rep movsl sub %rdi, %rdi lea addresses_D_ht+0x143c7, %rsi lea addresses_WT_ht+0xffc7, %rdi nop nop add $3442, %rbp mov $58, %rcx rep movsq nop nop nop nop nop xor %r11, %r11 lea addresses_WT_ht+0x1b7c7, %r13 nop nop nop and %r8, %r8 mov $0x6162636465666768, %rbp movq %rbp, (%r13) nop nop nop nop nop xor %rcx, %rcx lea addresses_D_ht+0x1965f, %r11 nop add $18993, %rsi movb (%r11), %r13b nop nop xor %rsi, %rsi pop %rsi pop %rdi pop %rcx pop %rbp pop %r8 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r13 push %r9 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi // Load lea addresses_PSE+0x1ac07, %rdx nop nop nop nop xor $8396, %rsi mov (%rdx), %bp nop inc %r9 // REPMOV lea addresses_PSE+0x1fdc7, %rsi lea addresses_A+0x154b7, %rdi nop and $3833, %rax mov $36, %rcx rep movsw nop cmp %rcx, %rcx // Store lea addresses_RW+0x1f3c7, %r9 nop add %r13, %r13 mov $0x5152535455565758, %rdi movq %rdi, %xmm1 vmovups %ymm1, (%r9) nop nop nop nop sub $32934, %rsi // Store lea addresses_RW+0x1f3c7, %rcx clflush (%rcx) nop nop nop and %r13, %r13 mov $0x5152535455565758, %rsi movq %rsi, %xmm4 movups %xmm4, (%rcx) nop nop dec %r9 // Faulty Load lea addresses_RW+0x1f3c7, %rdx nop nop nop nop nop sub $53955, %r9 movb (%rdx), %r13b lea oracles, %r9 and $0xff, %r13 shlq $12, %r13 mov (%r9,%r13,1), %r13 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_PSE', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_A', 'congruent': 3}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_RW', 'same': True, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_RW', 'same': True, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_RW', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 1}} {'58': 3901} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
36.993865
2,999
0.65738
81810fa8e140a07b6830191ea69a5157a656ba72
34,920
asm
Assembly
src/player.asm
jannone/westen
e3883ded0f150355e43d68d69d5e102b2024eec4
[ "Apache-2.0" ]
49
2021-09-22T04:12:15.000Z
2022-02-25T07:16:48.000Z
src/player.asm
jannone/westen
e3883ded0f150355e43d68d69d5e102b2024eec4
[ "Apache-2.0" ]
2
2021-09-26T19:46:28.000Z
2021-09-28T00:25:06.000Z
src/player.asm
jannone/westen
e3883ded0f150355e43d68d69d5e102b2024eec4
[ "Apache-2.0" ]
4
2021-09-26T16:45:52.000Z
2022-01-09T21:20:17.000Z
;----------------------------------------------- hide_player: xor a ld hl,SPRATR2 ld bc,6*4 jp fast_FILVRM ;----------------------------------------------- update_player: ; check if player wants to change control scheme: ld a,(keyboard_line_clicks+2) bit 6,a ; letter "Q" jr z,update_player_continue ; toggle control mapping: ld hl,(key_to_direction_mapping_ptr) ld a,l cp key_to_direction_mapping & 0xff jr z,update_player_mapping_alt update_player_mapping_default: ld hl,key_to_direction_mapping jr update_player_mapping_continue update_player_mapping_alt: ld hl,key_to_direction_mapping_alt update_player_mapping_continue: ld (key_to_direction_mapping_ptr),hl ld hl,SFX_ui_select call play_SFX_with_high_priority update_player_continue: ld hl,player_invulnerability ld a,(hl) or a jp z,update_player_no_invulnerability dec (hl) ld a,(player_state) cp PLAYER_STATE_DEAD jp z,update_player_check_gameover update_player_no_invulnerability: ld a,(keyboard_line_state+KEY_BUTTON2_BYTE) bit KEY_BUTTON2_BIT,a jr z, update_player_no_use_or_jump bit KEY_BUTTON2_BIT_ALTERNATIVE,a jr z, update_player_no_use_or_jump ld a,(player_state) cp PLAYER_STATE_JUMPING jp p,update_player_no_use_or_jump ld a,(keyboard_line_clicks+KEY_BUTTON1_BYTE) bit KEY_BUTTON1_BIT,a jp nz,inventory_fn_jump update_player_no_use_or_jump: ld a,(player_state) cp PLAYER_STATE_JUMPING jp z,update_player_jump cp PLAYER_STATE_FALLING jp z,update_player_fall ld a,(keyboard_line_state+KEY_BUTTON2_BYTE) bit KEY_BUTTON2_BIT,a jr z, update_player_idle bit KEY_BUTTON2_BIT_ALTERNATIVE,a jr z, update_player_idle ld a,(keyboard_line_state) and #f0 ld hl,(key_to_direction_mapping_ptr) cp (hl) jp z,update_player_north inc hl cp (hl) jp z,update_player_northeast inc hl cp (hl) jp z,update_player_east inc hl cp (hl) jp z,update_player_southeast inc hl cp (hl) jp z,update_player_south inc hl cp (hl) jp z,update_player_southwest inc hl cp (hl) jp z,update_player_west inc hl cp (hl) jp z,update_player_northwest update_player_idle: ; idle: ld hl,player_state xor a ld (hl),a ; = PLAYER_STATE_IDLE inc hl ld (hl),a ; player_state_timer update_player_check_if_we_need_to_fall: ld a,(player_state) cp PLAYER_STATE_JUMPING ret p ld a,(player_iso_z) or a ret z ld de,0 ld c,#ff call check_player_collision ret z ld hl,player_state ld (hl),PLAYER_STATE_FALLING inc hl ld (hl),0 ret update_player_check_gameover: ld a,(player_invulnerability) or a jp z,state_game_over ret update_player_jump_not_done: ld a,(hl) or a jr z,update_player_air_movement ld b,a update_player_jump_not_done_loop: push bc call move_player_inc_z pop bc jr z,update_player_jump_done ; collision djnz update_player_jump_not_done_loop jr update_player_air_movement update_player_jump: ld hl,jump_arc ld a,(player_state_timer) ADD_HL_A ld a,(hl) inc a ; cp #ff jr nz,update_player_jump_not_done update_player_jump_done: ld hl,player_state ld a,(hl) cp PLAYER_STATE_DEAD ret z ld (hl),PLAYER_STATE_FALLING inc hl ld (hl),0 update_player_fall: ld hl,fall_arc ld a,(player_state_timer) ADD_HL_A ld a,(hl) inc a ; cp #ff jr nz,update_player_fall_not_done dec hl ex de,hl ld hl,player_state_timer dec (hl) ex de,hl update_player_fall_not_done: ld a,(hl) or a jr z,update_player_air_movement ld b,a update_player_fall_not_done_loop: push bc call move_player_dec_z pop bc jr z,update_player_fall_landed ; collision djnz update_player_fall_not_done_loop jr update_player_air_movement update_player_fall_landed: ld hl,player_state ld a,(hl) cp PLAYER_STATE_DEAD ret z xor a ld (hl),a inc hl ld (hl),a update_player_air_movement: ld hl,player_state_timer inc (hl) ld a,(keyboard_line_state) and #f0 ; xor #f0 ; cp #20 ; jp z,update_player_north_movement ; cp #a0 ; jp z,update_player_northeast_movement ; cp #80 ; jp z,update_player_east_movement ; cp #c0 ; jp z,update_player_southeast_movement ; cp #40 ; jp z,update_player_south_movement ; cp #50 ; jp z,update_player_southwest_movement ; cp #10 ; jp z,update_player_west_movement ; cp #30 ; jp z,update_player_northwest_movement ld hl,(key_to_direction_mapping_ptr) cp (hl) jp z,update_player_north_movement inc hl cp (hl) jp z,update_player_northeast_movement inc hl cp (hl) jp z,update_player_east_movement inc hl cp (hl) jp z,update_player_southeast_movement inc hl cp (hl) jp z,update_player_south_movement inc hl cp (hl) jp z,update_player_southwest_movement inc hl cp (hl) jp z,update_player_west_movement inc hl cp (hl) jp z,update_player_northwest_movement ret update_player_north: ld hl,player_state ld a,(hl) ; player_state cp PLAYER_STATE_JUMPING jp p,update_player_north_movement ld (hl),PLAYER_STATE_WALKING inc hl inc (hl) ; player_state_timer update_player_north_movement: ld hl,player_direction ld (hl),0 call move_player_dec_x call move_player_dec_y jp update_player_check_if_we_need_to_fall update_player_northeast: ld hl,player_state ld a,(hl) ; player_state cp PLAYER_STATE_JUMPING jp p,update_player_northeast_movement ld (hl),PLAYER_STATE_WALKING inc hl inc (hl) ; player_state_timer update_player_northeast_movement: ld hl,player_direction ld (hl),1 call move_player_dec_y jp update_player_check_if_we_need_to_fall update_player_east: ld hl,player_state ld a,(hl) ; player_state cp PLAYER_STATE_JUMPING jp p,update_player_east_movement ld (hl),PLAYER_STATE_WALKING inc hl inc (hl) ; player_state_timer update_player_east_movement: ld hl,player_direction ld (hl),2 ; if x+y add to an odd number, we need to decrement y first, to prevent wobbly behavior ld hl,player_iso_x ld a,(hl) inc hl add a,(hl) and #01 jp nz,update_player_east_movement_a update_player_east_movement_b: ; try one direction, and if there is collision, then default to the other: call move_player_inc_x jp nz,update_player_check_if_we_need_to_fall call move_player_dec_y jp update_player_check_if_we_need_to_fall update_player_east_movement_a: ; try one direction, and if there is collision, then default to the other: call move_player_dec_y jp nz,update_player_check_if_we_need_to_fall call move_player_inc_x jp update_player_check_if_we_need_to_fall update_player_southeast: ld hl,player_state ld a,(hl) ; player_state cp PLAYER_STATE_JUMPING jp p,update_player_southeast_movement ld (hl),PLAYER_STATE_WALKING inc hl inc (hl) ; player_state_timer update_player_southeast_movement: ld hl,player_direction ld (hl),3 call move_player_inc_x jp update_player_check_if_we_need_to_fall update_player_south: ld hl,player_state ld a,(hl) ; player_state cp PLAYER_STATE_JUMPING jp p,update_player_south_movement ld (hl),PLAYER_STATE_WALKING inc hl inc (hl) ; player_state_timer update_player_south_movement: ld hl,player_direction ld (hl),4 call move_player_inc_x call move_player_inc_y jp update_player_check_if_we_need_to_fall update_player_southwest: ld hl,player_state ld a,(hl) ; player_state cp PLAYER_STATE_JUMPING jp p,update_player_southwest_movement ld (hl),PLAYER_STATE_WALKING inc hl inc (hl) ; player_state_timer update_player_southwest_movement: ld hl,player_direction ld (hl),5 call move_player_inc_y jp update_player_check_if_we_need_to_fall update_player_west: ld hl,player_state ld a,(hl) ; player_state cp PLAYER_STATE_JUMPING jp p,update_player_west_movement ld (hl),PLAYER_STATE_WALKING inc hl inc (hl) ; player_state_timer update_player_west_movement: ld hl,player_direction ld (hl),6 ; if x+y add to an odd number, we need to decrement x first, to prevent wobbly behavior ld hl,player_iso_x ld a,(hl) inc hl add a,(hl) and #01 jp z,update_player_west_movement_a update_player_west_movement_b: ; try one direction, and if there is collision, then default to the other: call move_player_dec_x jp nz,update_player_check_if_we_need_to_fall call move_player_inc_y jp update_player_check_if_we_need_to_fall update_player_west_movement_a: call move_player_inc_y jp nz,update_player_check_if_we_need_to_fall call move_player_dec_x jp update_player_check_if_we_need_to_fall update_player_northwest: ld hl,player_state ld a,(hl) ; player_state cp PLAYER_STATE_JUMPING jp p,update_player_northwest_movement ld (hl),PLAYER_STATE_WALKING inc hl inc (hl) ; player_state_timer update_player_northwest_movement: ld hl,player_direction ld (hl),7 call move_player_dec_x jp update_player_check_if_we_need_to_fall ;----------------------------------------------- player_hit: ld hl,player_invulnerability ld a,(hl) or a ret nz ld (hl),INVULNERABILITY_TIME ld hl,player_health dec (hl) call hud_update_health ld a,(player_health) or a jp nz,player_hit_continue ld a,PLAYER_STATE_DEAD ld (player_state),a player_hit_continue: ld hl,SFX_playerhit jp play_SFX_with_high_priority ;----------------------------------------------- ; These functions move the player in the desired direction ; return: ; - nz: successful move: ; - z: collision move_player_inc_x: ld hl,player_iso_x ld a,(room_width_pixels) sub 8 cp (hl) jr z, enter_door_se ld de,#0001 ld c,d call check_player_collision ret z ld hl,player_iso_x inc (hl) or 1 ; indicate successful move ret move_player_dec_x: ld hl,player_iso_x ld a,(hl) cp 9 jr z, enter_door_nw ld de,#00ff ld c,d call check_player_collision ret z move_player_dec_x_move: ld hl,player_iso_x dec (hl) or 1 ; indicate successful move ret move_player_inc_y: ld hl,player_iso_y ld a,(room_height_pixels) sub 8 cp (hl) jp z, enter_door_sw ld de,#0100 ld c,e call check_player_collision ret z ld hl,player_iso_y inc (hl) or 1 ; indicate successful move ret move_player_dec_y: ld hl,player_iso_y ld a,(hl) cp 9 jp z, enter_door_ne ld de,#ff00 ld c,e call check_player_collision ret z ld hl,player_iso_y dec (hl) or 1 ; indicate successful move ret move_player_inc_z: ld de,0 ld c,1 call check_player_collision ret z ld hl,player_iso_z inc (hl) or 1 ; indicate successful move ret move_player_dec_z: ld hl,player_iso_z ld a,(hl) or a ret z ld de,0 ld c,#ff call check_player_collision ret z ld hl,player_iso_z dec (hl) or 1 ; indicate successful move ret ;----------------------------------------------- enter_door_nw: enter_door_ne: enter_door_sw: enter_door_se: call get_nearest_door ld a,(ix+DOOR_STRUCT_DESTINATION_ROOM) cp #ff ret z ; since this is "z", it also indicates collision ld (state_current_room),a ld e,a and #f0 jr z,enter_door_map1 cp #10 jr z,enter_door_map2 cp #20 jr z,enter_door_map3 ; cp #30 ; jr z,enter_door_map4 enter_door_map4: ld hl,map4_zx0_page1 ; ld bc,map4_zx0_page1_size jr enter_door_ptr_set enter_door_map3: ld hl,map3_zx0_page1 ; ld bc,map3_zx0_page1_size jr enter_door_ptr_set enter_door_map2: ld hl,map2_zx0_page1 ; ld bc,map2_zx0_page1_size jr enter_door_ptr_set enter_door_map1: ; check for music change: ld hl,map1_zx0_page1 ; ld bc,map1_zx0_page1_size enter_door_ptr_set: ld a,e and #0f ld e,a ld d,(ix+DOOR_STRUCT_DESTINATION_DOOR) call teleport_player_to_room jp state_game_roomstart ;----------------------------------------------- ; returns the nearest door in ix get_nearest_door: ld iy,doors ld de,DOOR_STRUCT_SIZE ld a,(n_doors) or a jr z,get_nearest_door_found ld b,a get_nearest_door_loop: ld a,(iy) and #c0 jr z,get_nearest_door_nw cp #40 jr z,get_nearest_door_ne cp #80 jr z,get_nearest_door_se cp #c0 jr z,get_nearest_door_sw get_nearest_door_loop_next: add iy,de djnz get_nearest_door_loop get_nearest_door_found: push iy pop ix ret get_nearest_door_nw: ld a,(player_iso_x) cp 10 jr nc,get_nearest_door_loop_next ld a,(iy+DOOR_STRUCT_POSITION) add a,a add a,a add a,a ld c,a ld a,(player_iso_y) sub c cp 16 jp p,get_nearest_door_loop_next cp -16 jp m,get_nearest_door_loop_next jr get_nearest_door_found get_nearest_door_ne: ld a,(player_iso_y) cp 10 jr nc,get_nearest_door_loop_next ld a,(iy+DOOR_STRUCT_POSITION) add a,a add a,a add a,a add a,32 ld c,a ld a,(player_iso_x) sub c cp 16 jp p,get_nearest_door_loop_next cp -16 jp m,get_nearest_door_loop_next jr get_nearest_door_found get_nearest_door_sw: ld a,(room_height_pixels) sub 10 ld c,a ld a,(player_iso_y) cp c jr c,get_nearest_door_loop_next ld a,(iy+DOOR_STRUCT_POSITION) add a,a add a,a add a,a add a,32 ld c,a ld a,(player_iso_x) sub c cp 16 jp p,get_nearest_door_loop_next cp -16 jp m,get_nearest_door_loop_next jr get_nearest_door_found get_nearest_door_se: ld a,(room_width_pixels) sub 10 ld c,a ld a,(player_iso_x) cp c jr c,get_nearest_door_loop_next ld a,(iy+DOOR_STRUCT_POSITION) add a,a add a,a add a,a ld c,a ld a,(player_iso_y) sub c cp 16 jp p,get_nearest_door_loop_next cp -16 jp m,get_nearest_door_loop_next jp get_nearest_door_found ;----------------------------------------------- draw_player: ld a,(player_invulnerability) bit 1,a jp nz,draw_player_blink ; x: room_x*8 + player_iso_x - player_iso_y ld a,(room_x) dec a add a,a add a,a add a,a ld hl,player_iso_x add a,(hl) ; player_iso_x inc hl sub (hl) ; player_iso_y ld b,a ld (player_screen_x),a ; y: room_y*8 + player_iso_y/2 + player_iso_x/2 - isoz ld a,(room_y) add a,a add a,a add a,a ld c,a ld hl,player_iso_x ld a,(hl) ; player_iso_x inc hl add a,(hl) ; player_iso_y jr c,draw_player_y_overflow srl a draw_player_y_overflow_continue: add a,c inc hl sub (hl) ; player_iso_z sub 26 ld c,a ld (player_screen_y),a ld a,(player_direction) ld e,a add a,a add a,e ld e,a ld a,(player_state) or a jr z,draw_player_frame_set dec a ; walking jr z,draw_player_walking ; jumping/falling: inc e jp draw_player_frame_set draw_player_y_overflow: srl a or #80 jp draw_player_y_overflow_continue draw_player_walking: ld a,(player_state_timer) srl a srl a and #03 ld hl,walk_animation_sequence ADD_HL_A ld a,(hl) add a,e ld e,a draw_player_frame_set: ld a,e ; jp draw_player_frame ;----------------------------------------------- ; input: ; - c: y coordinate to draw the top sprite ; - b: x coordinate to draw the top sprite ; - a: frame to draw draw_player_frame: ; calculate occlusion mask: push af push bc push bc ld hl,player_sprite_occlusion_buffer ld (hl),#ff ld de,player_sprite_occlusion_buffer+1 ld bc,2*OCCLUSION_MASK_HEIGHT-1 ldir pop bc call calculate_player_occlusion_mask pop bc pop af ; hl = player_sprites_bin + a*6*32 (a*6*32 = a*3*64) add a,a add a,a ld l,a ld h,0 add hl,hl add hl,hl add hl,hl add hl,hl ld d,h ld e,l add hl,hl add hl,de ld de,player_sprites_bin add hl,de ; jp draw_player_internal ;----------------------------------------------- ; input: ; - c: y coordinate to draw the top sprite ; - b: x coordinate to draw the top sprite ; - hl: pointer to the sprite patterns draw_player_internal: ld (player_sprite_attributes),bc ld a,4 add a,c ld c,a ld (player_sprite_attributes+8),bc ld (player_sprite_attributes+12),bc ld a,12 add a,c ld c,a ld (player_sprite_attributes+4),bc ld (player_sprite_attributes+16),bc ld a,4 add a,c ld c,a ld (player_sprite_attributes+20),bc push hl ld bc,player_sprite_occlusion_buffer ld de,SPRTBL2 call copy_masked_sprite_to_vdp pop hl ld bc,32 add hl,bc push hl ex de,hl ld hl,player_sprite_occlusion_buffer+16 call copy_masked_sprite_to_vdp_setwrt_set pop hl ld bc,32 add hl,bc push hl ex de,hl ld hl,player_sprite_occlusion_buffer+4 call copy_masked_sprite_to_vdp_setwrt_set pop hl ld bc,32 add hl,bc push hl ex de,hl ld hl,player_sprite_occlusion_buffer+4 call copy_masked_sprite_to_vdp_setwrt_set pop hl ld bc,32 add hl,bc push hl ex de,hl ld hl,player_sprite_occlusion_buffer+16 call copy_masked_sprite_to_vdp_setwrt_set pop hl ld bc,32 add hl,bc ex de,hl ld hl,player_sprite_occlusion_buffer+20 call copy_masked_sprite_to_vdp_setwrt_set ld hl,player_sprite_attributes ld de,SPRATR2 ld bc,6*4 jp fast_LDIRVM draw_player_blink: xor a ld hl,SPRATR2 ld bc,6*4 jp fast_FILVRM ;----------------------------------------------- ; hl: sprite ; de: VDP address to copy ; bc: ptr to the mask copy_masked_sprite_to_vdp: push hl push bc ex de,hl call SETWRT pop hl pop de copy_masked_sprite_to_vdp_setwrt_set: ld a,(VDP.DW) ld c,a ld b,16 copy_masked_sprite_to_vdp_loop1: ld a,(de) and (hl) inc de inc hl out (c),a djnz copy_masked_sprite_to_vdp_loop1 ld bc,OCCLUSION_MASK_HEIGHT - 16 add hl,bc ld a,(VDP.DW) ld c,a ld b,16 copy_masked_sprite_to_vdp_loop2: ld a,(de) and (hl) inc de inc hl out (c),a djnz copy_masked_sprite_to_vdp_loop2 ret ;----------------------------------------------- ; - c: y coordinate to draw the top sprite ; - b: x coordinate to draw the top sprite calculate_player_occlusion_mask: ld a,(n_objects) or a ret z ld e,b ; we free up bc, and transfer the coordinates to de ld d,c inc d ld ix,objects ld b,a calculate_player_occlusion_mask_loop: push bc ld a,(ix) or a jr z,calculate_player_occlusion_mask_loop_skip ; Check if the object is in front, or behind the player: ; check 1: z_height ld a,(ix+OBJECT_STRUCT_PIXEL_ISO_Z) add a,(ix+OBJECT_STRUCT_PIXEL_ISO_Z_H) dec a ld hl,player_iso_z cp (hl) jp m,calculate_player_occlusion_mask_loop_skip ; check 2: sort by screen x and y, otherwise: ld a,(player_iso_y) sub (ix+OBJECT_STRUCT_PIXEL_ISO_Y) cp (ix+OBJECT_STRUCT_PIXEL_ISO_H) jp p,calculate_player_occlusion_mask_loop_skip ld a,(player_iso_x) sub (ix+OBJECT_STRUCT_PIXEL_ISO_X) cp (ix+OBJECT_STRUCT_PIXEL_ISO_W) jp p,calculate_player_occlusion_mask_loop_skip bit 7,(ix) ; 0 -> object, 1 -> enemy push af call z,add_object_to_player_occlusion_mask pop af call nz,add_enemy_to_player_occlusion_mask calculate_player_occlusion_mask_loop_skip: ld bc,OBJECT_STRUCT_SIZE add ix,bc pop bc djnz calculate_player_occlusion_mask_loop ret ;----------------------------------------------- ; - e: y coordinate to draw the top sprite ; - d: x coordinate to draw the top sprite ; - ix: object to add to the mask add_object_to_player_occlusion_mask: ; Check vertical overlap ld a,(ix+OBJECT_STRUCT_SCREEN_PIXEL_Y) sub d ; a = y pixel of the row wrt occlusion mask cp 32 ret p ; object is to low ld c,a ld a,(ix+OBJECT_STRUCT_SCREEN_TILE_H) add a,a add a,a add a,a ld (render_room_object_screen_pixel_h),a dec a neg ld b,a ld a,c cp b ret m ; object is too high ld iyh,a ; Check horizontal overlap: ld a,(ix+OBJECT_STRUCT_SCREEN_TILE_X) add a,a add a,a add a,a sub e ; a = x pixel of the row wrt occlusion mask cp -(6+32) ; object should never be wider than 32 pixels ret m cp 15 ret p ld b,(ix+OBJECT_STRUCT_SCREEN_TILE_W) ld l,(ix+OBJECT_STRUCT_PTR) ld h,(ix+OBJECT_STRUCT_PTR+1) add_object_to_player_occlusion_mask_loop: push bc cp -6 jp m,add_object_to_player_occlusion_mask_loop_next_column cp 15 jp p,add_object_to_player_occlusion_mask_loop_end_pop ld iyl,a push hl push de push iy call add_object_column_to_player_occlusion_mask pop iy pop de pop hl ld a,iyl add_object_to_player_occlusion_mask_loop_next_column add a,8 push af ld a,(render_room_object_screen_pixel_h) ld b,0 ld c,a add hl,bc add hl,bc add hl,bc ; next column pop af pop bc djnz add_object_to_player_occlusion_mask_loop ret add_object_to_player_occlusion_mask_loop_end_pop: pop bc ret ;----------------------------------------------- ; - hl: ptr to the column data ; - ix: object to add to the mask ; - iyl: column pixel x coordinate in occlusion mask coordinates ; - iyh: column pixel y coordinate in occlusion mask coordinates add_object_column_to_player_occlusion_mask: ex de,hl ; get the ptr to the top-left byte in the occlusion mask to start writing to: ; hl = player_sprite_occlusion_buffer + iyh ; sign extend iyh to bc, before adding to hl (since iyh could be negative) ld a,iyh add a,a sbc a,a ld b,a ld c,iyh ld hl,player_sprite_occlusion_buffer add hl,bc ; update the mask (first column): ; if iyl > 0: shift right "iyl" pixels ; if iyl < 0: shift left "-iyl" pixels ld a,iyl or a jp z,add_object_column_to_player_occlusion_mask_loop1_z jp p,add_object_column_to_player_occlusion_mask_loop1_p add_object_column_to_player_occlusion_mask_loop1_m: ld a,(render_room_object_screen_pixel_h) ld b,a ld c,iyh add_object_column_to_player_occlusion_mask_loop1_m_loop: ld a,c cp 5 ; there is nothing on the top 5 rows of player sprites jp m,add_object_column_to_player_occlusion_mask_loop1_m_loop_skip cp 32 ; there is nothing past pixel 32 jp p,add_object_column_to_player_occlusion_mask_loop1_m_loop_skip2 ; get the mask: push bc ; shift the mask left/right: ld b,iyl ld a,(de) cp #ff jr z,add_object_column_to_player_occlusion_mask_loop1_shift_left_done2 add_object_column_to_player_occlusion_mask_loop1_shift_left: sli a inc b jp nz,add_object_column_to_player_occlusion_mask_loop1_shift_left ; apply mask: and (hl) ld (hl),a add_object_column_to_player_occlusion_mask_loop1_shift_left_done2: pop bc add_object_column_to_player_occlusion_mask_loop1_m_loop_skip: inc hl inc c inc de inc de inc de djnz add_object_column_to_player_occlusion_mask_loop1_m_loop add_object_column_to_player_occlusion_mask_loop1_m_loop_skip2: ret add_object_column_to_player_occlusion_mask_loop1_z: ld a,(render_room_object_screen_pixel_h) ld b,a ld c,iyh add_object_column_to_player_occlusion_mask_loop1_z_loop: ld a,c cp 5 ; there is nothing on the top 5 rows of player sprites jp m,add_object_column_to_player_occlusion_mask_loop1_z_loop_skip cp 32 ; there is nothing past pixel 32 jp p,add_object_column_to_player_occlusion_mask_loop1_z_loop_skip2 ; get the mask: ; shift the mask left/right: ld a,(de) ; apply mask: and (hl) ld (hl),a add_object_column_to_player_occlusion_mask_loop1_z_loop_skip: inc hl inc c inc de inc de inc de djnz add_object_column_to_player_occlusion_mask_loop1_z_loop add_object_column_to_player_occlusion_mask_loop1_z_loop_skip2: ret add_object_column_to_player_occlusion_mask_loop1_p: push de push hl push ix push hl pop ix ld bc,OCCLUSION_MASK_HEIGHT add ix,bc ld a,(render_room_object_screen_pixel_h) ld b,a ld c,iyh add_object_column_to_player_occlusion_mask_loop1_p_loop: ld a,c cp 5 ; there is nothing on the top 5 rows of player sprites jp m,add_object_column_to_player_occlusion_mask_loop1_p_loop_skip cp 32 ; there is nothing past pixel 32 jp p,add_object_column_to_player_occlusion_mask_loop1_p_loop_skip2 ; get the mask: push bc ; shift the mask left/right: ld b,iyl ld a,(de) cp #ff jr z,add_object_column_to_player_occlusion_mask_loop1_shift_right_done2 ld c,#ff srl a rr c or #80 dec b jr z,add_object_column_to_player_occlusion_mask_loop1_shift_right_done add_object_column_to_player_occlusion_mask_loop1_shift_right: sra a rr c djnz add_object_column_to_player_occlusion_mask_loop1_shift_right add_object_column_to_player_occlusion_mask_loop1_shift_right_done: ; apply mask: and (hl) ld (hl),a ld a,c and (ix) ld (ix),a add_object_column_to_player_occlusion_mask_loop1_shift_right_done2: pop bc add_object_column_to_player_occlusion_mask_loop1_p_loop_skip: inc hl inc ix inc c inc de inc de inc de djnz add_object_column_to_player_occlusion_mask_loop1_p_loop add_object_column_to_player_occlusion_mask_loop1_p_loop_skip2: pop ix pop hl pop de ret add_object_column_to_player_occlusion_mask_loop1_done: ld bc,OCCLUSION_MASK_HEIGHT add hl,bc ; update the mask (second column): ; if iyl > 0: shift right "iyl" pixels ; if iyl < 0: shift left "-iyl" pixels sub 8 jp z,add_object_column_to_player_occlusion_mask_loop2_z jp m,add_object_column_to_player_occlusion_mask_loop2_m add_object_column_to_player_occlusion_mask_loop2_p: ld a,(render_room_object_screen_pixel_h) ld b,a ld c,iyh add_object_column_to_player_occlusion_mask_loop2_p_loop: ld a,c cp 5 ; there is nothing on the top 5 rows of player sprites jp m,add_object_column_to_player_occlusion_mask_loop2_p_loop_skip cp 32 ; there is nothing past pixel 32 ret p ; get the mask: push bc ; shift the mask left/right: ld a,iyl sub 8 ld b,a ld a,(de) cp #ff jr z,add_object_column_to_player_occlusion_mask_loop2_shift_right_done2 srl a or #80 dec b jr z,add_object_column_to_player_occlusion_mask_loop2_shift_right_done add_object_column_to_player_occlusion_mask_loop2_shift_right: sra a djnz add_object_column_to_player_occlusion_mask_loop2_shift_right add_object_column_to_player_occlusion_mask_loop2_shift_right_done: ; apply mask: and (hl) ld (hl),a add_object_column_to_player_occlusion_mask_loop2_shift_right_done2: pop bc add_object_column_to_player_occlusion_mask_loop2_p_loop_skip: inc hl inc c inc de inc de inc de djnz add_object_column_to_player_occlusion_mask_loop2_p_loop add_object_column_to_player_occlusion_mask_loop2_p_loop_skip2: ret add_object_column_to_player_occlusion_mask_loop2_m: ld a,(render_room_object_screen_pixel_h) ld b,a add_object_column_to_player_occlusion_mask_loop2_m_loop: ld a,iyh cp 5 ; there is nothing on the top 5 rows of player sprites jp m,add_object_column_to_player_occlusion_mask_loop2_m_loop_skip cp 32 ; there is nothing past pixel 32 ret p ; get the mask: ; shift the mask left/right: ld a,iyl sub 8 ld c,a ld a,(de) cp #ff jr z,add_object_column_to_player_occlusion_mask_loop2_m_loop_skip add_object_column_to_player_occlusion_mask_loop2_shift_left: sli a inc c jp nz,add_object_column_to_player_occlusion_mask_loop2_shift_left ; apply mask: and (hl) ld (hl),a add_object_column_to_player_occlusion_mask_loop2_m_loop_skip: inc hl inc iyh inc de inc de inc de djnz add_object_column_to_player_occlusion_mask_loop2_m_loop ret add_object_column_to_player_occlusion_mask_loop2_z: ld a,(render_room_object_screen_pixel_h) ld b,a ld c,iyh add_object_column_to_player_occlusion_mask_loop2_z_loop: ld a,c cp 5 ; there is nothing on the top 5 rows of player sprites jp m,add_object_column_to_player_occlusion_mask_loop2_z_loop_skip cp 32 ; there is nothing past pixel 32 ret p ; get the mask: ld a,(de) ; apply mask: and (hl) ld (hl),a add_object_column_to_player_occlusion_mask_loop2_z_loop_skip: inc hl inc c inc de inc de inc de djnz add_object_column_to_player_occlusion_mask_loop2_z_loop ret ;----------------------------------------------- ; - e: y coordinate to draw the top sprite ; - d: x coordinate to draw the top sprite ; - ix: object to add to the mask add_enemy_to_player_occlusion_mask: ; Check vertical overlap ld a,(ix+OBJECT_STRUCT_SCREEN_PIXEL_Y) sub d ; a = y pixel of the row wrt occlusion mask cp 32 ret p ; enemy is to low cp -16 ret m ; enemy is too high ld iyh,a ; Check horizontal overlap: ld a,(ix+OBJECT_STRUCT_SCREEN_TILE_X) add a,a add a,a add a,a sub e ; a = x pixel of the row wrt occlusion mask cp -(6+24) ; enemies should never be wider than 24 pixels ret m cp 15 ret p ld b,(ix+OBJECT_STRUCT_SCREEN_TILE_W) ld l,(ix+OBJECT_STRUCT_PTR) ld h,(ix+OBJECT_STRUCT_PTR+1) add_enemy_to_player_occlusion_mask_loop: push bc cp -6 jp m,add_enemy_to_player_occlusion_mask_loop_next_column cp 15 jp p,add_enemy_to_player_occlusion_mask_loop_end_pop ld iyl,a push hl push de push iy call add_enemy_column_to_player_occlusion_mask pop iy pop de pop hl ld a,iyl add_enemy_to_player_occlusion_mask_loop_next_column add a,8 ld bc,16*2 add hl,bc ; next column pop bc djnz add_enemy_to_player_occlusion_mask_loop ret add_enemy_to_player_occlusion_mask_loop_end_pop: pop bc ret ;----------------------------------------------- ; - e: y coordinate to draw the top sprite ; - d: x coordinate to draw the top sprite ; - hl: ptr to the column data ; - ix: enemy to add to the mask ; - iyl: column pixel x coordinate in occlusion mask coordinates ; - iyh: column pixel y coordinate in occlusion mask coordinates add_enemy_column_to_player_occlusion_mask: ex de,hl ; get the ptr to the top-left byte in the occlusion mask to start writing to: ; hl = player_sprite_occlusion_buffer + iyh ; sign extend iyh to bc, before adding to hl (since iyh could be negative) ld a,iyh add a,a sbc a,a ld b,a ld c,iyh ld hl,player_sprite_occlusion_buffer add hl,bc ; update the mask (first column): ; if iyl > 0: shift right "iyl" pixels ; if iyl < 0: shift left "-iyl" pixels ld a,iyl or a jp z,add_enemy_column_to_player_occlusion_mask_loop1_z jp p,add_enemy_column_to_player_occlusion_mask_loop1_p add_enemy_column_to_player_occlusion_mask_loop1_m: ld b,16 ; enemy height in pixels ld c,iyh add_enemy_column_to_player_occlusion_mask_loop1_m_loop: ld a,c cp 5 ; there is nothing on the top 5 rows of player sprites jp m,add_enemy_column_to_player_occlusion_mask_loop1_m_loop_skip cp 32 ; there is nothing past pixel 32 jp p,add_enemy_column_to_player_occlusion_mask_loop1_m_loop_skip2 ; get the mask: push bc ; shift the mask left/right: ld b,iyl ld a,(de) cp #ff jr z,add_enemy_column_to_player_occlusion_mask_loop1_shift_left_done2 add_enemy_column_to_player_occlusion_mask_loop1_shift_left: sli a inc b jp nz,add_enemy_column_to_player_occlusion_mask_loop1_shift_left ; apply mask: and (hl) ld (hl),a add_enemy_column_to_player_occlusion_mask_loop1_shift_left_done2: pop bc add_enemy_column_to_player_occlusion_mask_loop1_m_loop_skip: inc hl inc c inc de inc de djnz add_enemy_column_to_player_occlusion_mask_loop1_m_loop add_enemy_column_to_player_occlusion_mask_loop1_m_loop_skip2: ret add_enemy_column_to_player_occlusion_mask_loop1_z: ld b,16 ; enemy height in pixels ld c,iyh add_enemy_column_to_player_occlusion_mask_loop1_z_loop: ld a,c cp 5 ; there is nothing on the top 5 rows of player sprites jp m,add_enemy_column_to_player_occlusion_mask_loop1_z_loop_skip cp 32 ; there is nothing past pixel 32 jp p,add_enemy_column_to_player_occlusion_mask_loop1_z_loop_skip2 ; get the mask: ; shift the mask left/right: ld a,(de) ; apply mask: and (hl) ld (hl),a add_enemy_column_to_player_occlusion_mask_loop1_z_loop_skip: inc hl inc c inc de inc de djnz add_enemy_column_to_player_occlusion_mask_loop1_z_loop add_enemy_column_to_player_occlusion_mask_loop1_z_loop_skip2: ret add_enemy_column_to_player_occlusion_mask_loop1_p: push de push hl push ix push hl pop ix ld bc,OCCLUSION_MASK_HEIGHT add ix,bc ld b,16 ; enemy height in pixels ld c,iyh add_enemy_column_to_player_occlusion_mask_loop1_p_loop: ld a,c cp 5 ; there is nothing on the top 5 rows of player sprites jp m,add_enemy_column_to_player_occlusion_mask_loop1_p_loop_skip cp 32 ; there is nothing past pixel 32 jp p,add_enemy_column_to_player_occlusion_mask_loop1_p_loop_skip2 ; get the mask: push bc ; shift the mask left/right: ld b,iyl ld a,(de) cp #ff jr z,add_enemy_column_to_player_occlusion_mask_loop1_shift_right_done2 ld c,#ff srl a rr c or #80 dec b jr z,add_enemy_column_to_player_occlusion_mask_loop1_shift_right_done add_enemy_column_to_player_occlusion_mask_loop1_shift_right: sra a rr c djnz add_enemy_column_to_player_occlusion_mask_loop1_shift_right add_enemy_column_to_player_occlusion_mask_loop1_shift_right_done: ; apply mask: and (hl) ld (hl),a ld a,c and (ix) ld (ix),a add_enemy_column_to_player_occlusion_mask_loop1_shift_right_done2: pop bc add_enemy_column_to_player_occlusion_mask_loop1_p_loop_skip: inc hl inc ix inc c inc de inc de djnz add_enemy_column_to_player_occlusion_mask_loop1_p_loop add_enemy_column_to_player_occlusion_mask_loop1_p_loop_skip2: pop ix pop hl pop de ret add_enemy_column_to_player_occlusion_mask_loop1_done: ld bc,OCCLUSION_MASK_HEIGHT add hl,bc ; update the mask (second column): ; if iyl > 0: shift right "iyl" pixels ; if iyl < 0: shift left "-iyl" pixels sub 8 jp z,add_enemy_column_to_player_occlusion_mask_loop2_z jp m,add_enemy_column_to_player_occlusion_mask_loop2_m add_enemy_column_to_player_occlusion_mask_loop2_p: ld b,16 ; enemy height in pixels ld c,iyh add_enemy_column_to_player_occlusion_mask_loop2_p_loop: ld a,c cp 5 ; there is nothing on the top 5 rows of player sprites jp m,add_enemy_column_to_player_occlusion_mask_loop2_p_loop_skip cp 32 ; there is nothing past pixel 32 ret p ; get the mask: push bc ; shift the mask left/right: ld a,iyl sub 8 ld b,a ld a,(de) cp #ff jr z,add_enemy_column_to_player_occlusion_mask_loop2_shift_right_done2 srl a or #80 dec b jr z,add_enemy_column_to_player_occlusion_mask_loop2_shift_right_done add_enemy_column_to_player_occlusion_mask_loop2_shift_right: sra a djnz add_enemy_column_to_player_occlusion_mask_loop2_shift_right add_enemy_column_to_player_occlusion_mask_loop2_shift_right_done: ; apply mask: and (hl) ld (hl),a add_enemy_column_to_player_occlusion_mask_loop2_shift_right_done2: pop bc add_enemy_column_to_player_occlusion_mask_loop2_p_loop_skip: inc hl inc c inc de inc de djnz add_enemy_column_to_player_occlusion_mask_loop2_p_loop add_enemy_column_to_player_occlusion_mask_loop2_p_loop_skip2: ret add_enemy_column_to_player_occlusion_mask_loop2_m: ld b,16 ; enemy height in pixels add_enemy_column_to_player_occlusion_mask_loop2_m_loop: ld a,iyh cp 5 ; there is nothing on the top 5 rows of player sprites jp m,add_enemy_column_to_player_occlusion_mask_loop2_m_loop_skip cp 32 ; there is nothing past pixel 32 ret p ; get the mask: ; shift the mask left/right: ld a,iyl sub 8 ld c,a ld a,(de) cp #ff jr z,add_enemy_column_to_player_occlusion_mask_loop2_m_loop_skip add_enemy_column_to_player_occlusion_mask_loop2_shift_left: sli a inc c jp nz,add_enemy_column_to_player_occlusion_mask_loop2_shift_left ; apply mask: and (hl) ld (hl),a add_enemy_column_to_player_occlusion_mask_loop2_m_loop_skip: inc hl inc iyh inc de inc de djnz add_enemy_column_to_player_occlusion_mask_loop2_m_loop ret add_enemy_column_to_player_occlusion_mask_loop2_z: ld b,16 ; enemy height in pixels ld c,iyh add_enemy_column_to_player_occlusion_mask_loop2_z_loop: ld a,c cp 5 ; there is nothing on the top 5 rows of player sprites jp m,add_enemy_column_to_player_occlusion_mask_loop2_z_loop_skip cp 32 ; there is nothing past pixel 32 ret p ; get the mask: ld a,(de) ; apply mask: and (hl) ld (hl),a add_enemy_column_to_player_occlusion_mask_loop2_z_loop_skip: inc hl inc c inc de inc de djnz add_enemy_column_to_player_occlusion_mask_loop2_z_loop ret
21.662531
88
0.770962
c3ee1114a7fdef26de910de2e736bb906f9fc6dc
343
asm
Assembly
programs/oeis/171/A171525.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/171/A171525.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/171/A171525.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A171525: Numerator of (n-th noncomposite/n). ; 1,1,1,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227 sub $0,1 mul $0,2 lpb $0 div $0,2 cal $0,40 ; The prime numbers. mov $1,$0 mov $0,-3 lpe div $1,2 mul $1,2 add $1,1
22.866667
170
0.644315
3ee401a908fde919011cbc0d5adf16973273756b
13,152
asm
Assembly
util/thg/usage.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
util/thg/usage.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
util/thg/usage.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
* Usage list maintenance v0.00  Feb 1988 J.R.Oakley QJUMP * section thing * include 'dev8_mac_assert' include 'dev8_keys_chn' include 'dev8_keys_chp' include 'dev8_keys_iod' include 'dev8_keys_jcb' include 'dev8_keys_err' include 'dev8_keys_qlv' include 'dev8_keys_sys' include 'dev8_keys_thg' include 'dev8_keys_qdos_sms' * xref th_hrzap * xdef th_addu xdef th_remu xdef th_efre xdef th_ulku xdef th_newth xdef th_remth xdef th_alchp xdef th_rechp xdef th_frmth xdef th_nxtu page *+++ * Mark a thing as used by the job given. This QDOS version does it by * allocating a small chunk of heap, which is linked into a list pointed * to by the usage header: the driver for this heap entry unlinks it from * the list, ensuring that the thing is freed if the Job is removed. * * Registers: * Entry Exit * D0 0, ITNF, IJOB * D1 Job ID Job ID * D2/D3 smashed * A0 smashed * A1 pointer to linkage block preserved * A2 result * A3 smashed * A6 pointer to system variables preserved *--- th_addu tst.b th_nshar(a1) ; is the Thing shareable? bpl.s tha_calu ; yes, always OK moveq #err.fdiu,d0 ; no, could be in use tst.l th_usage(a1) ; is it? bne.s tha_exit ; yes, rats tha_calu move.l th_use(a1),d0 ; do we have a USE routine? bsr.s call ; we don't care bra.s tha_link ; if we did then link in block * moveq #thu.ulnk,d0 ; allocate space for usage block bsr.s th_alchp ; allocate it tha_link bne.s tha_exit ; ...oops move.l d1,chp_ownr(a0) ; fill in owner lea th_frfre+iod_iolk-iod_clos(a1),a3 ; point to "driver" move.l a3,chp_drlk(a0) ; fill it in in usage block addq.l #th_usage,a1 ; link to usage list add.w #thu_link,a0 ; link is here move.w mem.llst,a3 ; link new block after it jsr (a3) subq.l #th_usage,a1 tha_exit tst.l d0 rts page * * This routine calls the routine pointed to by D0, or returns one word * further on than expected... * call beq.s no_call callreg reg d1/d4-d7/a1/a3-a6 movem.l callreg,-(sp) bsr.s calld0 movem.l (sp)+,callreg rts calld0 move.l d0,-(sp) rts no_call addq.l #2,(sp) rts *+++ * Allocate space in the common heap: note that the returned A0 * points to the heap header, not the "first usable" memory, and that * D0 should include the memory required for the header ($10 bytes). * * Registers: * Entry Exit * D0 amount of heap required error code * A0 heap header *--- th_alchp achpreg reg d1-d3/a1-a3 movem.l achpreg,-(sp) move.l d0,d1 ; amount of heap to get move.w mem.achp,a2 ; get it from common heap jsr (a2) tst.l d0 movem.l (sp)+,achpreg rts *+++ * Return memory to the common heap: A0 should point to the heap header, * not the "usable memory". * * Registers: * Entry Exit * A0 heap entry preserved *--- th_rechp rchpreg reg d0-d3/a0-a3 movem.l rchpreg,-(sp) move.w mem.rchp,a2 jsr (a2) movem.l (sp)+,rchpreg rts page *+++ * Remove a usage block for a given job from the list. * * Registers: * Entry Exit * D0 0, ITNF * D1 Job ID preserved * D2 parameter result * D3 parameter preserved * A1 thing linkage block smashed * A2 parameter result * A3 smashed *--- th_remu lea th_usage(a1),a0 ; no code, point to first link thr_loop move.l (a0),d0 ; next usage block beq.s thr_exnf ; no more, not found move.l d0,a0 ; point to it cmp.l chp_ownr-thu_link(a0),d1 ; owned by the given Job? bne.s thr_loop ; no * cmp.l d1,d6 ; is owner us? beq.s thr_free ; yes, just free usage entry move.l (sp)+,a4 ; this should be safe moveq #err.nc,d3 ; no, owner job didn't complete... exg a5,a6 ; in case we're SuperBASIC moveq #sms.frjb,d0 ; ...'cos we removed it! trap #do.sms2 ; $$$$ better have an empty stack !!!! exg a5,a6 moveq #0,d0 ; no problems jmp (a4) ; return thr_free sub.w #thu_link,a0 ; point to heap entry move.l th_free(a1),d0 ; call free code if present bsr.s call bra.s th_ulku ; and unlink thr_rchp bsr.s th_rechp ; no code, return heap entry page *+++ * This routine unlinks a usage block, which will already have been * returned to the heap. It is entered either from TH_REMU as a result of * an explicit call to stop using a given thing, or via the operating * system as a result of the owner Job's removal. * * Registers: * Entry Exit * A0 usage block to remove * A1 thing linkage preserved * A3 smashed *--- th_ulku addq.l #th_usage,a1 ; point to usage list head add.w #thu_link,a0 ; and link pointer move.w mem.rlst,a3 ; and remove this entry from the list jsr (a3) subq.w #th_usage,a1 ; point to thing linkage rts * thr_exnf moveq #err.itnf,d0 rts *+++ * External call to free thing: this is what is called when a thing is freed * by its owner Job being removed. In this case we can't pass parameters * to the thing telling it which instance to remove, so we need a different * entry point. * * Registers: * Entry Exit * A0 usage block to remove * A1 thing linkage block * A2 smashed * A3 smashed * A6 system variables *--- th_efre move.l chp_drlk(a0),a1 ; point to driver... lea iod_clos-iod_iolk-th_frfre(a1),a1 ; ...and thus linkage block move.l th_ffree(a1),d0 ; this is a forced free bsr call ; call code bra.s th_ulku ; and unlink bra thr_rchp ; no code, just return heap page *+++ * Remove a Thing: this is only possible if there are no * Jobs using the thing at the time. * * Registers: * Entry Exit * D0 0 or FDIU * A0 smashed * A1 thing linkage block preserved *--- th_remth move.l a2,-(sp) ; save A2 tst.l th_usage(a1) ; anyone using this thing? bne.s the_exiu ; yes, give up move.l th_remov(a1),d0 ; no, tidy up bsr call bra.s the_exit ; somebody else knows how bsr.s thz_rlnk ; we know how, return linkage tst.l d0 bra.s the_exit the_exiu moveq #err.fdiu,d0 the_exit move.l (sp)+,a2 rts *+++ * Initialise a new Thing. This initialises the "close" routine * address, used when a Thing-owning Job is removed, and the linkage block's * own driver address, used if the Thing is owned by a Job other than the system. * * Registers: * Entry Exit * A0 smashed * A1 thing linkage block preserved *--- th_newth lea th_efre(pc),a0 ; point to "close" routine move.l a0,th_frfre(a1) ; fill it in lea th_hrzap(pc),a0 ; and "zap" routine move.l a0,th_frzap(a1) ; fill that in lea th_frzap+iod_iolk-iod_clos(a1),a0 move.l a0,chp_drlk-chp_end(a1) ; driver is REMOVe code clr.l th_usage(a1) ; no usage list at the moment rts page *+++ * Force remove a thing: to do this we must remove all Jobs using the * Thing. If the current Job is using the thing then it shouldn't * be removed directly. * * Registers: * Entry Exit * D6 current Job ID preserved * A1 thing linkage block smashed * A2/A3 smashed *--- th_frmth move.l th_usage(a1),-(sp) ; keep usage list move.l th_remov(a1),d0 bsr call ; call remove code... bra.s thz_kilj ; ...and kill jobs if there was some bsr.s thz_rlnk ; otherwise just return linkage thz_kilj move.l (sp)+,d0 ; now remove all entries in usage list thz_rmul beq.s thz_exit ; no more users move.l d0,a2 ; usage block is lea -thu_link(a2),a0 ; here move.l chp_ownr(a0),d1 ; keep its owner bsr th_efre ; and release as if Job got removed tst.l d1 ; is owner system? beq.s thz_nxtu ; yes, I hope it can cope! cmp.l d1,d6 ; is owner current Job? beq.s thz_nxtu ; yes, it ought to know the Thing's gone moveq #0,d2 moveq #sms.injb,d0 ; wot abaht this owner then? trap #do.sms2 lea thz_kill(pc),a3 ; kill self routine move.l a3,jcb_pc-jcb_end(a0) ; is what it'll do when scheduled! move.b #127,$13-jcb_end(a0) ; and at high priority, too clr.w jcb_wait-jcb_end(a0) ; and it ain't suspended now thz_nxtu move.l (a2),d0 ; next usage block bra.s thz_rmul thz_exit rts ; back to zap code thz_rlnk lea -chp_end-th_nxtth(a1),a0 ; point to heap entry bra th_rechp ; and return it thz_kill moveq #sms.myjb,d1 ; I moveq #err.nc,d3 ; didn't complete moveq #sms.frjb,d0 ; 'cos I died myself trap #do.sms2 page *+++ * Find the next Job using the given Thing: if the usage block passed * no longer exists then the error IJOB is returned. * * Registers: * Entry Exit * D0 0 or IJOB * D2 owner of passed usage block * A1 thing linkage block next usage block * A2 usage block or 0 *--- th_nxtu move.l a2,d0 ; is there a current usage block? bne.s thn_fjob ; yes move.l th_usage(a1),a1 ; no, point to the first one bra.s thn_exit ; and that's it thn_fjob lea th_usage(a1),a1 thn_loop move.l (a1),d2 ; next usage block beq.s thn_exij ; none, bother move.l d2,a1 cmp.l d2,d0 ; is this the current one? bne.s thn_loop ; no, carry on * move.l chn_ownr-thu_link(a2),d2 ; get owner move.l (a1),a1 ; and next block pointer moveq #0,d0 thn_exit rts thn_exij moveq #err.ijob,d0 bra.s thn_exit * end
38.682353
80
0.466089
1c312cb26c48b3bfb6dc94b65a2e7b3b5d6e0f9f
374
asm
Assembly
oeis/049/A049744.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/049/A049744.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/049/A049744.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A049744: a(n)=T(n,1), array T as in A049735. ; Submitted by Jon Maiga ; 5,9,21,37,57,89,121,161,213,261,325,385,457,545,621,717,805,917,1033,1137,1265,1389,1533,1669,1801,1969,2129,2305,2469,2637,2837,3017,3233,3425,3641,3861,4061,4309,4537,4785,5033,5273 pow $0,2 add $0,1 seq $0,57655 ; The circle problem: number of points (x,y) in square lattice with x^2 + y^2 <= n.
46.75
185
0.708556
0c7029e3758b9a1140ceb53c9fc5f257eab973ef
180
asm
Assembly
data/pokemon/dex_entries/kabutops.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/pokemon/dex_entries/kabutops.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
data/pokemon/dex_entries/kabutops.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
db "SHELLFISH@" ; species name db "It was able to" next "swim quickly thro-" next "ugh the water by" page "compactly folding" next "up its razor-sharp" next "sickles.@"
18
31
0.672222
15577765321273ec16ed10fae9801898d9cdc0cf
7,868
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_418.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_418.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_418.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 %r8 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x12bae, %rsi lea addresses_UC_ht+0x1eb76, %rdi clflush (%rdi) nop mfence mov $87, %rcx rep movsb nop nop nop inc %rsi lea addresses_D_ht+0x94b6, %rcx nop nop nop nop add %r9, %r9 vmovups (%rcx), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %r8 nop nop add %r8, %r8 lea addresses_normal_ht+0xde06, %rdx nop nop nop nop nop dec %r13 movw $0x6162, (%rdx) nop nop cmp $27066, %rcx lea addresses_A_ht+0x176ae, %r8 nop cmp $26448, %rsi movups (%r8), %xmm4 vpextrq $0, %xmm4, %r9 nop xor $7795, %rdx lea addresses_A_ht+0x1e92e, %r9 nop nop xor $53142, %rsi vmovups (%r9), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $1, %xmm0, %r8 nop and %rdx, %rdx lea addresses_normal_ht+0x9d2, %r13 nop nop add $59208, %rcx mov $0x6162636465666768, %rdx movq %rdx, (%r13) nop nop cmp %rcx, %rcx lea addresses_A_ht+0xd8ae, %rdi clflush (%rdi) nop nop nop nop dec %r13 vmovups (%rdi), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %rcx nop nop nop nop nop sub $54274, %rcx lea addresses_WT_ht+0x1826e, %rsi nop nop nop nop cmp $47953, %r8 mov (%rsi), %di nop nop nop dec %rdi lea addresses_A_ht+0x128ae, %rsi lea addresses_UC_ht+0x1de7e, %rdi nop nop nop nop inc %r8 mov $13, %rcx rep movsq nop xor %r9, %r9 lea addresses_A_ht+0x1a4ae, %rsi lea addresses_normal_ht+0x10d9c, %rdi xor $33907, %r12 mov $28, %rcx rep movsl nop nop nop and %r13, %r13 lea addresses_WC_ht+0x2fce, %rsi lea addresses_D_ht+0x77e6, %rdi cmp %r9, %r9 mov $29, %rcx rep movsw nop nop nop nop add %r13, %r13 lea addresses_UC_ht+0x466e, %r8 and $23286, %r9 mov (%r8), %r13d nop nop nop xor %rsi, %rsi lea addresses_normal_ht+0x171ae, %rdi nop nop nop inc %rcx movb $0x61, (%rdi) nop nop and %rcx, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r8 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %rax push %rcx push %rdi push %rsi // REPMOV lea addresses_UC+0x6ae, %rsi mov $0x32e, %rdi nop and %r12, %r12 mov $0, %rcx rep movsq nop nop add $52475, %rdi // Store lea addresses_normal+0x4bae, %rax nop and $17844, %r11 movl $0x51525354, (%rax) nop nop nop cmp $53711, %rdi // Faulty Load lea addresses_PSE+0xe3ae, %r11 nop nop nop nop nop cmp %rsi, %rsi vmovups (%r11), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $0, %xmm6, %r14 lea oracles, %rax and $0xff, %r14 shlq $12, %r14 mov (%rax,%r14,1), %r14 pop %rsi pop %rdi pop %rcx pop %rax pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC', 'congruent': 8}, 'dst': {'same': False, 'type': 'addresses_P', 'congruent': 6}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 10}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_PSE', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 3}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WT_ht', 'same': True, 'AVXalign': False, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 6}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 3}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 8}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 3}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'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 */
33.76824
2,999
0.655948
252d3feb2ef04312f2d131aa7889416ab5048030
313
asm
Assembly
programs/oeis/005/A005369.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/005/A005369.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/005/A005369.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A005369: a(n) = 1 if n is of the form m(m+1), else 0. ; 1,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0 lpb $0 sub $2,2 add $0,$2 lpe bin $1,$0 mov $0,$1
31.3
201
0.507987
67109b48f24a3dd300d38413b83c2940f23e2092
1,532
asm
Assembly
programs/oeis/116/A116717.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/116/A116717.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/116/A116717.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A116717: Number of permutations of length n which avoid the patterns 231, 1423, 3214. ; 1,2,5,12,26,52,98,177,310,531,895,1491,2463,4044,6611,10774,17520,28446,46136,74771,121116,196117,317485,513877,831661,1345862,2177873,3524112,5702390,9226936,14929790,24157221,39087538,63245319,102333451,165579399,267913515,433493616,701407871,1134902266,1836310956,2971214082,4807525940,7778740967,12586267896,20365009897,32951278873,53316289897,86267569945,139583861066,225851432285,365435294676,591286728338,956722024444,1548008754266,2504730780249,4052739536110,6557470318011,10610209855831,17167680175611,27777890033271,44945570210772,72723460245995,117669030458782,190392490706856,308061521167782,498454011876848,806515533046907,1304969544926100,2111485077975421,3416454622904005,5527939700881981,8944394323788613,14472334024673294,23416728348464681,37889062373140824,61305790721608430,99194853094752256,160500643816363766,259695496911119181,420196140727486186,679891637638608687,1100087778366098275,1779979416004710447,2880067194370812291,4660046610375526392,7540113804746342423,12200160415121872642,19740274219868218980,31940434634990095626,51680708854858318700,83621143489848418511,135301852344706741488,218922995834555164369,354224848179261910321,573147844013817079249,927372692193078994225,1500520536206896078226,2427893228399975077301,3928413764606871160476 add $0,3 mov $2,$0 seq $0,192760 ; Coefficient of x in the reduction by x^2->x+1 of the polynomial p(n,x) defined below in Comments. pow $2,2 sub $0,$2 div $0,2 add $0,1
139.272727
1,272
0.883159
3240064226d4d110d7c7888b91340f69b0deef43
493
asm
Assembly
oeis/010/A010651.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/010/A010651.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/010/A010651.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A010651: Decimal expansion of cube root of 81. ; Submitted by Christian Krause ; 4,3,2,6,7,4,8,7,1,0,9,2,2,2,2,5,1,4,6,9,6,4,9,1,4,9,3,2,3,4,0,3,2,8,7,6,5,1,7,5,6,0,7,7,6,0,4,9,8,0,5,1,7,3,2,6,3,9,2,4,8,5,8,3,6,2,5,0,6,2,7,9,0,4,8,9,9,9,2,0,1,9,5,6,4,2,6,6,4,3,9,1,1,6,9,3,5,7,7,0 mov $2,1 mov $3,$0 mul $3,4 lpb $3 add $1,$5 add $5,$2 add $5,$2 add $1,$5 add $2,$1 mul $1,2 sub $3,1 lpe mov $1,4 mul $5,3 add $1,$5 mov $4,10 pow $4,$0 div $2,$4 div $1,$2 mov $0,$1 mod $0,10
18.961538
201
0.541582
0e3a0547cf44eebb4cca3217de1196fc7a6e4ca0
5,095
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1371.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_1371.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_1371.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r8 push %rbx push %rcx push %rdx push %rsi lea addresses_normal_ht+0x1535a, %rsi clflush (%rsi) nop nop nop add %rdx, %rdx movb $0x61, (%rsi) nop nop and $44513, %rbx lea addresses_UC_ht+0x5e5a, %r11 xor %r8, %r8 mov $0x6162636465666768, %rbx movq %rbx, (%r11) nop inc %rcx lea addresses_UC_ht+0xfc5a, %r11 nop nop sub $60114, %r14 movb (%r11), %bl xor $43885, %r8 lea addresses_normal_ht+0x5dfa, %rbx nop nop nop xor $16079, %r8 movb $0x61, (%rbx) nop nop nop nop nop inc %rbx pop %rsi pop %rdx pop %rcx pop %rbx pop %r8 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r14 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi // REPMOV lea addresses_A+0x965a, %rsi lea addresses_A+0x965a, %rdi nop nop and %r14, %r14 mov $86, %rcx rep movsl nop nop nop nop nop cmp $58175, %r14 // Faulty Load lea addresses_A+0x965a, %r9 nop nop sub %rbx, %rbx movups (%r9), %xmm0 vpextrq $1, %xmm0, %rdi lea oracles, %r8 and $0xff, %rdi shlq $12, %rdi mov (%r8,%rdi,1), %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_A', 'congruent': 0}} {'dst': {'same': True, 'congruent': 0, 'type': 'addresses_A'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 0, 'type': 'addresses_A'}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_A', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal_ht', 'congruent': 7}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 8, 'type': 'addresses_UC_ht', 'congruent': 11}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 5}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal_ht', 'congruent': 5}, 'OP': 'STOR'} {'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 */
45.088496
2,999
0.658292
8fe67ede70411d62604b21dcb1dc04b40c5c90b9
692
asm
Assembly
oeis/099/A099242.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/099/A099242.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/099/A099242.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A099242: (6n+5)-th terms of expansion of 1/(1 - x - x^6). ; Submitted by Jamie Morken(s4) ; 1,7,34,153,686,3088,13917,62721,282646,1273690,5739647,25864698,116554700,525233175,2366870474,10665883415,48063918336,216591552484,976031547888,4398313653120,19820223058176,89316331907533,402488262720739,1813742214533742,8173308703573961,36831571007509318,165974964617206588,747936841305696337,3370445174502834197,15188315439172796338,68443458930864371278,308428350015625622971,1389877843395544176866,6263238834769831682832,28224178756265739960915,127187272828135217108010,573146964138586780712543 mov $3,$0 add $0,1 lpb $0 sub $0,1 add $3,5 mov $2,$3 bin $2,$0 add $1,$2 lpe mov $0,$1
46.133333
500
0.820809
e9aaf32fbf19976452d80b03f5ed7333961b3d6c
370
asm
Assembly
programs/oeis/171/A171516.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/171/A171516.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/171/A171516.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A171516: a(n) = a(n-1) + a(n-2) + k, n>1; with a(0) = 1, a(1) = 2, k = 3. ; 1,2,6,11,20,34,57,94,154,251,408,662,1073,1738,2814,4555,7372,11930,19305,31238,50546,81787,132336,214126,346465,560594,907062,1467659,2374724,3842386,6217113,10059502,16276618,26336123,42612744,68948870 mov $1,4 mov $2,1 lpb $0,1 sub $0,1 mov $3,$2 mov $2,$1 add $1,$3 lpe sub $1,3
28.461538
205
0.651351
186c8b49ec1667675eaa88ce5e49bd3ee03c4247
7,445
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2058.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.log_21829_2058.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.log_21829_2058.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 %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0xd227, %rbp nop and $35518, %rdx movw $0x6162, (%rbp) cmp %rdx, %rdx lea addresses_normal_ht+0x1df77, %rsi lea addresses_WC_ht+0x1b5c5, %rdi nop nop nop nop nop xor %rbx, %rbx mov $92, %rcx rep movsw nop nop nop nop add $59369, %rdi lea addresses_normal_ht+0x1c685, %rbx inc %rbp movw $0x6162, (%rbx) nop nop nop xor %rdi, %rdi lea addresses_normal_ht+0x33c5, %rsi lea addresses_A_ht+0x36c2, %rdi nop nop nop nop and %r11, %r11 mov $43, %rcx rep movsw nop nop add $64286, %r11 lea addresses_WT_ht+0x12745, %rsi lea addresses_WC_ht+0x1a9c5, %rdi nop nop xor $64113, %r11 mov $97, %rcx rep movsb inc %r11 lea addresses_A_ht+0x1eb89, %rcx nop nop nop nop nop xor $45179, %rbp movl $0x61626364, (%rcx) nop nop nop nop nop and %r11, %r11 lea addresses_D_ht+0x19d2a, %rbp nop nop nop nop sub $28290, %rcx mov $0x6162636465666768, %rdi movq %rdi, (%rbp) nop nop nop inc %rbp lea addresses_A_ht+0xca25, %r8 nop nop nop xor %rsi, %rsi mov $0x6162636465666768, %rdi movq %rdi, %xmm1 vmovups %ymm1, (%r8) cmp $25730, %rbp lea addresses_WT_ht+0x185c5, %rcx nop nop nop nop nop and $10869, %r8 movb $0x61, (%rcx) nop nop nop cmp %r8, %r8 lea addresses_WC_ht+0x19bc5, %rsi nop nop nop nop add %rbp, %rbp mov $0x6162636465666768, %rdi movq %rdi, %xmm0 vmovups %ymm0, (%rsi) nop nop nop nop nop sub %rbp, %rbp lea addresses_WC_ht+0x973d, %rdx xor %r11, %r11 movups (%rdx), %xmm5 vpextrq $0, %xmm5, %rbx nop nop dec %rbp lea addresses_normal_ht+0x77c5, %rbp nop sub $29969, %r11 mov (%rbp), %esi nop sub %r11, %r11 lea addresses_D_ht+0x80c5, %rsi lea addresses_D_ht+0x13dc5, %rdi lfence mov $123, %rcx rep movsq nop nop and $61517, %rdi lea addresses_A_ht+0xfb85, %rdx nop nop nop cmp %rbp, %rbp mov $0x6162636465666768, %rbx movq %rbx, (%rdx) nop nop nop inc %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %rdi push %rdx // Faulty Load lea addresses_normal+0xf5c5, %rdx nop nop sub $25326, %r10 mov (%rdx), %r14 lea oracles, %rdx and $0xff, %r14 shlq $12, %r14 mov (%rdx,%r14,1), %r14 pop %rdx pop %rdi pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 1, 'size': 2, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 6, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 5, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 11, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 9, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 9, 'size': 4, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 4, 'size': 8, 'same': False, 'NT': 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 */
35.62201
2,999
0.659503
7533869b2cae6e37146e1bd51bf3b27dd9956fd7
10,771
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0_notsx.log_21829_1041.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0_notsx.log_21829_1041.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0_notsx.log_21829_1041.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 %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0x4cb4, %rsi lea addresses_normal_ht+0x16ff2, %rdi cmp %rax, %rax mov $84, %rcx rep movsl nop dec %rsi lea addresses_D_ht+0x11122, %rsi lea addresses_A_ht+0xd3f2, %rdi inc %r8 mov $15, %rcx rep movsq nop nop nop sub $14838, %rax lea addresses_WC_ht+0x1b8c6, %r8 nop nop nop nop nop xor $29491, %r11 movb (%r8), %cl nop nop nop nop nop cmp %rax, %rax lea addresses_A_ht+0x2050, %rax nop and %r8, %r8 movl $0x61626364, (%rax) nop nop nop nop add %rax, %rax lea addresses_D_ht+0x728f, %r8 nop nop nop nop sub %rax, %rax movw $0x6162, (%r8) nop nop nop nop xor $1820, %rcx lea addresses_D_ht+0x114a2, %rsi nop nop nop inc %rbp mov $0x6162636465666768, %rax movq %rax, %xmm5 and $0xffffffffffffffc0, %rsi vmovntdq %ymm5, (%rsi) nop nop nop nop nop dec %r11 lea addresses_WC_ht+0x65f6, %r11 nop nop nop nop sub $4656, %r8 mov $0x6162636465666768, %rdi movq %rdi, %xmm2 vmovups %ymm2, (%r11) sub %rax, %rax lea addresses_normal_ht+0xeb32, %rsi lea addresses_D_ht+0x16bf2, %rdi nop nop nop nop sub $28992, %r13 mov $90, %rcx rep movsb nop xor $9022, %rsi lea addresses_UC_ht+0x163f2, %rax nop nop nop nop cmp $56387, %rcx movups (%rax), %xmm0 vpextrq $1, %xmm0, %r11 nop nop nop xor %rsi, %rsi lea addresses_WT_ht+0x1bdf2, %r13 nop nop dec %rdi mov $0x6162636465666768, %rax movq %rax, %xmm2 movups %xmm2, (%r13) and %rbp, %rbp lea addresses_A_ht+0x14892, %r13 nop nop nop nop nop sub $44296, %rcx mov (%r13), %r11w nop cmp %r8, %r8 lea addresses_WC_ht+0xe472, %rcx nop xor $499, %rsi movb $0x61, (%rcx) xor %rbp, %rbp lea addresses_normal_ht+0x117dc, %r8 nop nop nop nop nop and %r11, %r11 movw $0x6162, (%r8) nop inc %rcx pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r15 push %r8 push %r9 push %rax push %rcx push %rdi push %rsi // Store lea addresses_WT+0x1b1c7, %rsi nop nop sub $56747, %r8 mov $0x5152535455565758, %r12 movq %r12, %xmm2 vmovups %ymm2, (%rsi) inc %r8 // Store lea addresses_WC+0x189f2, %r9 nop cmp $18899, %rdi movb $0x51, (%r9) nop nop nop nop inc %r9 // Store lea addresses_A+0x108aa, %r8 nop nop nop nop nop cmp %r15, %r15 mov $0x5152535455565758, %rax movq %rax, %xmm7 vmovups %ymm7, (%r8) nop inc %r8 // Store lea addresses_WT+0xc610, %rdi nop nop nop inc %r15 mov $0x5152535455565758, %r9 movq %r9, %xmm7 vmovups %ymm7, (%rdi) nop and %r9, %r9 // Store lea addresses_WT+0x131b2, %r12 nop sub $45594, %r8 movw $0x5152, (%r12) nop xor $7002, %r8 // REPMOV lea addresses_normal+0x1adf2, %rsi lea addresses_D+0x113f2, %rdi sub %r15, %r15 mov $9, %rcx rep movsq nop nop inc %rdi // Store mov $0x972, %r8 nop nop nop nop nop cmp $3102, %r15 mov $0x5152535455565758, %rdi movq %rdi, %xmm2 movups %xmm2, (%r8) nop nop nop nop nop and $64137, %r8 // Store lea addresses_RW+0xebfe, %r8 nop nop cmp %r15, %r15 mov $0x5152535455565758, %r12 movq %r12, %xmm7 movups %xmm7, (%r8) nop nop cmp %r12, %r12 // Load lea addresses_D+0xd3f2, %r15 nop nop inc %rsi mov (%r15), %ecx nop nop nop sub %rsi, %rsi // Load lea addresses_A+0x15114, %rax inc %rcx mov (%rax), %r12w add %rcx, %rcx // Store lea addresses_A+0x68f4, %r12 xor $10397, %rdi mov $0x5152535455565758, %rsi movq %rsi, %xmm2 vmovups %ymm2, (%r12) add %rdi, %rdi // Store lea addresses_D+0x113f2, %rdi nop nop nop add %rsi, %rsi mov $0x5152535455565758, %r9 movq %r9, (%rdi) xor %r9, %r9 // Store lea addresses_UC+0x2d6c, %r15 nop nop nop nop nop cmp $9652, %rax mov $0x5152535455565758, %rcx movq %rcx, %xmm3 vmovups %ymm3, (%r15) nop nop nop and $19892, %r8 // Load lea addresses_US+0x17db2, %r8 nop xor $13709, %r15 movb (%r8), %r12b nop nop nop add %r15, %r15 // Faulty Load lea addresses_D+0x113f2, %rdi nop nop nop sub $5882, %rcx mov (%rdi), %r15w lea oracles, %r12 and $0xff, %r15 shlq $12, %r15 mov (%r12,%r15,1), %r15 pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r8 pop %r15 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 3}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 5}} {'src': {'type': 'addresses_normal', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D', 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}} {'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'size': 8, 'NT': False, 'same': True, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}} {'src': {'type': 'addresses_US', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32, 'NT': True, 'same': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}} {'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 9}} {'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 3}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
28.494709
2,999
0.648593
3b52835c5023b4c14ee365c481c1dee0dea5a13b
543
asm
Assembly
oeis/316/A316138.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/316/A316138.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/316/A316138.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A316138: Decimal expansion of the middle x such that 1/x + 1/(x+2) + 1/(x+4) = 1. ; Submitted by Christian Krause ; 1,2,8,9,1,6,8,5,4,6,4,4,8,3,0,9,9,6,9,0,8,2,6,7,7,4,5,8,1,6,8,5,6,7,3,8,8,1,4,2,9,0,2,2,0,2,8,4,2,7,3,8,3,4,3,7,2,9,4,7,0,0,6,3,0,1,3,5,6,4,6,4,8,4,0,4,3,7,4,4,7,4,1,8,4,5 mov $3,$0 mul $3,4 lpb $3 add $1,$3 mul $1,2 add $5,$2 add $5,$2 add $1,$5 add $2,$1 mul $1,2 add $2,$5 sub $3,1 lpe mov $1,1 add $1,$5 mov $4,10 pow $4,$0 div $2,$4 mov $6,$4 cmp $6,0 cmp $6,0 add $2,$6 div $1,$2 mov $0,$1 mod $0,10
18.1
173
0.530387
65e49b286feb097cace23b9dc7a4713a600ca1be
4,034
asm
Assembly
src/vm/amd64/TlsGetters.asm
CyberSys/coreclr-mono
83b2cb83b32faa45b4f790237b5c5e259692294a
[ "MIT" ]
10
2015-11-03T16:35:25.000Z
2021-07-31T16:36:29.000Z
src/vm/amd64/TlsGetters.asm
CyberSys/coreclr-mono
83b2cb83b32faa45b4f790237b5c5e259692294a
[ "MIT" ]
1
2019-03-05T18:50:09.000Z
2019-03-05T18:50:09.000Z
src/vm/amd64/TlsGetters.asm
CyberSys/coreclr-mono
83b2cb83b32faa45b4f790237b5c5e259692294a
[ "MIT" ]
4
2015-10-28T12:26:26.000Z
2021-09-04T11:36:04.000Z
; ; Copyright (c) Microsoft. All rights reserved. ; Licensed under the MIT license. See LICENSE file in the project root for full license information. ; ; ==++== ; ; ; ==--== ; *********************************************************************** ; File: TlsGetters.asm, see history in jithelp.asm ; ; Notes: These TlsGetters (GetAppDomain(), GetThread()) are implemented ; in a generic fashion, but might be patched at runtime to contain ; a much faster implementation which goes straight to the TLS for ; the Thread* or AppDomain*. ; ; Note that the macro takes special care to not have these become ; non-unwindable after the patching has overwritten the prologue of ; the generic getter. ; *********************************************************************** include AsmMacros.inc include asmconstants.inc ; Min amount of stack space that a nested function should allocate. MIN_SIZE equ 28h ; These generic TLS getters are used for GetThread() and GetAppDomain(), they do a little ; extra work to ensure that certain registers are preserved, those include the following ; volatile registers ; ; rcx ; rdx ; r8 ; r9 ; r10 ; r11 ; ; The return value is in rax as usual ; ; They DO NOT save scratch flowing point registers, if you need those you need to save them. ifdef ENABLE_GET_THREAD_GENERIC_FULL_CHECK GetThreadGenericFullCheck equ ?GetThreadGenericFullCheck@@YAPEAVThread@@XZ extern GetThreadGenericFullCheck:proc endif ; ENABLE_GET_THREAD_GENERIC_FULL_CHECK ; Creates a generic TLS getter using the value from TLS slot gTLSIndex. Set GenerateGetThread ; when using this macro to generate GetThread, as that will cause special code to be generated which ; enables additional debug-only checking, such as enforcement of EE_THREAD_NOT_REQUIRED contracts GenerateOptimizedTLSGetter macro name, GenerateGetThread extern g&name&TLSIndex:dword extern __imp_TlsGetValue:qword SIZEOF_PUSHED_ARGS equ 10h NESTED_ENTRY Get&name&Generic, _TEXT push_vol_reg r10 push_vol_reg r11 alloc_stack MIN_SIZE ; save argument registers in shadow space save_reg_postrsp rcx, MIN_SIZE + 8h + SIZEOF_PUSHED_ARGS save_reg_postrsp rdx, MIN_SIZE + 10h + SIZEOF_PUSHED_ARGS save_reg_postrsp r8, MIN_SIZE + 18h + SIZEOF_PUSHED_ARGS save_reg_postrsp r9, MIN_SIZE + 20h + SIZEOF_PUSHED_ARGS END_PROLOGUE ifdef _DEBUG cmp dword ptr [g&name&TLSIndex], -1 jnz @F int 3 @@: endif ; _DEBUG CALL_GET_THREAD_GENERIC_FULL_CHECK=0 ifdef ENABLE_GET_THREAD_GENERIC_FULL_CHECK if GenerateGetThread ; Generating the GetThread() tlsgetter, and GetThreadGenericFullCheck is ; defined in C (in threads.cpp). So we'll want to delegate directly to ; GetThreadGenericFullCheck, which may choose to do additional checking, such ; as enforcing EE_THREAD_NOT_REQUIRED contracts CALL_GET_THREAD_GENERIC_FULL_CHECK=1 endif ; GenerateGetThread endif ; ENABLE_GET_THREAD_GENERIC_FULL_CHECK if CALL_GET_THREAD_GENERIC_FULL_CHECK call GetThreadGenericFullCheck else ; Not generating the GetThread() tlsgetter (or there is no GetThreadGenericFullCheck ; to call), so do nothing special--just look up the value stored at TLS slot gTLSIndex mov ecx, [g&name&TLSIndex] call [__imp_TlsGetValue] endif ; restore arguments from shadow space mov rcx, [rsp + MIN_SIZE + 8h + SIZEOF_PUSHED_ARGS] mov rdx, [rsp + MIN_SIZE + 10h + SIZEOF_PUSHED_ARGS] mov r8, [rsp + MIN_SIZE + 18h + SIZEOF_PUSHED_ARGS] mov r9, [rsp + MIN_SIZE + 20h + SIZEOF_PUSHED_ARGS] ; epilog add rsp, MIN_SIZE pop r11 pop r10 ret NESTED_END Get&name&Generic, _TEXT endm GenerateOptimizedTLSGetter Thread, 1 GenerateOptimizedTLSGetter AppDomain, 0 end
33.065574
101
0.681953
0b367e21bb9d47e9f8c0b3af25ea85d792beddda
293
asm
Assembly
test/mem.asm
Kylogias/jdh-8
3c17c9faee49b18e20818cbf1379ac73e22760e0
[ "MIT" ]
911
2021-06-13T15:11:54.000Z
2022-03-31T16:43:01.000Z
test/mem.asm
alexshcer/jdh-8
f253853e740bd4bfa83041fbf73568a0d32b1141
[ "MIT" ]
33
2021-06-13T16:40:47.000Z
2022-01-31T15:33:17.000Z
test/mem.asm
alexshcer/jdh-8
f253853e740bd4bfa83041fbf73568a0d32b1141
[ "MIT" ]
88
2021-06-13T17:34:49.000Z
2022-03-29T14:04:40.000Z
; TEST ; a = 0xF0 ; b = 0x0F ; c = 0xF0 ; d = 0x0F ; [0x8F00] = 0xF0 ; [0x8F01] = 0x0F ; [0x8FF0] = 0xF0 ; [0x8FF1] = 0x0F mw a, 0xF0 mw b, 0x0F sw [0x8F00], a sw [0x8F01], b sw [0x8FF0], a sw [0x8FF1], b lw a, [0x8F00] lw b, [0x8F01] lw c, [0x8FF0] lw d, [0x8FF1] lda [0x8FF1] lw d halt
10.464286
17
0.566553
104e94fbc28cdb4617600a8948a5c29ad3c92405
452
asm
Assembly
libsrc/target/vector06c/asm_load_palette.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/target/vector06c/asm_load_palette.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/target/vector06c/asm_load_palette.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_driver PUBLIC asm_load_palette ; Entry: hl = palette ; ; Note: Enable interrupts ; asm_load_palette: ld de,15 add hl,de ei halt ld de,$100f INIT1: ld a,e out ($02),a ld A,(hl) out ($0C),a out ($0C),a out ($0C),a out ($0C),a out ($0C),a dec hl out ($0C),a dec e out ($0C),a dec d out ($0C),a jp nz,INIT1 ret
13.69697
25
0.464602
d6d29d04b7a42f60afcf1d21740d58185d9e4a07
321
asm
Assembly
programs/oeis/155/A155158.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/155/A155158.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/155/A155158.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A155158: Period 4: repeat [1, 5, 7, 3]. ; 1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5 lpb $0 sub $0,4 lpe add $1,$0 add $1,$0 lpb $1 mov $1,$0 add $0,1 lpe mov $1,$0 mul $1,2 add $1,1
20.0625
173
0.510903
a64b861d8febe82dd5a5c64026cb9c383df05f14
2,773
asm
Assembly
programs/oeis/016/A016919.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/016/A016919.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/016/A016919.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A016919: a(n) = (6*n)^11. ; 0,362797056,743008370688,64268410079232,1521681143169024,17714700000000000,131621703842267136,717368321110468608,3116402981210161152,11384956040305711104,36279705600000000000,103510234140112521216,269561249468963094528,650190514836423555072,1469170321634239709184,3138105960900000000000,6382393305518410039296,12433743083946522728448,23316389970546096340992,42262322980951656843264,74300837068800000000000,127079645979756182501376,211988959518950443450368,345676575099245416998912,552061438912436417593344,864975585937500000000000,1331590174384995440787456,2016810807672035804940288,3008860818706922924408832,4426309024697324523239424,6426841007923200000000000,9218120615459689670977536,13071141489701703760478208,18336527447218512795850752,25464305835922478547861504,35027750054222100000000000,47751966659678405306351616,64547989392109719104944128,86553237464988993215004672,115179299131727923510339584,152168114316902400000000000,199657752537985561759389696,260259114966540661762818048,337145032839390594819950592,434153389094810508186353664,555906056655552300000000000,707945625803254614013771776,896892085195750456196179968,1130621826892669783231168512,1418471565912741035860383744,1771470000000000000000000000,2202600286091874661776377856,2727096677140470662732709888,3362778947134455039659538432,4130428534112329328517709824,5054210651372681700000000000,6162146956711778149189287936,7486643729106643154813687808,9065080882580120623594340352,10940467548815308008476411904,13162170384226713600000000000,15786721204455474199101782016,18878711020461444446161993728,22511778046375868461571254272,26769697770909089301459369984,31747583732247243900000000000,37553208211903514205902340096,44308452666811124371870107648,52150898351969236066020360192,61235568249106027885106264064,71736832111046860800000000000,83850487157725321590910642176,97796027719021374067408109568,113819117912838588948194138112,132194282275040704726925574144,153227830122070312500000000000,177261030328297458104329568256,204673554139436097229551679488,235887204621778787349175468032,271369952365606399975686580224,311640298121016115200000000000,357271984146678126737757198336,408899077197794430483230097408,467221447269921365272965629952,533010667451475275290251362304,607116361520826305100000000000,690473027255071938191258812416,784107364798056947318294243328,889146140866171920765652303872,1006824621053134925509846800384,1138495604030571110400000000000,1285639093030998565918998890496,1449872641645065449500204597248,1632962412666837646144657569792,1836834990480896934289776574464,2063589989304280119300000000000,2315513501476187716057433112576,2595092431930248824098639239168,2905029766989293641442065907712,3248260827692417886246573164544 pow $0,11 mul $0,362797056
462.166667
2,716
0.954562
b5ec2cce00549048bb871eb32f975107a4d23b86
1,207
asm
Assembly
src/intel/tools/tests/gen8/csel.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
src/intel/tools/tests/gen8/csel.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
src/intel/tools/tests/gen8/csel.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
csel.nz(8) g15<1>F g11<4,4,1>F (abs)g11<4,4,1>F g11<4,4,1>F { align16 1Q }; csel.nz(16) g14<1>F g8<4,4,1>F (abs)g8<4,4,1>F g8<4,4,1>F { align16 1H }; csel.le(8) g21<1>F (abs)g5.3<0,1,0>F g5.0<0,1,0>F g5.3<0,1,0>F { align16 1Q }; csel.l(8) g107<1>F -g101<4,4,1>F g101<4,4,1>F g104<4,4,1>F { align16 1Q }; csel.le(8) g21<1>F g5.0<0,1,0>F (abs)g5.1<0,1,0>F g5.1<0,1,0>F { align16 1Q }; csel.l(8) g127<1>F g2<4,4,1>F g8<4,4,1>F g4.0<0,1,0>F { align16 1Q }; csel.l(16) g126<1>F g2<4,4,1>F g13<4,4,1>F g6.0<0,1,0>F { align16 1H }; csel.le(16) g13<1>F (abs)g73<4,4,1>F g58<4,4,1>F g73<4,4,1>F { align16 1H }; csel.le(16) g15<1>F g58<4,4,1>F (abs)g73<4,4,1>F g73<4,4,1>F { align16 1H }; csel.l(16) g69<1>F -g11<4,4,1>F g11<4,4,1>F g67<4,4,1>F { align16 1H }; csel.sat.g(8) g125<1>F g2.3<0,1,0>F g2.2<0,1,0>F g2.0<0,1,0>F { align16 1Q }; csel.g(8) g125<1>F g2.3<0,1,0>F g2.2<0,1,0>F g2.0<0,1,0>F { align16 1Q }; csel.g(16) g122<1>F g2.3<0,1,0>F g2.2<0,1,0>F g2.0<0,1,0>F { align16 1H };
86.214286
94
0.471417
76021a33df362fa89f92f985b353144896e946ca
261
asm
Assembly
programs/oeis/203/A203571.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/203/A203571.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/203/A203571.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A203571: Period length 10: [0, 1, 2, 3, 4, 0, 4, 3, 2, 1] repeated. ; 0,1,2,3,4,0,4,3,2,1,0,1,2,3,4,0,4,3,2,1,0,1,2,3,4,0,4,3,2,1,0,1,2,3,4,0,4,3,2,1,0,1,2,3,4,0,4,3,2,1,0,1,2,3,4,0,4,3,2,1,0 lpb $0 mul $0,9 mod $0,10 lpe lpb $0 mod $0,5 lpe mov $1,$0
21.75
123
0.517241
8e1c6281ddb82435d977a0e522dc9ba2d67d39d4
704
asm
Assembly
programs/oeis/133/A133080.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/133/A133080.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/133/A133080.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A133080: Interpolation operator: Triangle with an even number of zeros in each line followed by 1 or 2 ones. ; 1,1,1,0,0,1,0,0,1,1,0,0,0,0,1,0,0,0,0,1,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 cal $0,128229 ; A natural number transform, inverse of signed A094587. mod $0,2 mov $1,$0
100.571429
501
0.571023
f0e310dc777dbdd2309605679a04b4e79cd6d896
348
asm
Assembly
engine/print_waiting_text.asm
etdv-thevoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
1
2022-01-09T05:28:52.000Z
2022-01-09T05:28:52.000Z
engine/print_waiting_text.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
engine/print_waiting_text.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
PrintWaitingText_orig: ; Name changed so color hack can hijack this coord hl, 3, 10 ld b, $1 ld c, $b ld a, [wIsInBattle] and a jr z, .asm_4c17 call TextBoxBorder jr .asm_4c1a .asm_4c17 call CableClub_TextBoxBorder .asm_4c1a coord hl, 4, 11 ld de, WaitingText call PlaceString ld c, 50 jp DelayFrames WaitingText: db "Waiting...!@"
16.571429
67
0.721264
fae2516197885f9dcad3c6aaae70adebb6ad63dc
755
asm
Assembly
oeis/235/A235888.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/235/A235888.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/235/A235888.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A235888: Number of (n+1) X (3+1) 0..3 arrays with the minimum plus the upper median equal to the lower median plus the maximum in every 2 X 2 subblock. ; Submitted by Jamie Morken(s2) ; 352,568,1096,2536,6952,21928,76456,283816,1091752,4280488,16949416,67453096,269123752,1075118248,4297719976,17185374376,68730486952,274899927208,1099555668136,4398134591656,17592362205352,70369096499368,281475681353896,1125901316128936,4503602445942952,18014404146626728,72057605312217256,288230398700290216,1152921549704003752,4611686108621701288,18446744254098178216,73786976655615459496,295147905900907331752,1180591622160520315048,4722366485755863236776,18889465937251016900776 mov $1,2 pow $1,$0 add $1,6 mul $1,2 sub $1,1 bin $1,2 mov $0,$1 sub $0,34 mul $0,8
53.928571
483
0.833113
6e882f4ccd60e1f2b73a94f3c07881198788bfb2
207
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math32/c/sccz80/cm32_sccz80_fpclassify.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math32/c/sccz80/cm32_sccz80_fpclassify.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math32/c/sccz80/cm32_sccz80_fpclassify.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_fp_math32 PUBLIC cm32_sccz80_fpclassify EXTERN cm32_sccz80_fsread1, m32_fpclassify cm32_sccz80_fpclassify: call cm32_sccz80_fsread1 call m32_fpclassify ld l,a ld h,0 ret
14.785714
42
0.782609
d42a081b2c1c359184583a0b9377c94187a020cc
313,598
asm
Assembly
win32/VC10/Win32/libxml2_Debug/SAX2.asm
txwizard/libxml2_x64_and_ARM
bc19a931370a09ee379d641a7c9a862fecebff3b
[ "MIT" ]
null
null
null
win32/VC10/Win32/libxml2_Debug/SAX2.asm
txwizard/libxml2_x64_and_ARM
bc19a931370a09ee379d641a7c9a862fecebff3b
[ "MIT" ]
null
null
null
win32/VC10/Win32/libxml2_Debug/SAX2.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\SAX2.c .686P .XMM include listing.inc .model flat INCLUDELIB MSVCRTD INCLUDELIB OLDNAMES _DATA SEGMENT COMM _xmlMalloc:DWORD COMM _xmlMallocAtomic:DWORD COMM _xmlRealloc:DWORD COMM _xmlFree:DWORD COMM _xmlMemStrdup:DWORD 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 _xmlXPathNAN:QWORD COMM _xmlXPathPINF:QWORD COMM _xmlXPathNINF:QWORD 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 __A8525CDE_sax2@c DB 01H msvcjmc ENDS PUBLIC _xmlSAX2GetPublicId PUBLIC _xmlSAX2GetSystemId PUBLIC _xmlSAX2SetDocumentLocator PUBLIC _xmlSAX2GetLineNumber PUBLIC _xmlSAX2GetColumnNumber PUBLIC _xmlSAX2IsStandalone PUBLIC _xmlSAX2HasInternalSubset PUBLIC _xmlSAX2HasExternalSubset PUBLIC _xmlSAX2InternalSubset PUBLIC _xmlSAX2ExternalSubset PUBLIC _xmlSAX2GetEntity PUBLIC _xmlSAX2GetParameterEntity PUBLIC _xmlSAX2ResolveEntity PUBLIC _xmlSAX2EntityDecl PUBLIC _xmlSAX2AttributeDecl PUBLIC _xmlSAX2ElementDecl PUBLIC _xmlSAX2NotationDecl PUBLIC _xmlSAX2UnparsedEntityDecl PUBLIC _xmlSAX2StartDocument PUBLIC _xmlSAX2EndDocument PUBLIC _xmlSAX2StartElement PUBLIC _xmlSAX2EndElement PUBLIC _xmlSAX2StartElementNs PUBLIC _xmlSAX2EndElementNs PUBLIC _xmlSAX2Reference PUBLIC _xmlSAX2Characters PUBLIC _xmlSAX2IgnorableWhitespace PUBLIC _xmlSAX2ProcessingInstruction PUBLIC _xmlSAX2Comment PUBLIC _xmlSAX2CDataBlock PUBLIC _xmlSAXDefaultVersion PUBLIC _xmlSAXVersion PUBLIC _xmlSAX2InitDefaultSAXHandler PUBLIC _xmlSAX2InitHtmlDefaultSAXHandler PUBLIC _htmlDefaultSAXHandlerInit PUBLIC _xmlSAX2InitDocbDefaultSAXHandler PUBLIC _docbDefaultSAXHandlerInit PUBLIC _xmlDefaultSAXHandlerInit PUBLIC __JustMyCode_Default PUBLIC ??_C@_0P@PCJPAHLM@out?5of?5memory?6@ ; `string' PUBLIC ??_C@_0BG@CKPEJCG@xmlSAX2InternalSubset@ ; `string' PUBLIC ??_C@_0BG@NJCKJHBI@xmlSAX2ExternalSubset@ ; `string' PUBLIC ??_C@_0EE@PPDHKGIC@Entity?$CI?$CFs?$CJ?5document?5marked?5stan@ ; `string' PUBLIC ??_C@_0BO@LDENBHGA@Failure?5to?5process?5entity?5?$CFs?6@ ; `string' PUBLIC ??_C@_0DD@GCBFDMPE@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@ ; `string' PUBLIC ??_C@_0DD@ECLLADNP@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@ ; `string' PUBLIC ??_C@_0DG@EGJGBEOC@SAX?4xmlSAX2EntityDecl?$CI?$CFs?$CJ?5calle@ ; `string' PUBLIC ??_C@_06IMLNHOMM@xml?3id@ ; `string' PUBLIC ??_C@_0CG@DOFEKNB@xml?3id?5?3?5attribute?5type?5should?5@ ; `string' PUBLIC ??_C@_0DJ@CKOJIFJI@SAX?4xmlSAX2AttributeDecl?$CI?$CFs?$CJ?5ca@ ; `string' PUBLIC ??_C@_0DH@FINDFGFC@SAX?4xmlSAX2ElementDecl?$CI?$CFs?$CJ?5call@ ; `string' PUBLIC ??_C@_0DM@OMFMKHI@SAX?4xmlSAX2NotationDecl?$CI?$CFs?$CJ?5ext@ ; `string' PUBLIC ??_C@_0DI@MAMMGJDO@SAX?4xmlSAX2NotationDecl?$CI?$CFs?$CJ?5cal@ ; `string' PUBLIC ??_C@_0DO@IABCNOGI@SAX?4xmlSAX2UnparsedEntityDecl?$CI?$CF@ ; `string' PUBLIC ??_C@_0BF@BOIPPPAK@xmlSAX2StartDocument@ ; `string' PUBLIC ??_C@_05PPEFOGKI@xmlns@ ; `string' PUBLIC ??_C@_0CE@IJLGNIDG@invalid?5namespace?5declaration?5?8@ ; `string' PUBLIC ??_C@_0CL@HKIDFKGE@Avoid?5attribute?5ending?5with?5?8?3?8@ ; `string' PUBLIC ??_C@_0BE@NLCCMPDP@xmlSAX2StartElement@ ; `string' PUBLIC ??_C@_0BL@KIHPGOD@xmlns?3?5?$CFs?5not?5a?5valid?5URI?6@ ; `string' PUBLIC ??_C@_0BP@JFBGAFGI@xmlns?3?5URI?5?$CFs?5is?5not?5absolute?6@ ; `string' PUBLIC ??_C@_0CE@LNIJHMCD@Empty?5namespace?5name?5for?5prefix@ ; `string' PUBLIC ??_C@_0BO@MNIAHAOJ@xmlns?3?$CFs?3?5?$CFs?5not?5a?5valid?5URI?6@ ; `string' PUBLIC ??_C@_0CC@FFFCEDOK@xmlns?3?$CFs?3?5URI?5?$CFs?5is?5not?5absolut@ ; `string' PUBLIC ??_C@_0DE@HNKDFNKM@Namespace?5prefix?5?$CFs?5of?5attribut@ ; `string' PUBLIC ??_C@_0BO@PGCJKKMF@Attribute?5?$CFs?5in?5?$CFs?5redefined?6@ ; `string' PUBLIC ??_C@_0CO@CCGEJOB@xml?3id?5?3?5attribute?5value?5?$CFs?5is?5@ ; `string' PUBLIC ??_C@_01JLIPDDHJ@?3@ ; `string' PUBLIC ??_C@_0DP@KFNFGALP@standalone?3?5attribute?5?$CFs?5on?5?$CFs?5@ ; `string' PUBLIC ??_C@_0CC@LPGBEFAE@Validation?5failed?3?5no?5DTD?5found@ ; `string' PUBLIC ??_C@_0CE@HAGAOPBB@Namespace?5prefix?5?$CFs?5is?5not?5defi@ ; `string' PUBLIC ??_C@_0BC@IJLHKBBO@xmlSAX2Characters@ ; `string' PUBLIC ??_C@_0BA@DNIHONAO@xmlSAX2TextNode@ ; `string' PUBLIC ??_C@_0BD@HFPHEGLL@xmlSAX2AttributeNs@ ; `string' PUBLIC ??_C@_0BG@CNBDKEMA@xmlSAX2StartElementNs@ ; `string' PUBLIC ??_C@_03PJHHNEEI@xml@ ; `string' PUBLIC ??_C@_0CD@HMPDFDML@Namespace?5prefix?5?$CFs?5was?5not?5fou@ ; `string' PUBLIC ??_C@_0CI@JKKHNIFK@Namespace?5default?5prefix?5was?5no@ ; `string' PUBLIC ??_C@_0CL@EDPCIJGK@xmlSAX2Characters?3?5xmlStrdup?5re@ ; `string' PUBLIC ??_C@_0CC@PCIHKIPC@xmlSAX2Characters?3?5huge?5text?5no@ ; `string' PUBLIC ??_C@_0CF@EADJOGLP@xmlSAX2Characters?5overflow?5prev@ ; `string' EXTRN _xmlStrdup:PROC EXTRN _xmlStrndup:PROC EXTRN _xmlStrchr:PROC EXTRN _xmlStrEqual:PROC EXTRN _xmlStrlen:PROC EXTRN _xmlStrcat:PROC EXTRN _xmlDictReference:PROC EXTRN _xmlDictLookup:PROC EXTRN _xmlDictQLookup:PROC EXTRN _xmlDictOwns:PROC EXTRN _xmlValidateNCName:PROC EXTRN _xmlBuildQName:PROC EXTRN _xmlCreateIntSubset:PROC EXTRN _xmlNewDtd:PROC EXTRN _xmlGetIntSubset:PROC EXTRN _xmlFreeDtd:PROC EXTRN _xmlNewNs:PROC EXTRN _xmlNewDoc:PROC EXTRN _xmlNewNsProp:PROC EXTRN _xmlNewNsPropEatName:PROC EXTRN _xmlNewDocNode:PROC EXTRN _xmlNewDocNodeEatName:PROC EXTRN _xmlNewDocText:PROC EXTRN _xmlNewDocPI:PROC EXTRN _xmlNewDocComment:PROC EXTRN _xmlNewCDataBlock:PROC EXTRN _xmlNewCharRef:PROC EXTRN _xmlNewReference:PROC EXTRN _xmlGetLastChild:PROC EXTRN _xmlAddChild:PROC EXTRN _xmlAddChildList:PROC EXTRN _xmlAddSibling:PROC EXTRN _xmlUnlinkNode:PROC EXTRN _xmlTextConcat:PROC EXTRN _xmlFreeNode:PROC EXTRN _xmlSearchNs:PROC EXTRN _xmlSetNs:PROC EXTRN _xmlStringGetNodeList:PROC EXTRN _xmlStringLenGetNodeList:PROC EXTRN _xmlParserError:PROC EXTRN _xmlParserWarning:PROC EXTRN ___xmlRaiseError:PROC EXTRN _xmlAddNotationDecl:PROC EXTRN _xmlAddElementDecl:PROC EXTRN _xmlFreeEnumeration:PROC EXTRN _xmlAddAttributeDecl:PROC EXTRN _xmlAddID:PROC EXTRN _xmlIsID:PROC EXTRN _xmlAddRef:PROC EXTRN _xmlIsRef:PROC EXTRN _xmlValidateRoot:PROC EXTRN _xmlValidateElementDecl:PROC EXTRN _xmlValidNormalizeAttributeValue:PROC EXTRN _xmlValidCtxtNormalizeAttributeValue:PROC EXTRN _xmlValidateAttributeDecl:PROC EXTRN _xmlValidateNotationDecl:PROC EXTRN _xmlValidateDtdFinal:PROC EXTRN _xmlValidateOneElement:PROC EXTRN _xmlValidateOneAttribute:PROC EXTRN _xmlValidateOneNamespace:PROC EXTRN _xmlValidateDocumentFinal:PROC EXTRN _xmlGetDtdQAttrDesc:PROC EXTRN _xmlGetDtdQElementDesc:PROC EXTRN _xmlAddDocEntity:PROC EXTRN _xmlAddDtdEntity:PROC EXTRN _xmlGetPredefinedEntity:PROC EXTRN _xmlGetDocEntity:PROC EXTRN _xmlGetParameterEntity:PROC EXTRN _xmlDetectCharEncoding:PROC EXTRN _xmlParseCtxtExternalEntity:PROC EXTRN _xmlParserAddNodeInfo:PROC EXTRN _xmlLoadExternalEntity:PROC EXTRN ___docbDefaultSAXHandler:PROC EXTRN ___htmlDefaultSAXHandler:PROC EXTRN ___xmlDefaultSAXHandler:PROC EXTRN ___xmlRegisterNodeDefaultValue:PROC EXTRN _xmlSwitchEncoding:PROC EXTRN _xmlPushInput:PROC EXTRN _xmlPopInput:PROC EXTRN _xmlFreeInputStream:PROC EXTRN _xmlSplitQName:PROC EXTRN _xmlParseExternalSubset:PROC EXTRN _xmlStringDecodeEntities:PROC EXTRN _xmlStringLenDecodeEntities:PROC EXTRN _nodePush:PROC EXTRN _nodePop:PROC EXTRN _xmlErrMemory:PROC EXTRN _xmlBuildURI:PROC EXTRN _xmlParseURI:PROC EXTRN _xmlFreeURI:PROC EXTRN _xmlCanonicPath:PROC EXTRN _xmlPathToURI:PROC EXTRN _htmlNewDocNoDtD:PROC EXTRN _htmlIsBooleanAttr:PROC EXTRN @_RTC_CheckStackVars@8:PROC EXTRN @__CheckForDebuggerJustMyCode@4:PROC EXTRN __RTC_CheckEsp:PROC EXTRN __RTC_InitBase:PROC EXTRN __RTC_Shutdown:PROC EXTRN _memcpy:PROC EXTRN _memset:PROC EXTRN ___xmlRegisterCallbacks:DWORD EXTRN _xmlStringText:BYTE ; COMDAT rtc$TMZ rtc$TMZ SEGMENT __RTC_Shutdown.rtc$TMZ DD FLAT:__RTC_Shutdown rtc$TMZ ENDS ; COMDAT rtc$IMZ rtc$IMZ SEGMENT __RTC_InitBase.rtc$IMZ DD FLAT:__RTC_InitBase rtc$IMZ ENDS _DATA SEGMENT _xmlSAX2DefaultVersionValue DD 02H _DATA ENDS ; COMDAT ??_C@_0CF@EADJOGLP@xmlSAX2Characters?5overflow?5prev@ CONST SEGMENT ??_C@_0CF@EADJOGLP@xmlSAX2Characters?5overflow?5prev@ DB 'xmlSAX2Characte' DB 'rs overflow prevented', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CC@PCIHKIPC@xmlSAX2Characters?3?5huge?5text?5no@ CONST SEGMENT ??_C@_0CC@PCIHKIPC@xmlSAX2Characters?3?5huge?5text?5no@ DB 'xmlSAX2Charac' DB 'ters: huge text node', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CL@EDPCIJGK@xmlSAX2Characters?3?5xmlStrdup?5re@ CONST SEGMENT ??_C@_0CL@EDPCIJGK@xmlSAX2Characters?3?5xmlStrdup?5re@ DB 'xmlSAX2Charact' DB 'ers: xmlStrdup returned NULL', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CI@JKKHNIFK@Namespace?5default?5prefix?5was?5no@ CONST SEGMENT ??_C@_0CI@JKKHNIFK@Namespace?5default?5prefix?5was?5no@ DB 'Namespace def' DB 'ault prefix was not found', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CD@HMPDFDML@Namespace?5prefix?5?$CFs?5was?5not?5fou@ CONST SEGMENT ??_C@_0CD@HMPDFDML@Namespace?5prefix?5?$CFs?5was?5not?5fou@ DB 'Namespace' DB ' prefix %s was not found', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_03PJHHNEEI@xml@ CONST SEGMENT ??_C@_03PJHHNEEI@xml@ DB 'xml', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BG@CNBDKEMA@xmlSAX2StartElementNs@ CONST SEGMENT ??_C@_0BG@CNBDKEMA@xmlSAX2StartElementNs@ DB 'xmlSAX2StartElementNs', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BD@HFPHEGLL@xmlSAX2AttributeNs@ CONST SEGMENT ??_C@_0BD@HFPHEGLL@xmlSAX2AttributeNs@ DB 'xmlSAX2AttributeNs', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BA@DNIHONAO@xmlSAX2TextNode@ CONST SEGMENT ??_C@_0BA@DNIHONAO@xmlSAX2TextNode@ DB 'xmlSAX2TextNode', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BC@IJLHKBBO@xmlSAX2Characters@ CONST SEGMENT ??_C@_0BC@IJLHKBBO@xmlSAX2Characters@ DB 'xmlSAX2Characters', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CE@HAGAOPBB@Namespace?5prefix?5?$CFs?5is?5not?5defi@ CONST SEGMENT ??_C@_0CE@HAGAOPBB@Namespace?5prefix?5?$CFs?5is?5not?5defi@ DB 'Namespace' DB ' prefix %s is not defined', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CC@LPGBEFAE@Validation?5failed?3?5no?5DTD?5found@ CONST SEGMENT ??_C@_0CC@LPGBEFAE@Validation?5failed?3?5no?5DTD?5found@ DB 'Validation f' DB 'ailed: no DTD found !', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DP@KFNFGALP@standalone?3?5attribute?5?$CFs?5on?5?$CFs?5@ CONST SEGMENT ??_C@_0DP@KFNFGALP@standalone?3?5attribute?5?$CFs?5on?5?$CFs?5@ DB 'stand' DB 'alone: attribute %s on %s defaulted from external subset', 0aH DB 00H ; `string' CONST ENDS ; COMDAT ??_C@_01JLIPDDHJ@?3@ CONST SEGMENT ??_C@_01JLIPDDHJ@?3@ DB ':', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CO@CCGEJOB@xml?3id?5?3?5attribute?5value?5?$CFs?5is?5@ CONST SEGMENT ??_C@_0CO@CCGEJOB@xml?3id?5?3?5attribute?5value?5?$CFs?5is?5@ DB 'xml:id ' DB ': attribute value %s is not an NCName', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BO@PGCJKKMF@Attribute?5?$CFs?5in?5?$CFs?5redefined?6@ CONST SEGMENT ??_C@_0BO@PGCJKKMF@Attribute?5?$CFs?5in?5?$CFs?5redefined?6@ DB 'Attribut' DB 'e %s in %s redefined', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DE@HNKDFNKM@Namespace?5prefix?5?$CFs?5of?5attribut@ CONST SEGMENT ??_C@_0DE@HNKDFNKM@Namespace?5prefix?5?$CFs?5of?5attribut@ DB 'Namespace ' DB 'prefix %s of attribute %s is not defined', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CC@FFFCEDOK@xmlns?3?$CFs?3?5URI?5?$CFs?5is?5not?5absolut@ CONST SEGMENT ??_C@_0CC@FFFCEDOK@xmlns?3?$CFs?3?5URI?5?$CFs?5is?5not?5absolut@ DB 'xmln' DB 's:%s: URI %s is not absolute', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BO@MNIAHAOJ@xmlns?3?$CFs?3?5?$CFs?5not?5a?5valid?5URI?6@ CONST SEGMENT ??_C@_0BO@MNIAHAOJ@xmlns?3?$CFs?3?5?$CFs?5not?5a?5valid?5URI?6@ DB 'xmlns' DB ':%s: %s not a valid URI', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CE@LNIJHMCD@Empty?5namespace?5name?5for?5prefix@ CONST SEGMENT ??_C@_0CE@LNIJHMCD@Empty?5namespace?5name?5for?5prefix@ DB 'Empty namespa' DB 'ce name for prefix %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BP@JFBGAFGI@xmlns?3?5URI?5?$CFs?5is?5not?5absolute?6@ CONST SEGMENT ??_C@_0BP@JFBGAFGI@xmlns?3?5URI?5?$CFs?5is?5not?5absolute?6@ DB 'xmlns: U' DB 'RI %s is not absolute', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BL@KIHPGOD@xmlns?3?5?$CFs?5not?5a?5valid?5URI?6@ CONST SEGMENT ??_C@_0BL@KIHPGOD@xmlns?3?5?$CFs?5not?5a?5valid?5URI?6@ DB 'xmlns: %s not' DB ' a valid URI', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BE@NLCCMPDP@xmlSAX2StartElement@ CONST SEGMENT ??_C@_0BE@NLCCMPDP@xmlSAX2StartElement@ DB 'xmlSAX2StartElement', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CL@HKIDFKGE@Avoid?5attribute?5ending?5with?5?8?3?8@ CONST SEGMENT ??_C@_0CL@HKIDFKGE@Avoid?5attribute?5ending?5with?5?8?3?8@ DB 'Avoid attr' DB 'ibute ending with '':'' like ''%s''', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CE@IJLGNIDG@invalid?5namespace?5declaration?5?8@ CONST SEGMENT ??_C@_0CE@IJLGNIDG@invalid?5namespace?5declaration?5?8@ DB 'invalid names' DB 'pace declaration ''%s''', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_05PPEFOGKI@xmlns@ CONST SEGMENT ??_C@_05PPEFOGKI@xmlns@ DB 'xmlns', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BF@BOIPPPAK@xmlSAX2StartDocument@ CONST SEGMENT ??_C@_0BF@BOIPPPAK@xmlSAX2StartDocument@ DB 'xmlSAX2StartDocument', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DO@IABCNOGI@SAX?4xmlSAX2UnparsedEntityDecl?$CI?$CF@ CONST SEGMENT ??_C@_0DO@IABCNOGI@SAX?4xmlSAX2UnparsedEntityDecl?$CI?$CF@ DB 'SAX.xmlSAX' DB '2UnparsedEntityDecl(%s) called while not in subset', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DI@MAMMGJDO@SAX?4xmlSAX2NotationDecl?$CI?$CFs?$CJ?5cal@ CONST SEGMENT ??_C@_0DI@MAMMGJDO@SAX?4xmlSAX2NotationDecl?$CI?$CFs?$CJ?5cal@ DB 'SAX.xm' DB 'lSAX2NotationDecl(%s) called while not in subset', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DM@OMFMKHI@SAX?4xmlSAX2NotationDecl?$CI?$CFs?$CJ?5ext@ CONST SEGMENT ??_C@_0DM@OMFMKHI@SAX?4xmlSAX2NotationDecl?$CI?$CFs?$CJ?5ext@ DB 'SAX.xml' DB 'SAX2NotationDecl(%s) externalID or PublicID missing', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DH@FINDFGFC@SAX?4xmlSAX2ElementDecl?$CI?$CFs?$CJ?5call@ CONST SEGMENT ??_C@_0DH@FINDFGFC@SAX?4xmlSAX2ElementDecl?$CI?$CFs?$CJ?5call@ DB 'SAX.xm' DB 'lSAX2ElementDecl(%s) called while not in subset', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DJ@CKOJIFJI@SAX?4xmlSAX2AttributeDecl?$CI?$CFs?$CJ?5ca@ CONST SEGMENT ??_C@_0DJ@CKOJIFJI@SAX?4xmlSAX2AttributeDecl?$CI?$CFs?$CJ?5ca@ DB 'SAX.xm' DB 'lSAX2AttributeDecl(%s) called while not in subset', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CG@DOFEKNB@xml?3id?5?3?5attribute?5type?5should?5@ CONST SEGMENT ??_C@_0CG@DOFEKNB@xml?3id?5?3?5attribute?5type?5should?5@ DB 'xml:id : at' DB 'tribute type should be ID', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_06IMLNHOMM@xml?3id@ CONST SEGMENT ??_C@_06IMLNHOMM@xml?3id@ DB 'xml:id', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DG@EGJGBEOC@SAX?4xmlSAX2EntityDecl?$CI?$CFs?$CJ?5calle@ CONST SEGMENT ??_C@_0DG@EGJGBEOC@SAX?4xmlSAX2EntityDecl?$CI?$CFs?$CJ?5calle@ DB 'SAX.xm' DB 'lSAX2EntityDecl(%s) called while not in subset', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DD@ECLLADNP@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@ CONST SEGMENT ??_C@_0DD@ECLLADNP@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@ DB 'Enti' DB 'ty(%s) already defined in the external subset', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DD@GCBFDMPE@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@ CONST SEGMENT ??_C@_0DD@GCBFDMPE@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@ DB 'Enti' DB 'ty(%s) already defined in the internal subset', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BO@LDENBHGA@Failure?5to?5process?5entity?5?$CFs?6@ CONST SEGMENT ??_C@_0BO@LDENBHGA@Failure?5to?5process?5entity?5?$CFs?6@ DB 'Failure to ' DB 'process entity %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EE@PPDHKGIC@Entity?$CI?$CFs?$CJ?5document?5marked?5stan@ CONST SEGMENT ??_C@_0EE@PPDHKGIC@Entity?$CI?$CFs?$CJ?5document?5marked?5stan@ DB 'Entit' DB 'y(%s) document marked standalone but requires external subset' DB 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BG@NJCKJHBI@xmlSAX2ExternalSubset@ CONST SEGMENT ??_C@_0BG@NJCKJHBI@xmlSAX2ExternalSubset@ DB 'xmlSAX2ExternalSubset', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BG@CKPEJCG@xmlSAX2InternalSubset@ CONST SEGMENT ??_C@_0BG@CKPEJCG@xmlSAX2InternalSubset@ DB 'xmlSAX2InternalSubset', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0P@PCJPAHLM@out?5of?5memory?6@ CONST SEGMENT ??_C@_0P@PCJPAHLM@out?5of?5memory?6@ DB 'out of memory', 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: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2AttributeNs _TEXT SEGMENT _fullname$1 = -92 ; size = 4 _fn$2 = -84 ; size = 50 _nvalnorm$3 = -28 ; size = 4 _tmp$4 = -24 ; size = 4 _tmp$5 = -20 ; size = 4 _prev$6 = -16 ; size = 4 _dup$ = -12 ; size = 4 _namespace$ = -8 ; size = 4 _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _localname$ = 12 ; size = 4 _prefix$ = 16 ; size = 4 _value$ = 20 ; size = 4 _valueend$ = 24 ; size = 4 _xmlSAX2AttributeNs PROC ; COMDAT ; 1983 : { push ebp mov ebp, esp sub esp, 92 ; 0000005cH push esi push edi lea edi, DWORD PTR [ebp-92] mov ecx, 23 ; 00000017H mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 1984 : xmlAttrPtr ret; ; 1985 : xmlNsPtr namespace = NULL; mov DWORD PTR _namespace$[ebp], 0 ; 1986 : xmlChar *dup = NULL; mov DWORD PTR _dup$[ebp], 0 ; 1987 : ; 1988 : /* ; 1989 : * Note: if prefix == NULL, the attribute is not in the default namespace ; 1990 : */ ; 1991 : if (prefix != NULL) cmp DWORD PTR _prefix$[ebp], 0 je SHORT $LN6@xmlSAX2Att ; 1992 : namespace = xmlSearchNs(ctxt->myDoc, ctxt->node, prefix); mov eax, DWORD PTR _prefix$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlSearchNs add esp, 12 ; 0000000cH mov DWORD PTR _namespace$[ebp], eax $LN6@xmlSAX2Att: ; 1993 : ; 1994 : /* ; 1995 : * allocate the node ; 1996 : */ ; 1997 : if (ctxt->freeAttrs != NULL) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+380], 0 je $LN7@xmlSAX2Att ; 1998 : ret = ctxt->freeAttrs; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+380] mov DWORD PTR _ret$[ebp], ecx ; 1999 : ctxt->freeAttrs = ret->next; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR _ret$[ebp] mov ecx, DWORD PTR [eax+24] mov DWORD PTR [edx+380], ecx ; 2000 : ctxt->freeAttrsNr--; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+376] sub eax, 1 mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+376], eax ; 2001 : memset(ret, 0, sizeof(xmlAttr)); push 48 ; 00000030H push 0 mov edx, DWORD PTR _ret$[ebp] push edx call _memset add esp, 12 ; 0000000cH ; 2002 : ret->type = XML_ATTRIBUTE_NODE; mov eax, DWORD PTR _ret$[ebp] mov DWORD PTR [eax+4], 2 ; 2003 : ; 2004 : ret->parent = ctxt->node; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+52] mov DWORD PTR [ecx+20], eax ; 2005 : ret->doc = ctxt->myDoc; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] mov DWORD PTR [ecx+32], eax ; 2006 : ret->ns = namespace; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR _namespace$[ebp] mov DWORD PTR [ecx+36], edx ; 2007 : ; 2008 : if (ctxt->dictNames) mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+364], 0 je SHORT $LN9@xmlSAX2Att ; 2009 : ret->name = localname; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR _localname$[ebp] mov DWORD PTR [ecx+8], edx jmp SHORT $LN10@xmlSAX2Att $LN9@xmlSAX2Att: ; 2010 : else ; 2011 : ret->name = xmlStrdup(localname); mov eax, DWORD PTR _localname$[ebp] push eax call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+8], eax $LN10@xmlSAX2Att: ; 2012 : ; 2013 : /* link at the end to preserv order, TODO speed up with a last */ ; 2014 : if (ctxt->node->properties == NULL) { mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+52] cmp DWORD PTR [eax+44], 0 jne SHORT $LN11@xmlSAX2Att ; 2015 : ctxt->node->properties = ret; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] mov eax, DWORD PTR _ret$[ebp] mov DWORD PTR [edx+44], eax ; 2016 : } else { jmp SHORT $LN12@xmlSAX2Att $LN11@xmlSAX2Att: ; 2017 : xmlAttrPtr prev = ctxt->node->properties; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] mov eax, DWORD PTR [edx+44] mov DWORD PTR _prev$6[ebp], eax $LN2@xmlSAX2Att: ; 2018 : ; 2019 : while (prev->next != NULL) prev = prev->next; mov ecx, DWORD PTR _prev$6[ebp] cmp DWORD PTR [ecx+24], 0 je SHORT $LN3@xmlSAX2Att mov edx, DWORD PTR _prev$6[ebp] mov eax, DWORD PTR [edx+24] mov DWORD PTR _prev$6[ebp], eax jmp SHORT $LN2@xmlSAX2Att $LN3@xmlSAX2Att: ; 2020 : prev->next = ret; mov ecx, DWORD PTR _prev$6[ebp] mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+24], edx ; 2021 : ret->prev = prev; mov eax, DWORD PTR _ret$[ebp] mov ecx, DWORD PTR _prev$6[ebp] mov DWORD PTR [eax+28], ecx $LN12@xmlSAX2Att: ; 2022 : } ; 2023 : ; 2024 : if ((__xmlRegisterCallbacks) && (xmlRegisterNodeDefaultValue)) cmp DWORD PTR ___xmlRegisterCallbacks, 0 je SHORT $LN13@xmlSAX2Att call ___xmlRegisterNodeDefaultValue cmp DWORD PTR [eax], 0 je SHORT $LN13@xmlSAX2Att ; 2025 : xmlRegisterNodeDefaultValue((xmlNodePtr)ret); mov esi, esp mov edx, DWORD PTR _ret$[ebp] push edx call ___xmlRegisterNodeDefaultValue mov eax, DWORD PTR [eax] call eax add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN13@xmlSAX2Att: ; 2026 : } else { jmp SHORT $LN8@xmlSAX2Att $LN7@xmlSAX2Att: ; 2027 : if (ctxt->dictNames) mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+364], 0 je SHORT $LN14@xmlSAX2Att ; 2028 : ret = xmlNewNsPropEatName(ctxt->node, namespace, push 0 mov edx, DWORD PTR _localname$[ebp] push edx mov eax, DWORD PTR _namespace$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] push edx call _xmlNewNsPropEatName add esp, 16 ; 00000010H mov DWORD PTR _ret$[ebp], eax jmp SHORT $LN15@xmlSAX2Att $LN14@xmlSAX2Att: ; 2029 : (xmlChar *) localname, NULL); ; 2030 : else ; 2031 : ret = xmlNewNsProp(ctxt->node, namespace, localname, NULL); push 0 mov eax, DWORD PTR _localname$[ebp] push eax mov ecx, DWORD PTR _namespace$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+52] push eax call _xmlNewNsProp add esp, 16 ; 00000010H mov DWORD PTR _ret$[ebp], eax $LN15@xmlSAX2Att: ; 2032 : if (ret == NULL) { cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN8@xmlSAX2Att ; 2033 : xmlErrMemory(ctxt, "xmlSAX2AttributeNs"); push OFFSET ??_C@_0BD@HFPHEGLL@xmlSAX2AttributeNs@ mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrMemory add esp, 8 ; 2034 : return; jmp $LN1@xmlSAX2Att $LN8@xmlSAX2Att: ; 2035 : } ; 2036 : } ; 2037 : ; 2038 : if ((ctxt->replaceEntities == 0) && (!ctxt->html)) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+16], 0 jne $LN17@xmlSAX2Att mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+32], 0 jne $LN17@xmlSAX2Att ; 2039 : xmlNodePtr tmp; ; 2040 : ; 2041 : /* ; 2042 : * We know that if there is an entity reference, then ; 2043 : * the string has been dup'ed and terminates with 0 ; 2044 : * otherwise with ' or " ; 2045 : */ ; 2046 : if (*valueend != 0) { mov ecx, DWORD PTR _valueend$[ebp] movzx edx, BYTE PTR [ecx] test edx, edx je SHORT $LN19@xmlSAX2Att ; 2047 : tmp = xmlSAX2TextNode(ctxt, value, valueend - value); mov eax, DWORD PTR _valueend$[ebp] sub eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlSAX2TextNode add esp, 12 ; 0000000cH mov DWORD PTR _tmp$5[ebp], eax ; 2048 : ret->children = tmp; mov eax, DWORD PTR _ret$[ebp] mov ecx, DWORD PTR _tmp$5[ebp] mov DWORD PTR [eax+12], ecx ; 2049 : ret->last = tmp; mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR _tmp$5[ebp] mov DWORD PTR [edx+16], eax ; 2050 : if (tmp != NULL) { cmp DWORD PTR _tmp$5[ebp], 0 je SHORT $LN21@xmlSAX2Att ; 2051 : tmp->doc = ret->doc; mov ecx, DWORD PTR _tmp$5[ebp] mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR [edx+32] mov DWORD PTR [ecx+32], eax ; 2052 : tmp->parent = (xmlNodePtr) ret; mov ecx, DWORD PTR _tmp$5[ebp] mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+20], edx $LN21@xmlSAX2Att: ; 2053 : } ; 2054 : } else { jmp SHORT $LN20@xmlSAX2Att $LN19@xmlSAX2Att: ; 2055 : ret->children = xmlStringLenGetNodeList(ctxt->myDoc, value, mov eax, DWORD PTR _valueend$[ebp] sub eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlStringLenGetNodeList add esp, 12 ; 0000000cH mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+12], eax ; 2056 : valueend - value); ; 2057 : tmp = ret->children; mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR [edx+12] mov DWORD PTR _tmp$5[ebp], eax $LN4@xmlSAX2Att: ; 2058 : while (tmp != NULL) { cmp DWORD PTR _tmp$5[ebp], 0 je SHORT $LN20@xmlSAX2Att ; 2059 : tmp->doc = ret->doc; mov ecx, DWORD PTR _tmp$5[ebp] mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR [edx+32] mov DWORD PTR [ecx+32], eax ; 2060 : tmp->parent = (xmlNodePtr) ret; mov ecx, DWORD PTR _tmp$5[ebp] mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+20], edx ; 2061 : if (tmp->next == NULL) mov eax, DWORD PTR _tmp$5[ebp] cmp DWORD PTR [eax+24], 0 jne SHORT $LN22@xmlSAX2Att ; 2062 : ret->last = tmp; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR _tmp$5[ebp] mov DWORD PTR [ecx+16], edx $LN22@xmlSAX2Att: ; 2063 : tmp = tmp->next; mov eax, DWORD PTR _tmp$5[ebp] mov ecx, DWORD PTR [eax+24] mov DWORD PTR _tmp$5[ebp], ecx ; 2064 : } jmp SHORT $LN4@xmlSAX2Att $LN20@xmlSAX2Att: ; 2065 : } jmp SHORT $LN18@xmlSAX2Att $LN17@xmlSAX2Att: ; 2066 : } else if (value != NULL) { cmp DWORD PTR _value$[ebp], 0 je SHORT $LN18@xmlSAX2Att ; 2067 : xmlNodePtr tmp; ; 2068 : ; 2069 : tmp = xmlSAX2TextNode(ctxt, value, valueend - value); mov edx, DWORD PTR _valueend$[ebp] sub edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlSAX2TextNode add esp, 12 ; 0000000cH mov DWORD PTR _tmp$4[ebp], eax ; 2070 : ret->children = tmp; mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR _tmp$4[ebp] mov DWORD PTR [edx+12], eax ; 2071 : ret->last = tmp; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR _tmp$4[ebp] mov DWORD PTR [ecx+16], edx ; 2072 : if (tmp != NULL) { cmp DWORD PTR _tmp$4[ebp], 0 je SHORT $LN18@xmlSAX2Att ; 2073 : tmp->doc = ret->doc; mov eax, DWORD PTR _tmp$4[ebp] mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR [ecx+32] mov DWORD PTR [eax+32], edx ; 2074 : tmp->parent = (xmlNodePtr) ret; mov eax, DWORD PTR _tmp$4[ebp] mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [eax+20], ecx $LN18@xmlSAX2Att: ; 2075 : } ; 2076 : } ; 2077 : ; 2078 : #ifdef LIBXML_VALID_ENABLED ; 2079 : if ((!ctxt->html) && ctxt->validate && ctxt->wellFormed && ; 2080 : ctxt->myDoc && ctxt->myDoc->intSubset) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+32], 0 jne $LN25@xmlSAX2Att mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+104], 0 je $LN25@xmlSAX2Att mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+12], 0 je $LN25@xmlSAX2Att mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+8], 0 je $LN25@xmlSAX2Att mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] cmp DWORD PTR [ecx+44], 0 je $LN25@xmlSAX2Att ; 2081 : /* ; 2082 : * If we don't substitute entities, the validation should be ; 2083 : * done on a value with replaced entities anyway. ; 2084 : */ ; 2085 : if (!ctxt->replaceEntities) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+16], 0 jne $LN27@xmlSAX2Att ; 2086 : dup = xmlSAX2DecodeAttrEntities(ctxt, value, valueend); mov eax, DWORD PTR _valueend$[ebp] push eax mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlSAX2DecodeAttrEntities add esp, 12 ; 0000000cH mov DWORD PTR _dup$[ebp], eax ; 2087 : if (dup == NULL) { cmp DWORD PTR _dup$[ebp], 0 jne $LN29@xmlSAX2Att ; 2088 : if (*valueend == 0) { mov eax, DWORD PTR _valueend$[ebp] movzx ecx, BYTE PTR [eax] test ecx, ecx jne SHORT $LN31@xmlSAX2Att ; 2089 : ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt, mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _ret$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _ctxt$[ebp] add edx, 108 ; 0000006cH push edx call _xmlValidateOneAttribute add esp, 20 ; 00000014H mov ecx, DWORD PTR _ctxt$[ebp] and eax, DWORD PTR [ecx+100] mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+100], eax ; 2090 : ctxt->myDoc, ctxt->node, ret, value); ; 2091 : } else { jmp SHORT $LN32@xmlSAX2Att $LN31@xmlSAX2Att: ; 2092 : /* ; 2093 : * That should already be normalized. ; 2094 : * cheaper to finally allocate here than duplicate ; 2095 : * entry points in the full validation code ; 2096 : */ ; 2097 : dup = xmlStrndup(value, valueend - value); mov eax, DWORD PTR _valueend$[ebp] sub eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _value$[ebp] push ecx call _xmlStrndup add esp, 8 mov DWORD PTR _dup$[ebp], eax ; 2098 : ; 2099 : ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt, mov edx, DWORD PTR _dup$[ebp] push edx mov eax, DWORD PTR _ret$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _ctxt$[ebp] add edx, 108 ; 0000006cH push edx call _xmlValidateOneAttribute add esp, 20 ; 00000014H mov ecx, DWORD PTR _ctxt$[ebp] and eax, DWORD PTR [ecx+100] mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+100], eax $LN32@xmlSAX2Att: ; 2100 : ctxt->myDoc, ctxt->node, ret, dup); ; 2101 : } ; 2102 : } else { jmp $LN30@xmlSAX2Att $LN29@xmlSAX2Att: ; 2103 : /* ; 2104 : * dup now contains a string of the flattened attribute ; 2105 : * content with entities substitued. Check if we need to ; 2106 : * apply an extra layer of normalization. ; 2107 : * It need to be done twice ... it's an extra burden related ; 2108 : * to the ability to keep references in attributes ; 2109 : */ ; 2110 : if (ctxt->attsSpecial != NULL) { mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+352], 0 je $LN33@xmlSAX2Att ; 2111 : xmlChar *nvalnorm; ; 2112 : xmlChar fn[50]; ; 2113 : xmlChar *fullname; ; 2114 : ; 2115 : fullname = xmlBuildQName(localname, prefix, fn, 50); push 50 ; 00000032H lea ecx, DWORD PTR _fn$2[ebp] push ecx mov edx, DWORD PTR _prefix$[ebp] push edx mov eax, DWORD PTR _localname$[ebp] push eax call _xmlBuildQName add esp, 16 ; 00000010H mov DWORD PTR _fullname$1[ebp], eax ; 2116 : if (fullname != NULL) { cmp DWORD PTR _fullname$1[ebp], 0 je $LN33@xmlSAX2Att ; 2117 : ctxt->vctxt.valid = 1; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+144], 1 ; 2118 : nvalnorm = xmlValidCtxtNormalizeAttributeValue( mov edx, DWORD PTR _dup$[ebp] push edx mov eax, DWORD PTR _fullname$1[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _ctxt$[ebp] add edx, 108 ; 0000006cH push edx call _xmlValidCtxtNormalizeAttributeValue add esp, 20 ; 00000014H mov DWORD PTR _nvalnorm$3[ebp], eax ; 2119 : &ctxt->vctxt, ctxt->myDoc, ; 2120 : ctxt->node, fullname, dup); ; 2121 : if (ctxt->vctxt.valid != 1) mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+144], 1 je SHORT $LN35@xmlSAX2Att ; 2122 : ctxt->valid = 0; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+100], 0 $LN35@xmlSAX2Att: ; 2123 : ; 2124 : if ((fullname != fn) && (fullname != localname)) lea edx, DWORD PTR _fn$2[ebp] cmp DWORD PTR _fullname$1[ebp], edx je SHORT $LN36@xmlSAX2Att mov eax, DWORD PTR _fullname$1[ebp] cmp eax, DWORD PTR _localname$[ebp] je SHORT $LN36@xmlSAX2Att ; 2125 : xmlFree(fullname); mov esi, esp mov ecx, DWORD PTR _fullname$1[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN36@xmlSAX2Att: ; 2126 : if (nvalnorm != NULL) { cmp DWORD PTR _nvalnorm$3[ebp], 0 je SHORT $LN33@xmlSAX2Att ; 2127 : xmlFree(dup); mov esi, esp mov edx, DWORD PTR _dup$[ebp] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 2128 : dup = nvalnorm; mov eax, DWORD PTR _nvalnorm$3[ebp] mov DWORD PTR _dup$[ebp], eax $LN33@xmlSAX2Att: ; 2129 : } ; 2130 : } ; 2131 : } ; 2132 : ; 2133 : ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt, mov ecx, DWORD PTR _dup$[ebp] push ecx mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+52] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _ctxt$[ebp] add ecx, 108 ; 0000006cH push ecx call _xmlValidateOneAttribute add esp, 20 ; 00000014H mov edx, DWORD PTR _ctxt$[ebp] and eax, DWORD PTR [edx+100] mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+100], eax $LN30@xmlSAX2Att: ; 2134 : ctxt->myDoc, ctxt->node, ret, dup); ; 2135 : } ; 2136 : } else { jmp SHORT $LN28@xmlSAX2Att $LN27@xmlSAX2Att: ; 2137 : /* ; 2138 : * if entities already have been substitued, then ; 2139 : * the attribute as passed is already normalized ; 2140 : */ ; 2141 : dup = xmlStrndup(value, valueend - value); mov edx, DWORD PTR _valueend$[ebp] sub edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _value$[ebp] push eax call _xmlStrndup add esp, 8 mov DWORD PTR _dup$[ebp], eax ; 2142 : ; 2143 : ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt, mov ecx, DWORD PTR _dup$[ebp] push ecx mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+52] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _ctxt$[ebp] add ecx, 108 ; 0000006cH push ecx call _xmlValidateOneAttribute add esp, 20 ; 00000014H mov edx, DWORD PTR _ctxt$[ebp] and eax, DWORD PTR [edx+100] mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+100], eax $LN28@xmlSAX2Att: ; 2144 : ctxt->myDoc, ctxt->node, ret, dup); ; 2145 : } ; 2146 : } else jmp $LN26@xmlSAX2Att $LN25@xmlSAX2Att: ; 2147 : #endif /* LIBXML_VALID_ENABLED */ ; 2148 : if (((ctxt->loadsubset & XML_SKIP_IDS) == 0) && mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+276] and eax, 8 jne $LN26@xmlSAX2Att mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+16], 0 jne SHORT $LN40@xmlSAX2Att mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+96], 2 jne SHORT $LN39@xmlSAX2Att $LN40@xmlSAX2Att: mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+16], 0 je $LN26@xmlSAX2Att mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+216], 0 jne $LN26@xmlSAX2Att $LN39@xmlSAX2Att: ; 2149 : (((ctxt->replaceEntities == 0) && (ctxt->external != 2)) || ; 2150 : ((ctxt->replaceEntities != 0) && (ctxt->inSubset == 0)))) { ; 2151 : /* ; 2152 : * when validating, the ID registration is done at the attribute ; 2153 : * validation level. Otherwise we have to do specific handling here. ; 2154 : */ ; 2155 : if ((prefix == ctxt->str_xml) && ; 2156 : (localname[0] == 'i') && (localname[1] == 'd') && mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR _prefix$[ebp] cmp eax, DWORD PTR [edx+312] jne $LN41@xmlSAX2Att mov ecx, 1 imul edx, ecx, 0 mov eax, DWORD PTR _localname$[ebp] movzx ecx, BYTE PTR [eax+edx] cmp ecx, 105 ; 00000069H jne $LN41@xmlSAX2Att mov edx, 1 shl edx, 0 mov eax, DWORD PTR _localname$[ebp] movzx ecx, BYTE PTR [eax+edx] cmp ecx, 100 ; 00000064H jne SHORT $LN41@xmlSAX2Att mov edx, 1 shl edx, 1 mov eax, DWORD PTR _localname$[ebp] movzx ecx, BYTE PTR [eax+edx] test ecx, ecx jne SHORT $LN41@xmlSAX2Att ; 2157 : (localname[2] == 0)) { ; 2158 : /* ; 2159 : * Add the xml:id value ; 2160 : * ; 2161 : * Open issue: normalization of the value. ; 2162 : */ ; 2163 : if (dup == NULL) cmp DWORD PTR _dup$[ebp], 0 jne SHORT $LN43@xmlSAX2Att ; 2164 : dup = xmlStrndup(value, valueend - value); mov edx, DWORD PTR _valueend$[ebp] sub edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _value$[ebp] push eax call _xmlStrndup add esp, 8 mov DWORD PTR _dup$[ebp], eax $LN43@xmlSAX2Att: ; 2165 : #if defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_DOCB_ENABLED) || defined(LIBXML_LEGACY_ENABLED) ; 2166 : #ifdef LIBXML_VALID_ENABLED ; 2167 : if (xmlValidateNCName(dup, 1) != 0) { push 1 mov ecx, DWORD PTR _dup$[ebp] push ecx call _xmlValidateNCName add esp, 8 test eax, eax je SHORT $LN44@xmlSAX2Att ; 2168 : xmlErrValid(ctxt, XML_DTD_XMLID_VALUE, push 0 mov edx, DWORD PTR _dup$[ebp] push edx push OFFSET ??_C@_0CO@CCGEJOB@xml?3id?5?3?5attribute?5value?5?$CFs?5is?5@ push 539 ; 0000021bH mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValid add esp, 20 ; 00000014H $LN44@xmlSAX2Att: ; 2169 : "xml:id : attribute value %s is not an NCName\n", ; 2170 : (const char *) dup, NULL); ; 2171 : } ; 2172 : #endif ; 2173 : #endif ; 2174 : xmlAddID(&ctxt->vctxt, ctxt->myDoc, dup, ret); mov ecx, DWORD PTR _ret$[ebp] push ecx mov edx, DWORD PTR _dup$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _ctxt$[ebp] add edx, 108 ; 0000006cH push edx call _xmlAddID add esp, 16 ; 00000010H jmp $LN26@xmlSAX2Att $LN41@xmlSAX2Att: ; 2175 : } else if (xmlIsID(ctxt->myDoc, ctxt->node, ret)) { mov eax, DWORD PTR _ret$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlIsID add esp, 12 ; 0000000cH test eax, eax je SHORT $LN45@xmlSAX2Att ; 2176 : /* might be worth duplicate entry points and not copy */ ; 2177 : if (dup == NULL) cmp DWORD PTR _dup$[ebp], 0 jne SHORT $LN47@xmlSAX2Att ; 2178 : dup = xmlStrndup(value, valueend - value); mov edx, DWORD PTR _valueend$[ebp] sub edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _value$[ebp] push eax call _xmlStrndup add esp, 8 mov DWORD PTR _dup$[ebp], eax $LN47@xmlSAX2Att: ; 2179 : xmlAddID(&ctxt->vctxt, ctxt->myDoc, dup, ret); mov ecx, DWORD PTR _ret$[ebp] push ecx mov edx, DWORD PTR _dup$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _ctxt$[ebp] add edx, 108 ; 0000006cH push edx call _xmlAddID add esp, 16 ; 00000010H jmp SHORT $LN26@xmlSAX2Att $LN45@xmlSAX2Att: ; 2180 : } else if (xmlIsRef(ctxt->myDoc, ctxt->node, ret)) { mov eax, DWORD PTR _ret$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlIsRef add esp, 12 ; 0000000cH test eax, eax je SHORT $LN26@xmlSAX2Att ; 2181 : if (dup == NULL) cmp DWORD PTR _dup$[ebp], 0 jne SHORT $LN49@xmlSAX2Att ; 2182 : dup = xmlStrndup(value, valueend - value); mov edx, DWORD PTR _valueend$[ebp] sub edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _value$[ebp] push eax call _xmlStrndup add esp, 8 mov DWORD PTR _dup$[ebp], eax $LN49@xmlSAX2Att: ; 2183 : xmlAddRef(&ctxt->vctxt, ctxt->myDoc, dup, ret); mov ecx, DWORD PTR _ret$[ebp] push ecx mov edx, DWORD PTR _dup$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _ctxt$[ebp] add edx, 108 ; 0000006cH push edx call _xmlAddRef add esp, 16 ; 00000010H $LN26@xmlSAX2Att: ; 2184 : } ; 2185 : } ; 2186 : if (dup != NULL) cmp DWORD PTR _dup$[ebp], 0 je SHORT $LN1@xmlSAX2Att ; 2187 : xmlFree(dup); mov esi, esp mov eax, DWORD PTR _dup$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN1@xmlSAX2Att: ; 2188 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN54@xmlSAX2Att call @_RTC_CheckStackVars@8 pop eax pop edx pop edi pop esi add esp, 92 ; 0000005cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 $LN54@xmlSAX2Att: DD 1 DD $LN53@xmlSAX2Att $LN53@xmlSAX2Att: DD -84 ; ffffffacH DD 50 ; 00000032H DD $LN52@xmlSAX2Att $LN52@xmlSAX2Att: DB 102 ; 00000066H DB 110 ; 0000006eH DB 0 _xmlSAX2AttributeNs ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2DecodeAttrEntities _TEXT SEGMENT tv69 = -16 ; size = 4 tv68 = -12 ; size = 4 _ret$ = -8 ; size = 4 _in$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _str$ = 12 ; size = 4 _end$ = 16 ; size = 4 _xmlSAX2DecodeAttrEntities PROC ; COMDAT ; 1945 : const xmlChar *end) { push ebp mov ebp, esp sub esp, 16 ; 00000010H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 1946 : const xmlChar *in; ; 1947 : xmlChar *ret; ; 1948 : ; 1949 : in = str; mov eax, DWORD PTR _str$[ebp] mov DWORD PTR _in$[ebp], eax $LN2@xmlSAX2Dec: ; 1950 : while (in < end) mov ecx, DWORD PTR _in$[ebp] cmp ecx, DWORD PTR _end$[ebp] jae SHORT $LN3@xmlSAX2Dec ; 1951 : if (*in++ == '&') mov edx, DWORD PTR _in$[ebp] movzx eax, BYTE PTR [edx] mov DWORD PTR tv68[ebp], eax mov ecx, DWORD PTR _in$[ebp] add ecx, 1 mov DWORD PTR _in$[ebp], ecx cmp DWORD PTR tv68[ebp], 38 ; 00000026H jne SHORT $LN6@xmlSAX2Dec mov DWORD PTR tv69[ebp], 1 jmp SHORT $LN7@xmlSAX2Dec $LN6@xmlSAX2Dec: mov DWORD PTR tv69[ebp], 0 $LN7@xmlSAX2Dec: cmp DWORD PTR tv69[ebp], 0 je SHORT $LN4@xmlSAX2Dec ; 1952 : goto decode; jmp SHORT $decode$8 $LN4@xmlSAX2Dec: jmp SHORT $LN2@xmlSAX2Dec $LN3@xmlSAX2Dec: ; 1953 : return(NULL); xor eax, eax jmp SHORT $LN1@xmlSAX2Dec $decode$8: ; 1954 : decode: ; 1955 : ctxt->depth++; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+248] add eax, 1 mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+248], eax ; 1956 : ret = xmlStringLenDecodeEntities(ctxt, str, end - str, push 0 push 0 push 0 push 1 mov edx, DWORD PTR _end$[ebp] sub edx, DWORD PTR _str$[ebp] push edx mov eax, DWORD PTR _str$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlStringLenDecodeEntities add esp, 28 ; 0000001cH mov DWORD PTR _ret$[ebp], eax ; 1957 : XML_SUBSTITUTE_REF, 0,0,0); ; 1958 : ctxt->depth--; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+248] sub eax, 1 mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+248], eax ; 1959 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlSAX2Dec: ; 1960 : } add esp, 16 ; 00000010H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2DecodeAttrEntities ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2TextNode _TEXT SEGMENT _i$1 = -20 ; size = 4 _tmp$2 = -16 ; size = 4 _cur$3 = -9 ; size = 1 _intern$ = -8 ; size = 4 _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _str$ = 12 ; size = 4 _len$ = 16 ; size = 4 _xmlSAX2TextNode PROC ; COMDAT ; 1855 : xmlSAX2TextNode(xmlParserCtxtPtr ctxt, const xmlChar *str, int len) { push ebp mov ebp, esp sub esp, 20 ; 00000014H push esi mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 1856 : xmlNodePtr ret; ; 1857 : const xmlChar *intern = NULL; mov DWORD PTR _intern$[ebp], 0 ; 1858 : ; 1859 : /* ; 1860 : * Allocate ; 1861 : */ ; 1862 : if (ctxt->freeElems != NULL) { mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+372], 0 je SHORT $LN5@xmlSAX2Tex ; 1863 : ret = ctxt->freeElems; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+372] mov DWORD PTR _ret$[ebp], edx ; 1864 : ctxt->freeElems = ret->next; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR [ecx+24] mov DWORD PTR [eax+372], edx ; 1865 : ctxt->freeElemsNr--; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+368] sub ecx, 1 mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+368], ecx ; 1866 : } else { jmp SHORT $LN6@xmlSAX2Tex $LN5@xmlSAX2Tex: ; 1867 : ret = (xmlNodePtr) xmlMalloc(sizeof(xmlNode)); mov esi, esp push 60 ; 0000003cH call DWORD PTR _xmlMalloc add esp, 4 cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _ret$[ebp], eax $LN6@xmlSAX2Tex: ; 1868 : } ; 1869 : if (ret == NULL) { cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN7@xmlSAX2Tex ; 1870 : xmlErrMemory(ctxt, "xmlSAX2Characters"); push OFFSET ??_C@_0BC@IJLHKBBO@xmlSAX2Characters@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrMemory add esp, 8 ; 1871 : return(NULL); xor eax, eax jmp $LN1@xmlSAX2Tex $LN7@xmlSAX2Tex: ; 1872 : } ; 1873 : memset(ret, 0, sizeof(xmlNode)); push 60 ; 0000003cH push 0 mov ecx, DWORD PTR _ret$[ebp] push ecx call _memset add esp, 12 ; 0000000cH ; 1874 : /* ; 1875 : * intern the formatting blanks found between tags, or the ; 1876 : * very short strings ; 1877 : */ ; 1878 : if (ctxt->dictNames) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+364], 0 je $skip$29 ; 1879 : xmlChar cur = str[len]; mov eax, DWORD PTR _str$[ebp] add eax, DWORD PTR _len$[ebp] mov cl, BYTE PTR [eax] mov BYTE PTR _cur$3[ebp], cl ; 1880 : ; 1881 : if ((len < (int) (2 * sizeof(void *))) && cmp DWORD PTR _len$[ebp], 8 jge SHORT $LN9@xmlSAX2Tex mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+360] and eax, 65536 ; 00010000H je SHORT $LN9@xmlSAX2Tex ; 1882 : (ctxt->options & XML_PARSE_COMPACT)) { ; 1883 : /* store the string in the node overriding properties and nsDef */ ; 1884 : xmlChar *tmp = (xmlChar *) &(ret->properties); mov ecx, DWORD PTR _ret$[ebp] add ecx, 44 ; 0000002cH mov DWORD PTR _tmp$2[ebp], ecx ; 1885 : memcpy(tmp, str, len); mov edx, DWORD PTR _len$[ebp] push edx mov eax, DWORD PTR _str$[ebp] push eax mov ecx, DWORD PTR _tmp$2[ebp] push ecx call _memcpy add esp, 12 ; 0000000cH ; 1886 : tmp[len] = 0; mov edx, DWORD PTR _tmp$2[ebp] add edx, DWORD PTR _len$[ebp] mov BYTE PTR [edx], 0 ; 1887 : intern = tmp; mov eax, DWORD PTR _tmp$2[ebp] mov DWORD PTR _intern$[ebp], eax jmp $skip$29 $LN9@xmlSAX2Tex: ; 1888 : } else if ((len <= 3) && ((cur == '"') || (cur == '\'') || cmp DWORD PTR _len$[ebp], 3 jg SHORT $LN11@xmlSAX2Tex movzx ecx, BYTE PTR _cur$3[ebp] cmp ecx, 34 ; 00000022H je SHORT $LN13@xmlSAX2Tex movzx edx, BYTE PTR _cur$3[ebp] cmp edx, 39 ; 00000027H je SHORT $LN13@xmlSAX2Tex movzx eax, BYTE PTR _cur$3[ebp] cmp eax, 60 ; 0000003cH jne SHORT $LN11@xmlSAX2Tex mov ecx, DWORD PTR _str$[ebp] add ecx, DWORD PTR _len$[ebp] movzx edx, BYTE PTR [ecx+1] cmp edx, 33 ; 00000021H je SHORT $LN11@xmlSAX2Tex $LN13@xmlSAX2Tex: ; 1889 : ((cur == '<') && (str[len + 1] != '!')))) { ; 1890 : intern = xmlDictLookup(ctxt->dict, str, len); mov eax, DWORD PTR _len$[ebp] push eax mov ecx, DWORD PTR _str$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+296] push eax call _xmlDictLookup add esp, 12 ; 0000000cH mov DWORD PTR _intern$[ebp], eax jmp $skip$29 $LN11@xmlSAX2Tex: ; 1891 : } else if (IS_BLANK_CH(*str) && (len < 60) && (cur == '<') && mov ecx, DWORD PTR _str$[ebp] movzx edx, BYTE PTR [ecx] cmp edx, 32 ; 00000020H je SHORT $LN15@xmlSAX2Tex mov eax, DWORD PTR _str$[ebp] movzx ecx, BYTE PTR [eax] cmp ecx, 9 jl SHORT $LN16@xmlSAX2Tex mov edx, DWORD PTR _str$[ebp] movzx eax, BYTE PTR [edx] cmp eax, 10 ; 0000000aH jle SHORT $LN15@xmlSAX2Tex $LN16@xmlSAX2Tex: mov ecx, DWORD PTR _str$[ebp] movzx edx, BYTE PTR [ecx] cmp edx, 13 ; 0000000dH jne $skip$29 $LN15@xmlSAX2Tex: cmp DWORD PTR _len$[ebp], 60 ; 0000003cH jge $skip$29 movzx eax, BYTE PTR _cur$3[ebp] cmp eax, 60 ; 0000003cH jne $skip$29 mov ecx, DWORD PTR _str$[ebp] add ecx, DWORD PTR _len$[ebp] movzx edx, BYTE PTR [ecx+1] cmp edx, 33 ; 00000021H je SHORT $skip$29 ; 1892 : (str[len + 1] != '!')) { ; 1893 : int i; ; 1894 : ; 1895 : for (i = 1;i < len;i++) { mov DWORD PTR _i$1[ebp], 1 jmp SHORT $LN4@xmlSAX2Tex $LN2@xmlSAX2Tex: mov eax, DWORD PTR _i$1[ebp] add eax, 1 mov DWORD PTR _i$1[ebp], eax $LN4@xmlSAX2Tex: mov ecx, DWORD PTR _i$1[ebp] cmp ecx, DWORD PTR _len$[ebp] jge SHORT $LN3@xmlSAX2Tex ; 1896 : if (!IS_BLANK_CH(str[i])) goto skip; mov edx, DWORD PTR _str$[ebp] add edx, DWORD PTR _i$1[ebp] movzx eax, BYTE PTR [edx] cmp eax, 32 ; 00000020H je SHORT $LN17@xmlSAX2Tex mov ecx, DWORD PTR _str$[ebp] add ecx, DWORD PTR _i$1[ebp] movzx edx, BYTE PTR [ecx] cmp edx, 9 jl SHORT $LN18@xmlSAX2Tex mov eax, DWORD PTR _str$[ebp] add eax, DWORD PTR _i$1[ebp] movzx ecx, BYTE PTR [eax] cmp ecx, 10 ; 0000000aH jle SHORT $LN17@xmlSAX2Tex $LN18@xmlSAX2Tex: mov edx, DWORD PTR _str$[ebp] add edx, DWORD PTR _i$1[ebp] movzx eax, BYTE PTR [edx] cmp eax, 13 ; 0000000dH je SHORT $LN17@xmlSAX2Tex jmp SHORT $skip$29 $LN17@xmlSAX2Tex: ; 1897 : } jmp SHORT $LN2@xmlSAX2Tex $LN3@xmlSAX2Tex: ; 1898 : intern = xmlDictLookup(ctxt->dict, str, len); mov ecx, DWORD PTR _len$[ebp] push ecx mov edx, DWORD PTR _str$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+296] push ecx call _xmlDictLookup add esp, 12 ; 0000000cH mov DWORD PTR _intern$[ebp], eax $skip$29: ; 1899 : } ; 1900 : } ; 1901 : skip: ; 1902 : ret->type = XML_TEXT_NODE; mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [edx+4], 3 ; 1903 : ; 1904 : ret->name = xmlStringText; mov eax, DWORD PTR _ret$[ebp] mov DWORD PTR [eax+8], OFFSET _xmlStringText ; 1905 : if (intern == NULL) { cmp DWORD PTR _intern$[ebp], 0 jne SHORT $LN19@xmlSAX2Tex ; 1906 : ret->content = xmlStrndup(str, len); mov ecx, DWORD PTR _len$[ebp] push ecx mov edx, DWORD PTR _str$[ebp] push edx call _xmlStrndup add esp, 8 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+40], eax ; 1907 : if (ret->content == NULL) { mov edx, DWORD PTR _ret$[ebp] cmp DWORD PTR [edx+40], 0 jne SHORT $LN21@xmlSAX2Tex ; 1908 : xmlSAX2ErrMemory(ctxt, "xmlSAX2TextNode"); push OFFSET ??_C@_0BA@DNIHONAO@xmlSAX2TextNode@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlSAX2ErrMemory add esp, 8 ; 1909 : xmlFree(ret); mov esi, esp mov ecx, DWORD PTR _ret$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 1910 : return(NULL); xor eax, eax jmp $LN1@xmlSAX2Tex $LN21@xmlSAX2Tex: ; 1911 : } ; 1912 : } else jmp SHORT $LN20@xmlSAX2Tex $LN19@xmlSAX2Tex: ; 1913 : ret->content = (xmlChar *) intern; mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR _intern$[ebp] mov DWORD PTR [edx+40], eax $LN20@xmlSAX2Tex: ; 1914 : ; 1915 : if (ctxt->linenumbers) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+280], 0 je SHORT $LN22@xmlSAX2Tex ; 1916 : if (ctxt->input != NULL) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+36], 0 je SHORT $LN22@xmlSAX2Tex ; 1917 : if (ctxt->input->line < 65535) mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+36] cmp DWORD PTR [ecx+28], 65535 ; 0000ffffH jge SHORT $LN24@xmlSAX2Tex ; 1918 : ret->line = (short) ctxt->input->line; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+36] mov ecx, DWORD PTR _ret$[ebp] mov dx, WORD PTR [eax+28] mov WORD PTR [ecx+56], dx jmp SHORT $LN22@xmlSAX2Tex $LN24@xmlSAX2Tex: ; 1919 : else { ; 1920 : ret->line = 65535; mov eax, 65535 ; 0000ffffH mov ecx, DWORD PTR _ret$[ebp] mov WORD PTR [ecx+56], ax ; 1921 : if (ctxt->options & XML_PARSE_BIG_LINES) mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+360] and eax, 4194304 ; 00400000H je SHORT $LN22@xmlSAX2Tex ; 1922 : ret->psvi = (void *) (ptrdiff_t) ctxt->input->line; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+36] mov eax, DWORD PTR _ret$[ebp] mov ecx, DWORD PTR [edx+28] mov DWORD PTR [eax+52], ecx $LN22@xmlSAX2Tex: ; 1923 : } ; 1924 : } ; 1925 : } ; 1926 : ; 1927 : if ((__xmlRegisterCallbacks) && (xmlRegisterNodeDefaultValue)) cmp DWORD PTR ___xmlRegisterCallbacks, 0 je SHORT $LN27@xmlSAX2Tex call ___xmlRegisterNodeDefaultValue cmp DWORD PTR [eax], 0 je SHORT $LN27@xmlSAX2Tex ; 1928 : xmlRegisterNodeDefaultValue(ret); mov esi, esp mov edx, DWORD PTR _ret$[ebp] push edx call ___xmlRegisterNodeDefaultValue mov eax, DWORD PTR [eax] call eax add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN27@xmlSAX2Tex: ; 1929 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlSAX2Tex: ; 1930 : } pop esi add esp, 20 ; 00000014H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2TextNode ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlCheckDefaultedAttributes _TEXT SEGMENT _fulln$1 = -92 ; size = 4 _fn$2 = -84 ; size = 50 _tst$3 = -28 ; size = 4 _fulln$4 = -24 ; size = 4 _attr$5 = -20 ; size = 4 _i$ = -16 ; size = 4 _internal$ = -12 ; size = 4 _att$ = -8 ; size = 4 _elemDecl$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _name$ = 12 ; size = 4 _prefix$ = 16 ; size = 4 _atts$ = 20 ; size = 4 _xmlCheckDefaultedAttributes PROC ; COMDAT ; 1437 : const xmlChar *prefix, const xmlChar **atts) { push ebp mov ebp, esp sub esp, 92 ; 0000005cH push esi push edi lea edi, DWORD PTR [ebp-92] mov ecx, 23 ; 00000017H mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 1438 : xmlElementPtr elemDecl; ; 1439 : const xmlChar *att; ; 1440 : int internal = 1; mov DWORD PTR _internal$[ebp], 1 ; 1441 : int i; ; 1442 : ; 1443 : elemDecl = xmlGetDtdQElementDesc(ctxt->myDoc->intSubset, name, prefix); mov eax, DWORD PTR _prefix$[ebp] push eax mov ecx, DWORD PTR _name$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] mov ecx, DWORD PTR [eax+44] push ecx call _xmlGetDtdQElementDesc add esp, 12 ; 0000000cH mov DWORD PTR _elemDecl$[ebp], eax ; 1444 : if (elemDecl == NULL) { cmp DWORD PTR _elemDecl$[ebp], 0 jne SHORT $process_external_subset$37 ; 1445 : elemDecl = xmlGetDtdQElementDesc(ctxt->myDoc->extSubset, name, prefix); mov edx, DWORD PTR _prefix$[ebp] push edx mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] mov eax, DWORD PTR [edx+48] push eax call _xmlGetDtdQElementDesc add esp, 12 ; 0000000cH mov DWORD PTR _elemDecl$[ebp], eax ; 1446 : internal = 0; mov DWORD PTR _internal$[ebp], 0 $process_external_subset$37: ; 1447 : } ; 1448 : ; 1449 : process_external_subset: ; 1450 : ; 1451 : if (elemDecl != NULL) { cmp DWORD PTR _elemDecl$[ebp], 0 je $LN1@xmlCheckDe ; 1452 : xmlAttributePtr attr = elemDecl->attributes; mov ecx, DWORD PTR _elemDecl$[ebp] mov edx, DWORD PTR [ecx+44] mov DWORD PTR _attr$5[ebp], edx ; 1453 : /* ; 1454 : * Check against defaulted attributes from the external subset ; 1455 : * if the document is stamped as standalone ; 1456 : */ ; 1457 : if ((ctxt->myDoc->standalone == 1) && ; 1458 : (ctxt->myDoc->extSubset != NULL) && mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] cmp DWORD PTR [ecx+40], 1 jne $LN12@xmlCheckDe mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] cmp DWORD PTR [eax+48], 0 je $LN12@xmlCheckDe mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+104], 0 je $LN12@xmlCheckDe $LN2@xmlCheckDe: ; 1459 : (ctxt->validate)) { ; 1460 : while (attr != NULL) { cmp DWORD PTR _attr$5[ebp], 0 je $LN12@xmlCheckDe ; 1461 : if ((attr->defaultValue != NULL) && ; 1462 : (xmlGetDtdQAttrDesc(ctxt->myDoc->extSubset, ; 1463 : attr->elem, attr->name, ; 1464 : attr->prefix) == attr) && mov edx, DWORD PTR _attr$5[ebp] cmp DWORD PTR [edx+48], 0 je $LN13@xmlCheckDe mov eax, DWORD PTR _attr$5[ebp] mov ecx, DWORD PTR [eax+56] push ecx mov edx, DWORD PTR _attr$5[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _attr$5[ebp] mov edx, DWORD PTR [ecx+60] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] mov edx, DWORD PTR [ecx+48] push edx call _xmlGetDtdQAttrDesc add esp, 16 ; 00000010H cmp eax, DWORD PTR _attr$5[ebp] jne $LN13@xmlCheckDe mov eax, DWORD PTR _attr$5[ebp] mov ecx, DWORD PTR [eax+56] push ecx mov edx, DWORD PTR _attr$5[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _attr$5[ebp] mov edx, DWORD PTR [ecx+60] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] mov edx, DWORD PTR [ecx+44] push edx call _xmlGetDtdQAttrDesc add esp, 16 ; 00000010H test eax, eax jne $LN13@xmlCheckDe ; 1465 : (xmlGetDtdQAttrDesc(ctxt->myDoc->intSubset, ; 1466 : attr->elem, attr->name, ; 1467 : attr->prefix) == NULL)) { ; 1468 : xmlChar *fulln; ; 1469 : ; 1470 : if (attr->prefix != NULL) { mov eax, DWORD PTR _attr$5[ebp] cmp DWORD PTR [eax+56], 0 je SHORT $LN14@xmlCheckDe ; 1471 : fulln = xmlStrdup(attr->prefix); mov ecx, DWORD PTR _attr$5[ebp] mov edx, DWORD PTR [ecx+56] push edx call _xmlStrdup add esp, 4 mov DWORD PTR _fulln$4[ebp], eax ; 1472 : fulln = xmlStrcat(fulln, BAD_CAST ":"); push OFFSET ??_C@_01JLIPDDHJ@?3@ mov eax, DWORD PTR _fulln$4[ebp] push eax call _xmlStrcat add esp, 8 mov DWORD PTR _fulln$4[ebp], eax ; 1473 : fulln = xmlStrcat(fulln, attr->name); mov ecx, DWORD PTR _attr$5[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _fulln$4[ebp] push eax call _xmlStrcat add esp, 8 mov DWORD PTR _fulln$4[ebp], eax ; 1474 : } else { jmp SHORT $LN15@xmlCheckDe $LN14@xmlCheckDe: ; 1475 : fulln = xmlStrdup(attr->name); mov ecx, DWORD PTR _attr$5[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlStrdup add esp, 4 mov DWORD PTR _fulln$4[ebp], eax $LN15@xmlCheckDe: ; 1476 : } ; 1477 : if (fulln == NULL) { cmp DWORD PTR _fulln$4[ebp], 0 jne SHORT $LN16@xmlCheckDe ; 1478 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElement"); push OFFSET ??_C@_0BE@NLCCMPDP@xmlSAX2StartElement@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlSAX2ErrMemory add esp, 8 ; 1479 : break; jmp $LN12@xmlCheckDe $LN16@xmlCheckDe: ; 1480 : } ; 1481 : ; 1482 : /* ; 1483 : * Check that the attribute is not declared in the ; 1484 : * serialization ; 1485 : */ ; 1486 : att = NULL; mov DWORD PTR _att$[ebp], 0 ; 1487 : if (atts != NULL) { cmp DWORD PTR _atts$[ebp], 0 je SHORT $LN17@xmlCheckDe ; 1488 : i = 0; mov DWORD PTR _i$[ebp], 0 ; 1489 : att = atts[i]; mov ecx, DWORD PTR _i$[ebp] mov edx, DWORD PTR _atts$[ebp] mov eax, DWORD PTR [edx+ecx*4] mov DWORD PTR _att$[ebp], eax $LN4@xmlCheckDe: ; 1490 : while (att != NULL) { cmp DWORD PTR _att$[ebp], 0 je SHORT $LN17@xmlCheckDe ; 1491 : if (xmlStrEqual(att, fulln)) mov ecx, DWORD PTR _fulln$4[ebp] push ecx mov edx, DWORD PTR _att$[ebp] push edx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN18@xmlCheckDe ; 1492 : break; jmp SHORT $LN17@xmlCheckDe $LN18@xmlCheckDe: ; 1493 : i += 2; mov eax, DWORD PTR _i$[ebp] add eax, 2 mov DWORD PTR _i$[ebp], eax ; 1494 : att = atts[i]; mov ecx, DWORD PTR _i$[ebp] mov edx, DWORD PTR _atts$[ebp] mov eax, DWORD PTR [edx+ecx*4] mov DWORD PTR _att$[ebp], eax ; 1495 : } jmp SHORT $LN4@xmlCheckDe $LN17@xmlCheckDe: ; 1496 : } ; 1497 : if (att == NULL) { cmp DWORD PTR _att$[ebp], 0 jne SHORT $LN19@xmlCheckDe ; 1498 : xmlErrValid(ctxt, XML_DTD_STANDALONE_DEFAULTED, mov ecx, DWORD PTR _attr$5[ebp] mov edx, DWORD PTR [ecx+60] push edx mov eax, DWORD PTR _fulln$4[ebp] push eax push OFFSET ??_C@_0DP@KFNFGALP@standalone?3?5attribute?5?$CFs?5on?5?$CFs?5@ push 538 ; 0000021aH mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValid add esp, 20 ; 00000014H $LN19@xmlCheckDe: ; 1499 : "standalone: attribute %s on %s defaulted from external subset\n", ; 1500 : (const char *)fulln, ; 1501 : (const char *)attr->elem); ; 1502 : } ; 1503 : xmlFree(fulln); mov esi, esp mov edx, DWORD PTR _fulln$4[ebp] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN13@xmlCheckDe: ; 1504 : } ; 1505 : attr = attr->nexth; mov eax, DWORD PTR _attr$5[ebp] mov ecx, DWORD PTR [eax+36] mov DWORD PTR _attr$5[ebp], ecx ; 1506 : } jmp $LN2@xmlCheckDe $LN12@xmlCheckDe: ; 1507 : } ; 1508 : ; 1509 : /* ; 1510 : * Actually insert defaulted values when needed ; 1511 : */ ; 1512 : attr = elemDecl->attributes; mov edx, DWORD PTR _elemDecl$[ebp] mov eax, DWORD PTR [edx+44] mov DWORD PTR _attr$5[ebp], eax $LN6@xmlCheckDe: ; 1513 : while (attr != NULL) { cmp DWORD PTR _attr$5[ebp], 0 je $LN7@xmlCheckDe ; 1514 : /* ; 1515 : * Make sure that attributes redefinition occuring in the ; 1516 : * internal subset are not overriden by definitions in the ; 1517 : * external subset. ; 1518 : */ ; 1519 : if (attr->defaultValue != NULL) { mov ecx, DWORD PTR _attr$5[ebp] cmp DWORD PTR [ecx+48], 0 je $LN20@xmlCheckDe ; 1520 : /* ; 1521 : * the element should be instantiated in the tree if: ; 1522 : * - this is a namespace prefix ; 1523 : * - the user required for completion in the tree ; 1524 : * like XSLT ; 1525 : * - there isn't already an attribute definition ; 1526 : * in the internal subset overriding it. ; 1527 : */ ; 1528 : if (((attr->prefix != NULL) && ; 1529 : (xmlStrEqual(attr->prefix, BAD_CAST "xmlns"))) || ; 1530 : ((attr->prefix == NULL) && ; 1531 : (xmlStrEqual(attr->name, BAD_CAST "xmlns"))) || mov edx, DWORD PTR _attr$5[ebp] cmp DWORD PTR [edx+56], 0 je SHORT $LN23@xmlCheckDe push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov eax, DWORD PTR _attr$5[ebp] mov ecx, DWORD PTR [eax+56] push ecx call _xmlStrEqual add esp, 8 test eax, eax jne SHORT $LN22@xmlCheckDe $LN23@xmlCheckDe: mov edx, DWORD PTR _attr$5[ebp] cmp DWORD PTR [edx+56], 0 jne SHORT $LN24@xmlCheckDe push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov eax, DWORD PTR _attr$5[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlStrEqual add esp, 8 test eax, eax jne SHORT $LN22@xmlCheckDe $LN24@xmlCheckDe: mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+276] and eax, 4 je $LN20@xmlCheckDe $LN22@xmlCheckDe: ; 1532 : (ctxt->loadsubset & XML_COMPLETE_ATTRS)) { ; 1533 : xmlAttributePtr tst; ; 1534 : ; 1535 : tst = xmlGetDtdQAttrDesc(ctxt->myDoc->intSubset, mov ecx, DWORD PTR _attr$5[ebp] mov edx, DWORD PTR [ecx+56] push edx mov eax, DWORD PTR _attr$5[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _attr$5[ebp] mov eax, DWORD PTR [edx+60] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] mov eax, DWORD PTR [edx+44] push eax call _xmlGetDtdQAttrDesc add esp, 16 ; 00000010H mov DWORD PTR _tst$3[ebp], eax ; 1536 : attr->elem, attr->name, ; 1537 : attr->prefix); ; 1538 : if ((tst == attr) || (tst == NULL)) { mov ecx, DWORD PTR _tst$3[ebp] cmp ecx, DWORD PTR _attr$5[ebp] je SHORT $LN26@xmlCheckDe cmp DWORD PTR _tst$3[ebp], 0 jne $LN20@xmlCheckDe $LN26@xmlCheckDe: ; 1539 : xmlChar fn[50]; ; 1540 : xmlChar *fulln; ; 1541 : ; 1542 : fulln = xmlBuildQName(attr->name, attr->prefix, fn, 50); push 50 ; 00000032H lea edx, DWORD PTR _fn$2[ebp] push edx mov eax, DWORD PTR _attr$5[ebp] mov ecx, DWORD PTR [eax+56] push ecx mov edx, DWORD PTR _attr$5[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlBuildQName add esp, 16 ; 00000010H mov DWORD PTR _fulln$1[ebp], eax ; 1543 : if (fulln == NULL) { cmp DWORD PTR _fulln$1[ebp], 0 jne SHORT $LN27@xmlCheckDe ; 1544 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElement"); push OFFSET ??_C@_0BE@NLCCMPDP@xmlSAX2StartElement@ mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlSAX2ErrMemory add esp, 8 ; 1545 : return; jmp $LN1@xmlCheckDe $LN27@xmlCheckDe: ; 1546 : } ; 1547 : ; 1548 : /* ; 1549 : * Check that the attribute is not declared in the ; 1550 : * serialization ; 1551 : */ ; 1552 : att = NULL; mov DWORD PTR _att$[ebp], 0 ; 1553 : if (atts != NULL) { cmp DWORD PTR _atts$[ebp], 0 je SHORT $LN28@xmlCheckDe ; 1554 : i = 0; mov DWORD PTR _i$[ebp], 0 ; 1555 : att = atts[i]; mov edx, DWORD PTR _i$[ebp] mov eax, DWORD PTR _atts$[ebp] mov ecx, DWORD PTR [eax+edx*4] mov DWORD PTR _att$[ebp], ecx $LN8@xmlCheckDe: ; 1556 : while (att != NULL) { cmp DWORD PTR _att$[ebp], 0 je SHORT $LN28@xmlCheckDe ; 1557 : if (xmlStrEqual(att, fulln)) mov edx, DWORD PTR _fulln$1[ebp] push edx mov eax, DWORD PTR _att$[ebp] push eax call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN29@xmlCheckDe ; 1558 : break; jmp SHORT $LN28@xmlCheckDe $LN29@xmlCheckDe: ; 1559 : i += 2; mov ecx, DWORD PTR _i$[ebp] add ecx, 2 mov DWORD PTR _i$[ebp], ecx ; 1560 : att = atts[i]; mov edx, DWORD PTR _i$[ebp] mov eax, DWORD PTR _atts$[ebp] mov ecx, DWORD PTR [eax+edx*4] mov DWORD PTR _att$[ebp], ecx ; 1561 : } jmp SHORT $LN8@xmlCheckDe $LN28@xmlCheckDe: ; 1562 : } ; 1563 : if (att == NULL) { cmp DWORD PTR _att$[ebp], 0 jne SHORT $LN30@xmlCheckDe ; 1564 : xmlSAX2AttributeInternal(ctxt, fulln, mov edx, DWORD PTR _prefix$[ebp] push edx mov eax, DWORD PTR _attr$5[ebp] mov ecx, DWORD PTR [eax+48] push ecx mov edx, DWORD PTR _fulln$1[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlSAX2AttributeInternal add esp, 16 ; 00000010H $LN30@xmlCheckDe: ; 1565 : attr->defaultValue, prefix); ; 1566 : } ; 1567 : if ((fulln != fn) && (fulln != attr->name)) lea ecx, DWORD PTR _fn$2[ebp] cmp DWORD PTR _fulln$1[ebp], ecx je SHORT $LN20@xmlCheckDe mov edx, DWORD PTR _attr$5[ebp] mov eax, DWORD PTR _fulln$1[ebp] cmp eax, DWORD PTR [edx+8] je SHORT $LN20@xmlCheckDe ; 1568 : xmlFree(fulln); mov esi, esp mov ecx, DWORD PTR _fulln$1[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN20@xmlCheckDe: ; 1569 : } ; 1570 : } ; 1571 : } ; 1572 : attr = attr->nexth; mov edx, DWORD PTR _attr$5[ebp] mov eax, DWORD PTR [edx+36] mov DWORD PTR _attr$5[ebp], eax ; 1573 : } jmp $LN6@xmlCheckDe $LN7@xmlCheckDe: ; 1574 : if (internal == 1) { cmp DWORD PTR _internal$[ebp], 1 jne SHORT $LN1@xmlCheckDe ; 1575 : elemDecl = xmlGetDtdQElementDesc(ctxt->myDoc->extSubset, mov ecx, DWORD PTR _prefix$[ebp] push ecx mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] mov edx, DWORD PTR [ecx+48] push edx call _xmlGetDtdQElementDesc add esp, 12 ; 0000000cH mov DWORD PTR _elemDecl$[ebp], eax ; 1576 : name, prefix); ; 1577 : internal = 0; mov DWORD PTR _internal$[ebp], 0 ; 1578 : goto process_external_subset; jmp $process_external_subset$37 $LN1@xmlCheckDe: ; 1579 : } ; 1580 : } ; 1581 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN36@xmlCheckDe call @_RTC_CheckStackVars@8 pop eax pop edx pop edi pop esi add esp, 92 ; 0000005cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 2 $LN36@xmlCheckDe: DD 1 DD $LN35@xmlCheckDe $LN35@xmlCheckDe: DD -84 ; ffffffacH DD 50 ; 00000032H DD $LN34@xmlCheckDe $LN34@xmlCheckDe: DB 102 ; 00000066H DB 110 ; 0000006eH DB 0 _xmlCheckDefaultedAttributes ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2AttributeInternal _TEXT SEGMENT _nvalnorm$1 = -72 ; size = 4 _val$2 = -68 ; size = 4 _tmp$3 = -64 ; size = 4 _prop$4 = -60 ; size = 4 _uri$5 = -56 ; size = 4 _val$6 = -52 ; size = 4 _nsret$7 = -48 ; size = 4 _uri$8 = -44 ; size = 4 _val$9 = -40 ; size = 4 _nsret$10 = -36 ; size = 4 _namespace$ = -32 ; size = 4 _nval$ = -28 ; size = 4 _ns$ = -20 ; size = 4 _name$ = -12 ; size = 4 _ret$ = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _fullname$ = 12 ; size = 4 _value$ = 16 ; size = 4 _prefix$ = 20 ; size = 4 _xmlSAX2AttributeInternal PROC ; COMDAT ; 1098 : { push ebp mov ebp, esp sub esp, 72 ; 00000048H push esi push edi lea edi, DWORD PTR [ebp-72] mov ecx, 18 ; 00000012H mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 1099 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 1100 : xmlAttrPtr ret; ; 1101 : xmlChar *name; ; 1102 : xmlChar *ns; ; 1103 : xmlChar *nval; ; 1104 : xmlNsPtr namespace; ; 1105 : ; 1106 : if (ctxt->html) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+32], 0 je SHORT $LN6@xmlSAX2Att ; 1107 : name = xmlStrdup(fullname); mov edx, DWORD PTR _fullname$[ebp] push edx call _xmlStrdup add esp, 4 mov DWORD PTR _name$[ebp], eax ; 1108 : ns = NULL; mov DWORD PTR _ns$[ebp], 0 ; 1109 : namespace = NULL; mov DWORD PTR _namespace$[ebp], 0 ; 1110 : } else { jmp $LN7@xmlSAX2Att $LN6@xmlSAX2Att: ; 1111 : /* ; 1112 : * Split the full name into a namespace prefix and the tag name ; 1113 : */ ; 1114 : name = xmlSplitQName(ctxt, fullname, &ns); lea eax, DWORD PTR _ns$[ebp] push eax mov ecx, DWORD PTR _fullname$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlSplitQName add esp, 12 ; 0000000cH mov DWORD PTR _name$[ebp], eax ; 1115 : if ((name != NULL) && (name[0] == 0)) { cmp DWORD PTR _name$[ebp], 0 je $LN7@xmlSAX2Att mov eax, 1 imul ecx, eax, 0 mov edx, DWORD PTR _name$[ebp] movzx eax, BYTE PTR [edx+ecx] test eax, eax jne $LN7@xmlSAX2Att ; 1116 : if (xmlStrEqual(ns, BAD_CAST "xmlns")) { push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov ecx, DWORD PTR _ns$[ebp] push ecx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN9@xmlSAX2Att ; 1117 : xmlNsErrMsg(ctxt, XML_ERR_NS_DECL_ERROR, push 0 mov edx, DWORD PTR _fullname$[ebp] push edx push OFFSET ??_C@_0CE@IJLGNIDG@invalid?5namespace?5declaration?5?8@ push 35 ; 00000023H mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlNsErrMsg add esp, 20 ; 00000014H ; 1118 : "invalid namespace declaration '%s'\n", ; 1119 : fullname, NULL); ; 1120 : } else { jmp SHORT $LN10@xmlSAX2Att $LN9@xmlSAX2Att: ; 1121 : xmlNsWarnMsg(ctxt, XML_WAR_NS_COLUMN, push 0 mov ecx, DWORD PTR _fullname$[ebp] push ecx push OFFSET ??_C@_0CL@HKIDFKGE@Avoid?5attribute?5ending?5with?5?8?3?8@ push 106 ; 0000006aH mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlNsWarnMsg add esp, 20 ; 00000014H $LN10@xmlSAX2Att: ; 1122 : "Avoid attribute ending with ':' like '%s'\n", ; 1123 : fullname, NULL); ; 1124 : } ; 1125 : if (ns != NULL) cmp DWORD PTR _ns$[ebp], 0 je SHORT $LN11@xmlSAX2Att ; 1126 : xmlFree(ns); mov esi, esp mov eax, DWORD PTR _ns$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN11@xmlSAX2Att: ; 1127 : ns = NULL; mov DWORD PTR _ns$[ebp], 0 ; 1128 : xmlFree(name); mov esi, esp mov ecx, DWORD PTR _name$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 1129 : name = xmlStrdup(fullname); mov edx, DWORD PTR _fullname$[ebp] push edx call _xmlStrdup add esp, 4 mov DWORD PTR _name$[ebp], eax $LN7@xmlSAX2Att: ; 1130 : } ; 1131 : } ; 1132 : if (name == NULL) { cmp DWORD PTR _name$[ebp], 0 jne SHORT $LN12@xmlSAX2Att ; 1133 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElement"); push OFFSET ??_C@_0BE@NLCCMPDP@xmlSAX2StartElement@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlSAX2ErrMemory add esp, 8 ; 1134 : if (ns != NULL) cmp DWORD PTR _ns$[ebp], 0 je SHORT $LN13@xmlSAX2Att ; 1135 : xmlFree(ns); mov esi, esp mov ecx, DWORD PTR _ns$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN13@xmlSAX2Att: ; 1136 : return; jmp $LN1@xmlSAX2Att $LN12@xmlSAX2Att: ; 1137 : } ; 1138 : ; 1139 : #ifdef LIBXML_HTML_ENABLED ; 1140 : if ((ctxt->html) && ; 1141 : (value == NULL) && (htmlIsBooleanAttr(fullname))) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+32], 0 je SHORT $LN14@xmlSAX2Att cmp DWORD PTR _value$[ebp], 0 jne SHORT $LN14@xmlSAX2Att mov eax, DWORD PTR _fullname$[ebp] push eax call _htmlIsBooleanAttr add esp, 4 test eax, eax je SHORT $LN14@xmlSAX2Att ; 1142 : nval = xmlStrdup(fullname); mov ecx, DWORD PTR _fullname$[ebp] push ecx call _xmlStrdup add esp, 4 mov DWORD PTR _nval$[ebp], eax ; 1143 : value = (const xmlChar *) nval; mov edx, DWORD PTR _nval$[ebp] mov DWORD PTR _value$[ebp], edx ; 1144 : } else jmp SHORT $LN15@xmlSAX2Att $LN14@xmlSAX2Att: ; 1145 : #endif ; 1146 : { ; 1147 : #ifdef LIBXML_VALID_ENABLED ; 1148 : /* ; 1149 : * Do the last stage of the attribute normalization ; 1150 : * Needed for HTML too: ; 1151 : * http://www.w3.org/TR/html4/types.html#h-6.2 ; 1152 : */ ; 1153 : ctxt->vctxt.valid = 1; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+144], 1 ; 1154 : nval = xmlValidCtxtNormalizeAttributeValue(&ctxt->vctxt, mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _fullname$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+52] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _ctxt$[ebp] add ecx, 108 ; 0000006cH push ecx call _xmlValidCtxtNormalizeAttributeValue add esp, 20 ; 00000014H mov DWORD PTR _nval$[ebp], eax ; 1155 : ctxt->myDoc, ctxt->node, ; 1156 : fullname, value); ; 1157 : if (ctxt->vctxt.valid != 1) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+144], 1 je SHORT $LN16@xmlSAX2Att ; 1158 : ctxt->valid = 0; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+100], 0 $LN16@xmlSAX2Att: ; 1159 : } ; 1160 : if (nval != NULL) cmp DWORD PTR _nval$[ebp], 0 je SHORT $LN15@xmlSAX2Att ; 1161 : value = nval; mov ecx, DWORD PTR _nval$[ebp] mov DWORD PTR _value$[ebp], ecx $LN15@xmlSAX2Att: ; 1162 : #else ; 1163 : nval = NULL; ; 1164 : #endif /* LIBXML_VALID_ENABLED */ ; 1165 : } ; 1166 : ; 1167 : /* ; 1168 : * Check whether it's a namespace definition ; 1169 : */ ; 1170 : if ((!ctxt->html) && (ns == NULL) && ; 1171 : (name[0] == 'x') && (name[1] == 'm') && (name[2] == 'l') && ; 1172 : (name[3] == 'n') && (name[4] == 's') && (name[5] == 0)) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+32], 0 jne $LN18@xmlSAX2Att cmp DWORD PTR _ns$[ebp], 0 jne $LN18@xmlSAX2Att mov eax, 1 imul ecx, eax, 0 mov edx, DWORD PTR _name$[ebp] movzx eax, BYTE PTR [edx+ecx] cmp eax, 120 ; 00000078H jne $LN18@xmlSAX2Att mov ecx, 1 shl ecx, 0 mov edx, DWORD PTR _name$[ebp] movzx eax, BYTE PTR [edx+ecx] cmp eax, 109 ; 0000006dH jne $LN18@xmlSAX2Att mov ecx, 1 shl ecx, 1 mov edx, DWORD PTR _name$[ebp] movzx eax, BYTE PTR [edx+ecx] cmp eax, 108 ; 0000006cH jne $LN18@xmlSAX2Att mov ecx, 1 imul edx, ecx, 3 mov eax, DWORD PTR _name$[ebp] movzx ecx, BYTE PTR [eax+edx] cmp ecx, 110 ; 0000006eH jne $LN18@xmlSAX2Att mov edx, 1 shl edx, 2 mov eax, DWORD PTR _name$[ebp] movzx ecx, BYTE PTR [eax+edx] cmp ecx, 115 ; 00000073H jne $LN18@xmlSAX2Att mov edx, 1 imul eax, edx, 5 mov ecx, DWORD PTR _name$[ebp] movzx edx, BYTE PTR [ecx+eax] test edx, edx jne $LN18@xmlSAX2Att ; 1173 : xmlNsPtr nsret; ; 1174 : xmlChar *val; ; 1175 : ; 1176 : if (!ctxt->replaceEntities) { mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+16], 0 jne $LN19@xmlSAX2Att ; 1177 : ctxt->depth++; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+248] add edx, 1 mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+248], edx ; 1178 : val = xmlStringDecodeEntities(ctxt, value, XML_SUBSTITUTE_REF, push 0 push 0 push 0 push 1 mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlStringDecodeEntities add esp, 24 ; 00000018H mov DWORD PTR _val$9[ebp], eax ; 1179 : 0,0,0); ; 1180 : ctxt->depth--; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+248] sub ecx, 1 mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+248], ecx ; 1181 : if (val == NULL) { cmp DWORD PTR _val$9[ebp], 0 jne SHORT $LN21@xmlSAX2Att ; 1182 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElement"); push OFFSET ??_C@_0BE@NLCCMPDP@xmlSAX2StartElement@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlSAX2ErrMemory add esp, 8 ; 1183 : if (name != NULL) cmp DWORD PTR _name$[ebp], 0 je SHORT $LN22@xmlSAX2Att ; 1184 : xmlFree(name); mov esi, esp mov ecx, DWORD PTR _name$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN22@xmlSAX2Att: ; 1185 : if (nval != NULL) cmp DWORD PTR _nval$[ebp], 0 je SHORT $LN23@xmlSAX2Att ; 1186 : xmlFree(nval); mov esi, esp mov edx, DWORD PTR _nval$[ebp] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN23@xmlSAX2Att: ; 1187 : return; jmp $LN1@xmlSAX2Att $LN21@xmlSAX2Att: ; 1188 : } ; 1189 : } else { jmp SHORT $LN20@xmlSAX2Att $LN19@xmlSAX2Att: ; 1190 : val = (xmlChar *) value; mov eax, DWORD PTR _value$[ebp] mov DWORD PTR _val$9[ebp], eax $LN20@xmlSAX2Att: ; 1191 : } ; 1192 : ; 1193 : if (val[0] != 0) { mov ecx, 1 imul edx, ecx, 0 mov eax, DWORD PTR _val$9[ebp] movzx ecx, BYTE PTR [eax+edx] test ecx, ecx je $LN24@xmlSAX2Att ; 1194 : xmlURIPtr uri; ; 1195 : ; 1196 : uri = xmlParseURI((const char *)val); mov edx, DWORD PTR _val$9[ebp] push edx call _xmlParseURI add esp, 4 mov DWORD PTR _uri$8[ebp], eax ; 1197 : if (uri == NULL) { cmp DWORD PTR _uri$8[ebp], 0 jne SHORT $LN25@xmlSAX2Att ; 1198 : if ((ctxt->sax != NULL) && (ctxt->sax->warning != NULL)) mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax], 0 je SHORT $LN27@xmlSAX2Att mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx] cmp DWORD PTR [edx+84], 0 je SHORT $LN27@xmlSAX2Att ; 1199 : ctxt->sax->warning(ctxt->userData, mov esi, esp mov eax, DWORD PTR _val$9[ebp] push eax push OFFSET ??_C@_0BL@KIHPGOD@xmlns?3?5?$CFs?5not?5a?5valid?5URI?6@ mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+4] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax] mov edx, DWORD PTR [ecx+84] call edx add esp, 12 ; 0000000cH cmp esi, esp call __RTC_CheckEsp $LN27@xmlSAX2Att: ; 1200 : "xmlns: %s not a valid URI\n", val); ; 1201 : } else { jmp SHORT $LN24@xmlSAX2Att $LN25@xmlSAX2Att: ; 1202 : if (uri->scheme == NULL) { mov eax, DWORD PTR _uri$8[ebp] cmp DWORD PTR [eax], 0 jne SHORT $LN28@xmlSAX2Att ; 1203 : if ((ctxt->sax != NULL) && (ctxt->sax->warning != NULL)) mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx], 0 je SHORT $LN28@xmlSAX2Att mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx] cmp DWORD PTR [eax+84], 0 je SHORT $LN28@xmlSAX2Att ; 1204 : ctxt->sax->warning(ctxt->userData, mov esi, esp mov ecx, DWORD PTR _val$9[ebp] push ecx push OFFSET ??_C@_0BP@JFBGAFGI@xmlns?3?5URI?5?$CFs?5is?5not?5absolute?6@ mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+4] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx] mov eax, DWORD PTR [edx+84] call eax add esp, 12 ; 0000000cH cmp esi, esp call __RTC_CheckEsp $LN28@xmlSAX2Att: ; 1205 : "xmlns: URI %s is not absolute\n", val); ; 1206 : } ; 1207 : xmlFreeURI(uri); mov ecx, DWORD PTR _uri$8[ebp] push ecx call _xmlFreeURI add esp, 4 $LN24@xmlSAX2Att: ; 1208 : } ; 1209 : } ; 1210 : ; 1211 : /* a default namespace definition */ ; 1212 : nsret = xmlNewNs(ctxt->node, val, NULL); push 0 mov edx, DWORD PTR _val$9[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+52] push ecx call _xmlNewNs add esp, 12 ; 0000000cH mov DWORD PTR _nsret$10[ebp], eax ; 1213 : ; 1214 : #ifdef LIBXML_VALID_ENABLED ; 1215 : /* ; 1216 : * Validate also for namespace decls, they are attributes from ; 1217 : * an XML-1.0 perspective ; 1218 : */ ; 1219 : if (nsret != NULL && ctxt->validate && ctxt->wellFormed && ; 1220 : ctxt->myDoc && ctxt->myDoc->intSubset) cmp DWORD PTR _nsret$10[ebp], 0 je SHORT $LN30@xmlSAX2Att mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+104], 0 je SHORT $LN30@xmlSAX2Att mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+12], 0 je SHORT $LN30@xmlSAX2Att mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+8], 0 je SHORT $LN30@xmlSAX2Att mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] cmp DWORD PTR [eax+44], 0 je SHORT $LN30@xmlSAX2Att ; 1221 : ctxt->valid &= xmlValidateOneNamespace(&ctxt->vctxt, ctxt->myDoc, mov ecx, DWORD PTR _val$9[ebp] push ecx mov edx, DWORD PTR _nsret$10[ebp] push edx mov eax, DWORD PTR _prefix$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _ctxt$[ebp] add edx, 108 ; 0000006cH push edx call _xmlValidateOneNamespace add esp, 24 ; 00000018H mov ecx, DWORD PTR _ctxt$[ebp] and eax, DWORD PTR [ecx+100] mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+100], eax $LN30@xmlSAX2Att: ; 1222 : ctxt->node, prefix, nsret, val); ; 1223 : #endif /* LIBXML_VALID_ENABLED */ ; 1224 : if (name != NULL) cmp DWORD PTR _name$[ebp], 0 je SHORT $LN31@xmlSAX2Att ; 1225 : xmlFree(name); mov esi, esp mov eax, DWORD PTR _name$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN31@xmlSAX2Att: ; 1226 : if (nval != NULL) cmp DWORD PTR _nval$[ebp], 0 je SHORT $LN32@xmlSAX2Att ; 1227 : xmlFree(nval); mov esi, esp mov ecx, DWORD PTR _nval$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN32@xmlSAX2Att: ; 1228 : if (val != value) mov edx, DWORD PTR _val$9[ebp] cmp edx, DWORD PTR _value$[ebp] je SHORT $LN33@xmlSAX2Att ; 1229 : xmlFree(val); mov esi, esp mov eax, DWORD PTR _val$9[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN33@xmlSAX2Att: ; 1230 : return; jmp $LN1@xmlSAX2Att $LN18@xmlSAX2Att: ; 1231 : } ; 1232 : if ((!ctxt->html) && ; 1233 : (ns != NULL) && (ns[0] == 'x') && (ns[1] == 'm') && (ns[2] == 'l') && ; 1234 : (ns[3] == 'n') && (ns[4] == 's') && (ns[5] == 0)) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+32], 0 jne $LN34@xmlSAX2Att cmp DWORD PTR _ns$[ebp], 0 je $LN34@xmlSAX2Att mov edx, 1 imul eax, edx, 0 mov ecx, DWORD PTR _ns$[ebp] movzx edx, BYTE PTR [ecx+eax] cmp edx, 120 ; 00000078H jne $LN34@xmlSAX2Att mov eax, 1 shl eax, 0 mov ecx, DWORD PTR _ns$[ebp] movzx edx, BYTE PTR [ecx+eax] cmp edx, 109 ; 0000006dH jne $LN34@xmlSAX2Att mov eax, 1 shl eax, 1 mov ecx, DWORD PTR _ns$[ebp] movzx edx, BYTE PTR [ecx+eax] cmp edx, 108 ; 0000006cH jne $LN34@xmlSAX2Att mov eax, 1 imul ecx, eax, 3 mov edx, DWORD PTR _ns$[ebp] movzx eax, BYTE PTR [edx+ecx] cmp eax, 110 ; 0000006eH jne $LN34@xmlSAX2Att mov ecx, 1 shl ecx, 2 mov edx, DWORD PTR _ns$[ebp] movzx eax, BYTE PTR [edx+ecx] cmp eax, 115 ; 00000073H jne $LN34@xmlSAX2Att mov ecx, 1 imul edx, ecx, 5 mov eax, DWORD PTR _ns$[ebp] movzx ecx, BYTE PTR [eax+edx] test ecx, ecx jne $LN34@xmlSAX2Att ; 1235 : xmlNsPtr nsret; ; 1236 : xmlChar *val; ; 1237 : ; 1238 : if (!ctxt->replaceEntities) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+16], 0 jne $LN35@xmlSAX2Att ; 1239 : ctxt->depth++; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+248] add ecx, 1 mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+248], ecx ; 1240 : val = xmlStringDecodeEntities(ctxt, value, XML_SUBSTITUTE_REF, push 0 push 0 push 0 push 1 mov eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlStringDecodeEntities add esp, 24 ; 00000018H mov DWORD PTR _val$6[ebp], eax ; 1241 : 0,0,0); ; 1242 : ctxt->depth--; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+248] sub eax, 1 mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+248], eax ; 1243 : if (val == NULL) { cmp DWORD PTR _val$6[ebp], 0 jne SHORT $LN37@xmlSAX2Att ; 1244 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElement"); push OFFSET ??_C@_0BE@NLCCMPDP@xmlSAX2StartElement@ mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlSAX2ErrMemory add esp, 8 ; 1245 : xmlFree(ns); mov esi, esp mov eax, DWORD PTR _ns$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 1246 : if (name != NULL) cmp DWORD PTR _name$[ebp], 0 je SHORT $LN38@xmlSAX2Att ; 1247 : xmlFree(name); mov esi, esp mov ecx, DWORD PTR _name$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN38@xmlSAX2Att: ; 1248 : if (nval != NULL) cmp DWORD PTR _nval$[ebp], 0 je SHORT $LN39@xmlSAX2Att ; 1249 : xmlFree(nval); mov esi, esp mov edx, DWORD PTR _nval$[ebp] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN39@xmlSAX2Att: ; 1250 : return; jmp $LN1@xmlSAX2Att $LN37@xmlSAX2Att: ; 1251 : } ; 1252 : } else { jmp SHORT $LN36@xmlSAX2Att $LN35@xmlSAX2Att: ; 1253 : val = (xmlChar *) value; mov eax, DWORD PTR _value$[ebp] mov DWORD PTR _val$6[ebp], eax $LN36@xmlSAX2Att: ; 1254 : } ; 1255 : ; 1256 : if (val[0] == 0) { mov ecx, 1 imul edx, ecx, 0 mov eax, DWORD PTR _val$6[ebp] movzx ecx, BYTE PTR [eax+edx] test ecx, ecx jne SHORT $LN40@xmlSAX2Att ; 1257 : xmlNsErrMsg(ctxt, XML_NS_ERR_EMPTY, push 0 mov edx, DWORD PTR _name$[ebp] push edx push OFFSET ??_C@_0CE@LNIJHMCD@Empty?5namespace?5name?5for?5prefix@ push 204 ; 000000ccH mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlNsErrMsg add esp, 20 ; 00000014H $LN40@xmlSAX2Att: ; 1258 : "Empty namespace name for prefix %s\n", name, NULL); ; 1259 : } ; 1260 : if ((ctxt->pedantic != 0) && (val[0] != 0)) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+268], 0 je SHORT $LN41@xmlSAX2Att mov edx, 1 imul eax, edx, 0 mov ecx, DWORD PTR _val$6[ebp] movzx edx, BYTE PTR [ecx+eax] test edx, edx je SHORT $LN41@xmlSAX2Att ; 1261 : xmlURIPtr uri; ; 1262 : ; 1263 : uri = xmlParseURI((const char *)val); mov eax, DWORD PTR _val$6[ebp] push eax call _xmlParseURI add esp, 4 mov DWORD PTR _uri$5[ebp], eax ; 1264 : if (uri == NULL) { cmp DWORD PTR _uri$5[ebp], 0 jne SHORT $LN42@xmlSAX2Att ; 1265 : xmlNsWarnMsg(ctxt, XML_WAR_NS_URI, mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _name$[ebp] push edx push OFFSET ??_C@_0BO@MNIAHAOJ@xmlns?3?$CFs?3?5?$CFs?5not?5a?5valid?5URI?6@ push 99 ; 00000063H mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlNsWarnMsg add esp, 20 ; 00000014H ; 1266 : "xmlns:%s: %s not a valid URI\n", name, value); ; 1267 : } else { jmp SHORT $LN41@xmlSAX2Att $LN42@xmlSAX2Att: ; 1268 : if (uri->scheme == NULL) { mov ecx, DWORD PTR _uri$5[ebp] cmp DWORD PTR [ecx], 0 jne SHORT $LN44@xmlSAX2Att ; 1269 : xmlNsWarnMsg(ctxt, XML_WAR_NS_URI_RELATIVE, mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _name$[ebp] push eax push OFFSET ??_C@_0CC@FFFCEDOK@xmlns?3?$CFs?3?5URI?5?$CFs?5is?5not?5absolut@ push 100 ; 00000064H mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlNsWarnMsg add esp, 20 ; 00000014H $LN44@xmlSAX2Att: ; 1270 : "xmlns:%s: URI %s is not absolute\n", name, value); ; 1271 : } ; 1272 : xmlFreeURI(uri); mov edx, DWORD PTR _uri$5[ebp] push edx call _xmlFreeURI add esp, 4 $LN41@xmlSAX2Att: ; 1273 : } ; 1274 : } ; 1275 : ; 1276 : /* a standard namespace definition */ ; 1277 : nsret = xmlNewNs(ctxt->node, val, name); mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _val$6[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+52] push eax call _xmlNewNs add esp, 12 ; 0000000cH mov DWORD PTR _nsret$7[ebp], eax ; 1278 : xmlFree(ns); mov esi, esp mov ecx, DWORD PTR _ns$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 1279 : #ifdef LIBXML_VALID_ENABLED ; 1280 : /* ; 1281 : * Validate also for namespace decls, they are attributes from ; 1282 : * an XML-1.0 perspective ; 1283 : */ ; 1284 : if (nsret != NULL && ctxt->validate && ctxt->wellFormed && ; 1285 : ctxt->myDoc && ctxt->myDoc->intSubset) cmp DWORD PTR _nsret$7[ebp], 0 je SHORT $LN45@xmlSAX2Att mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+104], 0 je SHORT $LN45@xmlSAX2Att mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+12], 0 je SHORT $LN45@xmlSAX2Att mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+8], 0 je SHORT $LN45@xmlSAX2Att mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] cmp DWORD PTR [eax+44], 0 je SHORT $LN45@xmlSAX2Att ; 1286 : ctxt->valid &= xmlValidateOneNamespace(&ctxt->vctxt, ctxt->myDoc, mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _nsret$7[ebp] push edx mov eax, DWORD PTR _prefix$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _ctxt$[ebp] add edx, 108 ; 0000006cH push edx call _xmlValidateOneNamespace add esp, 24 ; 00000018H mov ecx, DWORD PTR _ctxt$[ebp] and eax, DWORD PTR [ecx+100] mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+100], eax $LN45@xmlSAX2Att: ; 1287 : ctxt->node, prefix, nsret, value); ; 1288 : #endif /* LIBXML_VALID_ENABLED */ ; 1289 : if (name != NULL) cmp DWORD PTR _name$[ebp], 0 je SHORT $LN46@xmlSAX2Att ; 1290 : xmlFree(name); mov esi, esp mov eax, DWORD PTR _name$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN46@xmlSAX2Att: ; 1291 : if (nval != NULL) cmp DWORD PTR _nval$[ebp], 0 je SHORT $LN47@xmlSAX2Att ; 1292 : xmlFree(nval); mov esi, esp mov ecx, DWORD PTR _nval$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN47@xmlSAX2Att: ; 1293 : if (val != value) mov edx, DWORD PTR _val$6[ebp] cmp edx, DWORD PTR _value$[ebp] je SHORT $LN48@xmlSAX2Att ; 1294 : xmlFree(val); mov esi, esp mov eax, DWORD PTR _val$6[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN48@xmlSAX2Att: ; 1295 : return; jmp $LN1@xmlSAX2Att $LN34@xmlSAX2Att: ; 1296 : } ; 1297 : ; 1298 : if (ns != NULL) { cmp DWORD PTR _ns$[ebp], 0 je $LN49@xmlSAX2Att ; 1299 : namespace = xmlSearchNs(ctxt->myDoc, ctxt->node, ns); mov ecx, DWORD PTR _ns$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+52] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlSearchNs add esp, 12 ; 0000000cH mov DWORD PTR _namespace$[ebp], eax ; 1300 : ; 1301 : if (namespace == NULL) { cmp DWORD PTR _namespace$[ebp], 0 jne SHORT $LN51@xmlSAX2Att ; 1302 : xmlNsErrMsg(ctxt, XML_NS_ERR_UNDEFINED_NAMESPACE, mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _ns$[ebp] push ecx push OFFSET ??_C@_0DE@HNKDFNKM@Namespace?5prefix?5?$CFs?5of?5attribut@ push 201 ; 000000c9H mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlNsErrMsg add esp, 20 ; 00000014H ; 1303 : "Namespace prefix %s of attribute %s is not defined\n", ; 1304 : ns, name); ; 1305 : } else { jmp $LN52@xmlSAX2Att $LN51@xmlSAX2Att: ; 1306 : xmlAttrPtr prop; ; 1307 : ; 1308 : prop = ctxt->node->properties; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+52] mov edx, DWORD PTR [ecx+44] mov DWORD PTR _prop$4[ebp], edx $LN2@xmlSAX2Att: ; 1309 : while (prop != NULL) { cmp DWORD PTR _prop$4[ebp], 0 je $LN52@xmlSAX2Att ; 1310 : if (prop->ns != NULL) { mov eax, DWORD PTR _prop$4[ebp] cmp DWORD PTR [eax+36], 0 je $LN53@xmlSAX2Att ; 1311 : if ((xmlStrEqual(name, prop->name)) && mov ecx, DWORD PTR _prop$4[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _name$[ebp] push eax call _xmlStrEqual add esp, 8 test eax, eax je $LN53@xmlSAX2Att mov ecx, DWORD PTR _prop$4[ebp] mov edx, DWORD PTR _namespace$[ebp] cmp edx, DWORD PTR [ecx+36] je SHORT $LN55@xmlSAX2Att mov eax, DWORD PTR _prop$4[ebp] mov ecx, DWORD PTR [eax+36] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _namespace$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN53@xmlSAX2Att $LN55@xmlSAX2Att: ; 1312 : ((namespace == prop->ns) || ; 1313 : (xmlStrEqual(namespace->href, prop->ns->href)))) { ; 1314 : xmlNsErrMsg(ctxt, XML_ERR_ATTRIBUTE_REDEFINED, mov edx, DWORD PTR _namespace$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _name$[ebp] push ecx push OFFSET ??_C@_0BO@PGCJKKMF@Attribute?5?$CFs?5in?5?$CFs?5redefined?6@ push 42 ; 0000002aH mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlNsErrMsg add esp, 20 ; 00000014H ; 1315 : "Attribute %s in %s redefined\n", ; 1316 : name, namespace->href); ; 1317 : ctxt->wellFormed = 0; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+12], 0 ; 1318 : if (ctxt->recovery == 0) ctxt->disableSAX = 1; mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+288], 0 jne SHORT $LN56@xmlSAX2Att mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+212], 1 $LN56@xmlSAX2Att: ; 1319 : if (name != NULL) cmp DWORD PTR _name$[ebp], 0 je SHORT $LN57@xmlSAX2Att ; 1320 : xmlFree(name); mov esi, esp mov eax, DWORD PTR _name$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN57@xmlSAX2Att: ; 1321 : goto error; jmp $error$86 $LN53@xmlSAX2Att: ; 1322 : } ; 1323 : } ; 1324 : prop = prop->next; mov ecx, DWORD PTR _prop$4[ebp] mov edx, DWORD PTR [ecx+24] mov DWORD PTR _prop$4[ebp], edx ; 1325 : } jmp $LN2@xmlSAX2Att $LN52@xmlSAX2Att: ; 1326 : } ; 1327 : } else { jmp SHORT $LN50@xmlSAX2Att $LN49@xmlSAX2Att: ; 1328 : namespace = NULL; mov DWORD PTR _namespace$[ebp], 0 $LN50@xmlSAX2Att: ; 1329 : } ; 1330 : ; 1331 : /* !!!!!! <a toto:arg="" xmlns:toto="http://toto.com"> */ ; 1332 : ret = xmlNewNsPropEatName(ctxt->node, namespace, name, NULL); push 0 mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _namespace$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+52] push eax call _xmlNewNsPropEatName add esp, 16 ; 00000010H mov DWORD PTR _ret$[ebp], eax ; 1333 : ; 1334 : if (ret != NULL) { cmp DWORD PTR _ret$[ebp], 0 je $LN58@xmlSAX2Att ; 1335 : if ((ctxt->replaceEntities == 0) && (!ctxt->html)) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+16], 0 jne SHORT $LN59@xmlSAX2Att mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+32], 0 jne SHORT $LN59@xmlSAX2Att ; 1336 : xmlNodePtr tmp; ; 1337 : ; 1338 : ret->children = xmlStringGetNodeList(ctxt->myDoc, value); mov eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlStringGetNodeList add esp, 8 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+12], eax ; 1339 : tmp = ret->children; mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR [edx+12] mov DWORD PTR _tmp$3[ebp], eax $LN4@xmlSAX2Att: ; 1340 : while (tmp != NULL) { cmp DWORD PTR _tmp$3[ebp], 0 je SHORT $LN5@xmlSAX2Att ; 1341 : tmp->parent = (xmlNodePtr) ret; mov ecx, DWORD PTR _tmp$3[ebp] mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+20], edx ; 1342 : if (tmp->next == NULL) mov eax, DWORD PTR _tmp$3[ebp] cmp DWORD PTR [eax+24], 0 jne SHORT $LN61@xmlSAX2Att ; 1343 : ret->last = tmp; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR _tmp$3[ebp] mov DWORD PTR [ecx+16], edx $LN61@xmlSAX2Att: ; 1344 : tmp = tmp->next; mov eax, DWORD PTR _tmp$3[ebp] mov ecx, DWORD PTR [eax+24] mov DWORD PTR _tmp$3[ebp], ecx ; 1345 : } jmp SHORT $LN4@xmlSAX2Att $LN5@xmlSAX2Att: ; 1346 : } else if (value != NULL) { jmp SHORT $LN58@xmlSAX2Att $LN59@xmlSAX2Att: cmp DWORD PTR _value$[ebp], 0 je SHORT $LN58@xmlSAX2Att ; 1347 : ret->children = xmlNewDocText(ctxt->myDoc, value); mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlNewDocText add esp, 8 mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [edx+12], eax ; 1348 : ret->last = ret->children; mov eax, DWORD PTR _ret$[ebp] mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR [ecx+12] mov DWORD PTR [eax+16], edx ; 1349 : if (ret->children != NULL) mov eax, DWORD PTR _ret$[ebp] cmp DWORD PTR [eax+12], 0 je SHORT $LN58@xmlSAX2Att ; 1350 : ret->children->parent = (xmlNodePtr) ret; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR [ecx+12] mov eax, DWORD PTR _ret$[ebp] mov DWORD PTR [edx+20], eax $LN58@xmlSAX2Att: ; 1351 : } ; 1352 : } ; 1353 : ; 1354 : #ifdef LIBXML_VALID_ENABLED ; 1355 : if ((!ctxt->html) && ctxt->validate && ctxt->wellFormed && ; 1356 : ctxt->myDoc && ctxt->myDoc->intSubset) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+32], 0 jne $LN64@xmlSAX2Att mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+104], 0 je $LN64@xmlSAX2Att mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+12], 0 je $LN64@xmlSAX2Att mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+8], 0 je $LN64@xmlSAX2Att mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] cmp DWORD PTR [eax+44], 0 je $LN64@xmlSAX2Att ; 1357 : ; 1358 : /* ; 1359 : * If we don't substitute entities, the validation should be ; 1360 : * done on a value with replaced entities anyway. ; 1361 : */ ; 1362 : if (!ctxt->replaceEntities) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+16], 0 jne $LN66@xmlSAX2Att ; 1363 : xmlChar *val; ; 1364 : ; 1365 : ctxt->depth++; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+248] add eax, 1 mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+248], eax ; 1366 : val = xmlStringDecodeEntities(ctxt, value, XML_SUBSTITUTE_REF, push 0 push 0 push 0 push 1 mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlStringDecodeEntities add esp, 24 ; 00000018H mov DWORD PTR _val$2[ebp], eax ; 1367 : 0,0,0); ; 1368 : ctxt->depth--; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+248] sub edx, 1 mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+248], edx ; 1369 : ; 1370 : if (val == NULL) cmp DWORD PTR _val$2[ebp], 0 jne SHORT $LN68@xmlSAX2Att ; 1371 : ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt, mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+52] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _ctxt$[ebp] add ecx, 108 ; 0000006cH push ecx call _xmlValidateOneAttribute add esp, 20 ; 00000014H mov edx, DWORD PTR _ctxt$[ebp] and eax, DWORD PTR [edx+100] mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+100], eax jmp $LN69@xmlSAX2Att $LN68@xmlSAX2Att: ; 1372 : ctxt->myDoc, ctxt->node, ret, value); ; 1373 : else { ; 1374 : xmlChar *nvalnorm; ; 1375 : ; 1376 : /* ; 1377 : * Do the last stage of the attribute normalization ; 1378 : * It need to be done twice ... it's an extra burden related ; 1379 : * to the ability to keep xmlSAX2References in attributes ; 1380 : */ ; 1381 : nvalnorm = xmlValidNormalizeAttributeValue(ctxt->myDoc, mov edx, DWORD PTR _val$2[ebp] push edx mov eax, DWORD PTR _fullname$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlValidNormalizeAttributeValue add esp, 16 ; 00000010H mov DWORD PTR _nvalnorm$1[ebp], eax ; 1382 : ctxt->node, fullname, val); ; 1383 : if (nvalnorm != NULL) { cmp DWORD PTR _nvalnorm$1[ebp], 0 je SHORT $LN70@xmlSAX2Att ; 1384 : xmlFree(val); mov esi, esp mov edx, DWORD PTR _val$2[ebp] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 1385 : val = nvalnorm; mov eax, DWORD PTR _nvalnorm$1[ebp] mov DWORD PTR _val$2[ebp], eax $LN70@xmlSAX2Att: ; 1386 : } ; 1387 : ; 1388 : ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt, mov ecx, DWORD PTR _val$2[ebp] push ecx mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+52] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _ctxt$[ebp] add ecx, 108 ; 0000006cH push ecx call _xmlValidateOneAttribute add esp, 20 ; 00000014H mov edx, DWORD PTR _ctxt$[ebp] and eax, DWORD PTR [edx+100] mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+100], eax ; 1389 : ctxt->myDoc, ctxt->node, ret, val); ; 1390 : xmlFree(val); mov esi, esp mov edx, DWORD PTR _val$2[ebp] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN69@xmlSAX2Att: ; 1391 : } ; 1392 : } else { jmp SHORT $LN67@xmlSAX2Att $LN66@xmlSAX2Att: ; 1393 : ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt, ctxt->myDoc, mov eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _ret$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+52] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _ctxt$[ebp] add eax, 108 ; 0000006cH push eax call _xmlValidateOneAttribute add esp, 20 ; 00000014H mov ecx, DWORD PTR _ctxt$[ebp] and eax, DWORD PTR [ecx+100] mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+100], eax $LN67@xmlSAX2Att: ; 1394 : ctxt->node, ret, value); ; 1395 : } ; 1396 : } else jmp $error$86 $LN64@xmlSAX2Att: ; 1397 : #endif /* LIBXML_VALID_ENABLED */ ; 1398 : if (((ctxt->loadsubset & XML_SKIP_IDS) == 0) && mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+276] and ecx, 8 jne $error$86 mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+16], 0 jne SHORT $LN73@xmlSAX2Att mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+96], 2 jne SHORT $LN72@xmlSAX2Att $LN73@xmlSAX2Att: mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+16], 0 je $error$86 mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+216], 0 jne $error$86 $LN72@xmlSAX2Att: ; 1399 : (((ctxt->replaceEntities == 0) && (ctxt->external != 2)) || ; 1400 : ((ctxt->replaceEntities != 0) && (ctxt->inSubset == 0)))) { ; 1401 : /* ; 1402 : * when validating, the ID registration is done at the attribute ; 1403 : * validation level. Otherwise we have to do specific handling here. ; 1404 : */ ; 1405 : if (xmlStrEqual(fullname, BAD_CAST "xml:id")) { push OFFSET ??_C@_06IMLNHOMM@xml?3id@ mov eax, DWORD PTR _fullname$[ebp] push eax call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN74@xmlSAX2Att ; 1406 : /* ; 1407 : * Add the xml:id value ; 1408 : * ; 1409 : * Open issue: normalization of the value. ; 1410 : */ ; 1411 : if (xmlValidateNCName(value, 1) != 0) { push 1 mov ecx, DWORD PTR _value$[ebp] push ecx call _xmlValidateNCName add esp, 8 test eax, eax je SHORT $LN76@xmlSAX2Att ; 1412 : xmlErrValid(ctxt, XML_DTD_XMLID_VALUE, push 0 mov edx, DWORD PTR _value$[ebp] push edx push OFFSET ??_C@_0CO@CCGEJOB@xml?3id?5?3?5attribute?5value?5?$CFs?5is?5@ push 539 ; 0000021bH mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValid add esp, 20 ; 00000014H $LN76@xmlSAX2Att: ; 1413 : "xml:id : attribute value %s is not an NCName\n", ; 1414 : (const char *) value, NULL); ; 1415 : } ; 1416 : xmlAddID(&ctxt->vctxt, ctxt->myDoc, value, ret); mov ecx, DWORD PTR _ret$[ebp] push ecx mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _ctxt$[ebp] add edx, 108 ; 0000006cH push edx call _xmlAddID add esp, 16 ; 00000010H jmp SHORT $error$86 $LN74@xmlSAX2Att: ; 1417 : } else if (xmlIsID(ctxt->myDoc, ctxt->node, ret)) mov eax, DWORD PTR _ret$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlIsID add esp, 12 ; 0000000cH test eax, eax je SHORT $LN77@xmlSAX2Att ; 1418 : xmlAddID(&ctxt->vctxt, ctxt->myDoc, value, ret); mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _ctxt$[ebp] add eax, 108 ; 0000006cH push eax call _xmlAddID add esp, 16 ; 00000010H jmp SHORT $error$86 $LN77@xmlSAX2Att: ; 1419 : else if (xmlIsRef(ctxt->myDoc, ctxt->node, ret)) mov ecx, DWORD PTR _ret$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+52] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlIsRef add esp, 12 ; 0000000cH test eax, eax je SHORT $error$86 ; 1420 : xmlAddRef(&ctxt->vctxt, ctxt->myDoc, value, ret); mov eax, DWORD PTR _ret$[ebp] push eax mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _ctxt$[ebp] add ecx, 108 ; 0000006cH push ecx call _xmlAddRef add esp, 16 ; 00000010H $error$86: ; 1421 : } ; 1422 : ; 1423 : error: ; 1424 : if (nval != NULL) cmp DWORD PTR _nval$[ebp], 0 je SHORT $LN80@xmlSAX2Att ; 1425 : xmlFree(nval); mov esi, esp mov edx, DWORD PTR _nval$[ebp] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN80@xmlSAX2Att: ; 1426 : if (ns != NULL) cmp DWORD PTR _ns$[ebp], 0 je SHORT $LN1@xmlSAX2Att ; 1427 : xmlFree(ns); mov esi, esp mov eax, DWORD PTR _ns$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN1@xmlSAX2Att: ; 1428 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN85@xmlSAX2Att call @_RTC_CheckStackVars@8 pop eax pop edx pop edi pop esi add esp, 72 ; 00000048H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 1 $LN85@xmlSAX2Att: DD 1 DD $LN84@xmlSAX2Att $LN84@xmlSAX2Att: DD -20 ; ffffffecH DD 4 DD $LN83@xmlSAX2Att $LN83@xmlSAX2Att: DB 110 ; 0000006eH DB 115 ; 00000073H DB 0 _xmlSAX2AttributeInternal ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlNsWarnMsg _TEXT SEGMENT _ctxt$ = 8 ; size = 4 _error$ = 12 ; size = 4 _msg$ = 16 ; size = 4 _str1$ = 20 ; size = 4 _str2$ = 24 ; size = 4 _xmlNsWarnMsg PROC ; COMDAT ; 220 : { push ebp mov ebp, esp mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 221 : if ((ctxt != NULL) && (ctxt->disableSAX != 0) && cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN2@xmlNsWarnM mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+212], 0 je SHORT $LN2@xmlNsWarnM mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+172], -1 jne SHORT $LN2@xmlNsWarnM ; 222 : (ctxt->instate == XML_PARSER_EOF)) ; 223 : return; jmp SHORT $LN1@xmlNsWarnM $LN2@xmlNsWarnM: ; 224 : if (ctxt != NULL) cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN3@xmlNsWarnM ; 225 : ctxt->errNo = error; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR _error$[ebp] mov DWORD PTR [edx+84], eax $LN3@xmlNsWarnM: ; 226 : __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_NAMESPACE, error, mov ecx, DWORD PTR _str2$[ebp] push ecx mov edx, DWORD PTR _str1$[ebp] push edx mov eax, DWORD PTR _msg$[ebp] push eax push 0 push 0 push 0 mov ecx, DWORD PTR _str2$[ebp] push ecx mov edx, DWORD PTR _str1$[ebp] push edx push 0 push 0 push 1 mov eax, DWORD PTR _error$[ebp] push eax push 3 push 0 mov ecx, DWORD PTR _ctxt$[ebp] push ecx push 0 push 0 push 0 call ___xmlRaiseError add esp, 72 ; 00000048H $LN1@xmlNsWarnM: ; 227 : XML_ERR_WARNING, NULL, 0, ; 228 : (const char *) str1, (const char *) str2, ; 229 : NULL, 0, 0, msg, str1, str2); ; 230 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlNsWarnMsg ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlNsErrMsg _TEXT SEGMENT _ctxt$ = 8 ; size = 4 _error$ = 12 ; size = 4 _msg$ = 16 ; size = 4 _str1$ = 20 ; size = 4 _str2$ = 24 ; size = 4 _xmlNsErrMsg PROC ; COMDAT ; 196 : { push ebp mov ebp, esp mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 197 : if ((ctxt != NULL) && (ctxt->disableSAX != 0) && cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN2@xmlNsErrMs mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+212], 0 je SHORT $LN2@xmlNsErrMs mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+172], -1 jne SHORT $LN2@xmlNsErrMs ; 198 : (ctxt->instate == XML_PARSER_EOF)) ; 199 : return; jmp SHORT $LN1@xmlNsErrMs $LN2@xmlNsErrMs: ; 200 : if (ctxt != NULL) cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN3@xmlNsErrMs ; 201 : ctxt->errNo = error; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR _error$[ebp] mov DWORD PTR [edx+84], eax $LN3@xmlNsErrMs: ; 202 : __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_NAMESPACE, error, mov ecx, DWORD PTR _str2$[ebp] push ecx mov edx, DWORD PTR _str1$[ebp] push edx mov eax, DWORD PTR _msg$[ebp] push eax push 0 push 0 push 0 mov ecx, DWORD PTR _str2$[ebp] push ecx mov edx, DWORD PTR _str1$[ebp] push edx push 0 push 0 push 2 mov eax, DWORD PTR _error$[ebp] push eax push 3 push 0 mov ecx, DWORD PTR _ctxt$[ebp] push ecx push 0 push 0 push 0 call ___xmlRaiseError add esp, 72 ; 00000048H $LN1@xmlNsErrMs: ; 203 : XML_ERR_ERROR, NULL, 0, ; 204 : (const char *) str1, (const char *) str2, ; 205 : NULL, 0, 0, msg, str1, str2); ; 206 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlNsErrMsg ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlWarnMsg _TEXT SEGMENT _ctxt$ = 8 ; size = 4 _error$ = 12 ; size = 4 _msg$ = 16 ; size = 4 _str1$ = 20 ; size = 4 _xmlWarnMsg PROC ; COMDAT ; 171 : { push ebp mov ebp, esp mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 172 : if ((ctxt != NULL) && (ctxt->disableSAX != 0) && cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN2@xmlWarnMsg mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+212], 0 je SHORT $LN2@xmlWarnMsg mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+172], -1 jne SHORT $LN2@xmlWarnMsg ; 173 : (ctxt->instate == XML_PARSER_EOF)) ; 174 : return; jmp SHORT $LN1@xmlWarnMsg $LN2@xmlWarnMsg: ; 175 : if (ctxt != NULL) cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN3@xmlWarnMsg ; 176 : ctxt->errNo = error; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR _error$[ebp] mov DWORD PTR [edx+84], eax $LN3@xmlWarnMsg: ; 177 : __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER, error, mov ecx, DWORD PTR _str1$[ebp] push ecx mov edx, DWORD PTR _msg$[ebp] push edx push 0 push 0 push 0 push 0 mov eax, DWORD PTR _str1$[ebp] push eax push 0 push 0 push 1 mov ecx, DWORD PTR _error$[ebp] push ecx push 1 push 0 mov edx, DWORD PTR _ctxt$[ebp] push edx push 0 push 0 push 0 call ___xmlRaiseError add esp, 68 ; 00000044H $LN1@xmlWarnMsg: ; 178 : XML_ERR_WARNING, NULL, 0, ; 179 : (const char *) str1, NULL, ; 180 : NULL, 0, 0, msg, str1); ; 181 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlWarnMsg ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlFatalErrMsg _TEXT SEGMENT _ctxt$ = 8 ; size = 4 _error$ = 12 ; size = 4 _msg$ = 16 ; size = 4 _str1$ = 20 ; size = 4 _str2$ = 24 ; size = 4 _xmlFatalErrMsg PROC ; COMDAT ; 140 : { push ebp mov ebp, esp mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 141 : if ((ctxt != NULL) && (ctxt->disableSAX != 0) && cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN2@xmlFatalEr mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+212], 0 je SHORT $LN2@xmlFatalEr mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+172], -1 jne SHORT $LN2@xmlFatalEr ; 142 : (ctxt->instate == XML_PARSER_EOF)) ; 143 : return; jmp SHORT $LN1@xmlFatalEr $LN2@xmlFatalEr: ; 144 : if (ctxt != NULL) cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN3@xmlFatalEr ; 145 : ctxt->errNo = error; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR _error$[ebp] mov DWORD PTR [edx+84], eax $LN3@xmlFatalEr: ; 146 : __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER, error, mov ecx, DWORD PTR _str2$[ebp] push ecx mov edx, DWORD PTR _str1$[ebp] push edx mov eax, DWORD PTR _msg$[ebp] push eax push 0 push 0 push 0 mov ecx, DWORD PTR _str2$[ebp] push ecx mov edx, DWORD PTR _str1$[ebp] push edx push 0 push 0 push 3 mov eax, DWORD PTR _error$[ebp] push eax push 1 push 0 mov ecx, DWORD PTR _ctxt$[ebp] push ecx push 0 push 0 push 0 call ___xmlRaiseError add esp, 72 ; 00000048H ; 147 : XML_ERR_FATAL, NULL, 0, ; 148 : (const char *) str1, (const char *) str2, ; 149 : NULL, 0, 0, msg, str1, str2); ; 150 : if (ctxt != NULL) { cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN1@xmlFatalEr ; 151 : ctxt->wellFormed = 0; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+12], 0 ; 152 : ctxt->valid = 0; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+100], 0 ; 153 : if (ctxt->recovery == 0) mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+288], 0 jne SHORT $LN1@xmlFatalEr ; 154 : ctxt->disableSAX = 1; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+212], 1 $LN1@xmlFatalEr: ; 155 : } ; 156 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlFatalErrMsg ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlErrValid _TEXT SEGMENT _schannel$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _error$ = 12 ; size = 4 _msg$ = 16 ; size = 4 _str1$ = 20 ; size = 4 _str2$ = 24 ; size = 4 _xmlErrValid PROC ; COMDAT ; 100 : { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 101 : xmlStructuredErrorFunc schannel = NULL; mov DWORD PTR _schannel$[ebp], 0 ; 102 : ; 103 : if ((ctxt != NULL) && (ctxt->disableSAX != 0) && cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN2@xmlErrVali mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+212], 0 je SHORT $LN2@xmlErrVali mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+172], -1 jne SHORT $LN2@xmlErrVali ; 104 : (ctxt->instate == XML_PARSER_EOF)) ; 105 : return; jmp $LN1@xmlErrVali $LN2@xmlErrVali: ; 106 : if (ctxt != NULL) { cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN3@xmlErrVali ; 107 : ctxt->errNo = error; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR _error$[ebp] mov DWORD PTR [edx+84], eax ; 108 : if ((ctxt->sax != NULL) && (ctxt->sax->initialized == XML_SAX2_MAGIC)) mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx], 0 je SHORT $LN5@xmlErrVali mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx] cmp DWORD PTR [eax+108], -554844497 ; deedbeafH jne SHORT $LN5@xmlErrVali ; 109 : schannel = ctxt->sax->serror; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx] mov eax, DWORD PTR [edx+124] mov DWORD PTR _schannel$[ebp], eax $LN5@xmlErrVali: ; 110 : __xmlRaiseError(schannel, mov ecx, DWORD PTR _str2$[ebp] push ecx mov edx, DWORD PTR _str1$[ebp] push edx mov eax, DWORD PTR _msg$[ebp] push eax push 0 push 0 push 0 mov ecx, DWORD PTR _str2$[ebp] push ecx mov edx, DWORD PTR _str1$[ebp] push edx push 0 push 0 push 2 mov eax, DWORD PTR _error$[ebp] push eax push 4 push 0 mov ecx, DWORD PTR _ctxt$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+108] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+112] push edx mov eax, DWORD PTR _schannel$[ebp] push eax call ___xmlRaiseError add esp, 72 ; 00000048H ; 111 : ctxt->vctxt.error, ctxt->vctxt.userData, ; 112 : ctxt, NULL, XML_FROM_DTD, error, ; 113 : XML_ERR_ERROR, NULL, 0, (const char *) str1, ; 114 : (const char *) str2, NULL, 0, 0, ; 115 : msg, (const char *) str1, (const char *) str2); ; 116 : ctxt->valid = 0; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+100], 0 ; 117 : } else { jmp SHORT $LN1@xmlErrVali $LN3@xmlErrVali: ; 118 : __xmlRaiseError(schannel, mov edx, DWORD PTR _str2$[ebp] push edx mov eax, DWORD PTR _str1$[ebp] push eax mov ecx, DWORD PTR _msg$[ebp] push ecx push 0 push 0 push 0 mov edx, DWORD PTR _str2$[ebp] push edx mov eax, DWORD PTR _str1$[ebp] push eax push 0 push 0 push 2 mov ecx, DWORD PTR _error$[ebp] push ecx push 4 push 0 mov edx, DWORD PTR _ctxt$[ebp] push edx push 0 push 0 mov eax, DWORD PTR _schannel$[ebp] push eax call ___xmlRaiseError add esp, 72 ; 00000048H $LN1@xmlErrVali: ; 119 : NULL, NULL, ; 120 : ctxt, NULL, XML_FROM_DTD, error, ; 121 : XML_ERR_ERROR, NULL, 0, (const char *) str1, ; 122 : (const char *) str2, NULL, 0, 0, ; 123 : msg, (const char *) str1, (const char *) str2); ; 124 : } ; 125 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlErrValid ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2ErrMemory _TEXT SEGMENT _str1$ = -8 ; size = 4 _schannel$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _msg$ = 12 ; size = 4 _xmlSAX2ErrMemory PROC ; COMDAT ; 60 : xmlSAX2ErrMemory(xmlParserCtxtPtr ctxt, const char *msg) { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 61 : xmlStructuredErrorFunc schannel = NULL; mov DWORD PTR _schannel$[ebp], 0 ; 62 : const char *str1 = "out of memory\n"; mov DWORD PTR _str1$[ebp], OFFSET ??_C@_0P@PCJPAHLM@out?5of?5memory?6@ ; 63 : ; 64 : if (ctxt != NULL) { cmp DWORD PTR _ctxt$[ebp], 0 je $LN2@xmlSAX2Err ; 65 : ctxt->errNo = XML_ERR_NO_MEMORY; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+84], 2 ; 66 : if ((ctxt->sax != NULL) && (ctxt->sax->initialized == XML_SAX2_MAGIC)) mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx], 0 je SHORT $LN4@xmlSAX2Err mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx] cmp DWORD PTR [eax+108], -554844497 ; deedbeafH jne SHORT $LN4@xmlSAX2Err ; 67 : schannel = ctxt->sax->serror; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx] mov eax, DWORD PTR [edx+124] mov DWORD PTR _schannel$[ebp], eax $LN4@xmlSAX2Err: ; 68 : __xmlRaiseError(schannel, push 0 mov ecx, DWORD PTR _str1$[ebp] push ecx mov edx, DWORD PTR _msg$[ebp] push edx push 0 push 0 push 0 push 0 mov eax, DWORD PTR _str1$[ebp] push eax push 0 push 0 push 2 push 2 push 1 push 0 mov ecx, DWORD PTR _ctxt$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+108] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+112] push edx mov eax, DWORD PTR _schannel$[ebp] push eax call ___xmlRaiseError add esp, 72 ; 00000048H ; 69 : ctxt->vctxt.error, ctxt->vctxt.userData, ; 70 : ctxt, NULL, XML_FROM_PARSER, XML_ERR_NO_MEMORY, ; 71 : XML_ERR_ERROR, NULL, 0, (const char *) str1, ; 72 : NULL, NULL, 0, 0, ; 73 : msg, (const char *) str1, NULL); ; 74 : ctxt->errNo = XML_ERR_NO_MEMORY; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+84], 2 ; 75 : ctxt->instate = XML_PARSER_EOF; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+172], -1 ; 76 : ctxt->disableSAX = 1; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+212], 1 ; 77 : } else { jmp SHORT $LN1@xmlSAX2Err $LN2@xmlSAX2Err: ; 78 : __xmlRaiseError(schannel, push 0 mov ecx, DWORD PTR _str1$[ebp] push ecx mov edx, DWORD PTR _msg$[ebp] push edx push 0 push 0 push 0 push 0 mov eax, DWORD PTR _str1$[ebp] push eax push 0 push 0 push 2 push 2 push 1 push 0 mov ecx, DWORD PTR _ctxt$[ebp] push ecx push 0 push 0 mov edx, DWORD PTR _schannel$[ebp] push edx call ___xmlRaiseError add esp, 72 ; 00000048H $LN1@xmlSAX2Err: ; 79 : NULL, NULL, ; 80 : ctxt, NULL, XML_FROM_PARSER, XML_ERR_NO_MEMORY, ; 81 : XML_ERR_ERROR, NULL, 0, (const char *) str1, ; 82 : NULL, NULL, 0, 0, ; 83 : msg, (const char *) str1, NULL); ; 84 : } ; 85 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2ErrMemory ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlDefaultSAXHandlerInit _TEXT SEGMENT _xmlDefaultSAXHandlerInit PROC ; COMDAT ; 2940 : { push ebp mov ebp, esp mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 2941 : #ifdef LIBXML_SAX1_ENABLED ; 2942 : xmlSAXVersion((xmlSAXHandlerPtr) &xmlDefaultSAXHandler, 1); push 1 call ___xmlDefaultSAXHandler push eax call _xmlSAXVersion add esp, 8 ; 2943 : #endif /* LIBXML_SAX1_ENABLED */ ; 2944 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlDefaultSAXHandlerInit ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _docbDefaultSAXHandlerInit _TEXT SEGMENT _docbDefaultSAXHandlerInit PROC ; COMDAT ; 3056 : { push ebp mov ebp, esp mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 3057 : xmlSAX2InitDocbDefaultSAXHandler((xmlSAXHandlerPtr) &docbDefaultSAXHandler); call ___docbDefaultSAXHandler push eax call _xmlSAX2InitDocbDefaultSAXHandler add esp, 4 ; 3058 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _docbDefaultSAXHandlerInit ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2InitDocbDefaultSAXHandler _TEXT SEGMENT _hdlr$ = 8 ; size = 4 _xmlSAX2InitDocbDefaultSAXHandler PROC ; COMDAT ; 3014 : { push ebp mov ebp, esp mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 3015 : if ((hdlr == NULL) || (hdlr->initialized != 0)) cmp DWORD PTR _hdlr$[ebp], 0 je SHORT $LN3@xmlSAX2Ini mov eax, DWORD PTR _hdlr$[ebp] cmp DWORD PTR [eax+108], 0 je SHORT $LN2@xmlSAX2Ini $LN3@xmlSAX2Ini: ; 3016 : return; jmp $LN1@xmlSAX2Ini $LN2@xmlSAX2Ini: ; 3017 : ; 3018 : hdlr->internalSubset = xmlSAX2InternalSubset; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx], OFFSET _xmlSAX2InternalSubset ; 3019 : hdlr->externalSubset = NULL; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+104], 0 ; 3020 : hdlr->isStandalone = xmlSAX2IsStandalone; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+4], OFFSET _xmlSAX2IsStandalone ; 3021 : hdlr->hasInternalSubset = xmlSAX2HasInternalSubset; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+8], OFFSET _xmlSAX2HasInternalSubset ; 3022 : hdlr->hasExternalSubset = xmlSAX2HasExternalSubset; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+12], OFFSET _xmlSAX2HasExternalSubset ; 3023 : hdlr->resolveEntity = xmlSAX2ResolveEntity; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+16], OFFSET _xmlSAX2ResolveEntity ; 3024 : hdlr->getEntity = xmlSAX2GetEntity; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+20], OFFSET _xmlSAX2GetEntity ; 3025 : hdlr->getParameterEntity = NULL; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+96], 0 ; 3026 : hdlr->entityDecl = xmlSAX2EntityDecl; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+24], OFFSET _xmlSAX2EntityDecl ; 3027 : hdlr->attributeDecl = NULL; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+32], 0 ; 3028 : hdlr->elementDecl = NULL; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+36], 0 ; 3029 : hdlr->notationDecl = NULL; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+28], 0 ; 3030 : hdlr->unparsedEntityDecl = NULL; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+40], 0 ; 3031 : hdlr->setDocumentLocator = xmlSAX2SetDocumentLocator; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+44], OFFSET _xmlSAX2SetDocumentLocator ; 3032 : hdlr->startDocument = xmlSAX2StartDocument; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+48], OFFSET _xmlSAX2StartDocument ; 3033 : hdlr->endDocument = xmlSAX2EndDocument; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+52], OFFSET _xmlSAX2EndDocument ; 3034 : hdlr->startElement = xmlSAX2StartElement; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+56], OFFSET _xmlSAX2StartElement ; 3035 : hdlr->endElement = xmlSAX2EndElement; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+60], OFFSET _xmlSAX2EndElement ; 3036 : hdlr->reference = xmlSAX2Reference; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+64], OFFSET _xmlSAX2Reference ; 3037 : hdlr->characters = xmlSAX2Characters; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+68], OFFSET _xmlSAX2Characters ; 3038 : hdlr->cdataBlock = NULL; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+100], 0 ; 3039 : hdlr->ignorableWhitespace = xmlSAX2IgnorableWhitespace; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+72], OFFSET _xmlSAX2IgnorableWhitespace ; 3040 : hdlr->processingInstruction = NULL; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+76], 0 ; 3041 : hdlr->comment = xmlSAX2Comment; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+80], OFFSET _xmlSAX2Comment ; 3042 : hdlr->warning = xmlParserWarning; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+84], OFFSET _xmlParserWarning ; 3043 : hdlr->error = xmlParserError; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+88], OFFSET _xmlParserError ; 3044 : hdlr->fatalError = xmlParserError; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+92], OFFSET _xmlParserError ; 3045 : ; 3046 : hdlr->initialized = 1; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+108], 1 $LN1@xmlSAX2Ini: ; 3047 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlSAX2InitDocbDefaultSAXHandler ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _htmlDefaultSAXHandlerInit _TEXT SEGMENT _htmlDefaultSAXHandlerInit PROC ; COMDAT ; 2998 : { push ebp mov ebp, esp mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 2999 : xmlSAX2InitHtmlDefaultSAXHandler((xmlSAXHandlerPtr) &htmlDefaultSAXHandler); call ___htmlDefaultSAXHandler push eax call _xmlSAX2InitHtmlDefaultSAXHandler add esp, 4 ; 3000 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _htmlDefaultSAXHandlerInit ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2InitHtmlDefaultSAXHandler _TEXT SEGMENT _hdlr$ = 8 ; size = 4 _xmlSAX2InitHtmlDefaultSAXHandler PROC ; COMDAT ; 2956 : { push ebp mov ebp, esp mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 2957 : if ((hdlr == NULL) || (hdlr->initialized != 0)) cmp DWORD PTR _hdlr$[ebp], 0 je SHORT $LN3@xmlSAX2Ini mov eax, DWORD PTR _hdlr$[ebp] cmp DWORD PTR [eax+108], 0 je SHORT $LN2@xmlSAX2Ini $LN3@xmlSAX2Ini: ; 2958 : return; jmp $LN1@xmlSAX2Ini $LN2@xmlSAX2Ini: ; 2959 : ; 2960 : hdlr->internalSubset = xmlSAX2InternalSubset; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx], OFFSET _xmlSAX2InternalSubset ; 2961 : hdlr->externalSubset = NULL; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+104], 0 ; 2962 : hdlr->isStandalone = NULL; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+4], 0 ; 2963 : hdlr->hasInternalSubset = NULL; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+8], 0 ; 2964 : hdlr->hasExternalSubset = NULL; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+12], 0 ; 2965 : hdlr->resolveEntity = NULL; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+16], 0 ; 2966 : hdlr->getEntity = xmlSAX2GetEntity; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+20], OFFSET _xmlSAX2GetEntity ; 2967 : hdlr->getParameterEntity = NULL; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+96], 0 ; 2968 : hdlr->entityDecl = NULL; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+24], 0 ; 2969 : hdlr->attributeDecl = NULL; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+32], 0 ; 2970 : hdlr->elementDecl = NULL; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+36], 0 ; 2971 : hdlr->notationDecl = NULL; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+28], 0 ; 2972 : hdlr->unparsedEntityDecl = NULL; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+40], 0 ; 2973 : hdlr->setDocumentLocator = xmlSAX2SetDocumentLocator; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+44], OFFSET _xmlSAX2SetDocumentLocator ; 2974 : hdlr->startDocument = xmlSAX2StartDocument; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+48], OFFSET _xmlSAX2StartDocument ; 2975 : hdlr->endDocument = xmlSAX2EndDocument; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+52], OFFSET _xmlSAX2EndDocument ; 2976 : hdlr->startElement = xmlSAX2StartElement; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+56], OFFSET _xmlSAX2StartElement ; 2977 : hdlr->endElement = xmlSAX2EndElement; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+60], OFFSET _xmlSAX2EndElement ; 2978 : hdlr->reference = NULL; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+64], 0 ; 2979 : hdlr->characters = xmlSAX2Characters; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+68], OFFSET _xmlSAX2Characters ; 2980 : hdlr->cdataBlock = xmlSAX2CDataBlock; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+100], OFFSET _xmlSAX2CDataBlock ; 2981 : hdlr->ignorableWhitespace = xmlSAX2IgnorableWhitespace; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+72], OFFSET _xmlSAX2IgnorableWhitespace ; 2982 : hdlr->processingInstruction = xmlSAX2ProcessingInstruction; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+76], OFFSET _xmlSAX2ProcessingInstruction ; 2983 : hdlr->comment = xmlSAX2Comment; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+80], OFFSET _xmlSAX2Comment ; 2984 : hdlr->warning = xmlParserWarning; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+84], OFFSET _xmlParserWarning ; 2985 : hdlr->error = xmlParserError; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+88], OFFSET _xmlParserError ; 2986 : hdlr->fatalError = xmlParserError; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+92], OFFSET _xmlParserError ; 2987 : ; 2988 : hdlr->initialized = 1; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+108], 1 $LN1@xmlSAX2Ini: ; 2989 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlSAX2InitHtmlDefaultSAXHandler ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2InitDefaultSAXHandler _TEXT SEGMENT _hdlr$ = 8 ; size = 4 _warning$ = 12 ; size = 4 _xmlSAX2InitDefaultSAXHandler PROC ; COMDAT ; 2922 : { push ebp mov ebp, esp mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 2923 : if ((hdlr == NULL) || (hdlr->initialized != 0)) cmp DWORD PTR _hdlr$[ebp], 0 je SHORT $LN3@xmlSAX2Ini mov eax, DWORD PTR _hdlr$[ebp] cmp DWORD PTR [eax+108], 0 je SHORT $LN2@xmlSAX2Ini $LN3@xmlSAX2Ini: ; 2924 : return; jmp SHORT $LN1@xmlSAX2Ini $LN2@xmlSAX2Ini: ; 2925 : ; 2926 : xmlSAXVersion(hdlr, xmlSAX2DefaultVersionValue); mov ecx, DWORD PTR _xmlSAX2DefaultVersionValue push ecx mov edx, DWORD PTR _hdlr$[ebp] push edx call _xmlSAXVersion add esp, 8 ; 2927 : if (warning == 0) cmp DWORD PTR _warning$[ebp], 0 jne SHORT $LN4@xmlSAX2Ini ; 2928 : hdlr->warning = NULL; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+84], 0 jmp SHORT $LN1@xmlSAX2Ini $LN4@xmlSAX2Ini: ; 2929 : else ; 2930 : hdlr->warning = xmlParserWarning; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+84], OFFSET _xmlParserWarning $LN1@xmlSAX2Ini: ; 2931 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlSAX2InitDefaultSAXHandler ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAXVersion _TEXT SEGMENT _hdlr$ = 8 ; size = 4 _version$ = 12 ; size = 4 _xmlSAXVersion PROC ; COMDAT ; 2867 : { push ebp mov ebp, esp mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 2868 : if (hdlr == NULL) return(-1); cmp DWORD PTR _hdlr$[ebp], 0 jne SHORT $LN2@xmlSAXVers or eax, -1 jmp $LN1@xmlSAXVers $LN2@xmlSAXVers: ; 2869 : if (version == 2) { cmp DWORD PTR _version$[ebp], 2 jne SHORT $LN3@xmlSAXVers ; 2870 : hdlr->startElement = NULL; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+56], 0 ; 2871 : hdlr->endElement = NULL; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+60], 0 ; 2872 : hdlr->startElementNs = xmlSAX2StartElementNs; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+116], OFFSET _xmlSAX2StartElementNs ; 2873 : hdlr->endElementNs = xmlSAX2EndElementNs; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+120], OFFSET _xmlSAX2EndElementNs ; 2874 : hdlr->serror = NULL; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+124], 0 ; 2875 : hdlr->initialized = XML_SAX2_MAGIC; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+108], -554844497 ; deedbeafH jmp SHORT $LN4@xmlSAXVers $LN3@xmlSAXVers: ; 2876 : #ifdef LIBXML_SAX1_ENABLED ; 2877 : } else if (version == 1) { cmp DWORD PTR _version$[ebp], 1 jne SHORT $LN5@xmlSAXVers ; 2878 : hdlr->startElement = xmlSAX2StartElement; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+56], OFFSET _xmlSAX2StartElement ; 2879 : hdlr->endElement = xmlSAX2EndElement; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+60], OFFSET _xmlSAX2EndElement ; 2880 : hdlr->initialized = 1; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+108], 1 ; 2881 : #endif /* LIBXML_SAX1_ENABLED */ ; 2882 : } else jmp SHORT $LN4@xmlSAXVers $LN5@xmlSAXVers: ; 2883 : return(-1); or eax, -1 jmp $LN1@xmlSAXVers $LN4@xmlSAXVers: ; 2884 : hdlr->internalSubset = xmlSAX2InternalSubset; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax], OFFSET _xmlSAX2InternalSubset ; 2885 : hdlr->externalSubset = xmlSAX2ExternalSubset; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+104], OFFSET _xmlSAX2ExternalSubset ; 2886 : hdlr->isStandalone = xmlSAX2IsStandalone; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+4], OFFSET _xmlSAX2IsStandalone ; 2887 : hdlr->hasInternalSubset = xmlSAX2HasInternalSubset; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+8], OFFSET _xmlSAX2HasInternalSubset ; 2888 : hdlr->hasExternalSubset = xmlSAX2HasExternalSubset; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+12], OFFSET _xmlSAX2HasExternalSubset ; 2889 : hdlr->resolveEntity = xmlSAX2ResolveEntity; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+16], OFFSET _xmlSAX2ResolveEntity ; 2890 : hdlr->getEntity = xmlSAX2GetEntity; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+20], OFFSET _xmlSAX2GetEntity ; 2891 : hdlr->getParameterEntity = xmlSAX2GetParameterEntity; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+96], OFFSET _xmlSAX2GetParameterEntity ; 2892 : hdlr->entityDecl = xmlSAX2EntityDecl; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+24], OFFSET _xmlSAX2EntityDecl ; 2893 : hdlr->attributeDecl = xmlSAX2AttributeDecl; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+32], OFFSET _xmlSAX2AttributeDecl ; 2894 : hdlr->elementDecl = xmlSAX2ElementDecl; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+36], OFFSET _xmlSAX2ElementDecl ; 2895 : hdlr->notationDecl = xmlSAX2NotationDecl; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+28], OFFSET _xmlSAX2NotationDecl ; 2896 : hdlr->unparsedEntityDecl = xmlSAX2UnparsedEntityDecl; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+40], OFFSET _xmlSAX2UnparsedEntityDecl ; 2897 : hdlr->setDocumentLocator = xmlSAX2SetDocumentLocator; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+44], OFFSET _xmlSAX2SetDocumentLocator ; 2898 : hdlr->startDocument = xmlSAX2StartDocument; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+48], OFFSET _xmlSAX2StartDocument ; 2899 : hdlr->endDocument = xmlSAX2EndDocument; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+52], OFFSET _xmlSAX2EndDocument ; 2900 : hdlr->reference = xmlSAX2Reference; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+64], OFFSET _xmlSAX2Reference ; 2901 : hdlr->characters = xmlSAX2Characters; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+68], OFFSET _xmlSAX2Characters ; 2902 : hdlr->cdataBlock = xmlSAX2CDataBlock; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+100], OFFSET _xmlSAX2CDataBlock ; 2903 : hdlr->ignorableWhitespace = xmlSAX2Characters; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+72], OFFSET _xmlSAX2Characters ; 2904 : hdlr->processingInstruction = xmlSAX2ProcessingInstruction; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+76], OFFSET _xmlSAX2ProcessingInstruction ; 2905 : hdlr->comment = xmlSAX2Comment; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+80], OFFSET _xmlSAX2Comment ; 2906 : hdlr->warning = xmlParserWarning; mov ecx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [ecx+84], OFFSET _xmlParserWarning ; 2907 : hdlr->error = xmlParserError; mov edx, DWORD PTR _hdlr$[ebp] mov DWORD PTR [edx+88], OFFSET _xmlParserError ; 2908 : hdlr->fatalError = xmlParserError; mov eax, DWORD PTR _hdlr$[ebp] mov DWORD PTR [eax+92], OFFSET _xmlParserError ; 2909 : ; 2910 : return(0); xor eax, eax $LN1@xmlSAXVers: ; 2911 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlSAXVersion ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAXDefaultVersion _TEXT SEGMENT _ret$ = -4 ; size = 4 _version$ = 8 ; size = 4 _xmlSAXDefaultVersion PROC ; COMDAT ; 2846 : { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 2847 : int ret = xmlSAX2DefaultVersionValue; mov eax, DWORD PTR _xmlSAX2DefaultVersionValue mov DWORD PTR _ret$[ebp], eax ; 2848 : ; 2849 : if ((version != 1) && (version != 2)) cmp DWORD PTR _version$[ebp], 1 je SHORT $LN2@xmlSAXDefa cmp DWORD PTR _version$[ebp], 2 je SHORT $LN2@xmlSAXDefa ; 2850 : return(-1); or eax, -1 jmp SHORT $LN1@xmlSAXDefa $LN2@xmlSAXDefa: ; 2851 : xmlSAX2DefaultVersionValue = version; mov ecx, DWORD PTR _version$[ebp] mov DWORD PTR _xmlSAX2DefaultVersionValue, ecx ; 2852 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlSAXDefa: ; 2853 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAXDefaultVersion ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2CDataBlock _TEXT SEGMENT _lastChild$ = -12 ; size = 4 _ret$ = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _value$ = 12 ; size = 4 _len$ = 16 ; size = 4 _xmlSAX2CDataBlock PROC ; COMDAT ; 2805 : { push ebp mov ebp, esp sub esp, 12 ; 0000000cH mov DWORD PTR [ebp-12], -858993460 ; ccccccccH mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 2806 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 2807 : xmlNodePtr ret, lastChild; ; 2808 : ; 2809 : if (ctx == NULL) return; cmp DWORD PTR _ctx$[ebp], 0 jne SHORT $LN2@xmlSAX2CDa jmp SHORT $LN1@xmlSAX2CDa $LN2@xmlSAX2CDa: ; 2810 : #ifdef DEBUG_SAX ; 2811 : xmlGenericError(xmlGenericErrorContext, ; 2812 : "SAX.pcdata(%.10s, %d)\n", value, len); ; 2813 : #endif ; 2814 : lastChild = xmlGetLastChild(ctxt->node); mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] push edx call _xmlGetLastChild add esp, 4 mov DWORD PTR _lastChild$[ebp], eax ; 2815 : #ifdef DEBUG_SAX_TREE ; 2816 : xmlGenericError(xmlGenericErrorContext, ; 2817 : "add chars to %s \n", ctxt->node->name); ; 2818 : #endif ; 2819 : if ((lastChild != NULL) && cmp DWORD PTR _lastChild$[ebp], 0 je SHORT $LN3@xmlSAX2CDa mov eax, DWORD PTR _lastChild$[ebp] cmp DWORD PTR [eax+4], 4 jne SHORT $LN3@xmlSAX2CDa ; 2820 : (lastChild->type == XML_CDATA_SECTION_NODE)) { ; 2821 : xmlTextConcat(lastChild, value, len); mov ecx, DWORD PTR _len$[ebp] push ecx mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _lastChild$[ebp] push eax call _xmlTextConcat add esp, 12 ; 0000000cH ; 2822 : } else { jmp SHORT $LN1@xmlSAX2CDa $LN3@xmlSAX2CDa: ; 2823 : ret = xmlNewCDataBlock(ctxt->myDoc, value, len); mov ecx, DWORD PTR _len$[ebp] push ecx mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlNewCDataBlock add esp, 12 ; 0000000cH mov DWORD PTR _ret$[ebp], eax ; 2824 : if (xmlAddChild(ctxt->node, ret) == NULL) mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+52] push ecx call _xmlAddChild add esp, 8 test eax, eax jne SHORT $LN1@xmlSAX2CDa ; 2825 : xmlFreeNode(ret); mov edx, DWORD PTR _ret$[ebp] push edx call _xmlFreeNode add esp, 4 $LN1@xmlSAX2CDa: ; 2826 : } ; 2827 : } add esp, 12 ; 0000000cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2CDataBlock ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2Comment _TEXT SEGMENT _parent$ = -12 ; size = 4 _ret$ = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _value$ = 12 ; size = 4 _xmlSAX2Comment PROC ; COMDAT ; 2743 : { push ebp mov ebp, esp sub esp, 12 ; 0000000cH mov DWORD PTR [ebp-12], -858993460 ; ccccccccH mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 2744 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 2745 : xmlNodePtr ret; ; 2746 : xmlNodePtr parent; ; 2747 : ; 2748 : if (ctx == NULL) return; cmp DWORD PTR _ctx$[ebp], 0 jne SHORT $LN2@xmlSAX2Com jmp $LN1@xmlSAX2Com $LN2@xmlSAX2Com: ; 2749 : parent = ctxt->node; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] mov DWORD PTR _parent$[ebp], edx ; 2750 : #ifdef DEBUG_SAX ; 2751 : xmlGenericError(xmlGenericErrorContext, "SAX.xmlSAX2Comment(%s)\n", value); ; 2752 : #endif ; 2753 : ret = xmlNewDocComment(ctxt->myDoc, value); mov eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlNewDocComment add esp, 8 mov DWORD PTR _ret$[ebp], eax ; 2754 : if (ret == NULL) return; cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN3@xmlSAX2Com jmp $LN1@xmlSAX2Com $LN3@xmlSAX2Com: ; 2755 : if (ctxt->linenumbers) { mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+280], 0 je SHORT $LN4@xmlSAX2Com ; 2756 : if (ctxt->input != NULL) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+36], 0 je SHORT $LN4@xmlSAX2Com ; 2757 : if (ctxt->input->line < 65535) mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+36] cmp DWORD PTR [eax+28], 65535 ; 0000ffffH jge SHORT $LN6@xmlSAX2Com ; 2758 : ret->line = (short) ctxt->input->line; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+36] mov eax, DWORD PTR _ret$[ebp] mov cx, WORD PTR [edx+28] mov WORD PTR [eax+56], cx jmp SHORT $LN4@xmlSAX2Com $LN6@xmlSAX2Com: ; 2759 : else ; 2760 : ret->line = 65535; mov edx, 65535 ; 0000ffffH mov eax, DWORD PTR _ret$[ebp] mov WORD PTR [eax+56], dx $LN4@xmlSAX2Com: ; 2761 : } ; 2762 : } ; 2763 : ; 2764 : if (ctxt->inSubset == 1) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+216], 1 jne SHORT $LN8@xmlSAX2Com ; 2765 : xmlAddChild((xmlNodePtr) ctxt->myDoc->intSubset, ret); mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] mov edx, DWORD PTR [ecx+44] push edx call _xmlAddChild add esp, 8 ; 2766 : return; jmp SHORT $LN1@xmlSAX2Com jmp SHORT $LN9@xmlSAX2Com $LN8@xmlSAX2Com: ; 2767 : } else if (ctxt->inSubset == 2) { mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+216], 2 jne SHORT $LN9@xmlSAX2Com ; 2768 : xmlAddChild((xmlNodePtr) ctxt->myDoc->extSubset, ret); mov ecx, DWORD PTR _ret$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] mov ecx, DWORD PTR [eax+48] push ecx call _xmlAddChild add esp, 8 ; 2769 : return; jmp SHORT $LN1@xmlSAX2Com $LN9@xmlSAX2Com: ; 2770 : } ; 2771 : if (parent == NULL) { cmp DWORD PTR _parent$[ebp], 0 jne SHORT $LN11@xmlSAX2Com ; 2772 : #ifdef DEBUG_SAX_TREE ; 2773 : xmlGenericError(xmlGenericErrorContext, ; 2774 : "Setting xmlSAX2Comment as root\n"); ; 2775 : #endif ; 2776 : xmlAddChild((xmlNodePtr) ctxt->myDoc, (xmlNodePtr) ret); mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlAddChild add esp, 8 ; 2777 : return; jmp SHORT $LN1@xmlSAX2Com $LN11@xmlSAX2Com: ; 2778 : } ; 2779 : if (parent->type == XML_ELEMENT_NODE) { mov edx, DWORD PTR _parent$[ebp] cmp DWORD PTR [edx+4], 1 jne SHORT $LN12@xmlSAX2Com ; 2780 : #ifdef DEBUG_SAX_TREE ; 2781 : xmlGenericError(xmlGenericErrorContext, ; 2782 : "adding xmlSAX2Comment child to %s\n", parent->name); ; 2783 : #endif ; 2784 : xmlAddChild(parent, ret); mov eax, DWORD PTR _ret$[ebp] push eax mov ecx, DWORD PTR _parent$[ebp] push ecx call _xmlAddChild add esp, 8 ; 2785 : } else { jmp SHORT $LN1@xmlSAX2Com $LN12@xmlSAX2Com: ; 2786 : #ifdef DEBUG_SAX_TREE ; 2787 : xmlGenericError(xmlGenericErrorContext, ; 2788 : "adding xmlSAX2Comment sibling to "); ; 2789 : xmlDebugDumpOneNode(stderr, parent, 0); ; 2790 : #endif ; 2791 : xmlAddSibling(parent, ret); mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _parent$[ebp] push eax call _xmlAddSibling add esp, 8 $LN1@xmlSAX2Com: ; 2792 : } ; 2793 : } add esp, 12 ; 0000000cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2Comment ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2ProcessingInstruction _TEXT SEGMENT _parent$ = -12 ; size = 4 _ret$ = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _target$ = 12 ; size = 4 _data$ = 16 ; size = 4 _xmlSAX2ProcessingInstruction PROC ; COMDAT ; 2680 : { push ebp mov ebp, esp sub esp, 12 ; 0000000cH mov DWORD PTR [ebp-12], -858993460 ; ccccccccH mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 2681 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 2682 : xmlNodePtr ret; ; 2683 : xmlNodePtr parent; ; 2684 : ; 2685 : if (ctx == NULL) return; cmp DWORD PTR _ctx$[ebp], 0 jne SHORT $LN2@xmlSAX2Pro jmp $LN1@xmlSAX2Pro $LN2@xmlSAX2Pro: ; 2686 : parent = ctxt->node; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] mov DWORD PTR _parent$[ebp], edx ; 2687 : #ifdef DEBUG_SAX ; 2688 : xmlGenericError(xmlGenericErrorContext, ; 2689 : "SAX.xmlSAX2ProcessingInstruction(%s, %s)\n", target, data); ; 2690 : #endif ; 2691 : ; 2692 : ret = xmlNewDocPI(ctxt->myDoc, target, data); mov eax, DWORD PTR _data$[ebp] push eax mov ecx, DWORD PTR _target$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlNewDocPI add esp, 12 ; 0000000cH mov DWORD PTR _ret$[ebp], eax ; 2693 : if (ret == NULL) return; cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN3@xmlSAX2Pro jmp $LN1@xmlSAX2Pro $LN3@xmlSAX2Pro: ; 2694 : ; 2695 : if (ctxt->linenumbers) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+280], 0 je SHORT $LN4@xmlSAX2Pro ; 2696 : if (ctxt->input != NULL) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+36], 0 je SHORT $LN4@xmlSAX2Pro ; 2697 : if (ctxt->input->line < 65535) mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+36] cmp DWORD PTR [ecx+28], 65535 ; 0000ffffH jge SHORT $LN6@xmlSAX2Pro ; 2698 : ret->line = (short) ctxt->input->line; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+36] mov ecx, DWORD PTR _ret$[ebp] mov dx, WORD PTR [eax+28] mov WORD PTR [ecx+56], dx jmp SHORT $LN4@xmlSAX2Pro $LN6@xmlSAX2Pro: ; 2699 : else ; 2700 : ret->line = 65535; mov eax, 65535 ; 0000ffffH mov ecx, DWORD PTR _ret$[ebp] mov WORD PTR [ecx+56], ax $LN4@xmlSAX2Pro: ; 2701 : } ; 2702 : } ; 2703 : if (ctxt->inSubset == 1) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+216], 1 jne SHORT $LN8@xmlSAX2Pro ; 2704 : xmlAddChild((xmlNodePtr) ctxt->myDoc->intSubset, ret); mov eax, DWORD PTR _ret$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] mov eax, DWORD PTR [edx+44] push eax call _xmlAddChild add esp, 8 ; 2705 : return; jmp SHORT $LN1@xmlSAX2Pro jmp SHORT $LN9@xmlSAX2Pro $LN8@xmlSAX2Pro: ; 2706 : } else if (ctxt->inSubset == 2) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+216], 2 jne SHORT $LN9@xmlSAX2Pro ; 2707 : xmlAddChild((xmlNodePtr) ctxt->myDoc->extSubset, ret); mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] mov edx, DWORD PTR [ecx+48] push edx call _xmlAddChild add esp, 8 ; 2708 : return; jmp SHORT $LN1@xmlSAX2Pro $LN9@xmlSAX2Pro: ; 2709 : } ; 2710 : if (parent == NULL) { cmp DWORD PTR _parent$[ebp], 0 jne SHORT $LN11@xmlSAX2Pro ; 2711 : #ifdef DEBUG_SAX_TREE ; 2712 : xmlGenericError(xmlGenericErrorContext, ; 2713 : "Setting PI %s as root\n", target); ; 2714 : #endif ; 2715 : xmlAddChild((xmlNodePtr) ctxt->myDoc, (xmlNodePtr) ret); mov eax, DWORD PTR _ret$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlAddChild add esp, 8 ; 2716 : return; jmp SHORT $LN1@xmlSAX2Pro $LN11@xmlSAX2Pro: ; 2717 : } ; 2718 : if (parent->type == XML_ELEMENT_NODE) { mov eax, DWORD PTR _parent$[ebp] cmp DWORD PTR [eax+4], 1 jne SHORT $LN12@xmlSAX2Pro ; 2719 : #ifdef DEBUG_SAX_TREE ; 2720 : xmlGenericError(xmlGenericErrorContext, ; 2721 : "adding PI %s child to %s\n", target, parent->name); ; 2722 : #endif ; 2723 : xmlAddChild(parent, ret); mov ecx, DWORD PTR _ret$[ebp] push ecx mov edx, DWORD PTR _parent$[ebp] push edx call _xmlAddChild add esp, 8 ; 2724 : } else { jmp SHORT $LN1@xmlSAX2Pro $LN12@xmlSAX2Pro: ; 2725 : #ifdef DEBUG_SAX_TREE ; 2726 : xmlGenericError(xmlGenericErrorContext, ; 2727 : "adding PI %s sibling to ", target); ; 2728 : xmlDebugDumpOneNode(stderr, parent, 0); ; 2729 : #endif ; 2730 : xmlAddSibling(parent, ret); mov eax, DWORD PTR _ret$[ebp] push eax mov ecx, DWORD PTR _parent$[ebp] push ecx call _xmlAddSibling add esp, 8 $LN1@xmlSAX2Pro: ; 2731 : } ; 2732 : } add esp, 12 ; 0000000cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2ProcessingInstruction ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2IgnorableWhitespace _TEXT SEGMENT _ctx$ = 8 ; size = 4 _ch$ = 12 ; size = 4 _len$ = 16 ; size = 4 _xmlSAX2IgnorableWhitespace PROC ; COMDAT ; 2661 : { push ebp mov ebp, esp mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 2662 : /* xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; */ ; 2663 : #ifdef DEBUG_SAX ; 2664 : xmlGenericError(xmlGenericErrorContext, ; 2665 : "SAX.xmlSAX2IgnorableWhitespace(%.30s, %d)\n", ch, len); ; 2666 : #endif ; 2667 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlSAX2IgnorableWhitespace ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2Characters _TEXT SEGMENT tv94 = -24 ; size = 4 _size$1 = -20 ; size = 4 _newbuf$2 = -16 ; size = 4 _coalesceText$3 = -12 ; size = 4 _lastChild$ = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _ch$ = 12 ; size = 4 _len$ = 16 ; size = 4 _xmlSAX2Characters PROC ; COMDAT ; 2533 : { push ebp mov ebp, esp sub esp, 24 ; 00000018H push esi mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 2534 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 2535 : xmlNodePtr lastChild; ; 2536 : ; 2537 : if (ctx == NULL) return; cmp DWORD PTR _ctx$[ebp], 0 jne SHORT $LN2@xmlSAX2Cha jmp $LN1@xmlSAX2Cha $LN2@xmlSAX2Cha: ; 2538 : #ifdef DEBUG_SAX ; 2539 : xmlGenericError(xmlGenericErrorContext, ; 2540 : "SAX.xmlSAX2Characters(%.30s, %d)\n", ch, len); ; 2541 : #endif ; 2542 : /* ; 2543 : * Handle the data if any. If there is no child ; 2544 : * add it as content, otherwise if the last child is text, ; 2545 : * concatenate it, else create a new node of type text. ; 2546 : */ ; 2547 : ; 2548 : if (ctxt->node == NULL) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+52], 0 jne SHORT $LN3@xmlSAX2Cha ; 2549 : #ifdef DEBUG_SAX_TREE ; 2550 : xmlGenericError(xmlGenericErrorContext, ; 2551 : "add chars: ctxt->node == NULL !\n"); ; 2552 : #endif ; 2553 : return; jmp $LN1@xmlSAX2Cha $LN3@xmlSAX2Cha: ; 2554 : } ; 2555 : lastChild = ctxt->node->last; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+52] mov ecx, DWORD PTR [eax+16] mov DWORD PTR _lastChild$[ebp], ecx ; 2556 : #ifdef DEBUG_SAX_TREE ; 2557 : xmlGenericError(xmlGenericErrorContext, ; 2558 : "add chars to %s \n", ctxt->node->name); ; 2559 : #endif ; 2560 : ; 2561 : /* ; 2562 : * Here we needed an accelerator mechanism in case of very large ; 2563 : * elements. Use an attribute in the structure !!! ; 2564 : */ ; 2565 : if (lastChild == NULL) { cmp DWORD PTR _lastChild$[ebp], 0 jne $LN4@xmlSAX2Cha ; 2566 : lastChild = xmlSAX2TextNode(ctxt, ch, len); mov edx, DWORD PTR _len$[ebp] push edx mov eax, DWORD PTR _ch$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlSAX2TextNode add esp, 12 ; 0000000cH mov DWORD PTR _lastChild$[ebp], eax ; 2567 : if (lastChild != NULL) { cmp DWORD PTR _lastChild$[ebp], 0 je SHORT $LN6@xmlSAX2Cha ; 2568 : ctxt->node->children = lastChild; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+52] mov ecx, DWORD PTR _lastChild$[ebp] mov DWORD PTR [eax+12], ecx ; 2569 : ctxt->node->last = lastChild; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+52] mov ecx, DWORD PTR _lastChild$[ebp] mov DWORD PTR [eax+16], ecx ; 2570 : lastChild->parent = ctxt->node; mov edx, DWORD PTR _lastChild$[ebp] mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+52] mov DWORD PTR [edx+20], ecx ; 2571 : lastChild->doc = ctxt->node->doc; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+52] mov ecx, DWORD PTR _lastChild$[ebp] mov edx, DWORD PTR [eax+32] mov DWORD PTR [ecx+32], edx ; 2572 : ctxt->nodelen = len; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR _len$[ebp] mov DWORD PTR [eax+260], ecx ; 2573 : ctxt->nodemem = len + 1; mov edx, DWORD PTR _len$[ebp] add edx, 1 mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+264], edx ; 2574 : } else { jmp SHORT $LN7@xmlSAX2Cha $LN6@xmlSAX2Cha: ; 2575 : xmlSAX2ErrMemory(ctxt, "xmlSAX2Characters"); push OFFSET ??_C@_0BC@IJLHKBBO@xmlSAX2Characters@ mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlSAX2ErrMemory add esp, 8 ; 2576 : return; jmp $LN1@xmlSAX2Cha $LN7@xmlSAX2Cha: ; 2577 : } ; 2578 : } else { jmp $LN1@xmlSAX2Cha $LN4@xmlSAX2Cha: ; 2579 : int coalesceText = (lastChild != NULL) && cmp DWORD PTR _lastChild$[ebp], 0 je SHORT $LN26@xmlSAX2Cha mov edx, DWORD PTR _lastChild$[ebp] cmp DWORD PTR [edx+4], 3 jne SHORT $LN26@xmlSAX2Cha mov eax, DWORD PTR _lastChild$[ebp] cmp DWORD PTR [eax+8], OFFSET _xmlStringText jne SHORT $LN26@xmlSAX2Cha mov DWORD PTR tv94[ebp], 1 jmp SHORT $LN27@xmlSAX2Cha $LN26@xmlSAX2Cha: mov DWORD PTR tv94[ebp], 0 $LN27@xmlSAX2Cha: mov ecx, DWORD PTR tv94[ebp] mov DWORD PTR _coalesceText$3[ebp], ecx ; 2580 : (lastChild->type == XML_TEXT_NODE) && ; 2581 : (lastChild->name == xmlStringText); ; 2582 : if ((coalesceText) && (ctxt->nodemem != 0)) { cmp DWORD PTR _coalesceText$3[ebp], 0 je $LN8@xmlSAX2Cha mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+264], 0 je $LN8@xmlSAX2Cha ; 2583 : /* ; 2584 : * The whole point of maintaining nodelen and nodemem, ; 2585 : * xmlTextConcat is too costly, i.e. compute length, ; 2586 : * reallocate a new buffer, move data, append ch. Here ; 2587 : * We try to minimaze realloc() uses and avoid copying ; 2588 : * and recomputing length over and over. ; 2589 : */ ; 2590 : if (lastChild->content == (xmlChar *)&(lastChild->properties)) { mov eax, DWORD PTR _lastChild$[ebp] add eax, 44 ; 0000002cH mov ecx, DWORD PTR _lastChild$[ebp] cmp DWORD PTR [ecx+40], eax jne SHORT $LN10@xmlSAX2Cha ; 2591 : lastChild->content = xmlStrdup(lastChild->content); mov edx, DWORD PTR _lastChild$[ebp] mov eax, DWORD PTR [edx+40] push eax call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _lastChild$[ebp] mov DWORD PTR [ecx+40], eax ; 2592 : lastChild->properties = NULL; mov edx, DWORD PTR _lastChild$[ebp] mov DWORD PTR [edx+44], 0 jmp SHORT $LN11@xmlSAX2Cha $LN10@xmlSAX2Cha: ; 2593 : } else if ((ctxt->nodemem == ctxt->nodelen + 1) && mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+260] add ecx, 1 mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+264], ecx jne SHORT $LN11@xmlSAX2Cha mov eax, DWORD PTR _lastChild$[ebp] mov ecx, DWORD PTR [eax+40] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+296] push eax call _xmlDictOwns add esp, 8 test eax, eax je SHORT $LN11@xmlSAX2Cha ; 2594 : (xmlDictOwns(ctxt->dict, lastChild->content))) { ; 2595 : lastChild->content = xmlStrdup(lastChild->content); mov ecx, DWORD PTR _lastChild$[ebp] mov edx, DWORD PTR [ecx+40] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _lastChild$[ebp] mov DWORD PTR [ecx+40], eax $LN11@xmlSAX2Cha: ; 2596 : } ; 2597 : if (lastChild->content == NULL) { mov edx, DWORD PTR _lastChild$[ebp] cmp DWORD PTR [edx+40], 0 jne SHORT $LN13@xmlSAX2Cha ; 2598 : xmlSAX2ErrMemory(ctxt, "xmlSAX2Characters: xmlStrdup returned NULL"); push OFFSET ??_C@_0CL@EDPCIJGK@xmlSAX2Characters?3?5xmlStrdup?5re@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlSAX2ErrMemory add esp, 8 ; 2599 : return; jmp $LN1@xmlSAX2Cha $LN13@xmlSAX2Cha: ; 2600 : } ; 2601 : if (((size_t)ctxt->nodelen + (size_t)len > XML_MAX_TEXT_LENGTH) && mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+260] add edx, DWORD PTR _len$[ebp] cmp edx, 10000000 ; 00989680H jbe SHORT $LN14@xmlSAX2Cha mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+360] and ecx, 524288 ; 00080000H jne SHORT $LN14@xmlSAX2Cha ; 2602 : ((ctxt->options & XML_PARSE_HUGE) == 0)) { ; 2603 : xmlSAX2ErrMemory(ctxt, "xmlSAX2Characters: huge text node"); push OFFSET ??_C@_0CC@PCIHKIPC@xmlSAX2Characters?3?5huge?5text?5no@ mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlSAX2ErrMemory add esp, 8 ; 2604 : return; jmp $LN1@xmlSAX2Cha $LN14@xmlSAX2Cha: ; 2605 : } ; 2606 : if ((size_t)ctxt->nodelen > SIZE_T_MAX - (size_t)len || or eax, -1 sub eax, DWORD PTR _len$[ebp] mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+260], eax ja SHORT $LN16@xmlSAX2Cha mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+264] add eax, DWORD PTR _len$[ebp] cmp eax, 2147483647 ; 7fffffffH jbe SHORT $LN15@xmlSAX2Cha $LN16@xmlSAX2Cha: ; 2607 : (size_t)ctxt->nodemem + (size_t)len > SIZE_T_MAX / 2) { ; 2608 : xmlSAX2ErrMemory(ctxt, "xmlSAX2Characters overflow prevented"); push OFFSET ??_C@_0CF@EADJOGLP@xmlSAX2Characters?5overflow?5prev@ mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlSAX2ErrMemory add esp, 8 ; 2609 : return; jmp $LN1@xmlSAX2Cha $LN15@xmlSAX2Cha: ; 2610 : } ; 2611 : if (ctxt->nodelen + len >= ctxt->nodemem) { mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+260] add eax, DWORD PTR _len$[ebp] mov ecx, DWORD PTR _ctxt$[ebp] cmp eax, DWORD PTR [ecx+264] jl SHORT $LN17@xmlSAX2Cha ; 2612 : xmlChar *newbuf; ; 2613 : size_t size; ; 2614 : ; 2615 : size = ctxt->nodemem + len; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+264] add eax, DWORD PTR _len$[ebp] mov DWORD PTR _size$1[ebp], eax ; 2616 : size *= 2; mov ecx, DWORD PTR _size$1[ebp] shl ecx, 1 mov DWORD PTR _size$1[ebp], ecx ; 2617 : newbuf = (xmlChar *) xmlRealloc(lastChild->content,size); mov esi, esp mov edx, DWORD PTR _size$1[ebp] push edx mov eax, DWORD PTR _lastChild$[ebp] mov ecx, DWORD PTR [eax+40] push ecx call DWORD PTR _xmlRealloc add esp, 8 cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _newbuf$2[ebp], eax ; 2618 : if (newbuf == NULL) { cmp DWORD PTR _newbuf$2[ebp], 0 jne SHORT $LN18@xmlSAX2Cha ; 2619 : xmlSAX2ErrMemory(ctxt, "xmlSAX2Characters"); push OFFSET ??_C@_0BC@IJLHKBBO@xmlSAX2Characters@ mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlSAX2ErrMemory add esp, 8 ; 2620 : return; jmp $LN1@xmlSAX2Cha $LN18@xmlSAX2Cha: ; 2621 : } ; 2622 : ctxt->nodemem = size; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR _size$1[ebp] mov DWORD PTR [eax+264], ecx ; 2623 : lastChild->content = newbuf; mov edx, DWORD PTR _lastChild$[ebp] mov eax, DWORD PTR _newbuf$2[ebp] mov DWORD PTR [edx+40], eax $LN17@xmlSAX2Cha: ; 2624 : } ; 2625 : memcpy(&lastChild->content[ctxt->nodelen], ch, len); mov ecx, DWORD PTR _len$[ebp] push ecx mov edx, DWORD PTR _ch$[ebp] push edx mov eax, DWORD PTR _lastChild$[ebp] mov ecx, DWORD PTR [eax+40] mov edx, DWORD PTR _ctxt$[ebp] add ecx, DWORD PTR [edx+260] push ecx call _memcpy add esp, 12 ; 0000000cH ; 2626 : ctxt->nodelen += len; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+260] add ecx, DWORD PTR _len$[ebp] mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+260], ecx ; 2627 : lastChild->content[ctxt->nodelen] = 0; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+260] mov edx, DWORD PTR _lastChild$[ebp] mov eax, DWORD PTR [edx+40] mov BYTE PTR [eax+ecx], 0 jmp $LN1@xmlSAX2Cha $LN8@xmlSAX2Cha: ; 2628 : } else if (coalesceText) { cmp DWORD PTR _coalesceText$3[ebp], 0 je SHORT $LN19@xmlSAX2Cha ; 2629 : if (xmlTextConcat(lastChild, ch, len)) { mov ecx, DWORD PTR _len$[ebp] push ecx mov edx, DWORD PTR _ch$[ebp] push edx mov eax, DWORD PTR _lastChild$[ebp] push eax call _xmlTextConcat add esp, 12 ; 0000000cH test eax, eax je SHORT $LN21@xmlSAX2Cha ; 2630 : xmlSAX2ErrMemory(ctxt, "xmlSAX2Characters"); push OFFSET ??_C@_0BC@IJLHKBBO@xmlSAX2Characters@ mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlSAX2ErrMemory add esp, 8 $LN21@xmlSAX2Cha: ; 2631 : } ; 2632 : if (ctxt->node->children != NULL) { mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+52] cmp DWORD PTR [eax+12], 0 je SHORT $LN22@xmlSAX2Cha ; 2633 : ctxt->nodelen = xmlStrlen(lastChild->content); mov ecx, DWORD PTR _lastChild$[ebp] mov edx, DWORD PTR [ecx+40] push edx call _xmlStrlen add esp, 4 mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+260], eax ; 2634 : ctxt->nodemem = ctxt->nodelen + 1; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+260] add eax, 1 mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+264], eax $LN22@xmlSAX2Cha: ; 2635 : } ; 2636 : } else { jmp SHORT $LN1@xmlSAX2Cha $LN19@xmlSAX2Cha: ; 2637 : /* Mixed content, first time */ ; 2638 : lastChild = xmlSAX2TextNode(ctxt, ch, len); mov edx, DWORD PTR _len$[ebp] push edx mov eax, DWORD PTR _ch$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlSAX2TextNode add esp, 12 ; 0000000cH mov DWORD PTR _lastChild$[ebp], eax ; 2639 : if (lastChild != NULL) { cmp DWORD PTR _lastChild$[ebp], 0 je SHORT $LN1@xmlSAX2Cha ; 2640 : xmlAddChild(ctxt->node, lastChild); mov edx, DWORD PTR _lastChild$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+52] push ecx call _xmlAddChild add esp, 8 ; 2641 : if (ctxt->node->children != NULL) { mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+52] cmp DWORD PTR [eax+12], 0 je SHORT $LN1@xmlSAX2Cha ; 2642 : ctxt->nodelen = len; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR _len$[ebp] mov DWORD PTR [ecx+260], edx ; 2643 : ctxt->nodemem = len + 1; mov eax, DWORD PTR _len$[ebp] add eax, 1 mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+264], eax $LN1@xmlSAX2Cha: ; 2644 : } ; 2645 : } ; 2646 : } ; 2647 : } ; 2648 : } pop esi add esp, 24 ; 00000018H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2Characters ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2Reference _TEXT SEGMENT _ret$ = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlSAX2Reference PROC ; COMDAT ; 2501 : { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 2502 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 2503 : xmlNodePtr ret; ; 2504 : ; 2505 : if (ctx == NULL) return; cmp DWORD PTR _ctx$[ebp], 0 jne SHORT $LN2@xmlSAX2Ref jmp SHORT $LN1@xmlSAX2Ref $LN2@xmlSAX2Ref: ; 2506 : #ifdef DEBUG_SAX ; 2507 : xmlGenericError(xmlGenericErrorContext, ; 2508 : "SAX.xmlSAX2Reference(%s)\n", name); ; 2509 : #endif ; 2510 : if (name[0] == '#') mov ecx, 1 imul edx, ecx, 0 mov eax, DWORD PTR _name$[ebp] movzx ecx, BYTE PTR [eax+edx] cmp ecx, 35 ; 00000023H jne SHORT $LN3@xmlSAX2Ref ; 2511 : ret = xmlNewCharRef(ctxt->myDoc, name); mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlNewCharRef add esp, 8 mov DWORD PTR _ret$[ebp], eax jmp SHORT $LN4@xmlSAX2Ref $LN3@xmlSAX2Ref: ; 2512 : else ; 2513 : ret = xmlNewReference(ctxt->myDoc, name); mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlNewReference add esp, 8 mov DWORD PTR _ret$[ebp], eax $LN4@xmlSAX2Ref: ; 2514 : #ifdef DEBUG_SAX_TREE ; 2515 : xmlGenericError(xmlGenericErrorContext, ; 2516 : "add xmlSAX2Reference %s to %s \n", name, ctxt->node->name); ; 2517 : #endif ; 2518 : if (xmlAddChild(ctxt->node, ret) == NULL) { mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+52] push ecx call _xmlAddChild add esp, 8 test eax, eax jne SHORT $LN1@xmlSAX2Ref ; 2519 : xmlFreeNode(ret); mov edx, DWORD PTR _ret$[ebp] push edx call _xmlFreeNode add esp, 4 $LN1@xmlSAX2Ref: ; 2520 : } ; 2521 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2Reference ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2EndElementNs _TEXT SEGMENT _cur$ = -36 ; size = 4 _node_info$ = -28 ; size = 20 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _localname$ = 12 ; size = 4 _prefix$ = 16 ; size = 4 _URI$ = 20 ; size = 4 _xmlSAX2EndElementNs PROC ; COMDAT ; 2464 : { push ebp mov ebp, esp sub esp, 36 ; 00000024H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-36], eax mov DWORD PTR [ebp-32], eax mov DWORD PTR [ebp-28], eax mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 2465 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 2466 : xmlParserNodeInfo node_info; ; 2467 : xmlNodePtr cur; ; 2468 : ; 2469 : if (ctx == NULL) return; cmp DWORD PTR _ctx$[ebp], 0 jne SHORT $LN2@xmlSAX2End jmp $LN1@xmlSAX2End $LN2@xmlSAX2End: ; 2470 : cur = ctxt->node; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] mov DWORD PTR _cur$[ebp], edx ; 2471 : /* Capture end position and add node */ ; 2472 : if ((ctxt->record_info) && (cur != NULL)) { mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+68], 0 je SHORT $LN3@xmlSAX2End cmp DWORD PTR _cur$[ebp], 0 je SHORT $LN3@xmlSAX2End ; 2473 : node_info.end_pos = ctxt->input->cur - ctxt->input->base; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+36] mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+36] mov edx, DWORD PTR [edx+16] sub edx, DWORD PTR [ecx+12] mov DWORD PTR _node_info$[ebp+12], edx ; 2474 : node_info.end_line = ctxt->input->line; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+36] mov edx, DWORD PTR [ecx+28] mov DWORD PTR _node_info$[ebp+16], edx ; 2475 : node_info.node = cur; mov eax, DWORD PTR _cur$[ebp] mov DWORD PTR _node_info$[ebp], eax ; 2476 : xmlParserAddNodeInfo(ctxt, &node_info); lea ecx, DWORD PTR _node_info$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlParserAddNodeInfo add esp, 8 $LN3@xmlSAX2End: ; 2477 : } ; 2478 : ctxt->nodemem = -1; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+264], -1 ; 2479 : ; 2480 : #ifdef LIBXML_VALID_ENABLED ; 2481 : if (ctxt->validate && ctxt->wellFormed && ; 2482 : ctxt->myDoc && ctxt->myDoc->intSubset) mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+104], 0 je SHORT $LN4@xmlSAX2End mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+12], 0 je SHORT $LN4@xmlSAX2End mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+8], 0 je SHORT $LN4@xmlSAX2End mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] cmp DWORD PTR [edx+44], 0 je SHORT $LN4@xmlSAX2End ; 2483 : ctxt->valid &= xmlValidateOneElement(&ctxt->vctxt, ctxt->myDoc, cur); mov eax, DWORD PTR _cur$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _ctxt$[ebp] add eax, 108 ; 0000006cH push eax call _xmlValidateOneElement add esp, 12 ; 0000000cH mov ecx, DWORD PTR _ctxt$[ebp] and eax, DWORD PTR [ecx+100] mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+100], eax $LN4@xmlSAX2End: ; 2484 : #endif /* LIBXML_VALID_ENABLED */ ; 2485 : ; 2486 : /* ; 2487 : * end of parsing of this node. ; 2488 : */ ; 2489 : nodePop(ctxt); mov eax, DWORD PTR _ctxt$[ebp] push eax call _nodePop add esp, 4 $LN1@xmlSAX2End: ; 2490 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN8@xmlSAX2End call @_RTC_CheckStackVars@8 pop eax pop edx add esp, 36 ; 00000024H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 3 $LN8@xmlSAX2End: DD 1 DD $LN7@xmlSAX2End $LN7@xmlSAX2End: DD -28 ; ffffffe4H DD 20 ; 00000014H DD $LN6@xmlSAX2End $LN6@xmlSAX2End: DB 110 ; 0000006eH DB 111 ; 0000006fH DB 100 ; 00000064H DB 101 ; 00000065H DB 95 ; 0000005fH DB 105 ; 00000069H DB 110 ; 0000006eH DB 102 ; 00000066H DB 111 ; 0000006fH DB 0 _xmlSAX2EndElementNs ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2StartElementNs _TEXT SEGMENT _chk$1 = -52 ; size = 4 _fullname$2 = -48 ; size = 4 _fullname$3 = -44 ; size = 4 _j$ = -40 ; size = 4 _i$ = -36 ; size = 4 _lname$ = -32 ; size = 4 _pref$ = -28 ; size = 4 _uri$ = -24 ; size = 4 _ns$ = -20 ; size = 4 _last$ = -16 ; size = 4 _parent$ = -12 ; size = 4 _ret$ = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _localname$ = 12 ; size = 4 _prefix$ = 16 ; size = 4 _URI$ = 20 ; size = 4 _nb_namespaces$ = 24 ; size = 4 _namespaces$ = 28 ; size = 4 _nb_attributes$ = 32 ; size = 4 _nb_defaulted$ = 36 ; size = 4 _attributes$ = 40 ; size = 4 _xmlSAX2StartElementNs PROC ; COMDAT ; 2217 : { push ebp mov ebp, esp sub esp, 52 ; 00000034H push esi push edi lea edi, DWORD PTR [ebp-52] mov ecx, 13 ; 0000000dH mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 2218 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 2219 : xmlNodePtr ret; ; 2220 : xmlNodePtr parent; ; 2221 : xmlNsPtr last = NULL, ns; mov DWORD PTR _last$[ebp], 0 ; 2222 : const xmlChar *uri, *pref; ; 2223 : xmlChar *lname = NULL; mov DWORD PTR _lname$[ebp], 0 ; 2224 : int i, j; ; 2225 : ; 2226 : if (ctx == NULL) return; cmp DWORD PTR _ctx$[ebp], 0 jne SHORT $LN8@xmlSAX2Sta jmp $LN1@xmlSAX2Sta $LN8@xmlSAX2Sta: ; 2227 : parent = ctxt->node; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] mov DWORD PTR _parent$[ebp], edx ; 2228 : /* ; 2229 : * First check on validity: ; 2230 : */ ; 2231 : if (ctxt->validate && (ctxt->myDoc->extSubset == NULL) && mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+104], 0 je SHORT $LN9@xmlSAX2Sta mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] cmp DWORD PTR [edx+48], 0 jne SHORT $LN9@xmlSAX2Sta mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] cmp DWORD PTR [ecx+44], 0 je SHORT $LN10@xmlSAX2Sta mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] mov ecx, DWORD PTR [eax+44] cmp DWORD PTR [ecx+36], 0 jne SHORT $LN9@xmlSAX2Sta mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] mov ecx, DWORD PTR [eax+44] cmp DWORD PTR [ecx+40], 0 jne SHORT $LN9@xmlSAX2Sta mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] mov ecx, DWORD PTR [eax+44] cmp DWORD PTR [ecx+44], 0 jne SHORT $LN9@xmlSAX2Sta mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] mov ecx, DWORD PTR [eax+44] cmp DWORD PTR [ecx+48], 0 jne SHORT $LN9@xmlSAX2Sta $LN10@xmlSAX2Sta: ; 2232 : ((ctxt->myDoc->intSubset == NULL) || ; 2233 : ((ctxt->myDoc->intSubset->notations == NULL) && ; 2234 : (ctxt->myDoc->intSubset->elements == NULL) && ; 2235 : (ctxt->myDoc->intSubset->attributes == NULL) && ; 2236 : (ctxt->myDoc->intSubset->entities == NULL)))) { ; 2237 : xmlErrValid(ctxt, XML_DTD_NO_DTD, push 0 push 0 push OFFSET ??_C@_0CC@LPGBEFAE@Validation?5failed?3?5no?5DTD?5found@ push 522 ; 0000020aH mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValid add esp, 20 ; 00000014H ; 2238 : "Validation failed: no DTD found !", NULL, NULL); ; 2239 : ctxt->validate = 0; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+104], 0 $LN9@xmlSAX2Sta: ; 2240 : } ; 2241 : ; 2242 : /* ; 2243 : * Take care of the rare case of an undefined namespace prefix ; 2244 : */ ; 2245 : if ((prefix != NULL) && (URI == NULL)) { cmp DWORD PTR _prefix$[ebp], 0 je SHORT $LN11@xmlSAX2Sta cmp DWORD PTR _URI$[ebp], 0 jne SHORT $LN11@xmlSAX2Sta ; 2246 : if (ctxt->dictNames) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+364], 0 je SHORT $LN12@xmlSAX2Sta ; 2247 : const xmlChar *fullname; ; 2248 : ; 2249 : fullname = xmlDictQLookup(ctxt->dict, prefix, localname); mov edx, DWORD PTR _localname$[ebp] push edx mov eax, DWORD PTR _prefix$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+296] push edx call _xmlDictQLookup add esp, 12 ; 0000000cH mov DWORD PTR _fullname$3[ebp], eax ; 2250 : if (fullname != NULL) cmp DWORD PTR _fullname$3[ebp], 0 je SHORT $LN14@xmlSAX2Sta ; 2251 : localname = fullname; mov eax, DWORD PTR _fullname$3[ebp] mov DWORD PTR _localname$[ebp], eax $LN14@xmlSAX2Sta: ; 2252 : } else { jmp SHORT $LN11@xmlSAX2Sta $LN12@xmlSAX2Sta: ; 2253 : lname = xmlBuildQName(localname, prefix, NULL, 0); push 0 push 0 mov ecx, DWORD PTR _prefix$[ebp] push ecx mov edx, DWORD PTR _localname$[ebp] push edx call _xmlBuildQName add esp, 16 ; 00000010H mov DWORD PTR _lname$[ebp], eax $LN11@xmlSAX2Sta: ; 2254 : } ; 2255 : } ; 2256 : /* ; 2257 : * allocate the node ; 2258 : */ ; 2259 : if (ctxt->freeElems != NULL) { mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+372], 0 je $LN15@xmlSAX2Sta ; 2260 : ret = ctxt->freeElems; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+372] mov DWORD PTR _ret$[ebp], edx ; 2261 : ctxt->freeElems = ret->next; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR [ecx+24] mov DWORD PTR [eax+372], edx ; 2262 : ctxt->freeElemsNr--; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+368] sub ecx, 1 mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+368], ecx ; 2263 : memset(ret, 0, sizeof(xmlNode)); push 60 ; 0000003cH push 0 mov eax, DWORD PTR _ret$[ebp] push eax call _memset add esp, 12 ; 0000000cH ; 2264 : ret->doc = ctxt->myDoc; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] mov DWORD PTR [ecx+32], eax ; 2265 : ret->type = XML_ELEMENT_NODE; mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+4], 1 ; 2266 : ; 2267 : if (ctxt->dictNames) mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+364], 0 je SHORT $LN17@xmlSAX2Sta ; 2268 : ret->name = localname; mov eax, DWORD PTR _ret$[ebp] mov ecx, DWORD PTR _localname$[ebp] mov DWORD PTR [eax+8], ecx jmp SHORT $LN18@xmlSAX2Sta $LN17@xmlSAX2Sta: ; 2269 : else { ; 2270 : if (lname == NULL) cmp DWORD PTR _lname$[ebp], 0 jne SHORT $LN19@xmlSAX2Sta ; 2271 : ret->name = xmlStrdup(localname); mov edx, DWORD PTR _localname$[ebp] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+8], eax jmp SHORT $LN20@xmlSAX2Sta $LN19@xmlSAX2Sta: ; 2272 : else ; 2273 : ret->name = lname; mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR _lname$[ebp] mov DWORD PTR [edx+8], eax $LN20@xmlSAX2Sta: ; 2274 : if (ret->name == NULL) { mov ecx, DWORD PTR _ret$[ebp] cmp DWORD PTR [ecx+8], 0 jne SHORT $LN18@xmlSAX2Sta ; 2275 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElementNs"); push OFFSET ??_C@_0BG@CNBDKEMA@xmlSAX2StartElementNs@ mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlSAX2ErrMemory add esp, 8 ; 2276 : return; jmp $LN1@xmlSAX2Sta $LN18@xmlSAX2Sta: ; 2277 : } ; 2278 : } ; 2279 : if ((__xmlRegisterCallbacks) && (xmlRegisterNodeDefaultValue)) cmp DWORD PTR ___xmlRegisterCallbacks, 0 je SHORT $LN22@xmlSAX2Sta call ___xmlRegisterNodeDefaultValue cmp DWORD PTR [eax], 0 je SHORT $LN22@xmlSAX2Sta ; 2280 : xmlRegisterNodeDefaultValue(ret); mov esi, esp mov eax, DWORD PTR _ret$[ebp] push eax call ___xmlRegisterNodeDefaultValue mov ecx, DWORD PTR [eax] call ecx add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN22@xmlSAX2Sta: ; 2281 : } else { jmp $LN16@xmlSAX2Sta $LN15@xmlSAX2Sta: ; 2282 : if (ctxt->dictNames) mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+364], 0 je SHORT $LN23@xmlSAX2Sta ; 2283 : ret = xmlNewDocNodeEatName(ctxt->myDoc, NULL, push 0 mov eax, DWORD PTR _localname$[ebp] push eax push 0 mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlNewDocNodeEatName add esp, 16 ; 00000010H mov DWORD PTR _ret$[ebp], eax jmp SHORT $LN24@xmlSAX2Sta $LN23@xmlSAX2Sta: ; 2284 : (xmlChar *) localname, NULL); ; 2285 : else if (lname == NULL) cmp DWORD PTR _lname$[ebp], 0 jne SHORT $LN25@xmlSAX2Sta ; 2286 : ret = xmlNewDocNode(ctxt->myDoc, NULL, localname, NULL); push 0 mov eax, DWORD PTR _localname$[ebp] push eax push 0 mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlNewDocNode add esp, 16 ; 00000010H mov DWORD PTR _ret$[ebp], eax jmp SHORT $LN24@xmlSAX2Sta $LN25@xmlSAX2Sta: ; 2287 : else ; 2288 : ret = xmlNewDocNodeEatName(ctxt->myDoc, NULL, push 0 mov eax, DWORD PTR _lname$[ebp] push eax push 0 mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlNewDocNodeEatName add esp, 16 ; 00000010H mov DWORD PTR _ret$[ebp], eax $LN24@xmlSAX2Sta: ; 2289 : (xmlChar *) lname, NULL); ; 2290 : if (ret == NULL) { cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN16@xmlSAX2Sta ; 2291 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElementNs"); push OFFSET ??_C@_0BG@CNBDKEMA@xmlSAX2StartElementNs@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlSAX2ErrMemory add esp, 8 ; 2292 : return; jmp $LN1@xmlSAX2Sta $LN16@xmlSAX2Sta: ; 2293 : } ; 2294 : } ; 2295 : if (ctxt->linenumbers) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+280], 0 je SHORT $LN28@xmlSAX2Sta ; 2296 : if (ctxt->input != NULL) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+36], 0 je SHORT $LN28@xmlSAX2Sta ; 2297 : if (ctxt->input->line < 65535) mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+36] cmp DWORD PTR [ecx+28], 65535 ; 0000ffffH jge SHORT $LN30@xmlSAX2Sta ; 2298 : ret->line = (short) ctxt->input->line; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+36] mov ecx, DWORD PTR _ret$[ebp] mov dx, WORD PTR [eax+28] mov WORD PTR [ecx+56], dx jmp SHORT $LN28@xmlSAX2Sta $LN30@xmlSAX2Sta: ; 2299 : else ; 2300 : ret->line = 65535; mov eax, 65535 ; 0000ffffH mov ecx, DWORD PTR _ret$[ebp] mov WORD PTR [ecx+56], ax $LN28@xmlSAX2Sta: ; 2301 : } ; 2302 : } ; 2303 : ; 2304 : if (parent == NULL) { cmp DWORD PTR _parent$[ebp], 0 jne SHORT $LN32@xmlSAX2Sta ; 2305 : xmlAddChild((xmlNodePtr) ctxt->myDoc, (xmlNodePtr) ret); mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlAddChild add esp, 8 $LN32@xmlSAX2Sta: ; 2306 : } ; 2307 : /* ; 2308 : * Build the namespace list ; 2309 : */ ; 2310 : for (i = 0,j = 0;j < nb_namespaces;j++) { mov DWORD PTR _i$[ebp], 0 mov DWORD PTR _j$[ebp], 0 jmp SHORT $LN4@xmlSAX2Sta $LN2@xmlSAX2Sta: mov edx, DWORD PTR _j$[ebp] add edx, 1 mov DWORD PTR _j$[ebp], edx $LN4@xmlSAX2Sta: mov eax, DWORD PTR _j$[ebp] cmp eax, DWORD PTR _nb_namespaces$[ebp] jge $LN3@xmlSAX2Sta ; 2311 : pref = namespaces[i++]; mov ecx, DWORD PTR _i$[ebp] mov edx, DWORD PTR _namespaces$[ebp] mov eax, DWORD PTR [edx+ecx*4] mov DWORD PTR _pref$[ebp], eax mov ecx, DWORD PTR _i$[ebp] add ecx, 1 mov DWORD PTR _i$[ebp], ecx ; 2312 : uri = namespaces[i++]; mov edx, DWORD PTR _i$[ebp] mov eax, DWORD PTR _namespaces$[ebp] mov ecx, DWORD PTR [eax+edx*4] mov DWORD PTR _uri$[ebp], ecx mov edx, DWORD PTR _i$[ebp] add edx, 1 mov DWORD PTR _i$[ebp], edx ; 2313 : ns = xmlNewNs(NULL, uri, pref); mov eax, DWORD PTR _pref$[ebp] push eax mov ecx, DWORD PTR _uri$[ebp] push ecx push 0 call _xmlNewNs add esp, 12 ; 0000000cH mov DWORD PTR _ns$[ebp], eax ; 2314 : if (ns != NULL) { cmp DWORD PTR _ns$[ebp], 0 je SHORT $LN33@xmlSAX2Sta ; 2315 : if (last == NULL) { cmp DWORD PTR _last$[ebp], 0 jne SHORT $LN35@xmlSAX2Sta ; 2316 : ret->nsDef = last = ns; mov edx, DWORD PTR _ns$[ebp] mov DWORD PTR _last$[ebp], edx mov eax, DWORD PTR _ret$[ebp] mov ecx, DWORD PTR _last$[ebp] mov DWORD PTR [eax+48], ecx ; 2317 : } else { jmp SHORT $LN36@xmlSAX2Sta $LN35@xmlSAX2Sta: ; 2318 : last->next = ns; mov edx, DWORD PTR _last$[ebp] mov eax, DWORD PTR _ns$[ebp] mov DWORD PTR [edx], eax ; 2319 : last = ns; mov ecx, DWORD PTR _ns$[ebp] mov DWORD PTR _last$[ebp], ecx $LN36@xmlSAX2Sta: ; 2320 : } ; 2321 : if ((URI != NULL) && (prefix == pref)) cmp DWORD PTR _URI$[ebp], 0 je SHORT $LN37@xmlSAX2Sta mov edx, DWORD PTR _prefix$[ebp] cmp edx, DWORD PTR _pref$[ebp] jne SHORT $LN37@xmlSAX2Sta ; 2322 : ret->ns = ns; mov eax, DWORD PTR _ret$[ebp] mov ecx, DWORD PTR _ns$[ebp] mov DWORD PTR [eax+36], ecx $LN37@xmlSAX2Sta: ; 2323 : } else { jmp SHORT $LN34@xmlSAX2Sta $LN33@xmlSAX2Sta: ; 2324 : /* ; 2325 : * any out of memory error would already have been raised ; 2326 : * but we can't be guaranteed it's the actual error due to the ; 2327 : * API, best is to skip in this case ; 2328 : */ ; 2329 : continue; jmp $LN2@xmlSAX2Sta $LN34@xmlSAX2Sta: ; 2330 : } ; 2331 : #ifdef LIBXML_VALID_ENABLED ; 2332 : if ((!ctxt->html) && ctxt->validate && ctxt->wellFormed && ; 2333 : ctxt->myDoc && ctxt->myDoc->intSubset) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+32], 0 jne SHORT $LN38@xmlSAX2Sta mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+104], 0 je SHORT $LN38@xmlSAX2Sta mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+12], 0 je SHORT $LN38@xmlSAX2Sta mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+8], 0 je SHORT $LN38@xmlSAX2Sta mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] cmp DWORD PTR [ecx+44], 0 je SHORT $LN38@xmlSAX2Sta ; 2334 : ctxt->valid &= xmlValidateOneNamespace(&ctxt->vctxt, ctxt->myDoc, mov edx, DWORD PTR _uri$[ebp] push edx mov eax, DWORD PTR _ns$[ebp] push eax mov ecx, DWORD PTR _prefix$[ebp] push ecx mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _ctxt$[ebp] add edx, 108 ; 0000006cH push edx call _xmlValidateOneNamespace add esp, 24 ; 00000018H mov ecx, DWORD PTR _ctxt$[ebp] and eax, DWORD PTR [ecx+100] mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+100], eax $LN38@xmlSAX2Sta: ; 2335 : ret, prefix, ns, uri); ; 2336 : } ; 2337 : #endif /* LIBXML_VALID_ENABLED */ ; 2338 : } jmp $LN2@xmlSAX2Sta $LN3@xmlSAX2Sta: ; 2339 : ctxt->nodemem = -1; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+264], -1 ; 2340 : ; 2341 : /* ; 2342 : * We are parsing a new node. ; 2343 : */ ; 2344 : if (nodePush(ctxt, ret) < 0) { mov ecx, DWORD PTR _ret$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _nodePush add esp, 8 test eax, eax jge SHORT $LN39@xmlSAX2Sta ; 2345 : xmlUnlinkNode(ret); mov eax, DWORD PTR _ret$[ebp] push eax call _xmlUnlinkNode add esp, 4 ; 2346 : xmlFreeNode(ret); mov ecx, DWORD PTR _ret$[ebp] push ecx call _xmlFreeNode add esp, 4 ; 2347 : return; jmp $LN1@xmlSAX2Sta $LN39@xmlSAX2Sta: ; 2348 : } ; 2349 : ; 2350 : /* ; 2351 : * Link the child element ; 2352 : */ ; 2353 : if (parent != NULL) { cmp DWORD PTR _parent$[ebp], 0 je SHORT $LN40@xmlSAX2Sta ; 2354 : if (parent->type == XML_ELEMENT_NODE) { mov edx, DWORD PTR _parent$[ebp] cmp DWORD PTR [edx+4], 1 jne SHORT $LN41@xmlSAX2Sta ; 2355 : xmlAddChild(parent, ret); mov eax, DWORD PTR _ret$[ebp] push eax mov ecx, DWORD PTR _parent$[ebp] push ecx call _xmlAddChild add esp, 8 ; 2356 : } else { jmp SHORT $LN40@xmlSAX2Sta $LN41@xmlSAX2Sta: ; 2357 : xmlAddSibling(parent, ret); mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _parent$[ebp] push eax call _xmlAddSibling add esp, 8 $LN40@xmlSAX2Sta: ; 2358 : } ; 2359 : } ; 2360 : ; 2361 : /* ; 2362 : * Insert the defaulted attributes from the DTD only if requested: ; 2363 : */ ; 2364 : if ((nb_defaulted != 0) && cmp DWORD PTR _nb_defaulted$[ebp], 0 je SHORT $LN43@xmlSAX2Sta mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+276] and edx, 4 jne SHORT $LN43@xmlSAX2Sta ; 2365 : ((ctxt->loadsubset & XML_COMPLETE_ATTRS) == 0)) ; 2366 : nb_attributes -= nb_defaulted; mov eax, DWORD PTR _nb_attributes$[ebp] sub eax, DWORD PTR _nb_defaulted$[ebp] mov DWORD PTR _nb_attributes$[ebp], eax $LN43@xmlSAX2Sta: ; 2367 : ; 2368 : /* ; 2369 : * Search the namespace if it wasn't already found ; 2370 : * Note that, if prefix is NULL, this searches for the default Ns ; 2371 : */ ; 2372 : if ((URI != NULL) && (ret->ns == NULL)) { cmp DWORD PTR _URI$[ebp], 0 je $LN44@xmlSAX2Sta mov ecx, DWORD PTR _ret$[ebp] cmp DWORD PTR [ecx+36], 0 jne $LN44@xmlSAX2Sta ; 2373 : ret->ns = xmlSearchNs(ctxt->myDoc, parent, prefix); mov edx, DWORD PTR _prefix$[ebp] push edx mov eax, DWORD PTR _parent$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlSearchNs add esp, 12 ; 0000000cH mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+36], eax ; 2374 : if ((ret->ns == NULL) && (xmlStrEqual(prefix, BAD_CAST "xml"))) { mov edx, DWORD PTR _ret$[ebp] cmp DWORD PTR [edx+36], 0 jne SHORT $LN45@xmlSAX2Sta push OFFSET ??_C@_03PJHHNEEI@xml@ mov eax, DWORD PTR _prefix$[ebp] push eax call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN45@xmlSAX2Sta ; 2375 : ret->ns = xmlSearchNs(ctxt->myDoc, ret, prefix); mov ecx, DWORD PTR _prefix$[ebp] push ecx mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlSearchNs add esp, 12 ; 0000000cH mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [edx+36], eax $LN45@xmlSAX2Sta: ; 2376 : } ; 2377 : if (ret->ns == NULL) { mov eax, DWORD PTR _ret$[ebp] cmp DWORD PTR [eax+36], 0 jne SHORT $LN44@xmlSAX2Sta ; 2378 : ns = xmlNewNs(ret, NULL, prefix); mov ecx, DWORD PTR _prefix$[ebp] push ecx push 0 mov edx, DWORD PTR _ret$[ebp] push edx call _xmlNewNs add esp, 12 ; 0000000cH mov DWORD PTR _ns$[ebp], eax ; 2379 : if (ns == NULL) { cmp DWORD PTR _ns$[ebp], 0 jne SHORT $LN47@xmlSAX2Sta ; 2380 : ; 2381 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElementNs"); push OFFSET ??_C@_0BG@CNBDKEMA@xmlSAX2StartElementNs@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlSAX2ErrMemory add esp, 8 ; 2382 : return; jmp $LN1@xmlSAX2Sta $LN47@xmlSAX2Sta: ; 2383 : } ; 2384 : if (prefix != NULL) cmp DWORD PTR _prefix$[ebp], 0 je SHORT $LN48@xmlSAX2Sta ; 2385 : xmlNsWarnMsg(ctxt, XML_NS_ERR_UNDEFINED_NAMESPACE, push 0 mov ecx, DWORD PTR _prefix$[ebp] push ecx push OFFSET ??_C@_0CD@HMPDFDML@Namespace?5prefix?5?$CFs?5was?5not?5fou@ push 201 ; 000000c9H mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlNsWarnMsg add esp, 20 ; 00000014H jmp SHORT $LN44@xmlSAX2Sta $LN48@xmlSAX2Sta: ; 2386 : "Namespace prefix %s was not found\n", ; 2387 : prefix, NULL); ; 2388 : else ; 2389 : xmlNsWarnMsg(ctxt, XML_NS_ERR_UNDEFINED_NAMESPACE, push 0 push 0 push OFFSET ??_C@_0CI@JKKHNIFK@Namespace?5default?5prefix?5was?5no@ push 201 ; 000000c9H mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlNsWarnMsg add esp, 20 ; 00000014H $LN44@xmlSAX2Sta: ; 2390 : "Namespace default prefix was not found\n", ; 2391 : NULL, NULL); ; 2392 : } ; 2393 : } ; 2394 : ; 2395 : /* ; 2396 : * process all the other attributes ; 2397 : */ ; 2398 : if (nb_attributes > 0) { cmp DWORD PTR _nb_attributes$[ebp], 0 jle $LN50@xmlSAX2Sta ; 2399 : for (j = 0,i = 0;i < nb_attributes;i++,j+=5) { mov DWORD PTR _j$[ebp], 0 mov DWORD PTR _i$[ebp], 0 jmp SHORT $LN7@xmlSAX2Sta $LN5@xmlSAX2Sta: mov ecx, DWORD PTR _i$[ebp] add ecx, 1 mov DWORD PTR _i$[ebp], ecx mov edx, DWORD PTR _j$[ebp] add edx, 5 mov DWORD PTR _j$[ebp], edx $LN7@xmlSAX2Sta: mov eax, DWORD PTR _i$[ebp] cmp eax, DWORD PTR _nb_attributes$[ebp] jge $LN50@xmlSAX2Sta ; 2400 : /* ; 2401 : * Handle the rare case of an undefined atribute prefix ; 2402 : */ ; 2403 : if ((attributes[j+1] != NULL) && (attributes[j+2] == NULL)) { mov ecx, DWORD PTR _j$[ebp] mov edx, DWORD PTR _attributes$[ebp] cmp DWORD PTR [edx+ecx*4+4], 0 je $LN51@xmlSAX2Sta mov eax, DWORD PTR _j$[ebp] mov ecx, DWORD PTR _attributes$[ebp] cmp DWORD PTR [ecx+eax*4+8], 0 jne $LN51@xmlSAX2Sta ; 2404 : if (ctxt->dictNames) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+364], 0 je SHORT $LN52@xmlSAX2Sta ; 2405 : const xmlChar *fullname; ; 2406 : ; 2407 : fullname = xmlDictQLookup(ctxt->dict, attributes[j+1], mov eax, DWORD PTR _j$[ebp] mov ecx, DWORD PTR _attributes$[ebp] mov edx, DWORD PTR [ecx+eax*4] push edx mov eax, DWORD PTR _j$[ebp] mov ecx, DWORD PTR _attributes$[ebp] mov edx, DWORD PTR [ecx+eax*4+4] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+296] push ecx call _xmlDictQLookup add esp, 12 ; 0000000cH mov DWORD PTR _fullname$2[ebp], eax ; 2408 : attributes[j]); ; 2409 : if (fullname != NULL) { cmp DWORD PTR _fullname$2[ebp], 0 je SHORT $LN54@xmlSAX2Sta ; 2410 : xmlSAX2AttributeNs(ctxt, fullname, NULL, mov edx, DWORD PTR _j$[ebp] mov eax, DWORD PTR _attributes$[ebp] mov ecx, DWORD PTR [eax+edx*4+16] push ecx mov edx, DWORD PTR _j$[ebp] mov eax, DWORD PTR _attributes$[ebp] mov ecx, DWORD PTR [eax+edx*4+12] push ecx push 0 mov edx, DWORD PTR _fullname$2[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlSAX2AttributeNs add esp, 20 ; 00000014H ; 2411 : attributes[j+3], attributes[j+4]); ; 2412 : continue; jmp $LN5@xmlSAX2Sta $LN54@xmlSAX2Sta: ; 2413 : } ; 2414 : } else { jmp SHORT $LN51@xmlSAX2Sta $LN52@xmlSAX2Sta: ; 2415 : lname = xmlBuildQName(attributes[j], attributes[j+1], push 0 push 0 mov ecx, DWORD PTR _j$[ebp] mov edx, DWORD PTR _attributes$[ebp] mov eax, DWORD PTR [edx+ecx*4+4] push eax mov ecx, DWORD PTR _j$[ebp] mov edx, DWORD PTR _attributes$[ebp] mov eax, DWORD PTR [edx+ecx*4] push eax call _xmlBuildQName add esp, 16 ; 00000010H mov DWORD PTR _lname$[ebp], eax ; 2416 : NULL, 0); ; 2417 : if (lname != NULL) { cmp DWORD PTR _lname$[ebp], 0 je SHORT $LN51@xmlSAX2Sta ; 2418 : xmlSAX2AttributeNs(ctxt, lname, NULL, mov ecx, DWORD PTR _j$[ebp] mov edx, DWORD PTR _attributes$[ebp] mov eax, DWORD PTR [edx+ecx*4+16] push eax mov ecx, DWORD PTR _j$[ebp] mov edx, DWORD PTR _attributes$[ebp] mov eax, DWORD PTR [edx+ecx*4+12] push eax push 0 mov ecx, DWORD PTR _lname$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlSAX2AttributeNs add esp, 20 ; 00000014H ; 2419 : attributes[j+3], attributes[j+4]); ; 2420 : xmlFree(lname); mov esi, esp mov eax, DWORD PTR _lname$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 2421 : continue; jmp $LN5@xmlSAX2Sta $LN51@xmlSAX2Sta: ; 2422 : } ; 2423 : } ; 2424 : } ; 2425 : xmlSAX2AttributeNs(ctxt, attributes[j], attributes[j+1], mov ecx, DWORD PTR _j$[ebp] mov edx, DWORD PTR _attributes$[ebp] mov eax, DWORD PTR [edx+ecx*4+16] push eax mov ecx, DWORD PTR _j$[ebp] mov edx, DWORD PTR _attributes$[ebp] mov eax, DWORD PTR [edx+ecx*4+12] push eax mov ecx, DWORD PTR _j$[ebp] mov edx, DWORD PTR _attributes$[ebp] mov eax, DWORD PTR [edx+ecx*4+4] push eax mov ecx, DWORD PTR _j$[ebp] mov edx, DWORD PTR _attributes$[ebp] mov eax, DWORD PTR [edx+ecx*4] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlSAX2AttributeNs add esp, 20 ; 00000014H ; 2426 : attributes[j+3], attributes[j+4]); ; 2427 : } jmp $LN5@xmlSAX2Sta $LN50@xmlSAX2Sta: ; 2428 : } ; 2429 : ; 2430 : #ifdef LIBXML_VALID_ENABLED ; 2431 : /* ; 2432 : * If it's the Document root, finish the DTD validation and ; 2433 : * check the document root element for validity ; 2434 : */ ; 2435 : if ((ctxt->validate) && (ctxt->vctxt.finishDtd == XML_CTXT_FINISH_DTD_0)) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+104], 0 je SHORT $LN1@xmlSAX2Sta mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+136], -1412623820 ; abcd1234H jne SHORT $LN1@xmlSAX2Sta ; 2436 : int chk; ; 2437 : ; 2438 : chk = xmlValidateDtdFinal(&ctxt->vctxt, ctxt->myDoc); mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _ctxt$[ebp] add eax, 108 ; 0000006cH push eax call _xmlValidateDtdFinal add esp, 8 mov DWORD PTR _chk$1[ebp], eax ; 2439 : if (chk <= 0) cmp DWORD PTR _chk$1[ebp], 0 jg SHORT $LN57@xmlSAX2Sta ; 2440 : ctxt->valid = 0; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+100], 0 $LN57@xmlSAX2Sta: ; 2441 : if (chk < 0) cmp DWORD PTR _chk$1[ebp], 0 jge SHORT $LN58@xmlSAX2Sta ; 2442 : ctxt->wellFormed = 0; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+12], 0 $LN58@xmlSAX2Sta: ; 2443 : ctxt->valid &= xmlValidateRoot(&ctxt->vctxt, ctxt->myDoc); mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _ctxt$[ebp] add edx, 108 ; 0000006cH push edx call _xmlValidateRoot add esp, 8 mov ecx, DWORD PTR _ctxt$[ebp] and eax, DWORD PTR [ecx+100] mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+100], eax ; 2444 : ctxt->vctxt.finishDtd = XML_CTXT_FINISH_DTD_1; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+136], -1412623819 ; abcd1235H $LN1@xmlSAX2Sta: ; 2445 : } ; 2446 : #endif /* LIBXML_VALID_ENABLED */ ; 2447 : } pop edi pop esi add esp, 52 ; 00000034H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2StartElementNs ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2EndElement _TEXT SEGMENT _cur$ = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlSAX2EndElement PROC ; COMDAT ; 1804 : { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 1805 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 1806 : xmlNodePtr cur; ; 1807 : ; 1808 : if (ctx == NULL) return; cmp DWORD PTR _ctx$[ebp], 0 jne SHORT $LN2@xmlSAX2End jmp $LN1@xmlSAX2End $LN2@xmlSAX2End: ; 1809 : cur = ctxt->node; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] mov DWORD PTR _cur$[ebp], edx ; 1810 : #ifdef DEBUG_SAX ; 1811 : if (name == NULL) ; 1812 : xmlGenericError(xmlGenericErrorContext, "SAX.xmlSAX2EndElement(NULL)\n"); ; 1813 : else ; 1814 : xmlGenericError(xmlGenericErrorContext, "SAX.xmlSAX2EndElement(%s)\n", name); ; 1815 : #endif ; 1816 : ; 1817 : /* Capture end position and add node */ ; 1818 : if (cur != NULL && ctxt->record_info) { cmp DWORD PTR _cur$[ebp], 0 je SHORT $LN3@xmlSAX2End mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+68], 0 je SHORT $LN3@xmlSAX2End ; 1819 : ctxt->nodeInfo->end_pos = ctxt->input->cur - ctxt->input->base; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+36] mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+36] mov edx, DWORD PTR [edx+16] sub edx, DWORD PTR [ecx+12] mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+448] mov DWORD PTR [ecx+12], edx ; 1820 : ctxt->nodeInfo->end_line = ctxt->input->line; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+36] mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+448] mov eax, DWORD PTR [eax+28] mov DWORD PTR [edx+16], eax ; 1821 : ctxt->nodeInfo->node = cur; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+448] mov eax, DWORD PTR _cur$[ebp] mov DWORD PTR [edx], eax ; 1822 : xmlParserAddNodeInfo(ctxt, ctxt->nodeInfo); mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+448] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlParserAddNodeInfo add esp, 8 $LN3@xmlSAX2End: ; 1823 : } ; 1824 : ctxt->nodemem = -1; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+264], -1 ; 1825 : ; 1826 : #ifdef LIBXML_VALID_ENABLED ; 1827 : if (ctxt->validate && ctxt->wellFormed && ; 1828 : ctxt->myDoc && ctxt->myDoc->intSubset) mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+104], 0 je SHORT $LN4@xmlSAX2End mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+12], 0 je SHORT $LN4@xmlSAX2End mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+8], 0 je SHORT $LN4@xmlSAX2End mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] cmp DWORD PTR [eax+44], 0 je SHORT $LN4@xmlSAX2End ; 1829 : ctxt->valid &= xmlValidateOneElement(&ctxt->vctxt, ctxt->myDoc, mov ecx, DWORD PTR _cur$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _ctxt$[ebp] add ecx, 108 ; 0000006cH push ecx call _xmlValidateOneElement add esp, 12 ; 0000000cH mov edx, DWORD PTR _ctxt$[ebp] and eax, DWORD PTR [edx+100] mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+100], eax $LN4@xmlSAX2End: ; 1830 : cur); ; 1831 : #endif /* LIBXML_VALID_ENABLED */ ; 1832 : ; 1833 : ; 1834 : /* ; 1835 : * end of parsing of this node. ; 1836 : */ ; 1837 : #ifdef DEBUG_SAX_TREE ; 1838 : xmlGenericError(xmlGenericErrorContext, "popping(%s)\n", cur->name); ; 1839 : #endif ; 1840 : nodePop(ctxt); mov edx, DWORD PTR _ctxt$[ebp] push edx call _nodePop add esp, 4 $LN1@xmlSAX2End: ; 1841 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2EndElement ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2StartElement _TEXT SEGMENT _chk$1 = -48 ; size = 4 _i$ = -44 ; size = 4 _value$ = -40 ; size = 4 _att$ = -36 ; size = 4 _prefix$ = -28 ; size = 4 _name$ = -20 ; size = 4 _ns$ = -16 ; size = 4 _parent$ = -12 ; size = 4 _ret$ = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _fullname$ = 12 ; size = 4 _atts$ = 16 ; size = 4 _xmlSAX2StartElement PROC ; COMDAT ; 1593 : { push ebp mov ebp, esp sub esp, 48 ; 00000030H push esi push edi lea edi, DWORD PTR [ebp-48] mov ecx, 12 ; 0000000cH mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 1594 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 1595 : xmlNodePtr ret; ; 1596 : xmlNodePtr parent; ; 1597 : xmlNsPtr ns; ; 1598 : xmlChar *name; ; 1599 : xmlChar *prefix; ; 1600 : const xmlChar *att; ; 1601 : const xmlChar *value; ; 1602 : int i; ; 1603 : ; 1604 : if ((ctx == NULL) || (fullname == NULL) || (ctxt->myDoc == NULL)) return; cmp DWORD PTR _ctx$[ebp], 0 je SHORT $LN9@xmlSAX2Sta cmp DWORD PTR _fullname$[ebp], 0 je SHORT $LN9@xmlSAX2Sta mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+8], 0 jne SHORT $LN8@xmlSAX2Sta $LN9@xmlSAX2Sta: jmp $LN1@xmlSAX2Sta $LN8@xmlSAX2Sta: ; 1605 : parent = ctxt->node; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+52] mov DWORD PTR _parent$[ebp], eax ; 1606 : #ifdef DEBUG_SAX ; 1607 : xmlGenericError(xmlGenericErrorContext, ; 1608 : "SAX.xmlSAX2StartElement(%s)\n", fullname); ; 1609 : #endif ; 1610 : ; 1611 : /* ; 1612 : * First check on validity: ; 1613 : */ ; 1614 : if (ctxt->validate && (ctxt->myDoc->extSubset == NULL) && mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+104], 0 je SHORT $LN10@xmlSAX2Sta mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] cmp DWORD PTR [eax+48], 0 jne SHORT $LN10@xmlSAX2Sta mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] cmp DWORD PTR [edx+44], 0 je SHORT $LN11@xmlSAX2Sta mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] mov edx, DWORD PTR [ecx+44] cmp DWORD PTR [edx+36], 0 jne SHORT $LN10@xmlSAX2Sta mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] mov edx, DWORD PTR [ecx+44] cmp DWORD PTR [edx+40], 0 jne SHORT $LN10@xmlSAX2Sta mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] mov edx, DWORD PTR [ecx+44] cmp DWORD PTR [edx+44], 0 jne SHORT $LN10@xmlSAX2Sta mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] mov edx, DWORD PTR [ecx+44] cmp DWORD PTR [edx+48], 0 jne SHORT $LN10@xmlSAX2Sta $LN11@xmlSAX2Sta: ; 1615 : ((ctxt->myDoc->intSubset == NULL) || ; 1616 : ((ctxt->myDoc->intSubset->notations == NULL) && ; 1617 : (ctxt->myDoc->intSubset->elements == NULL) && ; 1618 : (ctxt->myDoc->intSubset->attributes == NULL) && ; 1619 : (ctxt->myDoc->intSubset->entities == NULL)))) { ; 1620 : xmlErrValid(ctxt, XML_ERR_NO_DTD, push 0 push 0 push OFFSET ??_C@_0CC@LPGBEFAE@Validation?5failed?3?5no?5DTD?5found@ push 94 ; 0000005eH mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValid add esp, 20 ; 00000014H ; 1621 : "Validation failed: no DTD found !", NULL, NULL); ; 1622 : ctxt->validate = 0; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+104], 0 $LN10@xmlSAX2Sta: ; 1623 : } ; 1624 : ; 1625 : ; 1626 : /* ; 1627 : * Split the full name into a namespace prefix and the tag name ; 1628 : */ ; 1629 : name = xmlSplitQName(ctxt, fullname, &prefix); lea edx, DWORD PTR _prefix$[ebp] push edx mov eax, DWORD PTR _fullname$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlSplitQName add esp, 12 ; 0000000cH mov DWORD PTR _name$[ebp], eax ; 1630 : ; 1631 : ; 1632 : /* ; 1633 : * Note : the namespace resolution is deferred until the end of the ; 1634 : * attributes parsing, since local namespace can be defined as ; 1635 : * an attribute at this level. ; 1636 : */ ; 1637 : ret = xmlNewDocNodeEatName(ctxt->myDoc, NULL, name, NULL); push 0 mov edx, DWORD PTR _name$[ebp] push edx push 0 mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlNewDocNodeEatName add esp, 16 ; 00000010H mov DWORD PTR _ret$[ebp], eax ; 1638 : if (ret == NULL) { cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN12@xmlSAX2Sta ; 1639 : if (prefix != NULL) cmp DWORD PTR _prefix$[ebp], 0 je SHORT $LN13@xmlSAX2Sta ; 1640 : xmlFree(prefix); mov esi, esp mov edx, DWORD PTR _prefix$[ebp] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN13@xmlSAX2Sta: ; 1641 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElement"); push OFFSET ??_C@_0BE@NLCCMPDP@xmlSAX2StartElement@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlSAX2ErrMemory add esp, 8 ; 1642 : return; jmp $LN1@xmlSAX2Sta $LN12@xmlSAX2Sta: ; 1643 : } ; 1644 : if (ctxt->myDoc->children == NULL) { mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] cmp DWORD PTR [edx+12], 0 jne SHORT $LN14@xmlSAX2Sta ; 1645 : #ifdef DEBUG_SAX_TREE ; 1646 : xmlGenericError(xmlGenericErrorContext, "Setting %s as root\n", name); ; 1647 : #endif ; 1648 : xmlAddChild((xmlNodePtr) ctxt->myDoc, (xmlNodePtr) ret); mov eax, DWORD PTR _ret$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlAddChild add esp, 8 jmp SHORT $LN15@xmlSAX2Sta $LN14@xmlSAX2Sta: ; 1649 : } else if (parent == NULL) { cmp DWORD PTR _parent$[ebp], 0 jne SHORT $LN15@xmlSAX2Sta ; 1650 : parent = ctxt->myDoc->children; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] mov edx, DWORD PTR [ecx+12] mov DWORD PTR _parent$[ebp], edx $LN15@xmlSAX2Sta: ; 1651 : } ; 1652 : ctxt->nodemem = -1; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+264], -1 ; 1653 : if (ctxt->linenumbers) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+280], 0 je SHORT $LN17@xmlSAX2Sta ; 1654 : if (ctxt->input != NULL) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+36], 0 je SHORT $LN17@xmlSAX2Sta ; 1655 : if (ctxt->input->line < 65535) mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+36] cmp DWORD PTR [ecx+28], 65535 ; 0000ffffH jge SHORT $LN19@xmlSAX2Sta ; 1656 : ret->line = (short) ctxt->input->line; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+36] mov ecx, DWORD PTR _ret$[ebp] mov dx, WORD PTR [eax+28] mov WORD PTR [ecx+56], dx jmp SHORT $LN17@xmlSAX2Sta $LN19@xmlSAX2Sta: ; 1657 : else ; 1658 : ret->line = 65535; mov eax, 65535 ; 0000ffffH mov ecx, DWORD PTR _ret$[ebp] mov WORD PTR [ecx+56], ax $LN17@xmlSAX2Sta: ; 1659 : } ; 1660 : } ; 1661 : ; 1662 : /* ; 1663 : * We are parsing a new node. ; 1664 : */ ; 1665 : #ifdef DEBUG_SAX_TREE ; 1666 : xmlGenericError(xmlGenericErrorContext, "pushing(%s)\n", name); ; 1667 : #endif ; 1668 : if (nodePush(ctxt, ret) < 0) { mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _nodePush add esp, 8 test eax, eax jge SHORT $LN21@xmlSAX2Sta ; 1669 : xmlUnlinkNode(ret); mov ecx, DWORD PTR _ret$[ebp] push ecx call _xmlUnlinkNode add esp, 4 ; 1670 : xmlFreeNode(ret); mov edx, DWORD PTR _ret$[ebp] push edx call _xmlFreeNode add esp, 4 ; 1671 : return; jmp $LN1@xmlSAX2Sta $LN21@xmlSAX2Sta: ; 1672 : } ; 1673 : ; 1674 : /* ; 1675 : * Link the child element ; 1676 : */ ; 1677 : if (parent != NULL) { cmp DWORD PTR _parent$[ebp], 0 je SHORT $LN22@xmlSAX2Sta ; 1678 : if (parent->type == XML_ELEMENT_NODE) { mov eax, DWORD PTR _parent$[ebp] cmp DWORD PTR [eax+4], 1 jne SHORT $LN23@xmlSAX2Sta ; 1679 : #ifdef DEBUG_SAX_TREE ; 1680 : xmlGenericError(xmlGenericErrorContext, ; 1681 : "adding child %s to %s\n", name, parent->name); ; 1682 : #endif ; 1683 : xmlAddChild(parent, ret); mov ecx, DWORD PTR _ret$[ebp] push ecx mov edx, DWORD PTR _parent$[ebp] push edx call _xmlAddChild add esp, 8 ; 1684 : } else { jmp SHORT $LN22@xmlSAX2Sta $LN23@xmlSAX2Sta: ; 1685 : #ifdef DEBUG_SAX_TREE ; 1686 : xmlGenericError(xmlGenericErrorContext, ; 1687 : "adding sibling %s to ", name); ; 1688 : xmlDebugDumpOneNode(stderr, parent, 0); ; 1689 : #endif ; 1690 : xmlAddSibling(parent, ret); mov eax, DWORD PTR _ret$[ebp] push eax mov ecx, DWORD PTR _parent$[ebp] push ecx call _xmlAddSibling add esp, 8 $LN22@xmlSAX2Sta: ; 1691 : } ; 1692 : } ; 1693 : ; 1694 : /* ; 1695 : * Insert all the defaulted attributes from the DTD especially namespaces ; 1696 : */ ; 1697 : if ((!ctxt->html) && mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+32], 0 jne SHORT $LN25@xmlSAX2Sta mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] cmp DWORD PTR [ecx+44], 0 jne SHORT $LN26@xmlSAX2Sta mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] cmp DWORD PTR [eax+48], 0 je SHORT $LN25@xmlSAX2Sta $LN26@xmlSAX2Sta: ; 1698 : ((ctxt->myDoc->intSubset != NULL) || ; 1699 : (ctxt->myDoc->extSubset != NULL))) { ; 1700 : xmlCheckDefaultedAttributes(ctxt, name, prefix, atts); mov ecx, DWORD PTR _atts$[ebp] push ecx mov edx, DWORD PTR _prefix$[ebp] push edx mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlCheckDefaultedAttributes add esp, 16 ; 00000010H $LN25@xmlSAX2Sta: ; 1701 : } ; 1702 : ; 1703 : /* ; 1704 : * process all the attributes whose name start with "xmlns" ; 1705 : */ ; 1706 : if (atts != NULL) { cmp DWORD PTR _atts$[ebp], 0 je $LN27@xmlSAX2Sta ; 1707 : i = 0; mov DWORD PTR _i$[ebp], 0 ; 1708 : att = atts[i++]; mov edx, DWORD PTR _i$[ebp] mov eax, DWORD PTR _atts$[ebp] mov ecx, DWORD PTR [eax+edx*4] mov DWORD PTR _att$[ebp], ecx mov edx, DWORD PTR _i$[ebp] add edx, 1 mov DWORD PTR _i$[ebp], edx ; 1709 : value = atts[i++]; mov eax, DWORD PTR _i$[ebp] mov ecx, DWORD PTR _atts$[ebp] mov edx, DWORD PTR [ecx+eax*4] mov DWORD PTR _value$[ebp], edx mov eax, DWORD PTR _i$[ebp] add eax, 1 mov DWORD PTR _i$[ebp], eax ; 1710 : if (!ctxt->html) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+32], 0 jne $LN27@xmlSAX2Sta $LN2@xmlSAX2Sta: ; 1711 : while ((att != NULL) && (value != NULL)) { cmp DWORD PTR _att$[ebp], 0 je $LN27@xmlSAX2Sta cmp DWORD PTR _value$[ebp], 0 je $LN27@xmlSAX2Sta ; 1712 : if ((att[0] == 'x') && (att[1] == 'm') && (att[2] == 'l') && ; 1713 : (att[3] == 'n') && (att[4] == 's')) mov edx, 1 imul eax, edx, 0 mov ecx, DWORD PTR _att$[ebp] movzx edx, BYTE PTR [ecx+eax] cmp edx, 120 ; 00000078H jne SHORT $LN29@xmlSAX2Sta mov eax, 1 shl eax, 0 mov ecx, DWORD PTR _att$[ebp] movzx edx, BYTE PTR [ecx+eax] cmp edx, 109 ; 0000006dH jne SHORT $LN29@xmlSAX2Sta mov eax, 1 shl eax, 1 mov ecx, DWORD PTR _att$[ebp] movzx edx, BYTE PTR [ecx+eax] cmp edx, 108 ; 0000006cH jne SHORT $LN29@xmlSAX2Sta mov eax, 1 imul ecx, eax, 3 mov edx, DWORD PTR _att$[ebp] movzx eax, BYTE PTR [edx+ecx] cmp eax, 110 ; 0000006eH jne SHORT $LN29@xmlSAX2Sta mov ecx, 1 shl ecx, 2 mov edx, DWORD PTR _att$[ebp] movzx eax, BYTE PTR [edx+ecx] cmp eax, 115 ; 00000073H jne SHORT $LN29@xmlSAX2Sta ; 1714 : xmlSAX2AttributeInternal(ctxt, att, value, prefix); mov ecx, DWORD PTR _prefix$[ebp] push ecx mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _att$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlSAX2AttributeInternal add esp, 16 ; 00000010H $LN29@xmlSAX2Sta: ; 1715 : ; 1716 : att = atts[i++]; mov edx, DWORD PTR _i$[ebp] mov eax, DWORD PTR _atts$[ebp] mov ecx, DWORD PTR [eax+edx*4] mov DWORD PTR _att$[ebp], ecx mov edx, DWORD PTR _i$[ebp] add edx, 1 mov DWORD PTR _i$[ebp], edx ; 1717 : value = atts[i++]; mov eax, DWORD PTR _i$[ebp] mov ecx, DWORD PTR _atts$[ebp] mov edx, DWORD PTR [ecx+eax*4] mov DWORD PTR _value$[ebp], edx mov eax, DWORD PTR _i$[ebp] add eax, 1 mov DWORD PTR _i$[ebp], eax ; 1718 : } jmp $LN2@xmlSAX2Sta $LN27@xmlSAX2Sta: ; 1719 : } ; 1720 : } ; 1721 : ; 1722 : /* ; 1723 : * Search the namespace, note that since the attributes have been ; 1724 : * processed, the local namespaces are available. ; 1725 : */ ; 1726 : ns = xmlSearchNs(ctxt->myDoc, ret, prefix); mov ecx, DWORD PTR _prefix$[ebp] push ecx mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlSearchNs add esp, 12 ; 0000000cH mov DWORD PTR _ns$[ebp], eax ; 1727 : if ((ns == NULL) && (parent != NULL)) cmp DWORD PTR _ns$[ebp], 0 jne SHORT $LN30@xmlSAX2Sta cmp DWORD PTR _parent$[ebp], 0 je SHORT $LN30@xmlSAX2Sta ; 1728 : ns = xmlSearchNs(ctxt->myDoc, parent, prefix); mov edx, DWORD PTR _prefix$[ebp] push edx mov eax, DWORD PTR _parent$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlSearchNs add esp, 12 ; 0000000cH mov DWORD PTR _ns$[ebp], eax $LN30@xmlSAX2Sta: ; 1729 : if ((prefix != NULL) && (ns == NULL)) { cmp DWORD PTR _prefix$[ebp], 0 je SHORT $LN31@xmlSAX2Sta cmp DWORD PTR _ns$[ebp], 0 jne SHORT $LN31@xmlSAX2Sta ; 1730 : ns = xmlNewNs(ret, NULL, prefix); mov eax, DWORD PTR _prefix$[ebp] push eax push 0 mov ecx, DWORD PTR _ret$[ebp] push ecx call _xmlNewNs add esp, 12 ; 0000000cH mov DWORD PTR _ns$[ebp], eax ; 1731 : xmlNsWarnMsg(ctxt, XML_NS_ERR_UNDEFINED_NAMESPACE, push 0 mov edx, DWORD PTR _prefix$[ebp] push edx push OFFSET ??_C@_0CE@HAGAOPBB@Namespace?5prefix?5?$CFs?5is?5not?5defi@ push 201 ; 000000c9H mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlNsWarnMsg add esp, 20 ; 00000014H $LN31@xmlSAX2Sta: ; 1732 : "Namespace prefix %s is not defined\n", ; 1733 : prefix, NULL); ; 1734 : } ; 1735 : ; 1736 : /* ; 1737 : * set the namespace node, making sure that if the default namspace ; 1738 : * is unbound on a parent we simply kee it NULL ; 1739 : */ ; 1740 : if ((ns != NULL) && (ns->href != NULL) && cmp DWORD PTR _ns$[ebp], 0 je SHORT $LN32@xmlSAX2Sta mov ecx, DWORD PTR _ns$[ebp] cmp DWORD PTR [ecx+8], 0 je SHORT $LN32@xmlSAX2Sta mov edx, 1 imul eax, edx, 0 mov ecx, DWORD PTR _ns$[ebp] mov edx, DWORD PTR [ecx+8] movzx eax, BYTE PTR [edx+eax] test eax, eax jne SHORT $LN33@xmlSAX2Sta mov ecx, DWORD PTR _ns$[ebp] cmp DWORD PTR [ecx+12], 0 je SHORT $LN32@xmlSAX2Sta $LN33@xmlSAX2Sta: ; 1741 : ((ns->href[0] != 0) || (ns->prefix != NULL))) ; 1742 : xmlSetNs(ret, ns); mov edx, DWORD PTR _ns$[ebp] push edx mov eax, DWORD PTR _ret$[ebp] push eax call _xmlSetNs add esp, 8 $LN32@xmlSAX2Sta: ; 1743 : ; 1744 : /* ; 1745 : * process all the other attributes ; 1746 : */ ; 1747 : if (atts != NULL) { cmp DWORD PTR _atts$[ebp], 0 je $LN34@xmlSAX2Sta ; 1748 : i = 0; mov DWORD PTR _i$[ebp], 0 ; 1749 : att = atts[i++]; mov ecx, DWORD PTR _i$[ebp] mov edx, DWORD PTR _atts$[ebp] mov eax, DWORD PTR [edx+ecx*4] mov DWORD PTR _att$[ebp], eax mov ecx, DWORD PTR _i$[ebp] add ecx, 1 mov DWORD PTR _i$[ebp], ecx ; 1750 : value = atts[i++]; mov edx, DWORD PTR _i$[ebp] mov eax, DWORD PTR _atts$[ebp] mov ecx, DWORD PTR [eax+edx*4] mov DWORD PTR _value$[ebp], ecx mov edx, DWORD PTR _i$[ebp] add edx, 1 mov DWORD PTR _i$[ebp], edx ; 1751 : if (ctxt->html) { mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+32], 0 je SHORT $LN6@xmlSAX2Sta $LN4@xmlSAX2Sta: ; 1752 : while (att != NULL) { cmp DWORD PTR _att$[ebp], 0 je SHORT $LN5@xmlSAX2Sta ; 1753 : xmlSAX2AttributeInternal(ctxt, att, value, NULL); push 0 mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _att$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlSAX2AttributeInternal add esp, 16 ; 00000010H ; 1754 : att = atts[i++]; mov ecx, DWORD PTR _i$[ebp] mov edx, DWORD PTR _atts$[ebp] mov eax, DWORD PTR [edx+ecx*4] mov DWORD PTR _att$[ebp], eax mov ecx, DWORD PTR _i$[ebp] add ecx, 1 mov DWORD PTR _i$[ebp], ecx ; 1755 : value = atts[i++]; mov edx, DWORD PTR _i$[ebp] mov eax, DWORD PTR _atts$[ebp] mov ecx, DWORD PTR [eax+edx*4] mov DWORD PTR _value$[ebp], ecx mov edx, DWORD PTR _i$[ebp] add edx, 1 mov DWORD PTR _i$[ebp], edx ; 1756 : } jmp SHORT $LN4@xmlSAX2Sta $LN5@xmlSAX2Sta: ; 1757 : } else { jmp $LN34@xmlSAX2Sta $LN6@xmlSAX2Sta: ; 1758 : while ((att != NULL) && (value != NULL)) { cmp DWORD PTR _att$[ebp], 0 je $LN34@xmlSAX2Sta cmp DWORD PTR _value$[ebp], 0 je $LN34@xmlSAX2Sta ; 1759 : if ((att[0] != 'x') || (att[1] != 'm') || (att[2] != 'l') || ; 1760 : (att[3] != 'n') || (att[4] != 's')) mov eax, 1 imul ecx, eax, 0 mov edx, DWORD PTR _att$[ebp] movzx eax, BYTE PTR [edx+ecx] cmp eax, 120 ; 00000078H jne SHORT $LN38@xmlSAX2Sta mov ecx, 1 shl ecx, 0 mov edx, DWORD PTR _att$[ebp] movzx eax, BYTE PTR [edx+ecx] cmp eax, 109 ; 0000006dH jne SHORT $LN38@xmlSAX2Sta mov ecx, 1 shl ecx, 1 mov edx, DWORD PTR _att$[ebp] movzx eax, BYTE PTR [edx+ecx] cmp eax, 108 ; 0000006cH jne SHORT $LN38@xmlSAX2Sta mov ecx, 1 imul edx, ecx, 3 mov eax, DWORD PTR _att$[ebp] movzx ecx, BYTE PTR [eax+edx] cmp ecx, 110 ; 0000006eH jne SHORT $LN38@xmlSAX2Sta mov edx, 1 shl edx, 2 mov eax, DWORD PTR _att$[ebp] movzx ecx, BYTE PTR [eax+edx] cmp ecx, 115 ; 00000073H je SHORT $LN37@xmlSAX2Sta $LN38@xmlSAX2Sta: ; 1761 : xmlSAX2AttributeInternal(ctxt, att, value, NULL); push 0 mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _att$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlSAX2AttributeInternal add esp, 16 ; 00000010H $LN37@xmlSAX2Sta: ; 1762 : ; 1763 : /* ; 1764 : * Next ones ; 1765 : */ ; 1766 : att = atts[i++]; mov edx, DWORD PTR _i$[ebp] mov eax, DWORD PTR _atts$[ebp] mov ecx, DWORD PTR [eax+edx*4] mov DWORD PTR _att$[ebp], ecx mov edx, DWORD PTR _i$[ebp] add edx, 1 mov DWORD PTR _i$[ebp], edx ; 1767 : value = atts[i++]; mov eax, DWORD PTR _i$[ebp] mov ecx, DWORD PTR _atts$[ebp] mov edx, DWORD PTR [ecx+eax*4] mov DWORD PTR _value$[ebp], edx mov eax, DWORD PTR _i$[ebp] add eax, 1 mov DWORD PTR _i$[ebp], eax ; 1768 : } jmp $LN6@xmlSAX2Sta $LN34@xmlSAX2Sta: ; 1769 : } ; 1770 : } ; 1771 : ; 1772 : #ifdef LIBXML_VALID_ENABLED ; 1773 : /* ; 1774 : * If it's the Document root, finish the DTD validation and ; 1775 : * check the document root element for validity ; 1776 : */ ; 1777 : if ((ctxt->validate) && (ctxt->vctxt.finishDtd == XML_CTXT_FINISH_DTD_0)) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+104], 0 je SHORT $LN39@xmlSAX2Sta mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+136], -1412623820 ; abcd1234H jne SHORT $LN39@xmlSAX2Sta ; 1778 : int chk; ; 1779 : ; 1780 : chk = xmlValidateDtdFinal(&ctxt->vctxt, ctxt->myDoc); mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _ctxt$[ebp] add edx, 108 ; 0000006cH push edx call _xmlValidateDtdFinal add esp, 8 mov DWORD PTR _chk$1[ebp], eax ; 1781 : if (chk <= 0) cmp DWORD PTR _chk$1[ebp], 0 jg SHORT $LN40@xmlSAX2Sta ; 1782 : ctxt->valid = 0; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+100], 0 $LN40@xmlSAX2Sta: ; 1783 : if (chk < 0) cmp DWORD PTR _chk$1[ebp], 0 jge SHORT $LN41@xmlSAX2Sta ; 1784 : ctxt->wellFormed = 0; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+12], 0 $LN41@xmlSAX2Sta: ; 1785 : ctxt->valid &= xmlValidateRoot(&ctxt->vctxt, ctxt->myDoc); mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _ctxt$[ebp] add ecx, 108 ; 0000006cH push ecx call _xmlValidateRoot add esp, 8 mov edx, DWORD PTR _ctxt$[ebp] and eax, DWORD PTR [edx+100] mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+100], eax ; 1786 : ctxt->vctxt.finishDtd = XML_CTXT_FINISH_DTD_1; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+136], -1412623819 ; abcd1235H $LN39@xmlSAX2Sta: ; 1787 : } ; 1788 : #endif /* LIBXML_VALID_ENABLED */ ; 1789 : ; 1790 : if (prefix != NULL) cmp DWORD PTR _prefix$[ebp], 0 je SHORT $LN1@xmlSAX2Sta ; 1791 : xmlFree(prefix); mov esi, esp mov eax, DWORD PTR _prefix$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN1@xmlSAX2Sta: ; 1792 : ; 1793 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN46@xmlSAX2Sta call @_RTC_CheckStackVars@8 pop eax pop edx pop edi pop esi add esp, 48 ; 00000030H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 2 $LN46@xmlSAX2Sta: DD 1 DD $LN45@xmlSAX2Sta $LN45@xmlSAX2Sta: DD -28 ; ffffffe4H DD 4 DD $LN44@xmlSAX2Sta $LN44@xmlSAX2Sta: DB 112 ; 00000070H DB 114 ; 00000072H DB 101 ; 00000065H DB 102 ; 00000066H DB 105 ; 00000069H DB 120 ; 00000078H DB 0 _xmlSAX2StartElement ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2EndDocument _TEXT SEGMENT _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _xmlSAX2EndDocument PROC ; COMDAT ; 1049 : { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 1050 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 1051 : #ifdef DEBUG_SAX ; 1052 : xmlGenericError(xmlGenericErrorContext, ; 1053 : "SAX.xmlSAX2EndDocument()\n"); ; 1054 : #endif ; 1055 : if (ctx == NULL) return; cmp DWORD PTR _ctx$[ebp], 0 jne SHORT $LN2@xmlSAX2End jmp $LN1@xmlSAX2End $LN2@xmlSAX2End: ; 1056 : #ifdef LIBXML_VALID_ENABLED ; 1057 : if (ctxt->validate && ctxt->wellFormed && ; 1058 : ctxt->myDoc && ctxt->myDoc->intSubset) mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+104], 0 je SHORT $LN3@xmlSAX2End mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+12], 0 je SHORT $LN3@xmlSAX2End mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+8], 0 je SHORT $LN3@xmlSAX2End mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] cmp DWORD PTR [edx+44], 0 je SHORT $LN3@xmlSAX2End ; 1059 : ctxt->valid &= xmlValidateDocumentFinal(&ctxt->vctxt, ctxt->myDoc); mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _ctxt$[ebp] add edx, 108 ; 0000006cH push edx call _xmlValidateDocumentFinal add esp, 8 mov ecx, DWORD PTR _ctxt$[ebp] and eax, DWORD PTR [ecx+100] mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+100], eax $LN3@xmlSAX2End: ; 1060 : #endif /* LIBXML_VALID_ENABLED */ ; 1061 : ; 1062 : /* ; 1063 : * Grab the encoding if it was added on-the-fly ; 1064 : */ ; 1065 : if ((ctxt->encoding != NULL) && (ctxt->myDoc != NULL) && mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+24], 0 je SHORT $LN4@xmlSAX2End mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+8], 0 je SHORT $LN4@xmlSAX2End mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] cmp DWORD PTR [eax+60], 0 jne SHORT $LN4@xmlSAX2End ; 1066 : (ctxt->myDoc->encoding == NULL)) { ; 1067 : ctxt->myDoc->encoding = ctxt->encoding; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+24] mov DWORD PTR [edx+60], ecx ; 1068 : ctxt->encoding = NULL; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+24], 0 $LN4@xmlSAX2End: ; 1069 : } ; 1070 : if ((ctxt->inputTab != NULL) && ; 1071 : (ctxt->inputNr > 0) && (ctxt->inputTab[0] != NULL) && ; 1072 : (ctxt->inputTab[0]->encoding != NULL) && (ctxt->myDoc != NULL) && mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+48], 0 je SHORT $LN5@xmlSAX2End mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+40], 0 jle SHORT $LN5@xmlSAX2End mov edx, 4 imul eax, edx, 0 mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+48] cmp DWORD PTR [eax+edx], 0 je SHORT $LN5@xmlSAX2End mov eax, 4 imul ecx, eax, 0 mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+48] mov ecx, DWORD PTR [eax+ecx] cmp DWORD PTR [ecx+44], 0 je SHORT $LN5@xmlSAX2End mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+8], 0 je SHORT $LN5@xmlSAX2End mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] cmp DWORD PTR [ecx+60], 0 jne SHORT $LN5@xmlSAX2End ; 1073 : (ctxt->myDoc->encoding == NULL)) { ; 1074 : ctxt->myDoc->encoding = xmlStrdup(ctxt->inputTab[0]->encoding); mov edx, 4 imul eax, edx, 0 mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+48] mov eax, DWORD PTR [edx+eax] mov ecx, DWORD PTR [eax+44] push ecx call _xmlStrdup add esp, 4 mov edx, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [edx+8] mov DWORD PTR [ecx+60], eax $LN5@xmlSAX2End: ; 1075 : } ; 1076 : if ((ctxt->charset != XML_CHAR_ENCODING_NONE) && (ctxt->myDoc != NULL) && mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+256], 0 je SHORT $LN1@xmlSAX2End mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+8], 0 je SHORT $LN1@xmlSAX2End mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] cmp DWORD PTR [edx+76], 0 jne SHORT $LN1@xmlSAX2End ; 1077 : (ctxt->myDoc->charset == XML_CHAR_ENCODING_NONE)) { ; 1078 : ctxt->myDoc->charset = ctxt->charset; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+256] mov DWORD PTR [ecx+76], eax $LN1@xmlSAX2End: ; 1079 : } ; 1080 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2EndDocument ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2StartDocument _TEXT SEGMENT tv83 = -12 ; size = 4 _doc$ = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _xmlSAX2StartDocument PROC ; COMDAT ; 984 : { push ebp mov ebp, esp sub esp, 12 ; 0000000cH mov DWORD PTR [ebp-12], -858993460 ; ccccccccH mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 985 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 986 : xmlDocPtr doc; ; 987 : ; 988 : if (ctx == NULL) return; cmp DWORD PTR _ctx$[ebp], 0 jne SHORT $LN2@xmlSAX2Sta jmp $LN1@xmlSAX2Sta $LN2@xmlSAX2Sta: ; 989 : ; 990 : #ifdef DEBUG_SAX ; 991 : xmlGenericError(xmlGenericErrorContext, ; 992 : "SAX.xmlSAX2StartDocument()\n"); ; 993 : #endif ; 994 : if (ctxt->html) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+32], 0 je SHORT $LN3@xmlSAX2Sta ; 995 : #ifdef LIBXML_HTML_ENABLED ; 996 : if (ctxt->myDoc == NULL) mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+8], 0 jne SHORT $LN5@xmlSAX2Sta ; 997 : ctxt->myDoc = htmlNewDocNoDtD(NULL, NULL); push 0 push 0 call _htmlNewDocNoDtD add esp, 8 mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+8], eax $LN5@xmlSAX2Sta: ; 998 : if (ctxt->myDoc == NULL) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+8], 0 jne SHORT $LN6@xmlSAX2Sta ; 999 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartDocument"); push OFFSET ??_C@_0BF@BOIPPPAK@xmlSAX2StartDocument@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlSAX2ErrMemory add esp, 8 ; 1000 : return; jmp $LN1@xmlSAX2Sta $LN6@xmlSAX2Sta: ; 1001 : } ; 1002 : ctxt->myDoc->properties = XML_DOC_HTML; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] mov DWORD PTR [edx+92], 128 ; 00000080H ; 1003 : ctxt->myDoc->parseFlags = ctxt->options; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+360] mov DWORD PTR [ecx+88], eax ; 1004 : #else ; 1005 : xmlGenericError(xmlGenericErrorContext, ; 1006 : "libxml2 built without HTML support\n"); ; 1007 : ctxt->errNo = XML_ERR_INTERNAL_ERROR; ; 1008 : ctxt->instate = XML_PARSER_EOF; ; 1009 : ctxt->disableSAX = 1; ; 1010 : return; ; 1011 : #endif ; 1012 : } else { jmp $LN4@xmlSAX2Sta $LN3@xmlSAX2Sta: ; 1013 : doc = ctxt->myDoc = xmlNewDoc(ctxt->version); mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+20] push edx call _xmlNewDoc add esp, 4 mov DWORD PTR tv83[ebp], eax mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR tv83[ebp] mov DWORD PTR [eax+8], ecx mov edx, DWORD PTR tv83[ebp] mov DWORD PTR _doc$[ebp], edx ; 1014 : if (doc != NULL) { cmp DWORD PTR _doc$[ebp], 0 je SHORT $LN7@xmlSAX2Sta ; 1015 : doc->properties = 0; mov eax, DWORD PTR _doc$[ebp] mov DWORD PTR [eax+92], 0 ; 1016 : if (ctxt->options & XML_PARSE_OLD10) mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+360] and edx, 131072 ; 00020000H je SHORT $LN9@xmlSAX2Sta ; 1017 : doc->properties |= XML_DOC_OLD10; mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+92] or ecx, 4 mov edx, DWORD PTR _doc$[ebp] mov DWORD PTR [edx+92], ecx $LN9@xmlSAX2Sta: ; 1018 : doc->parseFlags = ctxt->options; mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+360] mov DWORD PTR [eax+88], edx ; 1019 : if (ctxt->encoding != NULL) mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+24], 0 je SHORT $LN10@xmlSAX2Sta ; 1020 : doc->encoding = xmlStrdup(ctxt->encoding); mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+24] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _doc$[ebp] mov DWORD PTR [ecx+60], eax jmp SHORT $LN11@xmlSAX2Sta $LN10@xmlSAX2Sta: ; 1021 : else ; 1022 : doc->encoding = NULL; mov edx, DWORD PTR _doc$[ebp] mov DWORD PTR [edx+60], 0 $LN11@xmlSAX2Sta: ; 1023 : doc->standalone = ctxt->standalone; mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+28] mov DWORD PTR [eax+40], edx ; 1024 : } else { jmp SHORT $LN8@xmlSAX2Sta $LN7@xmlSAX2Sta: ; 1025 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartDocument"); push OFFSET ??_C@_0BF@BOIPPPAK@xmlSAX2StartDocument@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlSAX2ErrMemory add esp, 8 ; 1026 : return; jmp $LN1@xmlSAX2Sta $LN8@xmlSAX2Sta: ; 1027 : } ; 1028 : if ((ctxt->dictNames) && (doc != NULL)) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+364], 0 je SHORT $LN4@xmlSAX2Sta cmp DWORD PTR _doc$[ebp], 0 je SHORT $LN4@xmlSAX2Sta ; 1029 : doc->dict = ctxt->dict; mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+296] mov DWORD PTR [edx+80], ecx ; 1030 : xmlDictReference(doc->dict); mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+80] push eax call _xmlDictReference add esp, 4 $LN4@xmlSAX2Sta: ; 1031 : } ; 1032 : } ; 1033 : if ((ctxt->myDoc != NULL) && (ctxt->myDoc->URL == NULL) && ; 1034 : (ctxt->input != NULL) && (ctxt->input->filename != NULL)) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+8], 0 je SHORT $LN1@xmlSAX2Sta mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] cmp DWORD PTR [eax+72], 0 jne SHORT $LN1@xmlSAX2Sta mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+36], 0 je SHORT $LN1@xmlSAX2Sta mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+36] cmp DWORD PTR [eax+4], 0 je SHORT $LN1@xmlSAX2Sta ; 1035 : ctxt->myDoc->URL = xmlPathToURI((const xmlChar *)ctxt->input->filename); mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+36] mov eax, DWORD PTR [edx+4] push eax call _xmlPathToURI add esp, 4 mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] mov DWORD PTR [edx+72], eax ; 1036 : if (ctxt->myDoc->URL == NULL) mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] cmp DWORD PTR [ecx+72], 0 jne SHORT $LN1@xmlSAX2Sta ; 1037 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartDocument"); push OFFSET ??_C@_0BF@BOIPPPAK@xmlSAX2StartDocument@ mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlSAX2ErrMemory add esp, 8 $LN1@xmlSAX2Sta: ; 1038 : } ; 1039 : } add esp, 12 ; 0000000cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2StartDocument ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2UnparsedEntityDecl _TEXT SEGMENT _base$1 = -24 ; size = 4 _URI$2 = -20 ; size = 4 _base$3 = -16 ; size = 4 _URI$4 = -12 ; size = 4 _ctxt$ = -8 ; size = 4 _ent$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _name$ = 12 ; size = 4 _publicId$ = 16 ; size = 4 _systemId$ = 20 ; size = 4 _notationName$ = 24 ; size = 4 _xmlSAX2UnparsedEntityDecl PROC ; COMDAT ; 902 : { push ebp mov ebp, esp sub esp, 24 ; 00000018H push esi mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 903 : xmlEntityPtr ent; ; 904 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 905 : if (ctx == NULL) return; cmp DWORD PTR _ctx$[ebp], 0 jne SHORT $LN2@xmlSAX2Unp jmp $LN1@xmlSAX2Unp $LN2@xmlSAX2Unp: ; 906 : #ifdef DEBUG_SAX ; 907 : xmlGenericError(xmlGenericErrorContext, ; 908 : "SAX.xmlSAX2UnparsedEntityDecl(%s, %s, %s, %s)\n", ; 909 : name, publicId, systemId, notationName); ; 910 : #endif ; 911 : if (ctxt->inSubset == 1) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+216], 1 jne $LN3@xmlSAX2Unp ; 912 : ent = xmlAddDocEntity(ctxt->myDoc, name, mov edx, DWORD PTR _notationName$[ebp] push edx mov eax, DWORD PTR _systemId$[ebp] push eax mov ecx, DWORD PTR _publicId$[ebp] push ecx push 3 mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlAddDocEntity add esp, 24 ; 00000018H mov DWORD PTR _ent$[ebp], eax ; 913 : XML_EXTERNAL_GENERAL_UNPARSED_ENTITY, ; 914 : publicId, systemId, notationName); ; 915 : if ((ent == NULL) && (ctxt->pedantic) && ; 916 : (ctxt->sax != NULL) && (ctxt->sax->warning != NULL)) cmp DWORD PTR _ent$[ebp], 0 jne SHORT $LN5@xmlSAX2Unp mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+268], 0 je SHORT $LN5@xmlSAX2Unp mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax], 0 je SHORT $LN5@xmlSAX2Unp mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx] cmp DWORD PTR [edx+84], 0 je SHORT $LN5@xmlSAX2Unp ; 917 : ctxt->sax->warning(ctxt->userData, mov esi, esp mov eax, DWORD PTR _name$[ebp] push eax push OFFSET ??_C@_0DD@GCBFDMPE@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@ mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+4] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax] mov edx, DWORD PTR [ecx+84] call edx add esp, 12 ; 0000000cH cmp esi, esp call __RTC_CheckEsp $LN5@xmlSAX2Unp: ; 918 : "Entity(%s) already defined in the internal subset\n", name); ; 919 : if ((ent != NULL) && (ent->URI == NULL) && (systemId != NULL)) { cmp DWORD PTR _ent$[ebp], 0 je SHORT $LN6@xmlSAX2Unp mov eax, DWORD PTR _ent$[ebp] cmp DWORD PTR [eax+64], 0 jne SHORT $LN6@xmlSAX2Unp cmp DWORD PTR _systemId$[ebp], 0 je SHORT $LN6@xmlSAX2Unp ; 920 : xmlChar *URI; ; 921 : const char *base = NULL; mov DWORD PTR _base$3[ebp], 0 ; 922 : ; 923 : if (ctxt->input != NULL) mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+36], 0 je SHORT $LN7@xmlSAX2Unp ; 924 : base = ctxt->input->filename; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+36] mov ecx, DWORD PTR [eax+4] mov DWORD PTR _base$3[ebp], ecx $LN7@xmlSAX2Unp: ; 925 : if (base == NULL) cmp DWORD PTR _base$3[ebp], 0 jne SHORT $LN8@xmlSAX2Unp ; 926 : base = ctxt->directory; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+180] mov DWORD PTR _base$3[ebp], eax $LN8@xmlSAX2Unp: ; 927 : ; 928 : URI = xmlBuildURI(systemId, (const xmlChar *) base); mov ecx, DWORD PTR _base$3[ebp] push ecx mov edx, DWORD PTR _systemId$[ebp] push edx call _xmlBuildURI add esp, 8 mov DWORD PTR _URI$4[ebp], eax ; 929 : ent->URI = URI; mov eax, DWORD PTR _ent$[ebp] mov ecx, DWORD PTR _URI$4[ebp] mov DWORD PTR [eax+64], ecx $LN6@xmlSAX2Unp: ; 930 : } jmp $LN1@xmlSAX2Unp $LN3@xmlSAX2Unp: ; 931 : } else if (ctxt->inSubset == 2) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+216], 2 jne $LN9@xmlSAX2Unp ; 932 : ent = xmlAddDtdEntity(ctxt->myDoc, name, mov eax, DWORD PTR _notationName$[ebp] push eax mov ecx, DWORD PTR _systemId$[ebp] push ecx mov edx, DWORD PTR _publicId$[ebp] push edx push 3 mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlAddDtdEntity add esp, 24 ; 00000018H mov DWORD PTR _ent$[ebp], eax ; 933 : XML_EXTERNAL_GENERAL_UNPARSED_ENTITY, ; 934 : publicId, systemId, notationName); ; 935 : if ((ent == NULL) && (ctxt->pedantic) && ; 936 : (ctxt->sax != NULL) && (ctxt->sax->warning != NULL)) cmp DWORD PTR _ent$[ebp], 0 jne SHORT $LN11@xmlSAX2Unp mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+268], 0 je SHORT $LN11@xmlSAX2Unp mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx], 0 je SHORT $LN11@xmlSAX2Unp mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx] cmp DWORD PTR [eax+84], 0 je SHORT $LN11@xmlSAX2Unp ; 937 : ctxt->sax->warning(ctxt->userData, mov esi, esp mov ecx, DWORD PTR _name$[ebp] push ecx push OFFSET ??_C@_0DD@ECLLADNP@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@ mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+4] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx] mov eax, DWORD PTR [edx+84] call eax add esp, 12 ; 0000000cH cmp esi, esp call __RTC_CheckEsp $LN11@xmlSAX2Unp: ; 938 : "Entity(%s) already defined in the external subset\n", name); ; 939 : if ((ent != NULL) && (ent->URI == NULL) && (systemId != NULL)) { cmp DWORD PTR _ent$[ebp], 0 je SHORT $LN12@xmlSAX2Unp mov ecx, DWORD PTR _ent$[ebp] cmp DWORD PTR [ecx+64], 0 jne SHORT $LN12@xmlSAX2Unp cmp DWORD PTR _systemId$[ebp], 0 je SHORT $LN12@xmlSAX2Unp ; 940 : xmlChar *URI; ; 941 : const char *base = NULL; mov DWORD PTR _base$1[ebp], 0 ; 942 : ; 943 : if (ctxt->input != NULL) mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+36], 0 je SHORT $LN13@xmlSAX2Unp ; 944 : base = ctxt->input->filename; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+36] mov edx, DWORD PTR [ecx+4] mov DWORD PTR _base$1[ebp], edx $LN13@xmlSAX2Unp: ; 945 : if (base == NULL) cmp DWORD PTR _base$1[ebp], 0 jne SHORT $LN14@xmlSAX2Unp ; 946 : base = ctxt->directory; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+180] mov DWORD PTR _base$1[ebp], ecx $LN14@xmlSAX2Unp: ; 947 : ; 948 : URI = xmlBuildURI(systemId, (const xmlChar *) base); mov edx, DWORD PTR _base$1[ebp] push edx mov eax, DWORD PTR _systemId$[ebp] push eax call _xmlBuildURI add esp, 8 mov DWORD PTR _URI$2[ebp], eax ; 949 : ent->URI = URI; mov ecx, DWORD PTR _ent$[ebp] mov edx, DWORD PTR _URI$2[ebp] mov DWORD PTR [ecx+64], edx $LN12@xmlSAX2Unp: ; 950 : } ; 951 : } else { jmp SHORT $LN1@xmlSAX2Unp $LN9@xmlSAX2Unp: ; 952 : xmlFatalErrMsg(ctxt, XML_ERR_INTERNAL_ERROR, push 0 mov eax, DWORD PTR _name$[ebp] push eax push OFFSET ??_C@_0DO@IABCNOGI@SAX?4xmlSAX2UnparsedEntityDecl?$CI?$CF@ push 1 mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlFatalErrMsg add esp, 20 ; 00000014H $LN1@xmlSAX2Unp: ; 953 : "SAX.xmlSAX2UnparsedEntityDecl(%s) called while not in subset\n", ; 954 : name, NULL); ; 955 : } ; 956 : } pop esi add esp, 24 ; 00000018H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2UnparsedEntityDecl ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2NotationDecl _TEXT SEGMENT _nota$ = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _name$ = 12 ; size = 4 _publicId$ = 16 ; size = 4 _systemId$ = 20 ; size = 4 _xmlSAX2NotationDecl PROC ; COMDAT ; 850 : { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 851 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 852 : xmlNotationPtr nota = NULL; mov DWORD PTR _nota$[ebp], 0 ; 853 : ; 854 : if ((ctxt == NULL) || (ctxt->myDoc == NULL)) cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN3@xmlSAX2Not mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+8], 0 jne SHORT $LN2@xmlSAX2Not $LN3@xmlSAX2Not: ; 855 : return; jmp $LN1@xmlSAX2Not $LN2@xmlSAX2Not: ; 856 : ; 857 : #ifdef DEBUG_SAX ; 858 : xmlGenericError(xmlGenericErrorContext, ; 859 : "SAX.xmlSAX2NotationDecl(%s, %s, %s)\n", name, publicId, systemId); ; 860 : #endif ; 861 : ; 862 : if ((publicId == NULL) && (systemId == NULL)) { cmp DWORD PTR _publicId$[ebp], 0 jne SHORT $LN4@xmlSAX2Not cmp DWORD PTR _systemId$[ebp], 0 jne SHORT $LN4@xmlSAX2Not ; 863 : xmlFatalErrMsg(ctxt, XML_ERR_NOTATION_PROCESSING, push 0 mov edx, DWORD PTR _name$[ebp] push edx push OFFSET ??_C@_0DM@OMFMKHI@SAX?4xmlSAX2NotationDecl?$CI?$CFs?$CJ?5ext@ push 105 ; 00000069H mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlFatalErrMsg add esp, 20 ; 00000014H ; 864 : "SAX.xmlSAX2NotationDecl(%s) externalID or PublicID missing\n", ; 865 : name, NULL); ; 866 : return; jmp $LN1@xmlSAX2Not jmp $LN5@xmlSAX2Not $LN4@xmlSAX2Not: ; 867 : } else if (ctxt->inSubset == 1) mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+216], 1 jne SHORT $LN6@xmlSAX2Not ; 868 : nota = xmlAddNotationDecl(&ctxt->vctxt, ctxt->myDoc->intSubset, name, mov edx, DWORD PTR _systemId$[ebp] push edx mov eax, DWORD PTR _publicId$[ebp] push eax mov ecx, DWORD PTR _name$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] mov ecx, DWORD PTR [eax+44] push ecx mov edx, DWORD PTR _ctxt$[ebp] add edx, 108 ; 0000006cH push edx call _xmlAddNotationDecl add esp, 20 ; 00000014H mov DWORD PTR _nota$[ebp], eax jmp SHORT $LN5@xmlSAX2Not $LN6@xmlSAX2Not: ; 869 : publicId, systemId); ; 870 : else if (ctxt->inSubset == 2) mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+216], 2 jne SHORT $LN8@xmlSAX2Not ; 871 : nota = xmlAddNotationDecl(&ctxt->vctxt, ctxt->myDoc->extSubset, name, mov ecx, DWORD PTR _systemId$[ebp] push ecx mov edx, DWORD PTR _publicId$[ebp] push edx mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] mov eax, DWORD PTR [edx+48] push eax mov ecx, DWORD PTR _ctxt$[ebp] add ecx, 108 ; 0000006cH push ecx call _xmlAddNotationDecl add esp, 20 ; 00000014H mov DWORD PTR _nota$[ebp], eax jmp SHORT $LN5@xmlSAX2Not $LN8@xmlSAX2Not: ; 872 : publicId, systemId); ; 873 : else { ; 874 : xmlFatalErrMsg(ctxt, XML_ERR_NOTATION_PROCESSING, push 0 mov edx, DWORD PTR _name$[ebp] push edx push OFFSET ??_C@_0DI@MAMMGJDO@SAX?4xmlSAX2NotationDecl?$CI?$CFs?$CJ?5cal@ push 105 ; 00000069H mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlFatalErrMsg add esp, 20 ; 00000014H ; 875 : "SAX.xmlSAX2NotationDecl(%s) called while not in subset\n", ; 876 : name, NULL); ; 877 : return; jmp SHORT $LN1@xmlSAX2Not $LN5@xmlSAX2Not: ; 878 : } ; 879 : #ifdef LIBXML_VALID_ENABLED ; 880 : if (nota == NULL) ctxt->valid = 0; cmp DWORD PTR _nota$[ebp], 0 jne SHORT $LN10@xmlSAX2Not mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+100], 0 $LN10@xmlSAX2Not: ; 881 : if ((ctxt->validate) && (ctxt->wellFormed) && mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+104], 0 je SHORT $LN1@xmlSAX2Not mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+12], 0 je SHORT $LN1@xmlSAX2Not mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] cmp DWORD PTR [edx+44], 0 je SHORT $LN1@xmlSAX2Not ; 882 : (ctxt->myDoc->intSubset != NULL)) ; 883 : ctxt->valid &= xmlValidateNotationDecl(&ctxt->vctxt, ctxt->myDoc, mov eax, DWORD PTR _nota$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _ctxt$[ebp] add eax, 108 ; 0000006cH push eax call _xmlValidateNotationDecl add esp, 12 ; 0000000cH mov ecx, DWORD PTR _ctxt$[ebp] and eax, DWORD PTR [ecx+100] mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+100], eax $LN1@xmlSAX2Not: ; 884 : nota); ; 885 : #endif /* LIBXML_VALID_ENABLED */ ; 886 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2NotationDecl ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2ElementDecl _TEXT SEGMENT _elem$ = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _name$ = 12 ; size = 4 _type$ = 16 ; size = 4 _content$ = 20 ; size = 4 _xmlSAX2ElementDecl PROC ; COMDAT ; 804 : { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 805 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 806 : xmlElementPtr elem = NULL; mov DWORD PTR _elem$[ebp], 0 ; 807 : ; 808 : if ((ctxt == NULL) || (ctxt->myDoc == NULL)) cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN3@xmlSAX2Ele mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+8], 0 jne SHORT $LN2@xmlSAX2Ele $LN3@xmlSAX2Ele: ; 809 : return; jmp $LN1@xmlSAX2Ele $LN2@xmlSAX2Ele: ; 810 : ; 811 : #ifdef DEBUG_SAX ; 812 : xmlGenericError(xmlGenericErrorContext, ; 813 : "SAX.xmlSAX2ElementDecl(%s, %d, ...)\n", name, type); ; 814 : #endif ; 815 : ; 816 : if (ctxt->inSubset == 1) mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+216], 1 jne SHORT $LN4@xmlSAX2Ele ; 817 : elem = xmlAddElementDecl(&ctxt->vctxt, ctxt->myDoc->intSubset, mov eax, DWORD PTR _content$[ebp] push eax mov ecx, DWORD PTR _type$[ebp] push ecx mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] mov edx, DWORD PTR [ecx+44] push edx mov eax, DWORD PTR _ctxt$[ebp] add eax, 108 ; 0000006cH push eax call _xmlAddElementDecl add esp, 20 ; 00000014H mov DWORD PTR _elem$[ebp], eax jmp SHORT $LN5@xmlSAX2Ele $LN4@xmlSAX2Ele: ; 818 : name, (xmlElementTypeVal) type, content); ; 819 : else if (ctxt->inSubset == 2) mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+216], 2 jne SHORT $LN6@xmlSAX2Ele ; 820 : elem = xmlAddElementDecl(&ctxt->vctxt, ctxt->myDoc->extSubset, mov edx, DWORD PTR _content$[ebp] push edx mov eax, DWORD PTR _type$[ebp] push eax mov ecx, DWORD PTR _name$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] mov ecx, DWORD PTR [eax+48] push ecx mov edx, DWORD PTR _ctxt$[ebp] add edx, 108 ; 0000006cH push edx call _xmlAddElementDecl add esp, 20 ; 00000014H mov DWORD PTR _elem$[ebp], eax jmp SHORT $LN5@xmlSAX2Ele $LN6@xmlSAX2Ele: ; 821 : name, (xmlElementTypeVal) type, content); ; 822 : else { ; 823 : xmlFatalErrMsg(ctxt, XML_ERR_INTERNAL_ERROR, push 0 mov eax, DWORD PTR _name$[ebp] push eax push OFFSET ??_C@_0DH@FINDFGFC@SAX?4xmlSAX2ElementDecl?$CI?$CFs?$CJ?5call@ push 1 mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlFatalErrMsg add esp, 20 ; 00000014H ; 824 : "SAX.xmlSAX2ElementDecl(%s) called while not in subset\n", ; 825 : name, NULL); ; 826 : return; jmp SHORT $LN1@xmlSAX2Ele $LN5@xmlSAX2Ele: ; 827 : } ; 828 : #ifdef LIBXML_VALID_ENABLED ; 829 : if (elem == NULL) cmp DWORD PTR _elem$[ebp], 0 jne SHORT $LN8@xmlSAX2Ele ; 830 : ctxt->valid = 0; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+100], 0 $LN8@xmlSAX2Ele: ; 831 : if (ctxt->validate && ctxt->wellFormed && ; 832 : ctxt->myDoc && ctxt->myDoc->intSubset) mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+104], 0 je SHORT $LN1@xmlSAX2Ele mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+12], 0 je SHORT $LN1@xmlSAX2Ele mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+8], 0 je SHORT $LN1@xmlSAX2Ele mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] cmp DWORD PTR [ecx+44], 0 je SHORT $LN1@xmlSAX2Ele ; 833 : ctxt->valid &= mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _ctxt$[ebp] add edx, 108 ; 0000006cH push edx call _xmlValidateElementDecl add esp, 12 ; 0000000cH mov ecx, DWORD PTR _ctxt$[ebp] and eax, DWORD PTR [ecx+100] mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+100], eax $LN1@xmlSAX2Ele: ; 834 : xmlValidateElementDecl(&ctxt->vctxt, ctxt->myDoc, elem); ; 835 : #endif /* LIBXML_VALID_ENABLED */ ; 836 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2ElementDecl ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2AttributeDecl _TEXT SEGMENT _tmp$1 = -28 ; size = 4 _prefix$ = -20 ; size = 4 _name$ = -12 ; size = 4 _attr$ = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _elem$ = 12 ; size = 4 _fullname$ = 16 ; size = 4 _type$ = 20 ; size = 4 _def$ = 24 ; size = 4 _defaultValue$ = 28 ; size = 4 _tree$ = 32 ; size = 4 _xmlSAX2AttributeDecl PROC ; COMDAT ; 737 : { push ebp mov ebp, esp sub esp, 28 ; 0000001cH push esi mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-28], eax mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 738 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 739 : xmlAttributePtr attr; ; 740 : xmlChar *name = NULL, *prefix = NULL; mov DWORD PTR _name$[ebp], 0 mov DWORD PTR _prefix$[ebp], 0 ; 741 : ; 742 : if ((ctxt == NULL) || (ctxt->myDoc == NULL)) cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN3@xmlSAX2Att mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+8], 0 jne SHORT $LN2@xmlSAX2Att $LN3@xmlSAX2Att: ; 743 : return; jmp $LN1@xmlSAX2Att $LN2@xmlSAX2Att: ; 744 : ; 745 : #ifdef DEBUG_SAX ; 746 : xmlGenericError(xmlGenericErrorContext, ; 747 : "SAX.xmlSAX2AttributeDecl(%s, %s, %d, %d, %s, ...)\n", ; 748 : elem, fullname, type, def, defaultValue); ; 749 : #endif ; 750 : if ((xmlStrEqual(fullname, BAD_CAST "xml:id")) && push OFFSET ??_C@_06IMLNHOMM@xml?3id@ mov edx, DWORD PTR _fullname$[ebp] push edx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN4@xmlSAX2Att cmp DWORD PTR _type$[ebp], 2 je SHORT $LN4@xmlSAX2Att ; 751 : (type != XML_ATTRIBUTE_ID)) { ; 752 : /* ; 753 : * Raise the error but keep the validity flag ; 754 : */ ; 755 : int tmp = ctxt->valid; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+100] mov DWORD PTR _tmp$1[ebp], ecx ; 756 : xmlErrValid(ctxt, XML_DTD_XMLID_TYPE, push 0 push 0 push OFFSET ??_C@_0CG@DOFEKNB@xml?3id?5?3?5attribute?5type?5should?5@ push 540 ; 0000021cH mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValid add esp, 20 ; 00000014H ; 757 : "xml:id : attribute type should be ID\n", NULL, NULL); ; 758 : ctxt->valid = tmp; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR _tmp$1[ebp] mov DWORD PTR [eax+100], ecx $LN4@xmlSAX2Att: ; 759 : } ; 760 : /* TODO: optimize name/prefix allocation */ ; 761 : name = xmlSplitQName(ctxt, fullname, &prefix); lea edx, DWORD PTR _prefix$[ebp] push edx mov eax, DWORD PTR _fullname$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlSplitQName add esp, 12 ; 0000000cH mov DWORD PTR _name$[ebp], eax ; 762 : ctxt->vctxt.valid = 1; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+144], 1 ; 763 : if (ctxt->inSubset == 1) mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+216], 1 jne SHORT $LN5@xmlSAX2Att ; 764 : attr = xmlAddAttributeDecl(&ctxt->vctxt, ctxt->myDoc->intSubset, elem, mov ecx, DWORD PTR _tree$[ebp] push ecx mov edx, DWORD PTR _defaultValue$[ebp] push edx mov eax, DWORD PTR _def$[ebp] push eax mov ecx, DWORD PTR _type$[ebp] push ecx mov edx, DWORD PTR _prefix$[ebp] push edx mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] mov ecx, DWORD PTR [eax+44] push ecx mov edx, DWORD PTR _ctxt$[ebp] add edx, 108 ; 0000006cH push edx call _xmlAddAttributeDecl add esp, 36 ; 00000024H mov DWORD PTR _attr$[ebp], eax jmp SHORT $LN6@xmlSAX2Att $LN5@xmlSAX2Att: ; 765 : name, prefix, (xmlAttributeType) type, ; 766 : (xmlAttributeDefault) def, defaultValue, tree); ; 767 : else if (ctxt->inSubset == 2) mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+216], 2 jne SHORT $LN7@xmlSAX2Att ; 768 : attr = xmlAddAttributeDecl(&ctxt->vctxt, ctxt->myDoc->extSubset, elem, mov ecx, DWORD PTR _tree$[ebp] push ecx mov edx, DWORD PTR _defaultValue$[ebp] push edx mov eax, DWORD PTR _def$[ebp] push eax mov ecx, DWORD PTR _type$[ebp] push ecx mov edx, DWORD PTR _prefix$[ebp] push edx mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] mov ecx, DWORD PTR [eax+48] push ecx mov edx, DWORD PTR _ctxt$[ebp] add edx, 108 ; 0000006cH push edx call _xmlAddAttributeDecl add esp, 36 ; 00000024H mov DWORD PTR _attr$[ebp], eax jmp SHORT $LN6@xmlSAX2Att $LN7@xmlSAX2Att: ; 769 : name, prefix, (xmlAttributeType) type, ; 770 : (xmlAttributeDefault) def, defaultValue, tree); ; 771 : else { ; 772 : xmlFatalErrMsg(ctxt, XML_ERR_INTERNAL_ERROR, push 0 mov eax, DWORD PTR _name$[ebp] push eax push OFFSET ??_C@_0DJ@CKOJIFJI@SAX?4xmlSAX2AttributeDecl?$CI?$CFs?$CJ?5ca@ push 1 mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlFatalErrMsg add esp, 20 ; 00000014H ; 773 : "SAX.xmlSAX2AttributeDecl(%s) called while not in subset\n", ; 774 : name, NULL); ; 775 : xmlFreeEnumeration(tree); mov edx, DWORD PTR _tree$[ebp] push edx call _xmlFreeEnumeration add esp, 4 ; 776 : return; jmp $LN1@xmlSAX2Att $LN6@xmlSAX2Att: ; 777 : } ; 778 : #ifdef LIBXML_VALID_ENABLED ; 779 : if (ctxt->vctxt.valid == 0) mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+144], 0 jne SHORT $LN9@xmlSAX2Att ; 780 : ctxt->valid = 0; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+100], 0 $LN9@xmlSAX2Att: ; 781 : if ((attr != NULL) && (ctxt->validate) && (ctxt->wellFormed) && cmp DWORD PTR _attr$[ebp], 0 je SHORT $LN10@xmlSAX2Att mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+104], 0 je SHORT $LN10@xmlSAX2Att mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+12], 0 je SHORT $LN10@xmlSAX2Att mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] cmp DWORD PTR [edx+44], 0 je SHORT $LN10@xmlSAX2Att ; 782 : (ctxt->myDoc->intSubset != NULL)) ; 783 : ctxt->valid &= xmlValidateAttributeDecl(&ctxt->vctxt, ctxt->myDoc, mov eax, DWORD PTR _attr$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _ctxt$[ebp] add eax, 108 ; 0000006cH push eax call _xmlValidateAttributeDecl add esp, 12 ; 0000000cH mov ecx, DWORD PTR _ctxt$[ebp] and eax, DWORD PTR [ecx+100] mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+100], eax $LN10@xmlSAX2Att: ; 784 : attr); ; 785 : #endif /* LIBXML_VALID_ENABLED */ ; 786 : if (prefix != NULL) cmp DWORD PTR _prefix$[ebp], 0 je SHORT $LN11@xmlSAX2Att ; 787 : xmlFree(prefix); mov esi, esp mov eax, DWORD PTR _prefix$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN11@xmlSAX2Att: ; 788 : if (name != NULL) cmp DWORD PTR _name$[ebp], 0 je SHORT $LN1@xmlSAX2Att ; 789 : xmlFree(name); mov esi, esp mov ecx, DWORD PTR _name$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN1@xmlSAX2Att: ; 790 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN16@xmlSAX2Att call @_RTC_CheckStackVars@8 pop eax pop edx pop esi add esp, 28 ; 0000001cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 $LN16@xmlSAX2Att: DD 1 DD $LN15@xmlSAX2Att $LN15@xmlSAX2Att: DD -20 ; ffffffecH DD 4 DD $LN14@xmlSAX2Att $LN14@xmlSAX2Att: DB 112 ; 00000070H DB 114 ; 00000072H DB 101 ; 00000065H DB 102 ; 00000066H DB 105 ; 00000069H DB 120 ; 00000078H DB 0 _xmlSAX2AttributeDecl ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2EntityDecl _TEXT SEGMENT _base$1 = -24 ; size = 4 _URI$2 = -20 ; size = 4 _base$3 = -16 ; size = 4 _URI$4 = -12 ; size = 4 _ctxt$ = -8 ; size = 4 _ent$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _name$ = 12 ; size = 4 _type$ = 16 ; size = 4 _publicId$ = 20 ; size = 4 _systemId$ = 24 ; size = 4 _content$ = 28 ; size = 4 _xmlSAX2EntityDecl PROC ; COMDAT ; 666 : { push ebp mov ebp, esp sub esp, 24 ; 00000018H push esi mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 667 : xmlEntityPtr ent; ; 668 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 669 : ; 670 : if (ctx == NULL) return; cmp DWORD PTR _ctx$[ebp], 0 jne SHORT $LN2@xmlSAX2Ent jmp $LN1@xmlSAX2Ent $LN2@xmlSAX2Ent: ; 671 : #ifdef DEBUG_SAX ; 672 : xmlGenericError(xmlGenericErrorContext, ; 673 : "SAX.xmlSAX2EntityDecl(%s, %d, %s, %s, %s)\n", ; 674 : name, type, publicId, systemId, content); ; 675 : #endif ; 676 : if (ctxt->inSubset == 1) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+216], 1 jne $LN3@xmlSAX2Ent ; 677 : ent = xmlAddDocEntity(ctxt->myDoc, name, type, publicId, mov edx, DWORD PTR _content$[ebp] push edx mov eax, DWORD PTR _systemId$[ebp] push eax mov ecx, DWORD PTR _publicId$[ebp] push ecx mov edx, DWORD PTR _type$[ebp] push edx mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlAddDocEntity add esp, 24 ; 00000018H mov DWORD PTR _ent$[ebp], eax ; 678 : systemId, content); ; 679 : if ((ent == NULL) && (ctxt->pedantic)) cmp DWORD PTR _ent$[ebp], 0 jne SHORT $LN5@xmlSAX2Ent mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+268], 0 je SHORT $LN5@xmlSAX2Ent ; 680 : xmlWarnMsg(ctxt, XML_WAR_ENTITY_REDEFINED, mov ecx, DWORD PTR _name$[ebp] push ecx push OFFSET ??_C@_0DD@GCBFDMPE@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@ push 107 ; 0000006bH mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlWarnMsg add esp, 16 ; 00000010H $LN5@xmlSAX2Ent: ; 681 : "Entity(%s) already defined in the internal subset\n", ; 682 : name); ; 683 : if ((ent != NULL) && (ent->URI == NULL) && (systemId != NULL)) { cmp DWORD PTR _ent$[ebp], 0 je SHORT $LN6@xmlSAX2Ent mov eax, DWORD PTR _ent$[ebp] cmp DWORD PTR [eax+64], 0 jne SHORT $LN6@xmlSAX2Ent cmp DWORD PTR _systemId$[ebp], 0 je SHORT $LN6@xmlSAX2Ent ; 684 : xmlChar *URI; ; 685 : const char *base = NULL; mov DWORD PTR _base$3[ebp], 0 ; 686 : ; 687 : if (ctxt->input != NULL) mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+36], 0 je SHORT $LN7@xmlSAX2Ent ; 688 : base = ctxt->input->filename; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+36] mov ecx, DWORD PTR [eax+4] mov DWORD PTR _base$3[ebp], ecx $LN7@xmlSAX2Ent: ; 689 : if (base == NULL) cmp DWORD PTR _base$3[ebp], 0 jne SHORT $LN8@xmlSAX2Ent ; 690 : base = ctxt->directory; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+180] mov DWORD PTR _base$3[ebp], eax $LN8@xmlSAX2Ent: ; 691 : ; 692 : URI = xmlBuildURI(systemId, (const xmlChar *) base); mov ecx, DWORD PTR _base$3[ebp] push ecx mov edx, DWORD PTR _systemId$[ebp] push edx call _xmlBuildURI add esp, 8 mov DWORD PTR _URI$4[ebp], eax ; 693 : ent->URI = URI; mov eax, DWORD PTR _ent$[ebp] mov ecx, DWORD PTR _URI$4[ebp] mov DWORD PTR [eax+64], ecx $LN6@xmlSAX2Ent: ; 694 : } jmp $LN1@xmlSAX2Ent $LN3@xmlSAX2Ent: ; 695 : } else if (ctxt->inSubset == 2) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+216], 2 jne $LN9@xmlSAX2Ent ; 696 : ent = xmlAddDtdEntity(ctxt->myDoc, name, type, publicId, mov eax, DWORD PTR _content$[ebp] push eax mov ecx, DWORD PTR _systemId$[ebp] push ecx mov edx, DWORD PTR _publicId$[ebp] push edx mov eax, DWORD PTR _type$[ebp] push eax mov ecx, DWORD PTR _name$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlAddDtdEntity add esp, 24 ; 00000018H mov DWORD PTR _ent$[ebp], eax ; 697 : systemId, content); ; 698 : if ((ent == NULL) && (ctxt->pedantic) && ; 699 : (ctxt->sax != NULL) && (ctxt->sax->warning != NULL)) cmp DWORD PTR _ent$[ebp], 0 jne SHORT $LN11@xmlSAX2Ent mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+268], 0 je SHORT $LN11@xmlSAX2Ent mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx], 0 je SHORT $LN11@xmlSAX2Ent mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax] cmp DWORD PTR [ecx+84], 0 je SHORT $LN11@xmlSAX2Ent ; 700 : ctxt->sax->warning(ctxt->userData, mov esi, esp mov edx, DWORD PTR _name$[ebp] push edx push OFFSET ??_C@_0DD@ECLLADNP@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@ mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+4] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx] mov ecx, DWORD PTR [eax+84] call ecx add esp, 12 ; 0000000cH cmp esi, esp call __RTC_CheckEsp $LN11@xmlSAX2Ent: ; 701 : "Entity(%s) already defined in the external subset\n", name); ; 702 : if ((ent != NULL) && (ent->URI == NULL) && (systemId != NULL)) { cmp DWORD PTR _ent$[ebp], 0 je SHORT $LN12@xmlSAX2Ent mov edx, DWORD PTR _ent$[ebp] cmp DWORD PTR [edx+64], 0 jne SHORT $LN12@xmlSAX2Ent cmp DWORD PTR _systemId$[ebp], 0 je SHORT $LN12@xmlSAX2Ent ; 703 : xmlChar *URI; ; 704 : const char *base = NULL; mov DWORD PTR _base$1[ebp], 0 ; 705 : ; 706 : if (ctxt->input != NULL) mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+36], 0 je SHORT $LN13@xmlSAX2Ent ; 707 : base = ctxt->input->filename; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+36] mov eax, DWORD PTR [edx+4] mov DWORD PTR _base$1[ebp], eax $LN13@xmlSAX2Ent: ; 708 : if (base == NULL) cmp DWORD PTR _base$1[ebp], 0 jne SHORT $LN14@xmlSAX2Ent ; 709 : base = ctxt->directory; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+180] mov DWORD PTR _base$1[ebp], edx $LN14@xmlSAX2Ent: ; 710 : ; 711 : URI = xmlBuildURI(systemId, (const xmlChar *) base); mov eax, DWORD PTR _base$1[ebp] push eax mov ecx, DWORD PTR _systemId$[ebp] push ecx call _xmlBuildURI add esp, 8 mov DWORD PTR _URI$2[ebp], eax ; 712 : ent->URI = URI; mov edx, DWORD PTR _ent$[ebp] mov eax, DWORD PTR _URI$2[ebp] mov DWORD PTR [edx+64], eax $LN12@xmlSAX2Ent: ; 713 : } ; 714 : } else { jmp SHORT $LN1@xmlSAX2Ent $LN9@xmlSAX2Ent: ; 715 : xmlFatalErrMsg(ctxt, XML_ERR_ENTITY_PROCESSING, push 0 mov ecx, DWORD PTR _name$[ebp] push ecx push OFFSET ??_C@_0DG@EGJGBEOC@SAX?4xmlSAX2EntityDecl?$CI?$CFs?$CJ?5calle@ push 104 ; 00000068H mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlFatalErrMsg add esp, 20 ; 00000014H $LN1@xmlSAX2Ent: ; 716 : "SAX.xmlSAX2EntityDecl(%s) called while not in subset\n", ; 717 : name, NULL); ; 718 : } ; 719 : } pop esi add esp, 24 ; 00000018H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2EntityDecl ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2ResolveEntity _TEXT SEGMENT _base$ = -16 ; size = 4 _URI$ = -12 ; size = 4 _ret$ = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _publicId$ = 12 ; size = 4 _systemId$ = 16 ; size = 4 _xmlSAX2ResolveEntity PROC ; COMDAT ; 520 : { push ebp mov ebp, esp sub esp, 16 ; 00000010H push esi mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 521 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 522 : xmlParserInputPtr ret; ; 523 : xmlChar *URI; ; 524 : const char *base = NULL; mov DWORD PTR _base$[ebp], 0 ; 525 : ; 526 : if (ctx == NULL) return(NULL); cmp DWORD PTR _ctx$[ebp], 0 jne SHORT $LN2@xmlSAX2Res xor eax, eax jmp SHORT $LN1@xmlSAX2Res $LN2@xmlSAX2Res: ; 527 : if (ctxt->input != NULL) mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+36], 0 je SHORT $LN3@xmlSAX2Res ; 528 : base = ctxt->input->filename; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+36] mov ecx, DWORD PTR [eax+4] mov DWORD PTR _base$[ebp], ecx $LN3@xmlSAX2Res: ; 529 : if (base == NULL) cmp DWORD PTR _base$[ebp], 0 jne SHORT $LN4@xmlSAX2Res ; 530 : base = ctxt->directory; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+180] mov DWORD PTR _base$[ebp], eax $LN4@xmlSAX2Res: ; 531 : ; 532 : URI = xmlBuildURI(systemId, (const xmlChar *) base); mov ecx, DWORD PTR _base$[ebp] push ecx mov edx, DWORD PTR _systemId$[ebp] push edx call _xmlBuildURI add esp, 8 mov DWORD PTR _URI$[ebp], eax ; 533 : ; 534 : #ifdef DEBUG_SAX ; 535 : xmlGenericError(xmlGenericErrorContext, ; 536 : "SAX.xmlSAX2ResolveEntity(%s, %s)\n", publicId, systemId); ; 537 : #endif ; 538 : ; 539 : ret = xmlLoadExternalEntity((const char *) URI, mov eax, DWORD PTR _ctxt$[ebp] push eax mov ecx, DWORD PTR _publicId$[ebp] push ecx mov edx, DWORD PTR _URI$[ebp] push edx call _xmlLoadExternalEntity add esp, 12 ; 0000000cH mov DWORD PTR _ret$[ebp], eax ; 540 : (const char *) publicId, ctxt); ; 541 : if (URI != NULL) cmp DWORD PTR _URI$[ebp], 0 je SHORT $LN5@xmlSAX2Res ; 542 : xmlFree(URI); mov esi, esp mov eax, DWORD PTR _URI$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN5@xmlSAX2Res: ; 543 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlSAX2Res: ; 544 : } pop esi add esp, 16 ; 00000010H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2ResolveEntity ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2GetParameterEntity _TEXT SEGMENT _ret$ = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlSAX2GetParameterEntity PROC ; COMDAT ; 637 : { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 638 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 639 : xmlEntityPtr ret; ; 640 : ; 641 : if (ctx == NULL) return(NULL); cmp DWORD PTR _ctx$[ebp], 0 jne SHORT $LN2@xmlSAX2Get xor eax, eax jmp SHORT $LN1@xmlSAX2Get $LN2@xmlSAX2Get: ; 642 : #ifdef DEBUG_SAX ; 643 : xmlGenericError(xmlGenericErrorContext, ; 644 : "SAX.xmlSAX2GetParameterEntity(%s)\n", name); ; 645 : #endif ; 646 : ; 647 : ret = xmlGetParameterEntity(ctxt->myDoc, name); mov ecx, DWORD PTR _name$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlGetParameterEntity add esp, 8 mov DWORD PTR _ret$[ebp], eax ; 648 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlSAX2Get: ; 649 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2GetParameterEntity ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2GetEntity _TEXT SEGMENT _oldnbent$1 = -28 ; size = 4 _children$2 = -20 ; size = 4 _val$3 = -12 ; size = 4 _ret$ = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlSAX2GetEntity PROC ; COMDAT ; 557 : { push ebp mov ebp, esp sub esp, 28 ; 0000001cH mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-28], eax mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 558 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 559 : xmlEntityPtr ret = NULL; mov DWORD PTR _ret$[ebp], 0 ; 560 : ; 561 : if (ctx == NULL) return(NULL); cmp DWORD PTR _ctx$[ebp], 0 jne SHORT $LN2@xmlSAX2Get xor eax, eax jmp $LN1@xmlSAX2Get $LN2@xmlSAX2Get: ; 562 : #ifdef DEBUG_SAX ; 563 : xmlGenericError(xmlGenericErrorContext, ; 564 : "SAX.xmlSAX2GetEntity(%s)\n", name); ; 565 : #endif ; 566 : ; 567 : if (ctxt->inSubset == 0) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+216], 0 jne SHORT $LN3@xmlSAX2Get ; 568 : ret = xmlGetPredefinedEntity(name); mov edx, DWORD PTR _name$[ebp] push edx call _xmlGetPredefinedEntity add esp, 4 mov DWORD PTR _ret$[ebp], eax ; 569 : if (ret != NULL) cmp DWORD PTR _ret$[ebp], 0 je SHORT $LN3@xmlSAX2Get ; 570 : return(ret); mov eax, DWORD PTR _ret$[ebp] jmp $LN1@xmlSAX2Get $LN3@xmlSAX2Get: ; 571 : } ; 572 : if ((ctxt->myDoc != NULL) && (ctxt->myDoc->standalone == 1)) { mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+8], 0 je $LN5@xmlSAX2Get mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] cmp DWORD PTR [edx+40], 1 jne $LN5@xmlSAX2Get ; 573 : if (ctxt->inSubset == 2) { mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+216], 2 jne SHORT $LN7@xmlSAX2Get ; 574 : ctxt->myDoc->standalone = 0; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] mov DWORD PTR [edx+40], 0 ; 575 : ret = xmlGetDocEntity(ctxt->myDoc, name); mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlGetDocEntity add esp, 8 mov DWORD PTR _ret$[ebp], eax ; 576 : ctxt->myDoc->standalone = 1; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] mov DWORD PTR [ecx+40], 1 ; 577 : } else { jmp SHORT $LN8@xmlSAX2Get $LN7@xmlSAX2Get: ; 578 : ret = xmlGetDocEntity(ctxt->myDoc, name); mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlGetDocEntity add esp, 8 mov DWORD PTR _ret$[ebp], eax ; 579 : if (ret == NULL) { cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN8@xmlSAX2Get ; 580 : ctxt->myDoc->standalone = 0; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] mov DWORD PTR [eax+40], 0 ; 581 : ret = xmlGetDocEntity(ctxt->myDoc, name); mov ecx, DWORD PTR _name$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlGetDocEntity add esp, 8 mov DWORD PTR _ret$[ebp], eax ; 582 : if (ret != NULL) { cmp DWORD PTR _ret$[ebp], 0 je SHORT $LN10@xmlSAX2Get ; 583 : xmlFatalErrMsg(ctxt, XML_ERR_NOT_STANDALONE, push 0 mov ecx, DWORD PTR _name$[ebp] push ecx push OFFSET ??_C@_0EE@PPDHKGIC@Entity?$CI?$CFs?$CJ?5document?5marked?5stan@ push 103 ; 00000067H mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlFatalErrMsg add esp, 20 ; 00000014H $LN10@xmlSAX2Get: ; 584 : "Entity(%s) document marked standalone but requires external subset\n", ; 585 : name, NULL); ; 586 : } ; 587 : ctxt->myDoc->standalone = 1; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] mov DWORD PTR [ecx+40], 1 $LN8@xmlSAX2Get: ; 588 : } ; 589 : } ; 590 : } else { jmp SHORT $LN6@xmlSAX2Get $LN5@xmlSAX2Get: ; 591 : ret = xmlGetDocEntity(ctxt->myDoc, name); mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlGetDocEntity add esp, 8 mov DWORD PTR _ret$[ebp], eax $LN6@xmlSAX2Get: ; 592 : } ; 593 : if ((ret != NULL) && ; 594 : ((ctxt->validate) || (ctxt->replaceEntities)) && ; 595 : (ret->children == NULL) && cmp DWORD PTR _ret$[ebp], 0 je $LN11@xmlSAX2Get mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+104], 0 jne SHORT $LN12@xmlSAX2Get mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+16], 0 je $LN11@xmlSAX2Get $LN12@xmlSAX2Get: mov ecx, DWORD PTR _ret$[ebp] cmp DWORD PTR [ecx+12], 0 jne $LN11@xmlSAX2Get mov edx, DWORD PTR _ret$[ebp] cmp DWORD PTR [edx+48], 2 jne $LN11@xmlSAX2Get ; 596 : (ret->etype == XML_EXTERNAL_GENERAL_PARSED_ENTITY)) { ; 597 : int val; ; 598 : ; 599 : /* ; 600 : * for validation purposes we really need to fetch and ; 601 : * parse the external entity ; 602 : */ ; 603 : xmlNodePtr children; ; 604 : unsigned long oldnbent = ctxt->nbentities; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+440] mov DWORD PTR _oldnbent$1[ebp], ecx ; 605 : ; 606 : val = xmlParseCtxtExternalEntity(ctxt, ret->URI, lea edx, DWORD PTR _children$2[ebp] push edx mov eax, DWORD PTR _ret$[ebp] mov ecx, DWORD PTR [eax+52] push ecx mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR [edx+64] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlParseCtxtExternalEntity add esp, 16 ; 00000010H mov DWORD PTR _val$3[ebp], eax ; 607 : ret->ExternalID, &children); ; 608 : if (val == 0) { cmp DWORD PTR _val$3[ebp], 0 jne SHORT $LN13@xmlSAX2Get ; 609 : xmlAddChildList((xmlNodePtr) ret, children); mov edx, DWORD PTR _children$2[ebp] push edx mov eax, DWORD PTR _ret$[ebp] push eax call _xmlAddChildList add esp, 8 ; 610 : } else { jmp SHORT $LN14@xmlSAX2Get $LN13@xmlSAX2Get: ; 611 : xmlFatalErrMsg(ctxt, XML_ERR_ENTITY_PROCESSING, push 0 mov ecx, DWORD PTR _name$[ebp] push ecx push OFFSET ??_C@_0BO@LDENBHGA@Failure?5to?5process?5entity?5?$CFs?6@ push 104 ; 00000068H mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlFatalErrMsg add esp, 20 ; 00000014H ; 612 : "Failure to process entity %s\n", name, NULL); ; 613 : ctxt->validate = 0; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+104], 0 ; 614 : return(NULL); xor eax, eax jmp SHORT $LN1@xmlSAX2Get $LN14@xmlSAX2Get: ; 615 : } ; 616 : ret->owner = 1; mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+68], 1 ; 617 : if (ret->checked == 0) { mov edx, DWORD PTR _ret$[ebp] cmp DWORD PTR [edx+72], 0 jne SHORT $LN11@xmlSAX2Get ; 618 : ret->checked = (ctxt->nbentities - oldnbent + 1) * 2; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+440] sub ecx, DWORD PTR _oldnbent$1[ebp] lea edx, DWORD PTR [ecx+ecx+2] mov eax, DWORD PTR _ret$[ebp] mov DWORD PTR [eax+72], edx ; 619 : if ((ret->content != NULL) && (xmlStrchr(ret->content, '<'))) mov ecx, DWORD PTR _ret$[ebp] cmp DWORD PTR [ecx+40], 0 je SHORT $LN11@xmlSAX2Get push 60 ; 0000003cH mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR [edx+40] push eax call _xmlStrchr add esp, 8 test eax, eax je SHORT $LN11@xmlSAX2Get ; 620 : ret->checked |= 1; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR [ecx+72] or edx, 1 mov eax, DWORD PTR _ret$[ebp] mov DWORD PTR [eax+72], edx $LN11@xmlSAX2Get: ; 621 : } ; 622 : } ; 623 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlSAX2Get: ; 624 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN20@xmlSAX2Get call @_RTC_CheckStackVars@8 pop eax pop edx add esp, 28 ; 0000001cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 3 $LN20@xmlSAX2Get: DD 1 DD $LN19@xmlSAX2Get $LN19@xmlSAX2Get: DD -20 ; ffffffecH DD 4 DD $LN18@xmlSAX2Get $LN18@xmlSAX2Get: DB 99 ; 00000063H DB 104 ; 00000068H DB 105 ; 00000069H DB 108 ; 0000006cH DB 100 ; 00000064H DB 114 ; 00000072H DB 101 ; 00000065H DB 110 ; 0000006eH DB 0 _xmlSAX2GetEntity ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2ExternalSubset _TEXT SEGMENT _oldencoding$1 = -36 ; size = 4 _oldcharset$2 = -32 ; size = 4 _enc$3 = -28 ; size = 4 _input$4 = -24 ; size = 4 _oldinputTab$5 = -20 ; size = 4 _oldinputMax$6 = -16 ; size = 4 _oldinputNr$7 = -12 ; size = 4 _oldinput$8 = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _name$ = 12 ; size = 4 _ExternalID$ = 16 ; size = 4 _SystemID$ = 20 ; size = 4 _xmlSAX2ExternalSubset PROC ; COMDAT ; 394 : { push ebp mov ebp, esp sub esp, 36 ; 00000024H push esi mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-36], eax mov DWORD PTR [ebp-32], eax mov DWORD PTR [ebp-28], eax mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 395 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 396 : if (ctx == NULL) return; cmp DWORD PTR _ctx$[ebp], 0 jne SHORT $LN4@xmlSAX2Ext jmp $LN1@xmlSAX2Ext $LN4@xmlSAX2Ext: ; 397 : #ifdef DEBUG_SAX ; 398 : xmlGenericError(xmlGenericErrorContext, ; 399 : "SAX.xmlSAX2ExternalSubset(%s, %s, %s)\n", ; 400 : name, ExternalID, SystemID); ; 401 : #endif ; 402 : if (((ExternalID != NULL) || (SystemID != NULL)) && cmp DWORD PTR _ExternalID$[ebp], 0 jne SHORT $LN6@xmlSAX2Ext cmp DWORD PTR _SystemID$[ebp], 0 je $LN1@xmlSAX2Ext $LN6@xmlSAX2Ext: mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+104], 0 jne SHORT $LN7@xmlSAX2Ext mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+276], 0 je $LN1@xmlSAX2Ext $LN7@xmlSAX2Ext: mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+12], 0 je $LN1@xmlSAX2Ext mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+8], 0 je $LN1@xmlSAX2Ext ; 403 : (((ctxt->validate) || (ctxt->loadsubset != 0)) && ; 404 : (ctxt->wellFormed && ctxt->myDoc))) { ; 405 : /* ; 406 : * Try to fetch and parse the external subset. ; 407 : */ ; 408 : xmlParserInputPtr oldinput; ; 409 : int oldinputNr; ; 410 : int oldinputMax; ; 411 : xmlParserInputPtr *oldinputTab; ; 412 : xmlParserInputPtr input = NULL; mov DWORD PTR _input$4[ebp], 0 ; 413 : xmlCharEncoding enc; ; 414 : int oldcharset; ; 415 : const xmlChar *oldencoding; ; 416 : ; 417 : /* ; 418 : * Ask the Entity resolver to load the damn thing ; 419 : */ ; 420 : if ((ctxt->sax != NULL) && (ctxt->sax->resolveEntity != NULL)) mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx], 0 je SHORT $LN8@xmlSAX2Ext mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax] cmp DWORD PTR [ecx+16], 0 je SHORT $LN8@xmlSAX2Ext ; 421 : input = ctxt->sax->resolveEntity(ctxt->userData, ExternalID, mov esi, esp mov edx, DWORD PTR _SystemID$[ebp] push edx mov eax, DWORD PTR _ExternalID$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+4] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax] mov edx, DWORD PTR [ecx+16] call edx add esp, 12 ; 0000000cH cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _input$4[ebp], eax $LN8@xmlSAX2Ext: ; 422 : SystemID); ; 423 : if (input == NULL) { cmp DWORD PTR _input$4[ebp], 0 jne SHORT $LN9@xmlSAX2Ext ; 424 : return; jmp $LN1@xmlSAX2Ext $LN9@xmlSAX2Ext: ; 425 : } ; 426 : ; 427 : xmlNewDtd(ctxt->myDoc, name, ExternalID, SystemID); mov eax, DWORD PTR _SystemID$[ebp] push eax mov ecx, DWORD PTR _ExternalID$[ebp] push ecx mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlNewDtd add esp, 16 ; 00000010H ; 428 : ; 429 : /* ; 430 : * make sure we won't destroy the main document context ; 431 : */ ; 432 : oldinput = ctxt->input; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+36] mov DWORD PTR _oldinput$8[ebp], eax ; 433 : oldinputNr = ctxt->inputNr; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+40] mov DWORD PTR _oldinputNr$7[ebp], edx ; 434 : oldinputMax = ctxt->inputMax; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+44] mov DWORD PTR _oldinputMax$6[ebp], ecx ; 435 : oldinputTab = ctxt->inputTab; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+48] mov DWORD PTR _oldinputTab$5[ebp], eax ; 436 : oldcharset = ctxt->charset; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+256] mov DWORD PTR _oldcharset$2[ebp], edx ; 437 : oldencoding = ctxt->encoding; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+24] mov DWORD PTR _oldencoding$1[ebp], ecx ; 438 : ctxt->encoding = NULL; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+24], 0 ; 439 : ; 440 : ctxt->inputTab = (xmlParserInputPtr *) mov esi, esp push 20 ; 00000014H call DWORD PTR _xmlMalloc add esp, 4 cmp esi, esp call __RTC_CheckEsp mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+48], eax ; 441 : xmlMalloc(5 * sizeof(xmlParserInputPtr)); ; 442 : if (ctxt->inputTab == NULL) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+48], 0 jne SHORT $LN10@xmlSAX2Ext ; 443 : xmlSAX2ErrMemory(ctxt, "xmlSAX2ExternalSubset"); push OFFSET ??_C@_0BG@NJCKJHBI@xmlSAX2ExternalSubset@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlSAX2ErrMemory add esp, 8 ; 444 : ctxt->input = oldinput; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR _oldinput$8[ebp] mov DWORD PTR [ecx+36], edx ; 445 : ctxt->inputNr = oldinputNr; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR _oldinputNr$7[ebp] mov DWORD PTR [eax+40], ecx ; 446 : ctxt->inputMax = oldinputMax; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR _oldinputMax$6[ebp] mov DWORD PTR [edx+44], eax ; 447 : ctxt->inputTab = oldinputTab; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR _oldinputTab$5[ebp] mov DWORD PTR [ecx+48], edx ; 448 : ctxt->charset = oldcharset; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR _oldcharset$2[ebp] mov DWORD PTR [eax+256], ecx ; 449 : ctxt->encoding = oldencoding; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR _oldencoding$1[ebp] mov DWORD PTR [edx+24], eax ; 450 : return; jmp $LN1@xmlSAX2Ext $LN10@xmlSAX2Ext: ; 451 : } ; 452 : ctxt->inputNr = 0; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+40], 0 ; 453 : ctxt->inputMax = 5; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+44], 5 ; 454 : ctxt->input = NULL; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+36], 0 ; 455 : xmlPushInput(ctxt, input); mov ecx, DWORD PTR _input$4[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlPushInput add esp, 8 ; 456 : ; 457 : /* ; 458 : * On the fly encoding conversion if needed ; 459 : */ ; 460 : if (ctxt->input->length >= 4) { mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+36] cmp DWORD PTR [ecx+24], 4 jl SHORT $LN11@xmlSAX2Ext ; 461 : enc = xmlDetectCharEncoding(ctxt->input->cur, 4); push 4 mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+36] mov ecx, DWORD PTR [eax+16] push ecx call _xmlDetectCharEncoding add esp, 8 mov DWORD PTR _enc$3[ebp], eax ; 462 : xmlSwitchEncoding(ctxt, enc); mov edx, DWORD PTR _enc$3[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlSwitchEncoding add esp, 8 $LN11@xmlSAX2Ext: ; 463 : } ; 464 : ; 465 : if (input->filename == NULL) mov ecx, DWORD PTR _input$4[ebp] cmp DWORD PTR [ecx+4], 0 jne SHORT $LN12@xmlSAX2Ext ; 466 : input->filename = (char *) xmlCanonicPath(SystemID); mov edx, DWORD PTR _SystemID$[ebp] push edx call _xmlCanonicPath add esp, 4 mov ecx, DWORD PTR _input$4[ebp] mov DWORD PTR [ecx+4], eax $LN12@xmlSAX2Ext: ; 467 : input->line = 1; mov edx, DWORD PTR _input$4[ebp] mov DWORD PTR [edx+28], 1 ; 468 : input->col = 1; mov eax, DWORD PTR _input$4[ebp] mov DWORD PTR [eax+32], 1 ; 469 : input->base = ctxt->input->cur; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+36] mov eax, DWORD PTR _input$4[ebp] mov ecx, DWORD PTR [edx+16] mov DWORD PTR [eax+12], ecx ; 470 : input->cur = ctxt->input->cur; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+36] mov ecx, DWORD PTR _input$4[ebp] mov edx, DWORD PTR [eax+16] mov DWORD PTR [ecx+16], edx ; 471 : input->free = NULL; mov eax, DWORD PTR _input$4[ebp] mov DWORD PTR [eax+40], 0 ; 472 : ; 473 : /* ; 474 : * let's parse that entity knowing it's an external subset. ; 475 : */ ; 476 : xmlParseExternalSubset(ctxt, ExternalID, SystemID); mov ecx, DWORD PTR _SystemID$[ebp] push ecx mov edx, DWORD PTR _ExternalID$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlParseExternalSubset add esp, 12 ; 0000000cH $LN2@xmlSAX2Ext: ; 477 : ; 478 : /* ; 479 : * Free up the external entities ; 480 : */ ; 481 : ; 482 : while (ctxt->inputNr > 1) mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+40], 1 jle SHORT $LN3@xmlSAX2Ext ; 483 : xmlPopInput(ctxt); mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlPopInput add esp, 4 jmp SHORT $LN2@xmlSAX2Ext $LN3@xmlSAX2Ext: ; 484 : xmlFreeInputStream(ctxt->input); mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+36] push ecx call _xmlFreeInputStream add esp, 4 ; 485 : xmlFree(ctxt->inputTab); mov esi, esp mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+48] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 486 : ; 487 : /* ; 488 : * Restore the parsing context of the main entity ; 489 : */ ; 490 : ctxt->input = oldinput; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR _oldinput$8[ebp] mov DWORD PTR [ecx+36], edx ; 491 : ctxt->inputNr = oldinputNr; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR _oldinputNr$7[ebp] mov DWORD PTR [eax+40], ecx ; 492 : ctxt->inputMax = oldinputMax; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR _oldinputMax$6[ebp] mov DWORD PTR [edx+44], eax ; 493 : ctxt->inputTab = oldinputTab; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR _oldinputTab$5[ebp] mov DWORD PTR [ecx+48], edx ; 494 : ctxt->charset = oldcharset; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR _oldcharset$2[ebp] mov DWORD PTR [eax+256], ecx ; 495 : if ((ctxt->encoding != NULL) && mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+24], 0 je SHORT $LN13@xmlSAX2Ext mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+296], 0 je SHORT $LN14@xmlSAX2Ext mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+24] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+296] push ecx call _xmlDictOwns add esp, 8 test eax, eax jne SHORT $LN13@xmlSAX2Ext $LN14@xmlSAX2Ext: ; 496 : ((ctxt->dict == NULL) || ; 497 : (!xmlDictOwns(ctxt->dict, ctxt->encoding)))) ; 498 : xmlFree((xmlChar *) ctxt->encoding); mov esi, esp mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+24] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN13@xmlSAX2Ext: ; 499 : ctxt->encoding = oldencoding; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR _oldencoding$1[ebp] mov DWORD PTR [ecx+24], edx $LN1@xmlSAX2Ext: ; 500 : /* ctxt->wellFormed = oldwellFormed; */ ; 501 : } ; 502 : } pop esi add esp, 36 ; 00000024H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2ExternalSubset ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2InternalSubset _TEXT SEGMENT _dtd$ = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _name$ = 12 ; size = 4 _ExternalID$ = 16 ; size = 4 _SystemID$ = 20 ; size = 4 _xmlSAX2InternalSubset PROC ; COMDAT ; 356 : { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 357 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 358 : xmlDtdPtr dtd; ; 359 : if (ctx == NULL) return; cmp DWORD PTR _ctx$[ebp], 0 jne SHORT $LN2@xmlSAX2Int jmp $LN1@xmlSAX2Int $LN2@xmlSAX2Int: ; 360 : #ifdef DEBUG_SAX ; 361 : xmlGenericError(xmlGenericErrorContext, ; 362 : "SAX.xmlSAX2InternalSubset(%s, %s, %s)\n", ; 363 : name, ExternalID, SystemID); ; 364 : #endif ; 365 : ; 366 : if (ctxt->myDoc == NULL) mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+8], 0 jne SHORT $LN3@xmlSAX2Int ; 367 : return; jmp $LN1@xmlSAX2Int $LN3@xmlSAX2Int: ; 368 : dtd = xmlGetIntSubset(ctxt->myDoc); mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlGetIntSubset add esp, 4 mov DWORD PTR _dtd$[ebp], eax ; 369 : if (dtd != NULL) { cmp DWORD PTR _dtd$[ebp], 0 je SHORT $LN4@xmlSAX2Int ; 370 : if (ctxt->html) mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+32], 0 je SHORT $LN5@xmlSAX2Int ; 371 : return; jmp SHORT $LN1@xmlSAX2Int $LN5@xmlSAX2Int: ; 372 : xmlUnlinkNode((xmlNodePtr) dtd); mov edx, DWORD PTR _dtd$[ebp] push edx call _xmlUnlinkNode add esp, 4 ; 373 : xmlFreeDtd(dtd); mov eax, DWORD PTR _dtd$[ebp] push eax call _xmlFreeDtd add esp, 4 ; 374 : ctxt->myDoc->intSubset = NULL; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+8] mov DWORD PTR [edx+44], 0 $LN4@xmlSAX2Int: ; 375 : } ; 376 : ctxt->myDoc->intSubset = mov eax, DWORD PTR _SystemID$[ebp] push eax mov ecx, DWORD PTR _ExternalID$[ebp] push ecx mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlCreateIntSubset add esp, 16 ; 00000010H mov edx, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [edx+8] mov DWORD PTR [ecx+44], eax ; 377 : xmlCreateIntSubset(ctxt->myDoc, name, ExternalID, SystemID); ; 378 : if (ctxt->myDoc->intSubset == NULL) mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] cmp DWORD PTR [eax+44], 0 jne SHORT $LN1@xmlSAX2Int ; 379 : xmlSAX2ErrMemory(ctxt, "xmlSAX2InternalSubset"); push OFFSET ??_C@_0BG@CKPEJCG@xmlSAX2InternalSubset@ mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlSAX2ErrMemory add esp, 8 $LN1@xmlSAX2Int: ; 380 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2InternalSubset ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2HasExternalSubset _TEXT SEGMENT tv70 = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _xmlSAX2HasExternalSubset PROC ; COMDAT ; 338 : { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 339 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 340 : if ((ctxt == NULL) || (ctxt->myDoc == NULL)) return(0); cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN3@xmlSAX2Has mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+8], 0 jne SHORT $LN2@xmlSAX2Has $LN3@xmlSAX2Has: xor eax, eax jmp SHORT $LN1@xmlSAX2Has $LN2@xmlSAX2Has: ; 341 : return(ctxt->myDoc->extSubset != NULL); mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] cmp DWORD PTR [eax+48], 0 je SHORT $LN5@xmlSAX2Has mov DWORD PTR tv70[ebp], 1 jmp SHORT $LN6@xmlSAX2Has $LN5@xmlSAX2Has: mov DWORD PTR tv70[ebp], 0 $LN6@xmlSAX2Has: mov eax, DWORD PTR tv70[ebp] $LN1@xmlSAX2Has: ; 342 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2HasExternalSubset ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2HasInternalSubset _TEXT SEGMENT tv70 = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _xmlSAX2HasInternalSubset PROC ; COMDAT ; 322 : { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 323 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 324 : if ((ctxt == NULL) || (ctxt->myDoc == NULL)) return(0); cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN3@xmlSAX2Has mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+8], 0 jne SHORT $LN2@xmlSAX2Has $LN3@xmlSAX2Has: xor eax, eax jmp SHORT $LN1@xmlSAX2Has $LN2@xmlSAX2Has: ; 325 : return(ctxt->myDoc->intSubset != NULL); mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] cmp DWORD PTR [eax+44], 0 je SHORT $LN5@xmlSAX2Has mov DWORD PTR tv70[ebp], 1 jmp SHORT $LN6@xmlSAX2Has $LN5@xmlSAX2Has: mov DWORD PTR tv70[ebp], 0 $LN6@xmlSAX2Has: mov eax, DWORD PTR tv70[ebp] $LN1@xmlSAX2Has: ; 326 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2HasInternalSubset ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2IsStandalone _TEXT SEGMENT tv70 = -8 ; size = 4 _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _xmlSAX2IsStandalone PROC ; COMDAT ; 306 : { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 307 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 308 : if ((ctx == NULL) || (ctxt->myDoc == NULL)) return(0); cmp DWORD PTR _ctx$[ebp], 0 je SHORT $LN3@xmlSAX2IsS mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+8], 0 jne SHORT $LN2@xmlSAX2IsS $LN3@xmlSAX2IsS: xor eax, eax jmp SHORT $LN1@xmlSAX2IsS $LN2@xmlSAX2IsS: ; 309 : return(ctxt->myDoc->standalone == 1); mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+8] cmp DWORD PTR [eax+40], 1 jne SHORT $LN5@xmlSAX2IsS mov DWORD PTR tv70[ebp], 1 jmp SHORT $LN6@xmlSAX2IsS $LN5@xmlSAX2IsS: mov DWORD PTR tv70[ebp], 0 $LN6@xmlSAX2IsS: mov eax, DWORD PTR tv70[ebp] $LN1@xmlSAX2IsS: ; 310 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2IsStandalone ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2GetColumnNumber _TEXT SEGMENT _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _xmlSAX2GetColumnNumber PROC ; COMDAT ; 290 : { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 291 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 292 : if ((ctx == NULL) || (ctxt->input == NULL)) return(0); cmp DWORD PTR _ctx$[ebp], 0 je SHORT $LN3@xmlSAX2Get mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+36], 0 jne SHORT $LN2@xmlSAX2Get $LN3@xmlSAX2Get: xor eax, eax jmp SHORT $LN1@xmlSAX2Get $LN2@xmlSAX2Get: ; 293 : return(ctxt->input->col); mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+36] mov eax, DWORD PTR [eax+32] $LN1@xmlSAX2Get: ; 294 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2GetColumnNumber ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2GetLineNumber _TEXT SEGMENT _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _xmlSAX2GetLineNumber PROC ; COMDAT ; 274 : { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 275 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 276 : if ((ctx == NULL) || (ctxt->input == NULL)) return(0); cmp DWORD PTR _ctx$[ebp], 0 je SHORT $LN3@xmlSAX2Get mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+36], 0 jne SHORT $LN2@xmlSAX2Get $LN3@xmlSAX2Get: xor eax, eax jmp SHORT $LN1@xmlSAX2Get $LN2@xmlSAX2Get: ; 277 : return(ctxt->input->line); mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+36] mov eax, DWORD PTR [eax+28] $LN1@xmlSAX2Get: ; 278 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2GetLineNumber ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2SetDocumentLocator _TEXT SEGMENT _ctx$ = 8 ; size = 4 _loc$ = 12 ; size = 4 _xmlSAX2SetDocumentLocator PROC ; COMDAT ; 968 : { push ebp mov ebp, esp mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 969 : /* xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; */ ; 970 : #ifdef DEBUG_SAX ; 971 : xmlGenericError(xmlGenericErrorContext, ; 972 : "SAX.xmlSAX2SetDocumentLocator()\n"); ; 973 : #endif ; 974 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlSAX2SetDocumentLocator ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2GetSystemId _TEXT SEGMENT _ctxt$ = -4 ; size = 4 _ctx$ = 8 ; size = 4 _xmlSAX2GetSystemId PROC ; COMDAT ; 258 : { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 259 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; mov eax, DWORD PTR _ctx$[ebp] mov DWORD PTR _ctxt$[ebp], eax ; 260 : if ((ctx == NULL) || (ctxt->input == NULL)) return(NULL); cmp DWORD PTR _ctx$[ebp], 0 je SHORT $LN3@xmlSAX2Get mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+36], 0 jne SHORT $LN2@xmlSAX2Get $LN3@xmlSAX2Get: xor eax, eax jmp SHORT $LN1@xmlSAX2Get $LN2@xmlSAX2Get: ; 261 : return((const xmlChar *) ctxt->input->filename); mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+36] mov eax, DWORD PTR [eax+4] $LN1@xmlSAX2Get: ; 262 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlSAX2GetSystemId ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c ; COMDAT _xmlSAX2GetPublicId _TEXT SEGMENT _ctx$ = 8 ; size = 4 _xmlSAX2GetPublicId PROC ; COMDAT ; 242 : { push ebp mov ebp, esp mov ecx, OFFSET __A8525CDE_sax2@c call @__CheckForDebuggerJustMyCode@4 ; 243 : /* xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; */ ; 244 : return(NULL); xor eax, eax ; 245 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlSAX2GetPublicId ENDP _TEXT ENDS END
23.474661
173
0.656139
f343efb1e21f022958348aad3498587afb52704b
345
asm
Assembly
programs/oeis/052/A052683.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/052/A052683.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/052/A052683.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A052683: E.g.f. 2x^4/(1-x). ; 0,0,0,0,48,240,1440,10080,80640,725760,7257600,79833600,958003200,12454041600,174356582400,2615348736000,41845579776000,711374856192000,12804747411456000,243290200817664000 seq $0,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters). div $0,8 mul $0,16
49.285714
174
0.75942
86859dd917048d4be2d6c1810488b50a038e71df
499
asm
Assembly
oeis/049/A049863.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/049/A049863.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/049/A049863.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A049863: a(n)=Sum{a(k): k=0,1,2,...,n-4,n-2,n-1}; a(n-3) is not a summand; 3 initial terms required. ; Submitted by Jon Maiga ; 0,3,4,7,11,21,39,74,138,258,481,898,1676,3129,5841,10904,20355,37998,70933,132415,247187,461439,861396,1608020,3001788,5603619,10460614,19527460,36453089,68049183,127031520,237137411,442678728 mov $1,4 mov $2,1 mov $5,1 lpb $0 sub $0,1 sub $3,$4 add $1,$3 mov $3,$4 mov $4,$2 mov $2,$3 add $2,$1 sub $5,1 add $5,$4 mov $3,$5 lpe mov $0,$2 sub $0,1
22.681818
194
0.645291
b8f8761381e524cef5df39b9995b885cda354e6f
1,257
asm
Assembly
0x0c.asm
SpeedStepper/XchgRaxRax
24c1a47f8da2fab1e4c3ad62136b307c7fa5a6dc
[ "MIT" ]
53
2017-09-06T02:37:25.000Z
2022-03-10T05:17:06.000Z
0x0c.asm
uf0o/xorpd-solutions
3a84172f615533ffbd40124594db6d36baa6260a
[ "MIT" ]
2
2019-04-03T12:51:42.000Z
2020-12-10T13:58:14.000Z
0x0c.asm
uf0o/xorpd-solutions
3a84172f615533ffbd40124594db6d36baa6260a
[ "MIT" ]
21
2017-09-06T02:37:33.000Z
2022-03-10T05:17:09.000Z
; ; $Id: 0x0c.asm,v 1.1.1.1 2016/03/27 08:40:12 raptor Exp $ ; ; 0x0c explanation - from xchg rax,rax by xorpd@xorpd.net ; Copyright (c) 2016 Marco Ivaldi <raptor@0xdeadbeef.info> ; ; This snippet takes the value stored in rax and rcx, which ; is the same for both registers, and performs the following ; operations respectively: ; ; - rcx is first xor'ed with rbx and then rotated 13 ; positions to the right ; - rax is first rotated 13 positions to the right and then ; xor'ed with rbx which has been previously rotated 13 ; positions to the right as well. ; - Finally, the contents of rax and rcx are compared. They ; will be equal, regardless of their initial value and of ; the value of the mask contained in rbx, because of the ; associative property of xor and ror. ; ; This analysis was facilitated by the assembly REPL rappel ; by yrp604@yahoo.com: ; ; https://github.com/yrp604/rappel/ ; BITS 64 SECTION .text global main main: mov rcx,rax ; initialize rax and rcx with the same value xor rcx,rbx ; rcx = rcx ^ rbx ror rcx,0xd ; rotate rcx right 13 positions ror rax,0xd ; rotate rax right 13 positions ror rbx,0xd ; rotate rbx right 13 positions xor rax,rbx ; rax = rax ^ rbx cmp rax,rcx ; compare rax and rcx
30.658537
60
0.718377