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
100443f9d96265169e184cc37665eb7c11911b3b
509
asm
Assembly
programs/oeis/239/A239050.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/239/A239050.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/239/A239050.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A239050: a(n) = 4*sigma(n). ; 4,12,16,28,24,48,32,60,52,72,48,112,56,96,96,124,72,156,80,168,128,144,96,240,124,168,160,224,120,288,128,252,192,216,192,364,152,240,224,360,168,384,176,336,312,288,192,496,228,372,288,392,216,480,288,480,320,360,240,672,248,384,416,508,336,576,272,504,384,576,288,780,296,456,496,560,384,672,320,744,484,504,336,896,432,528,480,720,360,936,448,672,512,576,480,1008,392,684,624,868 seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n). mul $0,4
84.833333
384
0.705305
3d4b8e036b5b0d14334b6d32f5982a8ebcea15a8
2,653
asm
Assembly
examples/01_LED_receiver.asm
michaelguenter/assembler-serial-communication
ee3e3ba969841cd55ec6c7782f6bbb51dce02e6f
[ "MIT" ]
null
null
null
examples/01_LED_receiver.asm
michaelguenter/assembler-serial-communication
ee3e3ba969841cd55ec6c7782f6bbb51dce02e6f
[ "MIT" ]
null
null
null
examples/01_LED_receiver.asm
michaelguenter/assembler-serial-communication
ee3e3ba969841cd55ec6c7782f6bbb51dce02e6f
[ "MIT" ]
null
null
null
;+---------------------------------------------------------------------- ;| Title : myAVR Grundgerüst für ATmega8 ;+---------------------------------------------------------------------- ;| Funktion : Empfängt ein Byte mit einem Startbit ;| Schaltung : Taster an PortD2, Signalkabel an PortB0, Grüne LED an PortC0, Rote LED an PortC1 ;+---------------------------------------------------------------------- ;| Prozessor : ATmega8 ;| Takt : 3,6864 MHz ;| Sprache : Assembler ;| Datum : ... ;| Version : ... ;| Autor : ... ;+---------------------------------------------------------------------- .include "AVR.H" ;------------------------------------------------------------------------ ;Reset and Interrupt vector ;VNr. Beschreibung rjmp main ;1 POWER ON RESET reti ;2 Int0-Interrupt reti ;3 Int1-Interrupt reti ;4 TC2 Compare Match reti ;5 TC2 Overflow reti ;6 TC1 Capture reti ;7 TC1 Compare Match A reti ;8 TC1 Compare Match B reti ;9 TC1 Overflow reti ;10 TC0 Overflow reti ;11 SPI, STC Serial Transfer Complete reti ;12 UART Rx Complete reti ;13 UART Data Register Empty reti ;14 UART Tx Complete reti ;15 ADC Conversion Complete reti ;16 EEPROM Ready reti ;17 Analog Comparator reti ;18 TWI (I²C) Serial Interface reti ;19 Store Program Memory Ready ;------------------------------------------------------------------------ ;Start, Power ON, Reset main: ldi r16,lo8(RAMEND) out ioSPL,r16 ldi r16,hi8(RAMEND) out ioSPH,r16 ;Hier Init-Code eintragen. ldi R16,0 out ioDDRB,R16 ; Port B auf Input (Receive) sbi ioPORTB,0 ; Pull-Up des Receive ldi R16,0xff out ioDDRC,R16 ; Port C auf Output (LED) start: ldi R22,1 out ioPORTC,R22 startbit: sbis ioPINB,0 rjmp startbit ; Gehe weiter, sobald Startbit gesetzt ist ldi R18,0 ; Buffer clearen rcall wait ; Wait 1.5ms rcall wait rcall wait ldi R19,8 ; Counter auf 8 read: lsr R18 sbic ioPINB,0 ori R18,0b10000000 ; Wenn Bit auf der Leitung, dann MSB im Buffer setzen rcall wait ; Wait 1ms rcall wait dec R19 ; Decrement counter brne read ; Loop bis counter = 0 mov R17,R18 ; BUF in DEST cpi R17,1 breq shiftleft brne shiftright shiftleft: lsl R22 cpi R22,0b00001000 ; Drittes Bit wurde überschritten breq setbit1 brne writeled shiftright: lsr R22 cpi R22,0b00000000 ; Erstes Bit wurde unterschritten breq setbit3 brne writeled setbit1: ldi R22,0b00000001 rjmp writeled setbit3: ldi R22,0b00000100 rjmp writeled writeled: out ioPORTC,R22 rjmp startbit ; 0.5ms wait: ldi r20,3 ldi r21,100 wait1: dec r21 brne wait1 dec r20 brne wait1 ret
24.33945
95
0.584621
cbe19ed4545d31f3fdebe98f7a5a26b11343cee0
123,695
asm
Assembly
non_regression/other_x86_macosx_14.intel.s.asm
LRGH/plasmasm
4cd50546c3dc895763d72dd60b7c46179c1916bc
[ "Apache-2.0" ]
1
2021-02-28T21:31:18.000Z
2021-02-28T21:31:18.000Z
non_regression/other_x86_macosx_14.intel.s.asm
LRGH/plasmasm
4cd50546c3dc895763d72dd60b7c46179c1916bc
[ "Apache-2.0" ]
null
null
null
non_regression/other_x86_macosx_14.intel.s.asm
LRGH/plasmasm
4cd50546c3dc895763d72dd60b7c46179c1916bc
[ "Apache-2.0" ]
null
null
null
.intel_syntax noprefix .macosx_version_min 10, 13 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 # ---------------------- .globl _deflateInit_ _deflateInit_: push ebp mov ebp, esp sub esp, 8 push DWORD PTR [ebp+20] push DWORD PTR [ebp+16] push 0 push 8 push 15 push 8 push DWORD PTR [ebp+12] push DWORD PTR [ebp+8] call _deflateInit2_ add esp, 40 pop ebp ret # ---------------------- .p2align 4, 0x90 # ---------------------- .globl _deflateInit2_ _deflateInit2_: push ebp mov ebp, esp push ebx push edi push esi sub esp, 28 call L1$pb L1$pb: pop ecx mov eax, DWORD PTR [ebp+32] mov edi, -6 test eax, eax je LBB1_36 cmp DWORD PTR [ebp+36], 56 jne LBB1_36 cmp BYTE PTR [eax], 49 jne LBB1_36 mov esi, DWORD PTR [ebp+8] mov edi, -2 test esi, esi je LBB1_36 mov DWORD PTR [ebp-16], ecx mov eax, DWORD PTR [ebp+28] mov DWORD PTR [ebp-28], eax mov eax, DWORD PTR [ebp+24] mov DWORD PTR [ebp-20], eax mov eax, DWORD PTR [ebp+20] mov edx, DWORD PTR [ebp+16] mov edi, DWORD PTR [ebp+12] mov DWORD PTR [esi+24], 0 mov ecx, DWORD PTR [esi+32] test ecx, ecx jne LBB1_6 mov ecx, DWORD PTR [ebp-16] mov ecx, DWORD PTR [ecx + L_zcalloc$non_lazy_ptr-L1$pb] mov DWORD PTR [esi+32], ecx mov DWORD PTR [esi+40], 0 LBB1_6: cmp DWORD PTR [esi+36], 0 jne LBB1_8 mov ebx, DWORD PTR [ebp-16] mov ebx, DWORD PTR [ebx + L_zcfree$non_lazy_ptr-L1$pb] mov DWORD PTR [esi+36], ebx LBB1_8: cmp edi, -1 mov ebx, 6 cmovne ebx, edi mov DWORD PTR [ebp-24], ebx test eax, eax js LBB1_10 lea edi, [eax-16] xor ebx, ebx cmp eax, 15 setg bl cmovg eax, edi inc ebx jmp LBB1_11 LBB1_10: neg eax xor ebx, ebx LBB1_11: mov edi, -2 cmp DWORD PTR [ebp-28], 4 ja LBB1_36 cmp DWORD PTR [ebp-24], 9 ja LBB1_36 cmp edx, 8 jne LBB1_36 mov edx, DWORD PTR [ebp-20] dec edx cmp edx, 8 ja LBB1_36 mov edx, eax and edx, -8 cmp edx, 8 jne LBB1_36 cmp eax, 8 mov edx, 9 cmovne edx, eax mov DWORD PTR [ebp-32], edx sub esp, 4 push 5828 push 1 push DWORD PTR [esi+40] call ecx add esp, 16 mov edi, eax test edi, edi je LBB1_35 mov DWORD PTR [esi+28], edi mov DWORD PTR [edi], esi mov DWORD PTR [edi+24], ebx mov DWORD PTR [edi+28], 0 mov ecx, DWORD PTR [ebp-32] mov DWORD PTR [edi+48], ecx mov ebx, 1 shl ebx, cl mov DWORD PTR [edi+44], ebx lea eax, [ebx-1] mov DWORD PTR [edi+52], eax mov eax, DWORD PTR [ebp-20] lea ecx, [eax+7] mov edx, eax mov DWORD PTR [edi+80], ecx mov eax, 1 shl eax, cl mov DWORD PTR [edi+76], eax dec eax mov DWORD PTR [edi+84], eax lea eax, [edx+9] mov ecx, -1431655765 mul ecx shr edx, 1 mov DWORD PTR [edi+88], edx sub esp, 4 push 2 push ebx push DWORD PTR [esi+40] call DWORD PTR [esi+32] add esp, 16 mov DWORD PTR [edi+56], eax sub esp, 4 push 2 push DWORD PTR [edi+44] push DWORD PTR [esi+40] call DWORD PTR [esi+32] add esp, 16 mov DWORD PTR [edi+64], eax sub esp, 4 push 2 push DWORD PTR [edi+76] push DWORD PTR [esi+40] call DWORD PTR [esi+32] add esp, 16 mov DWORD PTR [edi+68], eax mov DWORD PTR [edi+5824], 0 mov ecx, DWORD PTR [ebp-20] add ecx, 6 mov eax, 1 shl eax, cl mov DWORD PTR [edi+5788], eax sub esp, 4 push 4 push eax push DWORD PTR [esi+40] call DWORD PTR [esi+32] add esp, 16 mov DWORD PTR [edi+8], eax mov ecx, DWORD PTR [edi+5788] lea edx, [0+ecx*4] mov DWORD PTR [edi+12], edx cmp DWORD PTR [edi+56], 0 je LBB1_22 cmp DWORD PTR [edi+64], 0 je LBB1_22 cmp DWORD PTR [edi+68], 0 je LBB1_22 test eax, eax je LBB1_22 mov edx, ecx and edx, -2 add edx, eax mov DWORD PTR [edi+5796], edx lea ecx, [ecx+ecx*2] add ecx, eax mov DWORD PTR [edi+5784], ecx mov eax, DWORD PTR [ebp-24] mov DWORD PTR [edi+132], eax mov eax, DWORD PTR [ebp-28] mov DWORD PTR [edi+136], eax mov BYTE PTR [edi+36], 8 add esp, 28 pop esi pop edi pop ebx pop ebp jmp _deflateReset LBB1_22: mov DWORD PTR [edi+4], 666 mov eax, DWORD PTR [ebp-16] mov eax, DWORD PTR [eax + L_z_errmsg$non_lazy_ptr-L1$pb] mov eax, DWORD PTR [eax+24] mov DWORD PTR [esi+24], eax mov eax, DWORD PTR [esi+28] test eax, eax je LBB1_35 mov ecx, DWORD PTR [eax+4] lea edx, [ecx-69] cmp edx, 44 mov edi, -4 ja LBB1_37 mov ecx, DWORD PTR [ebp-16] add ecx, DWORD PTR [ecx+edx*4 + Ltmp0] jmp ecx LBB1_25: mov ecx, DWORD PTR [eax+8] test ecx, ecx je LBB1_27 sub esp, 8 push ecx push DWORD PTR [esi+40] call DWORD PTR [esi+36] add esp, 16 mov eax, DWORD PTR [esi+28] LBB1_27: mov ecx, DWORD PTR [eax+68] test ecx, ecx je LBB1_29 sub esp, 8 push ecx push DWORD PTR [esi+40] call DWORD PTR [esi+36] add esp, 16 mov eax, DWORD PTR [esi+28] LBB1_29: mov ecx, DWORD PTR [eax+64] test ecx, ecx je LBB1_31 sub esp, 8 push ecx push DWORD PTR [esi+40] call DWORD PTR [esi+36] add esp, 16 mov eax, DWORD PTR [esi+28] LBB1_31: mov ecx, DWORD PTR [eax+56] test ecx, ecx je LBB1_33 sub esp, 8 push ecx push DWORD PTR [esi+40] call DWORD PTR [esi+36] add esp, 16 mov eax, DWORD PTR [esi+28] LBB1_33: sub esp, 8 push eax push DWORD PTR [esi+40] call DWORD PTR [esi+36] add esp, 16 mov DWORD PTR [esi+28], 0 jmp LBB1_36 LBB1_35: mov edi, -4 LBB1_36: mov eax, edi add esp, 28 pop esi pop edi pop ebx pop ebp ret LBB1_37: cmp ecx, 666 je LBB1_25 cmp ecx, 42 je LBB1_25 jmp LBB1_36 # ---------------------- .p2align 2, 0x90 LJTI1_0: .long L1_0_set_25 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_25 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_25 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_25 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_36 .long L1_0_set_25 # ---------------------- .p2align 4, 0x90 # ---------------------- .globl _deflateEnd _deflateEnd: push ebp mov ebp, esp push ebx push edi push esi sub esp, 12 call L2$pb L2$pb: pop edx mov esi, DWORD PTR [ebp+8] mov eax, -2 test esi, esi je LBB2_14 mov ecx, DWORD PTR [esi+28] test ecx, ecx je LBB2_14 mov edi, DWORD PTR [ecx+4] lea ebx, [edi-69] cmp ebx, 44 ja LBB2_3 add edx, DWORD PTR [edx+ebx*4 + Ltmp1] jmp edx LBB2_5: mov eax, DWORD PTR [ecx+8] test eax, eax je LBB2_7 sub esp, 8 push eax push DWORD PTR [esi+40] call DWORD PTR [esi+36] add esp, 16 mov ecx, DWORD PTR [esi+28] LBB2_7: mov eax, DWORD PTR [ecx+68] test eax, eax je LBB2_9 sub esp, 8 push eax push DWORD PTR [esi+40] call DWORD PTR [esi+36] add esp, 16 mov ecx, DWORD PTR [esi+28] LBB2_9: mov eax, DWORD PTR [ecx+64] test eax, eax je LBB2_11 sub esp, 8 push eax push DWORD PTR [esi+40] call DWORD PTR [esi+36] add esp, 16 mov ecx, DWORD PTR [esi+28] LBB2_11: mov eax, DWORD PTR [ecx+56] test eax, eax je LBB2_13 sub esp, 8 push eax push DWORD PTR [esi+40] call DWORD PTR [esi+36] add esp, 16 mov ecx, DWORD PTR [esi+28] LBB2_13: sub esp, 8 push ecx push DWORD PTR [esi+40] call DWORD PTR [esi+36] add esp, 16 mov DWORD PTR [esi+28], 0 xor ecx, ecx cmp edi, 113 mov eax, -3 cmovne eax, ecx LBB2_14: add esp, 12 pop esi pop edi pop ebx pop ebp ret LBB2_3: cmp edi, 666 je LBB2_5 cmp edi, 42 je LBB2_5 jmp LBB2_14 # ---------------------- .p2align 2, 0x90 LJTI2_0: .long L2_0_set_5 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_5 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_5 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_5 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_14 .long L2_0_set_5 # ---------------------- .p2align 4, 0x90 # ---------------------- .globl _deflateReset _deflateReset: push ebp mov ebp, esp push ebx push edi push esi sub esp, 12 call L3$pb L3$pb: pop esi mov edi, DWORD PTR [ebp+8] mov eax, -2 test edi, edi je LBB3_10 mov ebx, DWORD PTR [edi+28] test ebx, ebx je LBB3_10 cmp DWORD PTR [edi+32], 0 je LBB3_10 cmp DWORD PTR [edi+36], 0 je LBB3_10 mov DWORD PTR [edi+20], 0 mov DWORD PTR [edi+8], 0 mov DWORD PTR [edi+24], 0 mov DWORD PTR [edi+44], 2 mov DWORD PTR [ebx+20], 0 mov eax, DWORD PTR [ebx+8] mov DWORD PTR [ebx+16], eax mov eax, DWORD PTR [ebx+24] test eax, eax jns LBB3_6 neg eax mov DWORD PTR [ebx+24], eax LBB3_6: test eax, eax mov ecx, 42 mov edx, 113 cmovne edx, ecx mov DWORD PTR [ebx+4], edx sub esp, 4 cmp eax, 2 jne LBB3_8 push 0 push 0 push 0 call _crc32 jmp LBB3_9 LBB3_8: push 0 push 0 push 0 call _adler32 LBB3_9: add esp, 16 mov DWORD PTR [edi+48], eax mov DWORD PTR [ebx+40], 0 sub esp, 12 push ebx call __tr_init add esp, 16 mov edi, DWORD PTR [edi+28] mov eax, DWORD PTR [edi+44] add eax, eax mov DWORD PTR [edi+60], eax mov eax, DWORD PTR [edi+68] mov ecx, DWORD PTR [edi+76] mov WORD PTR [eax+ecx*2-2], 0 lea ecx, [ecx+ecx-2] sub esp, 8 push ecx push eax call ___bzero add esp, 16 mov eax, DWORD PTR [edi+132] lea eax, [eax+eax*2] movzx ecx, WORD PTR [esi+eax*4 + _configuration_table-L3$pb+2] mov DWORD PTR [edi+128], ecx movzx ecx, WORD PTR [esi+eax*4 + _configuration_table-L3$pb] mov DWORD PTR [edi+140], ecx movzx ecx, WORD PTR [esi+eax*4 + _configuration_table-L3$pb+4] mov DWORD PTR [edi+144], ecx movzx eax, WORD PTR [esi+eax*4 + _configuration_table-L3$pb+6] mov DWORD PTR [edi+124], eax mov DWORD PTR [edi+108], 0 mov DWORD PTR [edi+92], 0 mov DWORD PTR [edi+116], 0 mov DWORD PTR [edi+5812], 0 mov DWORD PTR [edi+120], 2 mov DWORD PTR [edi+96], 2 mov DWORD PTR [edi+104], 0 mov DWORD PTR [edi+72], 0 xor eax, eax LBB3_10: add esp, 12 pop esi pop edi pop ebx pop ebp ret # ---------------------- .p2align 4, 0x90 # ---------------------- .globl _deflateSetDictionary _deflateSetDictionary: push ebp mov ebp, esp push ebx push edi push esi sub esp, 60 mov ebx, DWORD PTR [ebp+8] mov eax, -2 test ebx, ebx je LBB4_21 mov esi, DWORD PTR [ebp+12] test esi, esi je LBB4_21 mov ecx, DWORD PTR [ebx+28] test ecx, ecx je LBB4_21 mov edx, DWORD PTR [ecx+24] cmp edx, 2 je LBB4_21 cmp edx, 1 jne LBB4_6 cmp DWORD PTR [ecx+4], 42 jne LBB4_21 LBB4_6: cmp DWORD PTR [ecx+116], 0 jne LBB4_21 mov edi, DWORD PTR [ebp+16] cmp edx, 1 mov DWORD PTR [ebp-16], ecx mov DWORD PTR [ebp-48], edx jne LBB4_9 sub esp, 4 push edi push esi push DWORD PTR [ebx+48] call _adler32 mov edx, DWORD PTR [ebp-48] mov ecx, DWORD PTR [ebp-16] add esp, 16 mov DWORD PTR [ebx+48], eax LBB4_9: mov DWORD PTR [ecx+24], 0 mov eax, DWORD PTR [ecx+44] cmp eax, edi ja LBB4_13 test edx, edx jne LBB4_12 mov eax, DWORD PTR [ecx+68] mov ecx, DWORD PTR [ecx+76] mov WORD PTR [eax+ecx*2-2], 0 lea ecx, [ecx+ecx-2] sub esp, 8 push ecx push eax call ___bzero mov ecx, DWORD PTR [ebp-16] add esp, 16 mov DWORD PTR [ecx+108], 0 mov DWORD PTR [ecx+92], 0 mov DWORD PTR [ecx+5812], 0 mov eax, DWORD PTR [ecx+44] LBB4_12: sub edi, eax add esi, edi mov edi, eax LBB4_13: mov eax, DWORD PTR [ebx] mov DWORD PTR [ebp-60], eax mov eax, DWORD PTR [ebx+4] mov DWORD PTR [ebp-64], eax mov DWORD PTR [ebx+4], edi mov DWORD PTR [ebx], esi call _fill_window mov edx, DWORD PTR [ebp-16] mov eax, DWORD PTR [edx+108] mov ecx, DWORD PTR [edx+116] cmp ecx, 3 jb LBB4_20 # ---------------------- .p2align 4, 0x90 LBB4_14: mov DWORD PTR [ebp-20], ecx lea ebx, [ecx-2] mov edi, DWORD PTR [edx+72] mov ecx, DWORD PTR [edx+88] mov esi, DWORD PTR [edx+52] mov DWORD PTR [ebp-32], esi mov esi, DWORD PTR [edx+56] mov DWORD PTR [ebp-40], esi mov DWORD PTR [ebp-52], ebx test bl, 1 mov esi, DWORD PTR [edx+84] mov DWORD PTR [ebp-36], esi mov esi, DWORD PTR [edx+68] mov ebx, DWORD PTR [edx+64] mov DWORD PTR [ebp-28], ebx mov DWORD PTR [ebp-24], esi mov DWORD PTR [ebp-68], eax mov DWORD PTR [ebp-56], ecx jne LBB4_16 mov ebx, eax mov edx, DWORD PTR [ebp-52] mov eax, DWORD PTR [ebp-20] jmp LBB4_17 # ---------------------- .p2align 4, 0x90 LBB4_16: shl edi, cl mov ecx, DWORD PTR [ebp-40] movzx ebx, BYTE PTR [ecx+eax+2] xor ebx, edi and ebx, DWORD PTR [ebp-36] mov DWORD PTR [edx+72], ebx movzx edx, WORD PTR [esi+ebx*2] mov edi, DWORD PTR [ebp-32] and edi, eax mov ecx, DWORD PTR [ebp-28] mov WORD PTR [ecx+edi*2], dx mov WORD PTR [esi+ebx*2], ax mov edi, ebx lea ebx, [eax+1] mov eax, DWORD PTR [ebp-20] lea edx, [eax-3] LBB4_17: cmp eax, 3 mov eax, DWORD PTR [ebp-24] je LBB4_19 # ---------------------- .p2align 4, 0x90 LBB4_18: mov DWORD PTR [ebp-20], edx mov ecx, DWORD PTR [ebp-56] shl edi, cl mov ecx, DWORD PTR [ebp-40] movzx esi, BYTE PTR [ecx+ebx+2] xor esi, edi and esi, DWORD PTR [ebp-36] mov edx, DWORD PTR [ebp-16] mov DWORD PTR [edx+72], esi movzx edi, WORD PTR [eax+esi*2] mov eax, DWORD PTR [ebp-32] and eax, ebx mov ecx, DWORD PTR [ebp-28] mov WORD PTR [ecx+eax*2], di mov eax, DWORD PTR [ebp-24] mov WORD PTR [eax+esi*2], bx mov ecx, DWORD PTR [ebp-56] shl esi, cl mov eax, DWORD PTR [ebp-40] movzx edi, BYTE PTR [eax+ebx+3] xor edi, esi and edi, DWORD PTR [ebp-36] mov DWORD PTR [edx+72], edi mov edx, DWORD PTR [ebp-20] mov eax, DWORD PTR [ebp-24] movzx eax, WORD PTR [eax+edi*2] mov WORD PTR [ebp-42], ax lea ecx, [ebx+1] mov DWORD PTR [ebp-72], ecx mov eax, DWORD PTR [ebp-32] and eax, ecx mov ecx, DWORD PTR [ebp-28] movzx esi, WORD PTR [ebp-42] mov WORD PTR [ecx+eax*2], si mov eax, DWORD PTR [ebp-24] mov esi, DWORD PTR [ebp-72] mov WORD PTR [eax+edi*2], si add ebx, 2 add edx, -2 jne LBB4_18 LBB4_19: mov eax, DWORD PTR [ebp-52] add eax, DWORD PTR [ebp-68] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+108], eax mov DWORD PTR [edi+116], 2 mov ecx, edi call _fill_window mov eax, DWORD PTR [edi+108] mov ecx, DWORD PTR [edi+116] cmp ecx, 2 mov edx, edi ja LBB4_14 LBB4_20: add eax, ecx mov DWORD PTR [edx+108], eax mov DWORD PTR [edx+92], eax mov DWORD PTR [edx+5812], ecx mov DWORD PTR [edx+116], 0 mov DWORD PTR [edx+120], 2 mov DWORD PTR [edx+96], 2 mov DWORD PTR [edx+104], 0 mov eax, DWORD PTR [ebp+8] mov ecx, DWORD PTR [ebp-60] mov DWORD PTR [eax], ecx mov ecx, DWORD PTR [ebp-64] mov DWORD PTR [eax+4], ecx mov eax, DWORD PTR [ebp-48] mov DWORD PTR [edx+24], eax xor eax, eax LBB4_21: add esp, 60 pop esi pop edi pop ebx pop ebp ret # ---------------------- .section __TEXT,__literal16,16byte_literals .p2align 4 LCPI5_0: .byte 14 .byte 15 .byte 12 .byte 13 .byte 10 .byte 11 .byte 8 .byte 9 .byte 6 .byte 7 .byte 4 .byte 5 .byte 2 .byte 3 .byte 0 .byte 1 LCPI5_1: .long 2147483648 .long 2147483648 .long 2147483648 .long 2147483648 LCPI5_2: .byte 0 .byte 1 .byte 4 .byte 5 .byte 8 .byte 9 .byte 12 .byte 13 .byte 8 .byte 9 .byte 12 .byte 13 .byte 12 .byte 13 .byte 14 .byte 15 # ---------------------- .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _fill_window: push ebp mov ebp, esp push ebx push edi push esi sub esp, 156 mov esi, ecx call L5$pb L5$pb: pop eax mov edi, DWORD PTR [esi+44] mov ecx, edi and ecx, 7 mov edx, edi sub edx, ecx mov DWORD PTR [ebp-52], edx movaps xmm0, XMMWORD PTR [eax + LCPI5_0-L5$pb] movaps XMMWORD PTR [ebp-104], xmm0 movdqa xmm1, XMMWORD PTR [eax + LCPI5_1-L5$pb] movdqa XMMWORD PTR [ebp-168], xmm1 movaps xmm0, XMMWORD PTR [eax + LCPI5_2-L5$pb] movaps XMMWORD PTR [ebp-120], xmm0 mov DWORD PTR [ebp-48], ecx sub ecx, edi mov DWORD PTR [ebp-44], ecx movd xmm0, edi pshufd xmm0, xmm0, 0 movdqa XMMWORD PTR [ebp-152], xmm0 pxor xmm0, xmm1 movdqa XMMWORD PTR [ebp-136], xmm0 mov ecx, DWORD PTR [esi+116] lea eax, [edi-262] mov DWORD PTR [ebp-56], eax lea eax, [edi-8] mov DWORD PTR [ebp-40], eax mov eax, edi mov DWORD PTR [ebp-28], esi mov DWORD PTR [ebp-20], edi jmp LBB5_4 # ---------------------- .p2align 4, 0x90 LBB5_1: mov ecx, DWORD PTR [ebp-36] cmp ecx, 261 ja LBB5_38 mov eax, DWORD PTR [esi] cmp DWORD PTR [eax+4], 0 je LBB5_38 mov eax, DWORD PTR [esi+44] mov edi, DWORD PTR [ebp-20] LBB5_4: mov ebx, DWORD PTR [esi+60] sub ebx, ecx mov ecx, DWORD PTR [esi+108] sub ebx, ecx add eax, DWORD PTR [ebp-56] cmp ecx, eax jb LBB5_25 mov eax, DWORD PTR [esi+56] lea ecx, [eax+edi] sub esp, 4 push edi push ecx push eax call _memcpy add esp, 16 sub DWORD PTR [esi+112], edi mov ecx, DWORD PTR [esi+108] sub ecx, edi mov DWORD PTR [esi+108], ecx sub DWORD PTR [esi+92], edi mov edx, DWORD PTR [esi+68] mov edi, DWORD PTR [esi+76] lea eax, [edx+edi*2] cmp edi, 8 mov DWORD PTR [ebp-16], ecx jae LBB5_7 mov esi, edi mov edi, DWORD PTR [ebp-20] movdqa xmm0, XMMWORD PTR [ebp-104] movdqa xmm6, XMMWORD PTR [ebp-120] pxor xmm3, xmm3 jmp LBB5_12 # ---------------------- .p2align 4, 0x90 LBB5_7: mov DWORD PTR [ebp-24], edx mov esi, edi and esi, 7 mov edx, edi sub edx, esi movdqa xmm0, XMMWORD PTR [ebp-104] movdqa xmm6, XMMWORD PTR [ebp-120] pxor xmm3, xmm3 je LBB5_11 mov ecx, esi sub ecx, edi lea eax, [eax+ecx*2] mov ecx, DWORD PTR [ebp-24] lea edi, [ecx+edi*2-16] # ---------------------- .p2align 4, 0x90 LBB5_9: movdqu xmm2, XMMWORD PTR [edi] pshufb xmm2, xmm0 pmovzxwd xmm1, xmm2 punpckhwd xmm2, xmm3 movdqa xmm0, xmm2 movdqa xmm5, XMMWORD PTR [ebp-168] pxor xmm0, xmm5 movdqa xmm7, XMMWORD PTR [ebp-136] movdqa xmm3, xmm7 pcmpgtd xmm3, xmm0 movdqa xmm4, xmm1 pxor xmm4, xmm5 pcmpgtd xmm7, xmm4 pshufb xmm3, xmm6 pshufb xmm7, xmm6 punpcklqdq xmm7, xmm3 movdqa xmm3, XMMWORD PTR [ebp-152] psubd xmm1, xmm3 psubd xmm2, xmm3 pxor xmm3, xmm3 pshufb xmm2, xmm6 pshufb xmm1, xmm6 punpcklqdq xmm1, xmm2 psllw xmm7, 15 psraw xmm7, 15 movdqa xmm0, xmm7 pblendvb xmm1, xmm3 movdqa xmm0, XMMWORD PTR [ebp-104] pshufb xmm1, xmm0 movdqu XMMWORD PTR [edi], xmm1 add edi, -16 add edx, -8 jne LBB5_9 test esi, esi mov edi, DWORD PTR [ebp-20] mov edx, 0 jne LBB5_13 jmp LBB5_15 LBB5_11: mov esi, edi mov edi, DWORD PTR [ebp-20] LBB5_12: xor edx, edx LBB5_13: add eax, -2 # ---------------------- .p2align 4, 0x90 LBB5_14: movzx ecx, WORD PTR [eax] sub ecx, edi cmovb cx, dx mov WORD PTR [eax], cx add eax, -2 dec esi jne LBB5_14 LBB5_15: cmp edi, 8 mov eax, DWORD PTR [ebp-28] mov ecx, DWORD PTR [eax+64] lea eax, [ecx+edi*2] jb LBB5_21 mov edx, DWORD PTR [ebp-52] test edx, edx je LBB5_21 mov esi, DWORD PTR [ebp-44] lea eax, [eax+esi*2] mov esi, DWORD PTR [ebp-40] lea ecx, [ecx+esi*2] # ---------------------- .p2align 4, 0x90 LBB5_19: movdqu xmm2, XMMWORD PTR [ecx] pshufb xmm2, xmm0 pmovzxwd xmm1, xmm2 punpckhwd xmm2, xmm3 movdqa xmm0, xmm2 movdqa xmm7, xmm6 movdqa xmm6, XMMWORD PTR [ebp-168] pxor xmm0, xmm6 movdqa xmm5, XMMWORD PTR [ebp-136] movdqa xmm3, xmm5 pcmpgtd xmm3, xmm0 movdqa xmm4, xmm1 pxor xmm4, xmm6 movdqa xmm6, xmm7 pcmpgtd xmm5, xmm4 pshufb xmm3, xmm6 pshufb xmm5, xmm6 punpcklqdq xmm5, xmm3 movdqa xmm3, XMMWORD PTR [ebp-152] psubd xmm1, xmm3 psubd xmm2, xmm3 pxor xmm3, xmm3 pshufb xmm2, xmm6 pshufb xmm1, xmm6 punpcklqdq xmm1, xmm2 psllw xmm5, 15 psraw xmm5, 15 movdqa xmm0, xmm5 pblendvb xmm1, xmm3 movdqa xmm0, XMMWORD PTR [ebp-104] pshufb xmm1, xmm0 movdqu XMMWORD PTR [ecx], xmm1 add ecx, -16 add edx, -8 jne LBB5_19 mov ecx, DWORD PTR [ebp-48] test ecx, ecx jne LBB5_22 jmp LBB5_24 # ---------------------- .p2align 4, 0x90 LBB5_21: mov ecx, edi LBB5_22: add eax, -2 # ---------------------- .p2align 4, 0x90 LBB5_23: movzx edx, WORD PTR [eax] sub edx, edi mov esi, 0 cmovae si, dx mov WORD PTR [eax], si add eax, -2 dec ecx jne LBB5_23 LBB5_24: add ebx, edi mov esi, DWORD PTR [ebp-28] mov ecx, DWORD PTR [ebp-16] LBB5_25: mov edi, DWORD PTR [esi] mov eax, DWORD PTR [edi+4] test eax, eax je LBB5_38 mov edx, DWORD PTR [esi+116] cmp eax, ebx cmovbe ebx, eax test ebx, ebx je LBB5_30 add ecx, DWORD PTR [esi+56] add ecx, edx sub eax, ebx mov DWORD PTR [edi+4], eax sub esp, 4 push ebx push DWORD PTR [edi] mov DWORD PTR [ebp-16], ecx push ecx call _memcpy add esp, 16 mov eax, DWORD PTR [edi+28] mov eax, DWORD PTR [eax+24] cmp eax, 2 je LBB5_31 cmp eax, 1 jne LBB5_33 sub esp, 4 push ebx push DWORD PTR [ebp-16] push DWORD PTR [edi+48] call _adler32 jmp LBB5_32 # ---------------------- .p2align 4, 0x90 LBB5_30: xor ebx, ebx jmp LBB5_34 # ---------------------- .p2align 4, 0x90 LBB5_31: sub esp, 4 push ebx push DWORD PTR [ebp-16] push DWORD PTR [edi+48] call _crc32 LBB5_32: add esp, 16 mov DWORD PTR [edi+48], eax LBB5_33: add DWORD PTR [edi], ebx add DWORD PTR [edi+8], ebx mov edx, DWORD PTR [esi+116] LBB5_34: add edx, ebx mov DWORD PTR [esi+116], edx mov eax, DWORD PTR [esi+5812] mov DWORD PTR [ebp-36], edx mov DWORD PTR [ebp-32], eax lea eax, [eax+edx] cmp eax, 3 jb LBB5_1 mov ebx, DWORD PTR [esi+56] mov edx, DWORD PTR [esi+108] mov edi, DWORD PTR [ebp-32] sub edx, edi movzx eax, BYTE PTR [ebx+edx] mov DWORD PTR [esi+72], eax mov ecx, DWORD PTR [esi+88] mov DWORD PTR [ebp-64], ecx shl eax, cl mov DWORD PTR [ebp-24], edx movzx edx, BYTE PTR [ebx+edx+1] xor edx, eax mov eax, DWORD PTR [esi+84] mov DWORD PTR [ebp-60], eax and edx, eax mov DWORD PTR [esi+72], edx add ebx, 2 mov DWORD PTR [ebp-68], ebx xor ebx, ebx mov eax, edi # ---------------------- .p2align 4, 0x90 LBB5_36: cmp DWORD PTR [ebp-32], ebx je LBB5_1 mov ecx, DWORD PTR [ebp-24] lea ecx, [ecx+ebx] mov DWORD PTR [ebp-16], ecx mov ecx, DWORD PTR [ebp-64] shl edx, cl mov DWORD PTR [ebp-76], eax mov eax, DWORD PTR [ebp-68] lea edi, [eax+ebx] mov eax, DWORD PTR [ebp-24] movzx edi, BYTE PTR [eax+edi] xor edi, edx and edi, DWORD PTR [ebp-60] mov DWORD PTR [esi+72], edi mov eax, DWORD PTR [esi+64] mov DWORD PTR [ebp-72], eax mov eax, DWORD PTR [esi+52] and eax, DWORD PTR [ebp-16] mov edx, DWORD PTR [ebp-28] mov esi, DWORD PTR [edx+68] movzx edx, WORD PTR [esi+edi*2] mov ecx, DWORD PTR [ebp-72] mov WORD PTR [ecx+eax*2], dx mov eax, DWORD PTR [ebp-16] mov WORD PTR [esi+edi*2], ax mov esi, DWORD PTR [ebp-28] mov eax, DWORD PTR [ebp-36] mov ecx, DWORD PTR [ebp-76] lea eax, [eax+ecx-1] inc ebx cmp eax, 2 lea eax, [ecx-1] mov DWORD PTR [esi+5812], eax mov edx, edi ja LBB5_36 jmp LBB5_1 LBB5_38: mov eax, DWORD PTR [esi+5824] mov edx, DWORD PTR [esi+60] mov ecx, edx sub ecx, eax mov ebx, esi jbe LBB5_43 mov esi, DWORD PTR [ebx+116] add esi, DWORD PTR [ebx+108] cmp eax, esi jae LBB5_41 sub edx, esi cmp edx, 258 mov edi, 258 cmovb edi, edx mov eax, DWORD PTR [ebx+56] add eax, esi sub esp, 8 push edi push eax call ___bzero add esp, 16 add edi, esi mov DWORD PTR [ebx+5824], edi jmp LBB5_43 LBB5_41: add esi, 258 sub esi, eax jbe LBB5_43 cmp esi, ecx cmova esi, ecx add eax, DWORD PTR [ebx+56] sub esp, 8 push esi push eax call ___bzero add esp, 16 add DWORD PTR [ebx+5824], esi LBB5_43: add esp, 156 pop esi pop edi pop ebx pop ebp ret # ---------------------- .p2align 4, 0x90 # ---------------------- .globl _deflateResetKeep _deflateResetKeep: push ebp mov ebp, esp push edi push esi mov esi, DWORD PTR [ebp+8] mov eax, -2 test esi, esi je LBB6_10 mov edi, DWORD PTR [esi+28] test edi, edi je LBB6_10 cmp DWORD PTR [esi+32], 0 je LBB6_10 cmp DWORD PTR [esi+36], 0 je LBB6_10 mov DWORD PTR [esi+20], 0 mov DWORD PTR [esi+8], 0 mov DWORD PTR [esi+24], 0 mov DWORD PTR [esi+44], 2 mov DWORD PTR [edi+20], 0 mov eax, DWORD PTR [edi+8] mov DWORD PTR [edi+16], eax mov eax, DWORD PTR [edi+24] test eax, eax jns LBB6_6 neg eax mov DWORD PTR [edi+24], eax LBB6_6: test eax, eax mov ecx, 42 mov edx, 113 cmovne edx, ecx mov DWORD PTR [edi+4], edx sub esp, 4 cmp eax, 2 jne LBB6_8 push 0 push 0 push 0 call _crc32 jmp LBB6_9 LBB6_8: push 0 push 0 push 0 call _adler32 LBB6_9: add esp, 16 mov DWORD PTR [esi+48], eax mov DWORD PTR [edi+40], 0 sub esp, 12 push edi call __tr_init add esp, 16 xor eax, eax LBB6_10: pop esi pop edi pop ebp ret # ---------------------- .p2align 4, 0x90 # ---------------------- .globl _deflateSetHeader _deflateSetHeader: push ebp mov ebp, esp mov ecx, DWORD PTR [ebp+8] mov eax, -2 test ecx, ecx je LBB7_4 mov ecx, DWORD PTR [ecx+28] test ecx, ecx je LBB7_4 cmp DWORD PTR [ecx+24], 2 jne LBB7_4 mov eax, DWORD PTR [ebp+12] mov DWORD PTR [ecx+28], eax xor eax, eax LBB7_4: pop ebp ret # ---------------------- .p2align 4, 0x90 # ---------------------- .globl _deflatePending _deflatePending: push ebp mov ebp, esp push esi mov ecx, DWORD PTR [ebp+8] mov eax, -2 test ecx, ecx je LBB8_6 mov ecx, DWORD PTR [ecx+28] test ecx, ecx je LBB8_6 mov edx, DWORD PTR [ebp+16] mov eax, DWORD PTR [ebp+12] test eax, eax je LBB8_4 mov esi, DWORD PTR [ecx+20] mov DWORD PTR [eax], esi LBB8_4: xor eax, eax test edx, edx je LBB8_6 mov ecx, DWORD PTR [ecx+5820] mov DWORD PTR [edx], ecx LBB8_6: pop esi pop ebp ret # ---------------------- .p2align 4, 0x90 # ---------------------- .globl _deflatePrime _deflatePrime: push ebp mov ebp, esp push ebx push edi push esi sub esp, 12 mov ecx, DWORD PTR [ebp+8] mov eax, -2 test ecx, ecx je LBB9_6 mov edx, DWORD PTR [ecx+28] test edx, edx je LBB9_6 mov ecx, DWORD PTR [edx+16] add ecx, 2 mov eax, -5 cmp DWORD PTR [edx+5796], ecx jb LBB9_6 mov eax, DWORD PTR [ebp+16] mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-20], edx mov esi, DWORD PTR [ebp+12] mov edi, DWORD PTR [ebp-20] # ---------------------- .p2align 4, 0x90 LBB9_4: mov eax, DWORD PTR [edi+5820] mov ebx, 16 sub ebx, eax cmp ebx, esi cmovg ebx, esi mov edx, 1 mov ecx, ebx shl edx, cl dec edx and edx, DWORD PTR [ebp-16] mov ecx, eax shl edx, cl or edx, DWORD PTR [edi+5816] mov WORD PTR [edi+5816], dx add eax, ebx mov DWORD PTR [edi+5820], eax mov DWORD PTR [esp], edi call __tr_flush_bits mov ecx, ebx sar DWORD PTR [ebp-16], cl sub esi, ebx jne LBB9_4 xor eax, eax LBB9_6: add esp, 12 pop esi pop edi pop ebx pop ebp ret # ---------------------- .p2align 4, 0x90 # ---------------------- .globl _deflateParams _deflateParams: push ebp mov ebp, esp push ebx push edi push esi sub esp, 12 call L10$pb L10$pb: pop esi mov ecx, DWORD PTR [ebp+8] mov eax, -2 test ecx, ecx je LBB10_14 mov edi, DWORD PTR [ecx+28] test edi, edi je LBB10_14 mov edx, DWORD PTR [ebp+12] cmp edx, -1 mov ebx, 6 cmovne ebx, edx cmp DWORD PTR [ebp+16], 4 ja LBB10_14 cmp ebx, 9 ja LBB10_14 mov eax, DWORD PTR [ebp+16] cmp DWORD PTR [edi+136], eax jne LBB10_7 mov eax, DWORD PTR [edi+132] lea eax, [eax+eax*2] mov eax, DWORD PTR [esi+eax*4 + _configuration_table-L10$pb+8] lea edx, [ebx+ebx*2] cmp eax, DWORD PTR [esi+edx*4 + _configuration_table-L10$pb+8] je LBB10_6 LBB10_7: cmp DWORD PTR [ecx+8], 0 je LBB10_8 sub esp, 8 push 5 push ecx call _deflate add esp, 16 cmp eax, -5 jne LBB10_11 mov ecx, DWORD PTR [edi+20] test ecx, ecx mov eax, -5 cmove eax, ecx cmp DWORD PTR [edi+132], ebx jne LBB10_12 jmp LBB10_13 LBB10_8: xor eax, eax cmp DWORD PTR [edi+132], ebx jne LBB10_12 jmp LBB10_13 LBB10_6: xor eax, eax LBB10_11: cmp DWORD PTR [edi+132], ebx je LBB10_13 LBB10_12: mov DWORD PTR [edi+132], ebx lea ecx, [ebx+ebx*2] movzx edx, WORD PTR [esi+ecx*4 + _configuration_table-L10$pb+2] mov DWORD PTR [edi+128], edx movzx edx, WORD PTR [esi+ecx*4 + _configuration_table-L10$pb] mov DWORD PTR [edi+140], edx movzx edx, WORD PTR [esi+ecx*4 + _configuration_table-L10$pb+4] mov DWORD PTR [edi+144], edx movzx ecx, WORD PTR [esi+ecx*4 + _configuration_table-L10$pb+6] mov DWORD PTR [edi+124], ecx LBB10_13: mov ecx, DWORD PTR [ebp+16] mov DWORD PTR [edi+136], ecx LBB10_14: add esp, 12 pop esi pop edi pop ebx pop ebp ret # ---------------------- .p2align 4, 0x90 # ---------------------- .globl _deflate _deflate: push ebp mov ebp, esp push ebx push edi push esi sub esp, 28 call L11$pb L11$pb: pop ecx mov ebx, DWORD PTR [ebp+8] mov eax, -2 test ebx, ebx je LBB11_21 cmp DWORD PTR [ebp+12], 5 ja LBB11_21 mov esi, DWORD PTR [ebx+28] test esi, esi je LBB11_21 mov DWORD PTR [ebp-28], ecx cmp DWORD PTR [ebx+12], 0 je LBB11_20 cmp DWORD PTR [ebx], 0 je LBB11_19 LBB11_5: mov ecx, DWORD PTR [esi+4] cmp DWORD PTR [ebp+12], 4 je LBB11_7 cmp ecx, 666 je LBB11_20 LBB11_7: cmp DWORD PTR [ebx+16], 0 je LBB11_184 mov DWORD PTR [esi], ebx mov eax, DWORD PTR [esi+40] mov DWORD PTR [ebp-24], eax mov eax, DWORD PTR [ebp+12] mov DWORD PTR [esi+40], eax cmp ecx, 42 mov DWORD PTR [ebp-16], esi jne LBB11_29 cmp DWORD PTR [esi+24], 2 jne LBB11_22 sub esp, 4 push 0 push 0 push 0 call _crc32 add esp, 16 mov DWORD PTR [ebx+48], eax mov eax, DWORD PTR [esi+8] mov ecx, DWORD PTR [esi+20] lea edx, [ecx+1] mov DWORD PTR [esi+20], edx mov BYTE PTR [eax+ecx], 31 mov eax, DWORD PTR [esi+8] mov ecx, DWORD PTR [esi+20] lea edx, [ecx+1] mov DWORD PTR [esi+20], edx mov BYTE PTR [eax+ecx], 139 mov eax, DWORD PTR [esi+8] mov ecx, DWORD PTR [esi+20] lea edx, [ecx+1] mov DWORD PTR [esi+20], edx mov BYTE PTR [eax+ecx], 8 mov eax, DWORD PTR [esi+28] test eax, eax je LBB11_107 cmp DWORD PTR [eax], 0 setne cl cmp DWORD PTR [eax+44], 0 setne dl add dl, dl or dl, cl cmp DWORD PTR [eax+16], 0 setne cl shl cl, 2 cmp DWORD PTR [eax+28], 0 setne ch shl ch, 3 or ch, cl or ch, dl cmp DWORD PTR [eax+36], 0 setne al shl al, 4 or al, ch mov ecx, DWORD PTR [esi+8] mov edx, DWORD PTR [esi+20] lea esi, [edx+1] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+20], esi mov BYTE PTR [ecx+edx], al mov eax, DWORD PTR [ebp-16] mov eax, DWORD PTR [eax+28] mov al, BYTE PTR [eax+4] mov ecx, DWORD PTR [ebp-16] mov ecx, DWORD PTR [ecx+8] mov edx, DWORD PTR [ebp-16] mov edx, DWORD PTR [edx+20] lea esi, [edx+1] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+20], esi mov BYTE PTR [ecx+edx], al mov eax, DWORD PTR [ebp-16] mov eax, DWORD PTR [eax+28] mov al, BYTE PTR [eax+5] mov ecx, DWORD PTR [ebp-16] mov ecx, DWORD PTR [ecx+8] mov edx, DWORD PTR [ebp-16] mov edx, DWORD PTR [edx+20] lea esi, [edx+1] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+20], esi mov BYTE PTR [ecx+edx], al mov eax, DWORD PTR [ebp-16] mov eax, DWORD PTR [eax+28] mov al, BYTE PTR [eax+6] mov ecx, DWORD PTR [ebp-16] mov ecx, DWORD PTR [ecx+8] mov edx, DWORD PTR [ebp-16] mov edx, DWORD PTR [edx+20] lea esi, [edx+1] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+20], esi mov BYTE PTR [ecx+edx], al mov eax, DWORD PTR [ebp-16] mov eax, DWORD PTR [eax+28] mov al, BYTE PTR [eax+7] mov ecx, DWORD PTR [ebp-16] mov ecx, DWORD PTR [ecx+8] mov edx, DWORD PTR [ebp-16] mov edx, DWORD PTR [edx+20] lea esi, [edx+1] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+20], esi mov esi, DWORD PTR [ebp-16] mov BYTE PTR [ecx+edx], al mov ecx, DWORD PTR [esi+132] mov al, 2 cmp ecx, 9 je LBB11_14 cmp DWORD PTR [esi+136], 1 setg dl cmp ecx, 2 mov al, 4 jl LBB11_14 shl dl, 2 mov eax, edx LBB11_14: mov ecx, DWORD PTR [esi+8] mov edx, DWORD PTR [esi+20] lea esi, [edx+1] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+20], esi mov BYTE PTR [ecx+edx], al mov eax, DWORD PTR [ebp-16] mov eax, DWORD PTR [eax+28] mov al, BYTE PTR [eax+12] mov ecx, DWORD PTR [ebp-16] mov ecx, DWORD PTR [ecx+8] mov edx, DWORD PTR [ebp-16] mov edx, DWORD PTR [edx+20] lea esi, [edx+1] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+20], esi mov esi, DWORD PTR [ebp-16] mov BYTE PTR [ecx+edx], al mov eax, DWORD PTR [esi+28] cmp DWORD PTR [eax+16], 0 je LBB11_16 mov al, BYTE PTR [eax+20] mov ecx, DWORD PTR [esi+8] mov edx, DWORD PTR [esi+20] lea esi, [edx+1] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+20], esi mov BYTE PTR [ecx+edx], al mov eax, DWORD PTR [ebp-16] mov eax, DWORD PTR [eax+28] mov al, BYTE PTR [eax+21] mov ecx, DWORD PTR [ebp-16] mov ecx, DWORD PTR [ecx+8] mov edx, DWORD PTR [ebp-16] mov edx, DWORD PTR [edx+20] lea esi, [edx+1] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+20], esi mov esi, DWORD PTR [ebp-16] mov BYTE PTR [ecx+edx], al mov eax, DWORD PTR [esi+28] LBB11_16: cmp DWORD PTR [eax+44], 0 je LBB11_18 sub esp, 4 push DWORD PTR [esi+20] push DWORD PTR [esi+8] push DWORD PTR [ebx+48] call _crc32 add esp, 16 mov DWORD PTR [ebx+48], eax LBB11_18: lea ecx, [esi+28] mov DWORD PTR [esi+32], 0 mov DWORD PTR [esi+4], 69 jmp LBB11_31 LBB11_19: cmp DWORD PTR [ebx+4], 0 je LBB11_5 LBB11_20: mov ecx, DWORD PTR [ebp-28] mov ecx, DWORD PTR [ecx + L_z_errmsg$non_lazy_ptr-L11$pb] mov ecx, DWORD PTR [ecx+16] mov DWORD PTR [ebx+24], ecx LBB11_21: add esp, 28 pop esi pop edi pop ebx pop ebp ret LBB11_22: mov eax, DWORD PTR [esi+48] shl eax, 12 add eax, -30720 xor edx, edx cmp DWORD PTR [esi+136], 1 jg LBB11_26 mov ecx, DWORD PTR [esi+132] cmp ecx, 2 jl LBB11_26 mov edx, 64 cmp ecx, 6 jl LBB11_26 mov ecx, 128 mov edx, 192 cmove edx, ecx LBB11_26: or edx, eax mov ecx, edx or ecx, 32 cmp DWORD PTR [esi+108], 0 cmove ecx, edx mov edx, 138547333 mov eax, ecx mul edx mov eax, ecx sub eax, edx shr eax, 1 add eax, edx shr eax, 4 mov edx, eax shl edx, 5 sub edx, eax mov eax, ecx sub eax, edx mov DWORD PTR [esi+4], 113 mov edx, DWORD PTR [esi+8] mov esi, DWORD PTR [ebp-16] mov esi, DWORD PTR [esi+20] lea edi, [esi+1] mov ebx, DWORD PTR [ebp-16] mov DWORD PTR [ebx+20], edi or eax, ecx mov BYTE PTR [edx+esi], ch mov ecx, DWORD PTR [ebp-16] mov ecx, DWORD PTR [ecx+8] mov edx, DWORD PTR [ebp-16] mov edx, DWORD PTR [edx+20] lea esi, [edx+1] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+20], esi mov esi, DWORD PTR [ebp-16] xor al, 31 mov BYTE PTR [ecx+edx], al cmp DWORD PTR [esi+108], 0 mov ebx, DWORD PTR [ebp+8] je LBB11_28 mov eax, DWORD PTR [ebx+48] mov ecx, DWORD PTR [esi+8] mov edx, DWORD PTR [esi+20] lea esi, [edx+1] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+20], esi mov ebx, eax shr ebx, 16 shr eax, 24 mov BYTE PTR [ecx+edx], al mov eax, DWORD PTR [ebp-16] mov eax, DWORD PTR [eax+8] mov ecx, DWORD PTR [ebp-16] mov ecx, DWORD PTR [ecx+20] lea edx, [ecx+1] mov esi, DWORD PTR [ebp-16] mov DWORD PTR [esi+20], edx mov BYTE PTR [eax+ecx], bl mov ebx, DWORD PTR [ebp+8] mov eax, DWORD PTR [ebx+48] mov ecx, DWORD PTR [ebp-16] mov ecx, DWORD PTR [ecx+8] mov edx, DWORD PTR [ebp-16] mov edx, DWORD PTR [edx+20] lea esi, [edx+1] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+20], esi mov BYTE PTR [ecx+edx], ah mov ecx, DWORD PTR [ebp-16] mov ecx, DWORD PTR [ecx+8] mov edx, DWORD PTR [ebp-16] mov edx, DWORD PTR [edx+20] lea esi, [edx+1] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+20], esi mov esi, DWORD PTR [ebp-16] mov BYTE PTR [ecx+edx], al LBB11_28: sub esp, 4 push 0 push 0 push 0 call _adler32 add esp, 16 mov DWORD PTR [ebx+48], eax mov ecx, DWORD PTR [esi+4] LBB11_29: cmp ecx, 69 jne LBB11_52 lea ecx, [esi+28] LBB11_31: mov eax, DWORD PTR [ecx] cmp DWORD PTR [eax+16], 0 je LBB11_66 mov DWORD PTR [ebp-20], ecx mov ecx, DWORD PTR [esi+20] mov edi, DWORD PTR [esi+32] movzx edx, WORD PTR [eax+20] cmp edi, edx jae LBB11_46 mov edx, ecx cmp ecx, DWORD PTR [esi+12] jne LBB11_43 LBB11_35: sub ecx, edx jbe LBB11_38 mov eax, DWORD PTR [eax+44] test eax, eax je LBB11_38 add edx, DWORD PTR [esi+8] sub esp, 4 push ecx push edx push DWORD PTR [ebx+48] call _crc32 add esp, 16 mov DWORD PTR [ebx+48], eax LBB11_38: mov edi, DWORD PTR [ebx+28] sub esp, 12 push edi call __tr_flush_bits add esp, 16 mov eax, ebx mov ebx, DWORD PTR [edi+20] mov eax, DWORD PTR [eax+16] cmp ebx, eax cmova ebx, eax test ebx, ebx je LBB11_41 sub esp, 4 push ebx push DWORD PTR [edi+16] mov eax, DWORD PTR [ebp+8] push DWORD PTR [eax+12] call _memcpy add esp, 16 mov eax, DWORD PTR [ebp+8] add DWORD PTR [eax+12], ebx add DWORD PTR [edi+16], ebx add DWORD PTR [eax+20], ebx sub DWORD PTR [eax+16], ebx mov eax, DWORD PTR [edi+20] sub eax, ebx mov DWORD PTR [edi+20], eax jne LBB11_41 mov eax, DWORD PTR [edi+8] mov DWORD PTR [edi+16], eax LBB11_41: mov ecx, DWORD PTR [esi+20] mov eax, DWORD PTR [esi+28] cmp ecx, DWORD PTR [esi+12] je LBB11_45 mov edi, DWORD PTR [esi+32] mov edx, ecx jmp LBB11_43 LBB11_34: mov ecx, DWORD PTR [esi+20] mov ebx, DWORD PTR [ebp+8] cmp ecx, DWORD PTR [esi+12] je LBB11_35 LBB11_43: mov eax, DWORD PTR [eax+16] movzx eax, BYTE PTR [eax+edi] mov esi, DWORD PTR [ebp-16] mov esi, DWORD PTR [esi+8] lea edi, [ecx+1] mov ebx, DWORD PTR [ebp-16] mov DWORD PTR [ebx+20], edi mov BYTE PTR [esi+ecx], al mov esi, DWORD PTR [ebp-16] mov edi, DWORD PTR [esi+32] inc edi mov DWORD PTR [esi+32], edi mov eax, DWORD PTR [esi+28] movzx ecx, WORD PTR [eax+20] cmp edi, ecx jb LBB11_34 mov ecx, edx LBB11_45: mov ebx, DWORD PTR [ebp+8] LBB11_46: cmp DWORD PTR [eax+44], 0 je LBB11_49 mov edx, DWORD PTR [esi+20] sub edx, ecx jbe LBB11_49 add ecx, DWORD PTR [esi+8] sub esp, 4 push edx push ecx push DWORD PTR [ebx+48] call _crc32 add esp, 16 mov DWORD PTR [ebx+48], eax mov eax, DWORD PTR [esi+28] LBB11_49: mov ecx, DWORD PTR [esi+32] cmp ecx, DWORD PTR [eax+20] jne LBB11_51 mov DWORD PTR [esi+32], 0 mov DWORD PTR [esi+4], 73 mov ecx, DWORD PTR [ebp-20] cmp DWORD PTR [eax+28], 0 jne LBB11_54 jmp LBB11_67 LBB11_66: mov DWORD PTR [esi+4], 73 cmp DWORD PTR [eax+28], 0 jne LBB11_54 jmp LBB11_67 LBB11_51: mov ecx, DWORD PTR [esi+4] LBB11_52: cmp ecx, 73 jne LBB11_74 lea ecx, [esi+28] mov eax, DWORD PTR [esi+28] cmp DWORD PTR [eax+28], 0 je LBB11_67 LBB11_54: mov DWORD PTR [ebp-20], ecx mov eax, DWORD PTR [esi+20] mov ecx, eax cmp eax, DWORD PTR [esi+12] jne LBB11_64 # ---------------------- .p2align 4, 0x90 LBB11_56: sub eax, ecx jbe LBB11_59 mov edx, DWORD PTR [ebp-20] mov edx, DWORD PTR [edx] mov edx, DWORD PTR [edx+44] test edx, edx je LBB11_59 add ecx, DWORD PTR [esi+8] sub esp, 4 push eax push ecx push DWORD PTR [ebx+48] call _crc32 add esp, 16 mov DWORD PTR [ebx+48], eax LBB11_59: mov edi, DWORD PTR [ebx+28] sub esp, 12 push edi call __tr_flush_bits add esp, 16 mov eax, ebx mov ebx, DWORD PTR [edi+20] mov eax, DWORD PTR [eax+16] cmp ebx, eax cmova ebx, eax test ebx, ebx je LBB11_62 sub esp, 4 push ebx push DWORD PTR [edi+16] mov eax, DWORD PTR [ebp+8] mov esi, eax push DWORD PTR [esi+12] call _memcpy add esp, 16 add DWORD PTR [esi+12], ebx add DWORD PTR [edi+16], ebx add DWORD PTR [esi+20], ebx sub DWORD PTR [esi+16], ebx mov esi, DWORD PTR [ebp-16] mov eax, DWORD PTR [edi+20] sub eax, ebx mov DWORD PTR [edi+20], eax jne LBB11_62 mov eax, DWORD PTR [edi+8] mov DWORD PTR [edi+16], eax LBB11_62: mov eax, DWORD PTR [esi+20] cmp eax, DWORD PTR [esi+12] je LBB11_68 mov ecx, eax jmp LBB11_64 # ---------------------- .p2align 4, 0x90 LBB11_55: mov eax, DWORD PTR [esi+20] mov ebx, DWORD PTR [ebp+8] cmp eax, DWORD PTR [esi+12] je LBB11_56 LBB11_64: mov edx, DWORD PTR [ebp-20] mov edx, DWORD PTR [edx] mov edx, DWORD PTR [edx+28] mov ebx, DWORD PTR [esi+32] lea edi, [ebx+1] mov DWORD PTR [esi+32], edi movzx ebx, BYTE PTR [edx+ebx] lea edx, [eax+1] mov edi, DWORD PTR [esi+8] mov DWORD PTR [esi+20], edx mov BYTE PTR [edi+eax], bl test ebx, ebx jne LBB11_55 mov eax, ecx jmp LBB11_69 LBB11_67: mov DWORD PTR [esi+4], 91 jmp LBB11_77 LBB11_68: mov ebx, 1 LBB11_69: mov ecx, DWORD PTR [ebp-20] mov ecx, DWORD PTR [ecx] cmp DWORD PTR [ecx+44], 0 je LBB11_72 mov ecx, DWORD PTR [esi+20] sub ecx, eax jbe LBB11_72 add eax, DWORD PTR [esi+8] sub esp, 4 push ecx push eax mov eax, DWORD PTR [ebp+8] mov edi, esi mov esi, eax push DWORD PTR [esi+48] call _crc32 add esp, 16 mov DWORD PTR [esi+48], eax mov esi, edi LBB11_72: test ebx, ebx je LBB11_76 mov ecx, DWORD PTR [esi+4] mov ebx, DWORD PTR [ebp+8] LBB11_74: cmp ecx, 91 jne LBB11_97 lea ecx, [esi+28] jmp LBB11_77 LBB11_76: mov DWORD PTR [esi+32], 0 mov DWORD PTR [esi+4], 91 mov ebx, DWORD PTR [ebp+8] mov ecx, DWORD PTR [ebp-20] LBB11_77: mov eax, DWORD PTR [ecx] cmp DWORD PTR [eax+36], 0 je LBB11_90 mov DWORD PTR [ebp-20], ecx mov eax, DWORD PTR [esi+20] mov ecx, eax cmp eax, DWORD PTR [esi+12] jne LBB11_88 # ---------------------- .p2align 4, 0x90 LBB11_80: sub eax, ecx jbe LBB11_83 mov edx, DWORD PTR [ebp-20] mov edx, DWORD PTR [edx] mov edx, DWORD PTR [edx+44] test edx, edx je LBB11_83 add ecx, DWORD PTR [esi+8] sub esp, 4 push eax push ecx push DWORD PTR [ebx+48] call _crc32 add esp, 16 mov DWORD PTR [ebx+48], eax LBB11_83: mov edi, DWORD PTR [ebx+28] sub esp, 12 push edi call __tr_flush_bits add esp, 16 mov eax, ebx mov ebx, DWORD PTR [edi+20] mov eax, DWORD PTR [eax+16] cmp ebx, eax cmova ebx, eax test ebx, ebx je LBB11_86 sub esp, 4 push ebx push DWORD PTR [edi+16] mov eax, DWORD PTR [ebp+8] mov esi, eax push DWORD PTR [esi+12] call _memcpy add esp, 16 add DWORD PTR [esi+12], ebx add DWORD PTR [edi+16], ebx add DWORD PTR [esi+20], ebx sub DWORD PTR [esi+16], ebx mov esi, DWORD PTR [ebp-16] mov eax, DWORD PTR [edi+20] sub eax, ebx mov DWORD PTR [edi+20], eax jne LBB11_86 mov eax, DWORD PTR [edi+8] mov DWORD PTR [edi+16], eax LBB11_86: mov eax, DWORD PTR [esi+20] cmp eax, DWORD PTR [esi+12] je LBB11_91 mov ecx, eax jmp LBB11_88 # ---------------------- .p2align 4, 0x90 LBB11_79: mov eax, DWORD PTR [esi+20] mov ebx, DWORD PTR [ebp+8] cmp eax, DWORD PTR [esi+12] je LBB11_80 LBB11_88: mov edx, DWORD PTR [ebp-20] mov edx, DWORD PTR [edx] mov edx, DWORD PTR [edx+36] mov ebx, DWORD PTR [esi+32] lea edi, [ebx+1] mov DWORD PTR [esi+32], edi movzx ebx, BYTE PTR [edx+ebx] lea edx, [eax+1] mov edi, DWORD PTR [esi+8] mov DWORD PTR [esi+20], edx mov BYTE PTR [edi+eax], bl test ebx, ebx jne LBB11_79 mov eax, ecx jmp LBB11_92 LBB11_90: mov DWORD PTR [esi+4], 103 jmp LBB11_100 LBB11_91: mov ebx, 1 LBB11_92: mov ecx, DWORD PTR [ebp-20] mov ecx, DWORD PTR [ecx] cmp DWORD PTR [ecx+44], 0 je LBB11_95 mov ecx, DWORD PTR [esi+20] sub ecx, eax jbe LBB11_95 add eax, DWORD PTR [esi+8] sub esp, 4 push ecx push eax mov eax, DWORD PTR [ebp+8] mov edi, esi mov esi, eax push DWORD PTR [esi+48] call _crc32 add esp, 16 mov DWORD PTR [esi+48], eax mov esi, edi LBB11_95: test ebx, ebx je LBB11_99 mov ecx, DWORD PTR [esi+4] mov ebx, DWORD PTR [ebp+8] LBB11_97: cmp ecx, 103 jne LBB11_112 lea ecx, [esi+28] jmp LBB11_100 LBB11_99: mov DWORD PTR [esi+4], 103 mov ebx, DWORD PTR [ebp+8] mov ecx, DWORD PTR [ebp-20] LBB11_100: mov eax, DWORD PTR [ecx] cmp DWORD PTR [eax+44], 0 je LBB11_111 mov eax, DWORD PTR [esi+20] add eax, 2 cmp eax, DWORD PTR [esi+12] jbe LBB11_105 mov eax, DWORD PTR [ebp+8] mov esi, eax mov edi, DWORD PTR [esi+28] sub esp, 12 push edi call __tr_flush_bits add esp, 16 mov ebx, DWORD PTR [edi+20] mov eax, DWORD PTR [esi+16] mov esi, DWORD PTR [ebp-16] cmp ebx, eax cmova ebx, eax test ebx, ebx je LBB11_105 sub esp, 4 push ebx push DWORD PTR [edi+16] mov eax, DWORD PTR [ebp+8] mov esi, eax push DWORD PTR [esi+12] call _memcpy add esp, 16 add DWORD PTR [esi+12], ebx add DWORD PTR [edi+16], ebx add DWORD PTR [esi+20], ebx sub DWORD PTR [esi+16], ebx mov esi, DWORD PTR [ebp-16] mov eax, DWORD PTR [edi+20] sub eax, ebx mov DWORD PTR [edi+20], eax jne LBB11_105 mov eax, DWORD PTR [edi+8] mov DWORD PTR [edi+16], eax LBB11_105: mov eax, DWORD PTR [esi+20] lea ecx, [eax+2] cmp ecx, DWORD PTR [esi+12] mov ebx, DWORD PTR [ebp+8] ja LBB11_112 mov cl, BYTE PTR [ebx+48] mov edx, DWORD PTR [esi+8] lea esi, [eax+1] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+20], esi mov BYTE PTR [edx+eax], cl mov al, BYTE PTR [ebx+49] mov ecx, DWORD PTR [ebp-16] mov ecx, DWORD PTR [ecx+8] mov edx, DWORD PTR [ebp-16] mov edx, DWORD PTR [edx+20] lea esi, [edx+1] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+20], esi mov esi, DWORD PTR [ebp-16] mov BYTE PTR [ecx+edx], al sub esp, 4 push 0 push 0 push 0 call _crc32 add esp, 16 mov DWORD PTR [ebx+48], eax jmp LBB11_111 LBB11_107: mov eax, DWORD PTR [esi+8] mov ecx, DWORD PTR [esi+20] lea edx, [ecx+1] mov DWORD PTR [esi+20], edx mov BYTE PTR [eax+ecx], 0 mov eax, DWORD PTR [esi+8] mov ecx, DWORD PTR [esi+20] lea edx, [ecx+1] mov DWORD PTR [esi+20], edx mov BYTE PTR [eax+ecx], 0 mov eax, DWORD PTR [esi+8] mov ecx, DWORD PTR [esi+20] lea edx, [ecx+1] mov DWORD PTR [esi+20], edx mov BYTE PTR [eax+ecx], 0 mov eax, DWORD PTR [esi+8] mov ecx, DWORD PTR [esi+20] lea edx, [ecx+1] mov DWORD PTR [esi+20], edx mov BYTE PTR [eax+ecx], 0 mov eax, DWORD PTR [esi+8] mov ecx, DWORD PTR [esi+20] lea edx, [ecx+1] mov DWORD PTR [esi+20], edx mov BYTE PTR [eax+ecx], 0 mov ecx, DWORD PTR [esi+132] mov al, 2 cmp ecx, 9 je LBB11_110 cmp DWORD PTR [esi+136], 1 setg dl cmp ecx, 2 mov al, 4 jl LBB11_110 shl dl, 2 mov eax, edx LBB11_110: mov ecx, DWORD PTR [esi+8] mov edx, DWORD PTR [esi+20] lea esi, [edx+1] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+20], esi mov esi, DWORD PTR [ebp-16] mov BYTE PTR [ecx+edx], al mov eax, DWORD PTR [esi+8] mov ecx, DWORD PTR [esi+20] lea edx, [ecx+1] mov DWORD PTR [esi+20], edx mov BYTE PTR [eax+ecx], 3 LBB11_111: mov DWORD PTR [esi+4], 113 LBB11_112: cmp DWORD PTR [esi+20], 0 je LBB11_119 mov edi, DWORD PTR [ebx+28] sub esp, 12 push edi call __tr_flush_bits add esp, 16 mov eax, ebx mov ebx, DWORD PTR [edi+20] mov eax, DWORD PTR [eax+16] cmp ebx, eax cmova ebx, eax test ebx, ebx je LBB11_117 sub esp, 4 push ebx push DWORD PTR [edi+16] mov eax, DWORD PTR [ebp+8] mov esi, eax push DWORD PTR [esi+12] call _memcpy add esp, 16 add DWORD PTR [esi+12], ebx add DWORD PTR [edi+16], ebx add DWORD PTR [esi+20], ebx mov eax, DWORD PTR [esi+16] sub eax, ebx mov DWORD PTR [esi+16], eax mov ecx, DWORD PTR [edi+20] sub ecx, ebx mov DWORD PTR [edi+20], ecx jne LBB11_116 mov ecx, DWORD PTR [edi+8] mov DWORD PTR [edi+16], ecx LBB11_116: mov esi, DWORD PTR [ebp-16] LBB11_117: test eax, eax mov ebx, DWORD PTR [ebp+8] jne LBB11_120 LBB11_118: mov DWORD PTR [esi+40], -1 xor eax, eax jmp LBB11_21 LBB11_119: cmp DWORD PTR [ebx+4], 0 je LBB11_182 LBB11_120: mov eax, DWORD PTR [esi+4] cmp eax, 666 mov ecx, DWORD PTR [ebx+4] jne LBB11_122 test ecx, ecx jne LBB11_184 jmp LBB11_123 LBB11_122: test ecx, ecx jne LBB11_125 LBB11_123: cmp eax, 666 sete al cmp DWORD PTR [ebp+12], 0 sete cl cmp DWORD PTR [esi+116], 0 jne LBB11_125 or cl, al jne LBB11_222 LBB11_125: mov eax, DWORD PTR [esi+136] cmp eax, 3 je LBB11_137 cmp eax, 2 jne LBB11_185 LBB11_127: cmp DWORD PTR [esi+116], 0 jne LBB11_129 mov ecx, esi call _fill_window cmp DWORD PTR [esi+116], 0 je LBB11_186 LBB11_129: mov DWORD PTR [esi+96], 0 mov eax, DWORD PTR [esi+56] mov ecx, DWORD PTR [esi+108] movzx eax, BYTE PTR [eax+ecx] mov ecx, DWORD PTR [esi+5796] mov edx, DWORD PTR [esi+5792] mov WORD PTR [ecx+edx*2], 0 mov ecx, DWORD PTR [esi+5784] lea esi, [edx+1] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+5792], esi mov esi, DWORD PTR [ebp-16] mov BYTE PTR [ecx+edx], al inc WORD PTR [esi+eax*4+148] mov ecx, DWORD PTR [esi+5788] mov edx, DWORD PTR [esi+5792] dec ecx dec DWORD PTR [esi+116] mov eax, DWORD PTR [esi+108] inc eax cmp edx, ecx mov DWORD PTR [esi+108], eax jne LBB11_127 mov ecx, DWORD PTR [esi+92] test ecx, ecx js LBB11_132 mov edx, DWORD PTR [esi+56] add edx, ecx jmp LBB11_133 LBB11_132: xor edx, edx LBB11_133: sub eax, ecx push 0 push eax push edx push esi call __tr_flush_block add esp, 16 mov eax, DWORD PTR [esi+108] mov DWORD PTR [esi+92], eax mov ebx, DWORD PTR [esi] mov edi, DWORD PTR [ebx+28] sub esp, 12 push edi call __tr_flush_bits add esp, 16 mov esi, DWORD PTR [edi+20] mov eax, DWORD PTR [ebx+16] cmp esi, eax cmova esi, eax test esi, esi je LBB11_136 sub esp, 4 push esi push DWORD PTR [edi+16] push DWORD PTR [ebx+12] call _memcpy add esp, 16 add DWORD PTR [ebx+12], esi add DWORD PTR [edi+16], esi add DWORD PTR [ebx+20], esi sub DWORD PTR [ebx+16], esi mov eax, DWORD PTR [edi+20] sub eax, esi mov DWORD PTR [edi+20], eax jne LBB11_136 mov eax, DWORD PTR [edi+8] mov DWORD PTR [edi+16], eax LBB11_136: mov esi, DWORD PTR [ebp-16] mov eax, DWORD PTR [esi] cmp DWORD PTR [eax+16], 0 mov ebx, DWORD PTR [ebp+8] jne LBB11_127 jmp LBB11_180 LBB11_140: test eax, eax je LBB11_190 mov DWORD PTR [esi+96], 0 cmp eax, 2 ja LBB11_144 mov ecx, DWORD PTR [esi+108] jmp LBB11_172 LBB11_143: mov DWORD PTR [esi+96], 0 LBB11_144: mov ecx, DWORD PTR [esi+108] test ecx, ecx je LBB11_171 mov edx, DWORD PTR [esi+56] mov bl, BYTE PTR [edx+ecx-1] cmp bl, BYTE PTR [edx+ecx] jne LBB11_160 add edx, ecx cmp bl, BYTE PTR [edx+1] jne LBB11_160 cmp bl, BYTE PTR [edx+2] jne LBB11_160 lea esi, [edx+258] mov DWORD PTR [ebp-32], esi mov DWORD PTR [ebp-20], 1 mov edi, 10 LBB11_149: cmp bl, BYTE PTR [edx+edi-7] jne LBB11_161 mov esi, DWORD PTR [ebp-20] lea esi, [edx+esi] mov DWORD PTR [ebp-24], esi cmp bl, BYTE PTR [edx+edi-6] mov esi, DWORD PTR [ebp-16] jne LBB11_163 cmp bl, BYTE PTR [edx+edi-5] jne LBB11_164 cmp bl, BYTE PTR [edx+edi-4] jne LBB11_165 cmp bl, BYTE PTR [edx+edi-3] jne LBB11_166 cmp bl, BYTE PTR [edx+edi-2] jne LBB11_167 cmp bl, BYTE PTR [edx+edi-1] jne LBB11_168 lea esi, [edi+8] cmp edi, 257 jg LBB11_158 add DWORD PTR [ebp-20], 8 cmp bl, BYTE PTR [edx+edi] mov edi, esi je LBB11_149 LBB11_158: lea edx, [esi+edx-8] jmp LBB11_162 LBB11_160: mov ebx, DWORD PTR [ebp+8] jmp LBB11_172 LBB11_171: xor ecx, ecx LBB11_172: mov eax, DWORD PTR [esi+56] movzx eax, BYTE PTR [eax+ecx] mov ecx, DWORD PTR [esi+5796] mov edx, DWORD PTR [esi+5792] mov WORD PTR [ecx+edx*2], 0 mov ecx, DWORD PTR [esi+5784] lea esi, [edx+1] mov edi, DWORD PTR [ebp-16] mov DWORD PTR [edi+5792], esi mov esi, DWORD PTR [ebp-16] mov BYTE PTR [ecx+edx], al inc WORD PTR [esi+eax*4+148] mov eax, DWORD PTR [esi+5788] dec eax xor ecx, ecx cmp DWORD PTR [esi+5792], eax sete cl dec DWORD PTR [esi+116] mov eax, DWORD PTR [esi+108] inc eax mov DWORD PTR [esi+108], eax test ecx, ecx je LBB11_137 LBB11_173: mov ecx, DWORD PTR [esi+92] test ecx, ecx js LBB11_175 mov edx, DWORD PTR [esi+56] add edx, ecx jmp LBB11_176 LBB11_175: xor edx, edx LBB11_176: sub eax, ecx push 0 push eax push edx push esi call __tr_flush_block add esp, 16 mov eax, DWORD PTR [esi+108] mov DWORD PTR [esi+92], eax mov ebx, DWORD PTR [esi] mov edi, DWORD PTR [ebx+28] sub esp, 12 push edi call __tr_flush_bits add esp, 16 mov esi, DWORD PTR [edi+20] mov eax, DWORD PTR [ebx+16] cmp esi, eax cmova esi, eax test esi, esi je LBB11_179 sub esp, 4 push esi push DWORD PTR [edi+16] push DWORD PTR [ebx+12] call _memcpy add esp, 16 add DWORD PTR [ebx+12], esi add DWORD PTR [edi+16], esi add DWORD PTR [ebx+20], esi sub DWORD PTR [ebx+16], esi mov eax, DWORD PTR [edi+20] sub eax, esi mov DWORD PTR [edi+20], eax jne LBB11_179 mov eax, DWORD PTR [edi+8] mov DWORD PTR [edi+16], eax LBB11_179: mov esi, DWORD PTR [ebp-16] mov eax, DWORD PTR [esi] cmp DWORD PTR [eax+16], 0 mov ebx, DWORD PTR [ebp+8] jne LBB11_137 jmp LBB11_180 LBB11_161: mov esi, DWORD PTR [ebp-20] lea edx, [edx+esi+2] LBB11_162: mov esi, DWORD PTR [ebp-16] jmp LBB11_169 LBB11_163: mov edx, DWORD PTR [ebp-24] add edx, 3 jmp LBB11_169 LBB11_164: mov edx, DWORD PTR [ebp-24] add edx, 4 jmp LBB11_169 LBB11_165: mov edx, DWORD PTR [ebp-24] add edx, 5 jmp LBB11_169 LBB11_166: mov edx, DWORD PTR [ebp-24] add edx, 6 jmp LBB11_169 LBB11_167: mov edx, DWORD PTR [ebp-24] add edx, 7 jmp LBB11_169 LBB11_168: mov edi, DWORD PTR [ebp-20] lea edx, [edx+edi+8] LBB11_169: sub edx, DWORD PTR [ebp-32] add edx, 258 cmp edx, eax cmova edx, eax mov DWORD PTR [esi+96], edx cmp edx, 3 mov ebx, DWORD PTR [ebp+8] jb LBB11_172 mov eax, DWORD PTR [esi+5792] mov ecx, DWORD PTR [esi+5796] mov WORD PTR [ecx+eax*2], 1 mov edi, DWORD PTR [esi+5784] mov ecx, edx lea edx, [eax+1] mov DWORD PTR [esi+5792], edx add ecx, 253 mov BYTE PTR [edi+eax], cl movzx eax, cl mov edx, DWORD PTR [ebp-28] mov ecx, DWORD PTR [edx + L__length_code$non_lazy_ptr-L11$pb] movzx eax, BYTE PTR [ecx+eax] inc WORD PTR [esi+eax*4+1176] mov eax, DWORD PTR [edx + L__dist_code$non_lazy_ptr-L11$pb] movzx eax, BYTE PTR [eax] inc WORD PTR [esi+eax*4+2440] mov eax, DWORD PTR [esi+5788] dec eax xor ecx, ecx cmp DWORD PTR [esi+5792], eax sete cl mov eax, DWORD PTR [esi+96] sub DWORD PTR [esi+116], eax add eax, DWORD PTR [esi+108] mov DWORD PTR [esi+108], eax mov DWORD PTR [esi+96], 0 test ecx, ecx jne LBB11_173 LBB11_137: mov eax, DWORD PTR [esi+116] cmp eax, 259 jae LBB11_143 mov ecx, esi call _fill_window cmp DWORD PTR [ebp+12], 0 mov eax, DWORD PTR [esi+116] jne LBB11_140 cmp eax, 259 jae LBB11_140 jmp LBB11_180 LBB11_182: xor edx, edx mov eax, DWORD PTR [ebp+12] mov edi, esi mov esi, eax cmp esi, 4 setg ch xor eax, eax cmp DWORD PTR [ebp-24], 4 setg cl cmp esi, 4 mov esi, edi je LBB11_120 mov dl, ch mov esi, DWORD PTR [ebp+12] lea esi, [esi+esi] lea edx, [edx+edx*8] sub esi, edx mov al, cl mov ecx, DWORD PTR [ebp-24] add ecx, ecx lea eax, [eax+eax*8] sub ecx, eax cmp esi, ecx mov esi, DWORD PTR [ebp-16] jg LBB11_120 LBB11_184: mov eax, DWORD PTR [ebp-28] mov eax, DWORD PTR [eax + L_z_errmsg$non_lazy_ptr-L11$pb] mov eax, DWORD PTR [eax+28] mov DWORD PTR [ebx+24], eax mov eax, -5 jmp LBB11_21 LBB11_185: mov eax, DWORD PTR [esi+132] lea eax, [eax+eax*2] sub esp, 8 push DWORD PTR [ebp+12] push esi mov ecx, DWORD PTR [ebp-28] call DWORD PTR [ecx+eax*4 + _configuration_table-L11$pb+8] add esp, 16 jmp LBB11_197 LBB11_186: cmp DWORD PTR [ebp+12], 0 je LBB11_180 mov DWORD PTR [esi+5812], 0 cmp DWORD PTR [ebp+12], 4 je LBB11_188 cmp DWORD PTR [esi+5792], 0 jne LBB11_202 jmp LBB11_211 LBB11_190: mov DWORD PTR [esi+5812], 0 cmp DWORD PTR [ebp+12], 4 jne LBB11_201 LBB11_188: mov eax, DWORD PTR [esi+92] test eax, eax js LBB11_189 mov ecx, DWORD PTR [esi+56] add ecx, eax jmp LBB11_193 LBB11_201: cmp DWORD PTR [esi+5792], 0 je LBB11_211 LBB11_202: mov eax, DWORD PTR [esi+92] test eax, eax js LBB11_203 mov ecx, DWORD PTR [esi+56] add ecx, eax jmp LBB11_207 LBB11_189: xor ecx, ecx LBB11_193: mov edx, DWORD PTR [esi+108] sub edx, eax push 1 push edx push ecx push esi call __tr_flush_block add esp, 16 mov eax, DWORD PTR [esi+108] mov DWORD PTR [esi+92], eax mov ebx, DWORD PTR [esi] mov edi, DWORD PTR [ebx+28] sub esp, 12 push edi call __tr_flush_bits add esp, 16 mov esi, DWORD PTR [edi+20] mov eax, DWORD PTR [ebx+16] cmp esi, eax cmova esi, eax test esi, esi je LBB11_196 sub esp, 4 push esi push DWORD PTR [edi+16] push DWORD PTR [ebx+12] call _memcpy add esp, 16 add DWORD PTR [ebx+12], esi add DWORD PTR [edi+16], esi add DWORD PTR [ebx+20], esi sub DWORD PTR [ebx+16], esi mov eax, DWORD PTR [edi+20] sub eax, esi mov DWORD PTR [edi+20], eax jne LBB11_196 mov eax, DWORD PTR [edi+8] mov DWORD PTR [edi+16], eax LBB11_196: mov esi, DWORD PTR [ebp-16] mov ecx, DWORD PTR [esi] xor eax, eax cmp DWORD PTR [ecx+16], 0 setne al or eax, 2 mov ebx, DWORD PTR [ebp+8] LBB11_197: mov ecx, eax or ecx, 1 cmp ecx, 3 jne LBB11_199 mov DWORD PTR [esi+4], 666 LBB11_199: mov ecx, eax or ecx, 2 cmp ecx, 2 jne LBB11_200 LBB11_180: xor eax, eax cmp DWORD PTR [ebx+16], 0 jne LBB11_21 mov DWORD PTR [esi+40], -1 jmp LBB11_21 LBB11_200: cmp eax, 1 je LBB11_211 jmp LBB11_222 LBB11_203: xor ecx, ecx LBB11_207: mov edx, DWORD PTR [esi+108] sub edx, eax push 0 push edx push ecx push esi call __tr_flush_block add esp, 16 mov eax, DWORD PTR [esi+108] mov DWORD PTR [esi+92], eax mov ebx, DWORD PTR [esi] mov edi, DWORD PTR [ebx+28] sub esp, 12 push edi call __tr_flush_bits add esp, 16 mov esi, DWORD PTR [edi+20] mov eax, DWORD PTR [ebx+16] cmp esi, eax cmova esi, eax test esi, esi je LBB11_210 sub esp, 4 push esi push DWORD PTR [edi+16] push DWORD PTR [ebx+12] call _memcpy add esp, 16 add DWORD PTR [ebx+12], esi add DWORD PTR [edi+16], esi add DWORD PTR [ebx+20], esi sub DWORD PTR [ebx+16], esi mov eax, DWORD PTR [edi+20] sub eax, esi mov DWORD PTR [edi+20], eax jne LBB11_210 mov eax, DWORD PTR [edi+8] mov DWORD PTR [edi+16], eax LBB11_210: mov esi, DWORD PTR [ebp-16] mov eax, DWORD PTR [esi] cmp DWORD PTR [eax+16], 0 mov ebx, DWORD PTR [ebp+8] je LBB11_180 LBB11_211: mov eax, DWORD PTR [ebp+12] cmp eax, 5 je LBB11_217 mov ecx, esi cmp eax, 1 mov esi, eax jne LBB11_214 sub esp, 12 mov esi, ecx push esi call __tr_align add esp, 16 jmp LBB11_217 LBB11_214: push 0 push 0 push 0 mov edi, ecx push edi call __tr_stored_block add esp, 16 cmp esi, 3 mov esi, edi jne LBB11_217 mov eax, DWORD PTR [esi+68] mov ecx, DWORD PTR [esi+76] mov WORD PTR [eax+ecx*2-2], 0 lea ecx, [ecx+ecx-2] sub esp, 8 push ecx push eax call ___bzero add esp, 16 cmp DWORD PTR [esi+116], 0 jne LBB11_217 mov DWORD PTR [esi+108], 0 mov DWORD PTR [esi+92], 0 mov DWORD PTR [esi+5812], 0 LBB11_217: mov edi, DWORD PTR [ebx+28] sub esp, 12 push edi call __tr_flush_bits add esp, 16 mov eax, ebx mov ebx, DWORD PTR [edi+20] mov eax, DWORD PTR [eax+16] cmp ebx, eax cmova ebx, eax test ebx, ebx je LBB11_221 sub esp, 4 push ebx push DWORD PTR [edi+16] mov eax, DWORD PTR [ebp+8] mov esi, eax push DWORD PTR [esi+12] call _memcpy add esp, 16 add DWORD PTR [esi+12], ebx add DWORD PTR [edi+16], ebx add DWORD PTR [esi+20], ebx mov eax, DWORD PTR [esi+16] sub eax, ebx mov DWORD PTR [esi+16], eax mov ecx, DWORD PTR [edi+20] sub ecx, ebx mov DWORD PTR [edi+20], ecx jne LBB11_220 mov ecx, DWORD PTR [edi+8] mov DWORD PTR [edi+16], ecx LBB11_220: mov esi, DWORD PTR [ebp-16] LBB11_221: test eax, eax mov ebx, DWORD PTR [ebp+8] je LBB11_118 LBB11_222: xor eax, eax cmp DWORD PTR [ebp+12], 4 jne LBB11_21 mov eax, DWORD PTR [esi+24] test eax, eax jle LBB11_226 cmp eax, 2 mov eax, DWORD PTR [ebx+48] jne LBB11_227 mov ecx, DWORD PTR [esi+8] mov edx, DWORD PTR [esi+20] mov edi, esi lea esi, [edx+1] mov DWORD PTR [edi+20], esi mov BYTE PTR [ecx+edx], al mov al, BYTE PTR [ebx+49] mov ecx, DWORD PTR [edi+8] mov edx, DWORD PTR [edi+20] lea esi, [edx+1] mov DWORD PTR [edi+20], esi mov BYTE PTR [ecx+edx], al mov al, BYTE PTR [ebx+50] mov ecx, DWORD PTR [edi+8] mov edx, DWORD PTR [edi+20] lea esi, [edx+1] mov DWORD PTR [edi+20], esi mov BYTE PTR [ecx+edx], al mov al, BYTE PTR [ebx+51] mov ecx, DWORD PTR [edi+8] mov edx, DWORD PTR [edi+20] lea esi, [edx+1] mov DWORD PTR [edi+20], esi mov BYTE PTR [ecx+edx], al mov al, BYTE PTR [ebx+8] mov ecx, DWORD PTR [edi+8] mov edx, DWORD PTR [edi+20] lea esi, [edx+1] mov DWORD PTR [edi+20], esi mov BYTE PTR [ecx+edx], al mov al, BYTE PTR [ebx+9] mov ecx, DWORD PTR [edi+8] mov edx, DWORD PTR [edi+20] lea esi, [edx+1] mov DWORD PTR [edi+20], esi mov BYTE PTR [ecx+edx], al mov al, BYTE PTR [ebx+10] mov ecx, DWORD PTR [edi+8] mov edx, DWORD PTR [edi+20] lea esi, [edx+1] mov DWORD PTR [edi+20], esi mov BYTE PTR [ecx+edx], al mov al, BYTE PTR [ebx+11] mov ecx, DWORD PTR [edi+8] mov edx, DWORD PTR [edi+20] lea esi, [edx+1] mov DWORD PTR [edi+20], esi mov BYTE PTR [ecx+edx], al jmp LBB11_228 LBB11_226: mov eax, 1 jmp LBB11_21 LBB11_227: mov ecx, DWORD PTR [esi+8] mov edx, DWORD PTR [esi+20] mov edi, esi lea esi, [edx+1] mov DWORD PTR [edi+20], esi mov ebx, eax shr ebx, 16 shr eax, 24 mov BYTE PTR [ecx+edx], al mov eax, DWORD PTR [edi+8] mov ecx, DWORD PTR [edi+20] lea edx, [ecx+1] mov DWORD PTR [edi+20], edx mov BYTE PTR [eax+ecx], bl mov ebx, DWORD PTR [ebp+8] mov eax, DWORD PTR [ebx+48] mov ecx, DWORD PTR [edi+8] mov edx, DWORD PTR [edi+20] lea esi, [edx+1] mov DWORD PTR [edi+20], esi mov BYTE PTR [ecx+edx], ah mov ecx, DWORD PTR [edi+8] mov edx, DWORD PTR [edi+20] lea esi, [edx+1] mov DWORD PTR [edi+20], esi mov BYTE PTR [ecx+edx], al LBB11_228: mov edi, DWORD PTR [ebx+28] sub esp, 12 push edi call __tr_flush_bits add esp, 16 mov esi, DWORD PTR [edi+20] mov eax, DWORD PTR [ebx+16] cmp esi, eax cmova esi, eax test esi, esi je LBB11_231 sub esp, 4 push esi push DWORD PTR [edi+16] push DWORD PTR [ebx+12] call _memcpy add esp, 16 add DWORD PTR [ebx+12], esi add DWORD PTR [edi+16], esi add DWORD PTR [ebx+20], esi sub DWORD PTR [ebx+16], esi mov eax, DWORD PTR [edi+20] sub eax, esi mov DWORD PTR [edi+20], eax jne LBB11_231 mov eax, DWORD PTR [edi+8] mov DWORD PTR [edi+16], eax LBB11_231: mov ecx, DWORD PTR [ebp-16] mov eax, DWORD PTR [ecx+24] test eax, eax jle LBB11_233 neg eax mov DWORD PTR [ecx+24], eax LBB11_233: xor eax, eax cmp DWORD PTR [ecx+20], 0 sete al jmp LBB11_21 # ---------------------- .p2align 4, 0x90 # ---------------------- .globl _deflateTune _deflateTune: push ebp mov ebp, esp push edi push esi mov ecx, DWORD PTR [ebp+8] mov eax, -2 test ecx, ecx je LBB12_3 mov ecx, DWORD PTR [ecx+28] test ecx, ecx je LBB12_3 mov eax, DWORD PTR [ebp+24] mov edx, DWORD PTR [ebp+20] mov esi, DWORD PTR [ebp+16] mov edi, DWORD PTR [ebp+12] mov DWORD PTR [ecx+140], edi mov DWORD PTR [ecx+128], esi mov DWORD PTR [ecx+144], edx mov DWORD PTR [ecx+124], eax xor eax, eax LBB12_3: pop esi pop edi pop ebp ret # ---------------------- .p2align 4, 0x90 # ---------------------- .globl _deflateBound _deflateBound: push ebp mov ebp, esp push ebx push edi push esi sub esp, 12 mov edx, DWORD PTR [ebp+12] mov ecx, DWORD PTR [ebp+8] lea ebx, [edx+7] mov eax, ebx shr eax, 3 add eax, edx lea esi, [edx+63] shr esi, 6 test ecx, ecx je LBB13_2 mov edi, DWORD PTR [ecx+28] test edi, edi je LBB13_2 mov ecx, DWORD PTR [edi+24] test ecx, ecx je LBB13_4 cmp ecx, 2 je LBB13_8 cmp ecx, 1 jne LBB13_18 xor ecx, ecx cmp DWORD PTR [edi+108], 0 setne cl lea ecx, [6+ecx*4] cmp DWORD PTR [edi+48], 15 je LBB13_20 jmp LBB13_21 LBB13_2: add eax, esi add eax, 11 jmp LBB13_23 LBB13_4: xor ecx, ecx cmp DWORD PTR [edi+48], 15 je LBB13_20 jmp LBB13_21 LBB13_8: mov ecx, DWORD PTR [edi+28] test ecx, ecx je LBB13_9 mov DWORD PTR [ebp-24], ebx cmp DWORD PTR [ecx+16], 0 je LBB13_11 mov ebx, DWORD PTR [ecx+20] add ebx, 20 jmp LBB13_13 LBB13_18: mov ecx, 6 cmp DWORD PTR [edi+48], 15 je LBB13_20 jmp LBB13_21 LBB13_9: mov ecx, 18 cmp DWORD PTR [edi+48], 15 je LBB13_20 jmp LBB13_21 LBB13_11: mov ebx, 18 LBB13_13: mov DWORD PTR [ebp-16], ecx mov ecx, DWORD PTR [ecx+28] test ecx, ecx je LBB13_15 # ---------------------- .p2align 4, 0x90 LBB13_14: inc ebx cmp BYTE PTR [ecx], 0 lea ecx, [ecx+1] jne LBB13_14 LBB13_15: mov ecx, DWORD PTR [ebp-16] mov ecx, DWORD PTR [ecx+36] test ecx, ecx je LBB13_17 # ---------------------- .p2align 4, 0x90 LBB13_16: inc ebx cmp BYTE PTR [ecx], 0 lea ecx, [ecx+1] jne LBB13_16 LBB13_17: lea ecx, [ebx+2] mov DWORD PTR [ebp-20], ecx mov ecx, DWORD PTR [ebp-16] cmp DWORD PTR [ecx+44], 0 mov ecx, DWORD PTR [ebp-20] cmove ecx, ebx mov ebx, DWORD PTR [ebp-24] cmp DWORD PTR [edi+48], 15 jne LBB13_21 LBB13_20: cmp DWORD PTR [edi+80], 15 jne LBB13_21 mov eax, edx shr eax, 12 mov esi, ecx mov ecx, edx shr ecx, 14 shr edx, 25 add ebx, eax add ebx, ecx add ebx, edx add ebx, esi mov eax, ebx jmp LBB13_23 LBB13_21: lea eax, [esi+eax+5] add eax, ecx LBB13_23: add esp, 12 pop esi pop edi pop ebx pop ebp ret # ---------------------- .p2align 4, 0x90 # ---------------------- .globl _deflateCopy _deflateCopy: push ebp mov ebp, esp push ebx push edi push esi sub esp, 12 call L14$pb L14$pb: pop edx mov ebx, DWORD PTR [ebp+8] test ebx, ebx mov esi, -2 je LBB14_22 mov eax, DWORD PTR [ebp+12] test eax, eax je LBB14_22 mov ecx, DWORD PTR [eax+28] mov DWORD PTR [ebp-16], ecx test ecx, ecx je LBB14_22 mov DWORD PTR [ebp-20], edx movsd xmm0, QWORD PTR [eax+48] movsd QWORD PTR [ebx+48], xmm0 movsd xmm0, QWORD PTR [eax+40] movsd QWORD PTR [ebx+40], xmm0 movsd xmm0, QWORD PTR [eax+32] movsd QWORD PTR [ebx+32], xmm0 movsd xmm0, QWORD PTR [eax+24] movsd QWORD PTR [ebx+24], xmm0 movsd xmm0, QWORD PTR [eax+16] movsd QWORD PTR [ebx+16], xmm0 movsd xmm0, QWORD PTR [eax] movsd xmm1, QWORD PTR [eax+8] movsd QWORD PTR [ebx+8], xmm1 movsd QWORD PTR [ebx], xmm0 sub esp, 4 push 5828 push 1 push DWORD PTR [ebx+40] call DWORD PTR [ebx+32] add esp, 16 mov edi, eax mov esi, -4 test edi, edi je LBB14_22 mov DWORD PTR [ebx+28], edi sub esp, 4 push 5828 push DWORD PTR [ebp-16] push edi call _memcpy add esp, 16 mov DWORD PTR [edi], ebx sub esp, 4 push 2 push DWORD PTR [edi+44] push DWORD PTR [ebx+40] call DWORD PTR [ebx+32] add esp, 16 mov DWORD PTR [edi+56], eax sub esp, 4 push 2 push DWORD PTR [edi+44] push DWORD PTR [ebx+40] call DWORD PTR [ebx+32] add esp, 16 mov DWORD PTR [edi+64], eax sub esp, 4 push 2 push DWORD PTR [edi+76] push DWORD PTR [ebx+40] call DWORD PTR [ebx+32] add esp, 16 mov DWORD PTR [edi+68], eax sub esp, 4 push 4 push DWORD PTR [edi+5788] push DWORD PTR [ebx+40] call DWORD PTR [ebx+32] add esp, 16 mov DWORD PTR [edi+8], eax mov edx, DWORD PTR [edi+56] test edx, edx je LBB14_8 cmp DWORD PTR [edi+64], 0 je LBB14_8 test eax, eax je LBB14_8 mov ecx, DWORD PTR [edi+68] test ecx, ecx je LBB14_8 mov ecx, DWORD PTR [edi+44] add ecx, ecx sub esp, 4 push ecx mov esi, DWORD PTR [ebp-16] push DWORD PTR [esi+56] push edx mov ebx, eax call _memcpy add esp, 16 mov eax, DWORD PTR [edi+44] add eax, eax sub esp, 4 push eax push DWORD PTR [esi+64] push DWORD PTR [edi+64] call _memcpy add esp, 16 mov eax, DWORD PTR [edi+76] add eax, eax sub esp, 4 push eax push DWORD PTR [esi+68] push DWORD PTR [edi+68] call _memcpy add esp, 12 push DWORD PTR [edi+12] push DWORD PTR [esi+8] push DWORD PTR [edi+8] call _memcpy add esp, 16 mov eax, DWORD PTR [edi+8] mov ecx, DWORD PTR [esi+16] sub ecx, DWORD PTR [esi+8] add ecx, eax mov DWORD PTR [edi+16], ecx mov ecx, DWORD PTR [edi+5788] lea edx, [ecx+ecx*2] and ecx, -2 add ebx, ecx mov DWORD PTR [edi+5796], ebx add edx, eax mov DWORD PTR [edi+5784], edx lea eax, [edi+148] mov DWORD PTR [edi+2840], eax lea eax, [edi+2440] mov DWORD PTR [edi+2852], eax mov eax, edi add eax, 2684 mov DWORD PTR [edi+2864], eax xor esi, esi jmp LBB14_22 LBB14_8: mov eax, DWORD PTR [ebx+28] test eax, eax je LBB14_22 mov ecx, DWORD PTR [eax+4] lea edx, [ecx-69] cmp edx, 44 ja LBB14_10 mov ecx, DWORD PTR [ebp-20] add ecx, DWORD PTR [ecx+edx*4 + Ltmp2] jmp ecx LBB14_12: mov ecx, DWORD PTR [eax+8] test ecx, ecx je LBB14_14 sub esp, 8 push ecx push DWORD PTR [ebx+40] call DWORD PTR [ebx+36] add esp, 16 mov eax, DWORD PTR [ebx+28] LBB14_14: mov ecx, DWORD PTR [eax+68] test ecx, ecx je LBB14_16 sub esp, 8 push ecx push DWORD PTR [ebx+40] call DWORD PTR [ebx+36] add esp, 16 mov eax, DWORD PTR [ebx+28] LBB14_16: mov ecx, DWORD PTR [eax+64] test ecx, ecx je LBB14_18 sub esp, 8 push ecx push DWORD PTR [ebx+40] call DWORD PTR [ebx+36] add esp, 16 mov eax, DWORD PTR [ebx+28] LBB14_18: mov ecx, DWORD PTR [eax+56] test ecx, ecx je LBB14_20 sub esp, 8 push ecx push DWORD PTR [ebx+40] call DWORD PTR [ebx+36] add esp, 16 mov eax, DWORD PTR [ebx+28] LBB14_20: sub esp, 8 push eax push DWORD PTR [ebx+40] call DWORD PTR [ebx+36] add esp, 16 mov DWORD PTR [ebx+28], 0 LBB14_22: mov eax, esi add esp, 12 pop esi pop edi pop ebx pop ebp ret LBB14_10: cmp ecx, 666 je LBB14_12 cmp ecx, 42 je LBB14_12 jmp LBB14_22 # ---------------------- .p2align 2, 0x90 LJTI14_0: .long L14_0_set_12 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_12 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_12 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_12 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_22 .long L14_0_set_12 # ---------------------- .p2align 4, 0x90 _deflate_stored: push ebp mov ebp, esp push ebx push edi push esi sub esp, 12 mov esi, DWORD PTR [ebp+8] mov eax, DWORD PTR [esi+12] add eax, -5 cmp eax, 65535 mov ecx, 65535 cmovb ecx, eax mov DWORD PTR [ebp-16], ecx # ---------------------- .p2align 4, 0x90 LBB15_1: mov eax, DWORD PTR [esi+116] cmp eax, 1 ja LBB15_4 mov ecx, esi call _fill_window mov eax, DWORD PTR [esi+116] mov ecx, eax or ecx, DWORD PTR [ebp+12] je LBB15_23 test eax, eax je LBB15_24 LBB15_4: mov edx, DWORD PTR [esi+108] lea ecx, [eax+edx] mov DWORD PTR [esi+108], ecx mov DWORD PTR [esi+116], 0 mov ecx, DWORD PTR [esi+92] add eax, edx mov edx, DWORD PTR [ebp-16] lea edx, [ecx+edx] je LBB15_6 cmp eax, edx jb LBB15_14 LBB15_6: sub eax, edx mov DWORD PTR [esi+116], eax mov DWORD PTR [esi+108], edx test ecx, ecx js LBB15_8 add ecx, DWORD PTR [esi+56] jmp LBB15_9 LBB15_8: xor ecx, ecx LBB15_9: push 0 push DWORD PTR [ebp-16] push ecx push esi call __tr_flush_block add esp, 16 mov eax, DWORD PTR [esi+108] mov DWORD PTR [esi+92], eax mov ebx, DWORD PTR [esi] mov edi, DWORD PTR [ebx+28] sub esp, 12 push edi call __tr_flush_bits add esp, 16 mov esi, DWORD PTR [edi+20] mov eax, DWORD PTR [ebx+16] cmp esi, eax cmova esi, eax test esi, esi je LBB15_12 sub esp, 4 push esi push DWORD PTR [edi+16] push DWORD PTR [ebx+12] call _memcpy add esp, 16 add DWORD PTR [ebx+12], esi add DWORD PTR [edi+16], esi add DWORD PTR [ebx+20], esi sub DWORD PTR [ebx+16], esi mov eax, DWORD PTR [edi+20] sub eax, esi mov DWORD PTR [edi+20], eax jne LBB15_12 mov eax, DWORD PTR [edi+8] mov DWORD PTR [edi+16], eax LBB15_12: mov esi, DWORD PTR [ebp+8] mov eax, DWORD PTR [esi] cmp DWORD PTR [eax+16], 0 je LBB15_27 mov ecx, DWORD PTR [esi+92] mov eax, DWORD PTR [esi+108] LBB15_14: sub eax, ecx mov edx, DWORD PTR [esi+44] mov edi, -262 add edx, edi cmp eax, edx jb LBB15_1 test ecx, ecx js LBB15_17 add ecx, DWORD PTR [esi+56] jmp LBB15_18 LBB15_17: xor ecx, ecx LBB15_18: push 0 push eax push ecx push esi call __tr_flush_block add esp, 16 mov eax, DWORD PTR [esi+108] mov DWORD PTR [esi+92], eax mov ebx, DWORD PTR [esi] mov edi, DWORD PTR [ebx+28] sub esp, 12 push edi call __tr_flush_bits add esp, 16 mov esi, DWORD PTR [edi+20] mov eax, DWORD PTR [ebx+16] cmp esi, eax cmova esi, eax test esi, esi je LBB15_21 sub esp, 4 push esi push DWORD PTR [edi+16] push DWORD PTR [ebx+12] call _memcpy add esp, 16 add DWORD PTR [ebx+12], esi add DWORD PTR [edi+16], esi add DWORD PTR [ebx+20], esi sub DWORD PTR [ebx+16], esi mov eax, DWORD PTR [edi+20] sub eax, esi mov DWORD PTR [edi+20], eax jne LBB15_21 mov eax, DWORD PTR [edi+8] mov DWORD PTR [edi+16], eax LBB15_21: mov esi, DWORD PTR [ebp+8] mov eax, DWORD PTR [esi] cmp DWORD PTR [eax+16], 0 jne LBB15_1 LBB15_23: xor eax, eax jmp LBB15_42 LBB15_24: mov DWORD PTR [esi+5812], 0 cmp DWORD PTR [ebp+12], 4 jne LBB15_28 mov eax, DWORD PTR [esi+92] test eax, eax js LBB15_31 mov ecx, DWORD PTR [esi+56] add ecx, eax jmp LBB15_32 LBB15_27: xor eax, eax jmp LBB15_42 LBB15_28: mov eax, DWORD PTR [esi+92] mov ecx, DWORD PTR [esi+108] sub ecx, eax jle LBB15_41 test eax, eax js LBB15_36 add eax, DWORD PTR [esi+56] jmp LBB15_37 LBB15_31: xor ecx, ecx LBB15_32: mov edx, DWORD PTR [esi+108] sub edx, eax push 1 push edx push ecx push esi call __tr_flush_block add esp, 16 mov eax, DWORD PTR [esi+108] mov DWORD PTR [esi+92], eax mov ebx, DWORD PTR [esi] mov edi, DWORD PTR [ebx+28] sub esp, 12 push edi call __tr_flush_bits add esp, 16 mov esi, DWORD PTR [edi+20] mov eax, DWORD PTR [ebx+16] cmp esi, eax cmova esi, eax test esi, esi je LBB15_35 sub esp, 4 push esi push DWORD PTR [edi+16] push DWORD PTR [ebx+12] call _memcpy add esp, 16 add DWORD PTR [ebx+12], esi add DWORD PTR [edi+16], esi add DWORD PTR [ebx+20], esi sub DWORD PTR [ebx+16], esi mov eax, DWORD PTR [edi+20] sub eax, esi mov DWORD PTR [edi+20], eax jne LBB15_35 mov eax, DWORD PTR [edi+8] mov DWORD PTR [edi+16], eax LBB15_35: mov eax, DWORD PTR [ebp+8] mov ecx, DWORD PTR [eax] xor eax, eax cmp DWORD PTR [ecx+16], 0 setne al or eax, 2 jmp LBB15_42 LBB15_36: xor eax, eax LBB15_37: push 0 push ecx push eax push esi call __tr_flush_block add esp, 16 mov eax, DWORD PTR [esi+108] mov DWORD PTR [esi+92], eax mov ebx, DWORD PTR [esi] mov edi, DWORD PTR [ebx+28] sub esp, 12 push edi call __tr_flush_bits add esp, 16 mov esi, DWORD PTR [edi+20] mov eax, DWORD PTR [ebx+16] cmp esi, eax cmova esi, eax test esi, esi je LBB15_40 sub esp, 4 push esi push DWORD PTR [edi+16] push DWORD PTR [ebx+12] call _memcpy add esp, 16 add DWORD PTR [ebx+12], esi add DWORD PTR [edi+16], esi add DWORD PTR [ebx+20], esi sub DWORD PTR [ebx+16], esi mov eax, DWORD PTR [edi+20] sub eax, esi mov DWORD PTR [edi+20], eax jne LBB15_40 mov eax, DWORD PTR [edi+8] mov DWORD PTR [edi+16], eax LBB15_40: mov eax, DWORD PTR [ebp+8] mov eax, DWORD PTR [eax] cmp DWORD PTR [eax+16], 0 je LBB15_43 LBB15_41: mov eax, 1 LBB15_42: add esp, 12 pop esi pop edi pop ebx pop ebp ret LBB15_43: xor eax, eax jmp LBB15_42 # ---------------------- .p2align 4, 0x90 _deflate_fast: push ebp mov ebp, esp push ebx push edi push esi sub esp, 44 call L16$pb L16$pb: pop eax mov DWORD PTR [ebp-28], eax mov ebx, DWORD PTR [ebp+8] # ---------------------- .p2align 4, 0x90 LBB16_1: cmp DWORD PTR [ebx+116], 261 ja LBB16_6 mov ecx, ebx call _fill_window cmp DWORD PTR [ebp+12], 0 mov eax, DWORD PTR [ebx+116] jne LBB16_4 cmp eax, 262 jb LBB16_43 LBB16_4: test eax, eax je LBB16_26 cmp eax, 3 jb LBB16_8 LBB16_6: mov edx, DWORD PTR [ebx+56] mov esi, DWORD PTR [ebx+72] mov cl, BYTE PTR [ebx+88] shl esi, cl mov eax, DWORD PTR [ebx+108] movzx ecx, BYTE PTR [edx+eax+2] xor ecx, esi and ecx, DWORD PTR [ebx+84] mov DWORD PTR [ebx+72], ecx mov esi, DWORD PTR [ebx+64] mov edi, DWORD PTR [ebx+68] mov edx, DWORD PTR [ebp+8] mov ebx, DWORD PTR [edx+52] and ebx, eax movzx edx, WORD PTR [edi+ecx*2] mov WORD PTR [esi+ebx*2], dx mov ebx, DWORD PTR [ebp+8] mov WORD PTR [edi+ecx*2], ax test edx, edx je LBB16_8 sub eax, edx mov ecx, DWORD PTR [ebx+44] mov esi, -262 add ecx, esi cmp eax, ecx jbe LBB16_9 LBB16_8: mov eax, DWORD PTR [ebx+96] cmp eax, 3 jae LBB16_10 jmp LBB16_15 # ---------------------- .p2align 4, 0x90 LBB16_9: mov ecx, ebx call _longest_match mov DWORD PTR [ebx+96], eax cmp eax, 3 jb LBB16_15 LBB16_10: mov ecx, DWORD PTR [ebx+108] sub ecx, DWORD PTR [ebx+112] mov edx, DWORD PTR [ebx+5796] mov esi, DWORD PTR [ebx+5792] mov WORD PTR [edx+esi*2], cx mov edx, DWORD PTR [ebx+5784] lea edi, [esi+1] mov DWORD PTR [ebx+5792], edi add eax, 253 mov BYTE PTR [edx+esi], al add ecx, 65535 movzx eax, al mov esi, DWORD PTR [ebp-28] mov edx, DWORD PTR [esi + L__length_code$non_lazy_ptr-L16$pb] movzx eax, BYTE PTR [edx+eax] inc WORD PTR [ebx+eax*4+1176] movzx eax, cx mov ecx, eax shr ecx, 7 add ecx, 256 cmp eax, 256 cmovb ecx, eax mov eax, DWORD PTR [esi + L__dist_code$non_lazy_ptr-L16$pb] movzx eax, BYTE PTR [eax+ecx] inc WORD PTR [ebx+eax*4+2440] mov eax, DWORD PTR [ebx+5788] dec eax xor ecx, ecx cmp DWORD PTR [ebx+5792], eax sete cl mov edi, DWORD PTR [ebx+96] mov eax, DWORD PTR [ebx+116] sub eax, edi mov DWORD PTR [ebx+116], eax cmp eax, 3 jb LBB16_16 cmp edi, DWORD PTR [ebx+128] ja LBB16_16 mov DWORD PTR [ebp-24], ecx lea eax, [edi-1] mov DWORD PTR [ebx+96], eax mov eax, edi mov edi, DWORD PTR [ebx+108] mov esi, DWORD PTR [ebx+72] mov ecx, DWORD PTR [ebx+88] mov DWORD PTR [ebp-36], ecx mov edx, DWORD PTR [ebx+52] mov DWORD PTR [ebp-48], edx add eax, -2 inc edi mov edx, DWORD PTR [ebx+56] mov DWORD PTR [ebp-44], edx mov edx, DWORD PTR [ebx+84] mov DWORD PTR [ebp-40], edx mov edx, DWORD PTR [ebx+68] mov DWORD PTR [ebp-20], edx mov ecx, DWORD PTR [ebx+64] mov DWORD PTR [ebp-32], ecx # ---------------------- .p2align 4, 0x90 LBB16_13: mov DWORD PTR [ebx+108], edi mov ecx, DWORD PTR [ebp-36] shl esi, cl mov edx, DWORD PTR [ebp-44] movzx edx, BYTE PTR [edx+edi+2] xor edx, esi and edx, DWORD PTR [ebp-40] mov DWORD PTR [ebx+72], edx mov ecx, DWORD PTR [ebp-20] movzx esi, WORD PTR [ecx+edx*2] mov WORD PTR [ebp-14], si mov ebx, DWORD PTR [ebp-48] and ebx, edi mov esi, DWORD PTR [ebp-32] movzx ecx, WORD PTR [ebp-14] mov WORD PTR [esi+ebx*2], cx mov ebx, DWORD PTR [ebp+8] mov ecx, DWORD PTR [ebp-20] mov WORD PTR [ecx+edx*2], di mov DWORD PTR [ebx+96], eax dec eax inc edi cmp eax, -1 mov esi, edx jne LBB16_13 mov DWORD PTR [ebx+108], edi mov ecx, DWORD PTR [ebp-24] test ecx, ecx je LBB16_1 jmp LBB16_17 # ---------------------- .p2align 4, 0x90 LBB16_15: mov eax, DWORD PTR [ebx+56] mov ecx, DWORD PTR [ebx+108] movzx eax, BYTE PTR [eax+ecx] mov ecx, DWORD PTR [ebx+5796] mov edx, DWORD PTR [ebx+5792] mov WORD PTR [ecx+edx*2], 0 mov ecx, DWORD PTR [ebx+5784] lea esi, [edx+1] mov DWORD PTR [ebx+5792], esi mov BYTE PTR [ecx+edx], al inc WORD PTR [ebx+eax*4+148] mov eax, DWORD PTR [ebx+5788] dec eax xor ecx, ecx cmp DWORD PTR [ebx+5792], eax sete cl dec DWORD PTR [ebx+116] mov edi, DWORD PTR [ebx+108] inc edi mov DWORD PTR [ebx+108], edi test ecx, ecx je LBB16_1 jmp LBB16_17 # ---------------------- .p2align 4, 0x90 LBB16_16: add edi, DWORD PTR [ebx+108] mov DWORD PTR [ebx+108], edi mov DWORD PTR [ebx+96], 0 mov eax, DWORD PTR [ebx+56] movzx edx, BYTE PTR [eax+edi] mov DWORD PTR [ebx+72], edx mov esi, ecx mov cl, BYTE PTR [ebx+88] shl edx, cl mov ecx, esi movzx eax, BYTE PTR [eax+edi+1] xor eax, edx and eax, DWORD PTR [ebx+84] mov DWORD PTR [ebx+72], eax test ecx, ecx je LBB16_1 LBB16_17: mov eax, DWORD PTR [ebx+92] test eax, eax js LBB16_19 mov ecx, DWORD PTR [ebx+56] add ecx, eax jmp LBB16_20 LBB16_19: xor ecx, ecx LBB16_20: sub edi, eax push 0 push edi push ecx push ebx call __tr_flush_block add esp, 16 mov eax, DWORD PTR [ebx+108] mov DWORD PTR [ebx+92], eax mov edi, DWORD PTR [ebx] mov esi, DWORD PTR [edi+28] sub esp, 12 push esi call __tr_flush_bits add esp, 16 mov ebx, DWORD PTR [esi+20] mov eax, DWORD PTR [edi+16] cmp ebx, eax cmova ebx, eax test ebx, ebx je LBB16_23 sub esp, 4 push ebx push DWORD PTR [esi+16] push DWORD PTR [edi+12] call _memcpy add esp, 16 add DWORD PTR [edi+12], ebx add DWORD PTR [esi+16], ebx add DWORD PTR [edi+20], ebx sub DWORD PTR [edi+16], ebx mov eax, DWORD PTR [esi+20] sub eax, ebx mov DWORD PTR [esi+20], eax jne LBB16_23 mov eax, DWORD PTR [esi+8] mov DWORD PTR [esi+16], eax LBB16_23: mov ebx, DWORD PTR [ebp+8] mov eax, DWORD PTR [ebx] cmp DWORD PTR [eax+16], 0 jne LBB16_1 LBB16_43: xor eax, eax LBB16_44: add esp, 44 pop esi pop edi pop ebx pop ebp ret LBB16_26: mov eax, DWORD PTR [ebx+108] cmp eax, 2 mov ecx, 2 cmovb ecx, eax mov DWORD PTR [ebx+5812], ecx cmp DWORD PTR [ebp+12], 4 jne LBB16_29 mov ecx, DWORD PTR [ebx+92] test ecx, ecx js LBB16_32 mov edx, DWORD PTR [ebx+56] add edx, ecx jmp LBB16_33 LBB16_29: cmp DWORD PTR [ebx+5792], 0 je LBB16_42 mov ecx, DWORD PTR [ebx+92] test ecx, ecx js LBB16_37 mov edx, DWORD PTR [ebx+56] add edx, ecx jmp LBB16_38 LBB16_32: xor edx, edx LBB16_33: sub eax, ecx push 1 push eax push edx push ebx call __tr_flush_block add esp, 16 mov eax, DWORD PTR [ebx+108] mov DWORD PTR [ebx+92], eax mov edi, DWORD PTR [ebx] mov esi, DWORD PTR [edi+28] sub esp, 12 push esi call __tr_flush_bits add esp, 16 mov ebx, DWORD PTR [esi+20] mov eax, DWORD PTR [edi+16] cmp ebx, eax cmova ebx, eax test ebx, ebx je LBB16_36 sub esp, 4 push ebx push DWORD PTR [esi+16] push DWORD PTR [edi+12] call _memcpy add esp, 16 add DWORD PTR [edi+12], ebx add DWORD PTR [esi+16], ebx add DWORD PTR [edi+20], ebx sub DWORD PTR [edi+16], ebx mov eax, DWORD PTR [esi+20] sub eax, ebx mov DWORD PTR [esi+20], eax jne LBB16_36 mov eax, DWORD PTR [esi+8] mov DWORD PTR [esi+16], eax LBB16_36: mov eax, DWORD PTR [ebp+8] mov ecx, DWORD PTR [eax] xor eax, eax cmp DWORD PTR [ecx+16], 0 setne al or eax, 2 jmp LBB16_44 LBB16_37: xor edx, edx LBB16_38: sub eax, ecx push 0 push eax push edx push ebx call __tr_flush_block add esp, 16 mov eax, DWORD PTR [ebx+108] mov DWORD PTR [ebx+92], eax mov edi, DWORD PTR [ebx] mov esi, DWORD PTR [edi+28] sub esp, 12 push esi call __tr_flush_bits add esp, 16 mov ebx, DWORD PTR [esi+20] mov eax, DWORD PTR [edi+16] cmp ebx, eax cmova ebx, eax test ebx, ebx je LBB16_41 sub esp, 4 push ebx push DWORD PTR [esi+16] push DWORD PTR [edi+12] call _memcpy add esp, 16 add DWORD PTR [edi+12], ebx add DWORD PTR [esi+16], ebx add DWORD PTR [edi+20], ebx sub DWORD PTR [edi+16], ebx mov eax, DWORD PTR [esi+20] sub eax, ebx mov DWORD PTR [esi+20], eax jne LBB16_41 mov eax, DWORD PTR [esi+8] mov DWORD PTR [esi+16], eax LBB16_41: mov eax, DWORD PTR [ebp+8] mov eax, DWORD PTR [eax] cmp DWORD PTR [eax+16], 0 je LBB16_43 LBB16_42: mov eax, 1 jmp LBB16_44 # ---------------------- .p2align 4, 0x90 _deflate_slow: push ebp mov ebp, esp push ebx push edi push esi sub esp, 60 call L17$pb L17$pb: pop eax mov DWORD PTR [ebp-32], eax mov esi, DWORD PTR [ebp+8] LBB17_1: mov eax, DWORD PTR [esi+116] cmp eax, 261 ja LBB17_8 jmp LBB17_4 # ---------------------- .p2align 4, 0x90 LBB17_2: mov DWORD PTR [esi+104], 1 inc DWORD PTR [esi+108] mov eax, DWORD PTR [esi+116] dec eax mov DWORD PTR [esi+116], eax LBB17_3: cmp eax, 261 ja LBB17_8 LBB17_4: mov ecx, esi call _fill_window cmp DWORD PTR [ebp+12], 0 mov eax, DWORD PTR [esi+116] jne LBB17_6 cmp eax, 262 jb LBB17_64 LBB17_6: test eax, eax je LBB17_45 cmp eax, 2 jbe LBB17_15 LBB17_8: mov eax, DWORD PTR [esi+56] mov edx, DWORD PTR [esi+72] mov cl, BYTE PTR [esi+88] shl edx, cl mov ecx, DWORD PTR [esi+108] movzx eax, BYTE PTR [eax+ecx+2] xor eax, edx and eax, DWORD PTR [esi+84] mov DWORD PTR [esi+72], eax mov edx, DWORD PTR [ebp+8] mov esi, DWORD PTR [edx+64] mov edx, DWORD PTR [ebp+8] mov edi, DWORD PTR [edx+68] mov edx, DWORD PTR [ebp+8] mov ebx, DWORD PTR [edx+52] and ebx, ecx movzx edx, WORD PTR [edi+eax*2] mov WORD PTR [esi+ebx*2], dx mov esi, DWORD PTR [ebp+8] mov WORD PTR [edi+eax*2], cx mov ecx, DWORD PTR [esi+96] mov DWORD PTR [esi+120], ecx mov eax, DWORD PTR [esi+112] mov DWORD PTR [esi+100], eax test edx, edx mov DWORD PTR [esi+96], 2 je LBB17_17 mov eax, 2 cmp ecx, DWORD PTR [esi+128] jae LBB17_19 mov eax, DWORD PTR [esi+108] sub eax, edx mov ecx, DWORD PTR [esi+44] mov edi, -262 add ecx, edi cmp eax, ecx mov eax, 2 ja LBB17_18 mov ecx, esi call _longest_match mov DWORD PTR [esi+96], eax cmp eax, 5 ja LBB17_18 cmp DWORD PTR [esi+136], 1 je LBB17_16 cmp eax, 3 jne LBB17_18 mov ecx, DWORD PTR [esi+108] sub ecx, DWORD PTR [esi+112] mov eax, 3 cmp ecx, 4097 jae LBB17_16 jmp LBB17_18 # ---------------------- .p2align 4, 0x90 LBB17_15: mov eax, DWORD PTR [esi+96] mov DWORD PTR [esi+120], eax mov eax, DWORD PTR [esi+112] mov DWORD PTR [esi+100], eax LBB17_16: mov DWORD PTR [esi+96], 2 LBB17_17: mov eax, 2 LBB17_18: mov ecx, DWORD PTR [esi+120] LBB17_19: cmp ecx, 3 jb LBB17_21 cmp eax, ecx jbe LBB17_30 LBB17_21: cmp DWORD PTR [esi+104], 0 je LBB17_2 mov eax, DWORD PTR [esi+56] mov ecx, DWORD PTR [esi+108] movzx eax, BYTE PTR [eax+ecx-1] mov ecx, DWORD PTR [esi+5796] mov edx, DWORD PTR [esi+5792] mov WORD PTR [ecx+edx*2], 0 mov ecx, DWORD PTR [esi+5784] mov edi, esi lea esi, [edx+1] mov DWORD PTR [edi+5792], esi mov BYTE PTR [ecx+edx], al inc WORD PTR [edi+eax*4+148] mov eax, DWORD PTR [edi+5788] dec eax cmp DWORD PTR [edi+5792], eax jne LBB17_29 mov eax, DWORD PTR [edi+92] test eax, eax js LBB17_25 mov ecx, DWORD PTR [edi+56] add ecx, eax jmp LBB17_26 LBB17_25: xor ecx, ecx LBB17_26: mov edx, DWORD PTR [edi+108] sub edx, eax push 0 push edx push ecx push edi call __tr_flush_block add esp, 16 mov eax, DWORD PTR [edi+108] mov DWORD PTR [edi+92], eax mov ebx, DWORD PTR [edi] mov esi, DWORD PTR [ebx+28] sub esp, 12 push esi call __tr_flush_bits add esp, 16 mov DWORD PTR [ebp-16], esi mov esi, DWORD PTR [esi+20] mov eax, DWORD PTR [ebx+16] cmp esi, eax cmova esi, eax test esi, esi je LBB17_29 sub esp, 4 push esi mov eax, DWORD PTR [ebp-16] push DWORD PTR [eax+16] push DWORD PTR [ebx+12] call _memcpy add esp, 16 add DWORD PTR [ebx+12], esi mov ecx, DWORD PTR [ebp-16] add DWORD PTR [ecx+16], esi add DWORD PTR [ebx+20], esi sub DWORD PTR [ebx+16], esi mov eax, DWORD PTR [ecx+20] sub eax, esi mov DWORD PTR [ecx+20], eax jne LBB17_29 mov ecx, DWORD PTR [ebp-16] mov eax, DWORD PTR [ecx+8] mov DWORD PTR [ecx+16], eax # ---------------------- .p2align 4, 0x90 LBB17_29: inc DWORD PTR [edi+108] mov eax, DWORD PTR [edi+116] dec eax mov DWORD PTR [edi+116], eax mov ecx, DWORD PTR [edi] cmp DWORD PTR [ecx+16], 0 mov esi, edi jne LBB17_3 jmp LBB17_64 # ---------------------- .p2align 4, 0x90 LBB17_30: mov eax, DWORD PTR [esi+108] mov edx, DWORD PTR [esi+116] lea edx, [eax+edx-3] mov DWORD PTR [ebp-60], edx add eax, 65535 sub eax, DWORD PTR [esi+100] mov edx, DWORD PTR [esi+5796] mov esi, DWORD PTR [ebp+8] mov esi, DWORD PTR [esi+5792] mov WORD PTR [edx+esi*2], ax mov edx, DWORD PTR [ebp+8] mov edx, DWORD PTR [edx+5784] lea edi, [esi+1] mov ebx, DWORD PTR [ebp+8] mov DWORD PTR [ebx+5792], edi add ecx, 253 mov BYTE PTR [edx+esi], cl mov esi, DWORD PTR [ebp+8] add eax, 65535 movzx ecx, cl mov edi, DWORD PTR [ebp-32] mov edx, DWORD PTR [edi + L__length_code$non_lazy_ptr-L17$pb] movzx ecx, BYTE PTR [edx+ecx] inc WORD PTR [esi+ecx*4+1176] movzx eax, ax mov ecx, eax shr ecx, 7 add ecx, 256 cmp eax, 256 cmovb ecx, eax mov eax, DWORD PTR [edi + L__dist_code$non_lazy_ptr-L17$pb] movzx eax, BYTE PTR [eax+ecx] inc WORD PTR [esi+eax*4+2440] mov eax, DWORD PTR [esi+5792] mov DWORD PTR [ebp-24], eax mov ecx, DWORD PTR [esi+5788] mov edi, DWORD PTR [esi+120] mov eax, 1 sub eax, edi add DWORD PTR [esi+116], eax dec ecx mov DWORD PTR [ebp-20], ecx lea ecx, [edi-2] mov DWORD PTR [esi+120], ecx add edi, -3 mov eax, DWORD PTR [esi+108] lea edx, [eax+1] mov DWORD PTR [ebp-56], edx mov DWORD PTR [ebp-28], eax lea eax, [eax+3] mov DWORD PTR [ebp-36], eax xor ebx, ebx mov DWORD PTR [ebp-40], ecx # ---------------------- .p2align 4, 0x90 LBB17_31: mov eax, DWORD PTR [ebp-56] lea edx, [eax+ebx] mov DWORD PTR [esi+108], edx cmp edx, DWORD PTR [ebp-60] ja LBB17_33 mov eax, DWORD PTR [ebp+8] mov esi, DWORD PTR [eax+72] mov eax, DWORD PTR [ebp+8] movzx ecx, BYTE PTR [eax+88] shl esi, cl mov eax, DWORD PTR [ebp+8] mov ecx, DWORD PTR [eax+56] add ecx, DWORD PTR [ebp-36] movzx ecx, BYTE PTR [ebx+ecx] xor ecx, esi mov eax, DWORD PTR [ebp+8] and ecx, DWORD PTR [eax+84] mov eax, DWORD PTR [ebp+8] mov DWORD PTR [eax+72], ecx mov eax, DWORD PTR [ebp+8] mov eax, DWORD PTR [eax+64] mov DWORD PTR [ebp-52], eax mov eax, DWORD PTR [ebp+8] mov eax, DWORD PTR [eax+68] mov DWORD PTR [ebp-16], eax mov eax, DWORD PTR [ebp+8] mov eax, DWORD PTR [eax+52] and eax, edx mov DWORD PTR [ebp-48], eax mov esi, DWORD PTR [ebp-16] movzx esi, WORD PTR [esi+ecx*2] mov eax, DWORD PTR [ebp-52] mov DWORD PTR [ebp-44], edx mov edx, DWORD PTR [ebp-48] mov WORD PTR [eax+edx*2], si mov esi, DWORD PTR [ebp+8] mov eax, DWORD PTR [ebp-16] mov edx, DWORD PTR [ebp-44] mov WORD PTR [eax+ecx*2], dx mov ecx, DWORD PTR [ebp-40] LBB17_33: mov DWORD PTR [esi+120], edi inc ebx dec edi cmp ecx, ebx jne LBB17_31 mov eax, DWORD PTR [ebp-20] cmp DWORD PTR [ebp-24], eax mov DWORD PTR [esi+104], 0 mov DWORD PTR [esi+96], 2 mov edx, DWORD PTR [ebp-28] lea eax, [edx+ebx+1] mov DWORD PTR [esi+108], eax jne LBB17_1 mov eax, DWORD PTR [esi+92] test eax, eax js LBB17_37 mov ecx, DWORD PTR [esi+56] add ecx, eax jmp LBB17_38 LBB17_37: xor ecx, ecx LBB17_38: sub edx, eax lea eax, [edx+ebx+1] push 0 push eax push ecx push esi call __tr_flush_block add esp, 16 mov eax, DWORD PTR [esi+108] mov DWORD PTR [esi+92], eax mov ebx, DWORD PTR [esi] mov edi, DWORD PTR [ebx+28] sub esp, 12 push edi call __tr_flush_bits add esp, 16 mov DWORD PTR [ebp-16], edi mov edi, DWORD PTR [edi+20] mov eax, DWORD PTR [ebx+16] cmp edi, eax cmova edi, eax test edi, edi je LBB17_41 sub esp, 4 push edi mov eax, DWORD PTR [ebp-16] push DWORD PTR [eax+16] push DWORD PTR [ebx+12] call _memcpy add esp, 16 add DWORD PTR [ebx+12], edi mov ecx, DWORD PTR [ebp-16] add DWORD PTR [ecx+16], edi add DWORD PTR [ebx+20], edi sub DWORD PTR [ebx+16], edi mov eax, DWORD PTR [ecx+20] sub eax, edi mov DWORD PTR [ecx+20], eax jne LBB17_41 mov ecx, DWORD PTR [ebp-16] mov eax, DWORD PTR [ecx+8] mov DWORD PTR [ecx+16], eax LBB17_41: mov eax, DWORD PTR [esi] cmp DWORD PTR [eax+16], 0 jne LBB17_1 jmp LBB17_64 LBB17_45: cmp DWORD PTR [esi+104], 0 je LBB17_47 mov eax, DWORD PTR [esi+56] mov ecx, DWORD PTR [esi+108] movzx eax, BYTE PTR [eax+ecx-1] mov ecx, DWORD PTR [esi+5796] mov edx, DWORD PTR [esi+5792] mov WORD PTR [ecx+edx*2], 0 mov ecx, DWORD PTR [esi+5784] lea esi, [edx+1] mov edi, DWORD PTR [ebp+8] mov DWORD PTR [edi+5792], esi mov esi, DWORD PTR [ebp+8] mov BYTE PTR [ecx+edx], al inc WORD PTR [esi+eax*4+148] mov DWORD PTR [esi+104], 0 LBB17_47: mov eax, DWORD PTR [esi+108] cmp eax, 2 mov ecx, 2 cmovb ecx, eax mov DWORD PTR [esi+5812], ecx cmp DWORD PTR [ebp+12], 4 jne LBB17_50 mov ecx, DWORD PTR [esi+92] test ecx, ecx js LBB17_53 mov edx, DWORD PTR [esi+56] add edx, ecx jmp LBB17_54 LBB17_50: cmp DWORD PTR [esi+5792], 0 je LBB17_63 mov ecx, DWORD PTR [esi+92] test ecx, ecx js LBB17_58 mov edx, DWORD PTR [esi+56] add edx, ecx jmp LBB17_59 LBB17_53: xor edx, edx LBB17_54: sub eax, ecx push 1 push eax push edx push esi call __tr_flush_block add esp, 16 mov eax, DWORD PTR [esi+108] mov DWORD PTR [esi+92], eax mov ebx, DWORD PTR [esi] mov edi, DWORD PTR [ebx+28] sub esp, 12 push edi call __tr_flush_bits add esp, 16 mov esi, DWORD PTR [edi+20] mov eax, DWORD PTR [ebx+16] cmp esi, eax cmova esi, eax test esi, esi je LBB17_57 sub esp, 4 push esi push DWORD PTR [edi+16] push DWORD PTR [ebx+12] call _memcpy add esp, 16 add DWORD PTR [ebx+12], esi add DWORD PTR [edi+16], esi add DWORD PTR [ebx+20], esi sub DWORD PTR [ebx+16], esi mov eax, DWORD PTR [edi+20] sub eax, esi mov DWORD PTR [edi+20], eax jne LBB17_57 mov eax, DWORD PTR [edi+8] mov DWORD PTR [edi+16], eax LBB17_57: mov eax, DWORD PTR [ebp+8] mov ecx, DWORD PTR [eax] xor eax, eax cmp DWORD PTR [ecx+16], 0 setne al or eax, 2 jmp LBB17_65 LBB17_58: xor edx, edx LBB17_59: sub eax, ecx push 0 push eax push edx push esi call __tr_flush_block add esp, 16 mov eax, DWORD PTR [esi+108] mov DWORD PTR [esi+92], eax mov ebx, DWORD PTR [esi] mov edi, DWORD PTR [ebx+28] sub esp, 12 push edi call __tr_flush_bits add esp, 16 mov esi, DWORD PTR [edi+20] mov eax, DWORD PTR [ebx+16] cmp esi, eax cmova esi, eax test esi, esi je LBB17_62 sub esp, 4 push esi push DWORD PTR [edi+16] push DWORD PTR [ebx+12] call _memcpy add esp, 16 add DWORD PTR [ebx+12], esi add DWORD PTR [edi+16], esi add DWORD PTR [ebx+20], esi sub DWORD PTR [ebx+16], esi mov eax, DWORD PTR [edi+20] sub eax, esi mov DWORD PTR [edi+20], eax jne LBB17_62 mov eax, DWORD PTR [edi+8] mov DWORD PTR [edi+16], eax LBB17_62: mov eax, DWORD PTR [ebp+8] mov eax, DWORD PTR [eax] cmp DWORD PTR [eax+16], 0 je LBB17_64 LBB17_63: mov eax, 1 jmp LBB17_65 LBB17_64: xor eax, eax LBB17_65: add esp, 60 pop esi pop edi pop ebx pop ebp ret # ---------------------- .p2align 4, 0x90 _longest_match: push ebp mov ebp, esp push ebx push edi push esi sub esp, 60 mov esi, DWORD PTR [ecx+56] mov edi, DWORD PTR [ecx+108] mov eax, -262 add eax, DWORD PTR [ecx+44] lea ebx, [esi+edi] mov DWORD PTR [ebp-28], ebx mov DWORD PTR [ebp-72], esi lea esi, [esi+edi+258] mov DWORD PTR [ebp-56], esi sub edi, eax mov eax, 0 cmovbe edi, eax mov DWORD PTR [ebp-68], edi mov eax, DWORD PTR [ecx+124] mov esi, eax shr esi, 2 mov edi, DWORD PTR [ecx+120] cmp edi, DWORD PTR [ecx+140] cmovb esi, eax mov eax, DWORD PTR [ecx+144] mov ebx, DWORD PTR [ecx+116] cmp eax, ebx mov DWORD PTR [ebp-52], ebx cmova eax, ebx mov DWORD PTR [ebp-44], eax mov ebx, DWORD PTR [ebp-28] mov al, BYTE PTR [edi+ebx-1] mov BYTE PTR [ebp-18], al mov bl, BYTE PTR [edi+ebx] mov eax, edi mov edi, DWORD PTR [ecx+52] mov DWORD PTR [ebp-48], ecx mov ecx, DWORD PTR [ecx+64] mov DWORD PTR [ebp-64], ecx mov ch, bl mov ebx, edi mov DWORD PTR [ebp-32], ebx jmp LBB18_14 # ---------------------- .p2align 4, 0x90 LBB18_1: dec esi jne LBB18_14 jmp LBB18_30 LBB18_2: lea eax, [ebx+eax+3] mov DWORD PTR [ebp-16], eax jmp LBB18_11 LBB18_3: add DWORD PTR [ebp-16], 2 jmp LBB18_10 LBB18_4: add DWORD PTR [ebp-16], 3 jmp LBB18_11 LBB18_5: add DWORD PTR [ebp-16], 4 jmp LBB18_11 LBB18_6: add DWORD PTR [ebp-16], 5 jmp LBB18_11 LBB18_7: add DWORD PTR [ebp-16], 6 jmp LBB18_11 LBB18_8: add DWORD PTR [ebp-16], 7 jmp LBB18_11 LBB18_9: mov ch, BYTE PTR [ebp-17] LBB18_10: mov esi, DWORD PTR [ebp-24] LBB18_11: mov eax, DWORD PTR [ebp-16] sub eax, DWORD PTR [ebp-56] mov DWORD PTR [ebp-16], eax lea edi, [eax+258] mov eax, DWORD PTR [ebp-36] cmp edi, eax mov ebx, DWORD PTR [ebp-32] jle LBB18_29 mov ecx, DWORD PTR [ebp-48] mov DWORD PTR [ecx+112], edx cmp edi, DWORD PTR [ebp-44] jge LBB18_31 mov ecx, DWORD PTR [ebp-28] mov esi, DWORD PTR [ebp-16] mov al, BYTE PTR [ecx+esi+257] mov BYTE PTR [ebp-18], al mov ch, BYTE PTR [ecx+esi+258] mov esi, DWORD PTR [ebp-24] mov eax, edi jmp LBB18_29 # ---------------------- .p2align 4, 0x90 LBB18_14: mov edi, DWORD PTR [ebp-72] lea edi, [edi+edx] cmp BYTE PTR [eax+edi], ch jne LBB18_29 mov cl, BYTE PTR [ebp-18] cmp BYTE PTR [edi+eax-1], cl jne LBB18_29 mov DWORD PTR [ebp-36], eax mov al, BYTE PTR [edi] mov ebx, DWORD PTR [ebp-28] cmp al, BYTE PTR [ebx] jne LBB18_28 mov al, BYTE PTR [edi+1] cmp al, BYTE PTR [ebx+1] jne LBB18_28 mov DWORD PTR [ebp-40], 2 xor eax, eax mov ebx, DWORD PTR [ebp-28] mov DWORD PTR [ebp-24], esi mov BYTE PTR [ebp-17], ch LBB18_19: mov cl, BYTE PTR [ebx+eax+3] cmp cl, BYTE PTR [edi+eax+3] jne LBB18_2 mov esi, DWORD PTR [ebp-40] lea esi, [ebx+esi] mov DWORD PTR [ebp-16], esi mov cl, BYTE PTR [ebx+eax+4] cmp cl, BYTE PTR [edi+eax+4] jne LBB18_3 mov cl, BYTE PTR [ebx+eax+5] cmp cl, BYTE PTR [edi+eax+5] mov esi, DWORD PTR [ebp-24] jne LBB18_4 mov cl, BYTE PTR [ebx+eax+6] cmp cl, BYTE PTR [edi+eax+6] jne LBB18_5 mov cl, BYTE PTR [ebx+eax+7] cmp cl, BYTE PTR [edi+eax+7] jne LBB18_6 mov cl, BYTE PTR [ebx+eax+8] cmp cl, BYTE PTR [edi+eax+8] jne LBB18_7 mov cl, BYTE PTR [ebx+eax+9] cmp cl, BYTE PTR [edi+eax+9] jne LBB18_8 lea ecx, [eax+10] mov DWORD PTR [ebp-60], ecx mov ecx, DWORD PTR [ebp-40] lea esi, [ebx+ecx+8] mov DWORD PTR [ebp-16], esi cmp DWORD PTR [ebp-60], 257 jg LBB18_9 add ecx, 8 mov DWORD PTR [ebp-40], ecx movzx ecx, BYTE PTR [edi+eax+10] cmp BYTE PTR [ebx+eax+10], cl lea eax, [eax+8] mov ch, BYTE PTR [ebp-17] mov esi, DWORD PTR [ebp-24] je LBB18_19 jmp LBB18_11 LBB18_28: mov eax, DWORD PTR [ebp-36] mov ebx, DWORD PTR [ebp-32] # ---------------------- .p2align 4, 0x90 LBB18_29: and edx, ebx mov edi, DWORD PTR [ebp-64] movzx edx, WORD PTR [edi+edx*2] cmp edx, DWORD PTR [ebp-68] ja LBB18_1 LBB18_30: mov ecx, DWORD PTR [ebp-52] cmp eax, ecx cmova eax, ecx add esp, 60 pop esi pop edi pop ebx pop ebp ret LBB18_31: mov eax, edi jmp LBB18_30 # ---------------------- .section __TEXT,__const .globl _deflate_copyright _deflate_copyright: .asciz " deflate 1.2.8 Copyright 1995-2013 Jean-loup Gailly and Mark Adler " # ---------------------- .section __DATA,__const .p2align 2 _configuration_table: .value 0 .value 0 .value 0 .value 0 .long _deflate_stored .value 4 .value 4 .value 8 .value 4 .long _deflate_fast .value 4 .value 5 .value 16 .value 8 .long _deflate_fast .value 4 .value 6 .value 32 .value 32 .long _deflate_fast .value 4 .value 4 .value 16 .value 16 .long _deflate_slow .value 8 .value 16 .value 32 .value 32 .long _deflate_slow .value 8 .value 16 .value 128 .value 128 .long _deflate_slow .value 8 .value 32 .value 128 .value 256 .long _deflate_slow .value 32 .value 128 .value 258 .value 1024 .long _deflate_slow .value 32 .value 258 .value 258 .value 4096 .long _deflate_slow # ---------------------- .section __IMPORT,__pointers,non_lazy_symbol_pointers L__dist_code$non_lazy_ptr: .indirect_symbol __dist_code .long 0 # ---------------------- L__length_code$non_lazy_ptr: .indirect_symbol __length_code .long 0 # ---------------------- L_z_errmsg$non_lazy_ptr: .indirect_symbol _z_errmsg .long 0 # ---------------------- L_zcalloc$non_lazy_ptr: .indirect_symbol _zcalloc .long 0 # ---------------------- L_zcfree$non_lazy_ptr: .indirect_symbol _zcfree .long 0 # ---------------------- .set Ltmp0,LJTI1_0-L1$pb .set L1_0_set_25,LBB1_25-L1$pb .set L1_0_set_36,LBB1_36-L1$pb .set Ltmp1,LJTI2_0-L2$pb .set L2_0_set_5,LBB2_5-L2$pb .set L2_0_set_14,LBB2_14-L2$pb .set Ltmp2,LJTI14_0-L14$pb .set L14_0_set_12,LBB14_12-L14$pb .set L14_0_set_22,LBB14_22-L14$pb .subsections_via_symbols
24.758807
77
0.530692
cb6c510a59d7415921433cf42d4de07b30ee06c9
2,000
asm
Assembly
programs/oeis/027/A027540.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/027/A027540.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/027/A027540.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A027540: Second diagonal of A027537. ; 3,16,55,156,399,960,2223,5020,11143,24432,53079,114492,245535,524032,1113823,2358972,4980375,10485360,22019655,46136860,96468463,201326016,419429775,872414556,1811938599,3758095600,7784627383,16106126460,33285995583,68719475712,141733919679,292057774972,601295420215,1236950579952,2542620637863,5222680230492,10720238369295,21990232553920,45079976737135,92358976731420,189115999975623,387028092975216,791648371996695,1618481116084156,3307330976347999,6755399441053440,13792273858819743,28147497671063100,57420895248971223,117093590311630192,238690780250633479,486388759756010652,990791918021506095,2017612633061979072,4107282860161889103,8358680908399637212,17005592192950989415,34587645138205405680,70328211781017661815,142962266571249021180,290536219160925433983,590295810358705647616,1199038364791120850815,2434970217729660808956,4943727411754159828599,10035028776097996074480,20365205457375344979303,41320706725109395614940,83822005070936202538063,170005193383307227687872,344732753249484100594479,698910239464707491621532,1416709944860893564103175,2871198821584744289921392,5817955506895402903267543,11787026741242634453379132,23876284937388926200440735,48357032784585166988240640,97922991388784963151193695,198263834416799184651806140,401363372112056886002443543,812398150781030805402543216,1644139114675895677600392135,3326963855579459488791388956,6731298963614255244763980399,13617340432139183023890358720,27544165874099711116505506063,55707301767842112370460581980,112652543574969605015820296103,227780967228509970581438848752,460513694614161462262474202679,930930909542605966724141407612,1881668859713778017846668811455,3802951800684688204490109606912,7685131763883640746573763173183,15528719852795810168334614256252,31374352355648677687043404323255,63382530011411470074835160258800,128032710623051169551167023732775,258600722446558797905327453886300 mov $1,3 lpb $0 add $2,$1 add $1,$0 sub $0,1 mul $1,2 add $1,5 lpe add $1,$2 mov $0,$1
142.857143
1,862
0.919
f66ab5315acdb72a83fd5559bf0b2cdbf7824ee5
6,426
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1171.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_1171.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_1171.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 %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x56fb, %rsi lea addresses_D_ht+0x5377, %rdi nop nop nop nop nop add $58942, %r12 mov $92, %rcx rep movsw nop nop nop nop cmp %rbx, %rbx lea addresses_WT_ht+0x18377, %r9 inc %rsi movb (%r9), %cl nop nop dec %rsi lea addresses_A_ht+0xbb77, %rsi add %r10, %r10 movw $0x6162, (%rsi) nop cmp $39819, %rdi lea addresses_normal_ht+0xb297, %r12 and $47431, %rbx movw $0x6162, (%r12) nop nop xor $59199, %rbx lea addresses_WC_ht+0x18abb, %r9 nop nop nop nop add $56576, %rdi mov (%r9), %ebx nop and %rbx, %rbx lea addresses_D_ht+0x11e77, %rbx nop sub $22598, %rsi mov (%rbx), %cx xor $56234, %r12 lea addresses_A_ht+0xe377, %rsi lea addresses_normal_ht+0xb557, %rdi nop nop nop inc %rdx mov $34, %rcx rep movsw xor $61505, %r10 lea addresses_D_ht+0x7d57, %r9 nop xor %rcx, %rcx mov $0x6162636465666768, %rdx movq %rdx, %xmm5 and $0xffffffffffffffc0, %r9 movntdq %xmm5, (%r9) nop nop nop nop and $6729, %r12 lea addresses_WT_ht+0x13377, %rsi clflush (%rsi) nop nop nop xor %rbx, %rbx mov $0x6162636465666768, %rdx movq %rdx, (%rsi) nop cmp $61274, %r12 lea addresses_WT_ht+0x1e777, %rsi lea addresses_D_ht+0x14000, %rdi add $30434, %r10 mov $51, %rcx rep movsb nop nop nop nop sub $46742, %r10 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r15 push %r8 push %rbp push %rdi // Faulty Load lea addresses_normal+0x4b77, %r8 nop nop sub $14885, %r15 movups (%r8), %xmm4 vpextrq $1, %xmm4, %r11 lea oracles, %rbp and $0xff, %r11 shlq $12, %r11 mov (%rbp,%r11,1), %r11 pop %rdi pop %rbp pop %r8 pop %r15 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': True, 'size': 2, 'NT': False, 'same': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 5}} {'src': {'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 4, 'NT': False, 'same': False, 'congruent': 2}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16, 'NT': True, 'same': False, 'congruent': 2}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 8, 'NT': True, 'same': False, 'congruent': 7}} {'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
40.670886
2,999
0.65873
6b0bdaf0a5bd89df1da016019025a02eb6ad2669
839
asm
Assembly
Source.asm
usamashafiq/Shifts-operations-and-Conditional-jumps-
68f19b0f47a99d6183f899782b73046ad621b9e6
[ "MIT" ]
null
null
null
Source.asm
usamashafiq/Shifts-operations-and-Conditional-jumps-
68f19b0f47a99d6183f899782b73046ad621b9e6
[ "MIT" ]
null
null
null
Source.asm
usamashafiq/Shifts-operations-and-Conditional-jumps-
68f19b0f47a99d6183f899782b73046ad621b9e6
[ "MIT" ]
null
null
null
Code 1: .MODEL SMALL .STACK 100H .DATA MSG DB "ENTER A CHARACTER : $" MSG1 DB 0AH,0DH,"BINARY VALUE IS : $" .CODE MAIN PROC MOV AX,@DATA MOV DS,AX MOV DX,OFFSET MSG MOV AH,09H INT 21H MOV AH,01 INT 21H MOV BL,AL MOV DX,OFFSET MSG1 MOV AH,09H INT 21H MOV CX,8 BINARY: SHR BL,1 JNC CF MOV DL,'1' JMP DISPLAY CF: MOV DL,'0' DISPLAY: MOV AH,02 INT 21H LOOP BINARY MOV AH,4CH INT 21H MAIN ENDP END MAIN Code 2: .MODEL SMALL .STACK 100H .DATA A DB "ENTER YOUR PASSWORD: $" OK DB "CORRECT PASSWORD $" NOTOK DB "PASSWORD IS WRONG $" PASSWORD DB "DATASTRU $" PASSWORD1 DW 8 .CODE MAIN PROC MOV AX,@DATA MOV DS,AX MOV CX,PASSWORD1 MOV BX,OFFSET PASSWORD MOV AH,9 LEA DX,A INT 21H L1: MOV AH,8 INT 21H CMP AL,[BX] JNE L2 INC BX LOOP L1 MOV AH,9 LEA DX,OK INT 21H JMP EXIT L2: MOV AH,9 LEA DX,NOTOK INT 21H EXIT: MOV AH,4CH INT 21H MAIN ENDP END MAIN
11.337838
37
0.717521
11f34313e8baab175b32e66103110e14a5453c61
2,581
asm
Assembly
resources/patches/moremidpoints.asm
Yoshimaster96/Superstar-Editor-YI
6ac23f309563dbb67b3e0e8fd0e4b19d2c1e7ba7
[ "MIT" ]
2
2021-06-29T19:22:04.000Z
2022-01-18T23:58:54.000Z
resources/patches/moremidpoints.asm
Yoshimaster96/Superstar-Editor-YI
6ac23f309563dbb67b3e0e8fd0e4b19d2c1e7ba7
[ "MIT" ]
null
null
null
resources/patches/moremidpoints.asm
Yoshimaster96/Superstar-Editor-YI
6ac23f309563dbb67b3e0e8fd0e4b19d2c1e7ba7
[ "MIT" ]
null
null
null
;"Better Middle Rings" patch, adopted for use with EF ;Modify code org $01B084 jmp.w SetLevel padbyte $FF pad $01B088 org $01E656 stz.w $038E phx rep #$30 lda.b LevelID ;\Get level ID in RAM asl ;|and shift for use as index tax ;/ ldy.w #$7F7F ;\Setup bank phy ;| plb ;| plb ;/ lda.l $17F551,x ;\Get midpoint X/Y position data sta.w $7E01 ;/Set midpoint X/Y position txa ;\Set midpoint level ID lsr ;| sep #$30 ;| sta.w $7E00 ;/ stz.w $7E03 ; Set midpoint action plx plb plb rtl SetLevel: and.w #$00FF ;\Set level ID in RAM sta.b LevelID ;/ asl jmp.w $01B088 padbyte $FF pad $01E687 ;Modify midpoint data org $17F551 db $78,$76,$82,$7B,$00,$00,$F7,$78,$0E,$5B,$61,$70,$70,$75,$09,$37 db $00,$00,$78,$53,$AD,$4B,$00,$00,$00,$00,$00,$00,$00,$00,$9E,$24 db $00,$00,$00,$00,$00,$00,$AB,$7A,$F2,$78,$00,$00,$00,$00,$00,$00 db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$6B,$3F,$00,$00,$41,$52 db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$8A,$5E,$00,$00,$B6,$49 db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 db $00,$00,$00,$00,$4E,$55,$E1,$0A,$F7,$7A,$D7,$1C,$00,$00,$00,$00 db $00,$00,$00,$00,$00,$00,$09,$49,$75,$68,$00,$00,$00,$00,$00,$00 db $00,$00,$00,$00,$0C,$29,$0B,$2A,$5A,$61,$0B,$7A,$32,$6C,$00,$00 db $A4,$77,$00,$00,$3A,$58,$00,$00,$86,$78,$ED,$38,$3D,$6A,$62,$59 db $F1,$6B,$71,$6B,$0F,$67,$00,$00,$03,$3A,$78,$61,$00,$00,$14,$73 db $03,$3A,$CB,$70,$00,$00,$30,$40,$93,$38,$1A,$34,$08,$4A,$0B,$4A db $02,$6A,$00,$00,$37,$15,$05,$2A,$12,$79,$0E,$7A,$07,$4A,$00,$00 db $05,$68,$00,$00,$43,$1E,$75,$0A,$67,$4B,$00,$00,$EC,$68,$00,$00 db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$03,$5A db $04,$27,$00,$00,$05,$6B,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 db $1D,$6E,$3D,$4A,$00,$00,$00,$00,$00,$00,$00,$00,$2C,$59,$00,$00 db $58,$44,$00,$00,$00,$00,$14,$46,$00,$00,$09,$39,$00,$00,$00,$00 db $0A,$7A,$08,$78,$00,$00,$55,$27,$0A,$76,$00,$00,$00,$00,$00,$00 db $00,$00,$00,$00,$00,$00,$E9,$3F,$00,$00,$00,$00,$00,$00,$00,$00 db $00,$00,$00,$00,$00,$00,$09,$7A,$00,$00,$00,$00,$00,$00,$00,$00 db $00,$00,$00,$00,$73,$7A,$00,$00,$00,$00,$00,$00,$00,$00,$04,$0A db $44,$7A,$00,$00,$00,$00,$4F,$6B,$00,$00,$00,$00,$52,$27,$00,$00 db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$08,$7A,$1F,$34,$00,$00 db $00,$00,$76,$79,$00,$00,$00,$00,$00,$00,$C8,$71,$00,$00,$00,$00 db $0C,$39,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$06,$76,$00,$00 db $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,$04,$7A padbyte $FF pad $17F7C3
36.352113
67
0.540488
9243eaefa5154919ae122b6ebc138d1fe9932ceb
2,159
asm
Assembly
libsrc/_DEVELOPMENT/target/vgl/driver/character/vgl_00_input_char.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
libsrc/_DEVELOPMENT/target/vgl/driver/character/vgl_00_input_char.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
libsrc/_DEVELOPMENT/target/vgl/driver/character/vgl_00_input_char.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; vgl_00_input_char ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; Input from keyboard V-Chip ; ; ;;;;;;;;;;;;;;;;;;;; ; DRIVER CLASS DIAGRAM ; ;;;;;;;;;;;;;;;;;;;; ; ; CHARACTER_00_INPUT (root, abstract) ; VGL_00_INPUT_CHAR (concrete) ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; MESSAGES CONSUMED FROM STDIO ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; * STDIO_MSG_GETC ; * STDIO_MSG_EATC ; * STDIO_MSG_READ ; * STDIO_MSG_SEEK ; * STDIO_MSG_FLSH ; * STDIO_MSG_ICTL ; * STDIO_MSG_CLOS ; ; Others result in enotsup_zc. ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; MESSAGES CONSUMED FROM CHARACTER_00_INPUT ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; * ICHAR_MSG_GETC ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; IOCTLs UNDERSTOOD BY THIS DRIVER ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; * IOCTL_RESET ; ; * IOCTL_ICHAR_CRLF ; enable / disable crlf processing ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;; ; BYTES RESERVED IN FDSTRUCT ; ;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; offset (wrt FDSTRUCT.JP) description ; ; 8..13 mutex INCLUDE "config_private.inc" SECTION code_driver SECTION code_driver_character_input PUBLIC vgl_00_input_char EXTERN character_00_input, error_znc, error_mc ; from config/config_target.m4 ;EXTERN __VGL_KEY_STATUS_ADDRESS ;EXTERN __VGL_KEY_CURRENT_ADDRESS vgl_00_input_char: cp ICHAR_MSG_GETC jp nz, character_00_input ; forward other messages to the library vgl_00_input_char_ichar_msg_getc: ; exit : a = keyboard char after character set translation ; carry set on error, hl = 0 (stream error) or -1 (eof) ; ; can use : af, bc, de, hl ld a, 0xc0 ld (__VGL_KEY_STATUS_ADDRESS), a ; Wait for key press getc_loop: ld a, (__VGL_KEY_STATUS_ADDRESS) cp 0xd0 jr nz, getc_loop ; Get current key ld a, (__VGL_KEY_CURRENT_ADDRESS) ; a = ascii code ;cp CHAR_CTRL_Z ;jp z, error_mc ; generate EOF (ctrl-z is from cp/m) or a ; reset carry to indicate no error ret
22.726316
70
0.52339
82d112acccf29cd1468964c7035f210fba5fc6e3
302
asm
Assembly
programs/oeis/047/A047344.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/047/A047344.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/047/A047344.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A047344: Numbers that are congruent to {0, 1, 3, 4} mod 7. ; 0,1,3,4,7,8,10,11,14,15,17,18,21,22,24,25,28,29,31,32,35,36,38,39,42,43,45,46,49,50,52,53,56,57,59,60,63,64,66,67,70,71,73,74,77,78,80,81,84,85,87,88,91,92,94,95,98,99,101,102,105,106,108,109 mul $0,3 div $0,2 mov $1,7 mul $1,$0 div $1,6
33.555556
193
0.639073
93b171f94a25e183796826ea756193ef37f4206f
28
asm
Assembly
tests/asm/32/invalid_seg.asm
ReneNyffenegger/udis86
6b6122c3552925d4d0216beac29b09800440f2fe
[ "BSD-2-Clause" ]
710
2015-01-05T05:16:09.000Z
2022-03-23T14:24:53.000Z
tests/asm/32/invalid_seg.asm
ReneNyffenegger/udis86
6b6122c3552925d4d0216beac29b09800440f2fe
[ "BSD-2-Clause" ]
28
2015-01-17T23:19:45.000Z
2021-12-23T21:39:49.000Z
tests/asm/32/invalid_seg.asm
ReneNyffenegger/udis86
6b6122c3552925d4d0216beac29b09800440f2fe
[ "BSD-2-Clause" ]
227
2015-01-05T21:24:53.000Z
2022-03-10T18:24:43.000Z
[bits 32] db 0x8C, 0x38
9.333333
17
0.571429
831bf62d530cb8d0540f397bee5cc3800e5819b5
6,133
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_47_24.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_47_24.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_47_24.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 %r14 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0xcc1a, %rsi lea addresses_WC_ht+0x18d72, %rdi clflush (%rdi) nop sub $14816, %r10 mov $67, %rcx rep movsw nop sub $20289, %r11 lea addresses_normal_ht+0x827a, %rsi lea addresses_WC_ht+0x1dc1a, %rdi clflush (%rsi) nop nop add $25198, %r14 mov $1, %rcx rep movsl nop nop nop nop nop sub $51012, %r10 lea addresses_WT_ht+0x14782, %r11 nop nop nop nop nop sub %rax, %rax mov (%r11), %si and %r11, %r11 lea addresses_WC_ht+0x1d01a, %rsi lea addresses_normal_ht+0x6f2e, %rdi cmp $56615, %rdx mov $83, %rcx rep movsq nop and %rdi, %rdi lea addresses_D_ht+0x1501e, %rsi lea addresses_normal_ht+0x621a, %rdi nop nop nop add $5743, %r14 mov $101, %rcx rep movsb nop nop nop and $49930, %rsi lea addresses_WT_ht+0x1061a, %r11 nop nop nop nop nop xor %rdi, %rdi mov (%r11), %esi nop nop nop add $3266, %rdx lea addresses_D_ht+0x877a, %rax nop nop nop nop nop cmp %r14, %r14 mov (%rax), %rsi nop nop nop add $59013, %rax lea addresses_WC_ht+0x405a, %r11 nop nop nop nop nop add $57618, %rsi mov (%r11), %r10w nop dec %rcx lea addresses_D_ht+0x5c2, %rdx nop nop nop nop cmp %r11, %r11 movw $0x6162, (%rdx) sub %rsi, %rsi lea addresses_UC_ht+0xf6fa, %rcx nop nop nop nop add %r11, %r11 movw $0x6162, (%rcx) nop inc %rax lea addresses_A_ht+0x143fa, %r11 nop nop nop nop nop lfence mov $0x6162636465666768, %rax movq %rax, %xmm0 and $0xffffffffffffffc0, %r11 movaps %xmm0, (%r11) nop nop and $63532, %rdx lea addresses_WC_ht+0xe95a, %rdx nop xor $8403, %r11 mov $0x6162636465666768, %rcx movq %rcx, %xmm5 vmovups %ymm5, (%rdx) nop nop nop nop xor %r10, %r10 lea addresses_WC_ht+0xab62, %r14 nop nop cmp %rax, %rax mov (%r14), %di nop dec %rax lea addresses_D_ht+0x815a, %r11 nop xor $39315, %rdx mov (%r11), %cx nop nop xor $30375, %rax pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r14 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r8 push %r9 push %rax push %rbp push %rsi // Store lea addresses_A+0x17066, %rax and %rsi, %rsi mov $0x5152535455565758, %r10 movq %r10, %xmm3 movntdq %xmm3, (%rax) nop nop nop nop cmp $16684, %rsi // Store lea addresses_UC+0x1fc1a, %r9 nop nop and $8053, %rbp mov $0x5152535455565758, %r14 movq %r14, %xmm3 movups %xmm3, (%r9) nop nop nop xor %rbp, %rbp // Load lea addresses_PSE+0x1201a, %r14 add %rsi, %rsi mov (%r14), %bp nop nop nop nop nop add %rsi, %rsi // Store lea addresses_D+0x1e61a, %r10 add $51581, %r8 movw $0x5152, (%r10) xor %rsi, %rsi // Load lea addresses_A+0x19f44, %r9 nop nop xor %r10, %r10 mov (%r9), %rax nop nop cmp %rax, %rax // Store lea addresses_normal+0xae1d, %rax sub %r14, %r14 mov $0x5152535455565758, %rbp movq %rbp, %xmm6 vmovntdq %ymm6, (%rax) nop cmp %r10, %r10 // Faulty Load lea addresses_PSE+0x1201a, %rbp nop nop inc %r8 vmovups (%rbp), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $0, %xmm0, %r9 lea oracles, %rax and $0xff, %r9 shlq $12, %r9 mov (%rax,%r9,1), %r9 pop %rsi pop %rbp pop %rax pop %r9 pop %r8 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_PSE', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_A', 'same': False, 'size': 16, 'congruent': 1, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC', 'same': False, 'size': 16, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_PSE', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 2, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_A', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_normal', 'same': False, 'size': 32, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_PSE', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': True}, 'OP': 'REPM'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 4, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 3, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 5, 'NT': True, 'AVXalign': True}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WC_ht', 'same': True, 'size': 2, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 3, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'33': 47} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
21.59507
153
0.645361
4f29441d634d586eecb8bd3c79eda10e27a8e41d
2,382
asm
Assembly
programs/oeis/017/A017025.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/017/A017025.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/017/A017025.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A017025: a(n) = (7*n + 3)^9. ; 19683,1000000000,118587876497,2641807540224,26439622160671,165216101262848,756680642578125,2779905883635712,8662995818654939,23762680013799936,58871586708267913,134217728000000000,285544154243029527,572994802228616704,1093685272684360901,1999004627104432128,3517876291919921875,5987402799531080192,9892530380752880769,15916595351771938816,25004854810776297743,38443359375000000000,57955795548021664957,85821209809770512384,125015825667824393931,179382478698232427008,253831523037259765625,354577405862133891072,489415464119070561799,668043870120573226496,902436039641232277173,1207269217792000000000,1600415374247183470787,2103500970336180939264,2742542606093287451761,3548666015583712575488,4558916353692287109375,5817168207073186596352,7375144266114367290029,9293552113569294974976,11643349118950948694203,14507145975869000000000,17980759982220503815017,22174929740517389369344,27217203547650508966391,33254014350049988525568,40452954761505126953125,49005266276854111404032,59128557465344352417459,71069766592698296736256,85108384800797146356833,101559956668416000000000,120779875685608537745647,143167492898147491034624,169170557716878778609821,199290010639942344245248,234085148403551404296875,274179182859404002202112,320265215673826473056089,373112651755417644302336,433574075144275338393063,502592611936843000000000,581209805676014043990677,670574031506374810927104,771949476279353824294051,886725712692575368022528,1016427896461889244140625,1162727616453365928558592,1327454428646007218077919,1512608105754026853705216,1720371635310303514250893,1953125000000000000000000,2213459775035377368958107,2504194578379511247798784,2828391410657939516171081,3189372922643236056465408,3590740649258114271484375,4036394250117916599721472,4530551797723242302114949,5077771155518005355216896,5682972489147397363698323,6351461955384057000000000,7088956614339217590735937,7901610611738718098161664,8796042679221519890632911,9779365001810772358501888,10859213502914514611328125,12043779598434788188618752,13341843472800266929559179,14762808930988484877349376,16316739881869361340823353,18014398509481984000000000,19867285190151516223092167,21887680214662643560287744,24088687376030166694311541,26484279484746183959379968,29089345874736785888671875,31919741964629307115858432,34992340940313947338562609,38325087626180982950854656 mul $0,7 add $0,3 pow $0,9
340.285714
2,322
0.944165
0b16353090c80b337d739476dad785974ecc2fe9
333
asm
Assembly
test/asm_com/align6.asm
nigelperks/BasicAssembler
13dcc861254fa6c19f1d450682b4495bbebcf934
[ "MIT" ]
null
null
null
test/asm_com/align6.asm
nigelperks/BasicAssembler
13dcc861254fa6c19f1d450682b4495bbebcf934
[ "MIT" ]
null
null
null
test/asm_com/align6.asm
nigelperks/BasicAssembler
13dcc861254fa6c19f1d450682b4495bbebcf934
[ "MIT" ]
null
null
null
; Test alignment of individual data items under resize pass not making changes IDEAL SEGMENT MAIN ASSUME CS:MAIN,DS:MAIN ORG 100h start: int 20h jmp _over ; guess 2 bytes, finally 3 bytes ALIGN 4 ; guess 0 bytes, finally 3 bytes of padding _val DW 1234h ALIGN 16 _over: mov di, OFFSET _val int 20h ENDS MAIN END start
16.65
78
0.744745
0049a61cd94c177f9eea267f41b58753bcdc6999
7,487
asm
Assembly
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xa0.log_21829_1747.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xa0.log_21829_1747.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xa0.log_21829_1747.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %r8 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x180c7, %rdx add $47294, %r8 mov (%rdx), %rbx nop cmp %r15, %r15 lea addresses_D_ht+0x11ca7, %rdx nop and $20274, %rsi mov (%rdx), %r11 sub %r8, %r8 lea addresses_D_ht+0x82c7, %rsi lea addresses_WC_ht+0x17cc7, %rdi nop add %rdx, %rdx mov $35, %rcx rep movsb nop nop nop nop sub $4446, %r8 lea addresses_UC_ht+0x12847, %rsi lea addresses_UC_ht+0x8967, %rdi nop nop nop xor %r8, %r8 mov $42, %rcx rep movsb nop nop nop sub %r8, %r8 lea addresses_D_ht+0x1c8c7, %r8 nop and %rsi, %rsi movl $0x61626364, (%r8) nop dec %r11 lea addresses_WT_ht+0x6185, %rsi lea addresses_UC_ht+0x1ac7, %rdi inc %r15 mov $123, %rcx rep movsl nop nop nop inc %rcx lea addresses_D_ht+0xd292, %r15 nop nop nop nop nop xor %rdi, %rdi mov $0x6162636465666768, %rcx movq %rcx, %xmm4 and $0xffffffffffffffc0, %r15 vmovaps %ymm4, (%r15) nop nop nop cmp $47381, %rsi lea addresses_normal_ht+0x13ac7, %r15 nop nop nop sub %rdi, %rdi movw $0x6162, (%r15) nop nop nop nop nop add $7818, %rsi lea addresses_normal_ht+0xecc7, %r8 nop cmp %rbx, %rbx mov $0x6162636465666768, %r15 movq %r15, %xmm5 movups %xmm5, (%r8) nop nop nop xor $13359, %rbx lea addresses_D_ht+0xe7c7, %rsi lea addresses_D_ht+0x55f, %rdi nop nop nop nop nop sub %r8, %r8 mov $4, %rcx rep movsq nop nop nop cmp $20750, %rdx lea addresses_WT_ht+0x18047, %rdx sub %r15, %r15 mov (%rdx), %rdi nop nop nop nop add %rbx, %rbx lea addresses_A_ht+0xf8c7, %r15 clflush (%r15) inc %r11 mov $0x6162636465666768, %rdx movq %rdx, %xmm1 movups %xmm1, (%r15) nop nop nop nop nop add $30709, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r8 pop %r15 pop %r11 ret .global s_faulty_load s_faulty_load: push %r13 push %r8 push %r9 push %rax push %rcx push %rdi // Store mov $0xc7, %r9 clflush (%r9) nop nop xor $33792, %r13 mov $0x5152535455565758, %rdi movq %rdi, %xmm4 movups %xmm4, (%r9) nop nop nop nop and %rax, %rax // Store lea addresses_US+0x1fba1, %r8 nop nop xor %rcx, %rcx movw $0x5152, (%r8) nop dec %rax // Faulty Load lea addresses_US+0x1d4c7, %r13 clflush (%r13) nop nop nop cmp %rcx, %rcx movb (%r13), %r8b lea oracles, %r13 and $0xff, %r8 shlq $12, %r8 mov (%r13,%r8,1), %r8 pop %rdi pop %rcx pop %rax pop %r9 pop %r8 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'NT': True, 'same': False, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_P', 'AVXalign': False, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_US', 'AVXalign': False, 'size': 2}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'same': True, 'congruent': 10, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': True, 'same': False, 'congruent': 4, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 6, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}} {'src': {'same': False, 'congruent': 7, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 10, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4}} {'src': {'same': False, 'congruent': 0, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_D_ht', 'AVXalign': True, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16}} {'src': {'same': False, 'congruent': 7, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16}} {'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 */
34.502304
2,999
0.655269
5f300ad15c24c76d906be74146f6b0baee567d02
407
asm
Assembly
oeis/098/A098157.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/098/A098157.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/098/A098157.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A098157: Triangle T(n,k) with diagonals T(n,n-k)=binomial(n+1,2k). ; Submitted by Jamie Morken(s3.) ; 1,1,1,0,3,1,0,1,6,1,0,0,5,10,1,0,0,1,15,15,1,0,0,0,7,35,21,1,0,0,0,1,28,70,28,1,0,0,0,0,9,84,126,36,1,0,0,0,0,1,45,210,210,45,1,0,0,0,0,0,11,165,462,330,55,1,0,0,0,0,0,1,66,495,924,495,66,1,0,0,0,0,0,0,13,286 mul $0,2 add $0,1 mov $1,1 lpb $0 sub $0,$1 add $1,1 sub $0,$1 lpe bin $1,$0 mov $0,$1
27.133333
210
0.592138
ed5026617a9956be678a0ced02bd043d7612cee9
11,967
asm
Assembly
main/plugins/org.talend.model.migration/transformation/development/Config.asm
rdubois/tcommon-studio-se
97bac8fc3f65fc2cbb0079e1eec3731baa8704d1
[ "Apache-2.0" ]
null
null
null
main/plugins/org.talend.model.migration/transformation/development/Config.asm
rdubois/tcommon-studio-se
97bac8fc3f65fc2cbb0079e1eec3731baa8704d1
[ "Apache-2.0" ]
null
null
null
main/plugins/org.talend.model.migration/transformation/development/Config.asm
rdubois/tcommon-studio-se
97bac8fc3f65fc2cbb0079e1eec3731baa8704d1
[ "Apache-2.0" ]
null
null
null
<?xml version = '1.0' encoding = 'ISO-8859-1' ?> <asm version="1.0" name="0"> <cp> <constant value="Config"/> <constant value="main"/> <constant value="A"/> <constant value="String"/> <constant value="#native"/> <constant value="path"/> <constant value="__initpath"/> <constant value="J.registerHelperAttribute(SS):V"/> <constant value="ecore::EClass"/> <constant value="ECORE"/> <constant value="inclusionCondition"/> <constant value="__initinclusionCondition"/> <constant value="ecore::ENamedElement"/> <constant value="useQualifiedName"/> <constant value="__inituseQualifiedName"/> <constant value="useQualifiedRuleName"/> <constant value="__inituseQualifiedRuleName"/> <constant value="copyXmiID"/> <constant value="__initcopyXmiID"/> <constant value="useIsInElementHelper"/> <constant value="__inituseIsInElementHelper"/> <constant value="6:16-6:22"/> <constant value="10:16-10:37"/> <constant value="30:16-30:44"/> <constant value="34:16-34:44"/> <constant value="38:16-38:37"/> <constant value="43:16-43:37"/> <constant value="self"/> <constant value="S"/> <constant value="/org.talend.model.migration/transformation/development/"/> <constant value="0"/> <constant value="J.+(J):J"/> <constant value="7:2-7:59"/> <constant value="7:62-7:66"/> <constant value="7:2-7:66"/> <constant value="MECORE!ecore::EClass;"/> <constant value="name"/> <constant value="EAttribute"/> <constant value="J.=(J):J"/> <constant value="EClass"/> <constant value="J.or(J):J"/> <constant value="EDataType"/> <constant value="EEnum"/> <constant value="EEnumLiteral"/> <constant value="EFactory"/> <constant value="EObject"/> <constant value="EOperation"/> <constant value="EPackage"/> <constant value="EParameter"/> <constant value="EReference"/> <constant value="EGenericType"/> <constant value="ETypeParameter"/> <constant value="Profile"/> <constant value="Stereotype"/> <constant value="J.not():J"/> <constant value="12:6-12:10"/> <constant value="12:6-12:15"/> <constant value="12:18-12:30"/> <constant value="12:6-12:30"/> <constant value="13:6-13:10"/> <constant value="13:6-13:15"/> <constant value="13:18-13:26"/> <constant value="13:6-13:26"/> <constant value="12:6-13:26"/> <constant value="14:3-14:7"/> <constant value="14:3-14:12"/> <constant value="14:15-14:26"/> <constant value="14:3-14:26"/> <constant value="12:6-14:26"/> <constant value="15:3-15:7"/> <constant value="15:3-15:12"/> <constant value="15:15-15:22"/> <constant value="15:3-15:22"/> <constant value="12:6-15:22"/> <constant value="16:3-16:7"/> <constant value="16:3-16:12"/> <constant value="16:15-16:29"/> <constant value="16:3-16:29"/> <constant value="12:6-16:29"/> <constant value="17:3-17:7"/> <constant value="17:3-17:12"/> <constant value="17:15-17:25"/> <constant value="17:3-17:25"/> <constant value="12:6-17:25"/> <constant value="18:3-18:7"/> <constant value="18:3-18:12"/> <constant value="18:15-18:24"/> <constant value="18:3-18:24"/> <constant value="12:6-18:24"/> <constant value="19:3-19:7"/> <constant value="19:3-19:12"/> <constant value="19:15-19:27"/> <constant value="19:3-19:27"/> <constant value="12:6-19:27"/> <constant value="20:3-20:7"/> <constant value="20:3-20:12"/> <constant value="20:15-20:25"/> <constant value="20:3-20:25"/> <constant value="12:6-20:25"/> <constant value="21:3-21:7"/> <constant value="21:3-21:12"/> <constant value="21:15-21:27"/> <constant value="21:3-21:27"/> <constant value="12:6-21:27"/> <constant value="22:3-22:7"/> <constant value="22:3-22:12"/> <constant value="22:15-22:27"/> <constant value="22:3-22:27"/> <constant value="12:6-22:27"/> <constant value="23:3-23:7"/> <constant value="23:3-23:12"/> <constant value="23:15-23:29"/> <constant value="23:3-23:29"/> <constant value="12:6-23:29"/> <constant value="24:3-24:7"/> <constant value="24:3-24:12"/> <constant value="24:15-24:31"/> <constant value="24:3-24:31"/> <constant value="12:6-24:31"/> <constant value="25:3-25:7"/> <constant value="25:3-25:12"/> <constant value="25:15-25:24"/> <constant value="25:3-25:24"/> <constant value="12:6-25:24"/> <constant value="26:3-26:7"/> <constant value="26:3-26:12"/> <constant value="26:15-26:27"/> <constant value="26:3-26:27"/> <constant value="12:6-26:27"/> <constant value="11:2-27:3"/> <constant value="MECORE!ecore::ENamedElement;"/> <constant value="31:2-31:6"/> <constant value="35:2-35:6"/> <constant value="39:2-39:6"/> <constant value="44:2-44:7"/> </cp> <operation name="1"> <context type="2"/> <parameters> </parameters> <code> <push arg="3"/> <push arg="4"/> <findme/> <push arg="5"/> <push arg="6"/> <pcall arg="7"/> <push arg="8"/> <push arg="9"/> <findme/> <push arg="10"/> <push arg="11"/> <pcall arg="7"/> <push arg="12"/> <push arg="9"/> <findme/> <push arg="13"/> <push arg="14"/> <pcall arg="7"/> <push arg="12"/> <push arg="9"/> <findme/> <push arg="15"/> <push arg="16"/> <pcall arg="7"/> <push arg="8"/> <push arg="9"/> <findme/> <push arg="17"/> <push arg="18"/> <pcall arg="7"/> <push arg="8"/> <push arg="9"/> <findme/> <push arg="19"/> <push arg="20"/> <pcall arg="7"/> </code> <linenumbertable> <lne id="21" begin="0" end="2"/> <lne id="22" begin="6" end="8"/> <lne id="23" begin="12" end="14"/> <lne id="24" begin="18" end="20"/> <lne id="25" begin="24" end="26"/> <lne id="26" begin="30" end="32"/> </linenumbertable> <localvariabletable> <lve slot="0" name="27" begin="0" end="35"/> </localvariabletable> </operation> <operation name="6"> <context type="28"/> <parameters> </parameters> <code> <push arg="29"/> <load arg="30"/> <call arg="31"/> </code> <linenumbertable> <lne id="32" begin="0" end="0"/> <lne id="33" begin="1" end="1"/> <lne id="34" begin="0" end="2"/> </linenumbertable> <localvariabletable> <lve slot="0" name="27" begin="0" end="2"/> </localvariabletable> </operation> <operation name="11"> <context type="35"/> <parameters> </parameters> <code> <load arg="30"/> <get arg="36"/> <push arg="37"/> <call arg="38"/> <load arg="30"/> <get arg="36"/> <push arg="39"/> <call arg="38"/> <call arg="40"/> <load arg="30"/> <get arg="36"/> <push arg="41"/> <call arg="38"/> <call arg="40"/> <load arg="30"/> <get arg="36"/> <push arg="42"/> <call arg="38"/> <call arg="40"/> <load arg="30"/> <get arg="36"/> <push arg="43"/> <call arg="38"/> <call arg="40"/> <load arg="30"/> <get arg="36"/> <push arg="44"/> <call arg="38"/> <call arg="40"/> <load arg="30"/> <get arg="36"/> <push arg="45"/> <call arg="38"/> <call arg="40"/> <load arg="30"/> <get arg="36"/> <push arg="46"/> <call arg="38"/> <call arg="40"/> <load arg="30"/> <get arg="36"/> <push arg="47"/> <call arg="38"/> <call arg="40"/> <load arg="30"/> <get arg="36"/> <push arg="48"/> <call arg="38"/> <call arg="40"/> <load arg="30"/> <get arg="36"/> <push arg="49"/> <call arg="38"/> <call arg="40"/> <load arg="30"/> <get arg="36"/> <push arg="50"/> <call arg="38"/> <call arg="40"/> <load arg="30"/> <get arg="36"/> <push arg="51"/> <call arg="38"/> <call arg="40"/> <load arg="30"/> <get arg="36"/> <push arg="52"/> <call arg="38"/> <call arg="40"/> <load arg="30"/> <get arg="36"/> <push arg="53"/> <call arg="38"/> <call arg="40"/> <call arg="54"/> </code> <linenumbertable> <lne id="55" begin="0" end="0"/> <lne id="56" begin="0" end="1"/> <lne id="57" begin="2" end="2"/> <lne id="58" begin="0" end="3"/> <lne id="59" begin="4" end="4"/> <lne id="60" begin="4" end="5"/> <lne id="61" begin="6" end="6"/> <lne id="62" begin="4" end="7"/> <lne id="63" begin="0" end="8"/> <lne id="64" begin="9" end="9"/> <lne id="65" begin="9" end="10"/> <lne id="66" begin="11" end="11"/> <lne id="67" begin="9" end="12"/> <lne id="68" begin="0" end="13"/> <lne id="69" begin="14" end="14"/> <lne id="70" begin="14" end="15"/> <lne id="71" begin="16" end="16"/> <lne id="72" begin="14" end="17"/> <lne id="73" begin="0" end="18"/> <lne id="74" begin="19" end="19"/> <lne id="75" begin="19" end="20"/> <lne id="76" begin="21" end="21"/> <lne id="77" begin="19" end="22"/> <lne id="78" begin="0" end="23"/> <lne id="79" begin="24" end="24"/> <lne id="80" begin="24" end="25"/> <lne id="81" begin="26" end="26"/> <lne id="82" begin="24" end="27"/> <lne id="83" begin="0" end="28"/> <lne id="84" begin="29" end="29"/> <lne id="85" begin="29" end="30"/> <lne id="86" begin="31" end="31"/> <lne id="87" begin="29" end="32"/> <lne id="88" begin="0" end="33"/> <lne id="89" begin="34" end="34"/> <lne id="90" begin="34" end="35"/> <lne id="91" begin="36" end="36"/> <lne id="92" begin="34" end="37"/> <lne id="93" begin="0" end="38"/> <lne id="94" begin="39" end="39"/> <lne id="95" begin="39" end="40"/> <lne id="96" begin="41" end="41"/> <lne id="97" begin="39" end="42"/> <lne id="98" begin="0" end="43"/> <lne id="99" begin="44" end="44"/> <lne id="100" begin="44" end="45"/> <lne id="101" begin="46" end="46"/> <lne id="102" begin="44" end="47"/> <lne id="103" begin="0" end="48"/> <lne id="104" begin="49" end="49"/> <lne id="105" begin="49" end="50"/> <lne id="106" begin="51" end="51"/> <lne id="107" begin="49" end="52"/> <lne id="108" begin="0" end="53"/> <lne id="109" begin="54" end="54"/> <lne id="110" begin="54" end="55"/> <lne id="111" begin="56" end="56"/> <lne id="112" begin="54" end="57"/> <lne id="113" begin="0" end="58"/> <lne id="114" begin="59" end="59"/> <lne id="115" begin="59" end="60"/> <lne id="116" begin="61" end="61"/> <lne id="117" begin="59" end="62"/> <lne id="118" begin="0" end="63"/> <lne id="119" begin="64" end="64"/> <lne id="120" begin="64" end="65"/> <lne id="121" begin="66" end="66"/> <lne id="122" begin="64" end="67"/> <lne id="123" begin="0" end="68"/> <lne id="124" begin="69" end="69"/> <lne id="125" begin="69" end="70"/> <lne id="126" begin="71" end="71"/> <lne id="127" begin="69" end="72"/> <lne id="128" begin="0" end="73"/> <lne id="129" begin="0" end="74"/> </linenumbertable> <localvariabletable> <lve slot="0" name="27" begin="0" end="74"/> </localvariabletable> </operation> <operation name="14"> <context type="130"/> <parameters> </parameters> <code> <pusht/> </code> <linenumbertable> <lne id="131" begin="0" end="0"/> </linenumbertable> <localvariabletable> <lve slot="0" name="27" begin="0" end="0"/> </localvariabletable> </operation> <operation name="16"> <context type="130"/> <parameters> </parameters> <code> <pusht/> </code> <linenumbertable> <lne id="132" begin="0" end="0"/> </linenumbertable> <localvariabletable> <lve slot="0" name="27" begin="0" end="0"/> </localvariabletable> </operation> <operation name="18"> <context type="35"/> <parameters> </parameters> <code> <pusht/> </code> <linenumbertable> <lne id="133" begin="0" end="0"/> </linenumbertable> <localvariabletable> <lve slot="0" name="27" begin="0" end="0"/> </localvariabletable> </operation> <operation name="20"> <context type="35"/> <parameters> </parameters> <code> <pushf/> </code> <linenumbertable> <lne id="134" begin="0" end="0"/> </linenumbertable> <localvariabletable> <lve slot="0" name="27" begin="0" end="0"/> </localvariabletable> </operation> </asm>
27.765661
77
0.560291
31b0eebb587d9962abd0cd1e2dcda332edae4a14
677
asm
Assembly
oeis/298/A298300.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/298/A298300.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/298/A298300.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A298300: Analog of Motzkin numbers for Coxeter type D. ; Submitted by Christian Krause ; 1,4,11,31,87,246,699,1996,5723,16468,47533,137567,399073,1160082,3378483,9855207,28790403,84218052,246651729,723165765,2122391109,6234634266,18330019029,53932825926,158802303429,467898288676,1379485436579,4069450219561 mov $2,$0 add $0,1 seq $0,129703 ; Number of different walks generated by n steps that can only go in {east, southeast, southwest} directions on the 300-degree wedge in a 60-degree equilateral triangular lattice. seq $2,1006 ; Motzkin numbers: number of ways of drawing any number of nonintersecting chords joining n (labeled) points on a circle. sub $0,$2 sub $0,1
61.545455
220
0.797637
c0c600f3fe4272c2de9674ff3faef4aa2cd02819
302
asm
Assembly
programs/oeis/297/A297382.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/297/A297382.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/297/A297382.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A297382: Denominator of -A023900(n)/2. ; 2,2,1,2,1,1,1,2,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 add $0,1 lpb $0 dif $0,2 lpe sub $0,1 cmp $0,0 add $0,1
27.454545
201
0.533113
0f0929f7d9b2b7ca518bc1ccd904576887a2c66c
5,000
asm
Assembly
src/x86-64/syscalls/string.asm
ohnx/ge
e1ea8dcc1a908aa4d45963a282ad40c82a71b0a8
[ "BSD-2-Clause" ]
null
null
null
src/x86-64/syscalls/string.asm
ohnx/ge
e1ea8dcc1a908aa4d45963a282ad40c82a71b0a8
[ "BSD-2-Clause" ]
null
null
null
src/x86-64/syscalls/string.asm
ohnx/ge
e1ea8dcc1a908aa4d45963a282ad40c82a71b0a8
[ "BSD-2-Clause" ]
null
null
null
; ============================================================================= ; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems ; Copyright (C) 2008-2014 Return Infinity -- see LICENSE.TXT ; ; String Functions ; ============================================================================= align 16 db 'DEBUG: STRING ' align 16 ; ----------------------------------------------------------------------------- ; os_int_to_string -- Convert a binary integer into an string ; IN: RAX = binary integer ; RDI = location to store string ; OUT: RDI = points to end of string ; All other registers preserved ; Min return value is 0 and max return value is 18446744073709551615 so the ; string needs to be able to store at least 21 characters (20 for the digits ; and 1 for the string terminator). ; Adapted from http://www.cs.usfca.edu/~cruse/cs210s09/rax2uint.s os_int_to_string: push rdx push rcx push rbx push rax mov rbx, 10 ; base of the decimal system xor ecx, ecx ; number of digits generated os_int_to_string_next_divide: xor edx, edx ; RAX extended to (RDX,RAX) div rbx ; divide by the number-base push rdx ; save remainder on the stack inc rcx ; and count this remainder cmp rax, 0 ; was the quotient zero? jne os_int_to_string_next_divide ; no, do another division os_int_to_string_next_digit: pop rax ; else pop recent remainder add al, '0' ; and convert to a numeral stosb ; store to memory-buffer loop os_int_to_string_next_digit ; again for other remainders xor al, al stosb ; Store the null terminator at the end of the string pop rax pop rbx pop rcx pop rdx ret ; ----------------------------------------------------------------------------- ; ----------------------------------------------------------------------------- ; os_string_to_int -- Convert a string into a binary integer ; IN: RSI = location of string ; OUT: RAX = integer value ; All other registers preserved ; Adapted from http://www.cs.usfca.edu/~cruse/cs210s09/uint2rax.s os_string_to_int: push rsi push rdx push rcx push rbx xor eax, eax ; initialize accumulator mov rbx, 10 ; decimal-system's radix os_string_to_int_next_digit: mov cl, [rsi] ; fetch next character cmp cl, '0' ; char precedes '0'? jb os_string_to_int_invalid ; yes, not a numeral cmp cl, '9' ; char follows '9'? ja os_string_to_int_invalid ; yes, not a numeral mul rbx ; ten times prior sum and rcx, 0x0F ; convert char to int add rax, rcx ; add to prior total inc rsi ; advance source index jmp os_string_to_int_next_digit ; and check another char os_string_to_int_invalid: pop rbx pop rcx pop rdx pop rsi ret ; ----------------------------------------------------------------------------- ; ----------------------------------------------------------------------------- ; os_string_length -- Return length of a string ; IN: RSI = string location ; OUT: RCX = length (not including the NULL terminator) ; All other registers preserved os_string_length: push rdi push rax xor ecx, ecx xor eax, eax mov rdi, rsi not rcx cld repne scasb ; compare byte at RDI to value in AL not rcx dec rcx pop rax pop rdi ret ; ----------------------------------------------------------------------------- ; ----------------------------------------------------------------------------- ; os_string_copy -- Copy the contents of one string into another ; IN: RSI = source ; RDI = destination ; OUT: All registers preserved ; Note: It is up to the programmer to ensure that there is sufficient space in the destination os_string_copy: push rsi push rdi push rax os_string_copy_more: lodsb ; Load a character from the source string stosb cmp al, 0 ; If source string is empty, quit out jne os_string_copy_more pop rax pop rdi pop rsi ret ; ----------------------------------------------------------------------------- ; ----------------------------------------------------------------------------- ; os_string_compare -- See if two strings match ; IN: RSI = string one ; RDI = string two ; OUT: Carry flag set if same os_string_compare: push rsi push rdi push rbx push rax os_string_compare_more: mov al, [rsi] ; Store string contents mov bl, [rdi] cmp al, 0 ; End of first string? je os_string_compare_terminated cmp al, bl jne os_string_compare_not_same inc rsi inc rdi jmp os_string_compare_more os_string_compare_not_same: pop rax pop rbx pop rdi pop rsi clc ret os_string_compare_terminated: cmp bl, 0 ; End of second string? jne os_string_compare_not_same pop rax pop rbx pop rdi pop rsi stc ret ; ----------------------------------------------------------------------------- ; ============================================================================= ; EOF
27.472527
95
0.5492
a3c4357b082798dee721cf70f1fa61eb3e2f04f8
30,775
asm
Assembly
src/sprite_golem_sup.asm
fjpena/sword-of-ianna-zx
fdd6bdb5775933756e75402a7c6be80d5334702d
[ "Apache-2.0" ]
67
2017-10-07T18:48:05.000Z
2022-02-01T20:37:40.000Z
src/sprite_golem_sup.asm
fjpena/sword-of-ianna-zx
fdd6bdb5775933756e75402a7c6be80d5334702d
[ "Apache-2.0" ]
null
null
null
src/sprite_golem_sup.asm
fjpena/sword-of-ianna-zx
fdd6bdb5775933756e75402a7c6be80d5334702d
[ "Apache-2.0" ]
9
2017-10-06T21:02:55.000Z
2022-01-06T03:11:58.000Z
; ASM source file created by SevenuP v1.21 ; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Frames: 6 ;Sort Priorities: X char, Char line, Y char, Frame number ;Data Outputted: Gfx ;Interleave: Sprite ;Mask: No golem_sup_idle.sev: DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,15 ,0 DEFB 0 ,31 ,128 DEFB 0 ,30 ,128 DEFB 0 ,24 ,0 DEFB 0 ,31 ,0 DEFB 0 ,15 ,0 DEFB 0 ,22 ,0 DEFB 5 ,187 ,40 DEFB 10 ,208 ,20 DEFB 21 ,254 ,104 DEFB 11 ,239 ,116 DEFB 23 ,239 ,112 DEFB 11 ,239 ,116 DEFB 16 ,223 ,112 DEFB 35 ,143 ,96 DEFB 23 ,128 ,8 DEFB 39 ,142 ,128 DEFB 79 ,0 ,16 DEFB 46 ,14 ,160 DEFB 80 ,0 ,0 DEFB 60 ,29 ,32 ; ASM source file created by SevenuP v1.21 ; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Frames: 6 ;Sort Priorities: X char, Char line, Y char, Frame number ;Data Outputted: Gfx ;Interleave: Sprite ;Mask: No golem_sup_gira.sev: DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,124 ,0 DEFB 0 ,254 ,0 DEFB 0 ,238 ,0 DEFB 0 ,130 ,0 DEFB 0 ,254 ,0 DEFB 1 ,109 ,0 DEFB 6 ,68 ,192 DEFB 61 ,57 ,124 DEFB 87 ,131 ,234 DEFB 175 ,239 ,245 DEFB 223 ,239 ,251 DEFB 175 ,239 ,237 DEFB 87 ,239 ,218 DEFB 187 ,199 ,181 DEFB 216 ,16 ,59 DEFB 185 ,239 ,61 DEFB 248 ,0 ,63 DEFB 120 ,238 ,30 DEFB 82 ,0 ,138 DEFB 226 ,108 ,135 DEFB 240 ,0 ,15 ; ASM source file created by SevenuP v1.21 ; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Frames: 6 ;Sort Priorities: X char, Char line, Y char, Frame number ;Data Outputted: Gfx ;Interleave: Sprite ;Mask: No golem_sup_camina.sev: DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,15 ,0 DEFB 0 ,31 ,128 DEFB 0 ,30 ,128 DEFB 0 ,24 ,0 DEFB 0 ,31 ,0 DEFB 0 ,15 ,0 DEFB 0 ,22 ,0 DEFB 5 ,187 ,40 DEFB 10 ,208 ,20 DEFB 21 ,254 ,104 DEFB 11 ,255 ,116 DEFB 23 ,255 ,112 DEFB 43 ,239 ,116 DEFB 0 ,223 ,112 DEFB 67 ,143 ,96 DEFB 135 ,128 ,8 DEFB 15 ,14 ,128 DEFB 158 ,0 ,16 DEFB 8 ,14 ,160 DEFB 16 ,0 ,0 DEFB 176 ,29 ,32 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,1 ,224 DEFB 0 ,3 ,240 DEFB 0 ,3 ,208 DEFB 0 ,3 ,0 DEFB 0 ,3 ,224 DEFB 0 ,1 ,224 DEFB 0 ,2 ,192 DEFB 0 ,93 ,104 DEFB 0 ,190 ,4 DEFB 1 ,94 ,144 DEFB 0 ,190 ,216 DEFB 1 ,94 ,216 DEFB 0 ,172 ,216 DEFB 0 ,4 ,216 DEFB 0 ,134 ,208 DEFB 0 ,14 ,0 DEFB 1 ,14 ,160 DEFB 0 ,12 ,0 DEFB 1 ,29 ,160 DEFB 2 ,24 ,0 DEFB 1 ,9 ,64 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,30 ,0 DEFB 0 ,63 ,0 DEFB 0 ,61 ,0 DEFB 0 ,48 ,0 DEFB 0 ,62 ,0 DEFB 0 ,30 ,0 DEFB 0 ,44 ,0 DEFB 2 ,150 ,0 DEFB 5 ,224 ,128 DEFB 10 ,245 ,64 DEFB 5 ,246 ,128 DEFB 10 ,246 ,128 DEFB 5 ,230 ,128 DEFB 0 ,78 ,128 DEFB 0 ,101 ,0 DEFB 8 ,224 ,0 DEFB 0 ,238 ,0 DEFB 8 ,224 ,0 DEFB 0 ,204 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,1 ,224 DEFB 0 ,3 ,240 DEFB 0 ,3 ,208 DEFB 0 ,3 ,0 DEFB 0 ,3 ,224 DEFB 0 ,1 ,224 DEFB 0 ,2 ,192 DEFB 1 ,87 ,104 DEFB 2 ,186 ,4 DEFB 1 ,123 ,34 DEFB 2 ,255 ,180 DEFB 1 ,127 ,178 DEFB 2 ,187 ,180 DEFB 0 ,19 ,176 DEFB 2 ,19 ,180 DEFB 0 ,55 ,160 DEFB 4 ,48 ,8 DEFB 0 ,115 ,80 DEFB 4 ,112 ,8 DEFB 0 ,99 ,80 DEFB 2 ,32 ,0 DEFB 4 ,38 ,160 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,30 ,0 DEFB 0 ,63 ,0 DEFB 0 ,61 ,0 DEFB 0 ,48 ,0 DEFB 0 ,62 ,0 DEFB 0 ,30 ,0 DEFB 0 ,44 ,0 DEFB 11 ,118 ,160 DEFB 21 ,160 ,80 DEFB 11 ,217 ,160 DEFB 23 ,253 ,208 DEFB 11 ,253 ,192 DEFB 7 ,189 ,208 DEFB 33 ,125 ,192 DEFB 2 ,61 ,128 DEFB 70 ,0 ,0 DEFB 6 ,123 ,0 DEFB 78 ,0 ,64 DEFB 12 ,122 ,128 DEFB 140 ,0 ,0 DEFB 4 ,116 ,64 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,1 ,224 DEFB 0 ,3 ,240 DEFB 0 ,3 ,208 DEFB 0 ,3 ,0 DEFB 0 ,3 ,224 DEFB 0 ,1 ,224 DEFB 0 ,2 ,192 DEFB 1 ,119 ,106 DEFB 2 ,186 ,5 DEFB 1 ,127 ,154 DEFB 2 ,255 ,221 DEFB 1 ,127 ,220 DEFB 4 ,247 ,221 DEFB 0 ,39 ,220 DEFB 8 ,99 ,216 DEFB 0 ,192 ,0 DEFB 17 ,195 ,164 DEFB 1 ,128 ,8 DEFB 17 ,3 ,164 ; ASM source file created by SevenuP v1.21 ; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Frames: 6 ;Sort Priorities: X char, Char line, Y char, Frame number ;Data Outputted: Gfx ;Interleave: Sprite ;Mask: No golem_sup_cae.sev: DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,240 ,0 DEFB 1 ,248 ,0 DEFB 1 ,232 ,0 DEFB 57 ,129 ,0 DEFB 93 ,242 ,128 DEFB 188 ,241 ,64 DEFB 94 ,98 ,128 DEFB 173 ,55 ,64 DEFB 80 ,135 ,8 DEFB 166 ,247 ,84 DEFB 14 ,247 ,8 DEFB 174 ,246 ,84 DEFB 14 ,0 ,136 DEFB 144 ,232 ,0 DEFB 20 ,1 ,16 DEFB 164 ,232 ,0 DEFB 36 ,0 ,32 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 14 ,30 ,32 DEFB 23 ,63 ,80 DEFB 47 ,189 ,40 DEFB 23 ,176 ,80 DEFB 40 ,62 ,40 DEFB 83 ,30 ,18 DEFB 39 ,140 ,133 DEFB 135 ,166 ,194 DEFB 75 ,48 ,197 DEFB 136 ,61 ,202 DEFB 18 ,61 ,128 ; ASM source file created by SevenuP v1.21 ; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Frames: 6 ;Sort Priorities: X char, Char line, Y char, Frame number ;Data Outputted: Gfx ;Interleave: Sprite ;Mask: No golem_sup_agacha.sev: DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,30 ,0 DEFB 0 ,63 ,0 DEFB 0 ,61 ,0 DEFB 0 ,48 ,0 DEFB 0 ,62 ,0 DEFB 11 ,158 ,160 DEFB 21 ,204 ,80 DEFB 11 ,198 ,32 DEFB 23 ,208 ,144 DEFB 11 ,221 ,160 DEFB 23 ,157 ,128 DEFB 33 ,61 ,160 ; ASM source file created by SevenuP v1.21 ; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Frames: 6 ;Sort Priorities: X char, Char line, Y char, Frame number ;Data Outputted: Gfx ;Interleave: Sprite ;Mask: No golem_sup_saca_espada.sev: DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,7 ,128 DEFB 0 ,15 ,192 DEFB 0 ,15 ,64 DEFB 0 ,12 ,0 DEFB 0 ,15 ,128 DEFB 0 ,7 ,128 DEFB 5 ,171 ,40 DEFB 10 ,209 ,148 DEFB 21 ,252 ,106 DEFB 11 ,239 ,116 DEFB 23 ,239 ,114 DEFB 43 ,239 ,116 DEFB 80 ,223 ,114 DEFB 167 ,15 ,97 DEFB 79 ,0 ,2 DEFB 30 ,14 ,145 DEFB 172 ,0 ,2 DEFB 80 ,14 ,145 DEFB 188 ,0 ,0 ; ASM source file created by SevenuP v1.21 ; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Frames: 6 ;Sort Priorities: X char, Char line, Y char, Frame number ;Data Outputted: Gfx ;Interleave: Sprite ;Mask: No golem_sup_idle_espada.sev: DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,7 ,128 DEFB 0 ,15 ,192 DEFB 0 ,15 ,64 DEFB 0 ,12 ,0 DEFB 0 ,15 ,128 DEFB 0 ,7 ,128 DEFB 5 ,171 ,40 DEFB 10 ,209 ,148 DEFB 21 ,252 ,106 DEFB 11 ,239 ,116 DEFB 23 ,239 ,114 DEFB 11 ,239 ,116 DEFB 16 ,223 ,114 DEFB 35 ,143 ,96 DEFB 7 ,128 ,1 DEFB 39 ,142 ,130 DEFB 79 ,0 ,17 DEFB 166 ,14 ,130 DEFB 16 ,0 ,17 ; ASM source file created by SevenuP v1.21 ; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Frames: 6 ;Sort Priorities: X char, Char line, Y char, Frame number ;Data Outputted: Gfx ;Interleave: Sprite ;Mask: No golem_sup_camina_espada.sev: DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,1 ,224 DEFB 0 ,3 ,240 DEFB 0 ,3 ,208 DEFB 0 ,3 ,0 DEFB 0 ,3 ,224 DEFB 0 ,1 ,224 DEFB 1 ,106 ,202 DEFB 2 ,180 ,101 DEFB 5 ,127 ,26 DEFB 2 ,251 ,221 DEFB 5 ,251 ,220 DEFB 2 ,251 ,221 DEFB 4 ,55 ,220 DEFB 8 ,227 ,216 DEFB 1 ,224 ,1 DEFB 17 ,227 ,162 DEFB 35 ,192 ,1 DEFB 5 ,131 ,162 DEFB 74 ,0 ,1 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,60 DEFB 0 ,0 ,126 DEFB 0 ,0 ,122 DEFB 0 ,0 ,96 DEFB 0 ,0 ,124 DEFB 0 ,0 ,60 DEFB 0 ,45 ,88 DEFB 0 ,86 ,140 DEFB 0 ,175 ,226 DEFB 0 ,95 ,123 DEFB 0 ,191 ,123 DEFB 0 ,95 ,123 DEFB 0 ,134 ,251 DEFB 1 ,28 ,122 DEFB 0 ,60 ,0 DEFB 2 ,60 ,117 DEFB 4 ,120 ,0 DEFB 0 ,176 ,116 DEFB 9 ,64 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,7 ,128 DEFB 0 ,15 ,192 DEFB 0 ,15 ,64 DEFB 0 ,12 ,0 DEFB 0 ,15 ,128 DEFB 0 ,7 ,128 DEFB 5 ,171 ,40 DEFB 10 ,209 ,148 DEFB 21 ,252 ,106 DEFB 11 ,239 ,116 DEFB 23 ,239 ,114 DEFB 11 ,239 ,116 DEFB 16 ,223 ,114 DEFB 35 ,143 ,96 DEFB 7 ,128 ,1 DEFB 39 ,142 ,130 DEFB 79 ,0 ,17 DEFB 166 ,14 ,130 DEFB 16 ,0 ,17 ; ASM source file created by SevenuP v1.21 ; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Frames: 6 ;Sort Priorities: X char, Char line, Y char, Frame number ;Data Outputted: Gfx ;Interleave: Sprite ;Mask: No golem_sup_espada_golpealto.sev: DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,56 ,0 DEFB 0 ,127 ,0 DEFB 0 ,255 ,192 DEFB 0 ,202 ,176 DEFB 0 ,113 ,92 DEFB 0 ,0 ,170 DEFB 0 ,0 ,85 DEFB 0 ,0 ,42 DEFB 0 ,3 ,213 DEFB 0 ,7 ,131 DEFB 0 ,7 ,62 DEFB 0 ,6 ,124 DEFB 0 ,0 ,250 DEFB 0 ,30 ,244 DEFB 0 ,47 ,232 DEFB 0 ,95 ,208 DEFB 0 ,46 ,160 DEFB 0 ,87 ,192 DEFB 0 ,42 ,192 DEFB 0 ,21 ,144 DEFB 0 ,64 ,88 DEFB 0 ,64 ,56 DEFB 0 ,40 ,88 DEFB 0 ,37 ,48 DEFB 0 ,18 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 1 ,20 ,69 DEFB 0 ,0 ,16 DEFB 0 ,4 ,4 DEFB 0 ,0 ,160 DEFB 0 ,0 ,20 DEFB 0 ,0 ,2 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,7 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 80 ,0 ,0 DEFB 34 ,0 ,0 DEFB 4 ,0 ,0 DEFB 0 ,160 ,0 DEFB 17 ,0 ,0 DEFB 160 ,10 ,0 DEFB 81 ,80 ,0 DEFB 0 ,0 ,128 DEFB 5 ,84 ,0 DEFB 0 ,130 ,0 DEFB 0 ,9 ,64 DEFB 0 ,34 ,160 DEFB 0 ,5 ,80 DEFB 0 ,10 ,160 DEFB 0 ,5 ,80 DEFB 0 ,2 ,168 DEFB 0 ,5 ,84 DEFB 0 ,2 ,168 DEFB 0 ,1 ,84 DEFB 0 ,0 ,170 DEFB 3 ,193 ,84 DEFB 7 ,224 ,170 DEFB 199 ,160 ,84 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,3 ,192 DEFB 0 ,7 ,224 DEFB 0 ,7 ,224 DEFB 0 ,13 ,224 DEFB 0 ,14 ,0 DEFB 5 ,167 ,200 DEFB 10 ,210 ,148 DEFB 21 ,252 ,106 DEFB 11 ,239 ,116 DEFB 23 ,239 ,114 DEFB 11 ,239 ,116 DEFB 16 ,223 ,114 DEFB 35 ,143 ,96 DEFB 23 ,128 ,4 ; ASM source file created by SevenuP v1.21 ; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Frames: 6 ;Sort Priorities: X char, Char line, Y char, Frame number ;Data Outputted: Gfx ;Interleave: Sprite ;Mask: No golem_sup_espada_golpeadelante.sev: DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 2 ,4 ,21 DEFB 72 ,162 ,138 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 85 ,84 ,0 DEFB 170 ,170 ,128 DEFB 0 ,5 ,80 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,30 ,0 DEFB 0 ,63 ,0 DEFB 0 ,61 ,0 DEFB 0 ,48 ,0 DEFB 0 ,62 ,0 DEFB 11 ,158 ,160 DEFB 21 ,204 ,80 DEFB 11 ,198 ,32 DEFB 23 ,208 ,144 DEFB 11 ,221 ,160 DEFB 23 ,157 ,128 DEFB 33 ,61 ,160 ; ASM source file created by SevenuP v1.21 ; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Frames: 6 ;Sort Priorities: X char, Char line, Y char, Frame number ;Data Outputted: Gfx ;Interleave: Sprite ;Mask: No golem_sup_espada_comboadelante.sev: DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,60 ,0 DEFB 0 ,126 ,0 DEFB 0 ,238 ,0 DEFB 0 ,164 ,0 DEFB 0 ,30 ,0 DEFB 6 ,62 ,0 DEFB 6 ,20 ,128 DEFB 1 ,128 ,64 DEFB 0 ,96 ,168 DEFB 1 ,158 ,4 DEFB 0 ,0 ,1 DEFB 15 ,255 ,236 DEFB 1 ,255 ,12 DEFB 0 ,0 ,0 DEFB 0 ,8 ,0 DEFB 0 ,226 ,0 DEFB 0 ,118 ,0 DEFB 1 ,180 ,0 DEFB 1 ,137 ,0 DEFB 0 ,96 ,128 DEFB 0 ,24 ,64 DEFB 0 ,6 ,32 DEFB 0 ,5 ,80 DEFB 0 ,10 ,32 DEFB 0 ,48 ,64 DEFB 0 ,64 ,128 DEFB 1 ,129 ,0 DEFB 3 ,250 ,168 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 85 ,85 ,80 DEFB 10 ,170 ,170 DEFB 0 ,85 ,85 DEFB 0 ,2 ,170 DEFB 0 ,85 ,85 DEFB 10 ,170 ,170 DEFB 85 ,85 ,80 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 ; ASM source file created by SevenuP v1.21 ; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Frames: 6 ;Sort Priorities: X char, Char line, Y char, Frame number ;Data Outputted: Gfx ;Interleave: Sprite ;Mask: No golem_sup_espada_golpebajo.sev: DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 3 ,192 ,0 DEFB 7 ,224 ,0 DEFB 7 ,160 ,0 DEFB 6 ,0 ,0 DEFB 7 ,192 ,0 DEFB 3 ,192 ,0 DEFB 53 ,133 ,0 DEFB 90 ,194 ,128 DEFB 191 ,13 ,64 DEFB 125 ,238 ,128 DEFB 189 ,238 ,32 DEFB 125 ,238 ,0 DEFB 13 ,238 ,32 DEFB 56 ,236 ,0 DEFB 120 ,0 ,32 DEFB 120 ,232 ,0 DEFB 240 ,0 ,0 DEFB 224 ,232 ,128 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,2 DEFB 40 ,0 ,4 DEFB 66 ,0 ,0 DEFB 16 ,0 ,8 DEFB 136 ,128 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 128 ,0 ,0 DEFB 64 ,0 ,0 DEFB 0 ,0 ,0 DEFB 32 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,30 ,0 DEFB 0 ,63 ,0 DEFB 0 ,61 ,0 DEFB 0 ,48 ,0 DEFB 0 ,62 ,0 DEFB 11 ,158 ,160 DEFB 21 ,204 ,80 DEFB 11 ,198 ,32 DEFB 23 ,208 ,144 DEFB 11 ,221 ,160 DEFB 23 ,157 ,128 DEFB 33 ,61 ,160 ; ASM source file created by SevenuP v1.21 ; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Frames: 6 ;Sort Priorities: X char, Char line, Y char, Frame number ;Data Outputted: Gfx ;Interleave: Sprite ;Mask: No golem_sup_espada_golpeatras.sev: DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 2 ,4 ,21 DEFB 72 ,162 ,138 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 85 ,84 ,0 DEFB 170 ,170 ,128 DEFB 0 ,5 ,80 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,30 ,0 DEFB 0 ,63 ,0 DEFB 0 ,61 ,0 DEFB 0 ,48 ,0 DEFB 0 ,62 ,0 DEFB 11 ,158 ,160 DEFB 21 ,204 ,80 DEFB 11 ,198 ,32 DEFB 23 ,208 ,144 DEFB 11 ,221 ,160 DEFB 23 ,157 ,128 DEFB 33 ,61 ,160 ; ASM source file created by SevenuP v1.21 ; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Frames: 6 ;Sort Priorities: X char, Char line, Y char, Frame number ;Data Outputted: Gfx ;Interleave: Sprite ;Mask: No golem_sup_espada_ouch.sev: DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,15 ,0 DEFB 0 ,31 ,128 DEFB 0 ,31 ,128 DEFB 0 ,63 ,128 DEFB 0 ,59 ,128 DEFB 0 ,56 ,0 DEFB 11 ,127 ,80 DEFB 21 ,168 ,40 DEFB 43 ,230 ,208 DEFB 23 ,216 ,232 DEFB 47 ,222 ,224 DEFB 23 ,222 ,232 DEFB 33 ,190 ,224 DEFB 71 ,30 ,194 DEFB 47 ,0 ,21 DEFB 79 ,29 ,42 DEFB 158 ,0 ,20 DEFB 80 ,5 ,0 ; ASM source file created by SevenuP v1.21 ; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Frames: 6 ;Sort Priorities: X char, Char line, Y char, Frame number ;Data Outputted: Gfx ;Interleave: Sprite ;Mask: No golem_sup_muere.sev: DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,16 ,0 DEFB 0 ,0 ,0 DEFB 0 ,32 ,0 DEFB 0 ,32 ,0 DEFB 0 ,16 ,0 DEFB 0 ,8 ,128 DEFB 0 ,8 ,0 DEFB 0 ,24 ,0 DEFB 1 ,56 ,72 DEFB 16 ,60 ,64 DEFB 34 ,108 ,132 DEFB 32 ,1 ,8 DEFB 18 ,124 ,144 DEFB 9 ,108 ,80 DEFB 10 ,68 ,72 DEFB 18 ,56 ,140 DEFB 49 ,1 ,140 DEFB 41 ,131 ,148 DEFB 89 ,239 ,26 DEFB 41 ,239 ,12 DEFB 81 ,239 ,154 DEFB 57 ,199 ,148 DEFB 88 ,16 ,26 DEFB 57 ,239 ,28 DEFB 120 ,0 ,30 DEFB 120 ,238 ,30 DEFB 80 ,0 ,8 DEFB 98 ,108 ,134 DEFB 0 ,16 ,4 DEFB 34 ,1 ,0 DEFB 0 ,32 ,4 DEFB 17 ,1 ,0 DEFB 8 ,16 ,8 DEFB 5 ,40 ,144 DEFB 4 ,8 ,16 DEFB 8 ,25 ,0 DEFB 1 ,49 ,8 DEFB 16 ,41 ,0 DEFB 2 ,84 ,128 DEFB 34 ,41 ,136 DEFB 50 ,21 ,16 DEFB 27 ,1 ,152 DEFB 27 ,131 ,8 DEFB 17 ,239 ,140 DEFB 48 ,238 ,136 DEFB 41 ,109 ,28 DEFB 112 ,170 ,10 DEFB 40 ,16 ,28 DEFB 112 ,170 ,142 DEFB 56 ,84 ,22 DEFB 82 ,238 ,138 DEFB 56 ,84 ,22 DEFB 114 ,1 ,14 DEFB 40 ,0 ,28 DEFB 80 ,0 ,154 DEFB 98 ,0 ,12 DEFB 48 ,0 ,154 DEFB 42 ,1 ,20 DEFB 58 ,1 ,10 DEFB 19 ,1 ,132 DEFB 8 ,1 ,0 DEFB 1 ,40 ,8 DEFB 16 ,5 ,0 DEFB 2 ,32 ,128 DEFB 32 ,20 ,8 DEFB 16 ,1 ,16 DEFB 10 ,128 ,128 DEFB 17 ,1 ,8 DEFB 0 ,164 ,4 DEFB 16 ,74 ,72 DEFB 40 ,4 ,0 DEFB 80 ,1 ,10 DEFB 8 ,80 ,0 DEFB 64 ,10 ,138 DEFB 8 ,0 ,16 DEFB 2 ,0 ,138 DEFB 8 ,0 ,4 DEFB 66 ,0 ,10 DEFB 40 ,0 ,64 DEFB 16 ,0 ,0 DEFB 0 ,0 ,4 DEFB 0 ,0 ,128 DEFB 2 ,1 ,16 DEFB 0 ,0 ,0 DEFB 0 ,0 ,144 DEFB 0 ,2 ,0 DEFB 2 ,129 ,0 DEFB 1 ,64 ,128 DEFB 0 ,4 ,0 DEFB 1 ,64 ,128 DEFB 2 ,133 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0 DEFB 0 ,0 ,0
20.009753
72
0.466223
aeb3200b3fc59f7813f731980b5a53d2e81e1cdc
9,552
asm
Assembly
src/client.asm
JohnAgapeyev/7612-ass2
df133ff990f08aec226ae671b0143ff0e930d717
[ "MIT" ]
null
null
null
src/client.asm
JohnAgapeyev/7612-ass2
df133ff990f08aec226ae671b0143ff0e930d717
[ "MIT" ]
null
null
null
src/client.asm
JohnAgapeyev/7612-ass2
df133ff990f08aec226ae671b0143ff0e930d717
[ "MIT" ]
null
null
null
struc sockaddr_in .sin_family resw 1 .sin_port resw 1 .sin_addr resd 1 .sin_zero resb 8 endstruc section .data sock_err_msg db "Failed to initialize socket", 0x0a, 0 sock_err_msg_len equ $-sock_err_msg connect_err_msg db "Failed to connect to server", 0x0a, 0 connect_err_msg_len equ $-connect_err_msg server_msg db " responded with: ", 0 server_msg_len equ $-server_msg ip_prompt db "Enter the server IP: ", 0 ip_prompt_len equ $-ip_prompt port_prompt db "Enter the server port: ", 0 port_prompt_len equ $-port_prompt count_prompt db "Enter the message count: ", 0 count_prompt_len equ $-count_prompt client_msg db "This is a client message!", 0xa, 0 client_msg_len equ $-client_msg pop_sa istruc sockaddr_in ; AF_INET at sockaddr_in.sin_family, dw 2 ; Will be filled in later at sockaddr_in.sin_port, dw 0 ; Will be filled in later at sockaddr_in.sin_addr, dd 0 at sockaddr_in.sin_zero, dd 0, 0 iend sockaddr_in_len equ $-pop_sa section .bss sock resd 1 buffer resb 256 temp_buf resb 256 mesg_count resd 1 address resd 1 port resw 1 section .text global _start ; function: ; _start ; ; notes: ; the global entry point _start: call socket ; Write mov eax, 4 mov ebx, 1 mov ecx, ip_prompt mov edx, ip_prompt_len int 0x80 call read_address call load_address ; Write mov eax, 4 mov ebx, 1 mov ecx, port_prompt mov edx, port_prompt_len int 0x80 call read_num_value mov WORD [port], ax ; Bounds check the port cmp eax, 0 jle exit cmp eax, 65535 jg exit call load_port ; Write mov eax, 4 mov ebx, 1 mov ecx, count_prompt mov edx, count_prompt_len int 0x80 call read_num_value mov DWORD [mesg_count], eax call connect mov edi, [mesg_count] .read: mov eax, 4 mov ebx, [sock] mov ecx, client_msg mov edx, client_msg_len int 0x80 ; Read mov eax, 3 mov ebx, [sock] mov ecx, buffer mov edx, 256 int 0x80 cmp eax, 0 jl exit push eax mov ecx, eax xor edx, edx .save_buf: mov eax, [buffer + (edx * 4)] mov [temp_buf + (edx * 4)], eax inc edx loop .save_buf mov eax, [address] call write_address ; Write mov eax, 4 mov ebx, 1 mov ecx, server_msg mov edx, server_msg_len int 0x80 ; Write mov eax, 4 mov ecx, temp_buf pop edx int 0x80 dec edi test edi, edi jz exit jmp .read ; function: ; exit ; ; notes: ; cleanly exit the program exit: mov eax, 1 mov ebx, 0 int 0x80 ; function: ; socket ; ; notes: ; setup the socket using the socketcall syscall and load it into sock socket: ; socketcall mov eax, 102 ; socket() mov ebx, 1 push 0 push 1 push 2 mov ecx, esp int 0x80 add esp, 12 cmp eax, 0 jl .socket_fail mov [sock], eax ; syscall 102 - socketcall mov eax, 102 ; socketcall type (sys_setsockopt 14) mov ebx, 14 ; sizeof socklen_t push 4 ; address of socklen_t - on the stack push esp ; SO_REUSEADDR = 2 push 2 ; SOL_SOCKET = 1 push 1 mov edx, [sock] ; sockfd push edx mov ecx, esp int 0x80 add esp, 20 ;mov [sock], eax ret .socket_fail: mov ecx, sock_err_msg mov edx, sock_err_msg_len jmp fail ; function: ; connect ; ; notes: ; connect the socket in sock to the address in sockaddr_in connect: ; socketcall mov eax, 102 ; connect() mov ebx, 3 push sockaddr_in_len push pop_sa push DWORD [sock] mov ecx, esp int 0x80 add esp, 12 cmp eax, 0 jl .connect_fail ret .connect_fail: mov ecx, connect_err_msg mov edx, connect_err_msg_len jmp fail ; function: ; fail ; ; notes: ; print an error about connecting and exit the program fail: mov eax, 4 ; SYS_WRITE mov ebx, 2 ; STDERR int 0x80 jmp exit ; function: ; load_address ; ; notes: ; load the address in address into the sockaddr_in load_address: mov eax, [address] bswap eax mov DWORD [pop_sa + sockaddr_in.sin_addr], eax ret ; function: ; load_port ; ; notes: ; load the port in port into the sockaddr_in load_port: mov eax, [port] bswap eax shr eax, 16 mov WORD [pop_sa + sockaddr_in.sin_port], ax ret ; function: ; read_address ; ; notes: ; get the string from the user and load it into address read_address: ;Read string into buffer mov eax, 3 mov ebx, 0 mov ecx, buffer mov edx, 15 int 0x80 ;Grab number of bytes read mov ecx, eax sub ecx, 2 xor eax, eax mov ebx, 1 xor edi, edi jmp .loop_start .loo: ;Grab current buffer byte mov dl, [buffer + ecx] ;Check if byte is less than '.' cmp dl, '.' je .next_term ;Check if byte is less than '0' cmp dl, '0' jl exit ;Check if byte is greater than '9' cmp dl, '9' jg exit ;eax = (buffer[ecx] & 0xf) * ebx and edx, 0xf imul edx, ebx add eax, edx ;ebx *= 10 imul ebx, 10 dec ecx .loop_start: ;Loop condition cmp ecx, 0 jge .loo ;Prevent overflow on ip term cmp eax, 255 jg exit mov BYTE [address + edi], al ret .next_term: dec ecx ;Prevent overflow on ip term cmp eax, 255 jg exit ;Save byte somewhere before xoring mov BYTE [address + edi], al inc edi xor eax, eax mov ebx, 1 jmp .loop_start ; function: ; read_num_value ; ; return: ; eax - the number read ; ; notes: ; get a numerical value from the user read_num_value: ;Read string into buffer mov eax, 3 mov ebx, 0 mov ecx, buffer mov edx, 10 int 0x80 ;Grab number of bytes read mov ecx, eax sub ecx, 2 xor eax, eax mov ebx, 1 jmp .loop_start .loo: ;Grab current buffer byte mov dl, [buffer + ecx] ;Check if byte is negative sign cmp dl, 0x2d je .negative ;Check if byte is less than '0' cmp dl, 0x30 jl exit ;Check if byte is greater than '9' cmp dl, 0x39 jg exit ;eax = (buffer[ecx] & 0xf) * ebx and edx, 0xf imul edx, ebx add eax, edx ;ebx *= 10 imul ebx, 10 dec ecx .loop_start: ;Loop condition cmp ecx, 0 jge .loo ret .negative: neg eax ret ; eax is the address ; function: ; write_address ; ; parameters: ; eax the address to print ; ; notes: ; print address out write_address: push eax shr eax, 24 call write_val mov eax, 4 mov ebx, 1 push '.' mov ecx, esp mov edx, 1 int 0x80 add esp, 4 pop eax push eax shr eax, 16 and eax, 0x000000ff call write_val mov eax, 4 mov ebx, 1 push '.' mov ecx, esp mov edx, 1 int 0x80 add esp, 4 pop eax push eax shr eax, 8 and eax, 0x000000ff call write_val mov eax, 4 mov ebx, 1 push '.' mov ecx, esp mov edx, 1 int 0x80 add esp, 4 pop eax and eax, 0x000000ff call write_val ret ;eax is the value ; function: ; write_val ; ; parameters: ; eax the value to print ; ; notes: ; print out the ascii of the value write_val: cmp eax, 0 jns .write_pos ;Negate value neg eax ;Save on stack push eax ;Write negative sign mov eax, 4 mov ebx, 1 ;0x2d is the '-' char push 0x2d mov ecx, esp mov edx, 1 int 0x80 ;Pop char off the stack pop ecx ;Read back saved positive value pop eax .write_pos: ;Store value in ebx mov ebx, eax ;Zero out byte counter xor esi, esi ;Clear edx xor edx, edx ;Set the dividend mov eax, ebx ;Divide by 10k mov ecx, 10000 div ecx cmp al, 0 jz .thousand inc esi ;Convert number to character equivalent ;al += '0' add al, 48 ;Store the 10k byte mov BYTE [buffer], al ;Store remainder mov ebx, edx .thousand: ;Clear edx xor edx, edx ;Set the dividend mov eax, ebx ;Divide by 1k mov ecx, 1000 div ecx cmp al, 0 jz .hundred inc esi ;Convert number to character equivalent ;al += '0' add al, 48 ;Store the 1k byte mov BYTE [buffer + 1], al ;Store remainder mov ebx, edx .hundred: ;Clear edx xor edx, edx ;Set the dividend mov eax, ebx ;Divide by 100 mov ecx, 100 div ecx cmp al, 0 jz .ten inc esi ;Convert number to character equivalent ;al += '0' add al, 48 ;Store the 100 byte mov BYTE [buffer + 2], al ;Store remainder mov ebx, edx .ten: ;Clear edx xor edx, edx ;Set the dividend mov eax, ebx ;Divide by 100 mov ecx, 10 div ecx cmp al, 0 jz .one inc esi ;Convert number to character equivalent ;al += '0' add al, 48 ;Store the 10 byte mov BYTE [buffer + 3], al .one: add dl, 48 ;Store the 1 byte mov BYTE [buffer + 4], dl inc esi ;Write mov eax, 4 mov ebx, 1 mov ecx, buffer ;Offset ecx by byte counter to prevent zero padding the string add ecx, 5 sub ecx, esi mov edx, esi int 0x80 ret
15.659016
71
0.586579
92e5c8aee5f338f21e50d9db7b95c156b91842dc
6,627
asm
Assembly
client/arch/zx/fonts.asm
the-channels/channels
bba1f8062df3f204789f9809b4f88df49ccd7b5a
[ "MIT" ]
40
2021-07-23T21:33:59.000Z
2022-02-07T19:07:46.000Z
client/arch/zx/fonts.asm
the-channels/channels
bba1f8062df3f204789f9809b4f88df49ccd7b5a
[ "MIT" ]
null
null
null
client/arch/zx/fonts.asm
the-channels/channels
bba1f8062df3f204789f9809b4f88df49ccd7b5a
[ "MIT" ]
2
2021-08-02T17:49:03.000Z
2021-10-09T21:53:41.000Z
PUBLIC font_even_index PUBLIC font_odd_index section code_font_fzx align 256 font_even_index: defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even defw font_even + 8 * 1 defw font_even + 8 * 2 defw font_even + 8 * 3 defw font_even + 8 * 4 defw font_even + 8 * 5 defw font_even + 8 * 6 defw font_even + 8 * 7 defw font_even + 8 * 8 defw font_even + 8 * 9 defw font_even + 8 * 10 defw font_even + 8 * 11 defw font_even + 8 * 12 defw font_even + 8 * 13 defw font_even + 8 * 14 defw font_even + 8 * 15 defw font_even + 8 * 16 defw font_even + 8 * 17 defw font_even + 8 * 18 defw font_even + 8 * 19 defw font_even + 8 * 20 defw font_even + 8 * 21 defw font_even + 8 * 22 defw font_even + 8 * 23 defw font_even + 8 * 24 defw font_even + 8 * 25 defw font_even + 8 * 26 defw font_even + 8 * 27 defw font_even + 8 * 28 defw font_even + 8 * 29 defw font_even + 8 * 30 defw font_even + 8 * 31 defw font_even + 8 * 32 defw font_even + 8 * 33 defw font_even + 8 * 34 defw font_even + 8 * 35 defw font_even + 8 * 36 defw font_even + 8 * 37 defw font_even + 8 * 38 defw font_even + 8 * 39 defw font_even + 8 * 40 defw font_even + 8 * 41 defw font_even + 8 * 42 defw font_even + 8 * 43 defw font_even + 8 * 44 defw font_even + 8 * 45 defw font_even + 8 * 46 defw font_even + 8 * 47 defw font_even + 8 * 48 defw font_even + 8 * 49 defw font_even + 8 * 50 defw font_even + 8 * 51 defw font_even + 8 * 52 defw font_even + 8 * 53 defw font_even + 8 * 54 defw font_even + 8 * 55 defw font_even + 8 * 56 defw font_even + 8 * 57 defw font_even + 8 * 58 defw font_even + 8 * 59 defw font_even + 8 * 60 defw font_even + 8 * 61 defw font_even + 8 * 62 defw font_even + 8 * 63 defw font_even + 8 * 64 defw font_even + 8 * 65 defw font_even + 8 * 66 defw font_even + 8 * 67 defw font_even + 8 * 68 defw font_even + 8 * 69 defw font_even + 8 * 70 defw font_even + 8 * 71 defw font_even + 8 * 72 defw font_even + 8 * 73 defw font_even + 8 * 74 defw font_even + 8 * 75 defw font_even + 8 * 76 defw font_even + 8 * 77 defw font_even + 8 * 78 defw font_even + 8 * 79 defw font_even + 8 * 80 defw font_even + 8 * 81 defw font_even + 8 * 82 defw font_even + 8 * 83 defw font_even + 8 * 84 defw font_even + 8 * 85 defw font_even + 8 * 86 defw font_even + 8 * 87 defw font_even + 8 * 88 defw font_even + 8 * 89 defw font_even + 8 * 90 defw font_even + 8 * 91 defw font_even + 8 * 92 defw font_even + 8 * 93 defw font_even + 8 * 94 defw font_even + 8 * 95 font_odd_index: defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd defw font_odd + 8 * 1 defw font_odd + 8 * 2 defw font_odd + 8 * 3 defw font_odd + 8 * 4 defw font_odd + 8 * 5 defw font_odd + 8 * 6 defw font_odd + 8 * 7 defw font_odd + 8 * 8 defw font_odd + 8 * 9 defw font_odd + 8 * 10 defw font_odd + 8 * 11 defw font_odd + 8 * 12 defw font_odd + 8 * 13 defw font_odd + 8 * 14 defw font_odd + 8 * 15 defw font_odd + 8 * 16 defw font_odd + 8 * 17 defw font_odd + 8 * 18 defw font_odd + 8 * 19 defw font_odd + 8 * 20 defw font_odd + 8 * 21 defw font_odd + 8 * 22 defw font_odd + 8 * 23 defw font_odd + 8 * 24 defw font_odd + 8 * 25 defw font_odd + 8 * 26 defw font_odd + 8 * 27 defw font_odd + 8 * 28 defw font_odd + 8 * 29 defw font_odd + 8 * 30 defw font_odd + 8 * 31 defw font_odd + 8 * 32 defw font_odd + 8 * 33 defw font_odd + 8 * 34 defw font_odd + 8 * 35 defw font_odd + 8 * 36 defw font_odd + 8 * 37 defw font_odd + 8 * 38 defw font_odd + 8 * 39 defw font_odd + 8 * 40 defw font_odd + 8 * 41 defw font_odd + 8 * 42 defw font_odd + 8 * 43 defw font_odd + 8 * 44 defw font_odd + 8 * 45 defw font_odd + 8 * 46 defw font_odd + 8 * 47 defw font_odd + 8 * 48 defw font_odd + 8 * 49 defw font_odd + 8 * 50 defw font_odd + 8 * 51 defw font_odd + 8 * 52 defw font_odd + 8 * 53 defw font_odd + 8 * 54 defw font_odd + 8 * 55 defw font_odd + 8 * 56 defw font_odd + 8 * 57 defw font_odd + 8 * 58 defw font_odd + 8 * 59 defw font_odd + 8 * 60 defw font_odd + 8 * 61 defw font_odd + 8 * 62 defw font_odd + 8 * 63 defw font_odd + 8 * 64 defw font_odd + 8 * 65 defw font_odd + 8 * 66 defw font_odd + 8 * 67 defw font_odd + 8 * 68 defw font_odd + 8 * 69 defw font_odd + 8 * 70 defw font_odd + 8 * 71 defw font_odd + 8 * 72 defw font_odd + 8 * 73 defw font_odd + 8 * 74 defw font_odd + 8 * 75 defw font_odd + 8 * 76 defw font_odd + 8 * 77 defw font_odd + 8 * 78 defw font_odd + 8 * 79 defw font_odd + 8 * 80 defw font_odd + 8 * 81 defw font_odd + 8 * 82 defw font_odd + 8 * 83 defw font_odd + 8 * 84 defw font_odd + 8 * 85 defw font_odd + 8 * 86 defw font_odd + 8 * 87 defw font_odd + 8 * 88 defw font_odd + 8 * 89 defw font_odd + 8 * 90 defw font_odd + 8 * 91 defw font_odd + 8 * 92 defw font_odd + 8 * 93 defw font_odd + 8 * 94 defw font_odd + 8 * 95 font_even: binary "font_4x8_even.bin" font_odd: binary "font_4x8_odd.bin"
24.186131
30
0.590011
f6fb1ffd70c3cdbe3920edc915a7360fec95117c
415
asm
Assembly
programs/oeis/099/A099820.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/099/A099820.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/099/A099820.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A099820: Even nonnegative integers in base 2 (bisection of A007088). ; 0,10,100,110,1000,1010,1100,1110,10000,10010,10100,10110,11000,11010,11100,11110,100000,100010,100100,100110,101000,101010,101100,101110,110000,110010,110100,110110,111000,111010,111100,111110,1000000 mov $1,$0 cal $0,228071 ; Write n in binary and interpret as a decimal number; a(n) is this quantity minus n. add $0,$1 mov $1,$0 mul $1,10
46.111111
202
0.766265
e3dc60543d91f7808b844b94608d88f1915654c4
83
asm
Assembly
src/intel/tools/tests/gen5/jmpi.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
src/intel/tools/tests/gen5/jmpi.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
src/intel/tools/tests/gen5/jmpi.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
(+f0.0) jmpi(1) 0x00000004UD { align1 nomask };
41.5
82
0.385542
eeb51b66e83ddc18807cd73e7b188ba609d047f2
6,149
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1436.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1436.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1436.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 %r14 push %r15 push %rax push %rcx push %rdi push %rsi lea addresses_UC_ht+0xbb92, %r14 nop sub %rsi, %rsi movl $0x61626364, (%r14) nop nop cmp $32474, %r10 lea addresses_UC_ht+0xbde2, %rcx nop and %rax, %rax vmovups (%rcx), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %r11 nop add %rsi, %rsi lea addresses_D_ht+0x15246, %r11 cmp %r15, %r15 movw $0x6162, (%r11) dec %r11 lea addresses_D_ht+0x1e702, %r10 nop nop nop nop add %rsi, %rsi mov (%r10), %r15d nop nop nop nop nop dec %r11 lea addresses_WT_ht+0x6e2, %rcx nop nop nop sub %rax, %rax mov (%rcx), %r11w nop add $33290, %r14 lea addresses_WC_ht+0x12262, %rsi lea addresses_WT_ht+0x5b18, %rdi nop nop nop sub $31928, %r10 mov $48, %rcx rep movsl nop nop nop nop nop and $44837, %r10 lea addresses_WC_ht+0x19d22, %rsi lea addresses_normal_ht+0x169e2, %rdi nop nop nop add %r10, %r10 mov $18, %rcx rep movsw nop nop nop nop nop cmp $23389, %rdi pop %rsi pop %rdi pop %rcx pop %rax pop %r15 pop %r14 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r8 push %rax push %rbx push %rdi push %rsi // Store lea addresses_PSE+0x5922, %r12 nop cmp $24784, %rsi mov $0x5152535455565758, %r8 movq %r8, %xmm0 vmovups %ymm0, (%r12) and %rbx, %rbx // Store lea addresses_PSE+0x1d9e2, %r12 nop nop sub %rax, %rax movl $0x51525354, (%r12) nop nop nop nop nop and %rdi, %rdi // Faulty Load lea addresses_UC+0x14de2, %r12 nop cmp $23076, %r13 movb (%r12), %r8b lea oracles, %rbx and $0xff, %r8 shlq $12, %r8 mov (%rbx,%r8,1), %r8 pop %rsi pop %rdi pop %rbx pop %rax pop %r8 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': True, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 6, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': True, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 2, 'size': 2, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 2, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 8, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, '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 */
38.917722
2,999
0.656855
be73afe8d8313731ebf113f7033b9800a7e22d75
556
asm
Assembly
PRG/objects/6-10.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/objects/6-10.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/objects/6-10.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
.byte $01 ; Unknown purpose .byte OBJ_REDTROOPA, $0B, $13 .byte OBJ_REDTROOPA, $12, $14 .byte OBJ_REDTROOPA, $24, $14 .byte OBJ_REDTROOPA, $26, $14 .byte OBJ_BUSTERBEATLE, $33, $19 .byte OBJ_BUSTERBEATLE, $3C, $18 .byte OBJ_PARAGOOMBA, $45, $19 .byte OBJ_FLYINGREDPARATROOPA, $52, $17 .byte OBJ_BUSTERBEATLE, $5E, $17 .byte OBJ_BUSTERBEATLE, $65, $17 .byte OBJ_BUSTERBEATLE, $6B, $17 .byte OBJ_BUSTERBEATLE, $74, $17 .byte OBJ_TWIRLINGPLATCW, $81, $15 .byte OBJ_REDTROOPA, $84, $15 .byte OBJ_ENDLEVELCARD, $A8, $15 .byte $FF ; Terminator
29.263158
40
0.697842
0b853aba252d8a3698d74bcbb25e8fe5787172e3
67,575
asm
Assembly
Library/Text/TextAttr/taRunManip.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Text/TextAttr/taRunManip.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Text/TextAttr/taRunManip.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1989 -- All Rights Reserved PROJECT: PC GEOS MODULE: User/Text FILE: taRunManip.asm ROUTINES: Name Description ---- ----------- EXT TA_UpdateRunsForReplacement Update all run structures to reflect a text replacement operation EXT TA_UpdateRunsForSelectionChange Update all run structures to reflect a selection change INT ModifyRun Modify a range of a run array INT EnumRunsInRange Enumerate the runs in a range to a callback routine REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 10/89 Initial version DESCRIPTION: This file contains the internal routines to handle charAttr, paraAttr and type runs. None of these routines are directly accessable outisde the text object. $Id: taRunManip.asm,v 1.1 97/04/07 11:18:39 newdeal Exp $ ------------------------------------------------------------------------------@ TextAttributes segment resource COMMENT @---------------------------------------------------------------------- FUNCTION: ModifyRun DESCRIPTION: Modify a range of a run array CALLED BY: INTERNAL PASS: *ds:si - text object bx - offset of run structure ax, dx - data for callback ss:bp - VisTextRange followed by any modification data cx:di - address of routine to combine an element with a change (where ax, bx stores the change) or cx=0 to replace with ax (where ax is a token) * or ax = CA_NULL_ELEMENT for return to base style Adjust routine: PASS: ss:bp - element ss:di - ss:bp passed to ModifyRun *ds:si - run ax, dx - modData bx - value passed to ModifyRun in bx RETURN: ss:bp - updated DESTROYED: ax, bx, cx, dx, si, di, bp, es RETURN: dxax - last run position (0xffff if no change (insertion el change)) DESTROYED: cx, di REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 10/89 Initial version ------------------------------------------------------------------------------@ ModifyRunFrame struct MRF_element byte (size VisTextMaxParaAttr) dup (?) ; these fields are stored by pushing them on the stack MRF_textSize dword MRF_passedFrame nptr MRF_run word MRF_modStart dword MRF_modEnd dword MRF_dataAX word MRF_dataDX word MRF_object optr MRF_adjustRoutine dword ;cx:di - callback routine or 0 ModifyRunFrame ends ModifyRun proc far uses bp, es class VisTextClass .enter ; first we need some stack space to do our thing push ax ;word on stack push bp mov bp, sp mov {word} ss:[bp+2], SS_BUF_SIZE pop bp call SwitchStackWithData ; ; If this operation just sets the insertion token, then we don't want to ; add any undo items. ; ; We are just setting an insertion token if: ; The range is null (i.e. start = end) ; The run we are changing is not a para attr run. ; push cx cmpdw ss:[bp].VTR_start, ss:[bp].VTR_end, cx pop cx jnz areaSelected cmp bx, offset VTI_paraAttrRuns jz areaSelected call TU_AbortChainIfUndoable call ModifyRunWithoutUndo jmp exit areaSelected: push cx, ax mov cx, bx call CheckIfRunsInRangeForUndo tst ax ;No undo jz 10$ ; Save the runs in the range that will be modified. push bx mov bx, bp call TU_CreateUndoForRunsInRange pop bx 10$: pop cx, ax ; Modify the runs call ModifyRunWithoutUndo ; Create an undo action that will delete runs across the range we have ; modified (if there are no runs in this range, nothing will be ; added). push cx, ax mov cx, bx ;CX <- run offset call CheckIfRunsInRangeForUndo tst ax ;Exit if no undo/no runs in range jz noPostUndo push bx mov bx, bp call TU_CreateUndoForRunModification pop bx noPostUndo: pop cx, ax exit: pop di add sp, SS_BUF_SIZE call ThreadReturnStackSpace .leave ret ModifyRun endp ;--- ModifyRunWithoutUndo proc near class VisTextClass .enter EC < call T_AssertIsVisText > ; allocate local space and store local variables push cx ;push callback - high word push di ;low word push ds:[LMBH_handle] ;object.handle push si ;object.chunk push dx ;dataDX push ax ;dataAX pushdw ss:[bp].VTR_end ;modEnd pushdw ss:[bp].VTR_start ;modStart push bx ;run push bp ;passed frame call TS_GetTextSize ;dx.ax = size push dx push ax sub sp, size VisTextMaxParaAttr mov bp, sp ;ss:bp = ModifyRunFrame ; if (modStart == modEnd) { cmpdw ss:[bp].MRF_modStart, ss:[bp].MRF_modEnd, cx LONG jnz areaSelected cmp bx, offset VTI_paraAttrRuns LONG jz areaSelected ; if we are at the end of the text then act as if an area is selected cmpdw dxax, ss:[bp].MRF_modStart jz areaSelected ; if (adjustVector == 0) { ; SetInsertionElement(modData) tst ss:[bp].MRF_adjustRoutine.segment jnz changeInsertionElement mov bx, ss:[bp].MRF_dataAX cmp bx, CA_NULL_ELEMENT jz changeInsertionElement ; replace insertion token with the given token mov ax, ss:[bp].MRF_run call SetInsertionElement setDXdone: mov dx, 0xffff jmp done ; else { ; temp = GetRunForPosition(modStart).token ; GetElement(buf, temp) ; adjustVector(buf, modData) ; AddElement(buf, 0) ; SetInsertionElement(temp) ; } changeInsertionElement: mov bx, ss:[bp].MRF_run call GetInsertionElement ;if an insertion element cmp bx, CA_NULL_ELEMENT ;already exists then modify it jnz insertionElementExists movdw dxax, ss:[bp].MRF_modStart mov bx, ss:[bp].MRF_run call TSL_IsParagraphStart jnc useLeft ; this is the start of ; a line -- use the ; attributes to the ; Right call GetRunForPosition jmp gotRun useLeft: ; this is NOT the ; start of a line -- ; use the attributes ; to the Left call GetRunForPositionLeft gotRun: call MR_Unlock insertionElementExists: push bx mov bx, ss:[bp].MRF_run call RunArrayLock pop bx call ElementAddRef call MR_ModifyElementLow call MR_Unlock mov ax, ss:[bp].MRF_run call SetInsertionElement push bx mov bx, ss:[bp].MRF_run call RunArrayLock pop bx call RemoveElement call MR_Unlock jmp setDXdone ; } else { ; find charAttr run covering the modStart ; if (modStart != start of run) { ; insert a run before this one for the text before the start ; of the modification ; } areaSelected: movdw dxax, ss:[bp].MRF_modEnd ;find token for end of ;range to change call GetRunForPosition ;bx = token call ElementAddRef ;increment its ref count so that the ;element does not go away too early push bx ;save token covering end of range call MR_Unlock ;*ds:si = text object movdw dxax, ss:[bp].MRF_modStart mov bx, ss:[bp].MRF_run call GetRunForPosition ; ds:si = run element, dx:ax = pos, bx = token, cx = # consecutive cmpdw dxax, ss:[bp].MRF_modStart jz runAtStart ; if there is not a run at the start of the range to modify then ; insert a run where the selection changes call RunArrayInsert call RunArrayNext ;move to run after one inserted call RunArrayMarkDirty mov ax, ss:[bp].MRF_modStart.low ;it starts at beginning of mov ds:[si].TRAE_position.WAAH_low,ax ;area modified mov al, ss:[bp].MRF_modStart.high.low mov ds:[si].TRAE_position.WAAH_high, al runAtStart: ; while (modEnd >= start of next run) { ; ds:si = run topLoop: call MR_ModifyElement call RunArrayNext ;dx.ax = position cmpdw dxax, ss:[bp].MRF_modEnd jb topLoop jz endLoop ; if exact match then done ; if not exact match then we must add a run at the end ; ds:si = run AFTER our range, dx.ax = position ; add a run at the end so that our changes do not affect text beyond ; the end of the selected area ; if we were passed (x, textSize) then don't add a run at the end ; of the text (since it is not needed) cmp dl, TEXT_ADDRESS_PAST_END_HIGH movdw dxax, ss:[bp].MRF_modEnd jnz notSpecialEnd cmpdw dxax, ss:[bp].MRF_textSize jz endLoop notSpecialEnd: pop bx ;recover token for end of range push bx call RunArrayInsert endLoop: pop bx ;discard token at end of range call RemoveElement ;after decrementing its ref count call MR_Unlock mov bx, ss:[bp].MRF_run call CoalesceRun ;dxax = last run ; free local space done: mov bx, ss:[bp].MRF_run mov bp, ss:[bp].MRF_passedFrame add sp,size ModifyRunFrame .leave ret ModifyRunWithoutUndo endp ;---------- MR_Unlock proc near call RunArrayUnlock FALL_THRU MR_LoadText MR_Unlock endp MR_LoadText proc near push bx mov bx, ss:[bp].MRF_object.handle call MemDerefDS mov si, ss:[bp].MRF_object.chunk pop bx ret MR_LoadText endp ;------------ ; ds:si - run array element MR_ModifyElement proc near class VisTextClass .enter ; get the old element stored here and remove a reference to it mov bx, ds:[si].TRAE_token call MR_ModifyElementLow call RunArrayMarkDirty mov ds:[si].TRAE_token, bx .leave ret MR_ModifyElement endp ;----------- ; bx = element MR_ModifyElementLow proc near uses cx class VisTextClass .enter call GetElement call RemoveElement tst ss:[bp].MRF_adjustRoutine.segment jz substitute ; adjust the element using the callback routine, then add it back call MR_CallAdjustVector afterAdjust: call AddElement ;returns bx = token common: .leave ret ; substitute the existing element with the passed element substitute: mov bx, ss:[bp].MRF_dataAX cmp bx, CA_NULL_ELEMENT jz returnToBaseStyle call ElementAddRef jmp common ; passed CA_NULL_ELEMENT which means return to base style returnToBaseStyle: mov ax, ss:[bp].SSEH_style cmp ax, CA_NULL_ELEMENT jz afterAdjust pushdw dssi push di call MR_LoadText sub sp, size StyleChunkDesc mov bx, sp call GetStyleArray call StyleSheetLockStyleChunk ; *ds:si = style, carry = flag pushf call ChunkArrayElementToPtr ; ds:di = style mov ax, ds:[di].TSEH_charAttrToken cmp ss:[bp].MRF_run, offset VTI_charAttrRuns jz 10$ mov ax, ds:[di].TSEH_paraAttrToken 10$: popf call StyleSheetUnlockStyleChunk add sp, size StyleChunkDesc pop di popdw dssi mov_tr bx, ax call GetElement ;use *base* element jmp afterAdjust MR_ModifyElementLow endp ;------------ ;ss:bp - element MR_CallAdjustVector proc near uses cx, si, di, bp, es .enter mov ax, ss:[bp].MRF_dataAX mov dx, ss:[bp].MRF_dataDX mov bx, ss:[bp].MRF_run mov di, ss:[bp].MRF_passedFrame call ss:[bp].MRF_adjustRoutine .leave ret MR_CallAdjustVector endp COMMENT @---------------------------------------------------------------------- FUNCTION: EnumRunsInRange DESCRIPTION: Enumerate the runs in a range to a callback routine CALLED BY: INTERNAL PASS: *ds:si - text object bx - offset of run structure ss:bp - VisTextRange to enumerate ax, cx, di - enumData dx - callback routine Callback routine: PASS: ss:bp - element *ds:si - run ax, cx, di - enumData RETURN: ax, cx, di - possibly changed DESTROYED: bx, dx, si, bp, ds, es RETURN: ax, cx, di - enumData DESTROYED: none REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 10/89 Initial version ------------------------------------------------------------------------------@ EnumRunsInRangeFrame struct ERIRF_element VisTextMaxParaAttr <> ; these fields are stored by pushing them on the stack ERIRF_enumEnd dword ERIRF_passedFrame word ;bp ERIRF_callback word ;di ERIRF_dataAX word ;ax ERIRF_dataCX word ;cx ERIRF_dataDI word ;di ERIFR_object optr ;ds:si EnumRunsInRangeFrame ends EnumRunsInRange proc far EC < call T_AssertIsVisText > ; allocate local space push ds ;object push si push di push cx push ax push dx ;save callback push bp ;passed frame pushdw ss:[bp].VTR_end movdw dxax, ss:[bp].VTR_start cmpdw dxax, ss:[bp].VTR_end jnz areaSelected call GetRunForPositionLeft jmp common areaSelected: call GetRunForPosition ;returns cx = token common: sub sp, size VisTextMaxParaAttr mov bp, sp topLoop: ; call callback routine push cx, si, di, ds, es call GetElement mov ax, ss:[bp].ERIRF_dataAX mov cx, ss:[bp].ERIRF_dataCX mov di, ss:[bp].ERIRF_dataDI push bp call ss:[bp].ERIRF_callback ;call callback pop bp mov ss:[bp].ERIRF_dataAX, ax mov ss:[bp].ERIRF_dataCX, cx mov ss:[bp].ERIRF_dataDI, di pop cx, si, di, ds, es ; find next run ; } while (run.start < enumEnd) call RunArrayNext cmpdw dxax, ss:[bp].ERIRF_enumEnd jb topLoop call RunArrayUnlock add sp,(size EnumRunsInRangeFrame)-14 pop bp pop dx pop ax pop cx pop di pop si pop ds ret EnumRunsInRange endp COMMENT @---------------------------------------------------------------------- FUNCTION: TA_UpdateRunsForReplacement DESCRIPTION: Update all run structures to reflect a text replace operation. Called BEFORE the text is updated. CALLED BY: INTERNAL PASS: *ds:si - VisTextInstance ss:bp - VisTextReplaceParameters, these fields used: VTRP_range VTRP_insCount dxax - text size RETURN: carry - set if SendCharAttrParaAttrChange needs to be called zero flag - set (z) if a paraAttr change occurred as a result of the replace operation. DESTROYED: none REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 9/89 Initial version ------------------------------------------------------------------------------@ TextUpdateRuns segment resource UpdateRunFlags record :8 ;force to a word URF_CHAR_ATTR_RUN:1 URF_PARA_ATTR_RUN:1 URF_TYPE_RUN:1 URF_GRAPHIC_RUN:1 URF_UPDATE_UI:1 URF_NEED_COALESCE:1 URF_MIDDLE:1 URF_DELETION:1 UpdateRunFlags end TA_UpdateRunsForReplacement proc far uses ax, bx, cx, dx, di class VisTextClass .enter EC < call T_AssertIsVisText > ; we need to update each run structure that exists mov bx, ds:[si] add bx, ds:[bx].Vis_offset mov bl, ds:[bx].VTI_storageFlags clr bh ;bh is flag for sending change ; if there are any runs then call to the TextAttribute resource ; to update them so that we can have one *one* ResourceCallInt test bl, mask VTSF_GRAPHICS or mask VTSF_MULTIPLE_CHAR_ATTRS \ or mask VTSF_MULTIPLE_PARA_ATTRS or mask VTSF_TYPES jz noRuns call UpdateMultipleRuns noRuns: ; Stuff the carry and zero flags. lahf and ah, not (mask CPU_CARRY or mask CPU_ZERO) or ah, bh sahf .leave ret TA_UpdateRunsForReplacement endp TextUpdateRuns ends ;------ ; dxax = text size ; bl = VisTextStorageFlags ; bh = return flags (CPUFlags) ; ss:bp = VisTextReplaceParameters UpdateMultipleRuns proc far class VisTextClass ; get the size of the text subdw dxax, ss:[bp].VTRP_range.VTR_end mov_tr di, ax or di, dx ;di = 0 if at end of text jz atEnd mov di, mask URF_MIDDLE atEnd: cmpdw ss:[bp].VTRP_range.VTR_start, ss:[bp].VTRP_range.VTR_end, ax jz noDeletion or di, mask URF_DELETION noDeletion: ; update graphic runs if needed ; if we're inserting at the end of the object then no update is needed clr ax ;no insertion token mov dx, offset VTCRI_lastGraphicRun ;offset in cached data mov cl, mask VTSF_GRAPHICS ;flags call doUpdateCheckGraphic jnc afterGraphic push di call UpdateGraphicRun ;dxax = last run pop di mov cx, offset VTCRI_lastGraphicRun ;offset in cached data call UpdateLastRunPosition afterGraphic: ; update charAttr runs if needed mov ax, ATTR_VIS_TEXT_CHAR_ATTR_INSERTION_TOKEN mov dx, offset VTCRI_lastCharAttrRun ;offset in cached data mov cl, mask VTSF_MULTIPLE_CHAR_ATTRS ;flags call doUpdateCheck jnc afterCharAttr push di mov cx, offset VTI_charAttrRuns ornf di, mask URF_CHAR_ATTR_RUN call UpdateRun pop di jnc 10$ ;if carry set then update UI ornf bh, mask CPU_CARRY 10$: mov cx, offset VTCRI_lastCharAttrRun ;offset in cached data call UpdateLastRunPosition afterCharAttr: ; update paraAttr runs if needed clr ax ;no insertion token mov dx, offset VTCRI_lastParaAttrRun ;offset in cached data mov cl, mask VTSF_MULTIPLE_PARA_ATTRS ;flags call doUpdateCheck jnc afterParaAttr push di mov cx, offset VTI_paraAttrRuns ornf di, mask URF_PARA_ATTR_RUN call UpdateRun pop di jnc 20$ ;if carry set then update UI or bh, mask CPU_CARRY or mask CPU_ZERO 20$: mov cx, offset VTCRI_lastParaAttrRun ;offset in cached data call UpdateLastRunPosition afterParaAttr: ; update type runs if needed mov ax, ATTR_VIS_TEXT_TYPE_INSERTION_TOKEN mov dx, offset VTCRI_lastTypeRun ;offset in cached data mov cl, mask VTSF_TYPES ;flags call doUpdateCheck jnc afterType push di mov cx, OFFSET_FOR_TYPE_RUNS ornf di, mask URF_TYPE_RUN call UpdateRun pop di jnc 30$ ;if carry set then update UI or bh, mask CPU_CARRY 30$: mov cx, offset VTCRI_lastTypeRun ;offset in cached data call UpdateLastRunPosition afterType: ret ;--- ; ax = vardata ; cl = flag to test ; dx = offset in cached data ; return carry set to update doUpdateCheck: ; test for the simple case first: if inserting at the end then optimize test di, mask URF_MIDDLE or mask URF_DELETION jz optimizeIfNoInsertionToken doUpdateCheckGraphic: test bl, cl ;if no runs then no update jz done ; the trickier case is that of the action happening after the last ; run push ax, bx mov ax, TEMP_VIS_TEXT_CACHED_RUN_INFO call ObjVarFindData jnc noOptPop add bx, dx ;ds:bx = last run cmpdw ss:[bp].VTRP_range.VTR_start, ds:[bx], ax jbe noOptPop pop ax, bx ; we can skip updating if there is no insertion token optimizeIfNoInsertionToken: tst_clc ax jz done push bx call ObjVarFindData pop bx done: retn noOptPop: pop ax, bx stc retn UpdateMultipleRuns endp COMMENT @---------------------------------------------------------------------- FUNCTION: UpdateLastRunPosition DESCRIPTION: Update the cached position of the last run CALLED BY: INTERNAL PASS: *ds:si - text object dxax - last run position cx - offset in VisTextCachedRunInfo RETURN: none DESTROYED: none REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 5/16/92 Initial version ------------------------------------------------------------------------------@ UpdateLastRunPosition proc near push bx push ax mov ax, TEMP_VIS_TEXT_CACHED_RUN_INFO or mask VDF_SAVE_TO_STATE call ObjVarFindData jnc create exists: pop ax add bx, cx ;ds:bx = offset movdw ds:[bx], dxax pop bx ret ; initialize new data to 0xffff create: push cx, di, es mov cx, size VisTextCachedRunInfo call ObjVarAddData segmov es, ds mov di, bx mov ax, 0xffff mov cx, (size VisTextCachedRunInfo) / 2 rep stosw pop cx, di, es jmp exists UpdateLastRunPosition endp COMMENT @---------------------------------------------------------------------- FUNCTION: UpdateLastRunPositionByRunOffset DESCRIPTION: Given a run offset call UpdateLastRunPosition CALLED BY: INTERNAL PASS: *ds:si - text object dxax - last run position bx - run offset RETURN: none DESTROYED: none REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 5/16/92 Initial version ------------------------------------------------------------------------------@ UpdateLastRunPositionByRunOffset proc far uses cx class VisTextClass .enter ; this is a flag indicating that the last run did not change cmp dx, 0xffff jz done mov cx, offset VTCRI_lastCharAttrRun cmp bx, offset VTI_charAttrRuns jz 10$ mov cx, offset VTCRI_lastParaAttrRun cmp bx, offset VTI_paraAttrRuns jz 10$ mov cx, offset VTCRI_lastGraphicRun cmp bx, OFFSET_FOR_GRAPHIC_RUNS jz 10$ mov cx, offset VTCRI_lastTypeRun EC < cmp bx, OFFSET_FOR_TYPE_RUNS > EC < ERROR_NZ ILLEGAL_RUN_TYPE > 10$: call UpdateLastRunPosition done: .leave ret UpdateLastRunPositionByRunOffset endp COMMENT @---------------------------------------------------------------------- FUNCTION: TA_UpdateRunsForSelectionChange DESCRIPTION: Update all run structures to reflect that the selection has changed CALLED BY: INTERNAL PASS: *ds:si - VisTextInstance RETURN: none DESTROYED: none REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 9/89 Initial version ------------------------------------------------------------------------------@ TextUpdateRuns segment resource TA_UpdateRunsForSelectionChange proc far uses di class VisTextClass .enter EC < call T_AssertIsVisText > ; we need to update the charAttr and type runs if they exist call Text_DerefVis_DI ; update charAttr runs if needed test ds:[di].VTI_storageFlags, mask VTSF_MULTIPLE_CHAR_ATTRS jz afterCharAttr call ClearCharAttr afterCharAttr: call ClearTypeAttr .leave ret TA_UpdateRunsForSelectionChange endp TextUpdateRuns ends ClearCharAttr proc far uses ax, bx, dx class VisTextClass .enter mov ax, ATTR_VIS_TEXT_CHAR_ATTR_INSERTION_TOKEN call ObjVarFindData jnc done call EditUnHilite mov bx, offset VTI_charAttrRuns mov dx, 1 call ClearInsertionElement call EditHilite done: .leave ret ClearCharAttr endp ClearTypeAttr proc far uses ax, bx, dx class VisTextClass .enter mov ax, ATTR_VIS_TEXT_TYPE_INSERTION_TOKEN call ObjVarFindData jnc done call EditUnHilite mov bx, OFFSET_FOR_TYPE_RUNS mov dx, 1 call ClearInsertionElement call EditHilite done: .leave ret ClearTypeAttr endp ;======================================================================== ; Internal routines ;======================================================================== COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DoUpdateRunUndo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Creates any necessary undo actions for Update{Graphic}Run CALLED BY: GLOBAL PASS: ss:bx - VisTextReplaceParams cx - run offset RETURN: nada DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 7/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DoUpdateRunUndo proc near uses ax, bp, di class VisTextClass .enter mov di, ds:[si] add di, ds:[di].Vis_offset test ds:[di].VTI_features, mask VTF_ALLOW_UNDO LONG jz exit EC < xchg bx, bp > EC < call TS_ECCheckParams > EC < xchg bx, bp > cmpdw ss:[bx].VTRP_range.VTR_end, ss:[bx].VTRP_range.VTR_start, ax LONG jz inserting ; If we are undoing a previous replace, we don't usually need to ; add more undo information, as in general there was enough undo ; information already generated. ; ; The only case where it is necessary to add more undo info is when ; we are deleting text, as the run information can be lost forever ; (e.g. The user sets an insertion token, types some text, then undoes ; the typing, we *need* to generate run undo information, because ; the run information for that range just goes back into the insertion ; token, and is not saved in the undo chain). ; tstdw ss:[bx].VTRP_insCount jz generateUndoInformation test ss:[bx].VTRP_flags, mask VTRF_UNDO jnz exit generateUndoInformation: ; ; Non-para-attr runs can be optimized this way: ; ; 1) If the range has any runs in it *before* the end, we save the ; entire range, *including the end*. ; ; 2) If the range has no runs in it except at the end, don't bother ; saving anything. ; ; ; For para-attr runs, we need to check the entire range (for example, if ; there is a CR at position 14h, and a para attr at position 15h, and ; we delete the CR, the following para attr will disappear too, even ; though it is at the end of the range being modified). This is different ; from other types of runs, as if the only run in the replace range comes ; at the end of the range, it will get moved, but not deleted, so no ; undo information needs to be stored. ; mov bp, bx pushdw ss:[bp].VTRP_range.VTR_end cmp cx, offset VTI_paraAttrRuns jnz normalRun call CheckIfRunsInRangeForUndo tst ax jz noRunsInRange ; When a run is being deleted, we have to save any runs at the end of ; the range as well, as they might be coalesced out of existence when ; the deletion occurs. We save all the runs between the start of this ; range and the next paragraph after the end of the range. movdw dxax, ss:[bp].VTRP_range.VTR_end call TSL_FindParagraphEnd incdw dxax movdw ss:[bp].VTRP_range.VTR_end, dxax call TS_GetTextSize cmpdw dxax, ss:[bp].VTRP_range.VTR_end jae common movdw ss:[bp].VTRP_range.VTR_end, dxax jmp common normalRun: decdw ss:[bp].VTRP_range.VTR_end call CheckIfRunsInRangeForUndo ;If no runs in range or no incdw ss:[bp].VTRP_range.VTR_end tst ax jz noRunsInRange common: ; There was a run in the range, so create the appropriate undo items call TU_CreateUndoForRunsInRange call TU_CreateUndoForRunModification noRunsInRange: popdw ss:[bp].VTRP_range.VTR_end exit: .leave ret inserting: ; If we are just inserting, no runs will be deleted, so no undo action ; is necessary, *except* in the case where there is an insertion ; token. If we have an insertion token, we will generate undo ; information, otherwise we'll skip the tedium. call GenProcessUndoCheckIfIgnoring ;If ignoring, don't create tst ax ; an undo action. jnz exit cmp cx, offset VTI_paraAttrRuns ;No insertion elements for jz exit ; paraAttr runs. push bx mov bx, cx call GetInsertionElement cmp bx, CA_NULL_ELEMENT ;If inserting w/o an insertion pop bx ; element, just exit (no runs jz exit ; will be modified). mov bp, bx call TU_CreateUndoForRunModification jmp exit DoUpdateRunUndo endp COMMENT @---------------------------------------------------------------------- FUNCTION: UpdateRun DESCRIPTION: Update a run structure to reflect a text replace operation CALLED BY: INTERNAL PASS: *ds:si - text object cx - offset of run di - UpdateRunFlags ss:bp - VisTextReplaceParameters, these fields used: VTRP_range VTRP_insCount VTRP_flags.VTRF_USER_MODIFICATION VTRP_flags.VTRF_UNDO RETURN: carry - set if UI should be updated dxax - last run position DESTROYED: cx, di REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: UpdateRuns(runs, position, insCount, delCount) { runPtr, runStart, runEnd = GetRunForPosition while ( (runEnd - position) <= delCount ) { RunArrayDelete(runPtr) runPtr, runStart, runEnd = LoadRegsFromRun } adjustment = insCount - delCount while (runPtr->runStart != 0) { runPtr->runStart += adjustment runPtr++ } } KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 9/89 Initial version ------------------------------------------------------------------------------@ UpdateRun proc near EC < call T_AssertIsVisText > push bx movdw dxax, ss:[bp].VTRP_range.VTR_end ;dx.ax = range end subdw dxax, ss:[bp].VTRP_range.VTR_start ;dx.ax = delete count mov bx, bp runOffset local word \ push cx object local optr \ push ds:[LMBH_handle], si insCount local dword \ push ss:[bx].VTRP_insCount.high, \ ss:[bx].VTRP_insCount.low delCount local dword \ push dx, ax deleteRange local VisTextRange \ push ss:[bx].VTRP_range.VTR_end.high, \ ss:[bx].VTRP_range.VTR_end.low, \ ss:[bx].VTRP_range.VTR_start.high, \ ss:[bx].VTRP_range.VTR_start.low flags local UpdateRunFlags \ push di runPosition local dword nextRunPosition local dword modifyRange local VisTextRange lastBlockDirtied local hptr class VisTextClass .enter call DoUpdateRunUndo mov bx, cx mov lastBlockDirtied, 0 EC < call ECCheckRun > ; if we are replacing (both deleting and inserting) we want to get ; the token for the selected area and use it as the insertion token tstdw insCount jz noReplace tstdw delCount jz noReplace test flags, mask URF_PARA_ATTR_RUN jnz noReplace ; we're doing a replace... ornf flags, mask URF_UPDATE_UI movdw dxax, deleteRange.VTR_start call GetRunForPosition call RunArrayUnlock call loadObject mov ax, runOffset call SetInsertionElement mov bx, runOffset noReplace: movdw dxax, deleteRange.VTR_start call GetRunForPositionLeft ;ds:si = first element ;dx.ax = position, bx = token ;cx = # consecutive tstdw dxax jz runLoop call RunArrayPrevious ;-------------- ; for each run runLoop: call LoadRegsFromRun ; *** case 0: at last run -> end cmp dl, TEXT_ADDRESS_PAST_END_HIGH jz toDoneWithRuns movdw runPosition, dxax ; move to NEXT run -- this means that we point at the run after ; the run the we are processing call RunArrayNext movdw nextRunPosition, dxax ; *** case -1: if only one run then don't remove it tstdw runPosition jnz notFirstRunAndOnlyRun cmp dl, TEXT_ADDRESS_PAST_END_HIGH jnz notFirstRunAndOnlyRun toDoneWithRuns: jmp doneWithRuns notFirstRunAndOnlyRun: ;*** case 1: run is entirely before range -> do nothing ; if (run.end < range.start) ; OR (if run.end = range.start && paraAttr run) cmpdw dxax, deleteRange.VTR_start jbe runLoop ;*** case 2: run is entirely after range -> adjust run ; if (run.start >= range.end) cmpdw runPosition, deleteRange.VTR_end, bx LONG jb notCase2 LONG ja case2 ; the run starts at the exact end of the range ; charAttrs/types - if not at the beginning of a paragraph ; then adjust ; paraAttrs - if no delete then skip ; if delete then extend range to next PP test flags, mask URF_PARA_ATTR_RUN jnz case2ParaAttr ; if we are deleting and the character after the end of the ; deletion is a CR then extend the run to cover the CR -- added 11/10/92 tstdw delCount jz afterCharParaEndAdjust push si, ds ;save position in run call loadObject movdw dxax, runPosition call TSL_IsParagraphEnd ;carry set if so pop si, ds LONG jz doDelete ;skip if end of file jnc afterCharParaEndAdjust call RunArrayPrevious add ds:[si].TRAE_position.WAAH_low, 1 adc ds:[si].TRAE_position.WAAH_high, 0 call markDirty call RunArrayNext afterCharParaEndAdjust: push si, ds ;save position in run call loadObject movdw dxax, deleteRange.VTR_end call TSL_IsParagraphStart ;carry set if so jnc noForceControllerUpdate ornf flags, mask URF_UPDATE_UI noForceControllerUpdate: movdw dxax, deleteRange.VTR_start call TSL_IsParagraphStart ;carry set if so pop si, ds jnc case2 ; we are at the beginning of a paragraph so we don't want to adjust ; for the insertion but we do want to adjust for the deletion (if any) tstdw delCount jz toRunLoop2 ornf flags, mask URF_NEED_COALESCE call RunArrayPrevious ;dxax = position subdw dxax, delCount jmp storePosition case2ParaAttr: tstdw delCount jz toRunLoop2 jmp extendRangeToNextPP case2: tstdw runPosition ;don't adjust run starting at 0 jz toRunLoop2 ; point at previous run since we will modify it call RunArrayPrevious ;dxax = position tstdw delCount jz noNeedCoalesce ornf flags, mask URF_NEED_COALESCE noNeedCoalesce: subdw dxax, delCount addInsCountAndStore: adddw dxax, insCount storePosition: mov ds:[si].TRAE_position.WAAH_low, ax mov ds:[si].TRAE_position.WAAH_high, dl movdw runPosition, dxax ;store new position call markDirty call RunArrayNext toRunLoop2: jmp runLoop notCase2: ; if (run.start >= range.start) cmpdw runPosition, deleteRange.VTR_start, bx jb toRunLoop2 ; NOTE! This is recently added to fix a bug deleting the ; first character of a charAttr run ; -> runStart == rangeStart ; if (runEnd > deleteRange.VTR_end) then do nothing jnz notCase25 test flags, mask URF_MIDDLE ;if at end then always jz notCase25 ;delete the run cmpdw dxax, deleteRange.VTR_end jbe notCase25 ; *unless* there is only one more character in the run and it is a CR decdw dxax cmpdw dxax, deleteRange.VTR_end jnz notCase25Inc test flags, mask URF_PARA_ATTR_RUN jnz toRunLoop2 pushdw dssi call loadObject call TSL_IsParagraphEnd ;carry set if so popdw dssi jnc toRunLoop2 ; *unless* this is the only character on a line pushdw dssi call loadObject movdw dxax, deleteRange.VTR_start call TSL_IsParagraphStart ;carry set if so popdw dssi jc toRunLoop2 jmp doDelete notCase25Inc: incdw dxax notCase25: ; *** case 3: run entirely in range -> delete ; if (run.end <= range.end) OR (deleting at end flag) ornf flags, mask URF_UPDATE_UI test flags, mask URF_MIDDLE jnz inMiddle ; Added 11/4/92 ; We are deleting at the end -- if this is the last run and it ; is a paragraph attibute run then we do not want to make the ; change (so that lines at the end work correctly) ; -- or if this is a character attribute run at the beginning ; of a paragraph test flags, mask URF_PARA_ATTR_RUN jnz doSpecialForDeletingAtEnd pushdw dssi call loadObject movdw dxax, deleteRange.VTR_start call TSL_IsParagraphStart ;carry set if so popdw dssi jnc doDelete doSpecialForDeletingAtEnd: cmp nextRunPosition.high, TEXT_ADDRESS_PAST_END_HIGH jnz doDelete ; if we are deleting at the end of the range end the entire run is ; being nuked then nuke the run cmpdw runPosition, deleteRange.VTR_start, ax ja doDelete jmp runLoop inMiddle: cmpdw dxax, deleteRange.VTR_end ja notCase3 doDelete: call RunArrayPrevious ;dxax = position doDeleteAfterMoveBack: call RunArrayDelete tstdw runPosition ;if we deleted the first run jnz notDeleteFirst ;then set next to 0 clr ax mov ds:[si].TRAE_position.WAAH_low, ax mov ds:[si].TRAE_position.WAAH_high, al call markDirty notDeleteFirst: ornf flags, mask URF_NEED_COALESCE or mask URF_UPDATE_UI toRunLoop: jmp runLoop notCase3: ; *** case 4: run crosses end of range ; CHAR_ATTR -> run.start = range.start + insCount ; PARA_ATTR -> change start of run to be the ; start of the next paragraph after the ; end of the range tstdw deleteRange.VTR_start jz toRunLoop test flags, mask URF_PARA_ATTR_RUN jnz extendRangeToNextPP call RunArrayPrevious movdw dxax, deleteRange.VTR_start ;added 8/22/92 jmp addInsCountAndStore ; *** case 4F (the ....ed part) ; The run contains the end of the range extendRangeToNextPP: ornf flags, mask URF_UPDATE_UI ; We have a run that crosses the end of the range being deleted. We ; need to move the start of the run forward to the start of the next ; paragraph (after any text that we've inserted). ; we want to start looking for the end of the paragraph at the end ; of the range to be deleted movdw dxax, deleteRange.VTR_start push si, ds ;save position in run call loadObject call TSL_IsParagraphStart ;carry set if so movdw dxax, deleteRange.VTR_end jc extendCommon call TSL_FindParagraphEnd ;carry set if end of text pushf incdw dxax ;point after CR popf jnc extendCommon mov dx, TEXT_ADDRESS_PAST_END_HIGH mov ax, TEXT_ADDRESS_PAST_END_LOW extendCommon: pop si, ds cmp dl, TEXT_ADDRESS_PAST_END_HIGH jz doDelete pushdw dxax call RunArrayPrevious popdw dxax call markDirty mov ds:[si].TRAE_position.WAAH_low, ax mov ds:[si].TRAE_position.WAAH_high, dl ; if we have extended the run so that it reaches the next ; paragraph then we don't need the run and we should delete it cmpdw dxax, nextRunPosition LONG jz doDeleteAfterMoveBack ; we have computed the position, now we have to adjust it for the ; number of characters that we are deleting subdw dxax, delCount cmpdw dxax, deleteRange.VTR_start jz toStorePosition ; only add if ax != change position adddw dxax, insCount toStorePosition: jmp storePosition ;------- doneWithRuns: call RunArrayUnlock call loadObject mov bx, runOffset test flags, mask URF_NEED_COALESCE jz noCoalesce call CoalesceRun ;dxax = last run movdw runPosition, dxax noCoalesce: ; if (insertion token) then change inserted text cmp bx, offset VTI_paraAttrRuns LONG jz afterInsertionToken clr dx call ClearInsertionElement cmp bx, CA_NULL_ELEMENT jz afterInsertionToken tstdw insCount jnz useToken ; we are biffing an insertion token, we must update the UI ornf flags, mask URF_UPDATE_UI jmp biffToken useToken: push bx ;save token movdw dxax, deleteRange.VTR_start movdw modifyRange.VTR_start, dxax ; if we are changing the character attributes at the end of a line ; then change the CR also test flags, mask URF_PARA_ATTR_RUN jnz noInsertionTokenCharAttrAdjust call TSL_IsParagraphEnd ;carry set if end of PP ;zero set if end of text jnc noInsertionTokenCharAttrAdjust jz noInsertionTokenCharAttrAdjust incdw dxax noInsertionTokenCharAttrAdjust: adddw dxax, insCount test flags, mask URF_MIDDLE jnz notAtEnd clr ax movdw dxax, TEXT_ADDRESS_PAST_END notAtEnd: movdw modifyRange.VTR_end, dxax pop ax ;ax = token push ax ; We can't let ModifyRun do its own undo for this change, as ; it creates runs *as they should be after the replace*. mov bx, runOffset clr cx ;callback (use ax as token) push bp lea bp, modifyRange call ModifyRunWithoutUndo pop bp movdw runPosition, dxax pop bx ;bx = token biffToken: push bx mov bx, runOffset call RunArrayLock pop bx call RemoveElement call RunArrayUnlock call loadObject afterInsertionToken: ; set carry if UI should be updated test flags, mask URF_UPDATE_UI jz noUpdateUI tstdw delCount clc jz noUpdateUI stc noUpdateUI: ; Note that we can't call ECCheckRun here since it relies on the ; size of the text which has not been updated yet movdw dxax, runPosition ;return last run .leave pop bx ret ;--- loadObject: push bx mov bx, object.handle call MemDerefDS mov si, object.chunk pop bx retn ;--- markDirty: push ax mov ax, ds:LMBH_handle cmp ax, lastBlockDirtied jz skipDirty mov lastBlockDirtied, ax call RunArrayMarkDirty skipDirty: pop ax retn UpdateRun endp COMMENT @---------------------------------------------------------------------- FUNCTION: UpdateGraphicRun DESCRIPTION: Update a run structure to reflect a text replace operation CALLED BY: INTERNAL PASS: *ds:si - text object di - UpdateRunFlags ss:bp - VisTextReplaceParameters, these fields used: VTRP_range VTRP_insCount RETURN: dxax - last run position DESTROYED: cx, di REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 9/89 Initial version ------------------------------------------------------------------------------@ UpdateGraphicRun proc near class VisTextClass push bx push ds:[LMBH_handle], si EC < call T_AssertIsVisText > movdw dxax, ss:[bp].VTRP_range.VTR_end subdw dxax, ss:[bp].VTRP_range.VTR_start mov bx, bp clr cx insCount local dword \ push ss:[bx].VTRP_insCount.high, \ ss:[bx].VTRP_insCount.low delCount local dword \ push dx, ax insPosition local dword \ push ss:[bx].VTRP_range.VTR_start.high, \ ss:[bx].VTRP_range.VTR_start.low runPosition local dword \ push cx, cx lastBlockDirtied local hptr \ push cx rangeEnd local dword vmfile local word .enter mov cx, OFFSET_FOR_GRAPHIC_RUNS call DoUpdateRunUndo mov bx, OFFSET_FOR_GRAPHIC_RUNS EC < call ECCheckRun > call T_GetVMFile ; bx = VM file mov vmfile, bx ; first deal with deletion movdw dxax, delCount adddw dxax, insPosition movdw rangeEnd, dxax movdw dxax, insPosition call GetGraphicRunForPositionLeft ;ds:si = first element ;dx.ax = position, bx = token ;cx = # consecutive topLoop: call LoadRegsFromRun ; ds:si = graphic run element ; dxax = position after last deleted charater ; case 0: at the end -- done cmp dl, TEXT_ADDRESS_PAST_END_HIGH jz endLoop movdw runPosition, dxax ; case 1: deletion raange ends before start of run -- update the ; position in the run to account for insert/delete cmpdw dxax, rangeEnd jb notCase1 movdw dxax, insCount ;calculate change subdw dxax, delCount add ds:[si].TRAE_position.WAAH_low, ax adc ds:[si].TRAE_position.WAAH_high, dl adddw runPosition, dxax call markDirty next: call RunArrayNext jmp topLoop ; case 2: the deletion starts before this run -- delete this run (since ; we already know that the deletion ends after this run) ; case 3: the deletion starts after this run, loop notCase1: cmpdw dxax, insPosition jb next ; case 2 here... mov bx, vmfile call RunArrayDelete ;Nuke this run. jmp topLoop ;Loop to check next one. endLoop: call RunArrayUnlock movdw dxax, runPosition .leave pop bx, si call MemDerefDS pop bx ret ;--- markDirty: push ax mov ax, ds:LMBH_handle cmp ax, lastBlockDirtied jz skipDirty call RunArrayMarkDirty skipDirty: pop ax retn UpdateGraphicRun endp COMMENT @---------------------------------------------------------------------- FUNCTION: CoalesceRun DESCRIPTION: Coalesce a run array by removing redundant elements CALLED BY: INTERNAL PASS: *ds:si - text object bx - offset of run RETURN: dxax - last run position DESTROYED: cx, di REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 10/89 Initial version ------------------------------------------------------------------------------@ CoalesceRun proc far uses bx, si, ds class VisTextClass lastToken local word lastPos local dword .enter EC < call T_AssertIsVisText > EC < cmp bx, OFFSET_FOR_GRAPHIC_RUNS > EC < ERROR_Z CANNOT_COALESCE_GRAPHICS_RUNS > call RunArrayLock topLoopReload: call LoadRegsFromRun ;dx.ax = pos, bx = token topLoop: mov lastToken, bx movdw lastPos, dxax call RunArrayNext next: cmp dl, TEXT_ADDRESS_PAST_END_HIGH jz done cmp bx, lastToken jz removeHere cmpdw dxax, lastPos jnz topLoop ; two runs at the same position -- remove the *first* one call RunArrayPrevious call RunArrayDelete jmp topLoopReload removeHere: call RunArrayDelete call LoadRegsFromRun ;dx.ax = pos, bx = token jmp next done: call RunArrayUnlock movdw dxax, lastPos .leave ret CoalesceRun endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TA_ExtendedStyleEnum %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Enumerate certain extended styles to a callback. CALLED BY: Utility PASS: *ds:si = Instance bp = Information for callback On stack: (Pushed in this order) word VisTextExtendedStyle word ExtendedStyleCallbackType dword rangeEnd dword Start offset to look from RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: Callback API: Pass: ss:bx - VisTextRange ss:cx - VisTextCharAttr di - gstate bp - Same as passed to ExtendedStyleEnum Return: none Can destroy: ax, bx, cx, dx, di, dp KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 7/10/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TextBorder segment resource TA_ExtendedStyleEnum proc near \ enumRange:VisTextRange, callback:nptr.near, styleBit:VisTextExtendedStyles uses ax, bx, cx, dx, di, si, ds textObject local fptr push ds, si styleRange local VisTextRange currentState local word charAttr local VisTextCharAttr charAttrToPass local VisTextCharAttr class VisTextClass .enter mov di, ds:[si] add di, ds:[di].Vis_offset test ds:[di].VTI_storageFlags, mask VTSF_MULTIPLE_CHAR_ATTRS LONG jz singleCharAttr mov currentState, 0 ; find the first run in the range movdw styleRange.VTR_start, enumRange.VTR_start, ax mov bx, offset VTI_charAttrRuns movdw dxax, enumRange.VTR_start call FarGetRunForPosition ;ds:si = TextRunArrayElement ;cx = count, di = data getStartElement: push bp lea bp, charAttrToPass call GetElement pop bp findStyleLoop: ; ; dx.ax = End of the current style run. ; charAttr = Attributes for the current run. ; charAttrToPass = Attributes for the first style run we saw. ; cmpdw dxax, enumRange.VTR_end jae checkStateDone ; get the attribute structure push bp lea bp, charAttr call GetElement pop bp ; has the state changed ? (also set new state) push ax ; ; Set ax = 1 if the next run contains the style bit that ; we're interested in ; mov ax, charAttr.VTCA_extendedStyles and ax, styleBit ; ; Set ax to the old state (1 if contains style, 0 if not) ; Set the current state to reflect whether the current run contains ; the style we're interested in. ; xchg ax, currentState ; ; Set ax to 1 if the state has changed from the old to the new, and ; 0 if the state has not changed (ie: both runs have the same extended ; style). ; xor ax, currentState pop ax ; ; Z=1 (jz) if both the previous run and the current run contain the ; same extended style. ; jnz stateChanged ; ; The state has not changed. Normally we'd just branch in order to ; accumulate the runs into one big run. This works for things like ; boxed and button text, but it doesn't work for the background ; color. The background color is considered to have changed any time ; that the color changes. ; ; Though the two runs we've examined contain the same extended-style ; state for the style we're interested in, that doesn't mean that ; this style is actually set. It may be that we're looking at two ; runs which are the same, neither having the extended style we're ; interested in. ; tst currentState jz next ; Branch if run is not on ; ; The runs are the same, and they both have the extended style we're ; interested in *set*. We want to check to see if the bit in question ; is the background color bit. If it is not then we can just accumulate ; this into the previous run to create one large one. ; test styleBit, mask VTES_BACKGROUND_COLOR jz next ; Branch if not background color ; ; It's a background color. This means that we need to check to see ; the background color is different in the previous state and the ; current state. If it is, we need to force this run to be drawn and ; then continue with the next run. ; call CompareBackgrounds ; z=1 (jz) if they are the same jz next ; no -- keep looping ; ; The type of extended style has not changed, but unfortunately the ; state really has. We need to call the callback here. ; pushdw dxax ; save start of next run call callCallback ; draw the style popdw dxax ; restore start of next run jmp setStartAndLoop stateChanged: ; state has changed, has it changed from ON to OFF ? tst currentState jnz setStartAndLoop ; no - OFF to ON - look for end ; the state has changed from ON to OFF -- call the callback call callCallback next: call FarRunArrayNext jmp findStyleLoop ; set the start of the range setStartAndLoop: movdw styleRange.VTR_start, dxax jmp getStartElement checkStateDone: tst currentState jz done call callCallback done: call FarRunArrayUnlock exit: .leave ret @ArgSize ; the text object only has a single character attribute, so call ; the callback passing the range for the entire line singleCharAttr: push bp lea bp, charAttrToPass call GetSingleCharAttr pop bp mov ax, charAttrToPass.VTCA_extendedStyles and ax, styleBit jz exit mov currentState, ax movdw styleRange.VTR_start, enumRange.VTR_start, ax movdw dxax, enumRange.VTR_end call callCallback jmp exit ;--- ; dxax = end of range callCallback: ; store the range end first cmpdw dxax, enumRange.VTR_end jbe 10$ movdw dxax, enumRange.VTR_end 10$: movdw styleRange.VTR_end, dxax push bx, cx, si, di, ds, bp movdw dssi, textObject mov di, ds:[si] add di, ds:[di].Vis_offset mov di, ds:[di].VTI_gstate lea bx, styleRange ; ss:bx <- VisTextRange lea cx, charAttrToPass ; ss:cx <- VisTextCharAttr mov dx, callback ; dx = callback mov bp, ss:[bp] ; Restore passed bp call dx ; Call the callback pop bx, cx, si, di, ds, bp retn TA_ExtendedStyleEnum endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CompareBackgrounds %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Compare two backgrounds to see if they're the same CALLED BY: TA_ExtendedStyleEnum PASS: ss:bp = Inheritable stack frame RETURN: Z = 1 (jz) if the backgrounds are the same DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 3/10/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CompareBackgrounds proc near uses ax .enter inherit TA_ExtendedStyleEnum ; ; Check the colors first. ; CheckHack <size ColorQuad eq size dword> cmpdw charAttrToPass.VTCA_bgColor, charAttr.VTCA_bgColor, ax jne done ; ; Check the gray-screen. ; mov al, charAttrToPass.VTCA_bgGrayScreen cmp al, charAttr.VTCA_bgGrayScreen jne done ; ; Check the pattern ; mov ax, {word} charAttrToPass.VTCA_bgPattern cmp ax, {word} charAttr.VTCA_bgPattern ;;; Flags set for the compare done: .leave ret CompareBackgrounds endp TextBorder ends ;------------------------------------------------------------------------------ ; ERROR CHECKING ;------------------------------------------------------------------------------ COMMENT @---------------------------------------------------------------------- FUNCTION: ECCheckRun DESCRIPTION: Check a run for validity CALLED BY: INTERNAL PASS: *ds:si - text object bx - offset of run RETURN: none DESTROYED: none REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 9/89 Initial version ------------------------------------------------------------------------------@ if ERROR_CHECK TextEC segment resource ECCheckParaAttrPositions proc far uses ax, bx class VisTextClass .enter pushf mov bx, ds:[si] add bx, ds:[bx].Vis_offset test ds:[bx].VTI_storageFlags, mask VTSF_MULTIPLE_PARA_ATTRS jz done mov ax, TRUE mov bx, offset VTI_paraAttrRuns call ECCheckRunCommon done: popf .leave ret ECCheckParaAttrPositions endp ;--- ECCheckRun proc far uses ax .enter mov ax, FALSE call ECCheckRunCommon .leave ret ECCheckRun endp ;--- ECCheckRunCommon proc far uses bx, cx, dx, si, di, bp, ds class VisTextClass tsize local dword lastPos local dword runOff local word obj local fptr rflag local word .enter pushf movdw obj, dssi mov rflag, ax call TS_GetTextSize ;dx.ax = size movdw tsize, dxax mov lastPos.high, 0xffff mov runOff, bx call FarRunArrayLock ;ds:si = run element call ECCheckRunsElementArray cmp bx, offset VTI_charAttrRuns jz checkFirst cmp bx, offset VTI_paraAttrRuns jz checkFirst cmp bx, OFFSET_FOR_TYPE_RUNS jnz dontCheckFirst checkFirst: tst ds:[si].TRAE_position.WAAH_high ERROR_NZ TEXT_RUN_FIRST_POSITION_NOT_0 tst ds:[si].TRAE_position.WAAH_low ERROR_NZ TEXT_RUN_FIRST_POSITION_NOT_0 dontCheckFirst: call LoadRegsFromRunFar topLoop: ; dx.ax = run position cmp ax, TEXT_ADDRESS_PAST_END_LOW jnz notEnd cmp dl, TEXT_ADDRESS_PAST_END_HIGH jz endLoop notEnd: ; OK, we're not on the last run. Check for legal position. cmpdw dxax, tsize ERROR_A TEXT_RUN_AFTER_END_OF_TEXT cmp lastPos.high, 0xffff jz next cmpdw dxax, lastPos ERROR_Z TEXT_RUN_CONSECUTIVE_ELEMENTS_EQUAL ERROR_B TEXT_RUN_CONSECUTIVE_ELEMENTS_SWAPPED ; if this is a ruler run then ensure that it is at a legal position tst rflag jz next cmp runOff, offset VTI_paraAttrRuns jnz next tstdw dxax jz next pushdw dssi movdw dssi, obj call TSL_IsParagraphStart ERROR_NC TEXT_PARA_ATTR_RUN_NOT_AT_PARAGRAPH_BOUNDRY popdw dssi next: movdw lastPos, dxax call FarRunArrayNext jmp topLoop endLoop: call FarRunArrayUnlock popf .leave ret ECCheckRunCommon endp ; ; ROUTINE: ECCheckRunOffset ; ; Pass: cx = run offset ; Return: nothing ; Destroyed: nothing ; ECCheckRunOffset proc far class VisTextClass cmp cx, offset VTI_charAttrRuns jz 10$ cmp cx, offset VTI_paraAttrRuns jz 10$ cmp cx, OFFSET_FOR_GRAPHIC_RUNS jz 10$ cmp cx, OFFSET_FOR_TYPE_RUNS ERROR_NZ ILLEGAL_RUN_TYPE 10$: ret ECCheckRunOffset endp TextEC ends endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TA_DecrementRefCountsFromHugeArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: This routine decrements the reference counts for the elements associated with the run in the passed array. CALLED BY: GLOBAL PASS: bx.di - Huge array containing TextRunArrayElements dx - run offset RETURN: nada DESTROYED: ax, bx, cx, dx, bp, ds, si, es PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 7/23/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TA_DecrementRefCountsFromHugeArray proc far .enter ; Lock down the first TextRunArrayElement push dx, ds, si clrdw dxax ;Get a ptr to the first run call HugeArrayLock segmov es, ds ;ES:BP <- ptr to TextRunArrayElement mov bp, si ; in huge array. pop dx, ds, si ; We lock down the associated run array - we don't actually care ; about the runs, but we have to lock down the runs to access the ; elements. call T_GetVMFile push bx mov bx, dx ;BX <- run offset call RunArrayLock ;DS:SI <- element array ;DI <- token to pass to other array ; routines pop cx next: ; Remove the reference from the element. mov bx, es:[bp].TRAE_token call RemoveElement ; Go to the next element in the list dec ax ;If we've reached the last element jz nextBlock ; in this huge array block, branch add bp, size TextRunArrayElement jmp next nextBlock: segxchg ds, es xchg si, bp call HugeArrayNext segxchg ds, es xchg si, bp tst ax ;Branch if there are more elements jnz next ; Unlock the huge array and the run array call RunArrayUnlock segmov ds, es call HugeArrayUnlock .leave ret TA_DecrementRefCountsFromHugeArray endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TA_DeleteRunsInRange %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Deletes the runs in the passed range CALLED BY: GLOBAL PASS: ss:bp - VisTextRange cx - run offset *ds:si - VisText object RETURN: nothing DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 7/20/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TA_DeleteRunsInRange proc far uses ax,bx,cx,dx,bp,di class VisTextClass .enter EC < call T_AssertIsVisText > mov bx, bp call CheckIfRunsInRangeForUndo ;If no runs in this range, exit tst ax jz exit push cx ;Save run offset call TU_CreateUndoForRunsInRange TA_DRIR_deleting label near ;Used by swat ForceRef TA_DRIR_deleting push ds:[LMBH_handle], si ; Now that we are deleting runs, the "last run" may change, so nuke ; the cached information. mov ax, TEMP_VIS_TEXT_CACHED_RUN_INFO call ObjVarDeleteData movdw dxax, ss:[bp].VTR_start mov bx, cx call GetRunForPosition ;DX.AX = offset, bx = token loopTop: ; For each element in the run { ; if (element.position > rangeStart) ; continue; ; else if (element.position > rangeEnd) ; return() ; else if (element.position == TEXT_ADDRESS_PAST_END) ; return() ; else /* rangeEnd > element.position > range Start ; Delete this element ; } cmpdw dxax, ss:[bp].VTR_start jb noDelete cmpdw dxax, ss:[bp].VTR_end ja TA_DRIR_done cmpdw dxax, TEXT_ADDRESS_PAST_END je TA_DRIR_done TA_DRIR_doingDelete label near ;USED BY SWAT ForceRef TA_DRIR_doingDelete call RunArrayDelete ;Delete the element and goto the next call LoadRegsFromRun ; one jmp loopTop noDelete: call RunArrayNext jmp loopTop TA_DRIR_done label near ;USED BY SWAT call RunArrayUnlock pop bx, si call MemDerefDS ; Invalidate this change pop cx cmp cx, offset VTI_paraAttrRuns jnz doInval ; If changing para attrs, we need to change bounds of inval mov bx, mask VTRC_PARAGRAPH_CHANGE \ or mask VTRC_PARA_ATTR_BORDER_CHANGE call TA_GetTextRange doInval: call ReflectChange exit: .leave ret TA_DeleteRunsInRange endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TA_RestoreRunsFromHugeArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Restore runs from the huge array CALLED BY: GLOBAL PASS: bx.di - huge array with runs in it cx - run offset *ds:si - VisText object RETURN: nada DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 7/20/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TA_RestoreRunsFromHugeArray proc far uses ax, bx, cx, dx, si,di class VisTextClass numRuns local dword curRun local fptr.TextRunArrayElement runOff local word theRange local VisTextRange .enter EC < call T_AssertIsVisText > push ds:[LMBH_handle], si pushdw dssi mov runOff, cx TA_RRFHA_start label near ;USED BY SWAT ForceRef TA_RRFHA_start call HugeArrayGetCount EC < tstdw dxax > EC < ERROR_Z UNDO_INFO_CONTAINS_NO_RUNS > decdw dxax movdw numRuns, dxax ; Lock down the first element to add clrdw dxax call HugeArrayLock ;DS:SI <- huge array movdw curRun, dssi ; Get a pointer to the item to insert before mov ax, ds:[si].TRAE_position.WAAH_low mov dl, ds:[si].TRAE_position.WAAH_high popdw dssi movdw theRange.VTR_start, dxax mov bx, runOff call GetRunForPosition ; We want to get a pointer to the item *after* the first item we ; want to restore. Usually, GetRunForPosition returns the ; run *before* the passed position, but not always (for example, ; the previous run may have been deleted by a call to ; TA_DeleteRunsInRange). cmpdw dxax, theRange.VTR_start ; ja insert addNext: call RunArrayNext ;DS:SI <- ptr to array item to insert ; before. insert: ; Insert the run array element from the huge array call getRegsFromHugeArray call RunArrayInsert subdw numRuns,1 ;Loop until no more items to add jnc addNext call RunArrayUnlock movdw dsdi, curRun mov ax, ds:[di].TRAE_position.WAAH_low mov theRange.VTR_end.low, ax mov al, ds:[di].TRAE_position.WAAH_high clr ah mov theRange.VTR_end.high, ax call HugeArrayUnlock pop bx, si call MemDerefDS ;*DS:SI <- text object ; Coalesce the runs and update the cached run information mov bx, runOff ;Coalesce the runs (don't coalesce the ; graphic runs - there is no need) cmp bx, OFFSET_FOR_GRAPHIC_RUNS je graphic call CoalesceRun call UpdateLastRunPositionByRunOffset jmp TA_RRFHA_done graphic: mov ax, TEMP_VIS_TEXT_CACHED_RUN_INFO call ObjVarDeleteData TA_RRFHA_done label near ;NEEDED FOR SWAT EC < call ECCheckRun > push bp mov cx, runOff lea bp, theRange ; Create an undo action for these runs call TU_CreateUndoForRunModification ; Invalidate the range over which we changed the runs cmp cx, offset VTI_paraAttrRuns jnz noRangeChange ; If changing para attrs, we need to change bounds of inval mov bx, mask VTRC_PARAGRAPH_CHANGE \ or mask VTRC_PARA_ATTR_BORDER_CHANGE call TA_GetTextRange noRangeChange: call ReflectChange pop bp .leave ret getRegsFromHugeArray: push ds, si movdw dssi, curRun mov ax, ds:[si].TRAE_position.WAAH_low mov dl, ds:[si].TRAE_position.WAAH_high mov bx, ds:[si].TRAE_token pushdw dxax TA_RRFHA_beforeNext label near ;USED BY SWAT ForceRef TA_RRFHA_beforeNext call HugeArrayNext movdw curRun, dssi popdw dxax pop ds, si retn TA_RestoreRunsFromHugeArray endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CheckIfRunsInRangeForUndo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Checks to see if there are any runs in the passed range CALLED BY: GLOBAL PASS: ss:bp - VisTextRange cx - run offset *ds:si - VisText object RETURN: ax = non-zero if there was a run in the range, and if the object was undoable DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 7/23/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CheckIfRunsInRangeForUndoFar proc far call CheckIfRunsInRangeForUndo ret CheckIfRunsInRangeForUndoFar endp CheckIfRunsInRangeForUndo proc near uses dx, cx, ds, si, di, bx class VisTextClass ; If no undo, then don't create any undo actions clr ax push di mov di, ds:[si] add di, ds:[di].VisText_offset test ds:[di].VTI_features, mask VTF_ALLOW_UNDO pop di jz exit ; If we are ignoring undo actions, don't create any. call GenProcessUndoCheckIfIgnoring tst ax mov ax, 0 ;Don't change to "clr" jnz exit .enter mov bx, cx movdw dxax, ss:[bp].VTR_start call GetRunForPosition loopTop: cmpdw dxax, TEXT_ADDRESS_PAST_END je noRuns cmpdw dxax, ss:[bp].VTR_start jae doCheck call RunArrayNext jmp loopTop doCheck: cmpdw dxax, ss:[bp].VTR_end mov ax, TRUE ;AX = TRUE if we found a run in the range jbe done noRuns: clr ax ;Else, AX = FALSE done: call RunArrayUnlock .leave exit: ret CheckIfRunsInRangeForUndo endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TA_AppendRunsInRangeToHugeArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Appends all the runs in this range to the huge array. It also ups the reference counts on the tokens. CALLED BY: GLOBAL PASS: ss:bp - VisTextRange bx.di - Huge Array cx - run offset RETURN: nothing DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 7/16/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TA_AppendRunsInRangeToHugeArray proc far uses ax, bx, cx, dx, bp, di, si, ds xchg bx, bp movdw dxax, ss:[bx].VTR_start .warn -unref_local harrayFile local hptr \ push bp params local word \ push bx harray local word \ push di .warn @unref_local runOffset local word \ push cx endOffset local dword \ push ss:[bx].VTR_end.high, ss:[bx].VTR_end.low startOffset local dword \ push dx, ax .enter mov bx, runOffset call GetRunForPosition ;DX.AX = offset, bx = token EC < cmpdw dxax, endOffset > EC < ERROR_A NO_RUNS_IN_RANGE > loopTop: cmpdw dxax, TEXT_ADDRESS_PAST_END je TA_ARIRTHA_done cmpdw dxax, startOffset jb toNext ; Increment the associated token's reference count so it does not go ; away if this run gets deleted. It gets decremented when this undo ; item is freed. call ElementAddRef call AddItemToHugeArray toNext: call RunArrayNext cmpdw dxax, endOffset jbe loopTop TA_ARIRTHA_done label near call RunArrayUnlock .leave ret TA_AppendRunsInRangeToHugeArray endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AddItemToHugeArray %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Appends the passed TextRunArrayElement to the file CALLED BY: GLOBAL PASS: dx.ax - TRAE_element bx - token ss:bp - inherited stack frame RETURN: nada DESTROYED: dx, ax PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 7/17/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AddItemToHugeArray proc near uses cx, bx, bp, si, di .enter inherit TA_AppendRunsInRangeToHugeArray sub sp, size TextRunArrayElement+1 mov si, sp mov ss:[si].TRAE_token, bx mov ss:[si].TRAE_position.WAAH_low, ax mov ss:[si].TRAE_position.WAAH_high, dl mov bx, harrayFile mov di, harray mov bp, ss ;BP:SI <- data mov cx, 1 ;Add one element call HugeArrayAppend add sp, size TextRunArrayElement+1 .leave ret AddItemToHugeArray endp TextAttributes ends
22.390656
80
0.665098
a16fd1181c2b090c92c8e68d00003ab6810266de
8,609
asm
Assembly
kVideo16.asm
satadriver/LiunuxOS_t
c6222f04b6e734002cbf1aa366eb62e51f0ebbe5
[ "Apache-2.0" ]
null
null
null
kVideo16.asm
satadriver/LiunuxOS_t
c6222f04b6e734002cbf1aa366eb62e51f0ebbe5
[ "Apache-2.0" ]
null
null
null
kVideo16.asm
satadriver/LiunuxOS_t
c6222f04b6e734002cbf1aa366eb62e51f0ebbe5
[ "Apache-2.0" ]
null
null
null
.386p Kernel16 segment para use16 assume cs:kernel16 __initVesa proc push bp mov bp,sp push cx push dx push bx push si push di push ds push es sub sp,40h mov ax,kernelData mov ds,ax mov es,ax mov ax,4f02h mov bx,4000h or bx,word ptr es:[_videoMode] ;mov bx,word ptr es:[_videoMode] int 10h cmp ax,4fh mov bx, offset _initvesaSetErr mov [esp],bx jnz _initVesaError ;ES:DI指向预先保留的256字节空间,这里将保存int 10h传来的参数,其中第40个字节开始存有显存地址的32位值 mov ax,4f01h mov di, offset _videoInfo mov cx,es:[_videoMode] int 10h cmp ax,4fh mov bx,offset _initvesaInfoErr mov [esp],bx jnz _initVesaError mov ax,4f06h mov bx,0 mov si,offset _videoInfo mov cx,es:[si + VESAInformation.XRes] int 10h cmp ax,4fh mov bx,offset _initvesaScanlineErr mov [esp],bx jnz _initVesaError mov cx,word ptr es:[_videoMode] cmp cx,VIDEO_MODE_112 jz _check112 cmp cx, VIDEO_MODE_115 jz _check115 cmp cx,VIDEO_MODE_118 jz _check118 cmp cx, VIDEO_MODE_11b jz _check11b cmp cx, VIDEO_MODE_11F jz _check11F cmp cx, VIDEO_MODE_3 jz _check3 jmp _initVideoEnd _check112: mov si,offset _videoInfo movzx eax,es:[si + VESAInformation.BytesPerScanLine] movzx ecx,es:[si + VESAInformation.BitsPerPixel] shr ecx,3 movzx edx,es:[si + VESAInformation.YRes] movzx ebx,es:[si + VESAInformation.XRes] mov dword ptr es:[_videoWidth],ebx mov dword ptr es:[_bytesPerPixel],ecx mov dword ptr es:[_bytesPerLine],eax mov dword ptr es:[_videoHeight],edx jmp _setVideoParams _check115: mov si,offset _videoInfo movzx eax,es:[si + VESAInformation.BytesPerScanLine] movzx ecx,es:[si + VESAInformation.BitsPerPixel] shr ecx,3 movzx edx,es:[si + VESAInformation.YRes] movzx ebx,es:[si + VESAInformation.XRes] mov dword ptr es:[_videoWidth],ebx mov dword ptr es:[_bytesPerPixel],ecx mov dword ptr es:[_bytesPerLine],eax mov dword ptr es:[_videoHeight],edx jmp _setVideoParams _check118: mov si,offset _videoInfo movzx eax,es:[si + VESAInformation.BytesPerScanLine] movzx ecx,es:[si + VESAInformation.BitsPerPixel] shr ecx,3 movzx edx,es:[si + VESAInformation.YRes] movzx ebx,es:[si + VESAInformation.XRes] mov dword ptr es:[_videoWidth],ebx mov dword ptr es:[_bytesPerPixel],ecx mov dword ptr es:[_bytesPerLine],eax mov dword ptr es:[_videoHeight],edx jmp _setVideoParams _check11b: mov si,offset _videoInfo movzx eax,es:[si + VESAInformation.BytesPerScanLine] movzx ecx,es:[si + VESAInformation.BitsPerPixel] shr ecx,3 movzx edx,es:[si + VESAInformation.YRes] movzx ebx,es:[si + VESAInformation.XRes] mov dword ptr es:[_videoWidth],ebx mov dword ptr es:[_bytesPerPixel],ecx mov dword ptr es:[_bytesPerLine],eax mov dword ptr es:[_videoHeight],edx jmp _setVideoParams _check11F: mov si,offset _videoInfo movzx eax,es:[si + VESAInformation.BytesPerScanLine] movzx ecx,es:[si + VESAInformation.BitsPerPixel] shr ecx,3 movzx edx,es:[si + VESAInformation.YRes] movzx ebx,es:[si + VESAInformation.XRes] mov dword ptr es:[_videoWidth],ebx mov dword ptr es:[_bytesPerPixel],ecx mov dword ptr es:[_bytesPerLine],eax mov dword ptr es:[_videoHeight],edx jmp _setVideoParams _check3: mov dword ptr es:[_bytesPerPixel],2 mov dword ptr es:[_bytesPerLine],160 mov dword ptr es:[_videoHeight],25 jmp _initVideoEnd _setVideoParams: mov eax,es:[_bytesPerLine] mov ecx,es:[_videoHeight] mul ecx mov es:[_videoFrameTotal],eax mov eax,es:[_videoWidth] mov ecx,BIOS_GRAPHCHAR_WIDTH mov edx,0 div ecx mov es:[_graphFontLines],eax mov eax,es:[_videoHeight] sub eax,GRAPH_TASK_HEIGHT mov es:[_windowHeight],eax push eax mov edx,0 mov ecx,BIOS_GRAPHCHAR_HEIGHT div ecx mov es:[_graphFontRows],eax pop eax mov ecx,es:[_bytesPerLine] mul ecx mov es:[_graphwindowLimit],eax mov eax,es:[_bytesPerPixel] mov ecx,BIOS_GRAPHCHAR_WIDTH mul ecx mov es:[_bytesXPerChar],eax mov eax,es:[_bytesPerLine] mov ecx,BIOS_GRAPHCHAR_HEIGHT mul ecx mov es:[_graphFontLSize],eax lea di, _videoInfo mov eax,es:[di+28h] mov es:[_videoBase],eax mov eax,es:[di + 2ch] add dword ptr es:[_videoBase],eax mov eax,es:[_videoBase] ;mov ecx,es:[di + 48] ;mov ecx,es:[_videoFrameTotal] ;shl ecx,2 ;add eax,ecx ;sub eax,MOUSE_DATA_LIMIT_SIZE ;mov es:[_mouseCoverData],eax mov eax,es:[_graphFontLSize] mov edx,es:[_videoFrameTotal] sub edx,eax mov ecx,es:[_bytesPerLine] shr ecx,1 add edx,ecx mov es:[_screenInfoPos],edx mov eax,es:[_mouseBorderSize] mov ecx,es:[_bytesPerPixel] mul ecx mov es:[_mouseBorderSize],eax call __getGraphCharBase _initVideoEnd: add sp,40h pop es pop ds pop di pop si pop bx pop dx pop cx mov sp,bp pop bp ret _initVesaError: mov ax,4f02h mov bx,3 int 10h mov ax,[esp] push word ptr TEXTMODE_FONTCOLOR_ERR push ax push cs call __textModeShow16 add sp,6 jmp _initVideoEnd _initvesaInfoErr db 'init vesa get information error',0ah,0 _initvesaScanlineErr db 'init vesa set scan line error',0ah,0 _initvesaSetErr db 'init vesa set video mode error',0ah,0 __initVesa endp __initVideo proc push bp mov bp,sp push cx push dx push bx push si push di push ds push es sub sp,40h mov ax,kernelData mov es,ax mov ds,ax ;mov ax,4f02h ;mov bx,3 ;int 10h push word ptr 0ah push offset _videoSelection push cs call __textModeShow16 add sp,6 _getvideoselect: mov ah,0 int 16h cmp al,'1' jz _video1select cmp al,'2' jz _video2select cmp al,'3' jz _video3select cmp al,'4' jz _video4select cmp al,'0' jz _getvideoselect jz _videotextselect cmp al,'5' jz _video5select jmp _getvideoselect _videotextselect: mov word ptr es:[_videoMode],VIDEO_MODE_3 jmp __initVideoOver _video1select: mov word ptr es:[_videoMode],VIDEO_MODE_112 jmp _selectVideoEnd _video2select: mov word ptr es:[_videoMode],VIDEO_MODE_115 jmp _selectVideoEnd _video3select: mov word ptr es:[_videoMode],VIDEO_MODE_118 jmp _selectVideoEnd _video4select: mov word ptr es:[_videoMode],VIDEO_MODE_11b jmp _selectVideoEnd _video5select: mov word ptr es:[_videoMode],VIDEO_MODE_11F jmp _selectVideoEnd _selectVideoEnd: call __initVesa __initVideoOver: add sp,40h pop es pop ds pop di pop si pop bx pop dx pop cx mov sp,bp pop bp ret _videoSelection db 'please select vido mode:',0ah db '0: command line',0ah db '1: 640x480x16M',0ah db '2: 800x600x16M',0ah db '3: 1024x768x16M',0ah db '4: 1280x1024x16M',0ah db '5: 1600x1200x16M',0ah,0,0 __initVideo endp ;bit 7 high ground ;bit 6 red ground ;bit 5 yellow ground ;bit 4 blue ground ;bit 3 high character ;bit 2 red character ;bit 1 yellow character ;bit 0 blue character __getGraphCharBase proc push cx push dx push si push ds push es ;mov ax,0 mov ax,BIOS_GRAPHCHARS_SEG mov ds,ax mov ax,kernelData mov es,ax mov dx,0 mov si,BIOS_GRAPHCHARS_OFFSET mov cx,4 cld _getGaraphChar8Bytes: lodsw add dx,ax loop _getGaraphChar8Bytes cmp dx,0 ;jnz _useBiosGraphChar mov dword ptr es:[_graphCharBase],GRAPHFONT_LOAD_ADDRESS jmp __getGraphCharBaseEnd _useBiosGraphChar: mov eax,BIOS_GRAPHCHARS_BASE mov dword ptr es:[_graphCharBase],eax __getGraphCharBaseEnd: pop es pop ds pop si pop dx pop cx ret __getGraphCharBase endp ;param:strseg,stroff,color __textModeShow16 proc push bp mov bp,sp push ds push es push fs push cx push dx push bx push si push di sub sp,40h mov ax,kernelData mov fs,ax mov ax,word ptr ss:[bp + 4] mov ds,ax mov ax,VIDEOMODE_TEXT_DATASEG mov es,ax mov si,word ptr ss:[bp+6] mov di, word ptr fs:[_textShowPos] mov ax,di mov dx,0 mov cx,VIDEOMODE_TEXT_BYTESPERLINE div cx cmp dx,0 jnz _rmTextShowNewPos inc ax _rmTextShowNewPos: mul cx mov di,ax cld _rmTextShowChar: lodsb cmp al,0 jz _rmTextShowOver cmp al,0ah jz _rmTextNewLine cmp al,0dh jz _rmTextEnterLine jmp _rmOutputChar _rmTextNewLine: mov ax,di mov dx,0 mov cx,VIDEOMODE_TEXT_BYTESPERLINE div cx cmp dx,0 jz _rmTextShowNewLine inc ax _rmTextShowNewLine: mul cx mov di,ax ;mov dx,VIDEOMODE_TEXT_BYTESPERLINE ;dec dx ;not dx ;and di,dx ;add di,VIDEOMODE_TEXT_BYTESPERLINE jmp _rmTextShowChar _rmTextEnterLine: mov ax,di mov dx,0 mov cx,VIDEOMODE_TEXT_BYTESPERLINE div cx mul cx mov di,ax jmp _rmTextShowChar _rmOutputChar: mov ah,byte ptr ss:[bp + 8] cmp di,VIDEOMODE_TEXT_MAX_OFFSET jb _rmToShowChar mov di,0 _rmToShowChar: stosw jmp _rmTextShowChar _rmTextShowOver: mov word ptr fs:[_textShowPos],di mov ax,si sub ax,word ptr ss:[bp + 6] add sp,40h pop di pop si pop bx pop dx pop cx pop fs pop es pop ds mov sp,bp pop bp ret __textModeShow16 endp kernel16 ends
17.287149
62
0.749797
2e990760fea1c7f9d10c2ea65fe418cac1f5f0b3
4,640
asm
Assembly
8088/demo/amiga/amiga.asm
reenigne/reenigne
c3eb8b31d7964e78bbe44908987d4be052a74488
[ "Unlicense" ]
92
2015-04-10T17:45:11.000Z
2022-03-30T17:58:51.000Z
8088/demo/amiga/amiga.asm
MS-DOS-stuff/reenigne
0a113990aef398550c6f14d1c7a33af1cb091887
[ "Unlicense" ]
2
2017-11-05T07:21:35.000Z
2018-11-04T23:36:13.000Z
8088/demo/amiga/amiga.asm
MS-DOS-stuff/reenigne
0a113990aef398550c6f14d1c7a33af1cb091887
[ "Unlicense" ]
18
2015-04-11T20:32:44.000Z
2021-11-06T05:19:57.000Z
%include "../../defaults_bin.asm" cli ; Copy data mov ax,cs mov ds,ax mov ax,0xb800 mov es,ax mov cx,0x2000 mov si,data mov di,0 cld rep movsw lockstep2 mov ax,cs mov ds,ax mov al,[refreshPhase] and al,3 mov bx,mulTimingTable xlatb mov cl,0 mul cl mov al,TIMER1 | LSB | MODE2 | BINARY out 0x43,al mov al,19 out 0x41,al ; Timer 1 rate ; Scanlines 0-199 = image display at one CRTC frame per scanline ; Scanline 200 = set CRTC for vsync 0 ; Scanline 224 = start of vsync pulse 24 ; Scanline 261 = set CRTC for normal ; Mode 0a ; 1 +HRES 0 ; 2 +GRPH 2 ; 4 +BW 0 ; 8 +VIDEO ENABLE 8 ; 0x10 +1BPP 0 ; 0x20 +ENABLE BLINK 0 mov dx,0x3d8 mov al,0x0a out dx,al ; Palette 00 ; 1 +OVERSCAN B 0 ; 2 +OVERSCAN G 0 ; 4 +OVERSCAN R 0 ; 8 +OVERSCAN I 0 ; 0x10 +BACKGROUND I 0 ; 0x20 +COLOR SEL 0 inc dx mov al,0 out dx,al mov dl,0xd4 ; 0xff Horizontal Total 38 mov ax,0x3800 out dx,ax ; 0xff Horizontal Displayed 0c mov ax,0x0c01 out dx,ax ; 0xff Horizontal Sync Position 2d mov ax,0x2d02 out dx,ax ; 0x0f Horizontal Sync Width 0a mov ax,0x0a03 out dx,ax ; 0x7f Vertical Total 7f mov ax,0x7f04 out dx,ax ; 0x1f Vertical Total Adjust 06 mov ax,0x0006 out dx,ax ; 0x7f Vertical Displayed 28 mov ax,0x2806 out dx,ax ; 0x7f Vertical Sync Position 70 mov ax,0x7007 out dx,ax ; 0x03 Interlace Mode 02 mov ax,0x0208 out dx,ax ; 0x1f Max Scan Line Address 01 mov ax,0x0109 out dx,ax ; Cursor Start 06 ; 0x1f Cursor Start 6 ; 0x60 Cursor Mode 0 mov ax,0x060a out dx,ax ; 0x1f Cursor End 07 mov ax,0x070b out dx,ax ; 0x3f Start Address (H) 00 mov ax,0x000c out dx,ax ; 0xff Start Address (L) 00 mov ax,0x000d out dx,ax ; 0x3f Cursor (H) 03 mov ax,0x030e out dx,ax ; 0xff Cursor (L) c0 mov ax,0xc00f out dx,ax mov al,[crtcPhase] and al,3 mov bx,mulTimingTable xlatb mov cl,0 mul cl ; captureScreen mov di,0x3fff sti frameLoop: %rep 200 mov ax,0x0401 out dx,ax mov ax,0x0b00 out dx,ax mov ax,0x5001 out dx,ax mov ax,0x6500 out dx,ax stosb dec di times 38 nop %endrep mov ax,0x0401 out dx,ax mov ax,0x0b00 out dx,ax mov ax,0x5001 out dx,ax mov ax,0x6500 out dx,ax stosb dec di times 33 nop jmp frameLoop ; ; Set the CGA back to a normal mode so we don't risk breaking anything ; mov ax,3 ; int 0x10 ; ; ; Relinquish control ; int 0x67 unrollData19: out dx,al xchg ax,bx out dx,al xchg ax,cx out dx,al xchg ax,di out dx,al xchg ax,bp out dx,al xchg ax,sp out dx,al xchg ax,bx out dx,al xchg ax,cx out dx,al xchg ax,di out dx,al xchg ax,bp out dx,al xchg ax,sp out dx,al xchg ax,bx out dx,al xchg ax,cx out dx,al xchg ax,di out dx,al xchg ax,bp out dx,al xchg ax,sp out dx,al xchg ax,bx out dx,al xchg ax,cx lodsb out 0x42,al mov al,1 unrollData19End: unrollData76: out dx,al xchg ax,bx out dx,al xchg ax,cx out dx,al xchg ax,di out dx,al xchg ax,bp out dx,al xchg ax,sp out dx,al xchg ax,bx out dx,al xchg ax,cx out dx,al xchg ax,di out dx,al xchg ax,bp out dx,al xchg ax,sp out dx,al xchg ax,bx out dx,al xchg ax,cx out dx,al xchg ax,di out dx,al xchg ax,bp out dx,al xchg ax,sp out dx,al xchg ax,bx out dx,al xchg ax,cx lodsb out 0x42,al mov al,1 nop nop nop unrollData76End:
17.846154
73
0.478664
54fe43ef92ef4bdf7dc61d74ec0211707446bf14
713
asm
Assembly
oeis/278/A278310.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/278/A278310.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/278/A278310.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A278310: Numbers m such that T(m) + 3*T(m+1) is a square, where T = A000217. ; Submitted by Stefano Spezia ; 3,143,4899,166463,5654883,192099599,6525731523,221682772223,7530688524099,255821727047183,8690408031080163,295218051329678399,10028723337177985443,340681375412721826703,11573138040695364122499,393146012008229658338303,13355391270239113019379843,453690157176121613000576399,15412109952717895729000217763,523558048235232333173006827583,17785561530045181432153231920099,604185533973300936360036878455823,20524522593562186654809100635577923,697229582647141045327149384731193599 mov $1,1 mov $2,1 lpb $0 sub $0,1 add $1,$2 add $2,$1 add $2,$1 add $1,$2 lpe add $2,$1 mov $0,$2 mul $0,$2 sub $0,1
39.611111
475
0.823282
6606ff7ed857c2caae297b4e430fc9c41f58ab6d
6,490
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1571.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1571.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1571.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x21de, %r12 nop nop and %r11, %r11 movb (%r12), %r15b nop nop and %r13, %r13 lea addresses_WC_ht+0x1517a, %r11 clflush (%r11) xor $6899, %r13 mov $0x6162636465666768, %rsi movq %rsi, %xmm6 movups %xmm6, (%r11) nop nop nop nop add $49386, %rsi lea addresses_A_ht+0x1072a, %rbx nop nop nop nop sub %r12, %r12 mov $0x6162636465666768, %r15 movq %r15, %xmm5 movups %xmm5, (%rbx) xor $14087, %r13 lea addresses_normal_ht+0x119b1, %r15 nop nop nop nop xor %rsi, %rsi mov (%r15), %r11w nop nop nop nop sub $47201, %rbx lea addresses_A_ht+0xb0ba, %rsi lea addresses_WC_ht+0x17d2e, %rdi and $23639, %r11 mov $123, %rcx rep movsl cmp $55757, %r13 lea addresses_WT_ht+0x1b92e, %r12 dec %rdi movl $0x61626364, (%r12) nop nop nop nop nop and %r15, %r15 lea addresses_UC_ht+0x832e, %rcx and $17777, %r11 movb $0x61, (%rcx) nop nop nop nop nop and %rdi, %rdi lea addresses_WT_ht+0x162ae, %rsi lea addresses_A_ht+0x1093e, %rdi nop nop nop nop nop xor %r13, %r13 mov $89, %rcx rep movsw nop nop nop sub $9412, %r12 lea addresses_UC_ht+0x8e1a, %rsi lea addresses_A_ht+0x1612e, %rdi nop nop nop nop nop dec %r15 mov $126, %rcx rep movsl cmp %rsi, %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %r15 pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r8 push %r9 push %rax push %rdi push %rdx // Store lea addresses_PSE+0x15c96, %rax nop sub $62819, %rdi movl $0x51525354, (%rax) and $61202, %rax // Faulty Load lea addresses_WC+0x1c92e, %rdx nop nop dec %r13 vmovups (%rdx), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $1, %xmm7, %r8 lea oracles, %rdi and $0xff, %r8 shlq $12, %r8 mov (%rdi,%r8,1), %r8 pop %rdx pop %rdi pop %rax pop %r9 pop %r8 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1}} {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 11}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 5}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_A_ht'}} {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
38.402367
2,999
0.658706
77e37686f76f1d1f6910538d13f8e9b0d9179c9d
1,740
asm
Assembly
dos/parse.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
dos/parse.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
dos/parse.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
TITLE PARSE - Parsing system calls for MS-DOS NAME PARSE ; ; Microsoft Confidential ; Copyright (C) Microsoft Corporation 1991 ; All Rights Reserved. ; ; System calls for parsing command lines ; ; $PARSE_FILE_DESCRIPTOR ; ; Modification history: ; ; Created: ARR 30 March 1983 ; EE PathParse 10 Sept 1983 ; .xlist .xcref include version.inc include dosseg.inc INCLUDE DOSSYM.INC INCLUDE DEVSYM.INC .cref .list DOSCODE SEGMENT ASSUME SS:DOSDATA,CS:DOSCODE BREAK <$Parse_File_Descriptor -- Parse an arbitrary string into an FCB> ;--------------------------------------------------------------------------- ; Inputs: ; DS:SI Points to a command line ; ES:DI Points to an empty FCB ; Bit 0 of AL = 1 At most one leading separator scanned off ; = 0 Parse stops if separator encountered ; Bit 1 of AL = 1 If drive field blank in command line - leave FCB ; = 0 " " " " " " - put 0 in FCB ; Bit 2 of AL = 1 If filename field blank - leave FCB ; = 0 " " " - put blanks in FCB ; Bit 3 of AL = 1 If extension field blank - leave FCB ; = 0 " " " - put blanks in FCB ; Function: ; Parse command line into FCB ; Returns: ; AL = 1 if '*' or '?' in filename or extension, 0 otherwise ; DS:SI points to first character after filename ;--------------------------------------------------------------------------- procedure $PARSE_FILE_DESCRIPTOR,NEAR ASSUME DS:NOTHING,ES:NOTHING invoke MAKEFCB PUSH SI invoke get_user_stack POP [SI.user_SI] return EndProc $PARSE_FILE_DESCRIPTOR DOSCODE ENDS END 
25.970149
76
0.559195
8035ccbc0dcded61590cdbb4dde85577088577c9
776
asm
Assembly
oeis/050/A050459.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/050/A050459.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/050/A050459.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A050459: a(n) = Sum_{d|n, d==1 mod 4} d^3 - Sum_{d|n, d==3 mod 4} d^3. ; Submitted by Jon Maiga ; 1,1,-26,1,126,-26,-342,1,703,126,-1330,-26,2198,-342,-3276,1,4914,703,-6858,126,8892,-1330,-12166,-26,15751,2198,-18980,-342,24390,-3276,-29790,1,34580,4914,-43092,703,50654,-6858,-57148,126,68922,8892,-79506,-1330,88578,-12166,-103822,-26,117307,15751,-127764,2198,148878,-18980,-167580,-342,178308,24390,-205378,-3276,226982,-29790,-240426,1,276948,34580,-300762,4914,316316,-43092,-357910,703,389018,50654,-409526,-6858,454860,-57148,-493038,126,512461,68922,-571786,8892,619164,-79506,-634140 add $0,1 mov $2,$0 lpb $0 add $1,$4 mov $3,$2 dif $3,$0 cmp $3,$2 cmp $3,0 mul $3,$0 sub $0,1 pow $3,3 sub $4,$1 add $3,$4 add $1,$3 lpe add $1,1 mov $0,$1
35.272727
498
0.653351
42c83f4c21c982edf0abdcd4eb725179e26af45e
1,849
asm
Assembly
scripts/Route18.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
scripts/Route18.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
scripts/Route18.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
Route18_Script: call EnableAutoTextBoxDrawing ld hl, Route18TrainerHeaders ld de, Route18_ScriptPointers ld a, [wRoute18CurScript] call ExecuteCurMapScriptInTable ld [wRoute18CurScript], a ret Route18_ScriptPointers: dw CheckFightingMapTrainers dw DisplayEnemyTrainerTextAndStartBattle dw EndTrainerBattle Route18_TextPointers: dw Route18Text1 dw Route18Text2 dw Route18Text3 dw Route18Text4 dw Route18Text5 Route18TrainerHeaders: def_trainers Route18TrainerHeader0: trainer EVENT_BEAT_ROUTE_18_TRAINER_0, 3, Route18BattleText1, Route18EndBattleText1, Route18AfterBattleText1 Route18TrainerHeader1: trainer EVENT_BEAT_ROUTE_18_TRAINER_1, 3, Route18BattleText2, Route18EndBattleText2, Route18AfterBattleText2 Route18TrainerHeader2: trainer EVENT_BEAT_ROUTE_18_TRAINER_2, 4, Route18BattleText3, Route18EndBattleText3, Route18AfterBattleText3 db -1 ; end Route18Text1: text_asm ld hl, Route18TrainerHeader0 call TalkToTrainer jp TextScriptEnd Route18BattleText1: text_far _Route18BattleText1 text_end Route18EndBattleText1: text_far _Route18EndBattleText1 text_end Route18AfterBattleText1: text_far _Route18AfterBattleText1 text_end Route18Text2: text_asm ld hl, Route18TrainerHeader1 call TalkToTrainer jp TextScriptEnd Route18BattleText2: text_far _Route18BattleText2 text_end Route18EndBattleText2: text_far _Route18EndBattleText2 text_end Route18AfterBattleText2: text_far _Route18AfterBattleText2 text_end Route18Text3: text_asm ld hl, Route18TrainerHeader2 call TalkToTrainer jp TextScriptEnd Route18BattleText3: text_far _Route18BattleText3 text_end Route18EndBattleText3: text_far _Route18EndBattleText3 text_end Route18AfterBattleText3: text_far _Route18AfterBattleText3 text_end Route18Text4: text_far _Route18Text4 text_end Route18Text5: text_far _Route18Text5 text_end
19.88172
109
0.864251
cbd12fa7a0d628284bcf47da456e503bcfa3bcde
421
asm
Assembly
programs/oeis/118/A118634.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/118/A118634.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/118/A118634.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A118634: Start with 1 and repeatedly reverse the digits and add 38 to get the next term. ; 1,39,131,169,999,1037,7339,9375,5777,7813,3225,5261,1663,3699,10001,10039,93039,93077,77077,77115,51215,51253,35253,35291,19291,19329,92429,92467,76467,76505,50605,50643,34643,34681,18681,18719,91819 mov $2,$0 mov $0,1 lpb $2 seq $0,4086 ; Read n backwards (referred to as R(n) in many sequences). add $0,38 sub $2,1 lpe
38.272727
201
0.741093
0f5f1f0f801be4c38f30f4c03fc7c4e2f0eb227e
172
asm
Assembly
travis/test/br3385573.asm
km2m/nasm
4c3798b7e6a1258122722d55d85ecd820721db5d
[ "BSD-2-Clause" ]
2,219
2018-03-26T02:57:34.000Z
2022-03-31T00:27:59.000Z
travis/test/br3385573.asm
km2m/nasm
4c3798b7e6a1258122722d55d85ecd820721db5d
[ "BSD-2-Clause" ]
250
2018-02-02T23:16:57.000Z
2022-03-21T06:09:53.000Z
travis/test/br3385573.asm
km2m/nasm
4c3798b7e6a1258122722d55d85ecd820721db5d
[ "BSD-2-Clause" ]
473
2019-03-24T16:34:23.000Z
2022-03-31T02:01:05.000Z
[bits 64] vpmovsxbw ymm1, xmm2 vpsllw ymm1, ymm2, 3 vpslld ymm1, ymm2, 3 vpsllq ymm1, ymm2, 3 vpsrld ymm1, ymm2, 3 vpsrad ymm1, ymm2, 3 vpermq ymm1, [rsi], 9
17.2
23
0.651163
a12c68fcd6a9f543694a3db26b047764b68815b8
188
asm
Assembly
libsrc/_DEVELOPMENT/adt/bv_stack/c/sdcc_iy/bv_stack_capacity.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/adt/bv_stack/c/sdcc_iy/bv_stack_capacity.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/adt/bv_stack/c/sdcc_iy/bv_stack_capacity.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; size_t bv_stack_capacity(bv_stack_t *s) SECTION code_clib SECTION code_adt_bv_stack PUBLIC _bv_stack_capacity EXTERN _b_vector_capacity defc _bv_stack_capacity = _b_vector_capacity
15.666667
44
0.861702
a1eebefaace1ad83dff4690829ddfdda15058676
446
asm
Assembly
oeis/066/A066768.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/066/A066768.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/066/A066768.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A066768: Sum_{d|n} binomial(2*d-2,d-1). ; Submitted by Jon Maiga ; 1,3,7,23,71,261,925,3455,12877,48693,184757,705713,2704157,10401527,40116677,155120975,601080391,2333619351,9075135301,35345312513,137846529751,538258059199,2104098963721,8233431436745,32247603683171 add $0,1 mov $2,$0 lpb $0 add $0,1 mov $3,$2 dif $3,$0 sub $0,1 cmp $3,$2 cmp $3,0 mul $3,$0 mul $3,2 bin $3,$0 sub $0,1 add $1,$3 lpe mov $0,$1 add $0,1
20.272727
201
0.67713
d87f412552f3794b7275866b02bbaa404b775ad8
380
asm
Assembly
programs/oeis/085/A085739.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/085/A085739.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/085/A085739.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A085739: Partial sums of A034953(n). ; 3,9,24,52,118,209,362,552,828,1263,1759,2462,3323,4269,5397,6828,8598,10489,12767,15323,18024,21184,24670,28675,33428,38579,43935,49713,55708,62149,70277,78923,88376,98106,109281,120757,133160,146526,160554 lpb $0 mov $2,$0 sub $0,1 seq $2,34953 ; Triangular numbers (A000217) with prime indices. add $1,$2 lpe add $1,3 mov $0,$1
31.666667
208
0.728947
7c9b6b8fe7ffd587e5f82a9cf1f4282b0e4c2090
147
asm
Assembly
Assembler/AssemblyCode/TTL/LOAD.asm
KPU-RISC/KPU
9f85c322e1b8489eef31f0696799e0c6c7273c0e
[ "MIT" ]
8
2017-04-16T16:53:03.000Z
2021-09-14T22:29:28.000Z
Assembler/AssemblyCode/TTL/LOAD.asm
KPU-RISC/KPU
9f85c322e1b8489eef31f0696799e0c6c7273c0e
[ "MIT" ]
null
null
null
Assembler/AssemblyCode/TTL/LOAD.asm
KPU-RISC/KPU
9f85c322e1b8489eef31f0696799e0c6c7273c0e
[ "MIT" ]
null
null
null
MOV XL, 11111110b MOV XH, 0x00 MOV M, X ; Initialize the D and E register MOV E, [M] MOV D, 00000001b ADD E, D DATA 0000000011111110b, 11001100b
13.363636
33
0.727891
8d2509b790cea1faeef804bf8c9e0bf7bde53802
391
asm
Assembly
programs/oeis/237/A237587.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/237/A237587.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/237/A237587.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A237587: Triangle read by rows in which row n lists the first n odd squares in decreasing order. ; 1,9,1,25,9,1,49,25,9,1,81,49,25,9,1,121,81,49,25,9,1,169,121,81,49,25,9,1,225,169,121,81,49,25,9,1,289,225,169,121,81,49,25,9,1,361,289,225,169,121,81,49,25,9,1,441,361,289,225,169,121,81,49,25,9,1 mov $2,$0 lpb $2 sub $1,1 add $2,$1 lpe add $1,$2 bin $1,2 mul $1,8 add $1,1 mov $0,$1
27.928571
199
0.654731
66885bdeed5a665f8104414df5ce24a7f0ee7597
561
asm
Assembly
mp3/test0.asm
Candy-Crusher/ece220
18001a82a46711b0451d37b3dd2c747f85abad69
[ "MIT" ]
null
null
null
mp3/test0.asm
Candy-Crusher/ece220
18001a82a46711b0451d37b3dd2c747f85abad69
[ "MIT" ]
1
2021-04-26T10:50:25.000Z
2021-04-26T10:50:25.000Z
mp3/test0.asm
Candy-Crusher/ece220
18001a82a46711b0451d37b3dd2c747f85abad69
[ "MIT" ]
null
null
null
.ORIG x4000 .FILL x0003 ; EVENT1_DAYS[0] .FILL x0042 ; EVENT1_NAME[0] .FILL x0000 ; EVENT1_NAME[1] .FILL x0001 ; EVENT1_HOUR[0] .FILL x000C ; EVENT2_DAYS[0] .FILL x0043 ; EVENT2_NAME[0] .FILL x0043 ; EVENT2_NAME[1] .FILL x0043 ; EVENT2_NAME[2] .FILL x0043 ; EVENT2_NAME[3] .FILL x0043 ; EVENT2_NAME[4] .FILL x0043 ; EVENT2_NAME[5] .FILL x0043 ; EVENT2_NAME[6] .FILL x0043 ; EVENT2_NAME[7] .FILL x0043 ; EVENT2_NAME[8] .FILL x0043 ; EVENT2_NAME[9] .FILL x0000 ; EVENT2_NAME[10] .FILL x0001 ; EVENT2_HOUR[0] .FILL xFFFF ; EVENT3_DAYS[0] .END
23.375
30
0.69697
80f632205632b466edfda2a0d59f4174333ddfbd
8,565
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1754.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1754.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1754.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0x1a193, %rsi lea addresses_WT_ht+0x9b5b, %rdi nop nop nop sub %r11, %r11 mov $95, %rcx rep movsw nop nop nop nop cmp $28218, %rax lea addresses_WC_ht+0x10ef7, %rax nop nop nop nop nop sub $29129, %r13 mov (%rax), %cx nop nop nop nop xor $6178, %r13 lea addresses_WC_ht+0x1f77, %rsi lea addresses_WT_ht+0xfc77, %rdi mfence mov $87, %rcx rep movsl nop nop nop nop xor $54993, %rcx lea addresses_UC_ht+0x1e57c, %rax add $52024, %r12 mov $0x6162636465666768, %rsi movq %rsi, %xmm6 movups %xmm6, (%rax) cmp $34333, %rcx lea addresses_WT_ht+0x5457, %r11 nop inc %r12 movb (%r11), %cl nop xor $881, %rdi lea addresses_UC_ht+0x18513, %rsi lea addresses_normal_ht+0x3997, %rdi nop nop sub $65146, %rbp mov $82, %rcx rep movsl nop nop nop dec %rbp lea addresses_WT_ht+0x153f7, %r12 nop nop nop nop nop add $10297, %rsi movups (%r12), %xmm0 vpextrq $0, %xmm0, %r13 nop nop cmp %rdi, %rdi lea addresses_A_ht+0xed57, %rax cmp %rbp, %rbp mov $0x6162636465666768, %rdi movq %rdi, (%rax) nop nop nop nop nop sub %r12, %r12 lea addresses_A_ht+0x1636f, %r11 nop nop nop nop inc %rbp vmovups (%r11), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $1, %xmm6, %rsi nop nop nop nop nop cmp %rsi, %rsi lea addresses_UC_ht+0x15ff7, %rbp nop nop nop sub $21751, %rcx mov (%rbp), %ax xor %rdi, %rdi lea addresses_WT_ht+0x7cc1, %rsi nop dec %rax movb (%rsi), %r12b nop nop and %rbp, %rbp lea addresses_A_ht+0xdc67, %rsi lea addresses_WC_ht+0x53f7, %rdi nop nop mfence mov $5, %rcx rep movsw nop nop sub $28390, %r13 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r9 push %rax push %rbp push %rcx push %rsi // Store lea addresses_WT+0x14003, %rsi nop nop nop nop nop dec %r11 movw $0x5152, (%rsi) nop nop sub $7999, %rax // Store lea addresses_RW+0x6df7, %rax nop nop nop nop cmp $32235, %r14 movw $0x5152, (%rax) nop nop xor %r11, %r11 // Store mov $0xca3, %r11 nop nop dec %rbp mov $0x5152535455565758, %r9 movq %r9, (%r11) // Exception!!! nop mov (0), %rax nop nop nop cmp %r14, %r14 // Store lea addresses_WT+0x93f7, %r9 xor $62848, %rax mov $0x5152535455565758, %rsi movq %rsi, %xmm3 movaps %xmm3, (%r9) nop nop nop add $58568, %r11 // Store lea addresses_WT+0xc8f7, %rcx nop nop nop cmp $64549, %rbp mov $0x5152535455565758, %rsi movq %rsi, %xmm3 movups %xmm3, (%rcx) nop nop nop add %r9, %r9 // Store mov $0x1776060000000cf7, %r14 clflush (%r14) and $57538, %rax mov $0x5152535455565758, %rcx movq %rcx, %xmm0 vmovups %ymm0, (%r14) and $55752, %r11 // Faulty Load lea addresses_PSE+0x1fbf7, %r9 nop nop nop and %r14, %r14 mov (%r9), %si lea oracles, %rax and $0xff, %rsi shlq $12, %rsi mov (%rax,%rsi,1), %rsi pop %rsi pop %rcx pop %rbp pop %rax pop %r9 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 1, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 8, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': True, 'congruent': 10, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 8, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 7, 'size': 32, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 7, 'size': 2, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 4, 'size': 1, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 9, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 5, 'size': 8, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 3, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, '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 */
31.259124
2,999
0.65324
650b553f1856af4b53b71df0da326fcc9eb6e7cf
1,085
asm
Assembly
AlgorithmsFromTheBook/barcodechecksum.asm
MateoParrado/AlgorithmsFromTheBook
7062cfea0822070970c1ab373a34fb56b1f54a2b
[ "MIT" ]
null
null
null
AlgorithmsFromTheBook/barcodechecksum.asm
MateoParrado/AlgorithmsFromTheBook
7062cfea0822070970c1ab373a34fb56b1f54a2b
[ "MIT" ]
null
null
null
AlgorithmsFromTheBook/barcodechecksum.asm
MateoParrado/AlgorithmsFromTheBook
7062cfea0822070970c1ab373a34fb56b1f54a2b
[ "MIT" ]
1
2020-06-08T22:02:25.000Z
2020-06-08T22:02:25.000Z
PUBLIC asm_get_barcode_checksum .386 .model flat, c .data sum DWORD ? .code asm_get_barcode_checksum PROC push ebp mov sum, 0 ;reset the sum counter to remove previous loop interference mov ebp, esp mov ebx, 0 ;bl will hold data, so ebx must be clear mov ecx, [ebp+8] mov eax, 0 ;eax is counter L1: inc eax mov bl, byte ptr [ecx] ;mov the char from ecx into bl push eax ;multiply it by three and add it to sum mov eax, 3 mul ebx add sum, eax pop eax inc ecx ;point at the next char cmp eax, 11 ;if this has been done 11 times, leave the loop je outofloop inc eax ;add the next char to sum mov bl, byte ptr[ecx] add sum, ebx inc ecx ;point at the next char jmp L1 outofloop: mov edx, 0 ;divide the sum by 10 mov eax, sum mov ebx, 10 div ebx cmp edx, 0 ;if there is no remainder, go to zero case je zero mov ebx, 10 ;subtract the remainder from ten and jump to not zero case sub ebx, edx jmp nzero zero: mov eax, 0 ;return zero jmp en;d nzero: mov eax, ebx ;mov ret val to eax en: pop ebp ret asm_get_barcode_checksum ENDP end
15.069444
71
0.703226
9cf33f8be7eaaa6395a82f632152437a39d47ec1
527
asm
Assembly
solutions/44 - Unique Fashion Party/size-34_speed-45.asm
michaelgundlach/7billionhumans
02c6f3963364362c95cb516cbc6ef1efc073bb2e
[ "MIT" ]
45
2018-09-05T04:56:59.000Z
2021-11-22T08:57:26.000Z
solutions/44 - Unique Fashion Party/size-34_speed-45.asm
michaelgundlach/7billionhumans
02c6f3963364362c95cb516cbc6ef1efc073bb2e
[ "MIT" ]
36
2018-09-01T11:34:26.000Z
2021-05-19T23:20:49.000Z
solutions/44 - Unique Fashion Party/size-34_speed-45.asm
michaelgundlach/7billionhumans
02c6f3963364362c95cb516cbc6ef1efc073bb2e
[ "MIT" ]
36
2018-09-01T07:44:19.000Z
2021-09-10T19:07:35.000Z
-- 7 Billion Humans (2087) -- -- 44: Unique Fashion Party -- -- Author: landfillbaby -- Size: 34 -- Speed: 45 pickup s a: step s if s != wall: jump a endif step e step e b: step e if se != hole: jump b endif step e if myitem == 6: jump c endif if myitem == 5: jump d endif if myitem == 4: jump e endif if myitem == 3: jump f endif if myitem == 2: jump g endif if myitem == 1: jump h endif jump i c: step e d: step e e: step e f: step e g: step e h: step e i: step n j: if s == myitem: k: step n jump k endif jump j
8.639344
30
0.626186
b9a2bf583703a4ff1ea31f7ba0f139eb8dabc82e
430
asm
Assembly
programs/oeis/063/A063165.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/063/A063165.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/063/A063165.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A063165: Dimension of the space of weight 2n cusp forms for Gamma_0( 97 ). ; 7,24,40,56,72,90,104,122,138,154,170,188,202,220,236,252,268,286,300,318,334,350,366,384,398,416,432,448,464,482,496,514,530,546,562,580,594,612,628,644,660,678,692,710,726,742,758,776,790,808 mov $1,$0 mul $1,4 mov $4,$0 add $0,1 lpb $1 gcd $0,2 sub $1,5 trn $1,1 add $3,$0 div $0,1331 lpe mov $0,$3 add $0,7 mov $2,$4 mul $2,15 add $0,$2
21.5
194
0.653488
6b321d6bfd643cfa7e8dc33ea889f92cbb31aaf5
2,874
asm
Assembly
common.asm
NotExactlySiev/psychofloat
4e6ee147e688d43c182f683f760e7a4a03620517
[ "CC0-1.0" ]
1
2021-07-06T17:41:36.000Z
2021-07-06T17:41:36.000Z
common.asm
NotExactlySiev/psychofloat
4e6ee147e688d43c182f683f760e7a4a03620517
[ "CC0-1.0" ]
null
null
null
common.asm
NotExactlySiev/psychofloat
4e6ee147e688d43c182f683f760e7a4a03620517
[ "CC0-1.0" ]
null
null
null
DisablePPU: subroutine lda #0 sta PPU_MASK lda #$08 sta PPU_CTRL rts EnablePPU: subroutine lda #$18 sta PPU_MASK lda #$18 sta PPU_CTRL rts InitPlay: subroutine ldx #$ff stx hookidx stx jbuffer inx stx vx1 stx vx0 stx vx2 stx vy0 inx stx loop stx physics stx anim stx state rts ClearState: subroutine lda #0 ldx #$38 .loop sta $18,x dex bne .loop rts ; call only once per frame, otherwise the edge data would be lost ReadPad: subroutine ldx #1 stx JOYPAD1 dex stx JOYPAD1 ; read pad data, xor with last frame's pad data to get edges clc ldx #8 .readpad asl pad lda JOYPAD1 and #$1 ora pad sta pad dex bne .readpad eor padold sta padedge lda pad sta padold rts ; use this to jsr to indirect address, index x from CallFromTable: subroutine lda CallTableHi,x pha lda CallTableLo,x pha rts ; clears DMA from x onwards ClearDMA: subroutine lda #0 .loop sta $0200,x inx bne .loop rts ; finds the first zero byte after X FindEmptyZp: subroutine .loop lda $00,x beq .found inx bne .loop .found rts ; finds the first zero byte in page A after AY FindEmpty: subroutine sta tmp3 lda #0 sta tmp2 .loop lda (tmp2),y beq .found iny bne .loop .found rts ; reverses horizontal acceleration NegativeAclX: subroutine clc lda ax2 eor #$ff adc #1 sta ax2 lda ax1 eor #$ff adc #0 sta ax1 lda ax0 eor #$ff adc #0 sta ax0 rts ClearRAM: subroutine lda #0 tax .clearRAM sta $0,x ; clear $0-$ff cpx #$fe ; last 2 bytes of stack? bcs .skipStack ; don't clear it sta $100,x ; clear $100-$1fd .skipStack sta $200,x ; clear $200-$2ff sta $300,x ; clear $300-$3ff sta $400,x ; clear $400-$4ff sta $500,x ; clear $500-$5ff sta $600,x ; clear $600-$6ff sta $700,x ; clear $700-$7ff inx ; X = X + 1 bne .clearRAM ; loop 256 times rts WaitSync: subroutine bit PPU_STATUS bpl WaitSync rts PPUFormat: subroutine ; 0-1 xy -> 6-7 PPU memory address lda func0 cmp #30 bcc .screen sec ; TODO: this part is broken? writes to weird places adc #$21 ; ready for shifting to become ppu 2000 or 2800 .screen clc ror ; this should be a subroutie 0-1 -> 6-7 ror ror ror sta func6 and #$e0 ora func1 sta func7 lda func6 rol and #$0f ora #$20 sta func6 rts
16.905882
68
0.537926
fd0933533e47cdcf01d2a6789404e64b2943203f
128
asm
Assembly
PRG/objects/BigQ5.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/objects/BigQ5.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/objects/BigQ5.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
.byte $01 ; Unknown purpose .byte OBJ_BIGQBLOCK_3UP, $37, $10 .byte OBJ_BIGQBLOCK_TANOOKI, $77, $14 .byte $FF ; Terminator
21.333333
38
0.703125
4e5398005cf9c56b2089080c1755359719e34e61
4,670
asm
Assembly
Examples/basics/keyfilter.asm
agguro/linux-nasm
3e72083c3db6d7118eb2aa430b73e0d20e88456b
[ "Unlicense" ]
6
2020-07-19T18:34:43.000Z
2022-03-26T10:21:09.000Z
Examples/basics/keyfilter.asm
NrdyBhu1/linux-nasm
3e72083c3db6d7118eb2aa430b73e0d20e88456b
[ "Unlicense" ]
null
null
null
Examples/basics/keyfilter.asm
NrdyBhu1/linux-nasm
3e72083c3db6d7118eb2aa430b73e0d20e88456b
[ "Unlicense" ]
3
2020-07-19T18:35:10.000Z
2021-07-25T17:34:50.000Z
;name: keyfilter.asm ; ;description: The program displays the ASCII code in hexadecimal of the pressed key. ; ; ;build: nasm -felf64 keyfilter.asm -o keyfilter.o ; ld -melf_x86_64 keyfilter.o -o keyfilter ; ;remark: On terminals with escape key sequences binded to keys (like the cursor keys) the ; program exits after pressing those (since ESCAPE sequences starts with the ESC key) ; ;source: 11.7 Writing UNIX® Filters - FreeBSD Developers’ Handbook bits 64 %include "unistd.inc" %include "sys/termios.inc" section .bss buffer: resq 8 .length: equ $-buffer section .rodata intro: db "filter - by Agguro 2011 source: FreeBSD Developers’ Handbook.", 10 db "The program shows the ASCII codes of the pressed keys. ESC terminates the " db "program with key code or CTRL-C without.", 10 db "start typing >> " .length: equ $-intro EOL: .start: db "1B", 10 ;print the ASCII code for ESC to be complete .end: section .data output: db 0,0," " .length: equ $-output TERMIOS termios ;termios structure section .text global _start _start: mov rsi,intro mov rdx,intro.length call Write call termios_canonical_mode_off ;switch canonical mode off call termios_echo_mode_off ;no echo getKeyStroke: syscall read,stdin,buffer,buffer.length cmp byte[buffer],0x1B ;if ESC pressed je Exit mov al,byte[buffer] toASCII: shl rax,4 ;most significant nibble in AH shr al,4 ;least significant nibble in AL or ax,3030h ;attempt to convert both to ASCII cmp al,"9" ;is AL = ascii 9 ? jle .highNibble add al,7 .highNibble: cmp ah,"9" jle .done add ah,7 .done: ror ax,8 ;little ENDIAN notation mov word[output],ax ;ASCII in buffer to print mov rsi,output mov rdx,output.length call Write jmp getKeyStroke Exit: mov rsi,EOL mov rdx,EOL.end-EOL.start call Write call termios_canonical_mode_on ;switch canonical mode back on call termios_echo_mode_on ;restore echo syscall exit,0 ;write to STDOUT Write: push rcx push rax push rdi syscall write,stdout pop rdi pop rax pop rcx ret ;subroutine to switch canonical mode on ;RAX is unchanged on exit termios_canonical_mode_on: push rax mov rax,ICANON jmp termios_set_localmode_flag ;subroutine to switch echo mode on ;RAX is unchanged on exit termios_echo_mode_on: push rax mov rax,ECHO jmp termios_set_localmode_flag ;subroutine to set the bits in the c_lflag stored in EAX ;RAX is unchanged on exit termios_set_localmode_flag: push rax call termios_stdin_read or dword[termios.c_lflag],eax call termios_stdin_write pop rax pop rax ret ;subroutine to switch canonical mode off ;RAX is unchanged on exit termios_canonical_mode_off: push rax mov rax,ICANON jmp termios_clear_localmode_flag ;subroutine to switch echo mode off ;RAX is unchanged on exit termios_echo_mode_off: push rax mov rax,ECHO jmp termios_clear_localmode_flag ;subroutine to clear the bits in the c_lflag stored in EAX ;RAX is unchanged on exit termios_clear_localmode_flag: push rax call termios_stdin_read not eax and [termios.c_lflag],eax call termios_stdin_write pop rax pop rax ret ;subroutine for all TCGETS operation on the syscall IOCTL ;the original value of RCX is restored on exit termios_stdin_read: push rsi mov rsi,TCGETS jmp termios_stdin_syscall ;subroutine for all TCSETS operation on the syscall IOCTL ;the original value of RCX is restored on exit termios_stdin_write: push rsi mov rsi,TCSETS jmp termios_stdin_syscall ;subroutine for operations on the syscall IOCTL for STDIN ;all registers are restored to their original values on exit of the subroutine termios_stdin_syscall: push rax push rdi push rdx mov rdx,termios syscall ioctl,stdin pop rdx pop rdi pop rax pop rsi ret
26.685714
100
0.612206
36361d52103008eafd943e79aac4c89eb3225a5d
25
asm
Assembly
pkgs/tools/yasm/src/modules/objfmts/bin/tests/multisect/follows-notfound-err.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
pkgs/tools/yasm/src/modules/objfmts/bin/tests/multisect/follows-notfound-err.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
pkgs/tools/yasm/src/modules/objfmts/bin/tests/multisect/follows-notfound-err.asm
manggoguy/parsec-modified
d14edfb62795805c84a4280d67b50cca175b95af
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
section foo follows=bar
8.333333
23
0.8
9ff996455cfb9ebb4fded38cc4d798e9087af348
1,235
asm
Assembly
programs/oeis/139/A139606.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/139/A139606.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/139/A139606.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A139606: a(n) = 15*n + 6. ; 6,21,36,51,66,81,96,111,126,141,156,171,186,201,216,231,246,261,276,291,306,321,336,351,366,381,396,411,426,441,456,471,486,501,516,531,546,561,576,591,606,621,636,651,666,681,696,711,726,741,756,771,786,801,816,831,846,861,876,891,906,921,936,951,966,981,996,1011,1026,1041,1056,1071,1086,1101,1116,1131,1146,1161,1176,1191,1206,1221,1236,1251,1266,1281,1296,1311,1326,1341,1356,1371,1386,1401,1416,1431,1446,1461,1476,1491,1506,1521,1536,1551,1566,1581,1596,1611,1626,1641,1656,1671,1686,1701,1716,1731,1746,1761,1776,1791,1806,1821,1836,1851,1866,1881,1896,1911,1926,1941,1956,1971,1986,2001,2016,2031,2046,2061,2076,2091,2106,2121,2136,2151,2166,2181,2196,2211,2226,2241,2256,2271,2286,2301,2316,2331,2346,2361,2376,2391,2406,2421,2436,2451,2466,2481,2496,2511,2526,2541,2556,2571,2586,2601,2616,2631,2646,2661,2676,2691,2706,2721,2736,2751,2766,2781,2796,2811,2826,2841,2856,2871,2886,2901,2916,2931,2946,2961,2976,2991,3006,3021,3036,3051,3066,3081,3096,3111,3126,3141,3156,3171,3186,3201,3216,3231,3246,3261,3276,3291,3306,3321,3336,3351,3366,3381,3396,3411,3426,3441,3456,3471,3486,3501,3516,3531,3546,3561,3576,3591,3606,3621,3636,3651,3666,3681,3696,3711,3726,3741 mov $1,$0 mul $1,15 add $1,6
176.428571
1,176
0.77247
345de6a44e509928758c8178aaac1f0498efaf8a
7,394
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2211.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2211.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2211.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 %r15 push %rax push %rcx push %rdi push %rsi lea addresses_WC_ht+0x144a2, %rsi nop nop nop nop add %rax, %rax mov $0x6162636465666768, %r15 movq %r15, (%rsi) nop xor $16406, %r10 lea addresses_normal_ht+0x1a72d, %rsi lea addresses_D_ht+0x1c72d, %rdi nop nop nop nop nop inc %r14 mov $87, %rcx rep movsq nop nop nop nop sub $52650, %r14 lea addresses_WT_ht+0xc72d, %rcx nop nop nop cmp $59494, %r15 mov $0x6162636465666768, %rsi movq %rsi, %xmm5 and $0xffffffffffffffc0, %rcx movaps %xmm5, (%rcx) add %rax, %rax lea addresses_A_ht+0x1301d, %rsi lea addresses_WC_ht+0x90f9, %rdi nop nop xor %r10, %r10 mov $14, %rcx rep movsq nop nop nop nop mfence lea addresses_D_ht+0x1b83d, %rax nop nop nop nop add $64865, %rcx mov $0x6162636465666768, %rsi movq %rsi, %xmm5 movups %xmm5, (%rax) nop nop nop nop and %rax, %rax lea addresses_A_ht+0x1ab2d, %rsi lea addresses_normal_ht+0xf4db, %rdi nop nop nop nop nop cmp %r12, %r12 mov $6, %rcx rep movsl nop nop nop cmp $21360, %r10 lea addresses_UC_ht+0x72d, %r15 nop nop add %rdi, %rdi mov (%r15), %r10d nop sub %rcx, %rcx lea addresses_normal_ht+0xfad, %r10 nop nop nop nop and $58413, %rcx mov (%r10), %si nop nop nop xor %r14, %r14 lea addresses_WT_ht+0xaa2d, %r10 nop nop nop nop xor %r14, %r14 movl $0x61626364, (%r10) dec %r14 lea addresses_WC_ht+0x16811, %rax nop nop add $8280, %rsi mov (%rax), %r14 nop nop sub $14996, %r15 lea addresses_D_ht+0xcf3d, %rsi lea addresses_WC_ht+0x1732d, %rdi nop nop nop nop nop xor %r15, %r15 mov $123, %rcx rep movsl nop nop nop sub $20229, %rcx pop %rsi pop %rdi pop %rcx pop %rax pop %r15 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %rbp push %rbx push %rcx push %rdx push %rsi // Store lea addresses_WC+0x662d, %rsi nop sub %rdx, %rdx mov $0x5152535455565758, %rbp movq %rbp, (%rsi) nop nop nop nop sub %rsi, %rsi // Store lea addresses_WT+0x2f2d, %r10 nop nop nop add %rbx, %rbx movb $0x51, (%r10) nop nop nop nop xor $17794, %rbp // Faulty Load lea addresses_RW+0xa72d, %rbx nop nop nop nop sub $21882, %rdx vmovups (%rbx), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %rcx lea oracles, %rdx and $0xff, %rcx shlq $12, %rcx mov (%rdx,%rcx,1), %rcx pop %rsi pop %rdx pop %rcx pop %rbx pop %rbp pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 8, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 9, 'size': 1, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 10, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 4, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': True, 'congruent': 7, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
32.862222
2,999
0.659589
ea8340583d859978bd15d8cfaf9e2ea1935937ac
320
asm
Assembly
programs/oeis/007/A007900.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/007/A007900.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/007/A007900.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A007900: Coordination sequence for D_4 lattice. ; 1,24,144,456,1056,2040,3504,5544,8256,11736,16080,21384,27744,35256,44016,54120,65664,78744,93456,109896,128160,148344,170544,194856,221376,250200,281424,315144,351456 pow $1,$0 mov $4,$0 mul $0,8 add $1,$0 mov $3,$4 mul $3,$4 mul $3,$4 mov $2,$3 mul $2,16 add $1,$2
22.857143
169
0.71875
447cf0cda4c90c917dfc2de2078142bf67bb532e
749
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0_notsx.log_3_893.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0_notsx.log_3_893.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0_notsx.log_3_893.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %rbp push %rcx push %rdi push %rsi // Faulty Load mov $0x6941590000000d2d, %r12 xor %r13, %r13 vmovntdqa (%r12), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $1, %xmm4, %rcx lea oracles, %r13 and $0xff, %rcx shlq $12, %rcx mov (%r13,%rcx,1), %rcx pop %rsi pop %rdi pop %rcx pop %rbp pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 32, 'NT': True, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'00': 3} 00 00 00 */
17.833333
121
0.651535
b0aeaee0593ded9c1b41d916befb9d0d6aff2010
2,940
asm
Assembly
base/crts/crtw32/string/i386/strncmp.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/crts/crtw32/string/i386/strncmp.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/crts/crtw32/string/i386/strncmp.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
page ,132 title strncmp - compare first n chars of two strings ;*** ;strncmp.asm - compare first n characters of two strings ; ; Copyright (c) 1985-2001, Microsoft Corporation. All rights reserved. ; ;Purpose: ; defines strncmp() - compare first n characters of two strings ; for lexical order. ; ;Revision History: ; 10-26-83 RN initial version ; 05-18-88 SJM Add model-independent (large model) ifdef ; 08-04-88 SJM convert to cruntime/ add 32-bit support ; 08-23-88 JCR 386 cleanup ; 10-26-88 JCR General cleanup for 386-only code ; 03-23-90 GJF Changed to _stdcall. Also, fixed the copyright. ; 05-10-91 GJF Back to _cdecl, sigh... ; 06-12-01 PML inc->add 1, dec->sub 1 for Pentium 4 perf (vs7#267015) ; ;******************************************************************************* .xlist include cruntime.inc .list page ;*** ;int strncmp(first, last, count) - compare first count chars of strings ; ;Purpose: ; Compares two strings for lexical order. The comparison stops ; after: (1) a difference between the strings is found, (2) the end ; of the strings is reached, or (3) count characters have been ; compared. ; ; Algorithm: ; int ; strncmp (first, last, count) ; char *first, *last; ; unsigned count; ; { ; if (!count) ; return(0); ; while (--count && *first && *first == *last) ; { ; first++; ; last++; ; } ; return(*first - *last); ; } ; ;Entry: ; char *first, *last - strings to compare ; unsigned count - maximum number of characters to compare ; ;Exit: ; returns <0 if first < last ; returns 0 if first == last ; returns >0 if first > last ; ;Uses: ; ;Exceptions: ; ;******************************************************************************* CODESEG public strncmp strncmp proc \ uses edi esi ebx, \ first:ptr byte, \ last:ptr byte, \ count:IWORD mov ecx,[count] ; cx=max number of bytes to compare jecxz short toend ; it's as if strings are equal mov ebx,ecx ; bx saves count mov edi,[first] ; di=first pointer (es=segment part) mov esi,edi ; si saves first pointer xor eax,eax ; ax=0 repne scasb ; count bytes neg ecx ; cx=count - strlen add ecx,ebx ; strlen + count - strlen okay: mov edi,esi ; restore first pointer mov esi,[last] ; si = last pointer repe cmpsb ; compare strings mov al,[esi-1] xor ecx,ecx ; set return value = 0 cmp al,[edi-1] ; last-first ja short lastbig ; <last is bigger> je short toend ; <equal> ;jb short firstbig ; <first is bigger> firstbig: ; first string is bigger sub ecx,2 ; make FFFE so 'not' will give 0001 lastbig: ; last string is bigger not ecx ; return -1 toend: mov eax,ecx ; return value ifdef _STDCALL_ ret 2*DPSIZE + ISIZE ; _stdcall return else ret ; _cdecl return endif strncmp endp end
24.297521
81
0.598299
50202b03cdf2d203cbed7d5d64fb5c67b386af80
651
asm
Assembly
oeis/016/A016007.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/016/A016007.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/016/A016007.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A016007: a(n) = (tau(n^11)+10)/11. ; Submitted by Jon Maiga ; 1,2,2,3,2,14,2,4,3,14,2,26,2,14,14,5,2,26,2,26,14,14,2,38,3,14,4,26,2,158,2,6,14,14,14,49,2,14,14,38,2,158,2,26,26,14,2,50,3,26,14,26,2,38,14,38,14,14,2,302,2,14,26,7,14,158,2,26,14,158,2,72,2,14,26,26,14,158,2,50,5,14,2,302,14,14,14,38,2,302,14,26,14,14,14,62,2,26,26,49 add $0,1 mov $1,1 lpb $0 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 add $2,1 cmp $5,1 max $4,$5 sub $3,$4 lpe mov $5,1 lpb $0 dif $0,$2 add $5,11 lpe mul $1,$5 lpe mov $0,$1 div $0,11 add $0,1
19.727273
273
0.526882
0250fc2ce49fc348761fd5a3b50f1285924d0d28
1,583
asm
Assembly
C/BiosLib/htobcd.asm
p-k-p/SysToolsLib
827be2799e541410cb5c11358cd4ce6859e171ad
[ "Apache-2.0" ]
232
2016-04-27T21:56:11.000Z
2022-03-29T09:02:15.000Z
C/BiosLib/htobcd.asm
p-k-p/SysToolsLib
827be2799e541410cb5c11358cd4ce6859e171ad
[ "Apache-2.0" ]
31
2016-05-09T09:05:36.000Z
2022-03-29T19:17:45.000Z
C/BiosLib/htobcd.asm
p-k-p/SysToolsLib
827be2799e541410cb5c11358cd4ce6859e171ad
[ "Apache-2.0" ]
94
2016-06-01T18:10:39.000Z
2022-03-26T10:44:57.000Z
page ,132 ;*****************************************************************************; ; ; ; FILE NAME: htobcd.asm ; ; ; ; DESCRIPTION: Convert an hexadecimal number to BCD ; ; ; ; NOTES: ; ; ; ; HISTORY: ; ; 1995/08/25 JFL Created this file. ; ; ; ; (c) Copyright 1995-2017 Hewlett Packard Enterprise Development LP ; ; Licensed under the Apache 2.0 license - www.apache.org/licenses/LICENSE-2.0 ; ;*****************************************************************************; INCLUDE ADEFINE.INC ; For the macro definitions .286 .CODE ;-----------------------------------------------------------------------------; ; ; ; Function: htobcd ; ; ; ; Description: Convert an hexadecimal value to its BCD equivalent ; ; ; ; Parameters: AL Hexadecimal number from 0 to 99 ; ; ; ; Returns: AL The same, in BCD. ; ; ; ; Notes: One of the rare uses of the AAM instructions! ; ; ; ; Regs altered: AX. ; ; ; ; History: ; ; ; ; 1991/06/06 JFL Created this routine ; ; ; ;-----------------------------------------------------------------------------; CFASTPROC htobcd aam ; Convert to unpacked BCD shl al, 4 ; Pack BCD into AL shr ax, 4 ret ENDCFASTPROC htobcd END
28.781818
79
0.359444
4edce6f4794ae08cb89b63c7158c2d29f2111eb5
360
asm
Assembly
libmikeos/src.os/os_run_basic.asm
mynameispyo/InpyoOS
b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d
[ "BSD-3-Clause", "MIT" ]
null
null
null
libmikeos/src.os/os_run_basic.asm
mynameispyo/InpyoOS
b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d
[ "BSD-3-Clause", "MIT" ]
null
null
null
libmikeos/src.os/os_run_basic.asm
mynameispyo/InpyoOS
b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d
[ "BSD-3-Clause", "MIT" ]
null
null
null
; @@@ int mikeos_run_basic(char *buf, int size); %include "os_vector.inc" section .text use16 global _mikeos_run_basic _mikeos_run_basic: push bp mov bp, sp push si ; os_run_basic don't save SI/DI? push di mov ax, [bp + 4] mov bx, [bp + 6] mov bp, os_run_basic call bp pop di pop si pop bp xor ax, ax ; currently no value (zero) ret
12.413793
48
0.669444
70823332f77468390b226d6851862582ad53de28
823
asm
Assembly
Examples/Loop.asm
Pumuckl007/8BitCompiler
dbcdb7e439dcc2a2d5b7b28f399997267ee2bba8
[ "MIT" ]
5
2019-03-28T07:27:37.000Z
2020-08-30T09:07:55.000Z
Examples/Loop.asm
Pumuckl007/8BitCompiler
dbcdb7e439dcc2a2d5b7b28f399997267ee2bba8
[ "MIT" ]
null
null
null
Examples/Loop.asm
Pumuckl007/8BitCompiler
dbcdb7e439dcc2a2d5b7b28f399997267ee2bba8
[ "MIT" ]
1
2022-01-23T19:23:19.000Z
2022-01-23T19:23:19.000Z
******************************************************************************** * * * (c) 2018 Max Apodaca * * This code is licensed under MIT license (see LICENSE for details) * * * ******************************************************************************** LDI 1 * Load the value one which will be used for subtracting. STA 255 LDI 100 * Load the starting value. * Label the following instruction with "loop" which can be referenced loop: * in jump instructions. SUB 255 * Subtract one. OUT * Output the result. JMP loop * Jump to the label "loop".
48.411765
81
0.347509
42160c964a54304a4ebfd0cb3b6c9cb03821cc2d
90
asm
Assembly
src/main/fragment/mos6502-common/vwuz1=_deref_pwuz1_plus_vwuc1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/vwuz1=_deref_pwuz1_plus_vwuc1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/vwuz1=_deref_pwuz1_plus_vwuc1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
ldy #0 lda ({z1}),y clc adc #<{c1} pha iny lda ({z1}),y adc #>{c1} sta {z1}+1 pla sta {z1}
8.181818
12
0.544444
7d00f5dd30b198441dd194826e1e75a34cd89fe6
462
asm
Assembly
Trojan.Tinba/source/-RootKit/IsHidden.asm
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
2
2021-02-04T06:47:45.000Z
2021-07-28T10:02:10.000Z
Trojan.Win32.Zutick/-RootKit/IsHidden.asm
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
null
null
null
Trojan.Win32.Zutick/-RootKit/IsHidden.asm
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
null
null
null
.code ;; -------------------------------------------------------------------------------- ;; IsHiddenFile proc cmp byte ptr [ebx], "A" je @hide cmp byte ptr [ebx], "~" je @hide ;; Not hide xor ebx, ebx ret @hide: ret IsHiddenFile endp ;; -------------------------------------------------------------------------------- ;; IsHiddenRegValue proc cmp byte ptr [ebx], "C" je @hide ;; Not hide xor ebx, ebx ret @hide: ret IsHiddenRegValue endp
13.2
86
0.404762
dc88220245cb0200e2563b18765f4a7095df7768
548
asm
Assembly
examples/demo/demo.asm
nrkn/hrm-draw
277de64b6cd8476e9e416f309e85bcf6c34e24f0
[ "MIT" ]
2
2015-11-04T07:48:32.000Z
2018-09-17T05:07:26.000Z
examples/demo/demo.asm
nrkn/hrm-draw
277de64b6cd8476e9e416f309e85bcf6c34e24f0
[ "MIT" ]
3
2015-11-02T23:15:39.000Z
2015-11-04T05:25:59.000Z
examples/demo/demo.asm
nrkn/hrm-draw
277de64b6cd8476e9e416f309e85bcf6c34e24f0
[ "MIT" ]
null
null
null
COMMENT 0 DEFINE COMMENT 0 eJxLZ2BgOMDswH2AucAPyGToEXHg7hGBsA8w39DpEbmhA2Lvky/w2yfvwP1Ry4G7y4BH5qPWDZ0I1Rs6 XQYQtXutC/z2Wjtwf3C7oaMc5MCtHAQRD429odORATFjd7ED99s6B+72Fh6Z9pYltm/rCvx2F4OwAzdI fmd/gd/OfgfuN7McuNsW8Mi8mXVDJ3jqDZ22BRCzdqwu8NuxmkcmaKMD9+ttDtwte3hkWvbA5G7otOyB 2LP9uAO37IUCv+YbDtwvHxT4+b+EmB+WnHK1Jrvw+rKCf2dA/FVViyo2F19Lv5DxNYov9nKMbMDH7Bdu 6f03Xd9tbPI2ueoRIv3qR+L+L9E5xh/tyo89mFb37Ojlhq+rQXonF9+v2lMpVHG5oaJBoPnCFOdG91VR 1eHblUoytmXmdS/zyl3drVycVw1SOycgr7MkPKr+Vnxps0iq0uTgtGurohJqDjwJbz86J2Dino8+7xaD 1IDUboosWASieSrPTmcYBaOADgAAyvOhOw;
60.888889
80
0.939781
44d39089dda21bab28b728ab4492f845000d7e83
48,829
asm
Assembly
SokobanGame/Maps.asm
merino22/Sokoban-Game
24618a150360b73534c216ecaf3df29426b41aaa
[ "MIT" ]
null
null
null
SokobanGame/Maps.asm
merino22/Sokoban-Game
24618a150360b73534c216ecaf3df29426b41aaa
[ "MIT" ]
null
null
null
SokobanGame/Maps.asm
merino22/Sokoban-Game
24618a150360b73534c216ecaf3df29426b41aaa
[ "MIT" ]
null
null
null
.global printMap .global generateMap .global checkPosX .global checkPosY .global RepaintBoxes .global checkBoxSpot .global checkLevelPassed .global printLvlCounter .global printInstruc .data kb_count_str: .byte "Move Counter: ", 0 lvl_str: .byte "Level: ", 0 instr_0: .byte "======== GAME INSTRUCTIONS ========", 0 instr_1: .byte " Move Up: W", 0 instr_2: .byte " Move Down: S", 0 instr_3: .byte " Move Left: A", 0 instr_4: .byte " Move Right: D", 0 instr_5: .byte " Restart Level: SPACE", 0 instr_6: .byte " Exit Level: ESC", 0 instr_7: .byte " Press SPACE to return to Main Menu" .text ; Function for Printing Instruction Menu printInstruc: li $v0, 30 syscall li $v0, 53 syscall li $v0, 28 li $a0, 6 syscall li $v0, 29 li $a0, 0 syscall li $v0, 4 la $a0, instr_0 syscall li $v0, 11 li $a0, 10 syscall li $v0, 4 la $a0, instr_1 syscall li $v0, 11 li $a0, 10 syscall li $v0, 4 la $a0, instr_2 syscall li $v0, 11 li $a0, 10 syscall li $v0, 4 la $a0, instr_3 syscall li $v0, 11 li $a0, 10 syscall li $v0, 4 la $a0, instr_4 syscall li $v0, 11 li $a0, 10 syscall li $v0, 4 la $a0, instr_5 syscall li $v0, 11 li $a0, 10 syscall li $v0, 4 la $a0, instr_6 syscall li $v0, 11 li $a0, 10 syscall li $v0, 4 li $a0, instr_7 syscall while_instruc: li $v0, 31 syscall li $t0, 32 beq $v0, $t0, end_while_instruc j while_instruc end_while_instruc: jr $ra ; Function for Printing Level Counter printLvlCounter: li $v0, 51 li $a1, 15 li $a2, 29 syscall li $v0, 4 li $a0, lvl_str ; --> print level syscall li $v0, 1 move $a0, $s0 syscall li $v0, 51 li $a1, 35 li $a2, 29 syscall li $v0, 4 li $a0, kb_count_str ; --> print move counter syscall li $v0, 1 move $a0, $s1 syscall jr $ra ; Function for checking if current level is passed checkLevelPassed: lw $a0, 340($sp) li $t1, 0 ;--> i li $t7, 5 ;--> compare for_check_lvl: slti $t0, $t1, 9 beq $t0, $zero, end_for_check_lvl li $t3, 36 mult $t1, $t3 ;--> i * 36 mflo $t4 ;--> i * 36 li $t2, 0 s_for_check_lvl: slti $t0, $t2, 9 beq $t0, $zero, end_s_for_check_lvl li $t3, 4 mult $t2, $t3 mflo $t5 ; --> i * 4 add $t5, $t5, $t4 add $t5, $t5, $a0 lw $t6, 0($t5) if_five: bne $t6, $t7, end_if_five li $v0, 0 j end_false end_if_five: addi $t2, $t2, 1 j s_for_check_lvl end_s_for_check_lvl: addi $t1, $t1, 1 j for_check_lvl end_for_check_lvl: li $v0, 1 end_false: sw $a0, 340($sp) jr $ra ; Function for printing current level Map printMap: ; $a0 --> mem direction of map ;#show $a0 sw $ra, 344($sp) li $a1, 1 ; $a1 --> x li $a2, 1; $a2 --> y li $t1, 0 ; --> i for_i: slti $t0, $t1, 9 beq $t0, $zero, end_for_i li $t2, 0 ; --> j for_j: slti $t0, $t2, 9 beq $t0, $zero, end_for_j lw $a0, 340($sp) ;#show $a0 li $t0, 36 li $t3, 0 mult $t1, $t0 ; --> i * 36 mflo $t3 sll $t0, $t2, 2 ; --> j * 4 add $t3, $t0, $t3 add $t3, $a0, $t3 lw $t4, 0($t3) ;#show $t4 li $t0, 1 ;--> constant 1 sw $t1, 328($sp) ;--> store i var in stack sw $t2, 332($sp) ;--> store j var in stack ;#show $a0 sw $a0, 340($sp) if_tree: bne $t4, $t0, if_block jal Tree ;#show $a0 if_block: li $t0, 2 bne $t4, $t0, if_box jal Block if_box: li $t0, 3 bne $t4, $t0, if_boxspot jal Box if_boxspot: li $t0, 5 bne $t4, $t0, if_player jal Boxspot if_player: li $t0, 4 bne $t4, $t0, end_ifs jal Player end_ifs: lw $t1, 328($sp) lw $t2, 332($sp) addi $a1, $a1, 7 addi $t2, $t2, 1 j for_j end_for_j: li $a1, 1 addi $a2, $a2, 3 addi $t1, $t1, 1 j for_i end_for_i: ;#show $s0 lw $ra, 344($sp) jr $ra ; Function for checking if next x movement is valid checkPosX: lw $a0, 340($sp) ;#show $a0 move $t1, $a1 ; --> x move $t2, $a2 ; --> y move $t3, $a3 ; --> posMove li $t4, 7 ; --> Divisor ; --> x-1/7 addi $t1, $t1, -1 div $t1, $t4 mflo $t1 ; --> posMove/7 div $t3, $t4 mflo $t3 ; --> y-1/3 li $t4, 3 addi $t2, $t2, -1 div $t2, $t4 mflo $t2 li $t4, 0 ;--> boxSum if_lt_0: slt $t0, $t3, $zero beq $t0, $zero, else_lt_0 li $t4, -1 j end_lt else_lt_0: li $t4, 1 end_lt: li $t5, 36 mult $t2, $t5 mflo $t2 li $t5, 4 mult $t1, $t5 mflo $t1 mult $t3, $t5 mflo $t3 mult $t4, $t5 mflo $t4 li $t5, 0 add $t5, $a0, $t5 ;#show $t5 add $t5, $t5, $t2 add $t5, $t5, $t1 sw $t5, 348($sp) ;--> x + y add $t5, $t5, $t3 ;#show $t5 sw $t5, 352($sp);--> x + y + posMove add $t5, $t5, $t4 sw $t5, 356($sp);--> x+y+posMove+boxsum if_arr_2: lw $t4, 352($sp) lw $t5, 0($t4) li $t1, 2 bne $t1, $t5, if_arr_3 li $v0, 0 j end_if_arr if_arr_3: li $t1, 3 bne $t1, $t5, if_arr_e if_boxsum_0: lw $t4, 356($sp) lw $t5, 0($t4) li $t1, 0 bne $t5, $t1, if_boxsum_5 lw $t4, 348($sp) sw $t1, 0($t4) lw $t4, 352($sp) li $t1, 4 sw $t1, 0($t4) lw $t4, 356($sp) li $t1, 3 sw $t1, 0($t4) li $v0, 1 j end_if_arr if_boxsum_5: li $t1, 5 bne $t5, $t1, if_boxsum_e lw $t4, 348($sp) sw $t1, 0($t4) lw $t4, 352($sp) li $t1, 4 sw $t1, 0($t4) lw $t4, 356($sp) li $t1, 3 sw $t1, 0($t4) li $v0, 1 j end_if_arr if_boxsum_e: li $v0, 0 j end_if_arr if_arr_e: lw $t4, 348($sp) li $t1, 0 sw $t1, 0($t4) lw $t4, 352($sp) li $t1, 4 sw $t1, 0($t4) li $v0, 1 end_if_arr: sw $a0, 340($sp) jr $ra ; Function for checking if next y movement is valid checkPosY: lw $a0, 340($sp) ;#show $a0 move $t1, $a1 ; --> x move $t2, $a2 ; --> y move $t3, $a3 ; --> posMove li $t4, 7 ; --> Divisor ; --> x-1/7 addi $t1, $t1, -1 div $t1, $t4 mflo $t1 li $t4, 3 ; --> posMove/3 div $t3, $t4 mflo $t3 ; --> y-1/3 li $t4, 3 addi $t2, $t2, -1 div $t2, $t4 mflo $t2 li $t4, 0 ;--> boxSum if_lt_0_y: slt $t0, $t3, $zero beq $t0, $zero, else_lt_0_y li $t4, -1 j end_lt_y else_lt_0_y: li $t4, 1 end_lt_y: li $t5, 36 mult $t2, $t5 mflo $t2 mult $t3, $t5 mflo $t3 mult $t4, $t5 mflo $t4 li $t5, 4 mult $t1, $t5 mflo $t1 li $t5, 0 add $t5, $a0, $t5 ;#show $t5 add $t5, $t5, $t2 add $t5, $t5, $t1 sw $t5, 348($sp) ;--> x + y add $t5, $t5, $t3 ;#show $t5 sw $t5, 352($sp);--> x + y + posMove add $t5, $t5, $t4 sw $t5, 356($sp);--> x+y+posMove+boxsum if_arr_2_y: lw $t4, 352($sp) lw $t5, 0($t4) li $t1, 2 bne $t1, $t5, if_arr_3_y li $v0, 0 j end_if_arr if_arr_3_y: li $t1, 3 bne $t1, $t5, if_arr_e_y if_boxsum_0_y: lw $t4, 356($sp) lw $t5, 0($t4) li $t1, 0 bne $t5, $t1, if_boxsum_5_y lw $t4, 348($sp) sw $t1, 0($t4) lw $t4, 352($sp) li $t1, 4 sw $t1, 0($t4) lw $t4, 356($sp) li $t1, 3 sw $t1, 0($t4) li $v0, 1 j end_if_arr_y if_boxsum_5_y: li $t1, 5 bne $t5, $t1, if_boxsum_e_y lw $t4, 348($sp) sw $t1, 0($t4) lw $t4, 352($sp) li $t1, 4 sw $t1, 0($t4) lw $t4, 356($sp) li $t1, 3 sw $t1, 0($t4) li $v0, 1 j end_if_arr_y if_boxsum_e_y: li $v0, 0 j end_if_arr if_arr_e_y: lw $t4, 348($sp) li $t1, 0 sw $t1, 0($t4) lw $t4, 352($sp) li $t1, 4 sw $t1, 0($t4) li $v0, 1 end_if_arr_y: sw $a0, 340($sp) jr $ra ; Function for repainting boxes onto map after array modification RepaintBoxes: ; $a0 --> mem direction of map ;#show $a0 sw $ra, 344($sp) li $a1, 1 ; $a1 --> x li $a2, 1; $a2 --> y li $t1, 0 ; --> i for_i_rep: slti $t0, $t1, 9 beq $t0, $zero, end_for_i_rep li $t2, 0 ; --> j for_j_rep: slti $t0, $t2, 9 beq $t0, $zero, end_for_j_rep lw $a0, 340($sp) ;#show $a0 li $t0, 36 li $t3, 0 mult $t1, $t0 ; --> i * 36 mflo $t3 sll $t0, $t2, 2 ; --> j * 4 add $t3, $t0, $t3 add $t3, $a0, $t3 lw $t4, 0($t3) ;#show $t4 li $t0, 1 ;--> constant 1 sw $t1, 328($sp) ;--> store i var in stack sw $t2, 332($sp) ;--> store j var in stack ;#show $a0 sw $a0, 340($sp) if_box_repaint: li $t0, 3 bne $t4, $t0, end_ifs_rep jal Box end_ifs_rep: lw $t1, 328($sp) lw $t2, 332($sp) addi $a1, $a1, 7 addi $t2, $t2, 1 j for_j_rep end_for_j_rep: li $a1, 1 addi $a2, $a2, 3 addi $t1, $t1, 1 j for_i_rep end_for_i_rep: lw $ra, 344($sp) jr $ra ; Check if player or box is on top of a boxspot, if removed repaint boxspot checkBoxSpot: sw $ra, 344($sp) if_lvl_1: li $t3, 1 bne $s0, $t3, if_lvl_2 lvl_1_spot_1: li $t1, 8 ;--> x li $t2, 13;--> y bne $a1, $t1, lvl_1_spot_2 bne $a2, $t2, lvl_1_spot_2 jal sortBoxspotArray jal Boxspot j end_lvl_1_spots lvl_1_spot_2: li $t1, 22 ;--> x li $t2, 4;--> y bne $a1, $t1, lvl_1_spot_3 bne $a2, $t2, lvl_1_spot_3 jal sortBoxspotArray jal Boxspot j end_lvl_1_spots lvl_1_spot_3: li $t1, 43 ;--> x li $t2, 10;--> y bne $a1, $t1, lvl_1_spot_4 bne $a2, $t2, lvl_1_spot_4 jal sortBoxspotArray jal Boxspot j end_lvl_1_spots lvl_1_spot_4: li $t1, 29 ;--> x li $t2, 19;--> y bne $a1, $t1, end_lvl_1_spots bne $a2, $t2, end_lvl_1_spots jal sortBoxspotArray jal Boxspot end_lvl_1_spots: j end_if_lvl if_lvl_2: li $t3, 2 bne $s0, $t3, if_lvl_3 lvl_2_spot_1: li $t1, 50 ;--> x li $t2, 10;--> y bne $a1, $t1, lvl_2_spot_2 bne $a2, $t2, lvl_2_spot_2 jal sortBoxspotArray jal Boxspot j end_lvl_2_spots lvl_2_spot_2: li $t1, 50 ;--> x li $t2, 13;--> y bne $a1, $t1, lvl_2_spot_3 bne $a2, $t2, lvl_2_spot_3 jal sortBoxspotArray jal Boxspot j end_lvl_2_spots lvl_2_spot_3: li $t1, 50 ;--> x li $t2, 16;--> y bne $a1, $t1, end_lvl_2_spots bne $a2, $t2, end_lvl_2_spots jal sortBoxspotArray jal Boxspot end_lvl_2_spots: j end_if_lvl if_lvl_3: li $t3, 3 bne $s0, $t3, if_lvl_4 lvl_3_spot_1: li $t1, 8 ;--> x li $t2, 16;--> y bne $a1, $t1, lvl_3_spot_2 bne $a2, $t2, lvl_3_spot_2 jal sortBoxspotArray jal Boxspot j end_lvl_3_spots lvl_3_spot_2: li $t1, 15 ;--> x li $t2, 19;--> y bne $a1, $t1, lvl_3_spot_3 bne $a2, $t2, lvl_3_spot_3 jal sortBoxspotArray jal Boxspot j end_lvl_3_spots lvl_3_spot_3: li $t1, 15 ;--> x li $t2, 19;--> y bne $a1, $t1, lvl_3_spot_4 bne $a2, $t2, lvl_3_spot_4 jal sortBoxspotArray jal Boxspot j end_lvl_3_spots lvl_3_spot_4: li $t1, 22 ;--> x li $t2, 19;--> y bne $a1, $t1, lvl_3_spot_5 bne $a2, $t2, lvl_3_spot_5 jal sortBoxspotArray jal Boxspot j end_lvl_3_spots lvl_3_spot_5: li $t1, 29 ;--> x li $t2, 19;--> y bne $a1, $t1, end_lvl_3_spots bne $a2, $t2, end_lvl_3_spots jal sortBoxspotArray jal Boxspot end_lvl_3_spots: j end_if_lvl if_lvl_4: li $t3, 4 bne $s0, $t3, if_lvl_5 lvl_4_spot_1: li $t1, 8 ;--> x li $t2, 13;--> y bne $a1, $t1, lvl_4_spot_2 bne $a2, $t2, lvl_4_spot_2 jal sortBoxspotArray jal Boxspot j end_lvl_4_spots lvl_4_spot_2: li $t1, 8 ;--> x li $t2, 16;--> y bne $a1, $t1, lvl_4_spot_3 bne $a2, $t2, lvl_4_spot_3 jal sortBoxspotArray jal Boxspot j end_lvl_4_spots lvl_4_spot_3: li $t1, 8 ;--> x li $t2, 19;--> y bne $a1, $t1, end_lvl_4_spots bne $a2, $t2, end_lvl_4_spots jal sortBoxspotArray jal Boxspot end_lvl_4_spots: j end_if_lvl if_lvl_5: li $t3, 5 bne $s0, $t3, if_lvl_6 lvl_5_spot_1: li $t1, 29 ;--> x li $t2, 10;--> y bne $a1, $t1, lvl_5_spot_2 bne $a2, $t2, lvl_5_spot_2 jal sortBoxspotArray jal Boxspot j end_lvl_5_spots lvl_5_spot_2: li $t1, 36 ;--> x li $t2, 10;--> y bne $a1, $t1, lvl_5_spot_3 bne $a2, $t2, lvl_5_spot_3 jal sortBoxspotArray jal Boxspot j end_lvl_5_spots lvl_5_spot_3: li $t1, 22 ;--> x li $t2, 13;--> y bne $a1, $t1, lvl_5_spot_4 bne $a2, $t2, lvl_5_spot_4 jal sortBoxspotArray jal Boxspot j end_lvl_5_spots lvl_5_spot_4: li $t1, 29 ;--> x li $t2, 13;--> y bne $a1, $t1, lvl_5_spot_5 bne $a2, $t2, lvl_5_spot_5 jal sortBoxspotArray jal Boxspot j end_lvl_5_spots lvl_5_spot_5: li $t1, 36 ;--> x li $t2, 13;--> y bne $a1, $t1, end_lvl_5_spots bne $a2, $t2, end_lvl_5_spots jal sortBoxspotArray jal Boxspot end_lvl_5_spots: j end_if_lvl if_lvl_6: li $t3, 6 bne $s0, $t3, if_lvl_7 lvl_6_spot_1: li $t1, 29 ;--> x li $t2, 7;--> y ;j end_if_lvl bne $a1, $t1, lvl_6_spot_2 bne $a2, $t2, lvl_6_spot_2 jal sortBoxspotArray jal Boxspot j end_lvl_6_spots lvl_6_spot_2: li $t1, 22 ;--> x li $t2, 10;--> y bne $a1, $t1, lvl_6_spot_3 bne $a2, $t2, lvl_6_spot_3 jal sortBoxspotArray jal Boxspot j end_lvl_6_spots lvl_6_spot_3: li $t1, 36 ;--> x li $t2, 10;--> y bne $a1, $t1, lvl_6_spot_4 bne $a2, $t2, lvl_6_spot_4 jal sortBoxspotArray jal Boxspot j end_lvl_6_spots lvl_6_spot_4: li $t1, 29 ;--> x li $t2, 13;--> y bne $a1, $t1, end_lvl_6_spots bne $a2, $t2, end_lvl_6_spots jal sortBoxspotArray jal Boxspot end_lvl_6_spots: j end_if_lvl if_lvl_7: li $t3, 7 bne $s0, $t3, if_lvl_8 lvl_7_spot_1: li $t1, 22 ;--> x li $t2, 4;--> y ;j end_if_lvl bne $a1, $t1, lvl_7_spot_2 bne $a2, $t2, lvl_7_spot_2 jal sortBoxspotArray jal Boxspot j end_lvl_7_spots lvl_7_spot_2: li $t1, 29 ;--> x li $t2, 4;--> y bne $a1, $t1, lvl_7_spot_3 bne $a2, $t2, lvl_7_spot_3 jal sortBoxspotArray jal Boxspot j end_lvl_7_spots lvl_7_spot_3: li $t1, 29 ;--> x li $t2, 7;--> y bne $a1, $t1, lvl_7_spot_4 bne $a2, $t2, lvl_7_spot_4 jal sortBoxspotArray jal Boxspot j end_lvl_7_spots lvl_7_spot_4: li $t1, 36 ;--> x li $t2, 10;--> y bne $a1, $t1, end_lvl_7_spots bne $a2, $t2, end_lvl_7_spots jal sortBoxspotArray jal Boxspot end_lvl_7_spots: j end_if_lvl if_lvl_8: li $t3, 8 bne $s0, $t3, if_lvl_9 lvl_8_spot_1: li $t1, 15 ;--> x li $t2, 10 ;--> y ;j end_if_lvl bne $a1, $t1, lvl_8_spot_2 bne $a2, $t2, lvl_8_spot_2 jal sortBoxspotArray jal Boxspot j end_lvl_8_spots lvl_8_spot_2: li $t1, 22 ;--> x li $t2, 10 ;--> y bne $a1, $t1, lvl_8_spot_3 bne $a2, $t2, lvl_8_spot_3 jal sortBoxspotArray jal Boxspot j end_lvl_8_spots lvl_8_spot_3: li $t1, 36 ;--> x li $t2, 10 ;--> y bne $a1, $t1, lvl_8_spot_4 bne $a2, $t2, lvl_8_spot_4 jal sortBoxspotArray jal Boxspot j end_lvl_8_spots lvl_8_spot_4: li $t1, 36 ;--> x li $t2, 16 ;--> y bne $a1, $t1, end_lvl_8_spots bne $a2, $t2, end_lvl_8_spots jal sortBoxspotArray jal Boxspot end_lvl_8_spots: j end_if_lvl if_lvl_9: li $t3, 9 bne $s0, $t3, if_lvl_10 lvl_9_spot_1: li $t1, 29 ;--> x li $t2, 10 ;--> y ;j end_if_lvl bne $a1, $t1, lvl_9_spot_2 bne $a2, $t2, lvl_9_spot_2 jal sortBoxspotArray jal Boxspot j end_lvl_9_spots lvl_9_spot_2: li $t1, 36 ;--> x li $t2, 10 ;--> y bne $a1, $t1, lvl_9_spot_3 bne $a2, $t2, lvl_9_spot_3 jal sortBoxspotArray jal Boxspot j end_lvl_9_spots lvl_9_spot_3: li $t1, 29 ;--> x li $t2, 13 ;--> y bne $a1, $t1, lvl_9_spot_4 bne $a2, $t2, lvl_9_spot_4 jal sortBoxspotArray jal Boxspot j end_lvl_9_spots lvl_9_spot_4: li $t1, 36 ;--> x li $t2, 13 ;--> y bne $a1, $t1, end_lvl_9_spots bne $a2, $t2, end_lvl_9_spots jal sortBoxspotArray jal Boxspot end_lvl_9_spots: j end_if_lvl if_lvl_10: li $t3, 10 bne $s0, $t3, end_if_lvl lvl_10_spot_1: li $t1, 15 ;--> x li $t2, 7 ;--> y bne $a1, $t1, lvl_10_spot_2 bne $a2, $t2, lvl_10_spot_2 jal sortBoxspotArray jal Boxspot j end_lvl_10_spots lvl_10_spot_2: li $t1, 15 ;--> x li $t2, 10 ;--> y bne $a1, $t1, lvl_10_spot_3 bne $a2, $t2, lvl_10_spot_3 jal sortBoxspotArray jal Boxspot j end_lvl_8_spots lvl_10_spot_3: li $t1, 22 ;--> x li $t2, 10 ;--> y bne $a1, $t1, end_lvl_10_spots bne $a2, $t2, end_lvl_10_spots jal sortBoxspotArray jal Boxspot end_lvl_10_spots: j end_if_lvl end_if_lvl: lw $ra, 344($sp) jr $ra ; Function for box position modification inside array sortBoxspotArray: lw $a0, 340($sp) move $t1, $a1 ; --> x move $t2, $a2 ; --> y li $t4, 7 ; --> Divisor ; --> x-1/7 addi $t1, $t1, -1 div $t1, $t4 mflo $t1 ; --> y-1/3 li $t4, 3 addi $t2, $t2, -1 div $t2, $t4 mflo $t2 li $t4, 4 mult $t1, $t4 ;--> x * 4 mflo $t1 li $t4, 36 mult $t2, $t4 ;--> x * 36 mflo $t2 move $t4, $t1 add $t4, $t4, $t2 add $t4, $t4, $a0 li $t5, 5 sw $t5, 0($t4) sw $a0, 340($sp) jr $ra ; Function for loading next map to be played onto the stack generateMap: if_first_level: li $t0, 1 bne $s0, $t0, if_second_level ;--- row 0 li $t0, 1 sw $t0, 0($sp) li $t0, 1 sw $t0, 4($sp) li $t0, 2 sw $t0, 8($sp) li $t0, 2 sw $t0, 12($sp) li $t0, 2 sw $t0, 16($sp) li $t0, 1 sw $t0, 20($sp) li $t0, 1 sw $t0, 24($sp) li $t0, 1 sw $t0, 28($sp) li $t0, 1 sw $t0, 32($sp) ;--- row 1 li $t0, 1 sw $t0, 36($sp) li $t0, 1 sw $t0, 40($sp) li $t0, 2 sw $t0, 44($sp) li $t0, 5 sw $t0, 48($sp) li $t0, 2 sw $t0, 52($sp) li $t0, 1 sw $t0, 56($sp) li $t0, 1 sw $t0, 60($sp) li $t0, 1 sw $t0, 64($sp) li $t0, 1 sw $t0, 68($sp) ;--- row 2 li $t0, 1 sw $t0, 72($sp) li $t0, 1 sw $t0, 76($sp) li $t0, 2 sw $t0, 80($sp) li $t0, 0 sw $t0, 84($sp) li $t0, 2 sw $t0, 88($sp) li $t0, 2 sw $t0, 92($sp) li $t0, 2 sw $t0, 96($sp) li $t0, 2 sw $t0, 100($sp) li $t0, 1 sw $t0, 104($sp) ;--- row 3 li $t0, 2 sw $t0, 108($sp) li $t0, 2 sw $t0, 112($sp) li $t0, 2 sw $t0, 116($sp) li $t0, 3 ; --aqui sw $t0, 120($sp) li $t0, 0 sw $t0, 124($sp) li $t0, 3 ; --aqui sw $t0, 128($sp) li $t0, 5 sw $t0, 132($sp) li $t0, 2 sw $t0, 136($sp) li $t0, 1 sw $t0, 140($sp) ;---row 4 li $t0, 2 sw $t0, 144($sp) li $t0, 5 sw $t0, 148($sp) li $t0, 0 sw $t0, 152($sp) li $t0, 3 ;-- aqui sw $t0, 156($sp) li $t0, 4 sw $t0, 160($sp) li $t0, 2 sw $t0, 164($sp) li $t0, 2 sw $t0, 168($sp) li $t0, 2 sw $t0, 172($sp) li $t0, 1 sw $t0, 176($sp) ;--- row 5 li $t0, 2 sw $t0, 180($sp) li $t0, 2 sw $t0, 184($sp) li $t0, 2 sw $t0, 188($sp) li $t0, 2 sw $t0, 192($sp) li $t0, 3 ;-- aqui sw $t0, 196($sp) li $t0, 2 sw $t0, 200($sp) li $t0, 1 sw $t0, 204($sp) li $t0, 1 sw $t0, 208($sp) li $t0, 1 sw $t0, 212($sp) ;--- row 6 li $t0, 1 sw $t0, 216($sp) li $t0, 1 sw $t0, 220($sp) li $t0, 1 sw $t0, 224($sp) li $t0, 2 sw $t0, 228($sp) li $t0, 5 sw $t0, 232($sp) li $t0, 2 sw $t0, 236($sp) li $t0, 1 sw $t0, 240($sp) li $t0, 1 sw $t0, 244($sp) li $t0, 1 sw $t0, 248($sp) ;--- row 7 li $t0, 1 sw $t0, 252($sp) li $t0, 1 sw $t0, 256($sp) li $t0, 1 sw $t0, 260($sp) li $t0, 2 sw $t0, 264($sp) li $t0, 2 sw $t0, 268($sp) li $t0, 2 sw $t0, 272($sp) li $t0, 1 sw $t0, 276($sp) li $t0, 1 sw $t0, 280($sp) li $t0, 1 sw $t0, 284($sp) ;--- row 8 li $t0, 1 sw $t0, 288($sp) li $t0, 1 sw $t0, 292($sp) li $t0, 1 sw $t0, 296($sp) li $t0, 1 sw $t0, 300($sp) li $t0, 1 sw $t0, 304($sp) li $t0, 1 sw $t0, 308($sp) li $t0, 1 sw $t0, 312($sp) li $t0, 1 sw $t0, 316($sp) li $t0, 1 sw $t0, 320($sp) move $a0, $sp sw $a0, 340($sp) j end_levels if_second_level: li $t0, 2 bne $s0, $t0, if_third_level ;--- row 0 li $t0, 2 sw $t0, 0($sp) li $t0, 2 sw $t0, 4($sp) li $t0, 2 sw $t0, 8($sp) li $t0, 2 sw $t0, 12($sp) li $t0, 2 sw $t0, 16($sp) li $t0, 1 sw $t0, 20($sp) li $t0, 1 sw $t0, 24($sp) li $t0, 1 sw $t0, 28($sp) li $t0, 1 sw $t0, 32($sp) ;--- row 1 li $t0, 2 sw $t0, 36($sp) li $t0, 0 sw $t0, 40($sp) li $t0, 0 sw $t0, 44($sp) li $t0, 0 sw $t0, 48($sp) li $t0, 2 sw $t0, 52($sp) li $t0, 1 sw $t0, 56($sp) li $t0, 1 sw $t0, 60($sp) li $t0, 1 sw $t0, 64($sp) li $t0, 1 sw $t0, 68($sp) ;--- row 2 li $t0, 2 sw $t0, 72($sp) li $t0, 0 sw $t0, 76($sp) li $t0, 3 sw $t0, 80($sp) li $t0, 4 sw $t0, 84($sp) li $t0, 2 sw $t0, 88($sp) li $t0, 1 sw $t0, 92($sp) li $t0, 2 sw $t0, 96($sp) li $t0, 2 sw $t0, 100($sp) li $t0, 2 sw $t0, 104($sp) ;--- row 3 li $t0, 2 sw $t0, 108($sp) li $t0, 0 sw $t0, 112($sp) li $t0, 3 sw $t0, 116($sp) li $t0, 3 ; --aqui sw $t0, 120($sp) li $t0, 2 sw $t0, 124($sp) li $t0, 1 ; --aqui sw $t0, 128($sp) li $t0, 2 sw $t0, 132($sp) li $t0, 5 sw $t0, 136($sp) li $t0, 2 sw $t0, 140($sp) ;---row 4 li $t0, 2 sw $t0, 144($sp) li $t0, 2 sw $t0, 148($sp) li $t0, 2 sw $t0, 152($sp) li $t0, 0 ;-- aqui sw $t0, 156($sp) li $t0, 2 sw $t0, 160($sp) li $t0, 2 sw $t0, 164($sp) li $t0, 2 sw $t0, 168($sp) li $t0, 5 sw $t0, 172($sp) li $t0, 2 sw $t0, 176($sp) ;--- row 5 li $t0, 1 sw $t0, 180($sp) li $t0, 2 sw $t0, 184($sp) li $t0, 2 sw $t0, 188($sp) li $t0, 0 sw $t0, 192($sp) li $t0, 0 ;-- aqui sw $t0, 196($sp) li $t0, 0 sw $t0, 200($sp) li $t0, 0 sw $t0, 204($sp) li $t0, 5 sw $t0, 208($sp) li $t0, 2 sw $t0, 212($sp) ;--- row 6 li $t0, 1 sw $t0, 216($sp) li $t0, 2 sw $t0, 220($sp) li $t0, 0 sw $t0, 224($sp) li $t0, 0 sw $t0, 228($sp) li $t0, 0 sw $t0, 232($sp) li $t0, 2 sw $t0, 236($sp) li $t0, 0 sw $t0, 240($sp) li $t0, 0 sw $t0, 244($sp) li $t0, 2 sw $t0, 248($sp) ;--- row 7 li $t0, 1 sw $t0, 252($sp) li $t0, 2 sw $t0, 256($sp) li $t0, 0 sw $t0, 260($sp) li $t0, 0 sw $t0, 264($sp) li $t0, 0 sw $t0, 268($sp) li $t0, 2 sw $t0, 272($sp) li $t0, 2 sw $t0, 276($sp) li $t0, 2 sw $t0, 280($sp) li $t0, 2 sw $t0, 284($sp) ;--- row 8 li $t0, 1 sw $t0, 288($sp) li $t0, 2 sw $t0, 292($sp) li $t0, 2 sw $t0, 296($sp) li $t0, 2 sw $t0, 300($sp) li $t0, 2 sw $t0, 304($sp) li $t0, 2 sw $t0, 308($sp) li $t0, 1 sw $t0, 312($sp) li $t0, 1 sw $t0, 316($sp) li $t0, 1 sw $t0, 320($sp) move $a0, $sp sw $a0, 340($sp) j end_levels if_third_level: li $t0, 3 bne $s0, $t0, if_forth_level ;--- row 0 li $t0, 1 sw $t0, 0($sp) li $t0, 2 sw $t0, 4($sp) li $t0, 2 sw $t0, 8($sp) li $t0, 2 sw $t0, 12($sp) li $t0, 2 sw $t0, 16($sp) li $t0, 1 sw $t0, 20($sp) li $t0, 1 sw $t0, 24($sp) li $t0, 1 sw $t0, 28($sp) li $t0, 1 sw $t0, 32($sp) ;--- row 1 li $t0, 2 sw $t0, 36($sp) li $t0, 2 sw $t0, 40($sp) li $t0, 0 sw $t0, 44($sp) li $t0, 0 sw $t0, 48($sp) li $t0, 2 sw $t0, 52($sp) li $t0, 1 sw $t0, 56($sp) li $t0, 1 sw $t0, 60($sp) li $t0, 1 sw $t0, 64($sp) li $t0, 1 sw $t0, 68($sp) ;--- row 2 li $t0, 2 sw $t0, 72($sp) li $t0, 0 sw $t0, 76($sp) li $t0, 4 sw $t0, 80($sp) li $t0, 3 sw $t0, 84($sp) li $t0, 2 sw $t0, 88($sp) li $t0, 1 sw $t0, 92($sp) li $t0, 1 sw $t0, 96($sp) li $t0, 1 sw $t0, 100($sp) li $t0, 1 sw $t0, 104($sp) ;--- row 3 li $t0, 2 sw $t0, 108($sp) li $t0, 2 sw $t0, 112($sp) li $t0, 3 sw $t0, 116($sp) li $t0, 0 sw $t0, 120($sp) li $t0, 2 sw $t0, 124($sp) li $t0, 2 sw $t0, 128($sp) li $t0, 1 sw $t0, 132($sp) li $t0, 1 sw $t0, 136($sp) li $t0, 1 sw $t0, 140($sp) ;---row 4 li $t0, 2 sw $t0, 144($sp) li $t0, 2 sw $t0, 148($sp) li $t0, 0 sw $t0, 152($sp) li $t0, 3 sw $t0, 156($sp) li $t0, 0 sw $t0, 160($sp) li $t0, 2 sw $t0, 164($sp) li $t0, 1 sw $t0, 168($sp) li $t0, 1 sw $t0, 172($sp) li $t0, 1 sw $t0, 176($sp) ;--- row 5 li $t0, 2 sw $t0, 180($sp) li $t0, 5 sw $t0, 184($sp) li $t0, 3 sw $t0, 188($sp) li $t0, 0 sw $t0, 192($sp) li $t0, 0 ;-- aqui sw $t0, 196($sp) li $t0, 2 sw $t0, 200($sp) li $t0, 1 sw $t0, 204($sp) li $t0, 1 sw $t0, 208($sp) li $t0, 1 sw $t0, 212($sp) ;--- row 6 li $t0, 2 sw $t0, 216($sp) li $t0, 5 sw $t0, 220($sp) li $t0, 5 sw $t0, 224($sp) li $t0, 3 sw $t0, 228($sp) li $t0, 5 sw $t0, 232($sp) li $t0, 2 sw $t0, 236($sp) li $t0, 1 sw $t0, 240($sp) li $t0, 1 sw $t0, 244($sp) li $t0, 1 sw $t0, 248($sp) ;--- row 7 li $t0, 2 sw $t0, 252($sp) li $t0, 2 sw $t0, 256($sp) li $t0, 2 sw $t0, 260($sp) li $t0, 2 sw $t0, 264($sp) li $t0, 2 sw $t0, 268($sp) li $t0, 2 sw $t0, 272($sp) li $t0, 1 sw $t0, 276($sp) li $t0, 1 sw $t0, 280($sp) li $t0, 1 sw $t0, 284($sp) ;--- row 8 li $t0, 1 sw $t0, 288($sp) li $t0, 1 sw $t0, 292($sp) li $t0, 1 sw $t0, 296($sp) li $t0, 1 sw $t0, 300($sp) li $t0, 1 sw $t0, 304($sp) li $t0, 1 sw $t0, 308($sp) li $t0, 1 sw $t0, 312($sp) li $t0, 1 sw $t0, 316($sp) li $t0, 1 sw $t0, 320($sp) move $a0, $sp sw $a0, 340($sp) j end_levels if_forth_level: li $t0, 4 bne $s0, $t0, if_fifth_level ;--- row 0 li $t0, 1 sw $t0, 0($sp) li $t0, 2 sw $t0, 4($sp) li $t0, 2 sw $t0, 8($sp) li $t0, 2 sw $t0, 12($sp) li $t0, 2 sw $t0, 16($sp) li $t0, 1 sw $t0, 20($sp) li $t0, 1 sw $t0, 24($sp) li $t0, 1 sw $t0, 28($sp) li $t0, 1 sw $t0, 32($sp) ;--- row 1 li $t0, 1 sw $t0, 36($sp) li $t0, 2 sw $t0, 40($sp) li $t0, 4 sw $t0, 44($sp) li $t0, 0 sw $t0, 48($sp) li $t0, 2 sw $t0, 52($sp) li $t0, 2 sw $t0, 56($sp) li $t0, 2 sw $t0, 60($sp) li $t0, 1 sw $t0, 64($sp) li $t0, 1 sw $t0, 68($sp) ;--- row 2 li $t0, 1 sw $t0, 72($sp) li $t0, 2 sw $t0, 76($sp) li $t0, 0 sw $t0, 80($sp) li $t0, 3 sw $t0, 84($sp) li $t0, 0 sw $t0, 88($sp) li $t0, 0 sw $t0, 92($sp) li $t0, 2 sw $t0, 96($sp) li $t0, 1 sw $t0, 100($sp) li $t0, 1 sw $t0, 104($sp) ;--- row 3 li $t0, 2 sw $t0, 108($sp) li $t0, 2 sw $t0, 112($sp) li $t0, 2 sw $t0, 116($sp) li $t0, 0 ; --aqui sw $t0, 120($sp) li $t0, 2 sw $t0, 124($sp) li $t0, 0 ; --aqui sw $t0, 128($sp) li $t0, 2 sw $t0, 132($sp) li $t0, 2 sw $t0, 136($sp) li $t0, 1 sw $t0, 140($sp) ;---row 4 li $t0, 2 sw $t0, 144($sp) li $t0, 5 sw $t0, 148($sp) li $t0, 2 sw $t0, 152($sp) li $t0, 0 ;-- aqui sw $t0, 156($sp) li $t0, 2 sw $t0, 160($sp) li $t0, 0 sw $t0, 164($sp) li $t0, 0 sw $t0, 168($sp) li $t0, 2 sw $t0, 172($sp) li $t0, 1 sw $t0, 176($sp) ;--- row 5 li $t0, 2 sw $t0, 180($sp) li $t0, 5 sw $t0, 184($sp) li $t0, 3 sw $t0, 188($sp) li $t0, 0 sw $t0, 192($sp) li $t0, 0 ;-- aqui sw $t0, 196($sp) li $t0, 2 sw $t0, 200($sp) li $t0, 0 sw $t0, 204($sp) li $t0, 2 sw $t0, 208($sp) li $t0, 1 sw $t0, 212($sp) ;--- row 6 li $t0, 2 sw $t0, 216($sp) li $t0, 5 sw $t0, 220($sp) li $t0, 0 sw $t0, 224($sp) li $t0, 0 sw $t0, 228($sp) li $t0, 0 sw $t0, 232($sp) li $t0, 3 sw $t0, 236($sp) li $t0, 0 sw $t0, 240($sp) li $t0, 2 sw $t0, 244($sp) li $t0, 1 sw $t0, 248($sp) ;--- row 7 li $t0, 2 sw $t0, 252($sp) li $t0, 2 sw $t0, 256($sp) li $t0, 2 sw $t0, 260($sp) li $t0, 2 sw $t0, 264($sp) li $t0, 2 sw $t0, 268($sp) li $t0, 2 sw $t0, 272($sp) li $t0, 2 sw $t0, 276($sp) li $t0, 2 sw $t0, 280($sp) li $t0, 1 sw $t0, 284($sp) ;--- row 8 li $t0, 1 sw $t0, 288($sp) li $t0, 1 sw $t0, 292($sp) li $t0, 1 sw $t0, 296($sp) li $t0, 1 sw $t0, 300($sp) li $t0, 1 sw $t0, 304($sp) li $t0, 1 sw $t0, 308($sp) li $t0, 1 sw $t0, 312($sp) li $t0, 1 sw $t0, 316($sp) li $t0, 1 sw $t0, 320($sp) move $a0, $sp sw $a0, 340($sp) j end_levels if_fifth_level: li $t0, 5 bne $s0, $t0, if_sixth_level ;--- row 0 li $t0, 1 sw $t0, 0($sp) li $t0, 1 sw $t0, 4($sp) li $t0, 2 sw $t0, 8($sp) li $t0, 2 sw $t0, 12($sp) li $t0, 2 sw $t0, 16($sp) li $t0, 2 sw $t0, 20($sp) li $t0, 2 sw $t0, 24($sp) li $t0, 2 sw $t0, 28($sp) li $t0, 1 sw $t0, 32($sp) ;--- row 1 li $t0, 1 sw $t0, 36($sp) li $t0, 1 sw $t0, 40($sp) li $t0, 2 sw $t0, 44($sp) li $t0, 0 sw $t0, 48($sp) li $t0, 0 sw $t0, 52($sp) li $t0, 0 sw $t0, 56($sp) li $t0, 0 sw $t0, 60($sp) li $t0, 2 sw $t0, 64($sp) li $t0, 1 sw $t0, 68($sp) ;--- row 2 li $t0, 2 sw $t0, 72($sp) li $t0, 2 sw $t0, 76($sp) li $t0, 2 sw $t0, 80($sp) li $t0, 3 sw $t0, 84($sp) li $t0, 3 sw $t0, 88($sp) li $t0, 3 sw $t0, 92($sp) li $t0, 0 sw $t0, 96($sp) li $t0, 2 sw $t0, 100($sp) li $t0, 1 sw $t0, 104($sp) ;--- row 3 li $t0, 2 sw $t0, 108($sp) li $t0, 4 sw $t0, 112($sp) li $t0, 0 sw $t0, 116($sp) li $t0, 3 ; --aqui sw $t0, 120($sp) li $t0, 5 sw $t0, 124($sp) li $t0, 5 ; --aqui sw $t0, 128($sp) li $t0, 0 sw $t0, 132($sp) li $t0, 2 sw $t0, 136($sp) li $t0, 1 sw $t0, 140($sp) ;---row 4 li $t0, 2 sw $t0, 144($sp) li $t0, 0 sw $t0, 148($sp) li $t0, 3 sw $t0, 152($sp) li $t0, 5 ;-- aqui sw $t0, 156($sp) li $t0, 5 sw $t0, 160($sp) li $t0, 5 sw $t0, 164($sp) li $t0, 2 sw $t0, 168($sp) li $t0, 2 sw $t0, 172($sp) li $t0, 1 sw $t0, 176($sp) ;--- row 5 li $t0, 2 sw $t0, 180($sp) li $t0, 2 sw $t0, 184($sp) li $t0, 2 sw $t0, 188($sp) li $t0, 2 sw $t0, 192($sp) li $t0, 0 ;-- aqui sw $t0, 196($sp) li $t0, 0 sw $t0, 200($sp) li $t0, 2 sw $t0, 204($sp) li $t0, 1 sw $t0, 208($sp) li $t0, 1 sw $t0, 212($sp) ;--- row 6 li $t0, 1 sw $t0, 216($sp) li $t0, 1 sw $t0, 220($sp) li $t0, 1 sw $t0, 224($sp) li $t0, 2 sw $t0, 228($sp) li $t0, 2 sw $t0, 232($sp) li $t0, 2 sw $t0, 236($sp) li $t0, 2 sw $t0, 240($sp) li $t0, 1 sw $t0, 244($sp) li $t0, 1 sw $t0, 248($sp) ;--- row 7 li $t0, 1 sw $t0, 252($sp) li $t0, 1 sw $t0, 256($sp) li $t0, 1 sw $t0, 260($sp) li $t0, 1 sw $t0, 264($sp) li $t0, 1 sw $t0, 268($sp) li $t0, 1 sw $t0, 272($sp) li $t0, 1 sw $t0, 276($sp) li $t0, 1 sw $t0, 280($sp) li $t0, 1 sw $t0, 284($sp) ;--- row 8 li $t0, 1 sw $t0, 288($sp) li $t0, 1 sw $t0, 292($sp) li $t0, 1 sw $t0, 296($sp) li $t0, 1 sw $t0, 300($sp) li $t0, 1 sw $t0, 304($sp) li $t0, 1 sw $t0, 308($sp) li $t0, 1 sw $t0, 312($sp) li $t0, 1 sw $t0, 316($sp) li $t0, 1 sw $t0, 320($sp) move $a0, $sp sw $a0, 340($sp) j end_levels if_sixth_level: li $t0, 6 bne $s0, $t0, if_seventh_level ;--- row 0 li $t0, 1 sw $t0, 0($sp) li $t0, 1 sw $t0, 4($sp) li $t0, 2 sw $t0, 8($sp) li $t0, 2 sw $t0, 12($sp) li $t0, 2 sw $t0, 16($sp) li $t0, 2 sw $t0, 20($sp) li $t0, 2 sw $t0, 24($sp) li $t0, 1 sw $t0, 28($sp) li $t0, 1 sw $t0, 32($sp) ;--- row 1 li $t0, 2 sw $t0, 36($sp) li $t0, 2 sw $t0, 40($sp) li $t0, 2 sw $t0, 44($sp) li $t0, 0 sw $t0, 48($sp) li $t0, 0 sw $t0, 52($sp) li $t0, 4 sw $t0, 56($sp) li $t0, 2 sw $t0, 60($sp) li $t0, 1 sw $t0, 64($sp) li $t0, 1 sw $t0, 68($sp) ;--- row 2 li $t0, 2 sw $t0, 72($sp) li $t0, 0 sw $t0, 76($sp) li $t0, 0 sw $t0, 80($sp) li $t0, 3 sw $t0, 84($sp) li $t0, 5 sw $t0, 88($sp) li $t0, 0 sw $t0, 92($sp) li $t0, 2 sw $t0, 96($sp) li $t0, 2 sw $t0, 100($sp) li $t0, 1 sw $t0, 104($sp) ;--- row 3 li $t0, 2 sw $t0, 108($sp) li $t0, 0 sw $t0, 112($sp) li $t0, 0 sw $t0, 116($sp) li $t0, 5 ; --aqui sw $t0, 120($sp) li $t0, 3 sw $t0, 124($sp) li $t0, 5 ; --aqui sw $t0, 128($sp) li $t0, 0 sw $t0, 132($sp) li $t0, 2 sw $t0, 136($sp) li $t0, 1 sw $t0, 140($sp) ;---row 4 li $t0, 2 sw $t0, 144($sp) li $t0, 2 sw $t0, 148($sp) li $t0, 2 sw $t0, 152($sp) li $t0, 0 ;-- aqui sw $t0, 156($sp) li $t0, 3 sw $t0, 160($sp) li $t0, 3 sw $t0, 164($sp) li $t0, 0 sw $t0, 168($sp) li $t0, 2 sw $t0, 172($sp) li $t0, 1 sw $t0, 176($sp) ;--- row 5 li $t0, 1 sw $t0, 180($sp) li $t0, 1 sw $t0, 184($sp) li $t0, 2 sw $t0, 188($sp) li $t0, 0 sw $t0, 192($sp) li $t0, 0 ;-- aqui sw $t0, 196($sp) li $t0, 0 sw $t0, 200($sp) li $t0, 2 sw $t0, 204($sp) li $t0, 2 sw $t0, 208($sp) li $t0, 1 sw $t0, 212($sp) ;--- row 6 li $t0, 1 sw $t0, 216($sp) li $t0, 1 sw $t0, 220($sp) li $t0, 2 sw $t0, 224($sp) li $t0, 2 sw $t0, 228($sp) li $t0, 2 sw $t0, 232($sp) li $t0, 2 sw $t0, 236($sp) li $t0, 2 sw $t0, 240($sp) li $t0, 1 sw $t0, 244($sp) li $t0, 1 sw $t0, 248($sp) ;--- row 7 li $t0, 1 sw $t0, 252($sp) li $t0, 1 sw $t0, 256($sp) li $t0, 1 sw $t0, 260($sp) li $t0, 1 sw $t0, 264($sp) li $t0, 1 sw $t0, 268($sp) li $t0, 1 sw $t0, 272($sp) li $t0, 1 sw $t0, 276($sp) li $t0, 1 sw $t0, 280($sp) li $t0, 1 sw $t0, 284($sp) ;--- row 8 li $t0, 1 sw $t0, 288($sp) li $t0, 1 sw $t0, 292($sp) li $t0, 1 sw $t0, 296($sp) li $t0, 1 sw $t0, 300($sp) li $t0, 1 sw $t0, 304($sp) li $t0, 1 sw $t0, 308($sp) li $t0, 1 sw $t0, 312($sp) li $t0, 1 sw $t0, 316($sp) li $t0, 1 sw $t0, 320($sp) move $a0, $sp sw $a0, 340($sp) j end_levels if_seventh_level: li $t0, 7 bne $s0, $t0, if_eigth_level ;--- row 0 li $t0, 1 sw $t0, 0($sp) li $t0, 1 sw $t0, 4($sp) li $t0, 2 sw $t0, 8($sp) li $t0, 2 sw $t0, 12($sp) li $t0, 2 sw $t0, 16($sp) li $t0, 2 sw $t0, 20($sp) li $t0, 1 sw $t0, 24($sp) li $t0, 1 sw $t0, 28($sp) li $t0, 1 sw $t0, 32($sp) ;--- row 1 li $t0, 1 sw $t0, 36($sp) li $t0, 1 sw $t0, 40($sp) li $t0, 2 sw $t0, 44($sp) li $t0, 5 sw $t0, 48($sp) li $t0, 5 sw $t0, 52($sp) li $t0, 2 sw $t0, 56($sp) li $t0, 1 sw $t0, 60($sp) li $t0, 1 sw $t0, 64($sp) li $t0, 1 sw $t0, 68($sp) ;--- row 2 li $t0, 1 sw $t0, 72($sp) li $t0, 2 sw $t0, 76($sp) li $t0, 2 sw $t0, 80($sp) li $t0, 0 sw $t0, 84($sp) li $t0, 5 sw $t0, 88($sp) li $t0, 2 sw $t0, 92($sp) li $t0, 2 sw $t0, 96($sp) li $t0, 1 sw $t0, 100($sp) li $t0, 1 sw $t0, 104($sp) ;--- row 3 li $t0, 1 sw $t0, 108($sp) li $t0, 2 sw $t0, 112($sp) li $t0, 0 sw $t0, 116($sp) li $t0, 0 ; --aqui sw $t0, 120($sp) li $t0, 3 sw $t0, 124($sp) li $t0, 5 ; --aqui sw $t0, 128($sp) li $t0, 2 sw $t0, 132($sp) li $t0, 1 sw $t0, 136($sp) li $t0, 1 sw $t0, 140($sp) ;---row 4 li $t0, 2 sw $t0, 144($sp) li $t0, 2 sw $t0, 148($sp) li $t0, 0 sw $t0, 152($sp) li $t0, 3 ;-- aqui sw $t0, 156($sp) li $t0, 0 sw $t0, 160($sp) li $t0, 0 sw $t0, 164($sp) li $t0, 2 sw $t0, 168($sp) li $t0, 2 sw $t0, 172($sp) li $t0, 1 sw $t0, 176($sp) ;--- row 5 li $t0, 2 sw $t0, 180($sp) li $t0, 0 sw $t0, 184($sp) li $t0, 0 sw $t0, 188($sp) li $t0, 2 sw $t0, 192($sp) li $t0, 3 ;-- aqui sw $t0, 196($sp) li $t0, 3 sw $t0, 200($sp) li $t0, 0 sw $t0, 204($sp) li $t0, 2 sw $t0, 208($sp) li $t0, 1 sw $t0, 212($sp) ;--- row 6 li $t0, 2 sw $t0, 216($sp) li $t0, 0 sw $t0, 220($sp) li $t0, 0 sw $t0, 224($sp) li $t0, 4 sw $t0, 228($sp) li $t0, 0 sw $t0, 232($sp) li $t0, 0 sw $t0, 236($sp) li $t0, 0 sw $t0, 240($sp) li $t0, 2 sw $t0, 244($sp) li $t0, 1 sw $t0, 248($sp) ;--- row 7 li $t0, 2 sw $t0, 252($sp) li $t0, 2 sw $t0, 256($sp) li $t0, 2 sw $t0, 260($sp) li $t0, 2 sw $t0, 264($sp) li $t0, 2 sw $t0, 268($sp) li $t0, 2 sw $t0, 272($sp) li $t0, 2 sw $t0, 276($sp) li $t0, 2 sw $t0, 280($sp) li $t0, 1 sw $t0, 284($sp) ;--- row 8 li $t0, 1 sw $t0, 288($sp) li $t0, 1 sw $t0, 292($sp) li $t0, 1 sw $t0, 296($sp) li $t0, 1 sw $t0, 300($sp) li $t0, 1 sw $t0, 304($sp) li $t0, 1 sw $t0, 308($sp) li $t0, 1 sw $t0, 312($sp) li $t0, 1 sw $t0, 316($sp) li $t0, 1 sw $t0, 320($sp) move $a0, $sp sw $a0, 340($sp) j end_levels if_eigth_level: li $t0, 8 bne $s0, $t0, if_ninth_level ;--- row 0 li $t0, 1 sw $t0, 0($sp) li $t0, 2 sw $t0, 4($sp) li $t0, 2 sw $t0, 8($sp) li $t0, 2 sw $t0, 12($sp) li $t0, 2 sw $t0, 16($sp) li $t0, 2 sw $t0, 20($sp) li $t0, 1 sw $t0, 24($sp) li $t0, 1 sw $t0, 28($sp) li $t0, 1 sw $t0, 32($sp) ;--- row 1 li $t0, 1 sw $t0, 36($sp) li $t0, 2 sw $t0, 40($sp) li $t0, 0 sw $t0, 44($sp) li $t0, 4 sw $t0, 48($sp) li $t0, 0 sw $t0, 52($sp) li $t0, 2 sw $t0, 56($sp) li $t0, 2 sw $t0, 60($sp) li $t0, 2 sw $t0, 64($sp) li $t0, 1 sw $t0, 68($sp) ;--- row 2 li $t0, 2 sw $t0, 72($sp) li $t0, 2 sw $t0, 76($sp) li $t0, 0 sw $t0, 80($sp) li $t0, 2 sw $t0, 84($sp) li $t0, 3 sw $t0, 88($sp) li $t0, 0 sw $t0, 92($sp) li $t0, 0 sw $t0, 96($sp) li $t0, 2 sw $t0, 100($sp) li $t0, 1 sw $t0, 104($sp) ;--- row 3 li $t0, 2 sw $t0, 108($sp) li $t0, 0 sw $t0, 112($sp) li $t0, 3 sw $t0, 116($sp) li $t0, 5 ; --aqui sw $t0, 120($sp) li $t0, 0 sw $t0, 124($sp) li $t0, 5 ; --aqui sw $t0, 128($sp) li $t0, 0 sw $t0, 132($sp) li $t0, 2 sw $t0, 136($sp) li $t0, 1 sw $t0, 140($sp) ;---row 4 li $t0, 2 sw $t0, 144($sp) li $t0, 0 sw $t0, 148($sp) li $t0, 0 sw $t0, 152($sp) li $t0, 3 ;-- aqui sw $t0, 156($sp) li $t0, 3 sw $t0, 160($sp) li $t0, 0 sw $t0, 164($sp) li $t0, 2 sw $t0, 168($sp) li $t0, 2 sw $t0, 172($sp) li $t0, 1 sw $t0, 176($sp) ;--- row 5 li $t0, 2 sw $t0, 180($sp) li $t0, 2 sw $t0, 184($sp) li $t0, 2 sw $t0, 188($sp) li $t0, 0 sw $t0, 192($sp) li $t0, 2 ;-- aqui sw $t0, 196($sp) li $t0, 5 sw $t0, 200($sp) li $t0, 2 sw $t0, 204($sp) li $t0, 1 sw $t0, 208($sp) li $t0, 1 sw $t0, 212($sp) ;--- row 6 li $t0, 1 sw $t0, 216($sp) li $t0, 1 sw $t0, 220($sp) li $t0, 2 sw $t0, 224($sp) li $t0, 0 sw $t0, 228($sp) li $t0, 0 sw $t0, 232($sp) li $t0, 0 sw $t0, 236($sp) li $t0, 2 sw $t0, 240($sp) li $t0, 1 sw $t0, 244($sp) li $t0, 1 sw $t0, 248($sp) ;--- row 7 li $t0, 1 sw $t0, 252($sp) li $t0, 1 sw $t0, 256($sp) li $t0, 2 sw $t0, 260($sp) li $t0, 2 sw $t0, 264($sp) li $t0, 2 sw $t0, 268($sp) li $t0, 2 sw $t0, 272($sp) li $t0, 2 sw $t0, 276($sp) li $t0, 1 sw $t0, 280($sp) li $t0, 1 sw $t0, 284($sp) ;--- row 8 li $t0, 1 sw $t0, 288($sp) li $t0, 1 sw $t0, 292($sp) li $t0, 1 sw $t0, 296($sp) li $t0, 1 sw $t0, 300($sp) li $t0, 1 sw $t0, 304($sp) li $t0, 1 sw $t0, 308($sp) li $t0, 1 sw $t0, 312($sp) li $t0, 1 sw $t0, 316($sp) li $t0, 1 sw $t0, 320($sp) move $a0, $sp sw $a0, 340($sp) j end_levels if_ninth_level: li $t0, 9 bne $s0, $t0, if_tenth_level ;--- row 0 li $t0, 2 sw $t0, 0($sp) li $t0, 2 sw $t0, 4($sp) li $t0, 2 sw $t0, 8($sp) li $t0, 2 sw $t0, 12($sp) li $t0, 2 sw $t0, 16($sp) li $t0, 2 sw $t0, 20($sp) li $t0, 1 sw $t0, 24($sp) li $t0, 1 sw $t0, 28($sp) li $t0, 1 sw $t0, 32($sp) ;--- row 1 li $t0, 2 sw $t0, 36($sp) li $t0, 0 sw $t0, 40($sp) li $t0, 0 sw $t0, 44($sp) li $t0, 0 sw $t0, 48($sp) li $t0, 0 sw $t0, 52($sp) li $t0, 2 sw $t0, 56($sp) li $t0, 1 sw $t0, 60($sp) li $t0, 1 sw $t0, 64($sp) li $t0, 1 sw $t0, 68($sp) ;--- row 2 li $t0, 2 sw $t0, 72($sp) li $t0, 0 sw $t0, 76($sp) li $t0, 3 sw $t0, 80($sp) li $t0, 3 sw $t0, 84($sp) li $t0, 3 sw $t0, 88($sp) li $t0, 2 sw $t0, 92($sp) li $t0, 2 sw $t0, 96($sp) li $t0, 1 sw $t0, 100($sp) li $t0, 1 sw $t0, 104($sp) ;--- row 3 li $t0, 2 sw $t0, 108($sp) li $t0, 0 sw $t0, 112($sp) li $t0, 0 sw $t0, 116($sp) li $t0, 2 ; --aqui sw $t0, 120($sp) li $t0, 5 sw $t0, 124($sp) li $t0, 5 ; --aqui sw $t0, 128($sp) li $t0, 2 sw $t0, 132($sp) li $t0, 2 sw $t0, 136($sp) li $t0, 2 sw $t0, 140($sp) ;---row 4 li $t0, 2 sw $t0, 144($sp) li $t0, 2 sw $t0, 148($sp) li $t0, 0 sw $t0, 152($sp) li $t0, 0 ;-- aqui sw $t0, 156($sp) li $t0, 5 sw $t0, 160($sp) li $t0, 5 sw $t0, 164($sp) li $t0, 3 sw $t0, 168($sp) li $t0, 0 sw $t0, 172($sp) li $t0, 2 sw $t0, 176($sp) ;--- row 5 li $t0, 1 sw $t0, 180($sp) li $t0, 2 sw $t0, 184($sp) li $t0, 0 sw $t0, 188($sp) li $t0, 4 sw $t0, 192($sp) li $t0, 0 ;-- aqui sw $t0, 196($sp) li $t0, 0 sw $t0, 200($sp) li $t0, 0 sw $t0, 204($sp) li $t0, 0 sw $t0, 208($sp) li $t0, 2 sw $t0, 212($sp) ;--- row 6 li $t0, 1 sw $t0, 216($sp) li $t0, 2 sw $t0, 220($sp) li $t0, 2 sw $t0, 224($sp) li $t0, 2 sw $t0, 228($sp) li $t0, 2 sw $t0, 232($sp) li $t0, 2 sw $t0, 236($sp) li $t0, 2 sw $t0, 240($sp) li $t0, 2 sw $t0, 244($sp) li $t0, 2 sw $t0, 248($sp) ;--- row 7 li $t0, 1 sw $t0, 252($sp) li $t0, 1 sw $t0, 256($sp) li $t0, 1 sw $t0, 260($sp) li $t0, 1 sw $t0, 264($sp) li $t0, 1 sw $t0, 268($sp) li $t0, 1 sw $t0, 272($sp) li $t0, 1 sw $t0, 276($sp) li $t0, 1 sw $t0, 280($sp) li $t0, 1 sw $t0, 284($sp) ;--- row 8 li $t0, 1 sw $t0, 288($sp) li $t0, 1 sw $t0, 292($sp) li $t0, 1 sw $t0, 296($sp) li $t0, 1 sw $t0, 300($sp) li $t0, 1 sw $t0, 304($sp) li $t0, 1 sw $t0, 308($sp) li $t0, 1 sw $t0, 312($sp) li $t0, 1 sw $t0, 316($sp) li $t0, 1 sw $t0, 320($sp) move $a0, $sp sw $a0, 340($sp) j end_levels if_tenth_level: li $t0, 10 bne $s0, $t0, end_levels ;--- row 0 li $t0, 1 sw $t0, 0($sp) li $t0, 2 sw $t0, 4($sp) li $t0, 2 sw $t0, 8($sp) li $t0, 2 sw $t0, 12($sp) li $t0, 2 sw $t0, 16($sp) li $t0, 2 sw $t0, 20($sp) li $t0, 2 sw $t0, 24($sp) li $t0, 1 sw $t0, 28($sp) li $t0, 1 sw $t0, 32($sp) ;--- row 1 li $t0, 1 sw $t0, 36($sp) li $t0, 2 sw $t0, 40($sp) li $t0, 0 sw $t0, 44($sp) li $t0, 0 sw $t0, 48($sp) li $t0, 0 sw $t0, 52($sp) li $t0, 0 sw $t0, 56($sp) li $t0, 2 sw $t0, 60($sp) li $t0, 2 sw $t0, 64($sp) li $t0, 1 sw $t0, 68($sp) ;--- row 2 li $t0, 2 sw $t0, 72($sp) li $t0, 2 sw $t0, 76($sp) li $t0, 5 sw $t0, 80($sp) li $t0, 2 sw $t0, 84($sp) li $t0, 2 sw $t0, 88($sp) li $t0, 3 sw $t0, 92($sp) li $t0, 0 sw $t0, 96($sp) li $t0, 2 sw $t0, 100($sp) li $t0, 1 sw $t0, 104($sp) ;--- row 3 li $t0, 2 sw $t0, 108($sp) li $t0, 0 sw $t0, 112($sp) li $t0, 5 sw $t0, 116($sp) li $t0, 5 ; --aqui sw $t0, 120($sp) li $t0, 3 sw $t0, 124($sp) li $t0, 0 ; --aqui sw $t0, 128($sp) li $t0, 0 sw $t0, 132($sp) li $t0, 2 sw $t0, 136($sp) li $t0, 1 sw $t0, 140($sp) ;---row 4 li $t0, 2 sw $t0, 144($sp) li $t0, 0 sw $t0, 148($sp) li $t0, 0 sw $t0, 152($sp) li $t0, 2 ;-- aqui sw $t0, 156($sp) li $t0, 3 sw $t0, 160($sp) li $t0, 0 sw $t0, 164($sp) li $t0, 0 sw $t0, 168($sp) li $t0, 2 sw $t0, 172($sp) li $t0, 1 sw $t0, 176($sp) ;--- row 5 li $t0, 2 sw $t0, 180($sp) li $t0, 0 sw $t0, 184($sp) li $t0, 0 sw $t0, 188($sp) li $t0, 4 sw $t0, 192($sp) li $t0, 0 ;-- aqui sw $t0, 196($sp) li $t0, 2 sw $t0, 200($sp) li $t0, 2 sw $t0, 204($sp) li $t0, 2 sw $t0, 208($sp) li $t0, 1 sw $t0, 212($sp) ;--- row 6 li $t0, 2 sw $t0, 216($sp) li $t0, 2 sw $t0, 220($sp) li $t0, 2 sw $t0, 224($sp) li $t0, 2 sw $t0, 228($sp) li $t0, 2 sw $t0, 232($sp) li $t0, 2 sw $t0, 236($sp) li $t0, 1 sw $t0, 240($sp) li $t0, 1 sw $t0, 244($sp) li $t0, 1 sw $t0, 248($sp) ;--- row 7 li $t0, 1 sw $t0, 252($sp) li $t0, 1 sw $t0, 256($sp) li $t0, 1 sw $t0, 260($sp) li $t0, 1 sw $t0, 264($sp) li $t0, 1 sw $t0, 268($sp) li $t0, 1 sw $t0, 272($sp) li $t0, 1 sw $t0, 276($sp) li $t0, 1 sw $t0, 280($sp) li $t0, 1 sw $t0, 284($sp) ;--- row 8 li $t0, 1 sw $t0, 288($sp) li $t0, 1 sw $t0, 292($sp) li $t0, 1 sw $t0, 296($sp) li $t0, 1 sw $t0, 300($sp) li $t0, 1 sw $t0, 304($sp) li $t0, 1 sw $t0, 308($sp) li $t0, 1 sw $t0, 312($sp) li $t0, 1 sw $t0, 316($sp) li $t0, 1 sw $t0, 320($sp) move $a0, $sp sw $a0, 340($sp) j end_levels end_levels: jr $ra
17.634164
75
0.449344
1109971df7d34733493ef7920700b6ce561e4961
794
asm
Assembly
programs/oeis/014/A014393.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/014/A014393.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/014/A014393.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A014393: Final 2 digits of 9^n. ; 1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89,1,9,81,29,61,49,41,69,21,89 mov $1,1 lpb $0,1 sub $0,1 mul $1,9 mod $1,100 lpe
79.4
701
0.633501
7e6e938f7c9e3055a516fbf2cd946c9165392bc0
317
asm
Assembly
programs/oeis/329/A329194.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/329/A329194.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/329/A329194.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A329194: a(n) = floor(log_3(n^2)) = floor(2 log_3(n)) ; 0,1,2,2,2,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8 add $0,1 pow $0,2 lpb $0 div $0,3 add $1,1 lpe sub $1,1
28.818182
199
0.51735
639d8e8790b3af089b376c43aad1e969097eaa51
2,275
nasm
Assembly
Assignment_2/bind_reverse.nasm
SLAE-705/SLAE-646
0093536c5d9250643b4330a1125cf9e1eecc169f
[ "MIT" ]
null
null
null
Assignment_2/bind_reverse.nasm
SLAE-705/SLAE-646
0093536c5d9250643b4330a1125cf9e1eecc169f
[ "MIT" ]
null
null
null
Assignment_2/bind_reverse.nasm
SLAE-705/SLAE-646
0093536c5d9250643b4330a1125cf9e1eecc169f
[ "MIT" ]
null
null
null
global _start section .text _start: ;edx has the IP-Adress in Big Endian ;edi has the port number in Little Endian ;Resetting the registers xor eax, eax xor ebx, ebx xor ecx, ecx xor esi, esi ;Setting the parameters for the socket-function push eax ;Third parameter(INADDR_ANY=0) push 1 ;Second parameter(SOCKSTREAM=1) push 2 ;First parameter(AF_INET=2) ;Syscall of socket mov al,0x66 mov bl,1 mov ecx, esp int 0x80 mov esi, eax ;Save the server_socket in varible socket_server ;Preparation for connect-systemcall xor eax,eax mov eax, edx ;get the ip from edx in Big Endian push eax ;server.sin_addr.s_addr=inet_addr("192.168.178.60"); ;4 Byte mov eax, edi ;Get the Port-Number from esi (2 Byte). xchg ah,al ;Changing ah and al(Big endian) push ax ;server.sin_port=htons(portnumber); push word 0x2 ;server.sin_family=2; mov edi, esp ;Save the adress of the structure in edi push dword 0x10 ;Third parameter of connect-call push edi ;Second parameter of connect-call push dword esi ;First paramter of connect-call mov ecx, esp ;esp references to the begin of server ; Syscall connect xor eax, eax mov al, 0x66 mov bl,3 int 0x80 ;Preparation for dup2 mov ebx, esi ;Save the result of last syscall in ebx. ebx ist also the first parameter of dup2-syscall xor ecx, ecx ;Reset ecx mov cl,2 ;cl is is counter and also the second paramter of dup2-syscall dup2_loop: xor eax, eax mov al, 0x3F ;0x3f is syscall-number of dup2 int 0x80 dec ecx ;decrement ecx by one jns dup2_loop ;if ecx=>0 then loop ;this is the code from execve_stack.asm from the SLAE-course xor eax, eax push eax push 0x68732f2f push 0x6e69622f mov ebx, esp push eax mov edx, esp push ebx mov ecx, esp mov al, 11 int 0x80
31.597222
125
0.570989
fd3cdc4ef58172f995976a9cf9ec1b2f6f7ca5aa
219
asm
Assembly
debug.asm
neilbaldwin/PR8
045cbd282aba6357a4ae555958cf65c018952e49
[ "BSD-2-Clause-FreeBSD", "MIT" ]
8
2021-03-14T18:20:40.000Z
2021-08-04T20:32:25.000Z
debug.asm
neilbaldwin/PR8
045cbd282aba6357a4ae555958cf65c018952e49
[ "BSD-2-Clause-FreeBSD", "MIT" ]
2
2021-09-17T02:53:10.000Z
2021-09-17T03:11:10.000Z
debug.asm
neilbaldwin/PR8
045cbd282aba6357a4ae555958cf65c018952e49
[ "BSD-2-Clause-FreeBSD", "MIT" ]
null
null
null
.include "macros.asm" debugNumbers: setdmapos 20,2 lda debug0 jsr phex lda #$FF sta $2007 lda cursorX_track jsr phex rts phex: pha lsr a lsr a lsr a lsr a sta $2007 pla and #$0F sta $2007 rts
8.423077
22
0.648402
db04c071e946265c0efb54587a0bb13da78caec4
151
asm
Assembly
src/lib/getchar.asm
zys1310992814/BookOSv0.2
7dca0f968663a0e6de18dd9b3e533d1e0412674f
[ "BSD-2-Clause" ]
3
2019-02-24T11:05:46.000Z
2019-02-26T03:20:50.000Z
src/lib/getchar.asm
zys1310992814/BookOSv0.2
7dca0f968663a0e6de18dd9b3e533d1e0412674f
[ "BSD-2-Clause" ]
null
null
null
src/lib/getchar.asm
zys1310992814/BookOSv0.2
7dca0f968663a0e6de18dd9b3e533d1e0412674f
[ "BSD-2-Clause" ]
null
null
null
[bits 32] [section .text] INT_VECTOR_SYS_CALL equ 0x80 _NR_GETCHAR EQU 4 global getchar getchar: mov eax, _NR_GETCHAR int INT_VECTOR_SYS_CALL ret
12.583333
28
0.794702
e0275be374d66f7b926c78b0c7308c75b3c82ecd
415
asm
Assembly
programs/oeis/129/A129787.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/129/A129787.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/129/A129787.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A129787: Ceiling(3^n/n). ; 3,5,9,21,49,122,313,821,2187,5905,16105,44287,122641,341641,956594,2690421,7596481,21523361,61171657,174339221,498112058,1426411801,4093181689,11767897354,33891544378,97764070321,282429536481,817028301963,2366564736721,6863037736489,19924948267225,57906880901621,168456380804713,490505344107841,1429472717114278,4169295424916643 add $0,1 mov $1,3 pow $1,$0 sub $1,1 div $1,$0 add $1,1
41.5
330
0.819277
d7c01f915b0bd1bf3d208e03d527d02d289197c4
6,410
asm
Assembly
sample_mixer/mixer_player.asm
mikedailly/mod_player
0c46930c3c0a2aa4679718452935853fe89c1774
[ "FSFAP" ]
16
2020-07-05T18:28:30.000Z
2022-01-05T05:59:52.000Z
sample_mixer/mixer_player.asm
mikedailly/mod_player
0c46930c3c0a2aa4679718452935853fe89c1774
[ "FSFAP" ]
null
null
null
sample_mixer/mixer_player.asm
mikedailly/mod_player
0c46930c3c0a2aa4679718452935853fe89c1774
[ "FSFAP" ]
3
2020-07-06T19:28:20.000Z
2020-09-13T21:06:20.000Z
; ; Sample Mixer for sound effect playback ; By Mike Dailly, (c) Copyright 2020 all rights reserved. ; ; ******************************************************************************************** ; A = root bank of MOD file (tune always starts at 0) ; B = InitSamples (0 = no) ; ******************************************************************************************** MixerInit: Call MixerDetectDMALength ; clear samples ld b,MixerNumChannels ld ix,MixerChannels ld de,Sample_size xor a @lp1 ld (ix+Sample_Bank),a djnz @lp1 ; restore SpecDrumPort ld hl,$ffdf ; set the SpecDrum Port ld (MixerDMADestPort),hl ld hl,MixerSamplesPerFrame ; set number of samples per frame ld (MixerSampleLength),hl ld a,(MixerDMAValue) ; set DMA value ld (MixerDMASampleRate),a ld b,MixerNumChannels ld ix,MixerChannels xor a @ClearChannels: ld (ix+Sample_Bank),a ld (ix+Sample_Address),a ld (ix+(Sample_Address+1)),a ld (ix+Sample_Length),a ld (ix+(Sample_Length+1)),a ld (ix+(Sample_Length+2)),a djnz @ClearChannels ret ; ******************************************************************************************** ; Function: Detect how many bytes the DMA can send a frame at the desired frequency calculation ; and adjust it so it's as close as we can get ; ******************************************************************************************** MixerDetectDMALength: ld a,MixerSamplesPerFrame ld hl,$fdfd ; use a non-existent port ld (MixerDMADestPort),hl ; (DMABaseFreq) / (((SamplesPerFrame)*TVRate)) ld e,MixerSamplesPerFrame ld d,MixerTVRate mul ld c,e ld b,d ld hl,$000D ld ix,$59F8 call Div_32x16 ld a,ixl ; Go OVER the calculated value in case the perfect match is up just a bit.... add a,10 jr nc,@Skip ld a,$ff ; can't go above $ff no matter what - largest DMA Prescaler value @Skip: ld (MixerDMAValue),a ld hl,MixerSamplesPerFrame ld (MixerSampleLength),hl ; ------------------------------------------------------------------------------------------------ ; Loop around multiple DMA transfers and detect when we've managed to transfer everything ; ------------------------------------------------------------------------------------------------ MixerTryDMAAgain: call MixerWaitForRasterPos ld a,(MixerDMAValue) ld (MixerDMASampleRate),a ; store DMA prescaler value into DMA program ld hl,0 call MixerPlayDMASample ; make sure we're past the scan line... ld b,0 @lppp2: nop nop djnz @lppp2 ; wait a frame call MixerWaitForRasterPos ; now read how far we got... call MixerDMAReadLen ; debug code ;push hl ;push hl ;ld a,h ;ld de,$4004 ;call PrintHex ;pop hl ;ld a,l ;ld de,$4006 ;call PrintHex ;ld a,(MixerDMAValue) ;ld de,$4001 ;call PrintHex ;pop hl ; now check to see if we transferred all the data ld a,Hi(MixerSamplesPerFrame) cp h jr nz,SizeNotFound ld a,Lo(MixerSamplesPerFrame) cp l jr nz,SizeNotFound ; DMA size found ret SizeNotFound ld b,0 @lppp23: nop nop djnz @lppp23 ; wait another frame call MixerWaitForRasterPos ld b,0 @lppp4: nop nop djnz @lppp4 ld a,(MixerDMAValue) dec a ret z ld (MixerDMAValue),a jp MixerTryDMAAgain @FoundSize: ret ; ******************************************************************************************** ; Wait for raster $30 ; ******************************************************************************************** MixerWaitForRasterPos: call ReadRaster xor a cp h jr nz,MixerWaitForRasterPos ld a,$30 cp l jr nz,MixerWaitForRasterPos ret ; ******************************************************************************************** ; Play a sample. Stops any sample currently playing on that channel ; ; In: a = Channel ; c = bank ; hl = address ; bde = length ; ; ******************************************************************************************** MixerPlaySample: add a,a add a,a add a,a ;*8 add a,Lo(MixerChannels) ld ixl,a ld a,Hi(MixerChannels) adc a,0 ld ixh,a add hl,MIXER_ADD ; add on base of bank ld (ix+Sample_Bank),c ld (ix+Sample_Address),l ld (ix+(Sample_Address+1)),h ld (ix+Sample_Length),e ld (ix+(Sample_Length+1)),d ld (ix+(Sample_Length+2)),b ret ; ******************************************************************************************** ; Play a sample. Stops any sample currently playing on that channel ; ; In: a = bank ; de = address ; bhl= length ; ; ******************************************************************************************** InitSample: push af call MixerSaveMMUs pop af ld ix,len_temp ld (ix+0),a ; store base bank NextReg MIXER_BANK,a inc a NextReg MIXER_BANK+1,a add de,MIXER_ADD ; add on base of sample ld a,b ; high byte of length into AF' ld bc,1 ScaleSamples: ex af,af' ; swap out "high" byte of length ld a,(de) sra a ; scale sample down by 4 times, to allow faster mixing sra a ld (de),a inc de ; check for bank swap ld a,d sub Hi(MIXER_ADD) srl a swapnib and $7 jp z,@NoBankSwap add a,(ix+0) ld (ix+0),a NextReg MIXER_BANK,a inc a NextReg MIXER_BANK+1,a ld a,d and $1f add a,Hi(MIXER_ADD) ld d,a @NoBankSwap: ex af,af' ; get high byte back again and a ; clear carry sbc hl,bc sbc a,0 jr nc,ScaleSamples ; still some left ret len_temp db 0,0,0,0 // bank, 3 byte length ; ******************************************************************************************** ; Include the rest of the Mixer ; ******************************************************************************************** include "mixer_tick.asm" include "mixer_misc.asm" include "mixer_data.asm" ; ------------------------------------------------------------------------------------------------ ; the MOD volumes must be bank aligned as they are paged in and "D" points to the base, ; while E is the sample byte to scale to the desired volume ; ------------------------------------------------------------------------------------------------ Seg MIXER_BANK VolumeTable: incbin "mixer_volume.dat" ; sample*volume conversion
23.309091
100
0.501248
1e608bdea98ae987b5a96940ca475852f71550d8
3,162
asm
Assembly
src/ls.asm
LessNick/CLi-for-WildCommander
9b3267278f89ff08b52d8ad8dfceb34af3f8fdcb
[ "BSD-2-Clause" ]
8
2016-10-22T19:38:38.000Z
2021-08-22T12:53:28.000Z
src/ls.asm
LessNick/CLi-for-WildCommander
9b3267278f89ff08b52d8ad8dfceb34af3f8fdcb
[ "BSD-2-Clause" ]
null
null
null
src/ls.asm
LessNick/CLi-for-WildCommander
9b3267278f89ff08b52d8ad8dfceb34af3f8fdcb
[ "BSD-2-Clause" ]
2
2019-04-28T16:12:08.000Z
2020-04-14T13:15:06.000Z
;--------------------------------------- ; ls/dir - read directory ;--------------------------------------- listDir ex de,hl ld a,(hl) cp #00 jr z,lsPathCount push hl call storePath pop de call changeDir ex af,af' cp #00 call z,lsPathCount call restorePath ret lsPathCount ld a,#00 ; path counter cp #00 jr nz,lsNotRoot call pathToRoot jr lsBegin lsNotRoot ld hl,rootSearch call searchEntry jp z,lsCantReadDir lsBegin xor a ld (lsCount+1),a ld (itemsCount+1),a call setFileBegin lsReadAgain call clearBuffer ld hl,bufferAddr ld b,#01 ; 1 block 512b call load512bytes ld hl,bufferAddr lsLoop ld a,(hl) cp #00 jp z,lsEnd ; если #00 конец записей push hl pop ix bit 3,(ix+11) jr nz,lsSkip+1 ; если 1, то запись это ID тома ld a,(hl) cp #e5 jr z,lsSkip+1 push hl call lsCopyName bit 4,(ix+11) jr z,lsNext_00 ; если 1, то каталог ld a,colorDir jr lsNext lsNext_00 bit 0,(ix+11) jr z,lsNext_01 ; если 1, то файл только для чтения ld a,colorRO jr lsNext lsNext_01 bit 1,(ix+11) jr z,lsNext_02 ; если 1, то файл скрытый ld a,colorHidden jr lsNext lsNext_02 bit 2,(ix+11) jr z,lsNext_03 ; если 1, то файл системный ld a,colorSystem jr lsNext lsNext_03 bit 5,(ix+11) jr z,lsNext_04 ; если 1, то файл системный ld a,colorArch jr lsNext lsNext_04 ld a,colorFile ; в противном случает - обычный файл lsNext ld (de),a lsCount ld a,#00 inc a ld (lsCount+1),a cp #06 jr nz,lsSkip xor a ld (lsCount+1),a ld hl,fileOneLine call printStr lsSkip pop hl itemsCount ld a,#00 inc a ld (itemsCount+1),a cp 16 ; 16 записей на сектор jr z,lsLoadNext ld bc,32 ; 32 byte = 1 item add hl,bc jp lsLoop lsEnd ld a,(lsCount+1) cp #00 jr z,lsEnd_01 lsEnd_00 ld hl,nameEmpty call lsCopyName ld a,(lsCount+1) inc a ld (lsCount+1),a cp #06 jr nz,lsEnd_00 ld hl,fileOneLine call printStr lsEnd_01 ;ld hl,restoreMsg ;call printStr call printRestore ret lsLoadNext xor a ld (itemsCount+1),a jp lsReadAgain clearBuffer ld hl,bufferAddr ld de,bufferAddr+1 ld bc,#1fff xor a ld (hl),a ldir ret lsCopyName push hl ld hl,fileOneLine ld b,0 ld a,(lsCount+1) ld c,a add a,a add a,a add a,a add a,a sbc c ld c,a add hl,bc ex de,hl pop hl inc de push de inc de ld bc,#0000 lsCopyLoop ld a,(hl) cp " " jr z,lsCopySkip ld (de),a inc de inc c ; счётчик символов отпечатано (позиция) lsCopySkip inc b ; счётчик символов всего (позиция) inc hl ld a,b cp 11 jr z,lsCopyRet cp 8 ; 8.3 jr nz,lsCopyLoop ld a,(hl) cp " " jr z,lsCopyRet ld a,"." inc c ld (de),a inc de jr lsCopyLoop lsCopyRet ld a,c cp 12 jr nc,lsCopyRet_0 ld a," " ld (de),a inc c inc de jr lsCopyRet lsCopyRet_0 pop de ret lsCantReadDir ld hl,cantReadDirMsg call printStr ret
15.731343
65
0.588235
3e2c924adea40c0d37d7d39d65622d37fd8a740f
5,702
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1790.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1790.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1790.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %rax push %rcx push %rdi push %rsi lea addresses_WC_ht+0xdfbe, %rsi lea addresses_D_ht+0x1bcbe, %rdi nop nop add $63799, %r15 mov $73, %rcx rep movsb nop inc %rdi lea addresses_normal_ht+0x28be, %rdi nop dec %rcx movb $0x61, (%rdi) dec %r15 lea addresses_normal_ht+0x576, %rsi lea addresses_UC_ht+0x1a23e, %rdi cmp %r12, %r12 mov $47, %rcx rep movsw nop nop nop nop inc %r15 lea addresses_WT_ht+0xc52, %r15 nop nop xor $14494, %rcx movups (%r15), %xmm2 vpextrq $0, %xmm2, %rsi nop nop nop sub $60103, %r12 pop %rsi pop %rdi pop %rcx pop %rax pop %r15 pop %r12 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r14 push %r15 push %rax push %rdi push %rsi // Store lea addresses_normal+0x16f7e, %r12 clflush (%r12) nop nop and $13665, %r14 movb $0x51, (%r12) sub %rax, %rax // Store lea addresses_WC+0x13fbe, %rdi nop cmp $15941, %r13 movb $0x51, (%rdi) nop nop nop nop nop cmp $37585, %rsi // Load lea addresses_UC+0x147be, %rax nop nop nop nop nop cmp $57493, %r12 vmovups (%rax), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %r15 add $11357, %rsi // Faulty Load lea addresses_UC+0x147be, %r14 nop nop nop nop nop cmp %r15, %r15 vmovups (%r14), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $1, %xmm6, %r12 lea oracles, %rsi and $0xff, %r12 shlq $12, %r12 mov (%rsi,%r12,1), %r12 pop %rsi pop %rdi pop %rax pop %r15 pop %r14 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal', 'congruent': 4}, 'OP': 'STOR'} {'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC', 'congruent': 11}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_UC', 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_UC', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal_ht', 'congruent': 3}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 7, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_normal_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT_ht', 'congruent': 1}} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
41.926471
2,999
0.658541
d5f31ab3981e71ae7b0109513718aada8ea5c34c
201
asm
Assembly
libsrc/_DEVELOPMENT/string/c/sdcc_iy/strndup.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/string/c/sdcc_iy/strndup.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/string/c/sdcc_iy/strndup.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; char *strndup(const char *s, size_t n) SECTION code_string PUBLIC _strndup EXTERN asm_strndup _strndup: pop af pop hl pop bc push bc push hl push af jp asm_strndup
9.571429
40
0.651741
8970c0d18d50286557e5e2d31696717f1f1d8bc9
32,124
asm
Assembly
crk_v1_orbix.asm
alexanderbazhenoff/braimwave-cracktro-v1
f6f63bd6cddb4373a1e9fc1496293bf87ea8a7a7
[ "MIT" ]
null
null
null
crk_v1_orbix.asm
alexanderbazhenoff/braimwave-cracktro-v1
f6f63bd6cddb4373a1e9fc1496293bf87ea8a7a7
[ "MIT" ]
null
null
null
crk_v1_orbix.asm
alexanderbazhenoff/braimwave-cracktro-v1
f6f63bd6cddb4373a1e9fc1496293bf87ea8a7a7
[ "MIT" ]
null
null
null
ORG #6000 BORDER EQU 4 D_LOGO EQU 57452 ;DECRUNCHED LOGO D_DLOP EQU #8200+#21C+72 ;DECRUNCHED LOGO ;OUTPUT PP D_TOP EQU #940B ;DECRUNCHED TXT OTPUT PP D_TAI EQU #B9AE ;DECRUNCHED TOP'S ADRESS INSTALL PP D_SINL EQU #DE00 ;DECRUNCHED SINUS TABL 4 LOGO'S ACTION D_SINP EQU #DC00 ;DECRUNCHED SINUS TABL 4 CHANGE PAGES D_FONT EQU #4000 ;REMOVED FONT ;DFONT EQU #5000 D_FONTA EQU D_FONT-#108 D_PRNTX EQU #DB00 ;DECRUNCHED X TABL 4 PRINT CHR D_PRNTY EQU #DA00 ;DECRUNCHED Y TABL 4 PRINT CHR LOGOPIX EQU #4000+160+23 ;COORD (ADDR) ;OF LOGO PIXELS LOGOATR EQU #5800+160+23 ;COORD (ADDR) ;OF LOGO ATTR OTXTADR EQU #4000+#80+21+#700 ;OUTPUT TXT TO... LOADADR EQU #5D3B ;REMOVE LOADER TO... ;+---->>>> MUSIC compile EQU #7600 play EQU #7605 stop EQU #7608 MODULE EQU #BD00 JP BEGIN ; 0123456789ABCDEFGHIJJIHGFEDCBA9876543210 PAGE1 DEFB " PUMPED!!!",#0D ;1 DB #0D ;2 DB " -+ B + R + A + I + N + W + A + V + E +-",#0D ;3 DB " OF",#0D ;4 DB " X - P R O J E C T",#0D ;5 DB #0D ;6 DEFB "BACKS 4 OLD GOOD",#0D ;7 DEFB " WITH THE GOLDEN GAME FROM",#0D ;8 DB #0D ;9 DEFB " J O H N P R A G N E L L",#0D ;A DB #0D ;B DEFB "O R B I X - T H E T E R R O R B A L L",#0D ;C DB "+--------------------------------------+",#0D ;D DB "'ENTER'- NEXT PAGE, 'SPC'- TRAINER MENUE",#0D ;E PAGE2 DB "*=------------------------------------=*",#0D;1 DEFB " STUFF LIST:",#0D ;2 DB #0D DEFB "OLDSCHOOL CRACKTRO CODED......ALX/BW/XPJ",#0D;5 DB "CRACKTRO GFX (LOGO & FONT)....ALX/BW/XPJ",#0D;6 DB #0D ;7 DEFB "CRACKTRO MUZAK..............MEGUS/BW/XPJ",#0D;8 DB #0D ;9 DEFB "GAME RESTORED.................ALX/BW/XPJ",#0D;A DEFB "TRAINED, DISKED, PACKED.......ALX/BW/XPJ",#0D;B DB #0D ;C DEFB "RELIZE DATE.....................21.07.01",#0D;D DB "*=------------------------------------=*",#0D;E DEFB "SORRY,JUST ONE MULTICOLOR FIX (PENTAGON)",#0D PAGE3 DB " NOW",#0D;1 DB " -+ B + R + A + I + N + W + A + V + E +-",#0D;2 DB " ARE:",#0D ;3 DB #0D ;4 DB "MEGUS................MUZAKER + ORGANIZER",#0D;5 DB "MAV........CODER + PROGRAMMER + SYSADMIN",#0D;6 DB "ALX..CRACKER(NOT A COOKES;) + CODER + DJ",#0D;7 DB "TIGRR..DESIGNER + GFX MAKER + PROGRAMMER",#0D;8 DB "VIVID............MAIN CODER + PROGRAMMER",#0D;9 DB "NAVIGATOR...........HARDWARE SERVICE ;-)",#0D;A DB "GRAPH EGO.................MAIN GFX MAKER",#0D;B DB "X-CYBER.................HARDWARE SERVICE",#0D;C DB "ABSTRACT...................CODER + GAMER",#0D;D DB "DAN THE HUMANOID......THE HUMANOID + ???",#0D;E PAGE4 DEFB " YAHOO! CATCH THE GREETZ!",#0D ;1 DB #0D DB "X-PROJECT, MAD CAT, SERZHSOFT, ANTARES",#0D ;3 DEFB "EXTREME, PLACEBO, RUSH, TRIUMPH, BUSY",#0D ;4 DEFB "4TH DIMENSION, DIGITAL REALITY, HRUMER",#0D ;5 DEFB "CONCERN CHAOS, ACCEPT CORP, AXLR, CTL",#0D ;6 DEFB "LIGHT FUTURE GROUP, RAZZLERS, FREEDOM",#0D ;7 DEFB "STUDIO STALL, HOOY PROGRAMS, RAW ARSE",#0D ;8 DEFB "REAL MASTERS, K3L, 3SC, DANZIL, SERGUN",#0D ;9 DEFB "DELIRIUM TREMENS, COPPER FEET, MYHEM",#0D ;A DEFB "CYBERPUNKS UNITY, PROGRESS, ANDY FERR",#0D ;B DEFB #0D ;C DEFB "AND TO ALL WHO KEEPS",#0D ;D DEFB " THE SCENE ALIVE!!!",#0D ;E PAGE7 DB "WANNA CONTACT US?",#0D ;1 DB " OK! NOW RIGHT IT DOWN...",#0D ;2 DEFB "MEGUS/BRAINWAVE........................",#0D ;3 DEFB "E-MAIL: MEGUS_BW@MAIL.RU",#0D ;4 DEFB "FIDO: 2:5052/4.169",#0D ;5 DEFB "ZX-NET: 500:8362/1",#0D ;6 DEFB #0D ;7 DEFB "ALX/BRAINWAVE..........................",#0D ;8 DEFB "E-MAIL: ALX_BW@MAIL.RU",#0D ;9 DEFB #0D ;A DEFB "TIGRR/BRAINWAVE........................",#0D ;B DEFB "E-MAIL: TIGRR_BW@MAIL.RU",#0D ;C DEFB "FIDO: 2:5052/25.21",#0D ;D DEFB "ZX-NET: 500:8362/1.2",#0D ;E PAGE8 DEFB "VIVID/BRAINWAVE........................",#0D ;1 DEFB "E-MAIL: VIVID_BW@E-MAIL.RU",#0D ;2 DEFB "FIDO: 2:5052/30.8",#0D ;3 DEFB "ZX-NET: 500:8362/1.3",#0D ;4 DEFB #0D ;5 DEFB "ALL MEMBERS OF BRAINWAVE...............",#0D ;6 DEFB "E-MAIL: BW_XPJ@MAIL.RU",#0D ;7 DEFB #0D ;8 DEFB "PLEASE, DON'T SEND A SPAM!",#0D ;9 DEFB #0D ;A DEFB "ALL OUR STUFF AVAIBLE..................",#0D ;B DEFB "HTTP://BRAINWAVE.DAX.RU",#0D ;C DEFB "TRY 2 FIND HIDDEN URI ;-)))",#0D ;D DEFB " C YA!",#0D ;E PAGE_CH DEFB " BRAINWAVE TRAINER MENUE (+01)",#0D DEFB "+-------------------------------------+",#0D DEFB #0D DEFB "1. UNLIMIT LIVES....................NOP",#0D DEFB #0D DEFB "+-------------------------------------+",#0D DEFB " SORRY, THERE ARE ONLY ONE POINT",#0D DEFB "(BECAUSE OF MOTHERFUCKING STRUCTURE OF",#0D DEFB " MACHING CODE IN THIS GAME... :-)",#0D DEFB #0D DEFB "WANNA HAVE A FUN? O.K. SO, PRESS 'B+W'",#0D DEFB " AFTER LOADING OF THIS GAME!",#0D DEFB "+-------------------------------------+",#0D DEFB "'ENTER' - TOGGLE, 'SPC' - END SELECTION",#0D TRAIN1Y DEFB "YEP",#0D TRAIN2N DB "NOP",#0D PAGE_L DW PAGE1 DW PAGE2 DW PAGE3 DW PAGE4 DW PAGE5 DW PAGE6 DW PAGE7 DW PAGE8 DW 0 PAGECHL DW PAGE_CH BEGIN LD A,#3F LD I,A IM 1 XOR A LD (23693),A LD (23624),A CALL 3435 INC A INC A ;+------- PRINT ALL FONT ;-)))))) -------------+ LD HL,(23606) PUSH HL LD HL,FONT-#200 LD (23606),HL CALL 5633 EI LD A,32 LD B,#60 LOOP PUSH AF RST #10 POP AF INC A DJNZ LOOP DI POP HL LD (23606),HL LD HL,TRAIN1Y LD DE,#4000 LD C,8 LDIR EXX PUSH HL PUSH IX PUSH IY LD (STEKRET+1),SP LD BC,#7FFD LD A,#10 OUT (C),A ;+--- REMOVING MUSIC ----+ LD HL,MUSIC LD DE,MODULE LD BC,DPAGES-MUSIC LDIR ;+--- REMOVIG LOADER ----+ LD HL,LOADER LD DE,LOADADR LD BC,MUSIC-LOADER LDIR LD HL,DPAGES LD DE,#C200 LD BC,ENDOBJ-DPAGES LDIR ;+---DECRUNCHING LOGO---+ LD HL,D_LOGO CALL D_LZ LD HL,D_LOGO+7936 CALL D_LZ LD B,8 LD IX,LOGO LD HL,D_LOGO+128 LD DE,#10 DLPIXML PUSH BC PUSH HL LD BC,61*8 DLPIXL LD A,(IX) LD (HL),A ADD HL,DE INC IX DEC BC LD A,B OR C JR NZ,DLPIXL POP HL POP BC INC HL DJNZ DLPIXML LD HL,D_LOGO+8+128 LD E,8 LD B,61 DLATRML PUSH BC LD B,8 DLATRL2 PUSH BC PUSH IX PUSH HL LD B,8 DLATRL LD A,(IX) LD (HL),A INC HL INC IX DJNZ DLATRL POP HL POP IX POP BC ADD HL,DE ADD HL,DE DJNZ DLATRL2 ADD IX,DE POP BC DJNZ DLATRML ;+-- DECRUNCHING SINUS TABL 4 LOGO'S ACTION LD IX,SINUS LD IY,D_SINL LD DE,D_LOGO LD B,#80 D_SINLL LD L,(IX) INC IX LD H,(IX) INC IX ADD HL,HL ADD HL,HL ADD HL,HL ADD HL,HL ADD HL,DE LD (IY),L INC IY LD (IY),H INC IY DJNZ D_SINLL LD HL,(D_SINL+#FE) LD (D_SINL+#100),HL ;+-- DECRUNCHING SINUS FOR CHANGE PAGES --+ LD IX,SINUS2 LD IY,D_SINP LD DE,43 LD B,#40 D_SINLP PUSH BC LD B,(IX) INC B INC IX LD HL,D_TOP-43 D_SINL1 ADD HL,DE DJNZ D_SINL1 LD (IY),L INC IY LD (IY),H INC IY LD BC,43*14*8 ADD HL,BC LD (IY),L INC IY LD (IY),H INC IY POP BC DJNZ D_SINLP ;+--- DECRUNCHING X COORD TABL 4 PRINT TXT PP ---+ LD HL,D_PRNTX LD DE,#0F00 LD BC,#A24 D_PRNTL LD (HL),C INC HL LD (HL),E INC HL LD (HL),C INC HL LD (HL),D INC HL INC C LD (HL),C INC HL LD (HL),E INC HL LD (HL),C INC HL LD (HL),D INC HL DEC C DEC C DEC C DEC C DEC C DJNZ D_PRNTL ;+--- DECRUNCHING Y COORD TABL 4 PRINT TXT LD IX,D_PRNTY LD HL,D_TOP+4 LD DE,43*8 LD B,28 D_PRNYL LD (IX),L INC IX LD (IX),H INC IX ADD HL,DE DJNZ D_PRNYL ;+--DECRUNCHING LOGO OUTPUT PP--+ LD HL,#73ED ; LD (D_DLOP),HL ;LD (#9408),SP LD HL,#9408 ; LD (D_DLOP+2),HL ; LD A,#31 LD (D_DLOP+4),A LD HL,D_LOGO ;!!! LD (D_DLOP+5),A ;!!! LD IX,D_DLOP+7 LD (IX),#3E INC IX LD (IX),0 INC IX LD HL,LOGOATR LD DE,#20 LD B,D EXX LD HL,LOGOPIX LD B,#6F PUSH HL CALL PUT4B LD (IX),#D3 INC IX LD (IX),#FE INC IX POP HL CALL DOWN_SL CALL INSATR DLOP_L PUSH HL CALL PUT4B POP HL CALL DOWN_SL CALL INSATR DJNZ DLOP_L LD A,#31 LD (#9407),A LD A,#C9 LD (#940A),A ;+--- DECRUNCHING TEXT OUTPUT PP (T.O.P.) ---+ LD HL,D_TOP LD BC,#AE0 LD D,0 D_TOPML PUSH BC LD (HL),#31 INC HL LD (HL),D INC HL LD (HL),D INC HL D_TOPL LD (HL),#21 INC HL LD (HL),D INC HL LD (HL),D INC HL LD (HL),#E5 INC HL DJNZ D_TOPL POP BC DEC C JR NZ,D_TOPML LD DE,TOPEXIT LD (HL),#C3 INC HL LD (HL),E INC HL LD (HL),D ;+-- DECRUNCHING T.O.P.'S ADRESS INSTALLER (T.A.I.) --+ LD DE,D_TAI LD HL,DATA1 LD BC,7 LDIR EX DE,HL LD DE,OTXTADR LD B,112 D_TAIML LD (HL),1 INC HL EX DE,HL CALL DOWN_SL EX DE,HL LD (HL),E INC HL LD (HL),D INC HL LD (HL),#F9 INC HL LD (HL),#C5 INC HL LD (HL),#19 INC HL DJNZ D_TAIML EX DE,HL LD HL,DATA2 LD C,#4 LDIR ;+--ACTIVATING INTERRUPT--+ LD HL,#D800 LD DE,#D801 LD BC,#100 LD A,H LD I,A LD (HL),#DF LDIR LD A,#C3 LD (#DFDF),A LD HL,INT1 LD (#DFE0),HL IM 2 ;+---PREPARE SCREEN---+ CALL PRNTNXT CALL TXTADRS LD HL,#4000+#80+#700 CALL FF_LINE LD HL,#5000+#60 CALL FF_LINE CALL compile EI HALT LD A,1+2+4+8+16+32 CALL FLASH LD HL,0 LD D,H LD E,L LD BC,2900 LDIR LD HL,#5800 LD DE,#5801 LD C,#60 LD (HL),BORDER*8+BORDER LDIR LD C,#40 LD (HL),BORDER*8+7 LDIR LD BC,#200-#40 LD (HL),7 LDIR LD C,#A0 LD (HL),BORDER*8+7 LDIR LD HL,INT2 LD (#DFE0),HL ;-------------------- LD HL,D_LOGO LD (D_DLOP+5),HL CALL PG_DOWN ;+-----------------------------------------------------+ ;| MAIN PROCESS | ;+-----------------------------------------------------+ AGAIN CALL CLRTXTD CALL PRNTNXT CALL WAITKEY HALT CALL REST_C HALT CALL PG_UP CALL CLRTXTU CALL PRNTNXT CALL WAITKEY HALT CALL REST_C HALT CALL PG_DOWN JR AGAIN CHEAT LD BC,(CORD_P+1) LD A,B XOR #1C LD B,A LD (CORD_P+1),BC PUSH BC PUSH BC PUSH BC LD A,B OR A PUSH AF CALL Z,CLRTXTU POP AF CALL NZ,CLRTXTD POP BC LD HL,PAGECHL LD (PAGE_P+1),HL LD (KUDA_P+1),BC CALL PRNTNXT HALT CALL REST_C HALT POP AF CP 0 PUSH AF CALL Z,PG_DOWN POP AF CALL NZ,PG_UP KUDA_P LD HL,#2121 INC H INC H LD L,72 LD (KUDA_P2+1),HL KEYS HALT LD BC,#7FFE IN A,(C) RRA JP NC,EXIT KUDA_P2 LD DE,#1111 LD HL,TABL_CH LD BC,#BFFE IN A,(C) RRA JP NC,CH_TALL LD B,#F7 INC D INC D INC D INC D IN A,(C) RRA CALL NC,CH_TGLS ;1 JP KEYS ;+--- TOGLE ALL ('ENTER') ---+ CH_TALL LD B,1 INC D INC D INC D INC D CH_TAL1 PUSH BC CALL NC,CH_TGLA HALT INC D INC D INC HL POP BC DJNZ CH_TAL1 CALL KB_WAIT JP KEYS CH_TGLS CALL CH_TGLA CALL KB_WAIT RET CH_TGLA PUSH AF PUSH BC PUSH DE PUSH HL LD A,(HL) CPL LD (HL),A OR A CALL Z,AD4000 CALL NZ,AD4004 LD L,A LD H,#40 PUSH HL LD B,D LD C,E LD D,3 CALL CLRSYM POP HL CALL PRNTSTR POP HL POP DE POP BC POP AF RET TABL_CH DEFB #FF KB_WAIT HALT HALT HALT HALT HALT HALT HALT HALT HALT HALT RET AD4000 LD A,0 RET AD4004 LD A,4 RET ;-------------------- PRINT PAGES ROUTINES ----->>>>> PRNTNXT PAGE_P LD HL,PAGE_L LD E,(HL) INC HL LD D,(HL) INC HL LD A,D OR E JR NZ,CORD_P LD HL,PAGE_L LD E,(HL) INC HL LD D,(HL) INC HL CORD_P LD BC,#0000 PUSH DE PUSH HL PUSH BC EX DE,HL LD D,#E ;+--- PRINT TEXT PAGE ---+ ;D - NUMBER OF LINES PRNT_PG PUSH DE PUSH BC CALL PRNTSTR NO_SPCE POP BC INC B INC B POP DE DEC D JR NZ,PRNT_PG POP BC POP HL POP DE LD A,B XOR #1C LD B,A LD (CORD_P+1),BC LD A,D OR E JR NZ,NO_ENDP LD HL,PAGE_L NO_ENDP LD (PAGE_P+1),HL RET ;+---------------------------------+ ;| MAIN INT PP | ;+---------------------------------+ INT2 DI PUSH AF PUSH BC PUSH DE PUSH HL ;+------- OUTPUT TXT ---------+ TXTPRNT LD (TOPEXIT+1),SP TXTPRAD JP D_TOP TOPEXIT LD SP,#3131 LD HL,0 LD D,H LD E,L LD BC,84 LDIR OR B OR B OR B OR B OR B OR B OR B OR B ;+--- WHITE LINE ---+ LD B,3 DJ_1U DJNZ DJ_1U LD A,#3E LD A,#3E LD A,7 OUT (#FE),A LD A,#3E LD A,#3E LD B,3 DJ_2U DJNZ DJ_2U CALL D_DLOP LD HL,0 LD DE,0 LD BC,11 LDIR ;+--- WHITE LINE ---+ LD B,3 DJ_1D DJNZ DJ_1D LD A,I LD A,7 OUT (#FE),A LD B,15 DJ_2D DJNZ DJ_2D LD A,R LD A,BORDER OUT (#FE),A PUSH IX PUSH IY EXX EX AF,AF' PUSH AF PUSH BC PUSH DE PUSH HL ;+------- LOGO ACTION ---------+ P_LA LD A,#00 INC A LD (P_LA+1),A BIT 7,A LD HL,(LA_HL+1) PUSH AF CALL NZ,LA_HLI POP AF CALL Z,LA_HLD LA_HL LD HL,D_SINL+#FE LD E,(HL) INC HL LD D,(HL) INC HL LD (D_DLOP+5),DE CALL play POP HL POP DE POP BC POP AF EXX EX AF,AF' POP IY POP IX POP HL POP DE POP BC POP AF EI INT1 RET ;~~~~~~~~~~~~~~~~ END INT... LA_HLI INC HL INC HL JR NA_HOOY LA_HLD DEC HL DEC HL NA_HOOY LD (LA_HL+1),HL RET ;+--------- WAIT KEY ----------+ WAITKEY LD BC,1000 WAIT_KL HALT PUSH BC LD BC,#7FFE IN A,(C) RRA JR NC,SPCPRES LD B,#BF IN A,(C) POP BC RRA RET NC DEC BC LD A,B OR C JR NZ,WAIT_KL RET SPCPRES POP BC POP DE JP CHEAT ;+--- PAGE DOWN... ---++++++++++++++++++++++++++++++++++ PG_DOWN DI LD HL,(SAVE_JP+1) LD (HL),#31 LAST_BD LD BC,#3F PG_DNL LD H,#DC ;IMPORTANT!!! LD L,B INC B INC B INC B INC B PUSH BC LD C,(HL) INC L LD B,(HL) INC L LD E,(HL) INC L LD D,(HL) LD H,B LD L,C CALL TXTADR1 EI HALT POP BC DEC C JR NZ,PG_DNL LD A,B LD (LAST_BU+2),A RET ;+----------- PAGE UP... -----------------------------+ PG_UP DI LD HL,(SAVE_JP+1) LD (HL),#31 LAST_BU LD BC,#F83F PG_UPL DI LD HL,(SAVE_JP+1) LD (HL),#31 LD H,#DC ;IMPROTANT!!!! LD L,B DEC B DEC B DEC B DEC B PUSH BC LD C,(HL) INC L LD B,(HL) INC L LD E,(HL) INC L LD D,(HL) LD H,B LD L,C DI CALL TXTADR1 EI HALT POP BC DEC C JR NZ,PG_UPL LD A,B LD (LAST_BD+2),A RET ;+------ INSTALL TXT ADRS 4 TXT OUTPUT PP -------+ TXTADRS LD HL,D_TOP+4816 LD DE,D_TOP+9632 ;HL - TXTPRAD ;DE - NEWJP TXTADR1 LD (TXTPRAD+1),HL INC HL INC HL INC HL LD (D_TAI+5),HL LD (SAVE_JP+1),DE LD A,#C3 LD (DE),A INC DE LD HL,TOPEXIT LD A,L LD (DE),A INC DE LD A,H LD (DE),A LD DE,43 JP D_TAI ;************** RESTORE CODE... ************************ REST_C LD HL,D_TOP SAVE_JP LD DE,#1111 LD BC,#E02B REST_L PUSH BC LD A,H CP D JR NZ,NO_RJP LD A,L CP E JR NZ,NO_RJP JR REAL_JP NO_RJP LD (HL),#31 REAL_JP LD B,0 ADD HL,BC POP BC DJNZ REST_L RET ;+--- PRINT TEXT LINE ---+]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] PRNTSTR LD A,(HL) CP #0D JP Z,ENDSTR1 PUSH HL PUSH BC ;+--- PRINT CHARECTER ---+*---+++---+++---+++---+++--->> ;C - X COORD *2 ;B - Y COORD *2 ;A - CHARECTER EX AF,AF' LD H,#DA ;THIS IS VERY IMPORTANT!!! LD L,B LD E,(HL) INC L LD D,(HL) INC H LD L,C LD C,(HL) INC L LD A,(HL) OR A JR Z,PCHR_F0 LD H,D LD L,E LD B,0 ADD HL,BC LD C,43 EX AF,AF' LD E,A LD D,#40 LD A,(DE) ;1 INC D AND #F OR (HL) LD (HL),A ADD HL,BC LD A,(DE) ;2 INC D AND #F OR (HL) LD (HL),A ADD HL,BC LD A,(DE) ;3 INC D AND #F OR (HL) LD (HL),A ADD HL,BC LD A,(DE) ;4 INC D AND #F OR (HL) LD (HL),A ADD HL,BC LD A,(DE) ;5 INC D AND #F OR (HL) LD (HL),A ADD HL,BC LD A,(DE) ;6 INC D AND #F OR (HL) LD (HL),A ADD HL,BC LD A,(DE) ;7 INC D AND #F OR (HL) LD (HL),A ADD HL,BC LD A,(DE) ;8 AND #F OR (HL) LD (HL),A JR ENDPCHR PCHR_F0 LD H,D LD L,E LD B,0 ADD HL,BC LD C,43 EX AF,AF' LD E,A LD D,#40 LD A,(DE) ;1 INC D AND #F0 OR (HL) LD (HL),A ADD HL,BC LD A,(DE) ;2 INC D AND #F0 OR (HL) LD (HL),A ADD HL,BC LD A,(DE) ;3 INC D AND #F0 OR (HL) LD (HL),A ADD HL,BC LD A,(DE) ;4 INC D AND #F0 OR (HL) LD (HL),A ADD HL,BC LD A,(DE) ;5 INC D AND #F0 OR (HL) LD (HL),A ADD HL,BC LD A,(DE) ;6 INC D AND #F0 OR (HL) LD (HL),A ADD HL,BC LD A,(DE) ;7 INC D AND #F0 OR (HL) LD (HL),A ADD HL,BC LD A,(DE) ;8 AND #F0 OR (HL) LD (HL),A ENDPCHR POP BC INC C INC C POP HL INC HL JP PRNTSTR RET ENDSTR1 INC HL RET ;"""""""""" CLEAR SYMBOL """""""""""""""" CLRSYM PUSH BC CCHR_L PUSH DE PUSH BC LD H,#DA ;ЕНТО ОЧЕНЬ ВАЖНО! (THIS IS VERY IMPORTANT!) LD L,B LD E,(HL) INC L LD D,(HL) INC H LD L,C LD C,(HL) INC L LD A,(HL) OR A JR Z,CCHR_F0 LD H,D LD L,E LD B,0 ADD HL,BC LD C,43 LD A,#F0 ;1 AND (HL) LD (HL),A ADD HL,BC LD A,#F0 ;2 AND (HL) LD (HL),A ADD HL,BC LD A,#F0 ;3 AND (HL) LD (HL),A ADD HL,BC LD A,#F0 ;4 AND (HL) LD (HL),A ADD HL,BC LD A,#F0 ;5 AND (HL) LD (HL),A ADD HL,BC LD A,#F0 ;6 AND (HL) LD (HL),A ADD HL,BC LD A,#F0 ;7 AND (HL) LD (HL),A ADD HL,BC LD A,#F0 ;8 AND (HL) LD (HL),A JR ENDCLR1 CCHR_F0 LD H,D LD L,E LD B,0 ADD HL,BC LD C,43 LD A,#F ;1 AND (HL) LD (HL),A ADD HL,BC LD A,#F ;2 AND (HL) LD (HL),A ADD HL,BC LD A,#F ;3 AND (HL) LD (HL),A ADD HL,BC LD A,#F ;4 AND (HL) LD (HL),A ADD HL,BC LD A,#F ;5 AND (HL) LD (HL),A ADD HL,BC LD A,#F ;6 AND (HL) LD (HL),A ADD HL,BC LD A,#F ;7 AND (HL) LD (HL),A ADD HL,BC LD A,#F ;8 AND (HL) LD (HL),A ADD HL,BC ENDCLR1 POP BC POP DE INC C INC C DEC D JP NZ,CCHR_L POP BC RET ;+>>>>>>>>>>>>>>> CLER TEXT <<<<<<<<<<<<<<<<<+ CLRTXTU LD HL,D_TOP JR CLRTXT CLRTXTD LD HL,D_TOP+4816 CLRTXT LD B,14*8 XOR A CLRTXTL INC HL INC HL INC HL INC HL LD (HL),A INC HL LD (HL),A INC HL INC HL INC HL LD (HL),A INC HL LD (HL),A INC HL INC HL INC HL LD (HL),A INC HL LD (HL),A INC HL INC HL INC HL LD (HL),A INC HL LD (HL),A INC HL INC HL INC HL LD (HL),A INC HL LD (HL),A INC HL INC HL INC HL LD (HL),A INC HL LD (HL),A INC HL INC HL INC HL LD (HL),A INC HL LD (HL),A INC HL INC HL INC HL LD (HL),A INC HL LD (HL),A INC HL INC HL INC HL LD (HL),A INC HL LD (HL),A INC HL INC HL INC HL LD (HL),A INC HL LD (HL),A INC HL INC HL DJNZ CLRTXTL RET ;+--- F_L_A_S_H ! ! ! (? ? ?) ---+ FLASH PUSH AF LD A,7 OUT (#FE),A POP AF LD HL,#5800 LD DE,#5801 LD BC,#2FF LD (HL),A LDIR RET DATA1 LD (#BC56),SP LD HL,#2121 DATA2 LD SP,#3131 RET D_LZ LD D,H LD E,L INC DE LD BC,128 LD (HL),B LDIR RET INSATR EXX PUSH HL CALL PUT4B POP HL INC B LD A,B CP 8 JR NZ,NO_ADD LD B,D ADD HL,DE NO_ADD EXX LD (IX),0 ;LD H,#26 INC IX LD (IX),0 INC IX LD (IX),0 INC IX LD (IX),0 INC IX RET PUT4B PUSH BC LD B,4 PUT4B_L LD (IX),#E1 ;POP HL INC IX LD (IX),#22 ;LD (...),HL INC IX LD (IX),L INC IX LD (IX),H INC IX INC HL INC HL DJNZ PUT4B_L POP BC RET DOWN_SL INC H LD A,H AND 7 RET NZ LD A,L ADD A,#20 LD L,A RET C LD A,H SUB #8 LD H,A RET FF_LINE LD D,H LD E,L INC DE LD (HL),#FF LD BC,#1F LDIR RET EXIT DI LD HL,INT1 LD (#DFE0),HL EI HALT LD A,1+2+4+8+16+32 CALL FLASH CALL stop EI HALT LD BC,#1BFE LD HL,#5B00 LD DE,#5AFF OUT (C),L LD (HL),L LDDR DI LD A,#3B LD I,A IM 1 ;------ CHEAT INSTALLER ------ LD HL,TABL_CH LD A,(HL) OR A JR NZ,NOU1 XOR A LD (TP1),A NOU1 NOU9 STEKRET LD SP,#3131 POP IY POP IX POP HL EXX LD HL,LOADADR PUSH HL LD HL,#6000 LD DE,#6001 LD BC,#9FFF LD (HL),L EI JP #33C3 DS #FF,#33 ORG #7600 PLAYER INCBIN "PLAYER" LOGO INCBIN "LOGOcrk " SINUS INCBIN "SINUS_D" SINUS2 INCBIN "SINUS_G" FONT INCBIN "FONTcrk2" ;+-------- L O A D E R ---------+ LOADER DISP #5D3B LD SP,24999 LD HL,40000 LD B,#0C CALL LOAD LD HL,#61A8 LD B,#52 CALL LOAD11 XOR A JR NO_UN1 TP1 EQU $-1 LD A,#FF NO_UN1 LD (#FFFF),A EI RES 5,(IY+1) WAITL BIT 5,(IY+1) JR Z,WAITL JP #61A8 LOAD PUSH HL ;!!! LOAD11 LD DE,(#5CF4) LD C,5 LOAD1 PUSH HL PUSH DE PUSH BC CALL LL_3D13 POP BC POP DE POP HL LD A,(23823) OR A JR NZ,LOAD1 RET LL_3D13 LD (REG_A+1),A PUSH HL LD HL,(23613) LD (ERR+1),HL LD HL,DRIA LD (#5CC3),HL LD HL,ERR EX (SP),HL LD (23613),SP EX AF,AF' LD A,#C3 LD (#5CC2),A XOR A LD (23823),A LD (23824),A EXA LD (SP2),SP REG_A LD A,#C3 JP #3D13 D_ERR LD SP,#3131 SP2 EQU $-2 LD (23823),A ERR LD HL,#2121 LD (23613),A LD A,#C9 LD (#5CC2),A RET DRIA EX (SP),HL PUSH AF LD A,H CP 13 JR Z,RIA XOR A OR H JR Z,NO_ERR NO_ERR POP AF EX (SP),HL RET RIA POP HL POP HL POP HL XOR A LD (23560),A LD A,2 OUT (#FE),A LD A,"R" LD HL,#3F7E EX (SP),HL JP #3D2F ENT MUSIC INCBIN "INTRO" DEFS 256,0 DPAGES DISP #C200 PAGE5 DEFB "LOOK FOR THE NEXT CRACK-RELEAZES:",#0D ;1 DEFB #0D ;2 DEFB "#01 SURVIVOR.........R.G.R.-R.A.G.C.'87",#0D ;3 DEFB "#02 BLOOD VALLEY.......................",#0D ;4 DEFB "..........IMAGITEC/GREMLIN GRAPHICS '86",#0D ;5 DEFB "#03 SPY HUNTER........U.S.GOLD/SEGA '??",#0D ;6 DEFB "#04 BOUNDER........GREMLIN GRAPHICS '86",#0D ;7 DEFB "#05 SABOTEUR COLLECTION................",#0D ;8 DEFB ".................DURELL SOFTWARE '86-87",#0D ;9 DEFB "#06 FOX FIGHTS BACK!...................",#0D ;A DEFB ".........IMAGE WORKS/DENTON DESIGNS '??",#0D ;B DEFB "#07 PETER PACK-RET.....................",#0D ;C DEFB "........SOFTWARE CREATIONS/FIREBIRD '88",#0D ;D DEFB "#08 STAINLESS STEEL........MIKROGEN '86",#0D ;E PAGE6 DEFB "#09 CANYON WARRIOR.....MASTERTRONIC '88",#0D ;1 DEFB "#0A SLIGHTLY MAGIC.....................",#0D ;2 DEFB ".ASTONISHING ANIMATIONS/CODEMASTERS '90",#0D ;3 DEFB "#0B LICENSE TO KILL..........DOMARK '89",#0D ;4 DEFB "#0C MONTE CARLO CASINO..CODEMASTERS '??",#0D ;5 DEFB "#0D AMAUROTE V1.0......MASTERTRONIC '87",#0D ;6 DEFB "#0E ROGUE TROOPER+++..MACMILLAN LTD '86",#0D ;7 DEFB "#0F ROAD WARS..........................",#0D ;8 DEFB "....ARCADIA SYSTEMS/MELBOURNE HOUSE '86",#0D ;9 DEFB "#10 SCOOBY DOO IN THE CASTLE MYSTERY...",#0D ;A DEFB ".....................ELITE SOFTWARE '86",#0D ;B DEFB "#11 ORBIX - THE TERRORBALL.............",#0D ;C DEFB "......................JOHN PRAGNELL '??",#0D ;D DEFB " WAIT FOR OTHER COOL CRACKS!",#0D ENT ENDOBJ ORG #6000
20.982364
64
0.377381
68be4de460335f9f9573317d1619492cc028202a
598
asm
Assembly
oeis/158/A158481.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/158/A158481.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/158/A158481.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A158481: 49n^2 + 7. ; Submitted by Christian Krause ; 56,203,448,791,1232,1771,2408,3143,3976,4907,5936,7063,8288,9611,11032,12551,14168,15883,17696,19607,21616,23723,25928,28231,30632,33131,35728,38423,41216,44107,47096,50183,53368,56651,60032,63511,67088,70763,74536,78407,82376,86443,90608,94871,99232,103691,108248,112903,117656,122507,127456,132503,137648,142891,148232,153671,159208,164843,170576,176407,182336,188363,194488,200711,207032,213451,219968,226583,233296,240107,247016,254023,261128,268331,275632,283031,290528,298123,305816,313607 add $0,1 pow $0,2 mul $0,7 add $0,1 mul $0,7
59.8
497
0.801003
566830f8a187d3c3cd13dc0de01ad5d6e87b6d04
218
asm
Assembly
text/maps/route_2_gate.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
text/maps/Route2Gate.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
text/maps/Route2Gate.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2019-12-09T19:46:02.000Z
2020-12-05T21:36:30.000Z
_Route2GateText_5d616:: text "The HM FLASH" line "lights even the" cont "darkest dungeons." done _Route2GateText2:: text "Once a #MON" line "learns FLASH, you" cont "can get through" cont "ROCK TUNNEL." done
16.769231
25
0.715596
d376144a409738c6892b8ef48b33d1da61abffd4
8,095
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1761.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1761.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1761.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 %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x4fb3, %r12 nop nop nop nop sub %rax, %rax movups (%r12), %xmm3 vpextrq $1, %xmm3, %r10 nop xor $47228, %r15 lea addresses_D_ht+0x17c23, %rbx nop nop nop nop nop add $1936, %r9 mov (%rbx), %r11d nop inc %r15 lea addresses_WT_ht+0xec63, %r11 cmp %r12, %r12 mov (%r11), %rax nop cmp $62071, %r11 lea addresses_WT_ht+0xc873, %rsi lea addresses_WC_ht+0x1aea3, %rdi clflush (%rdi) nop nop nop nop xor $25986, %r11 mov $16, %rcx rep movsb nop nop inc %rdi lea addresses_WT_ht+0x13b23, %rsi clflush (%rsi) nop nop nop sub $15580, %rdi and $0xffffffffffffffc0, %rsi vmovntdqa (%rsi), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $0, %xmm6, %r11 nop nop nop nop nop dec %rbx lea addresses_WC_ht+0xdf23, %rsi lea addresses_A_ht+0x810d, %rdi and %r12, %r12 mov $107, %rcx rep movsq nop nop nop nop nop dec %r12 lea addresses_UC_ht+0x7f1f, %rcx nop nop nop nop nop inc %rdi movl $0x61626364, (%rcx) nop nop inc %r11 lea addresses_normal_ht+0x923, %rsi nop nop cmp %r11, %r11 vmovups (%rsi), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $0, %xmm1, %r10 nop nop nop nop nop dec %r15 lea addresses_WC_ht+0x15723, %r12 clflush (%r12) nop nop nop nop add $19785, %r9 movl $0x61626364, (%r12) nop nop nop and %r10, %r10 lea addresses_normal_ht+0x14a1b, %rdi nop nop nop add %r9, %r9 mov (%rdi), %rsi nop nop nop add %r10, %r10 lea addresses_normal_ht+0x1a123, %rbx sub $38639, %r11 mov (%rbx), %r9w nop nop nop nop nop add $25313, %r15 lea addresses_D_ht+0xd323, %r9 nop nop and $53834, %rax mov (%r9), %r11w nop nop sub %rbx, %rbx lea addresses_UC_ht+0x8ec3, %rsi lea addresses_WT_ht+0xb323, %rdi clflush (%rdi) nop nop nop and %r12, %r12 mov $25, %rcx rep movsb nop nop cmp $53642, %r9 lea addresses_normal_ht+0x6623, %rcx nop nop nop nop nop and $33171, %rdi mov (%rcx), %rsi nop nop nop nop nop inc %r11 lea addresses_A_ht+0x13723, %rax nop nop xor %rbx, %rbx mov $0x6162636465666768, %r11 movq %r11, %xmm7 movups %xmm7, (%rax) nop dec %r15 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r15 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %rax push %rbp push %rbx push %rdi push %rsi // Store lea addresses_A+0x34c7, %rdi nop nop nop nop sub %rbx, %rbx movw $0x5152, (%rdi) nop nop xor %r13, %r13 // Faulty Load lea addresses_RW+0xe323, %r13 nop xor $41542, %rax vmovups (%r13), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $1, %xmm1, %rsi lea oracles, %r14 and $0xff, %rsi shlq $12, %rsi mov (%r14,%rsi,1), %rsi pop %rsi pop %rdi pop %rbx pop %rbp pop %rax pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 2, 'size': 2, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 6, 'size': 8, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 9, 'size': 32, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 9, 'size': 4, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 5, 'size': 2, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 11, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 8, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 9, 'size': 16, 'same': True, 'NT': False}} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
31.621094
2,999
0.656208
657a6135dae158f451f1f8b0285b74eeb78101c4
518
asm
Assembly
code/6/ex1.asm
GeekHades1/AssemblyCode
4078d97d8e31093ff7b54b72869f77e340b98391
[ "BSD-2-Clause" ]
1
2018-07-11T12:35:45.000Z
2018-07-11T12:35:45.000Z
code/6/ex1.asm
GeekHades1/AssemblyCode
4078d97d8e31093ff7b54b72869f77e340b98391
[ "BSD-2-Clause" ]
null
null
null
code/6/ex1.asm
GeekHades1/AssemblyCode
4078d97d8e31093ff7b54b72869f77e340b98391
[ "BSD-2-Clause" ]
null
null
null
; 使用内存中0:0-0:15改写程序中的数据 assume cs:code code segment dw 0123h, 0456h, 0789h, 0abch, 0defh, 0fedh, 0cbah, 0987h start: mov ax, 0 mov ds, ax mov bx, 0 mov cx, 8 s: mov ax, [bx] mov cs:[bx], ax add bx, 2 loop s mov ax, 4c00h int 21h code ends end start ; 内存中 0:0 - 0:15数据 ; 0000:0000 68 10 A7 00 BB 13 3A 05-16 00 8E 03 B1 13 3A 05 ; 数据段 ; 0B28:0000 23 01 56 04 89 07 BC 0A-EF 0D ED 0F BA 0C 87 09 ; 修改后的数据段 ; 0B28:0000 68 10 A7 00 BB 13 3A 05-16 00 8E 03 B1 13 3A 05
19.923077
61
0.604247
90b4537283639f669dd99683b6cbfb8e04a606ad
5,302
asm
Assembly
apps/breakfast/pde_fw/toast/examples/Assembly (CCE)/msp430x24x_uscib0_i2c_01.asm
tp-freeforall/breakfast
0399619cdb7a81b3c3cc4c5a1b7d69f5c32b8c65
[ "BSD-3-Clause" ]
1
2020-05-15T18:08:48.000Z
2020-05-15T18:08:48.000Z
apps/breakfast/toast/msp430-code-examples/Assembly (CCE)/msp430x24x_uscib0_i2c_01.asm
tp-freeforall/breakfast
0399619cdb7a81b3c3cc4c5a1b7d69f5c32b8c65
[ "BSD-3-Clause" ]
null
null
null
apps/breakfast/toast/msp430-code-examples/Assembly (CCE)/msp430x24x_uscib0_i2c_01.asm
tp-freeforall/breakfast
0399619cdb7a81b3c3cc4c5a1b7d69f5c32b8c65
[ "BSD-3-Clause" ]
null
null
null
;******************************************************************************* ; MSP430x24x Demo - USCI_B0 I2C Master to TMP100, Set P1.0 if Temp > 28C ; ; Description: I2C interface to TMP100 temperature sensor in 9-bit mode. ; Timer_A CCR0 interrupt is used to wake up and read the two bytes of ; the TMP100 temperature register every 62ms. If the temperature is greater ; than 28C, P1.0 is set, else reset. CPU is operated in LPM0. I2C speed ; is ~100kHz. ; ACLK = n/a, MCLK = SMCLK = TACLK = BRCLK = default DCO = ~1.045MHz ; ; /|\ /|\ /|\ ; | TMP100 10k 10k MSP430F249 ; | ------- | | ------------------- ; +--|Vcc SDA|<-|---+->|P3.1/UCB0SDA XIN|- ; | | | | | | ; +--|A1,A0 | | | XOUT|- ; | | | | | ; +--|Vss SCL|<-+------|P3.2/UCB0SCL P1.0|---> LED ; \|/ ------- | | ; ; JL Bile ; Texas Instruments Inc. ; May 2008 ; Built Code Composer Essentials: v3 FET ;******************************************************************************* .cdecls C,LIST, "msp430x24x.h" ;------------------------------------------------------------------------------- .text ;Program Start ;------------------------------------------------------------------------------- RESET mov.w #0500h,SP ; Initialize stackpointer StopWDT mov.w #WDTPW+WDTHOLD,&WDTCTL ; Stop WDT SetupP1 bis.b #01h,&P1DIR ; P1.0 output SetupP3 bis.b #06h,&P3SEL ; Assign I2C pins to USCI_B0 SetupUCB0 bis.b #UCSWRST,&UCB0CTL1 ; Enable SW reset mov.b #UCMST+UCMODE_3+UCSYNC,&UCB0CTL0 ; I2C Master, synchronous mode mov.b #UCSSEL_2+UCSWRST,&UCB0CTL1 ; Use SMCLK, keep SW reset mov.b #12,&UCB0BR0 ; fSCL = SMCLK/12 = ~100kHz mov.b #00,&UCB0BR1 mov.w #04Eh,&UCB0I2CSA ; Set slave address bic.b #UCSWRST,&UCB0CTL1 ; Clear SW reset, resume operation bis.b #UCB0RXIE,&IE2 ; Enable RX interrupt SetupTA mov.w #TASSEL_2+MC_2,&TACTL ; SMCLK, contmode Mainloop mov.w #2,R6 ; Load RX byte counter bis.b #UCTXSTT,&UCB0CTL1 ; I2C start condition bis.w #CPUOFF+GIE,SR ; Enter LPM0, enable interrupts ; Remain in LPM0 until all data ; is RX'd cmp.w #01D00h,R4 ; >28C? jlo Low_Temp bis.b #01h,&P1OUT ; P1.0 = 1 jmp Wait_Next Low_Temp bic.b #01h,&P1OUT ; P1.0 = 0 Wait_Next dint bis.w #CCIE,&TACCTL0 ; TACCR0 interrupt enabled bis.w #CPUOFF+GIE,SR ; CPU off, interrupts enabled ; Remain in LPM0 until TACCR0 ; interrupt occurs bic.w #CCIE,&TACCTL0 ; TACCR0 interrupt disabled jmp Mainloop ;------------------------------------------------------------------------------- TA0_ISR ;------------------------------------------------------------------------------- bic.w #CPUOFF,0(SP) ; Exit LPM0 reti ;------------------------------------------------------------------------------- ; The USCIAB0TX_ISR is structured such that it can be used to receive any ; 2+ number of bytes by pre-loading R6 with the byte count. ;------------------------------------------------------------------------------- USCIAB0TX_ISR; USCI_B0 Data ISR ;------------------------------------------------------------------------------- dec.w R6 ; Decrement RX byte counter jz USCIAB0TX_ISR_2 ; Jump if all bytes were RX'd mov.b &UCB0RXBUF,R4 ; Get received byte swpb R4 ; Move into MSB cmp.w #1,R6 ; Only one byte left? jeq USCIAB0TX_ISR_1 ; Jump if yes reti USCIAB0TX_ISR_1 bis.b #UCTXSTP,&UCB0CTL1 ; Generate I2C stop condition reti USCIAB0TX_ISR_2 mov.b &UCB0RXBUF,R5 ; Get final received byte bis.w R5,R4 ; Combine MSB and LSB bic.w #CPUOFF,0(SP) ; Exit LPM0 reti ;------------------------------------------------------------------------------- ; Interrupt Vectors ;------------------------------------------------------------------------------- .sect ".int25" ; Timer_A0 Vector .short TA0_ISR .sect ".int22" ; USCI_B0 I2C Data Int Vector .short USCIAB0TX_ISR .sect ".reset" ; POR, ext. Reset, Watchdog .short RESET .end
51.475728
81
0.377405
7bf432f9950e86fccf6edaadb115e250bb0e963f
1,487
asm
Assembly
Modul 5/counter1.asm
hyuwah/fu-praktikum-smd
a06fe109a42aa96e75f9a425a0905d6bfbfdfc7e
[ "MIT" ]
null
null
null
Modul 5/counter1.asm
hyuwah/fu-praktikum-smd
a06fe109a42aa96e75f9a425a0905d6bfbfdfc7e
[ "MIT" ]
null
null
null
Modul 5/counter1.asm
hyuwah/fu-praktikum-smd
a06fe109a42aa96e75f9a425a0905d6bfbfdfc7e
[ "MIT" ]
null
null
null
;------------------------------------------------------------------- ; Praktikum SMD 2015 ; M.Wahyudin (140310120031) ; ; Name : LATIH25.ASM (COUNTER1) ; Desc : Pencacah dengan counter 0 mode 2 ; Kapanpun nibble bawah (TL0) pencacah overflow, ; nibble atas (TH0) akan disalin ke nibble bawah (TL0) ; Input : P3.4 masukkan pencacah ; Output: 7Seg(P1) ;------------------------------------------------------------------- setb T0 ;menyiapkan T0 sebagai masukkan mov Tmod,#86h ;konfigurasi counter 0 mode 2 mov TH0,#0 ;nilai reload setb TR0 ;menyalakan counter 0 mov b,#0 ;nilai cacahan awal mov a,b ;isi a dengan b lcall display ;ambil pola tampilan mov p1,a ;tampilkan digit mov a,b ;mengambil nilai cacahan lagi loop: mov a,TL0 ;mengambil nilai cacahan dar TL0 anl a,#0Fh ;modulus 0Fh xrl a,b ;membandingkan dengan nilai cacahan sekarang jz loop ;ulang jika sama inc b ;jika tak sama cacah b anl b,#0Fh ;modulus 0Fh mov a,b lcall display mov p1,a mov a,b mov a,TH0 ;mengisi a dengan nibble atas counter mov a,TL0 ;mengisi a dengan nibble bawah counter sjmp loop display: inc a movc a,@a+pc ret db 3fh ;0 db 06h ;1 db 5bh ;2 db 4fh ;3 db 66h ;4 db 6dh ;5 db 7dh ;6 db 07h ;7 db 7fh ;8 db 67h ;9 db 77h ;a db 7ch ;b db 39h ;c db 5eh ;d db 79h ;e db 71h ;f end
23.983871
68
0.551446
65f68662c7d1e5d67575ca32356fdb132588493e
682
asm
Assembly
oeis/346/A346550.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/346/A346550.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/346/A346550.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A346550: Expansion of Sum_{k>=0} k! * x^k * (1 + x)^(k+1). ; Submitted by Jamie Morken(w4) ; 1,2,4,13,54,278,1704,12126,98280,893904,9017280,99918120,1206500400,15768729360,221792780160,3340515069360,53641756586880,914849722725120,16514863528665600,314599179867396480,6306817346711481600,132727279189258656000,2925723895944403276800,67412645263440790790400,1620581495151303638553600,40576473010731862920038400,1056482330501452470987571200,28562549396473151237495116800,800731318453659394044122880000,23247773387374839325207708723200,698179822699908994195024834560000 add $0,1 lpb $0 sub $0,1 mov $3,$4 bin $3,$1 add $1,1 mul $2,$4 add $2,$3 mov $4,$0 lpe mov $0,$2
42.625
475
0.806452
a0789028753fe921e96c0706f67c336a6629f722
385
asm
Assembly
cicloFor.asm
edoardottt/Asm_mars_examples
4c763ef94a7345a03313b1626aed9642e07e0dad
[ "Unlicense" ]
21
2019-06-29T19:56:20.000Z
2021-09-08T08:06:52.000Z
cicloFor.asm
edoardottt/Asm_mars_examples
4c763ef94a7345a03313b1626aed9642e07e0dad
[ "Unlicense" ]
null
null
null
cicloFor.asm
edoardottt/Asm_mars_examples
4c763ef94a7345a03313b1626aed9642e07e0dad
[ "Unlicense" ]
7
2019-10-11T19:30:48.000Z
2022-02-11T08:08:53.000Z
.text #ESEMPIO CICLO FOR xor $t0,$t0,$t0 #inizializzazione registro (indice) a zero. for: beq $t0,60,endFor #condizione di uscita dal ciclo addi $t1,$t1,1 #aggiornamento variabile addi $t0,$t0,1 #aggiornamento indice j for #salto incondizionato endFor: li $v0,1 #stampa valore finale move $a0,$t1 syscall
27.5
68
0.6
e4fd1b267e55078b3a6faeee63108c280c5340c4
300
asm
Assembly
programs/oeis/070/A070470.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/070/A070470.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/070/A070470.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A070470: a(n) = n^2 mod 48. ; 0,1,4,9,16,25,36,1,16,33,4,25,0,25,4,33,16,1,36,25,16,9,4,1,0,1,4,9,16,25,36,1,16,33,4,25,0,25,4,33,16,1,36,25,16,9,4,1,0,1,4,9,16,25,36,1,16,33,4,25,0,25,4,33,16,1,36,25,16,9,4,1,0,1,4,9,16,25,36,1,16,33,4,25,0,25,4,33,16,1,36,25,16,9,4,1,0,1,4,9 pow $0,2 mod $0,48
50
249
0.583333
fbde98bb2e456d5e81baa1036220e3c1539befa2
8,613
asm
Assembly
Appl/Bindery/Document/documentDisplay.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Appl/Bindery/Document/documentDisplay.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Appl/Bindery/Document/documentDisplay.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @---------------------------------------------------------------------- Copyright (c) Geoworks 1992-1994 -- All Rights Reserved PROJECT: GEOS MODULE: Studio FILE: documentDisplay.asm ROUTINES: Name Description ---- ----------- INT GCNCommon Do a little extra work while we're coming up INT UpdateRuler Update the usable/not-usable status of something METHODS: Name Description ---- ----------- StudioDisplayBuildBranch Do a little extra work while we're coming up MSG_SPEC_BUILD_BRANCH, MSG_VIS_OPEN StudioDisplayClass StudioDisplayUnbuildBranch Do a little extra work while we're leaving MSG_SPEC_UNBUILD_BRANCH, MSG_VIS_CLOSE StudioDisplayClass StudioMainDisplayUpdateRulers Update the usable/not-usable status of the rulers MSG_STUDIO_DISPLAY_UPDATE_RULERS StudioMainDisplayClass StudioMasterPageDisplayUpdateRulers Update the usable/not-usable status of the rulers MSG_STUDIO_DISPLAY_UPDATE_RULERS StudioMasterPageDisplayClass StudioMasterPageDisplaySetDocumentAndMP Set the document MSG_STUDIO_MASTER_PAGE_DISPLAY_SET_DOCUMENT_AND_MP StudioMasterPageDisplayClass StudioMasterPageDisplayClose Close a master page MSG_GEN_DISPLAY_CLOSE StudioMasterPageDisplayClass REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 3/92 Initial version DESCRIPTION: This file contains the VisContent related code for StudioDocumentClass $Id: documentDisplay.asm,v 1.1 97/04/04 14:38:39 newdeal Exp $ ------------------------------------------------------------------------------@ idata segment StudioDisplayClass StudioMainDisplayClass StudioMasterPageDisplayClass idata ends ;----- DocOpenClose segment resource COMMENT @---------------------------------------------------------------------- MESSAGE: StudioDisplayBuildBranch -- MSG_SPEC_BUILD_BRANCH for StudioDisplayClass DESCRIPTION: Do a little extra work while we're coming up PASS: *ds:si - instance data es - segment of StudioDisplayClass ax - The message bp - SpecBuildFlags RETURN: DESTROYED: bx, si, di, ds, es (message handler) REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 6/11/92 Initial version ------------------------------------------------------------------------------@ StudioDisplayBuildBranch method dynamic StudioDisplayClass, MSG_SPEC_BUILD_BRANCH, MSG_VIS_OPEN ; add ourself to the display GCN list now so that we can immediately ; set our rulers not usable if needed mov di, MSG_META_GCN_LIST_ADD call GCNCommon mov di, offset StudioDisplayClass GOTO ObjCallSuperNoLock StudioDisplayBuildBranch endm ;--- StudioDisplayUnbuildBranch method dynamic StudioDisplayClass, MSG_SPEC_UNBUILD_BRANCH, MSG_VIS_CLOSE mov di, offset StudioDisplayClass call ObjCallSuperNoLock ; add ourself to the display GCN list now so that we can immediately ; set our rulers not usable if needed mov di, MSG_META_GCN_LIST_REMOVE call GCNCommon ret StudioDisplayUnbuildBranch endm ;--- GCNCommon proc near push ax, si, bp sub sp, size GCNListParams ; create stack frame mov bp, sp mov ss:[bp].GCNLP_ID.GCNLT_manuf, MANUFACTURER_ID_GEOWORKS mov ss:[bp].GCNLP_ID.GCNLT_type, GAGCNLT_DISPLAY_OBJECTS_WITH_RULERS mov bx, ds:[LMBH_handle] mov ss:[bp].GCNLP_optr.handle, bx mov ss:[bp].GCNLP_optr.chunk, si mov dx, size GCNListParams ; create stack frame clr bx call GeodeGetAppObject mov_tr ax, di mov di, mask MF_STACK or mask MF_FIXUP_DS call ObjMessage add sp, size GCNListParams ; fix stack pop ax, si, bp ret GCNCommon endp COMMENT @---------------------------------------------------------------------- MESSAGE: StudioMainDisplayUpdateRulers -- MSG_STUDIO_DISPLAY_UPDATE_RULERS for StudioMainDisplayClass DESCRIPTION: Update the usable/not-usable status of the rulers PASS: *ds:si - instance data es - segment of StudioMainDisplayClass ax - The message cx - RulerShowControlAttributes RETURN: DESTROYED: bx, si, di, ds, es (message handler) REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 6/11/92 Initial version ------------------------------------------------------------------------------@ StudioMainDisplayUpdateRulers method dynamic StudioMainDisplayClass, MSG_STUDIO_DISPLAY_UPDATE_RULERS mov ax, mask RSCA_SHOW_VERTICAL mov si, offset MainVerticalRulerView call UpdateRuler mov ax, mask RSCA_SHOW_HORIZONTAL mov si, offset MainHorizontalRulerView call UpdateRuler mov ax, mask RSCA_SHOW_VERTICAL or mask RSCA_SHOW_HORIZONTAL mov si, offset CornerGlyph call UpdateRuler ret StudioMainDisplayUpdateRulers endm ;--- StudioMasterPageDisplayUpdateRulers method dynamic \ StudioMasterPageDisplayClass, MSG_STUDIO_DISPLAY_UPDATE_RULERS mov ax, mask RSCA_SHOW_VERTICAL mov si, offset MPVerticalRulerView call UpdateRuler mov ax, mask RSCA_SHOW_HORIZONTAL mov si, offset MPHorizontalRulerView call UpdateRuler mov ax, mask RSCA_SHOW_VERTICAL or mask RSCA_SHOW_HORIZONTAL mov si, offset MPCornerGlyph call UpdateRuler ret StudioMasterPageDisplayUpdateRulers endm COMMENT @---------------------------------------------------------------------- FUNCTION: UpdateRuler DESCRIPTION: Update the usable/not-usable status of something CALLED BY: INTERNAL PASS: *ds:si - object ax - bits to check for cx - RulerShowControlAttributes RETURN: none DESTROYED: bx, dx, di REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 6/11/92 Initial version ------------------------------------------------------------------------------@ UpdateRuler proc near uses cx .enter mov bx, ax and bx, cx cmp ax, bx mov ax, MSG_GEN_SET_USABLE jz 20$ mov ax, MSG_GEN_SET_NOT_USABLE 20$: mov dl, VUM_NOW call ObjCallInstanceNoLock .leave ret UpdateRuler endp DocOpenClose ends DocEditMP segment resource COMMENT @---------------------------------------------------------------------- MESSAGE: StudioMasterPageDisplaySetDocumentAndMP -- MSG_STUDIO_MASTER_PAGE_DISPLAY_SET_DOCUMENT_AND_MP for StudioMasterPageDisplayClass DESCRIPTION: Set the document PASS: *ds:si - instance data es - segment of StudioMasterPageDisplayClass ax - The message cx:dx - document bp - master page body block RETURN: DESTROYED: bx, si, di, ds, es (message handler) REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 6/ 5/92 Initial version ------------------------------------------------------------------------------@ StudioMasterPageDisplaySetDocumentAndMP method dynamic \ StudioMasterPageDisplayClass, MSG_STUDIO_MASTER_PAGE_DISPLAY_SET_DOCUMENT_AND_MP movdw ds:[di].SMPDI_document, cxdx mov ds:[di].SMPDI_bodyVMBlock, bp ret StudioMasterPageDisplaySetDocumentAndMP endm COMMENT @---------------------------------------------------------------------- MESSAGE: StudioMasterPageDisplayClose -- MSG_GEN_DISPLAY_CLOSE for StudioMasterPageDisplayClass DESCRIPTION: Close a master page PASS: *ds:si - instance data es - segment of StudioMasterPageDisplayClass ax - The message RETURN: DESTROYED: bx, si, di, ds, es (message handler) REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 6/ 5/92 Initial version ------------------------------------------------------------------------------@ StudioMasterPageDisplayClose method dynamic StudioMasterPageDisplayClass, MSG_GEN_DISPLAY_CLOSE ; we need to tell the associated document to close itsself movdw bxsi, ds:[di].SMPDI_document mov cx, ds:[di].SMPDI_bodyVMBlock mov ax, MSG_STUDIO_DOCUMENT_CLOSE_MASTER_PAGE call DEMP_ObjMessageNoFlags ret StudioMasterPageDisplayClose endm DocEditMP ends
22.371429
80
0.652618
bd8ee0f9928c9fc7c5574f857e6aba3b1b3a8c00
148
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/NES_Ver2/us_asm/zel_char0.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/NES_Ver2/us_asm/zel_char0.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/NES_Ver2/us_asm/zel_char0.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: zel_char0.asm Type: file Size: 109801 Last-Modified: '2016-05-13T04:27:09Z' SHA-1: D21E906EA1D155C52324AF8787CEB4FCFB18EC0E Description: null
21.142857
47
0.817568
3a8f8b51c74ea73fd2846269b0d230475e60fb47
6,812
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_849.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_849.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_849.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r8 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x12a46, %rsi lea addresses_UC_ht+0xaa46, %rdi xor %rdx, %rdx mov $56, %rcx rep movsw nop nop nop dec %r13 lea addresses_WT_ht+0x14066, %r8 nop nop nop nop cmp %rbp, %rbp mov $0x6162636465666768, %rdi movq %rdi, (%r8) inc %rdx lea addresses_UC_ht+0x1e2ba, %rsi lea addresses_WC_ht+0xa9c6, %rdi clflush (%rsi) nop nop nop nop inc %r9 mov $35, %rcx rep movsb nop nop nop sub $60646, %rcx lea addresses_UC_ht+0x1cc46, %rsi lea addresses_normal_ht+0x1ac06, %rdi and %rdx, %rdx mov $85, %rcx rep movsl nop nop nop nop nop xor %r8, %r8 lea addresses_WC_ht+0x7f06, %rdx nop nop sub %rdi, %rdi mov (%rdx), %ebp nop nop nop nop nop xor %rsi, %rsi lea addresses_normal_ht+0x1aa46, %r9 clflush (%r9) nop inc %rdx mov (%r9), %si nop nop nop nop nop cmp $9701, %rsi lea addresses_A_ht+0x11a46, %rcx cmp %rsi, %rsi mov (%rcx), %bp nop nop nop cmp %rdi, %rdi lea addresses_normal_ht+0xf246, %rsi lea addresses_UC_ht+0xb5c6, %rdi nop sub %r8, %r8 mov $106, %rcx rep movsw nop nop nop nop nop and $52600, %rsi lea addresses_A_ht+0x12106, %rsi lea addresses_UC_ht+0x17ff6, %rdi nop add %rbp, %rbp mov $42, %rcx rep movsb nop inc %rdx lea addresses_WT_ht+0x78d8, %rsi lea addresses_WC_ht+0x110a9, %rdi sub $60677, %rdx mov $19, %rcx rep movsb nop nop nop sub %r9, %r9 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r8 pop %r13 ret .global s_faulty_load s_faulty_load: push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi // Load lea addresses_A+0x15446, %rdi dec %rbp vmovups (%rdi), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $0, %xmm7, %rdx nop nop nop add $18879, %rsi // Faulty Load lea addresses_normal+0x12246, %rcx nop nop nop nop nop and %rsi, %rsi mov (%rcx), %bx lea oracles, %rsi and $0xff, %rbx shlq $12, %rbx mov (%rsi,%rbx,1), %rbx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 9, 'size': 32, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 5, 'size': 8, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 6, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 8, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
37.021739
2,999
0.660012
ccba432cc3749b9dd7e57af092e52667db20fdc5
3,276
asm
Assembly
hashes/md2.asm
FloydZ/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
11
2015-03-17T10:31:23.000Z
2022-01-21T17:42:43.000Z
hashes/md2.asm
0xFF1E071F/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
null
null
null
hashes/md2.asm
0xFF1E071F/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
6
2018-01-29T16:06:36.000Z
2021-05-08T19:22:24.000Z
.data MD2pi_subst label dword db 41, 46, 67,201,162,216,124, 1, 61, 54, 84,161,236,240, 6, 19 db 98,167, 5,243,192,199,115,140,152,147, 43,217,188, 76,130,202 db 30,155, 87, 60,253,212,224, 22,103, 66,111, 24,138, 23,229, 18 db 190, 78,196,214,218,158,222, 73,160,251,245,142,187, 47,238,122 db 169,104,121,145, 21,178, 7, 63,148,194, 16,137, 11, 34, 95, 33 db 128,127, 93,154, 90,144, 50, 39, 53, 62,204,231,191,247,151, 3 db 255, 25, 48,179, 72,165,181,209,215, 94,146, 42,172, 86,170,198 db 79,184, 56,210,150,164,125,182,118,252,107,226,156,116, 4,241 db 69,157,112, 89,100,113,135, 32,134, 91,207,101,230, 45,168, 2 db 27, 96, 37,173,174,176,185,246, 28, 70, 97,105, 52, 64,126, 15 db 85, 71,163, 35,221, 81,175, 58,195, 92,249,206,186,197,234, 38 db 44, 83, 13,110,133, 40,132, 9,211,223,205,244, 65,129, 77, 82 db 106,220, 55,200,108,193,171,250, 36,225,123, 8, 12,189,177, 74 db 120,136,149,139,227, 99,232,109,233,203,213,254, 59, 0, 29, 57 db 242,239,183, 14,102, 88,208,228,166,119,114,248,235,117, 75, 10 db 49, 68, 80,180,143,237, 31, 26,219,153,141, 51,159, 17,131, 20 .data? ; Digest - 16 bytes ; Transform Buffer - 32 bytes ; Checksum - 16 bytes MD2HashBuf db 64 dup(?) dd ? MD2Len dd ? .code align dword MD2Transform proc pushad mov ebp,offset MD2HashBuf sub esp,4 Tmp equ dword ptr [esp] mov eax,[ebp+16+0*4] mov ebx,[ebp+16+1*4] mov ecx,[ebp+16+2*4] mov edx,[ebp+16+3*4] xor eax,[ebp+0*4] xor ebx,[ebp+1*4] xor ecx,[ebp+2*4] xor edx,[ebp+3*4] mov [ebp+32+0*4],eax mov [ebp+32+1*4],ebx mov [ebp+32+2*4],ecx mov [ebp+32+3*4],edx movzx edx,byte ptr [ebp+63] mov edi,-24 .repeat MD21 macro ii movzx ecx,byte ptr [ebp+edi+24+16+ii] movzx eax,byte ptr [ebp+edi+24+16+32+ii] xor edx,ecx movzx ebx,byte ptr [MD2pi_subst+edx] xor eax,ebx mov [ebp+edi+24+16+32+ii],al mov edx,eax endm MD21 0 MD21 1 MD21 2 MD21 3 add edi,4 .until ZERO? xor eax,eax mov esi,offset MD2HashBuf xor edx,edx mov ebp,-48 .repeat .repeat MD22 macro ii movzx ebx,byte ptr [esi+ebp+48+ii] movzx eax,byte ptr [MD2pi_subst+eax] xor eax,ebx mov [esi+ebp+48+ii],al endm MD22 0 MD22 1 MD22 2 MD22 3 add ebp,4 .until ZERO? add eax,edx inc edx and eax,0FFh cmp edx,18 mov ebp,-48 .until ZERO? add esp,4 popad ret MD2Transform endp align dword MD2Init proc uses edi xor eax, eax mov MD2Len,eax mov edi,offset MD2HashBuf mov ecx,(sizeof MD2HashBuf)/4 rep stosd mov eax,offset MD2HashBuf ret MD2Init endp align dword MD2Update proc uses esi edi ebx lpBuffer:dword, dwBufLen:dword mov ebx,dwBufLen mov esi,lpBuffer .while ebx mov eax,MD2Len mov edx,16 sub edx,eax .if ebx<edx mov edx,ebx .endif lea edi,[MD2HashBuf+eax+16] mov ecx,edx rep movsb sub ebx,edx add eax,edx .if eax == 16 call MD2Transform xor eax,eax .endif mov MD2Len,eax .endw ret MD2Update endp align dword MD2Final proc uses esi edi mov eax,MD2Len mov edx,16 sub edx,eax lea edi,[MD2HashBuf+eax+16] and edx,0FFh mov eax,edx mov ecx,edx rep stosb call MD2Transform mov esi,offset [MD2HashBuf+48];Checksum mov edi,offset [MD2HashBuf+16];Buffer mov ecx,16 rep movsb call MD2Transform mov eax,offset MD2HashBuf ret MD2Final endp
21.695364
66
0.668193
c1b2555ebb8c61c6ed2addcbe96327471aa63bfd
1,411
asm
Assembly
source/expression/integer/random.asm
paulscottrobson/x16-basic
75ad512093e4565c569780557a3f65aefb956979
[ "MIT" ]
1
2020-02-08T15:30:11.000Z
2020-02-08T15:30:11.000Z
source/expression/integer/random.asm
paulscottrobson/x16-basic
75ad512093e4565c569780557a3f65aefb956979
[ "MIT" ]
1
2020-11-10T17:11:35.000Z
2020-11-11T09:52:43.000Z
source/expression/integer/random.asm
paulscottrobson/x16-basic
75ad512093e4565c569780557a3f65aefb956979
[ "MIT" ]
1
2021-05-14T11:06:04.000Z
2021-05-14T11:06:04.000Z
; ***************************************************************************** ; ***************************************************************************** ; ; Name : random.asm ; Purpose : Random functions ; Author : Paul Robson (paul@robsons.org.uk) ; Date : 8th February 2020 ; ; ***************************************************************************** ; ***************************************************************************** ; ***************************************************************************** ; ; Random number 16 bit ; ; ***************************************************************************** RandomNumber: ;; random( jsr AdvanceRandomSeed ; bytes seperately as zero problem. sta xsIntLow,x jsr AdvanceRandomSeed sta xsIntHigh,x stz xsStatus,x jsr SyntaxCheckRightBracket ; check followed by ) rts ; ***************************************************************************** ; ; LFSR Random Number Generator ; ; ***************************************************************************** AdvanceRandomSeed: lda randomSeed ora randomSeed+1 bne _RH_NoInit lda #$7C sta randomSeed lda #$A1 sta randomSeed+1 _RH_NoInit: lda randomSeed lsr a rol randomSeed+1 bcc _RH_NoEor eor #$B4 _RH_NoEor: sta randomSeed eor randomSeed+1 rts
27.666667
79
0.344437
dac4d952533acf8914cd673c9d11ccbfefd2becb
1,772
asm
Assembly
programs/oeis/193/A193872.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/193/A193872.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/193/A193872.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A193872: Even dodecagonal numbers: 4*n*(5*n - 2). ; 0,12,64,156,288,460,672,924,1216,1548,1920,2332,2784,3276,3808,4380,4992,5644,6336,7068,7840,8652,9504,10396,11328,12300,13312,14364,15456,16588,17760,18972,20224,21516,22848,24220,25632,27084,28576,30108,31680,33292,34944,36636,38368,40140,41952,43804,45696,47628,49600,51612,53664,55756,57888,60060,62272,64524,66816,69148,71520,73932,76384,78876,81408,83980,86592,89244,91936,94668,97440,100252,103104,105996,108928,111900,114912,117964,121056,124188,127360,130572,133824,137116,140448,143820,147232,150684,154176,157708,161280,164892,168544,172236,175968,179740,183552,187404,191296,195228,199200,203212,207264,211356,215488,219660,223872,228124,232416,236748,241120,245532,249984,254476,259008,263580,268192,272844,277536,282268,287040,291852,296704,301596,306528,311500,316512,321564,326656,331788,336960,342172,347424,352716,358048,363420,368832,374284,379776,385308,390880,396492,402144,407836,413568,419340,425152,431004,436896,442828,448800,454812,460864,466956,473088,479260,485472,491724,498016,504348,510720,517132,523584,530076,536608,543180,549792,556444,563136,569868,576640,583452,590304,597196,604128,611100,618112,625164,632256,639388,646560,653772,661024,668316,675648,683020,690432,697884,705376,712908,720480,728092,735744,743436,751168,758940,766752,774604,782496,790428,798400,806412,814464,822556,830688,838860,847072,855324,863616,871948,880320,888732,897184,905676,914208,922780,931392,940044,948736,957468,966240,975052,983904,992796,1001728,1010700,1019712,1028764,1037856,1046988,1056160,1065372,1074624,1083916,1093248,1102620,1112032,1121484,1130976,1140508,1150080,1159692,1169344,1179036,1188768,1198540,1208352,1218204,1228096,1238028 mov $1,$0 mul $0,5 sub $0,2 mul $1,$0 mul $1,4
196.888889
1,671
0.83465
8d23201570e93898675b1b6a18dfb014af661fe9
1,852
asm
Assembly
src/sm/randomizer/patches.asm
PJBoy/alttp_sm_combo_randomizer_rom
4f14c87227b512a864d1f298e4a6efe7cbc373b3
[ "MIT" ]
31
2018-05-03T06:43:23.000Z
2021-07-16T13:17:01.000Z
src/sm/randomizer/patches.asm
PJBoy/alttp_sm_combo_randomizer_rom
4f14c87227b512a864d1f298e4a6efe7cbc373b3
[ "MIT" ]
13
2018-05-08T20:15:54.000Z
2022-01-20T21:28:53.000Z
src/sm/randomizer/patches.asm
PJBoy/alttp_sm_combo_randomizer_rom
4f14c87227b512a864d1f298e4a6efe7cbc373b3
[ "MIT" ]
26
2018-05-04T12:25:41.000Z
2022-03-23T20:27:57.000Z
; Removes Gravity Suit heat protection org $cde37d db $01 org $d0e9dd db $01 ; Suit acquisition animation skip org $c48717 db $ea, $ea, $ea, $ea ; Fix Morph & Missiles room state ; org $cfe652 ; morph_missiles: ; lda.l $7ed873 ; beq .no_items ; bra .items ; org $cfe65f ; .items ; org $cfe666 ; .no_items ; Set morph and missiles room state to always active org $cfe658 db $ea, $ea org $cfe65d db $ea, $ea ; Fix heat damage speed echoes bug org $d1b629 db $01 ; Disable GT Code org $eac91c db $80 ; Disable Space/time org $c2b175 db $01 ; Fix Morph Ball Hidden/Chozo PLM's org $c4e8ce db $04 org $c4ee02 db $04 ; Fix Screw Attack selection in menu org $c2b4c5 db $0c ; Mother Brain Cutscene Edits org $e98824 db $01, $00 org $e98848 db $01, $00 org $e98867 db $01, $00 org $e9887f db $01, $00 org $e98bdb db $04, $00 org $e9897d db $10, $00 org $e989af db $10, $00 org $e989e1 db $10, $00 org $e98a09 db $10, $00 org $e98a31 db $10, $00 org $e98a63 db $10, $00 org $e98a95 db $10, $00 org $e98b33 db $10, $00 org $e98dc6 db $b0 org $e98b8d db $12, $00 org $e98d74 db $00, $00 org $e98d86 db $00, $00 org $e98daf db $00, $01 org $e98e51 db $01, $00 org $e9b93a db $00, $01 org $e98eef db $0a, $00 org $e98f0f db $60, $00 org $e9af4e db $0a, $00 org $e9af0d db $0a, $00 org $e9b00d db $00, $00 org $e9b132 db $40, $00 org $e9b16d db $00, $00 org $e9b19f db $20, $00 org $e9b1b2 db $30, $00 org $e9b20c db $03, $00 ; Fix door event bits org $c38bd0 db $40 org $c397c4 db $40 org $c398a8 db $40 org $c3a896 db $40 org $cf86ec db $23, $EF, $45, $29, $1A, $00 org $c55ef0 incbin "data/morphroom.bin" org $c562e4 db $ff, $ff, $ff, $ff
13.518248
52
0.587473
ff9cdfb9edee94f30aa5c67df2fa60c2746bfc4e
1,788
asm
Assembly
PestRidDrv/i386/PestRidx86.asm
GregoryMorse/PestRid
e9670a020f13c0fab8de18a8d54a8caf13e673c5
[ "Unlicense" ]
3
2016-08-30T09:19:12.000Z
2019-04-09T06:46:59.000Z
PestRidDrv/i386/PestRidx86.asm
GregoryMorse/PestRid
e9670a020f13c0fab8de18a8d54a8caf13e673c5
[ "Unlicense" ]
null
null
null
PestRidDrv/i386/PestRidx86.asm
GregoryMorse/PestRid
e9670a020f13c0fab8de18a8d54a8caf13e673c5
[ "Unlicense" ]
null
null
null
.model small, C .686p .code public _getidt@4 _getidt@4 PROC\ idtstruct:ptr fword sidt idtstruct ret _getidt@4 ENDP public _getgdt@4 _getgdt@4 PROC\ gdtstruct:ptr fword sgdt gdtstruct ret _getgdt@4 ENDP public _getldt@4 _getldt@4 PROC\ ldtstruct:ptr word sldt ldtstruct ret _getldt@4 ENDP public _gettr@4 _gettr@4 PROC\ trstruct:ptr word str trstruct ret _gettr@4 ENDP public _getmsw@4 _getmsw@4 PROC\ mswstruct:ptr word smsw mswstruct ret _getmsw@4 ENDP public _getcr0@4 _getcr0@4 PROC\ uses eax\ cr0struct:ptr dword mov eax, cr0 mov dword ptr [cr0struct], eax ret _getcr0@4 ENDP public _getcr2@4 _getcr2@4 PROC\ uses eax\ cr2struct:ptr dword mov eax, cr2 mov dword ptr [cr2struct], eax ret _getcr2@4 ENDP public _getcr3@4 _getcr3@4 PROC\ uses eax\ cr3struct:ptr dword mov eax, cr3 mov dword ptr [cr3struct], eax ret _getcr3@4 ENDP public _getcr4@4 _getcr4@4 PROC\ uses eax\ cr4struct:ptr dword mov eax, cr4 mov dword ptr [cr4struct], eax ret _getcr4@4 ENDP public _getdr0@4 _getdr0@4 PROC\ uses eax\ dr0struct:ptr dword mov eax, dr0 mov dword ptr [dr0struct], eax ret _getdr0@4 ENDP public _getdr1@4 _getdr1@4 PROC\ uses eax\ dr1struct:ptr dword mov eax, dr1 mov dword ptr [dr1struct], eax ret _getdr1@4 ENDP public _getdr2@4 _getdr2@4 PROC\ uses eax\ dr2struct:ptr dword mov eax, dr2 mov dword ptr [dr2struct], eax ret _getdr2@4 ENDP public _getdr3@4 _getdr3@4 PROC\ uses eax\ dr3struct:ptr dword mov eax, dr3 mov dword ptr [dr3struct], eax ret _getdr3@4 ENDP public _getdr6@4 _getdr6@4 PROC\ uses eax\ dr6struct:ptr dword mov eax, dr6 mov dword ptr [dr6struct], eax ret _getdr6@4 ENDP public _getdr7@4 _getdr7@4 PROC\ uses eax\ dr7struct:ptr dword mov eax, dr7 mov dword ptr [dr7struct], eax ret _getdr7@4 ENDP end
13.753846
30
0.748322
62cbe008dd8bfc68980b3a178cd9a2b3d781ab8f
33,068
asm
Assembly
ln.asm
keithczq/p4new
f4171492501f4ae145aa54f9b84593f869b8a847
[ "Xnet", "X11" ]
null
null
null
ln.asm
keithczq/p4new
f4171492501f4ae145aa54f9b84593f869b8a847
[ "Xnet", "X11" ]
null
null
null
ln.asm
keithczq/p4new
f4171492501f4ae145aa54f9b84593f869b8a847
[ "Xnet", "X11" ]
null
null
null
_ln: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 push %ebp b: 89 e5 mov %esp,%ebp d: 53 push %ebx e: 51 push %ecx f: 8b 59 04 mov 0x4(%ecx),%ebx if(argc != 3){ 12: 83 39 03 cmpl $0x3,(%ecx) 15: 74 14 je 2b <main+0x2b> printf(2, "Usage: ln old new\n"); 17: 83 ec 08 sub $0x8,%esp 1a: 68 fc 05 00 00 push $0x5fc 1f: 6a 02 push $0x2 21: e8 1d 03 00 00 call 343 <printf> exit(); 26: e8 be 01 00 00 call 1e9 <exit> } if(link(argv[1], argv[2]) < 0) 2b: 83 ec 08 sub $0x8,%esp 2e: ff 73 08 pushl 0x8(%ebx) 31: ff 73 04 pushl 0x4(%ebx) 34: e8 10 02 00 00 call 249 <link> 39: 83 c4 10 add $0x10,%esp 3c: 85 c0 test %eax,%eax 3e: 78 05 js 45 <main+0x45> printf(2, "link %s %s: failed\n", argv[1], argv[2]); exit(); 40: e8 a4 01 00 00 call 1e9 <exit> printf(2, "link %s %s: failed\n", argv[1], argv[2]); 45: ff 73 08 pushl 0x8(%ebx) 48: ff 73 04 pushl 0x4(%ebx) 4b: 68 0f 06 00 00 push $0x60f 50: 6a 02 push $0x2 52: e8 ec 02 00 00 call 343 <printf> 57: 83 c4 10 add $0x10,%esp 5a: eb e4 jmp 40 <main+0x40> 0000005c <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, const char *t) { 5c: 55 push %ebp 5d: 89 e5 mov %esp,%ebp 5f: 53 push %ebx 60: 8b 45 08 mov 0x8(%ebp),%eax 63: 8b 4d 0c mov 0xc(%ebp),%ecx char *os; os = s; while((*s++ = *t++) != 0) 66: 89 c2 mov %eax,%edx 68: 0f b6 19 movzbl (%ecx),%ebx 6b: 88 1a mov %bl,(%edx) 6d: 8d 52 01 lea 0x1(%edx),%edx 70: 8d 49 01 lea 0x1(%ecx),%ecx 73: 84 db test %bl,%bl 75: 75 f1 jne 68 <strcpy+0xc> ; return os; } 77: 5b pop %ebx 78: 5d pop %ebp 79: c3 ret 0000007a <strcmp>: int strcmp(const char *p, const char *q) { 7a: 55 push %ebp 7b: 89 e5 mov %esp,%ebp 7d: 8b 4d 08 mov 0x8(%ebp),%ecx 80: 8b 55 0c mov 0xc(%ebp),%edx while(*p && *p == *q) 83: eb 06 jmp 8b <strcmp+0x11> p++, q++; 85: 83 c1 01 add $0x1,%ecx 88: 83 c2 01 add $0x1,%edx while(*p && *p == *q) 8b: 0f b6 01 movzbl (%ecx),%eax 8e: 84 c0 test %al,%al 90: 74 04 je 96 <strcmp+0x1c> 92: 3a 02 cmp (%edx),%al 94: 74 ef je 85 <strcmp+0xb> return (uchar)*p - (uchar)*q; 96: 0f b6 c0 movzbl %al,%eax 99: 0f b6 12 movzbl (%edx),%edx 9c: 29 d0 sub %edx,%eax } 9e: 5d pop %ebp 9f: c3 ret 000000a0 <strlen>: uint strlen(const char *s) { a0: 55 push %ebp a1: 89 e5 mov %esp,%ebp a3: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) a6: ba 00 00 00 00 mov $0x0,%edx ab: eb 03 jmp b0 <strlen+0x10> ad: 83 c2 01 add $0x1,%edx b0: 89 d0 mov %edx,%eax b2: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) b6: 75 f5 jne ad <strlen+0xd> ; return n; } b8: 5d pop %ebp b9: c3 ret 000000ba <memset>: void* memset(void *dst, int c, uint n) { ba: 55 push %ebp bb: 89 e5 mov %esp,%ebp bd: 57 push %edi be: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : c1: 89 d7 mov %edx,%edi c3: 8b 4d 10 mov 0x10(%ebp),%ecx c6: 8b 45 0c mov 0xc(%ebp),%eax c9: fc cld ca: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } cc: 89 d0 mov %edx,%eax ce: 5f pop %edi cf: 5d pop %ebp d0: c3 ret 000000d1 <strchr>: char* strchr(const char *s, char c) { d1: 55 push %ebp d2: 89 e5 mov %esp,%ebp d4: 8b 45 08 mov 0x8(%ebp),%eax d7: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for(; *s; s++) db: 0f b6 10 movzbl (%eax),%edx de: 84 d2 test %dl,%dl e0: 74 09 je eb <strchr+0x1a> if(*s == c) e2: 38 ca cmp %cl,%dl e4: 74 0a je f0 <strchr+0x1f> for(; *s; s++) e6: 83 c0 01 add $0x1,%eax e9: eb f0 jmp db <strchr+0xa> return (char*)s; return 0; eb: b8 00 00 00 00 mov $0x0,%eax } f0: 5d pop %ebp f1: c3 ret 000000f2 <gets>: char* gets(char *buf, int max) { f2: 55 push %ebp f3: 89 e5 mov %esp,%ebp f5: 57 push %edi f6: 56 push %esi f7: 53 push %ebx f8: 83 ec 1c sub $0x1c,%esp fb: 8b 7d 08 mov 0x8(%ebp),%edi int i, cc; char c; for(i=0; i+1 < max; ){ fe: bb 00 00 00 00 mov $0x0,%ebx 103: 8d 73 01 lea 0x1(%ebx),%esi 106: 3b 75 0c cmp 0xc(%ebp),%esi 109: 7d 2e jge 139 <gets+0x47> cc = read(0, &c, 1); 10b: 83 ec 04 sub $0x4,%esp 10e: 6a 01 push $0x1 110: 8d 45 e7 lea -0x19(%ebp),%eax 113: 50 push %eax 114: 6a 00 push $0x0 116: e8 e6 00 00 00 call 201 <read> if(cc < 1) 11b: 83 c4 10 add $0x10,%esp 11e: 85 c0 test %eax,%eax 120: 7e 17 jle 139 <gets+0x47> break; buf[i++] = c; 122: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 126: 88 04 1f mov %al,(%edi,%ebx,1) if(c == '\n' || c == '\r') 129: 3c 0a cmp $0xa,%al 12b: 0f 94 c2 sete %dl 12e: 3c 0d cmp $0xd,%al 130: 0f 94 c0 sete %al buf[i++] = c; 133: 89 f3 mov %esi,%ebx if(c == '\n' || c == '\r') 135: 08 c2 or %al,%dl 137: 74 ca je 103 <gets+0x11> break; } buf[i] = '\0'; 139: c6 04 1f 00 movb $0x0,(%edi,%ebx,1) return buf; } 13d: 89 f8 mov %edi,%eax 13f: 8d 65 f4 lea -0xc(%ebp),%esp 142: 5b pop %ebx 143: 5e pop %esi 144: 5f pop %edi 145: 5d pop %ebp 146: c3 ret 00000147 <stat>: int stat(const char *n, struct stat *st) { 147: 55 push %ebp 148: 89 e5 mov %esp,%ebp 14a: 56 push %esi 14b: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 14c: 83 ec 08 sub $0x8,%esp 14f: 6a 00 push $0x0 151: ff 75 08 pushl 0x8(%ebp) 154: e8 d0 00 00 00 call 229 <open> if(fd < 0) 159: 83 c4 10 add $0x10,%esp 15c: 85 c0 test %eax,%eax 15e: 78 24 js 184 <stat+0x3d> 160: 89 c3 mov %eax,%ebx return -1; r = fstat(fd, st); 162: 83 ec 08 sub $0x8,%esp 165: ff 75 0c pushl 0xc(%ebp) 168: 50 push %eax 169: e8 d3 00 00 00 call 241 <fstat> 16e: 89 c6 mov %eax,%esi close(fd); 170: 89 1c 24 mov %ebx,(%esp) 173: e8 99 00 00 00 call 211 <close> return r; 178: 83 c4 10 add $0x10,%esp } 17b: 89 f0 mov %esi,%eax 17d: 8d 65 f8 lea -0x8(%ebp),%esp 180: 5b pop %ebx 181: 5e pop %esi 182: 5d pop %ebp 183: c3 ret return -1; 184: be ff ff ff ff mov $0xffffffff,%esi 189: eb f0 jmp 17b <stat+0x34> 0000018b <atoi>: int atoi(const char *s) { 18b: 55 push %ebp 18c: 89 e5 mov %esp,%ebp 18e: 53 push %ebx 18f: 8b 4d 08 mov 0x8(%ebp),%ecx int n; n = 0; 192: b8 00 00 00 00 mov $0x0,%eax while('0' <= *s && *s <= '9') 197: eb 10 jmp 1a9 <atoi+0x1e> n = n*10 + *s++ - '0'; 199: 8d 1c 80 lea (%eax,%eax,4),%ebx 19c: 8d 04 1b lea (%ebx,%ebx,1),%eax 19f: 83 c1 01 add $0x1,%ecx 1a2: 0f be d2 movsbl %dl,%edx 1a5: 8d 44 02 d0 lea -0x30(%edx,%eax,1),%eax while('0' <= *s && *s <= '9') 1a9: 0f b6 11 movzbl (%ecx),%edx 1ac: 8d 5a d0 lea -0x30(%edx),%ebx 1af: 80 fb 09 cmp $0x9,%bl 1b2: 76 e5 jbe 199 <atoi+0xe> return n; } 1b4: 5b pop %ebx 1b5: 5d pop %ebp 1b6: c3 ret 000001b7 <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 1b7: 55 push %ebp 1b8: 89 e5 mov %esp,%ebp 1ba: 56 push %esi 1bb: 53 push %ebx 1bc: 8b 45 08 mov 0x8(%ebp),%eax 1bf: 8b 5d 0c mov 0xc(%ebp),%ebx 1c2: 8b 55 10 mov 0x10(%ebp),%edx char *dst; const char *src; dst = vdst; 1c5: 89 c1 mov %eax,%ecx src = vsrc; while(n-- > 0) 1c7: eb 0d jmp 1d6 <memmove+0x1f> *dst++ = *src++; 1c9: 0f b6 13 movzbl (%ebx),%edx 1cc: 88 11 mov %dl,(%ecx) 1ce: 8d 5b 01 lea 0x1(%ebx),%ebx 1d1: 8d 49 01 lea 0x1(%ecx),%ecx while(n-- > 0) 1d4: 89 f2 mov %esi,%edx 1d6: 8d 72 ff lea -0x1(%edx),%esi 1d9: 85 d2 test %edx,%edx 1db: 7f ec jg 1c9 <memmove+0x12> return vdst; } 1dd: 5b pop %ebx 1de: 5e pop %esi 1df: 5d pop %ebp 1e0: c3 ret 000001e1 <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 1e1: b8 01 00 00 00 mov $0x1,%eax 1e6: cd 40 int $0x40 1e8: c3 ret 000001e9 <exit>: SYSCALL(exit) 1e9: b8 02 00 00 00 mov $0x2,%eax 1ee: cd 40 int $0x40 1f0: c3 ret 000001f1 <wait>: SYSCALL(wait) 1f1: b8 03 00 00 00 mov $0x3,%eax 1f6: cd 40 int $0x40 1f8: c3 ret 000001f9 <pipe>: SYSCALL(pipe) 1f9: b8 04 00 00 00 mov $0x4,%eax 1fe: cd 40 int $0x40 200: c3 ret 00000201 <read>: SYSCALL(read) 201: b8 05 00 00 00 mov $0x5,%eax 206: cd 40 int $0x40 208: c3 ret 00000209 <write>: SYSCALL(write) 209: b8 10 00 00 00 mov $0x10,%eax 20e: cd 40 int $0x40 210: c3 ret 00000211 <close>: SYSCALL(close) 211: b8 15 00 00 00 mov $0x15,%eax 216: cd 40 int $0x40 218: c3 ret 00000219 <kill>: SYSCALL(kill) 219: b8 06 00 00 00 mov $0x6,%eax 21e: cd 40 int $0x40 220: c3 ret 00000221 <exec>: SYSCALL(exec) 221: b8 07 00 00 00 mov $0x7,%eax 226: cd 40 int $0x40 228: c3 ret 00000229 <open>: SYSCALL(open) 229: b8 0f 00 00 00 mov $0xf,%eax 22e: cd 40 int $0x40 230: c3 ret 00000231 <mknod>: SYSCALL(mknod) 231: b8 11 00 00 00 mov $0x11,%eax 236: cd 40 int $0x40 238: c3 ret 00000239 <unlink>: SYSCALL(unlink) 239: b8 12 00 00 00 mov $0x12,%eax 23e: cd 40 int $0x40 240: c3 ret 00000241 <fstat>: SYSCALL(fstat) 241: b8 08 00 00 00 mov $0x8,%eax 246: cd 40 int $0x40 248: c3 ret 00000249 <link>: SYSCALL(link) 249: b8 13 00 00 00 mov $0x13,%eax 24e: cd 40 int $0x40 250: c3 ret 00000251 <mkdir>: SYSCALL(mkdir) 251: b8 14 00 00 00 mov $0x14,%eax 256: cd 40 int $0x40 258: c3 ret 00000259 <chdir>: SYSCALL(chdir) 259: b8 09 00 00 00 mov $0x9,%eax 25e: cd 40 int $0x40 260: c3 ret 00000261 <dup>: SYSCALL(dup) 261: b8 0a 00 00 00 mov $0xa,%eax 266: cd 40 int $0x40 268: c3 ret 00000269 <getpid>: SYSCALL(getpid) 269: b8 0b 00 00 00 mov $0xb,%eax 26e: cd 40 int $0x40 270: c3 ret 00000271 <sbrk>: SYSCALL(sbrk) 271: b8 0c 00 00 00 mov $0xc,%eax 276: cd 40 int $0x40 278: c3 ret 00000279 <sleep>: SYSCALL(sleep) 279: b8 0d 00 00 00 mov $0xd,%eax 27e: cd 40 int $0x40 280: c3 ret 00000281 <uptime>: SYSCALL(uptime) 281: b8 0e 00 00 00 mov $0xe,%eax 286: cd 40 int $0x40 288: c3 ret 00000289 <setpri>: SYSCALL(setpri) 289: b8 16 00 00 00 mov $0x16,%eax 28e: cd 40 int $0x40 290: c3 ret 00000291 <getpri>: SYSCALL(getpri) 291: b8 17 00 00 00 mov $0x17,%eax 296: cd 40 int $0x40 298: c3 ret 00000299 <fork2>: SYSCALL(fork2) 299: b8 18 00 00 00 mov $0x18,%eax 29e: cd 40 int $0x40 2a0: c3 ret 000002a1 <getpinfo>: SYSCALL(getpinfo) 2a1: b8 19 00 00 00 mov $0x19,%eax 2a6: cd 40 int $0x40 2a8: c3 ret 000002a9 <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 2a9: 55 push %ebp 2aa: 89 e5 mov %esp,%ebp 2ac: 83 ec 1c sub $0x1c,%esp 2af: 88 55 f4 mov %dl,-0xc(%ebp) write(fd, &c, 1); 2b2: 6a 01 push $0x1 2b4: 8d 55 f4 lea -0xc(%ebp),%edx 2b7: 52 push %edx 2b8: 50 push %eax 2b9: e8 4b ff ff ff call 209 <write> } 2be: 83 c4 10 add $0x10,%esp 2c1: c9 leave 2c2: c3 ret 000002c3 <printint>: static void printint(int fd, int xx, int base, int sgn) { 2c3: 55 push %ebp 2c4: 89 e5 mov %esp,%ebp 2c6: 57 push %edi 2c7: 56 push %esi 2c8: 53 push %ebx 2c9: 83 ec 2c sub $0x2c,%esp 2cc: 89 c7 mov %eax,%edi char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 2ce: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 2d2: 0f 95 c3 setne %bl 2d5: 89 d0 mov %edx,%eax 2d7: c1 e8 1f shr $0x1f,%eax 2da: 84 c3 test %al,%bl 2dc: 74 10 je 2ee <printint+0x2b> neg = 1; x = -xx; 2de: f7 da neg %edx neg = 1; 2e0: c7 45 d4 01 00 00 00 movl $0x1,-0x2c(%ebp) } else { x = xx; } i = 0; 2e7: be 00 00 00 00 mov $0x0,%esi 2ec: eb 0b jmp 2f9 <printint+0x36> neg = 0; 2ee: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) 2f5: eb f0 jmp 2e7 <printint+0x24> do{ buf[i++] = digits[x % base]; 2f7: 89 c6 mov %eax,%esi 2f9: 89 d0 mov %edx,%eax 2fb: ba 00 00 00 00 mov $0x0,%edx 300: f7 f1 div %ecx 302: 89 c3 mov %eax,%ebx 304: 8d 46 01 lea 0x1(%esi),%eax 307: 0f b6 92 2c 06 00 00 movzbl 0x62c(%edx),%edx 30e: 88 54 35 d8 mov %dl,-0x28(%ebp,%esi,1) }while((x /= base) != 0); 312: 89 da mov %ebx,%edx 314: 85 db test %ebx,%ebx 316: 75 df jne 2f7 <printint+0x34> 318: 89 c3 mov %eax,%ebx if(neg) 31a: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) 31e: 74 16 je 336 <printint+0x73> buf[i++] = '-'; 320: c6 44 05 d8 2d movb $0x2d,-0x28(%ebp,%eax,1) 325: 8d 5e 02 lea 0x2(%esi),%ebx 328: eb 0c jmp 336 <printint+0x73> while(--i >= 0) putc(fd, buf[i]); 32a: 0f be 54 1d d8 movsbl -0x28(%ebp,%ebx,1),%edx 32f: 89 f8 mov %edi,%eax 331: e8 73 ff ff ff call 2a9 <putc> while(--i >= 0) 336: 83 eb 01 sub $0x1,%ebx 339: 79 ef jns 32a <printint+0x67> } 33b: 83 c4 2c add $0x2c,%esp 33e: 5b pop %ebx 33f: 5e pop %esi 340: 5f pop %edi 341: 5d pop %ebp 342: c3 ret 00000343 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 343: 55 push %ebp 344: 89 e5 mov %esp,%ebp 346: 57 push %edi 347: 56 push %esi 348: 53 push %ebx 349: 83 ec 1c sub $0x1c,%esp char *s; int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; 34c: 8d 45 10 lea 0x10(%ebp),%eax 34f: 89 45 e4 mov %eax,-0x1c(%ebp) state = 0; 352: be 00 00 00 00 mov $0x0,%esi for(i = 0; fmt[i]; i++){ 357: bb 00 00 00 00 mov $0x0,%ebx 35c: eb 14 jmp 372 <printf+0x2f> c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ state = '%'; } else { putc(fd, c); 35e: 89 fa mov %edi,%edx 360: 8b 45 08 mov 0x8(%ebp),%eax 363: e8 41 ff ff ff call 2a9 <putc> 368: eb 05 jmp 36f <printf+0x2c> } } else if(state == '%'){ 36a: 83 fe 25 cmp $0x25,%esi 36d: 74 25 je 394 <printf+0x51> for(i = 0; fmt[i]; i++){ 36f: 83 c3 01 add $0x1,%ebx 372: 8b 45 0c mov 0xc(%ebp),%eax 375: 0f b6 04 18 movzbl (%eax,%ebx,1),%eax 379: 84 c0 test %al,%al 37b: 0f 84 23 01 00 00 je 4a4 <printf+0x161> c = fmt[i] & 0xff; 381: 0f be f8 movsbl %al,%edi 384: 0f b6 c0 movzbl %al,%eax if(state == 0){ 387: 85 f6 test %esi,%esi 389: 75 df jne 36a <printf+0x27> if(c == '%'){ 38b: 83 f8 25 cmp $0x25,%eax 38e: 75 ce jne 35e <printf+0x1b> state = '%'; 390: 89 c6 mov %eax,%esi 392: eb db jmp 36f <printf+0x2c> if(c == 'd'){ 394: 83 f8 64 cmp $0x64,%eax 397: 74 49 je 3e2 <printf+0x9f> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 399: 83 f8 78 cmp $0x78,%eax 39c: 0f 94 c1 sete %cl 39f: 83 f8 70 cmp $0x70,%eax 3a2: 0f 94 c2 sete %dl 3a5: 08 d1 or %dl,%cl 3a7: 75 63 jne 40c <printf+0xc9> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 3a9: 83 f8 73 cmp $0x73,%eax 3ac: 0f 84 84 00 00 00 je 436 <printf+0xf3> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 3b2: 83 f8 63 cmp $0x63,%eax 3b5: 0f 84 b7 00 00 00 je 472 <printf+0x12f> putc(fd, *ap); ap++; } else if(c == '%'){ 3bb: 83 f8 25 cmp $0x25,%eax 3be: 0f 84 cc 00 00 00 je 490 <printf+0x14d> putc(fd, c); } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 3c4: ba 25 00 00 00 mov $0x25,%edx 3c9: 8b 45 08 mov 0x8(%ebp),%eax 3cc: e8 d8 fe ff ff call 2a9 <putc> putc(fd, c); 3d1: 89 fa mov %edi,%edx 3d3: 8b 45 08 mov 0x8(%ebp),%eax 3d6: e8 ce fe ff ff call 2a9 <putc> } state = 0; 3db: be 00 00 00 00 mov $0x0,%esi 3e0: eb 8d jmp 36f <printf+0x2c> printint(fd, *ap, 10, 1); 3e2: 8b 7d e4 mov -0x1c(%ebp),%edi 3e5: 8b 17 mov (%edi),%edx 3e7: 83 ec 0c sub $0xc,%esp 3ea: 6a 01 push $0x1 3ec: b9 0a 00 00 00 mov $0xa,%ecx 3f1: 8b 45 08 mov 0x8(%ebp),%eax 3f4: e8 ca fe ff ff call 2c3 <printint> ap++; 3f9: 83 c7 04 add $0x4,%edi 3fc: 89 7d e4 mov %edi,-0x1c(%ebp) 3ff: 83 c4 10 add $0x10,%esp state = 0; 402: be 00 00 00 00 mov $0x0,%esi 407: e9 63 ff ff ff jmp 36f <printf+0x2c> printint(fd, *ap, 16, 0); 40c: 8b 7d e4 mov -0x1c(%ebp),%edi 40f: 8b 17 mov (%edi),%edx 411: 83 ec 0c sub $0xc,%esp 414: 6a 00 push $0x0 416: b9 10 00 00 00 mov $0x10,%ecx 41b: 8b 45 08 mov 0x8(%ebp),%eax 41e: e8 a0 fe ff ff call 2c3 <printint> ap++; 423: 83 c7 04 add $0x4,%edi 426: 89 7d e4 mov %edi,-0x1c(%ebp) 429: 83 c4 10 add $0x10,%esp state = 0; 42c: be 00 00 00 00 mov $0x0,%esi 431: e9 39 ff ff ff jmp 36f <printf+0x2c> s = (char*)*ap; 436: 8b 45 e4 mov -0x1c(%ebp),%eax 439: 8b 30 mov (%eax),%esi ap++; 43b: 83 c0 04 add $0x4,%eax 43e: 89 45 e4 mov %eax,-0x1c(%ebp) if(s == 0) 441: 85 f6 test %esi,%esi 443: 75 28 jne 46d <printf+0x12a> s = "(null)"; 445: be 23 06 00 00 mov $0x623,%esi 44a: 8b 7d 08 mov 0x8(%ebp),%edi 44d: eb 0d jmp 45c <printf+0x119> putc(fd, *s); 44f: 0f be d2 movsbl %dl,%edx 452: 89 f8 mov %edi,%eax 454: e8 50 fe ff ff call 2a9 <putc> s++; 459: 83 c6 01 add $0x1,%esi while(*s != 0){ 45c: 0f b6 16 movzbl (%esi),%edx 45f: 84 d2 test %dl,%dl 461: 75 ec jne 44f <printf+0x10c> state = 0; 463: be 00 00 00 00 mov $0x0,%esi 468: e9 02 ff ff ff jmp 36f <printf+0x2c> 46d: 8b 7d 08 mov 0x8(%ebp),%edi 470: eb ea jmp 45c <printf+0x119> putc(fd, *ap); 472: 8b 7d e4 mov -0x1c(%ebp),%edi 475: 0f be 17 movsbl (%edi),%edx 478: 8b 45 08 mov 0x8(%ebp),%eax 47b: e8 29 fe ff ff call 2a9 <putc> ap++; 480: 83 c7 04 add $0x4,%edi 483: 89 7d e4 mov %edi,-0x1c(%ebp) state = 0; 486: be 00 00 00 00 mov $0x0,%esi 48b: e9 df fe ff ff jmp 36f <printf+0x2c> putc(fd, c); 490: 89 fa mov %edi,%edx 492: 8b 45 08 mov 0x8(%ebp),%eax 495: e8 0f fe ff ff call 2a9 <putc> state = 0; 49a: be 00 00 00 00 mov $0x0,%esi 49f: e9 cb fe ff ff jmp 36f <printf+0x2c> } } } 4a4: 8d 65 f4 lea -0xc(%ebp),%esp 4a7: 5b pop %ebx 4a8: 5e pop %esi 4a9: 5f pop %edi 4aa: 5d pop %ebp 4ab: c3 ret 000004ac <free>: static Header base; static Header *freep; void free(void *ap) { 4ac: 55 push %ebp 4ad: 89 e5 mov %esp,%ebp 4af: 57 push %edi 4b0: 56 push %esi 4b1: 53 push %ebx 4b2: 8b 5d 08 mov 0x8(%ebp),%ebx Header *bp, *p; bp = (Header*)ap - 1; 4b5: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 4b8: a1 c8 08 00 00 mov 0x8c8,%eax 4bd: eb 02 jmp 4c1 <free+0x15> 4bf: 89 d0 mov %edx,%eax 4c1: 39 c8 cmp %ecx,%eax 4c3: 73 04 jae 4c9 <free+0x1d> 4c5: 39 08 cmp %ecx,(%eax) 4c7: 77 12 ja 4db <free+0x2f> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 4c9: 8b 10 mov (%eax),%edx 4cb: 39 c2 cmp %eax,%edx 4cd: 77 f0 ja 4bf <free+0x13> 4cf: 39 c8 cmp %ecx,%eax 4d1: 72 08 jb 4db <free+0x2f> 4d3: 39 ca cmp %ecx,%edx 4d5: 77 04 ja 4db <free+0x2f> 4d7: 89 d0 mov %edx,%eax 4d9: eb e6 jmp 4c1 <free+0x15> break; if(bp + bp->s.size == p->s.ptr){ 4db: 8b 73 fc mov -0x4(%ebx),%esi 4de: 8d 3c f1 lea (%ecx,%esi,8),%edi 4e1: 8b 10 mov (%eax),%edx 4e3: 39 d7 cmp %edx,%edi 4e5: 74 19 je 500 <free+0x54> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 4e7: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 4ea: 8b 50 04 mov 0x4(%eax),%edx 4ed: 8d 34 d0 lea (%eax,%edx,8),%esi 4f0: 39 ce cmp %ecx,%esi 4f2: 74 1b je 50f <free+0x63> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 4f4: 89 08 mov %ecx,(%eax) freep = p; 4f6: a3 c8 08 00 00 mov %eax,0x8c8 } 4fb: 5b pop %ebx 4fc: 5e pop %esi 4fd: 5f pop %edi 4fe: 5d pop %ebp 4ff: c3 ret bp->s.size += p->s.ptr->s.size; 500: 03 72 04 add 0x4(%edx),%esi 503: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 506: 8b 10 mov (%eax),%edx 508: 8b 12 mov (%edx),%edx 50a: 89 53 f8 mov %edx,-0x8(%ebx) 50d: eb db jmp 4ea <free+0x3e> p->s.size += bp->s.size; 50f: 03 53 fc add -0x4(%ebx),%edx 512: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 515: 8b 53 f8 mov -0x8(%ebx),%edx 518: 89 10 mov %edx,(%eax) 51a: eb da jmp 4f6 <free+0x4a> 0000051c <morecore>: static Header* morecore(uint nu) { 51c: 55 push %ebp 51d: 89 e5 mov %esp,%ebp 51f: 53 push %ebx 520: 83 ec 04 sub $0x4,%esp 523: 89 c3 mov %eax,%ebx char *p; Header *hp; if(nu < 4096) 525: 3d ff 0f 00 00 cmp $0xfff,%eax 52a: 77 05 ja 531 <morecore+0x15> nu = 4096; 52c: bb 00 10 00 00 mov $0x1000,%ebx p = sbrk(nu * sizeof(Header)); 531: 8d 04 dd 00 00 00 00 lea 0x0(,%ebx,8),%eax 538: 83 ec 0c sub $0xc,%esp 53b: 50 push %eax 53c: e8 30 fd ff ff call 271 <sbrk> if(p == (char*)-1) 541: 83 c4 10 add $0x10,%esp 544: 83 f8 ff cmp $0xffffffff,%eax 547: 74 1c je 565 <morecore+0x49> return 0; hp = (Header*)p; hp->s.size = nu; 549: 89 58 04 mov %ebx,0x4(%eax) free((void*)(hp + 1)); 54c: 83 c0 08 add $0x8,%eax 54f: 83 ec 0c sub $0xc,%esp 552: 50 push %eax 553: e8 54 ff ff ff call 4ac <free> return freep; 558: a1 c8 08 00 00 mov 0x8c8,%eax 55d: 83 c4 10 add $0x10,%esp } 560: 8b 5d fc mov -0x4(%ebp),%ebx 563: c9 leave 564: c3 ret return 0; 565: b8 00 00 00 00 mov $0x0,%eax 56a: eb f4 jmp 560 <morecore+0x44> 0000056c <malloc>: void* malloc(uint nbytes) { 56c: 55 push %ebp 56d: 89 e5 mov %esp,%ebp 56f: 53 push %ebx 570: 83 ec 04 sub $0x4,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 573: 8b 45 08 mov 0x8(%ebp),%eax 576: 8d 58 07 lea 0x7(%eax),%ebx 579: c1 eb 03 shr $0x3,%ebx 57c: 83 c3 01 add $0x1,%ebx if((prevp = freep) == 0){ 57f: 8b 0d c8 08 00 00 mov 0x8c8,%ecx 585: 85 c9 test %ecx,%ecx 587: 74 04 je 58d <malloc+0x21> base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 589: 8b 01 mov (%ecx),%eax 58b: eb 4d jmp 5da <malloc+0x6e> base.s.ptr = freep = prevp = &base; 58d: c7 05 c8 08 00 00 cc movl $0x8cc,0x8c8 594: 08 00 00 597: c7 05 cc 08 00 00 cc movl $0x8cc,0x8cc 59e: 08 00 00 base.s.size = 0; 5a1: c7 05 d0 08 00 00 00 movl $0x0,0x8d0 5a8: 00 00 00 base.s.ptr = freep = prevp = &base; 5ab: b9 cc 08 00 00 mov $0x8cc,%ecx 5b0: eb d7 jmp 589 <malloc+0x1d> if(p->s.size >= nunits){ if(p->s.size == nunits) 5b2: 39 da cmp %ebx,%edx 5b4: 74 1a je 5d0 <malloc+0x64> prevp->s.ptr = p->s.ptr; else { p->s.size -= nunits; 5b6: 29 da sub %ebx,%edx 5b8: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; 5bb: 8d 04 d0 lea (%eax,%edx,8),%eax p->s.size = nunits; 5be: 89 58 04 mov %ebx,0x4(%eax) } freep = prevp; 5c1: 89 0d c8 08 00 00 mov %ecx,0x8c8 return (void*)(p + 1); 5c7: 83 c0 08 add $0x8,%eax } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } } 5ca: 83 c4 04 add $0x4,%esp 5cd: 5b pop %ebx 5ce: 5d pop %ebp 5cf: c3 ret prevp->s.ptr = p->s.ptr; 5d0: 8b 10 mov (%eax),%edx 5d2: 89 11 mov %edx,(%ecx) 5d4: eb eb jmp 5c1 <malloc+0x55> for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 5d6: 89 c1 mov %eax,%ecx 5d8: 8b 00 mov (%eax),%eax if(p->s.size >= nunits){ 5da: 8b 50 04 mov 0x4(%eax),%edx 5dd: 39 da cmp %ebx,%edx 5df: 73 d1 jae 5b2 <malloc+0x46> if(p == freep) 5e1: 39 05 c8 08 00 00 cmp %eax,0x8c8 5e7: 75 ed jne 5d6 <malloc+0x6a> if((p = morecore(nunits)) == 0) 5e9: 89 d8 mov %ebx,%eax 5eb: e8 2c ff ff ff call 51c <morecore> 5f0: 85 c0 test %eax,%eax 5f2: 75 e2 jne 5d6 <malloc+0x6a> return 0; 5f4: b8 00 00 00 00 mov $0x0,%eax 5f9: eb cf jmp 5ca <malloc+0x5e>
32.419608
60
0.412876
afb8114ab6174294712d5ffa99296a32a447b609
182
asm
Assembly
data/pokemon/dex_entries/venomoth.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/pokemon/dex_entries/venomoth.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
data/pokemon/dex_entries/venomoth.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
db "POISONMOTH@" ; species name db "The scales it" next "scatters will" next "paralyze anyone" page "who touches them," next "making that person" next "unable to stand.@"
18.2
32
0.686813
e5efd5788fd077c522ebf60d17b77cffab8e69b0
6,494
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_542_631.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_542_631.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_542_631.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 %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0xef0e, %rdi nop nop dec %rsi movl $0x61626364, (%rdi) nop nop nop nop nop sub %r10, %r10 lea addresses_UC_ht+0x1ed2d, %rsi lea addresses_WT_ht+0x17252, %rdi nop nop nop xor $30810, %r11 mov $71, %rcx rep movsb cmp %rsi, %rsi lea addresses_D_ht+0xf474, %rcx nop nop dec %r12 movb $0x61, (%rcx) nop nop and $57401, %r12 lea addresses_D_ht+0x2352, %rdx nop nop nop nop xor %rsi, %rsi mov (%rdx), %ecx dec %rdx lea addresses_UC_ht+0xcf92, %r11 sub $50897, %rdx mov $0x6162636465666768, %rdi movq %rdi, (%r11) nop nop nop nop nop add $31194, %rsi lea addresses_WC_ht+0x18092, %r12 nop nop add $18550, %rsi mov $0x6162636465666768, %r10 movq %r10, %xmm6 vmovups %ymm6, (%r12) nop sub %rsi, %rsi lea addresses_UC_ht+0x10f52, %rdi nop nop nop nop nop sub $20167, %rsi mov (%rdi), %r12d nop nop nop nop nop xor $36633, %rdx lea addresses_WC_ht+0x19a7e, %r11 nop nop nop and %rsi, %rsi movups (%r11), %xmm5 vpextrq $1, %xmm5, %rdi nop nop inc %rdx lea addresses_WT_ht+0x1ec52, %rdx cmp %rdi, %rdi mov (%rdx), %r12w nop nop add %rdi, %rdi lea addresses_WT_ht+0x12312, %rcx nop nop nop xor $58, %rsi movl $0x61626364, (%rcx) nop dec %r12 lea addresses_UC_ht+0xfc52, %rdi nop nop and %r12, %r12 mov (%rdi), %r10 nop and $53822, %r11 lea addresses_WT_ht+0x9e52, %rsi lea addresses_D_ht+0x1c652, %rdi nop nop nop dec %r9 mov $17, %rcx rep movsl nop nop nop nop nop and $2470, %r11 lea addresses_WT_ht+0x1a652, %r12 xor %r10, %r10 mov $0x6162636465666768, %r11 movq %r11, %xmm6 vmovups %ymm6, (%r12) nop nop cmp $34265, %r12 pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %r9 push %rax push %rdx push %rsi // Store lea addresses_A+0xc059, %r12 nop nop nop nop add $9357, %rsi mov $0x5152535455565758, %rax movq %rax, (%r12) nop nop nop nop sub $23991, %rdx // Store lea addresses_UC+0x11152, %r11 nop nop dec %r14 mov $0x5152535455565758, %rdx movq %rdx, %xmm4 movaps %xmm4, (%r11) nop nop nop nop nop sub $7165, %rdx // Load lea addresses_PSE+0x892b, %rsi nop nop nop nop add %r9, %r9 movb (%rsi), %al nop sub %rsi, %rsi // Faulty Load lea addresses_PSE+0x3e52, %r11 nop nop nop nop and $32806, %rsi mov (%r11), %edx lea oracles, %rax and $0xff, %rdx shlq $12, %rdx mov (%rax,%rdx,1), %rdx pop %rsi pop %rdx pop %rax pop %r9 pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_PSE', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 8, 'type': 'addresses_A', 'congruent': 0}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 16, 'type': 'addresses_UC', 'congruent': 7}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_PSE', 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_PSE', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_normal_ht', 'congruent': 0}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_D_ht', 'congruent': 0}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_D_ht', 'congruent': 5}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_UC_ht', 'congruent': 5}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WC_ht', 'congruent': 5}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC_ht', 'congruent': 7}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC_ht', 'congruent': 2}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT_ht', 'congruent': 8}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WT_ht', 'congruent': 6}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 8, 'type': 'addresses_UC_ht', 'congruent': 9}} {'dst': {'same': False, 'congruent': 11, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 10}, 'OP': 'STOR'} {'33': 542} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
26.946058
1,625
0.651524
59d21b2d4e15747bdf63c4efde0c3bd1af972198
3,998
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_552.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_552.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_552.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %rax push %rbp push %rdi lea addresses_WT_ht+0xba41, %rbp nop nop nop nop dec %r11 movl $0x61626364, (%rbp) nop nop xor $60406, %rax pop %rdi pop %rbp pop %rax pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %rbp push %rcx push %rdx push %rsi // Faulty Load lea addresses_WT+0x3941, %rcx nop sub %rbp, %rbp mov (%rcx), %r12d lea oracles, %r11 and $0xff, %r12 shlq $12, %r12 mov (%r11,%r12,1), %r12 pop %rsi pop %rdx pop %rcx pop %rbp pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WT', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'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 */
66.633333
2,999
0.663082
6222ded05288154ee89c7659ab28a96dbfc09ae5
3,533
asm
Assembly
libsrc/games/playzb4_big.asm
UnivEngineer/z88dk
9047beba62595b1d88991bc934da75c0e2030d07
[ "ClArtistic" ]
1
2022-03-08T11:55:58.000Z
2022-03-08T11:55:58.000Z
libsrc/games/playzb4_big.asm
UnivEngineer/z88dk
9047beba62595b1d88991bc934da75c0e2030d07
[ "ClArtistic" ]
2
2022-03-20T22:17:35.000Z
2022-03-24T16:10:00.000Z
libsrc/games/playzb4_big.asm
jorgegv/z88dk
127130cf11f9ff268ba53e308138b12d2b9be90a
[ "ClArtistic" ]
null
null
null
; ; Generic version ; calibrated for a fixed bitrate, 1-bit ; ; Stefano Bodrato, Feb - 2021 ; ; ;$Id: playzb4_big.asm $ ; ; extern void __LIB__ playzb4(uchar *SamStart, ushort SamLen); ; play 4 bit pulse wave encoded data using sid master volume IF !__CPU_GBZ80__ && !__CPU_INTEL__ SECTION code_clib PUBLIC playzb4 PUBLIC _playzb4 EXTERN bit_open_di EXTERN bit_close_ei EXTERN __snd_tick INCLUDE "games/games.inc" playzb4: _playzb4: call bit_open_di pop bc pop de ;sample length pop hl ;sample start addr push hl push de push bc push hl push de ld hl,dithpat ld b,dithpat_end-dithpat rep: ld a,(hl) and SOUND_ONEBIT_mask ; check the bit status ld a,0 jr z,noz dec a noz: ld d,a ld a,(__snd_tick) or d ; toggle the sound bit to be sure it 'plays' ld (hl),a inc hl djnz rep pop de pop hl rep1: ld a,(hl) ; a = sample byte rrca ; a = a div 16 rrca ; rrca ; rrca ; and $0f ; 4 bit nibble call do_sound ld a,(hl) ; a = sample byte and $0f ; 4 bit nibble call do_sound inc hl ; hl = hl+1 dec e ; jr nz,rep1 ; dec d ; de = de-1 jr nz,rep1 ;until de = 0 jp bit_close_ei do_sound: push hl ;push de add a ld l,a add a ; x4 add l ; x6 ld hl,dithpat add l ld l,a ld a,h adc 0 ld h,a ld bc,SOUND_ONEBIT_port ; 15 times outi outi outi outi outi outi outi outi outi outi outi outi outi outi outi pop hl ret SECTION data_clib ; 15 samples, starting at marked position dithpat: defb @00000000 ; 0 defb @00000000 defb @00000000 defb @00000000 defb @00000000 defb @00000000 defb @00000000 ; 1 defb @00000000 defb @00000000 defb @00000000 defb @00000000 defb @00000000 defb @00000000 ; 2 defb @00000000 defb @00000000 defb @00000000 defb @00000000 defb @00000000 defb @00000000 ; 3 defb @11111111 defb @00000000 defb @00000000 defb @00000000 defb @00000000 defb @00000000 ; 4 defb @00000000 defb @00000000 defb @00000000 defb @00000000 defb @11111111 defb @11111111 ; 5 defb @00000000 defb @00000000 defb @00000000 defb @00000000 defb @00000000 defb @11111111 ; 6 defb @00000000 defb @11111111 defb @00000000 defb @00000000 defb @00000000 defb @00000000 ; 7 defb @00000000 defb @11111111 defb @00000000 defb @11111111 defb @11111111 defb @00000000 ; 8 defb @00000000 defb @00000000 defb @11111111 defb @00000000 defb @11111111 defb @11111111 ; 9 defb @11111111 defb @00000000 defb @00000000 defb @00000000 defb @11111111 defb @00000000 ; 10 defb @11111111 defb @00000000 defb @11111111 defb @00000000 defb @11111111 defb @11111111 ; 11 defb @00000000 defb @00000000 defb @11111111 defb @11111111 defb @00000000 defb @00000000 ; 12 defb @11111111 defb @11111111 defb @00000000 defb @00000000 defb @11111111 defb @11111111 ; 13 defb @00000000 defb @11111111 defb @11111111 defb @11111111 defb @00000000 defb @11111111 ; 14 defb @11111111 defb @11111111 defb @11111111 defb @11111111 defb @11111111 defb @11111111 ; 15 defb @11111111 defb @11111111 defb @11111111 defb @11111111 defb @11111111 defb @11111111 defb @11111111 defb @11111111 defb @11111111 defb @11111111 defb @11111111 defb @11111111 defb @11111111 defb @11111111 dithpat_end: ENDIF
14.599174
69
0.648174
716eaa529427f86838c4293d7bcba96e0049b29f
520
asm
Assembly
wof/lcs/123p/33.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
wof/lcs/123p/33.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
wof/lcs/123p/33.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
1
2020-12-17T08:59:10.000Z
2020-12-17T08:59:10.000Z
copyright zengfr site:http://github.com/zengfr/romhack 01B638 beq $1b6a4 [123p+ 33] 01B6FA beq $1b744 [123p+ 33] 01B8C4 beq $1b914 [123p+ 33] 01BB02 beq $1bb08 [123p+ 33] 01C31A bpl $1c36e [123p+ 33] 01C422 beq $1c43c [123p+ 33] 01C610 beq $1c626 [123p+ 33] 01C630 bmi $1c65e [123p+ 33] 01C93E bne $1c958 [123p+ 33] 01C95E beq $1c994 [123p+ 33] 01D228 beq $1d282 [123p+ 33] 01D2DA beq $1d324 [123p+ 33] copyright zengfr site:http://github.com/zengfr/romhack
30.588235
54
0.634615
c971e7cc43f5eca056607a8a4883ae84839841e4
1,661
asm
Assembly
programs/oeis/033/A033587.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/033/A033587.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/033/A033587.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A033587: a(n) = 2*n*(4*n + 3). ; 0,14,44,90,152,230,324,434,560,702,860,1034,1224,1430,1652,1890,2144,2414,2700,3002,3320,3654,4004,4370,4752,5150,5564,5994,6440,6902,7380,7874,8384,8910,9452,10010,10584,11174,11780,12402,13040,13694,14364,15050,15752,16470,17204,17954,18720,19502,20300,21114,21944,22790,23652,24530,25424,26334,27260,28202,29160,30134,31124,32130,33152,34190,35244,36314,37400,38502,39620,40754,41904,43070,44252,45450,46664,47894,49140,50402,51680,52974,54284,55610,56952,58310,59684,61074,62480,63902,65340,66794,68264,69750,71252,72770,74304,75854,77420,79002,80600,82214,83844,85490,87152,88830,90524,92234,93960,95702,97460,99234,101024,102830,104652,106490,108344,110214,112100,114002,115920,117854,119804,121770,123752,125750,127764,129794,131840,133902,135980,138074,140184,142310,144452,146610,148784,150974,153180,155402,157640,159894,162164,164450,166752,169070,171404,173754,176120,178502,180900,183314,185744,188190,190652,193130,195624,198134,200660,203202,205760,208334,210924,213530,216152,218790,221444,224114,226800,229502,232220,234954,237704,240470,243252,246050,248864,251694,254540,257402,260280,263174,266084,269010,271952,274910,277884,280874,283880,286902,289940,292994,296064,299150,302252,305370,308504,311654,314820,318002,321200,324414,327644,330890,334152,337430,340724,344034,347360,350702,354060,357434,360824,364230,367652,371090,374544,378014,381500,385002,388520,392054,395604,399170,402752,406350,409964,413594,417240,420902,424580,428274,431984,435710,439452,443210,446984,450774,454580,458402,462240,466094,469964,473850,477752,481670,485604,489554,493520,497502 mov $1,8 mul $1,$0 add $1,6 mul $1,$0
207.625
1,588
0.825406
29643649683465d40bd1171e2c0cfdb5849a899c
71,575
asm
Assembly
cc.asm
perrada69/CalmCommander
a54ba46866d42d9c389c123f8d94a7b1f674ed8b
[ "MIT" ]
28
2020-05-08T08:13:37.000Z
2022-02-18T07:42:42.000Z
cc.asm
perrada69/CalmCommander
a54ba46866d42d9c389c123f8d94a7b1f674ed8b
[ "MIT" ]
2
2020-05-09T15:54:10.000Z
2020-06-11T08:31:53.000Z
cc.asm
perrada69/CalmCommander
a54ba46866d42d9c389c123f8d94a7b1f674ed8b
[ "MIT" ]
null
null
null
; Souborový manažer pro ZX Spectrum Next ; ====================================== ; ; Naprogramoval: Shrek/MB Maniax ; Za vydatné pomoci: ped75g ; ; DEVICE ZXSPECTRUMNEXT OPT reset --zxnext --syntax=abfw slot 4 MACRO VERSION : defb "0.5" : ENDM DEFINE DISP_ADDRESS $2000 DEFINE SP_ADDRESS $3D00 OPT --zxnext=cspect DEFINE ORG_ADDRESS $7000 + 128 + 128 DEFINE TEST_CODE_PAGE 223 ; using the last page of 2MiB RAM (in emulator) DEFINE TILE_MAP_ADR $4000 ; 80*32 = 2560 (10*256) DEFINE TILE_GFX_ADR $6000;$5400 ; 128*32 = 4096 DEFINE CFG_FILENAME dspedge.defaultCfgFileName STRUCT S_MARGINS ; pixels of margin 0..31 (-1 = undefined margin) L BYTE -1 ; left R BYTE -1 ; right T BYTE -1 ; top B BYTE -1 ; bottom ENDS STRUCT S_UI_DEFINITIONS labelDot WORD 0 ; address where to write display dot cellAdr WORD 0 ; address of big table cell on screen at [1,0] char inside nextMode BYTE 0 keyword WORD 0 ; address of keyword used in the CFG file ENDS STRUCT S_MODE_EDGES ; current margins values (must be first four bytes of the structure) cur S_MARGINS ; original values (from file) orig S_MARGINS ; UI related config ui S_UI_DEFINITIONS ; internal flags and intermediate values modified BYTE 0 ; if this mode was modified in some way leftT BYTE 0 ; full tiles left rightT BYTE 0 ; full tiles right midT BYTE 0 ; amount of semi top/bottom tiles (w/o left/right corner tiles) ; bit masks to redraw gfx tile with Green/Background color (columns/rows in bits) ; preserve the order of offsets, they are processed in "++DE" way maskLeftG BYTE 0 maskLeftB BYTE 0 maskRightG BYTE 0 maskRightB BYTE 0 maskTopG BYTE 0 maskTopB BYTE 0 maskBottomG BYTE 0 maskBottomB BYTE 0 ENDS STRUCT S_STATE timingIsUnlocked BYTE 0 edge BYTE 0 ; 0 left, 1 top, 2 right, 3 bottom (to align with chars) lastCtrlKey BYTE 0 ; save/reload/quit/hz/timing when waiting for confirm debounceKey BYTE 0 modified BYTE 0 ; set if any of modes (even inactive) is modified noFileFound BYTE 0 esxErrorNo BYTE 1 argsPtr WORD 0 ENDS STRUCT S_PRESERVE ; WORDs used, first byte is register number, second byte is preserved value turbo_07 WORD TURBO_CONTROL_NR_07 spr_ctrl_15 WORD SPRITE_CONTROL_NR_15 transp_fallback_4A WORD TRANSPARENCY_FALLBACK_COL_NR_4A tile_transp_4C WORD TILEMAP_TRANSPARENCY_I_NR_4C ula_ctrl_68 WORD ULA_CONTROL_NR_68 display_ctrl_69 WORD DISPLAY_CONTROL_NR_69 tile_ctrl_6B WORD TILEMAP_CONTROL_NR_6B tile_def_attr_6C WORD TILEMAP_DEFAULT_ATTR_NR_6C tile_map_adr_6E WORD TILEMAP_BASE_ADR_NR_6E tile_gfx_adr_6F WORD TILEMAP_GFX_ADR_NR_6F tile_xofs_msb_2F WORD TILEMAP_XOFFSET_MSB_NR_2F tile_xofs_lsb_30 WORD TILEMAP_XOFFSET_LSB_NR_30 tile_yofs_31 WORD TILEMAP_YOFFSET_NR_31 pal_ctrl_43 WORD PALETTE_CONTROL_NR_43 pal_idx_40 WORD PALETTE_INDEX_NR_40 mmu2_52 WORD MMU2_4000_NR_52 mmu3_53 WORD MMU3_6000_NR_53 ; not preserving tilemode clip window coordinates, and tilemode palette ; (intentionally, not expecting anyone to need it, or not being able to fix it) ; (and subtle sub-states like half-written 9bit color to $44 -> will be lost too) ENDS KEY_DEBOUNCE_WAIT EQU 8 CHAR_DOT_RED EQU 25 CHAR_DOT_YELLOW EQU 26 CHAR_DOT_GREEN EQU 27 CHAR_ARROW_L EQU 28 CHAR_ARROW_T EQU 29 CHAR_ARROW_R EQU 30 CHAR_ARROW_B EQU 31 ;; some further constants, mostly machine/API related INCLUDE "constants.i.asm" ;----------------------------------------------------------------------------- ;-- ESX DOS functions M_DOSVERSION equ $88 M_GETSETDRV equ $89 ; get current drive (or use A='*'/'$' for current/system drive!) M_GETHANDLE equ $8D ; get file handle of current dot command M_GETERR equ $93 F_OPEN equ $9A F_CLOSE equ $9B F_READ equ $9D F_WRITE equ $9E F_SEEK equ $9F F_FGETPOS equ $A0 F_UNLINK equ $AD F_RENAME equ $B0 FA_READ equ $01 ;; helper macros ESXDOS MACRO service? : push hl : pop ix : rst $08 : db service? : ENDM ; copies HL into IX NEXTREG2A MACRO nextreg? : ld a,nextreg? : call readNextReg2A : ENDM CSP_BREAK MACRO : IFDEF TESTING : break : ENDIF : ENDM DET org ORG_ADDRESS S1 jp START CHARS equ 15616-256 mystak equ 24575 ;ar bi trary value picked to be be low ;BFE0h and above 4000h staksto equ 24575 ;some where to put BA SIC's stack ;pointer ;last value out put to 7FFDh port1 equ #7FFD ;ad dress of ROM/RAM switch ing port ;in I/O map catbuff equ #A000 ;some where for DOS to put its catalog dos_catalog equ #011E ;the DOS routine to call ReadNextReg: ; reads nextreg in A into A (does modify currently selected NextReg on I/O port) push bc ld bc,#243B out (c),a inc b ; bc = TBBLUE_REGISTER_ACCESS_P_253B in a,(c) ; read desired NextReg state pop bc ret START call dospage ld l,0 ld h,0 call $01bd ld a,e ld (pocetstranek),a disc ld l,"A" cp "M" jr z,dalsi ld bc,bufferdisc call $00F7 //jr nc,neskenuj jr z,dalsi DSCDET dscdet ld hl,discdetail ld (hl),a inc hl ld (dscdet+1),hl setdisc ld hl,listdisc ld a,(disc+1) ld (hl),a inc hl ld (setdisc+1),hl ld hl,pocetdisku inc (hl) dalsi ld a,(disc+1) cp "P" jr z,neskenuj inc a ld (disc+1),a jr disc NES neskenuj call basicpage call VSE_NASTAV menu0 ld a,(hl) ld (de),a inc de ld a,16 ld (de),a inc de inc hl dec bc ld a,c or b jr nz,menu0 call kresli ;NAKRESLI HLAVNI OBRAZOVKU call dospage ld a,255 call $012d ;zjisti z jakého disku je spouštěn calmcommander ld (actdisc),a ld (actdisc+1),a call basicpage call reload_dir ld hl,$4000+2 ld (adrs+1),hl call getroot call showwin call PROHOD call reload_dir ld hl,$4000+2+80 ld (adrs+1),hl call getroot_reload call showwin call PROHOD ld a,32 call writecur ld a,16 call freespace ld hl,emptypos call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld de,emptydir xor a call print ld a,(OKNO) xor 16 ld (OKNO),a ld hl,emptypos call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld de,emptydir xor a call print ld a,(OKNO) xor 16 ld (OKNO),a call GETDIR ld de,emptydir ld hl,48*256+1 call print ld hl,50*256+1 ld de,LFNNAME call print L0 loop0 ld hl,$4000+160*15+23 ld (PROGS+1),hl call gettime nextreg $56,0 nextreg $55,20 ld hl,1*256+30 ld a,0 ld de,seltxt call print ld hl,41*256+30 ld a,0 ld de,seltxt call print ld hl,(numsel) call NUM ld hl,11*256+30 ld a,0 ld de,NUMBUF call print ld hl,(numsel+2) call NUM ld hl,51*256+30 ld a,0 ld de,NUMBUF call print ld a,"/" ld ($4000+30*160+32),a ld a,"/" ld ($4000+30*160+112),a ld hl,(ALLFILES) call NUM ld hl,17*256+30 ld a,0 ld (NUMBUF+5),a ld de,NUMBUF call print ld hl,(ALLFILES + 2) call NUM ld hl,57*256+30 ld a,0 ld (NUMBUF+5),a ld de,NUMBUF call print ; ;******************************* ; ld a,(klavesa) ; ld l,a ; xor a ; ld h,a ; call NUM ; ld hl,40*256+31 ; ld a,16 ; ld de,NUMBUF ; call print ; ld a,(POSKURZL) ; ld l,a ; ld h,0 ; call NUM ; ld hl,1*256+31 ; ld a,16 ; ld de,NUMBUF ; call print ; ld hl,(STARTWINL) ; call NUM ; ld hl,9*256+31 ; ld a,16 ; ld de,NUMBUF ; call print ; ld a,(POSKURZL) ; ld l,a ; ld h,0 ; ex de,hl ; ld hl,(STARTWINL) ; add hl,de ; inc hl ; call find83 ; xor a ; ld (TMP83+11),a ; ld hl,20*256+31 ; ld a,16 ; ld de,TMP83 ; call print ; ld a,(POSKURZR) ; ld l,a ; ld h,0 ; call NUM ; ld hl,41*256+31 ; ld a,16 ; ld de,NUMBUF ; call print ; ld hl,(STARTWINR) ; call NUM ; ld hl,49*256+31 ; ld a,16 ; ld de,NUMBUF ; call print ; ld a,(POSKURZR) ; ld l,a ; ld h,0 ; ex de,hl ; ld hl,(STARTWINR) ; add hl,de ; inc hl ; call find83 ; xor a ; ld (TMP83+11),a ; ld hl,60*256+31 ; ld a,16 ; ld de,TMP83 ; call print ;******************************* call NOBUFF83 call INKEY ld (klavesa),a cp '' jp z,info cp 10 jp z,down cp 11 jp z,up cp 9 jp z,rightcur cp 8 jp z,leftcur cp 4 ;true video jp z,changewin cp 13 jp z,enter cp "8" jp z,delete cp "9" jp z,RENAME cp "0" jp z,menu cp "5" jp z,copy cp "6" jp z,move cp 32 jp z,select cp "7" jp z,MKDIR cp 7 jp z,newdisc_left cp 6 jp z,newdisc_right cp "+" jp z,select_files cp "*" jp z,invert_select_files cp "-" jp z,deselect cp "1" jp z,leftwin cp "2" jp z,rightwin cp "h" jp z,help cp "c" jp z,CHNG_ATTR cp "i" jp z,info_file cp 199 jp z,quit jp loop0 freespace ld hl,24*256 + 30 ld de,freetxt ld a,0 call print ld hl,64*256 + 30 ld de,freetxt ld a,0 call print call dospage ld hl,29*256 + 30 ld (dec32pos+1),hl ld a,(actdisc) call $121 ld h,b ld l,c ex de,hl ld b,8 call DEC32 ld hl,37*256 + 30 ld de,kb ld a,0 call print ld hl,69*256 + 30 ld (dec32pos+1),hl ld a,(actdisc) call $121 ld h,b ld l,c ex de,hl ld b,8 call DEC32 ld hl,77*256 + 30 ld de,kb ld a,0 call print call basicpage ret freetxt defb "Free:",0 kb defb "kB",0 setleftwin ld a,0 call writecur ld a,3 ld (OKNO),a ld a,32 call writecur call dospage ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a xor a call $01b1 call basicpage ret setrightwin ld a,0 call writecur ld a,$13 ld (OKNO),a ld a,32 call writecur call dospage ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a xor a call $01b1 call basicpage ret select_files_left call setleftwin jp select_files deselect_files_left call setleftwin jp deselect select_files_right call setrightwin jp select_files invert_select_files_left call setleftwin jp invert_select_files invert_select_files_right call setrightwin jp invert_select_files deselect_files_right call setrightwin jp deselect newdisc_left ld a,0 call writecur ld a,3 ld (OKNO),a ld a,32 call writecur call dospage ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a xor a call $01b1 call basicpage jp changedrive leftwin ld a,0 call writecur ld a,3 ld (OKNO),a ld a,32 call writecur call dospage ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a xor a call $01b1 call basicpage jp loop0 rightwin ld a,0 call writecur ld a,$13 ld (OKNO),a ld a,32 call writecur call dospage ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a xor a call $01b1 call basicpage jp loop0 newdisc_right ld a,0 call writecur ld a,$13 ld (OKNO),a ld a,32 call writecur call dospage ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a xor a call $01b1 call basicpage jp changedrive souboru_na_radek equ 26 PROGPROM defw 0 PROGPROM2 defw 0 ;Výpočet důležitý pro progress ;Počet v registru DE ; Výstup HL na CPPX1 ; A na CPPX3 ; PROGRES vynulovat PROVYP ld h,d ld l,e ld a,d or a jr nz,PROV3 ld a,e cp 9 jr c,PROV4 PROV3 xor a srl h rr l rra srl h rr l rra srl h rr l rra srl h rr l rra or a ld a,1 ret z inc hl ret PROV4 ld hl,TABPRO dec de add hl,de ld a,(hl) ld hl,1 ret TABPRO db 16,8,5,4,3,2,2,2 PRGRS1 ld b,1 PROGRES push hl PROGS ld hl,$4000+160*15+25 ld a,36 ;barva teploměru PROGRSM1 ld (hl),a inc hl inc hl djnz PROGRSM1 ld (PROGS+1),hl pop hl ret PROGRES2 push hl PROGS2 ld hl,$4000+160*14+25 ld a,36 ;barva teploměru PROGRSM12 ld (hl),a inc hl inc hl djnz PROGRSM12 ld (PROGS2+1),hl pop hl ret clearpr ld hl,$4000+160*14+25 ld a,16 ld b,40 clearpr2 ld (hl),a inc hl inc hl djnz clearpr2 ret LA bufferdisc defs 18 LD listdisc defs 15 pocetdisku defb 0 pocetstranek defb 0 ;blocklenght equ 1024*6 rtcpresent defb 0 gettime call dospage call $01cc ;načti čas a datum DE = time, BC DATE ld (dostime),de ld (dosdate),bc push af call basicpage pop af jp nc,notimeend ld a,1 ld (rtcpresent),a ld a,d ld b,e srl a rr b srl a rr b srl a rr b srl b srl b push bc ld l,a ld h,0 call NUM ld hl,63*256+0 ld a,16 ld de,NUMBUF+3 call print ld hl,65*256+0 ld a,16 ld de,dvojt call print pop af ld l,a ld h,0 call NUM xor a ld (NUMBUF+3+2),a ld hl,66*256+0 ld a,16 ld de,NUMBUF+3 call print ld de,(dosdate) ld a,e and 31 push de ld l,a ld h,0 call NUM ld hl,69*256+0 ld a,16 ld de,NUMBUF+3 call print ld hl,71*256+0 ld a,16 ld de,tecka call print pop de ld a,e ld b,d srl b push bc rra rra rra rra rra and 15 ld l,a ld h,0 call NUM ;call smaznuly ld hl,72*256+0 ld a,16 ld de,NUMBUF+3 call print ld hl,74*256+0 ld a,16 ld de,tecka call print pop af ld l,a ld h,0 ld de,1980 add hl,de call NUM call smaznuly ld hl,75*256+0 ld de,NUMBUF+1 xor a ld (NUMBUF+1+4),a ld a,16 call print timeend ret notimeend xor a ld (rtcpresent),a ld hl,63*256+0 ld a,16 ld de,notimetxt call print ret notimetxt defb " ",0 istime defb 0 den defb 0 mesic defb 0 rok defb 0 dvojt defb ":",0 hodiny defb 0 minuty defb 0 dostime defw 0 dosdate defw 0 enter ld hl,POSKURZL call ROZHOD ld a,(hl) ld l,a ld h,0 push hl ld hl,STARTWINL call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ex de,hl pop hl add hl,de push hl inc hl call BUFF83 call find83 pop hl call FINDLFN ld ix,TMP83 bit 7,(ix+7) jp nz,enter_directory ;jp loop0 ;************************************** ld hl,name ld de,name+1 xor a ld (hl),a ld bc,60 ldir RUN ld hl,LFNNAME+59 run2 ld a,(hl) dec hl cp 32 jr z,run2 inc hl inc hl ld a,0 ld (hl),a ld de,LFNNAME or a sbc hl,de ld b,h ld c,l ld hl,LFNNAME ld de,name ldir call dospage ld a,1 ld b,0 ld c,0 call $01d5 call basicpage TADY rst $08 defw $8f jp loop0 cmd defb "run " enter_directory call dospage ld hl,actdisc call ROZHOD ld a,(hl) call $012d ;změna disku call basicpage ld b,11 ld hl,TMP83 CCC ;vynuluj všechny stavové bity v názvu (7.) res 7,(hl) inc hl djnz CCC ld hl,TMP83+10 ;najdi poslední znak názvu souboru/adresare chng2 ld a,(hl) cp 32 jr nz,zap dec hl jr chng2 zap ld a,255 inc hl ld (hl),a call dospage xor a ;change path ld hl,TMP83 AAAA call $01b1 ;změň adresář call basicpage ld hl,ALLFILES call ROZHOD2 xor a ld (hl),a inc hl ld (hl),a ld hl,POSKURZL call ROZHOD xor a ld (hl),a call reload_dir ld hl,pozicel call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld bc,38 * 256 + 27 ld a,0 call draw.window ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld de,3 add hl,de ld a,(hl) cp 255 jr z,root ld a,1 ld (star+1),a jr rcont root xor a ld (star+1),a rcont ld hl,adrl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld (adrs+1),hl ld hl,POSKURZL call ROZHOD xor a ld (hl),a ld hl,ALLPOSL call ROZHOD2 xor a ld (hl),a inc hl ld (hl),a star ld hl,1 call getroot ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld de,3 add hl,de ld a,(hl) cp 255 jr z,snula ld hl,1 jr scont snula ld hl,0 scont ld hl,ALLPOSL call ROZHOD2 ld (hl),0 ld hl,STARTWINL call ROZHOD2 push hl call getroot_reload pop de ex de,hl ld (hl),e inc hl ld (hl),d call showwin ld a,32 call writecur call GETDIR jp loop0 getroot ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld de,3 add hl,de ld a,(hl) cp 255 jr z,mroot ld hl,STARTWINL call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a jr mmm0 mroot ld hl,STARTWINL call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a dec hl mmm0 ret NUMBUF defb " ",0 NUM push hl ld hl,NUMBUF ld de,NUMBUF+1 ld bc,5 ld a,32 ld (hl),a ldir ld hl,NUMBUF ld (numadr+1),hl pop hl DECIMAL5 ld de,10000 ;řád desetitisíců call DIGIT ;počet desetitisíců DECIMAL4 ld de,1000 ;řád tisíců call DIGIT ;a jeho počet DECIMAL3 ld de,100 ;řád stovek call DIGIT ;počet DECIMAL2 ld de,10 ;desítky call DIGIT ;počet DECIMAL1 ld de,1 ;jednotky DIGIT ld a,"0"-1 ;do A kód znaku 0 bez jedné DIGIT2 inc a ;přičti jedničku or a ;vynuluj CARRY Flag sbc hl,de ;pokusně odečti řád jr nc,DIGIT2 ;pokud není výsledek záporný opakuj add hl,de ;přičti řád zpátky cp "9"+1 ;testuj znaky 0 až 9 jr c,DIGIT3 ;odskoč pokud platí add a,"A"-"9"-1 ;oprava na A až F pro hexa čísla DIGIT3 push hl numadr ld hl,0 ld (hl),a inc hl ld (numadr+1),hl pop hl ret BUFF defs 11 NUMB ds 11 ;temp pro vypis cisel DEC32 push iy ld c,32 call D32B DEC32SP ld de,NUMB dec32pos ld hl,1*256+1 decink ld a,0 call print pop iy ret D32B xor a ld iy,NUMB push de push bc ld de,BUFF ld b,10 DCC1 ld (de),a inc de djnz DCC1 pop bc pop de push bc ld b,$20 DCC2 add hl,hl ex de,hl adc hl,hl ex de,hl push bc push de ld bc,$0A0A ld de,BUFF DCC3 ld a,(de) adc a,a cp c jr c,DCC4 sub c DCC4 ld (de),a ccf inc de djnz DCC3 pop de pop bc djnz DCC2 ld d,b pop bc ld e,b ld hl,BUFF-1 add hl,de dec b jr z,DCC8 DCC5 ld a,(hl) or a jr nz,DCC6 ld a,c db $11 DCC6 ld c,'0' DCC7 or c dec hl or a jr z,DCC9 ld (iy+0),a inc iy DCC9 djnz DCC5 DCC8 ld a,(hl) or '0' ld (iy+0),a inc iy ret getroot_reload ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld de,3 add hl,de ld a,(hl) cp 255 jr z,amroot ld hl,1 ret amroot ld hl,0 ret DIRTMP defb "C:",255 getdir ld hl,actdisc call ROZHOD ld a,(hl) ld (DIRTMP),a ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ex de,hl push de ld hl,DIRTMP ld bc,4 ldir call dospage pop hl ld a,1 call $01b1 call basicpage ret pozicel defw $01 pozice2 defw 40* 256 + 1 adrl defw $4000+2 adrr defw $4000+2+80 PROHOD ld a,(OKNO) xor 16 ld (OKNO),a call dospage ld hl,actdisc call ROZHOD ld a,(hl) call $012d call basicpage ;změn aktualni disk ret changewin CHANGEWIN ld a,0 call writecur call PROHOD ld a,32 call writecur call dospage ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a xor a call $01b1 call basicpage jp loop0 bufscr equ $e000 ;Uloží obrazovku do banky 19 ZX Next. savescr nextreg $57,19 ;Stránka na uložení VideoRam ld hl,16384 ld de,bufscr ld bc,32*160 ldir nextreg $57,1 ;Nastránkuj zpátky ret ;Obnovení obrazovky z 19 stárnky ZX Next. loadscr nextreg $57,19 ld hl,bufscr ld de,16384 ld bc,32*160 ldir nextreg $57,1 ret downall defw 0, 0 KL klavesa defb 0 leftpos defw 0 ;Test jestli je soubor označený nebo ne ;Z - není označený ;NZ - je označený CHECKSEL ld hl,POSKURZL call ROZHOD ld a,(hl) ld l,a ld h,0 push hl ld hl,STARTWINL call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ex de,hl pop hl add hl,de inc hl call BUFF83 call find83 ld hl,TMP83 bit 7,(hl) ld a,(curcolor+1) jr z,neni_oznacen or a ld a,80 ret z ld a,96 ret neni_oznacen or a ld a,0 ret z ld a,32 ret ;Nakreslí kurzor writecur ld (curcolor+1),a call CHECKSEL ld (curcolor+1),a ld hl,KURZL call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a inc hl push hl ld hl,POSKURZL call ROZHOD ld a,(hl) ld e,a ld d,160 mul d,e pop hl add hl,de curcolor ld a,32 ld b,38 wr0 ld (hl),a inc hl inc hl djnz wr0 ret ROZHOD ld a,(OKNO) bit 4,a ret z inc hl ret ROZHOD2 ld a,(OKNO) bit 4,a ret z inc hl inc hl ret ; Násobení HL x B ; Vysledek HL mull ld d,l ;vynásob spodní byty ld e,b ; mul d,e ;vysledek je v de ex de,hl ;vysledek je v hl ld e,b ;násobitel do e mul d,e ;vynásob ld a,e ;do akumulátoru hoď výsledek (spodní byte) add a,h ld h,a ;konečný výsledek je v HL ret ;Najde podle pozice souboru nazev 8.3, se kterým dále pracujeme ;HL ... pozice find83 push hl ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld de,2 add hl,de ld a,(hl) pop hl cp 255 jr nz,find830 dec hl find830 ld b,13 call mull ld de,$a000 add hl,de call BUFF83 ld (foundfile),hl ld de,TMP83 ld bc,13 ldir call NOBUFF83 ret foundfile defw 0 TMP83 ds 13 INKEY call gettime xor a ld (aLAST_KEY+1),a ei ld b,2 CEKEJ halt djnz CEKEJ ahl0 call KEYSCAN ld a,e inc a jr z,INKEY ld a,d ld hl,SYMTAB cp $18 jr z,aHLSM2 ld hl,CAPSTAB cp $27 jr z,aHLSM2 ld hl,NORMTAB aHLSM2 ld d,0 add hl,de ld a,(hl) or a jr z,INKEY aLAST_KEY ld b,0 cp b jr z,aSEDI_KEY ld b,3 aLOOP_LST halt djnz aLOOP_LST aSEDI_KEY ld (aLAST_KEY+1),a push af call beepk pop af ret ;KeyScan od Busyho z MRSu KEYSCAN ld l,47 ;testovani klavesnice ld de,65535 ld bc,65278 KEYLINE in a,(c) cpl and 31 jr z,KEYDONE ld h,a ld a,l KEY3KEYS inc d ret nz KEYBITS sub 8 srl h jr nc,KEYBITS ld d,e ld e,a jr nz,KEY3KEYS KEYDONE dec l rlc b jr c,KEYLINE ld a,d inc a ret z cp 40 ret z cp 25 ret z ld a,e ld e,d ld d,a cp 24 ret keysound db 0 ;key sound 0= yes,1= no, klavesnicove echo SYMTAB db "*^[&%>}/" db ",-]'$<{?" db ".+($" db 200 db '/',' ' db 0 db "=;)@" db 201 db "|:" db 32,13,34 db "_!" db 199 db "~",0 CAPSTAB db "BHY" db 10,8 db "TGV" db "NJU" db 11,5 db "RFC" db "MKI" db 9,4 db "EDX" db 2 db "LO" db 15,6 db "WSZ" db 1,13,"P" db 12,7 db "QA" NORMTAB db "bhy65tgv" db "nju74rfc" db "mki83edx" db 0 db "lo92wsz" db 32,13 db "p01qa" db 0 beepk ld a,(keysound) ;Busyho nahradni rutina,kratsi or a ret nz ld a,(BORDER) ld e,a ld b,$10 add a,b ; ld a,$10+border out ($fe),a ld b,$1c beepk1 djnz beepk1 ld a,$08 add a,e ; ld a,$08+border out ($fe),a ret BORDER db 1 ;okraj offset equ 3 ;vstup: ; HL .... XY ; DE .... TEXT zakonceny 0 bytem ; A ..... atribut palety print ld (paleta + 1),a push de ld d,l ld e,160 mul d,e ld a,h add a,a ld l,a ld h,0 add hl,de ld de,$4000 add hl,de pop de print0 ld a,(de) or a ret z ld (hl),a paleta ld a,0 inc hl inc de ld (hl),a inc hl jr print0 window ld (atr1+1),a ld (atr2+1),a ld (atr3+1),a ld (atr4+1),a ld (atr5+1),a ld (atr6+1),a ld (atr7+1),a ld (atr8+1),a ld (atr9+1),a ld e,l ld d,160 mul d,e ld a,h add a,a ld l,a ld h,0 add hl,de ld de,#4000 add hl,de ;adresa v tilemode window0 push hl ld a,18 ld (hl),a inc hl atr1 ld (hl),0 ld a,b ld (w5+1),a ld a,16 inc hl w2 ld (hl),a inc hl atr2 ld (hl),0 inc hl djnz w2 ld a,19 ld (hl),a inc hl atr3 ld (hl),0 ld de,160-1 add hl,de ld (w3+1),hl ;uloz adresu pop hl ld de,160 add hl,de ld (w4+1),hl w3 ld hl,0 ld a,23 ld (hl),a inc hl atr4 ld (hl),0 ld de,160-1 add hl,de ld (w3+1),hl w4 ld hl,0 ;leva cast ld a,22 ld (hl),a inc hl atr5 ld (hl),0 push hl inc hl ld a,(w5+1) ld b,a cisti ld (hl),0 inc hl atr6 ld (hl),0 inc hl djnz cisti pop hl ld de,160-1 add hl,de ld (w4+1),hl dec c ld a,c or a jr nz,w3 ld a,21 ld (hl),a inc hl atr7 ld (hl),0 w5 ld b,0 ld a,17 w6 inc hl ld (hl),a inc hl atr8 ld (hl),0 djnz w6 inc hl ld a,20 ld (hl),a inc hl atr9 ld (hl),0 ret module draw window UZZ ld (atr1+1),a ld (atr2+1),a ld (atr3+1),a ld (atr4+1),a ld (atr5+1),a ld (atr6+1),a ld (atr7+1),a ld (atr8+1),a ld (atr9+1),a ld (atr200+1),a ld e,l ld d,160 mul d,e ld a,h add a,a ld l,a ld h,0 add hl,de ld de,#4000 add hl,de ;adresa v tilemode window0 push hl ld a,18 ld (hl),a inc hl atr1 ld (hl),0 ld a,b ld (w5+1),a rra ;vyděl dvěma ld b,12 ;odečti 10 or a sbc a,b ld b,a ld (w20+1),a ld a,16 inc hl w2 ld (hl),a inc hl atr2 ld (hl),0 inc hl djnz w2 ld a,"[" ld (hl),a inc hl ld a,(atr200+1) ld (hl),a inc hl ld b,21 writmes ld a," " ld (hl),a inc hl ld a,(atr200+1) ld (hl),a inc hl djnz writmes ld a,"]" ld (hl),a inc hl ld a,(atr200+1) ld (hl),a inc hl ld a,16 ld (hl),a inc hl ld a,(atr200+1) ld (hl),a inc hl ld a,16 w20 ld b,0 w2000 ld (hl),a inc hl atr200 ld (hl),0 inc hl djnz w2000 ld a,19 ld (hl),a inc hl atr3 ld (hl),0 ld de,160-1 add hl,de ld (w3+1),hl ;uloz adresu pop hl ld de,160 add hl,de ld (w4+1),hl w3 ld hl,0 ld a,23 ld (hl),a inc hl atr4 ld (hl),0 ld de,160-1 add hl,de ld (w3+1),hl w4 ld hl,0 ;leva cast ld a,22 ld (hl),a inc hl atr5 ld (hl),0 push hl inc hl ld a,(w5+1) ld b,a cisti ld (hl),0 inc hl atr6 ld (hl),0 inc hl djnz cisti pop hl ld de,160-1 add hl,de ld (w4+1),hl dec c ld a,c or a jr nz,w3 ld a,21 ld (hl),a inc hl atr7 ld (hl),0 w5 ld b,0 ld a,17 w6 inc hl ld (hl),a inc hl atr8 ld (hl),0 djnz w6 inc hl ld a,20 ld (hl),a inc hl atr9 ld (hl),0 ret endmodule reload_dir di ld hl,catbuff ld (Count11+1),hl ld hl,ALLFILES call ROZHOD2 xor a ld (hl),a inc hl ld (hl),a ld hl,numsel call ROZHOD2 xor a ld (hl),a inc hl ld (hl),a ld (virtmem),a call BUFF83 ld hl,#a000 ld de,#a001 ld bc,1024 xor a ld (hl),a ldir call dospage ;be low BFE0h ;in ter rupts can now be en abled ld hl,catbuff ;some where for DOS to put the cata ;log ld de,catbuff+1 ; ld bc,1024 ;max i mum (for +3DOS) is ac tu ally ;64x13+13 = 845 ld (hl),0 ldir ;make sure at least first en try is ld de,catbuff ;the lo ca tion to be filled with the aNextDirItem ld b,pocetpolozek ;the num ber of en tries in the ;buffer ld c,%101 ;include sys tem files in the cata ld hl,stardstar ;the file name ("*.*") call dos_catalog ;call the DOS en try NEXT0 ld (savehl),hl ld (saveix),ix ld a,b cp pocetpolozek push af push hl push de push bc ld hl,ALLFILES call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld e,b ld d,0 add hl,de dec hl push hl ld hl,ALLFILESL call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld (N0+1),hl pop hl N0 ld (0),hl ld hl,(dirNum) add hl,de dec hl ld (dirNum),hl pop bc pop de pop hl pop af jr c,acont ld a,b or a jr z,acont ld a,(virtmem) cp 2 jr z, acont call CountMemory ex de,hl ld hl,virtmem inc (hl) jr aNextDirItem acont push af ld hl,(dirNum) pop hl ld (dosret),hl ;put it where it can be seen from ; NextBASIC ld c,b ;move num ber of files in cat a log to ;low byte of BC ld b,0 ;this will be re turned in NextBASIC di ;about to ROM/RAM switch so be ;care ful push bc ;save num ber of files call basicpage pop bc ;get back the saved num ber of files dec bc call BUFF83 ld hl,catbuff+13 askon call getAllLFN call getdir ld hl,(ALLFILES) dec hl push hl ld hl,downall call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a pop de ex de,hl ld (hl),e inc hl ld (hl),d ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld de,3 add hl,de ld a,(hl) cp 255 jr z,jetoroot ld a,1 jr nenitoroot jetoroot xor a nenitoroot ld (pocatek+1),a ld hl,STARTWINL call ROZHOD2 pocatek ld (hl),0 call NOBUFF83 ret dospage ld bc,port1 ld a,(bankm) res 4,a or 7 ld (bankm),a out (c),a ret basicpage ;Nastránkuje základní stránku ZXOS ld bc,port1 ld a,(bankm) set 4,a and #F8 ld (bankm),a out (c),a ret DETT discdetail defs 30 lfnpage defb 24,60 getAllLFN ld hl,0 ld (numLoop),hl ld hl,#e000 ld (InBuff+1),hl ld hl,lfnpage call ROZHOD ld a,(hl) ld (Page+1),a call BUFF83 ld hl,catbuff+#d ld de,bufftmp ld bc,13 ldir call NOBUFF83 ld hl,catbuff+#d ld (tmpname),hl ld hl,ALLFILES call ROZHOD2 ld a,(hl) inc hl ld b,(hl) ld c,a or b ret z LFN1 push bc ld hl,(numLoop) inc hl ld (numLoop),hl lfnpos ld de,18560+24 ;pozice ve VideoRam di ;zakaž přerušení, jinak bude problém, nemáme nastránkovanou ZX Rom call dospage BFN BufferName ld de,bufftmp ;jmeno souboru ld hl,stardstar ld ix,(savehl) ld bc,LFNNAME call $01b7 ;zjisti LFN ld (LFNNAME + 261),ix ;uloží delku ld (LFNNAME + 261 + 2),hl ld (LFNNAME + 261 + 4),bc ;uloží datum ld (LFNNAME + 261 + 6),de ;uloží čas call basicpage Page ld a,24 nextreg $57,a ;nastrankuj stranku s volnymi daty InBuff ld de,#e000 ;ukazatel na pamet v bufferu ld hl,LFNNAME ;buffer pro LFN ld bc,maxlen ;ulož 64 bytů ldir call BUFF83 ld hl,(tmpname) ;přesuň se na další položku v adresáři ld de,13 add hl,de ld (tmpname),hl ;a ulož adresu, kde se nachází ld de,bufftmp ld bc,13 ldir call NOBUFF83 ld a,(Page+1) nextreg $57,a ld hl,(InBuff+1) ;vypočti další adresu v bance ZX Next, kam budu ukládat ld de,maxlen add hl,de ld (InBuff+1),hl ld de,#FFFF-261 or a sbc hl,de jr c,contin ld hl,Page+1 inc (hl) ld hl,#e000 ld (InBuff+1),hl contin pop bc ;zopakuj to pro všechny soubory, které máme načtené... dec bc ld a,b or c jp nz,LFN1 AAA nextreg $57,1 ;vráť zpátky stránku, kde se nachází data pro player ret ; Input: HL = Dividend, C = Divisor, A = 0 ; Output: HL = Quotient, A = Remainder deleno xor a ld b,16 de add hl,hl rla cp c jr c,de1 sub c inc l de1 djnz de ret addrlfn dw 0 setspace ld (hl),32 ret buffl defb 20 buffr defb 22 BUFF83 push hl push de push af ld hl,buffl call ROZHOD ld a,(hl) nextreg $55,a ;nastrankuj data pro spravne okno pop af pop de pop hl ret NOBUFF83 nextreg $55,5 ret CountMemory ld de,13*(pocetpolozek-1) Count11 ld hl,catbuff add hl,de ld (Count11+1),hl ret changedrivetxt defb "Select drive:",0 selecttxt defb "ENTER = select",0 enterdrv call dospage HNH ld a,(posdrv) ld e,a ld d,0 ld hl,listdisc add hl,de ld a,(hl) push af call $012d ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld hl,actdisc call ROZHOD pop af ld (hl),a call basicpage call getdir ld hl,0 ld hl,ALLFILES call ROZHOD2 xor a ld (hl),a inc hl ld (hl),a ld hl,POSKURZL call ROZHOD xor a ld (hl),a ;jp vol_reload RLD call reload_dir ld hl,pozicel call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld bc,38 * 256 + 27 ld a,0 call window ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld de,3 add hl,de ld a,(hl) cp 255 jr z,aroot ld a,1 ld (astar+1),a jr arcont aroot xor a ld (astar+1),a arcont ld hl,adrl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld (adrs+1),hl astar ld hl,1 push hl ld hl,ALLFILES call ROZHOD2 ld a,(hl) inc hl ld h,(hl) or h pop hl jp z,loop0 call showwin ld a,32 call writecur ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld de,3 add hl,de ld a,(hl) cp 255 jr z,asnula ld hl,1 jr ascont asnula ld hl,0 ascont ld hl,ALLPOSL call ROZHOD2 ld (hl),0 ld hl,STARTWINL call ROZHOD2 push hl call getroot_reload pop de ex de,hl ld (hl),e inc hl ld (hl),d call showwin ld a,32 call writecur call GETDIR call zobraz_nadpis jp loop0 ramdisc defb " (ramdisc)",0 ;v současné verzi se nebude vypisovat image defb " (disc image) ",0 sdcard defb " (SD card)",0 ;Vypis kurzoru pri vyberu disku writecurdrv push af ld hl,lftw call ROZHOD ld a,(hl) or a jr z,levy_panel ld hl,$4000 + 160*8 + 17 + 78 ld (kkam +1),hl jr pravy_panel levy_panel ld hl,$4000 + 160*8 + 15 ld (kkam +1),hl pravy_panel pop af ld (chngcol+1),a ld a,(posdrv) ld e,a ld d,160 mul d,e kkam ld hl,0 add hl,de ld b,15 wrcurdrv chngcol ld (hl),64 inc hl inc hl djnz wrcurdrv ret chng_save call dospage ld d,00000111b ld e,0 ld ix,TMP83+7 bit 7,(ix+1) call z,clr_ro bit 7,(ix+2) call z,clr_sys bit 7,(ix+3) call z,clr_arch push de ld hl,(foundfile) call BUFF83 ld de,8 add hl,de ex de,hl ld hl,TMP83+8 ld bc,3 ldir call NOBUFF83 ld hl,TMP83 ld b,11 ld hl,TMP83 c_save ;vynuluj všechny stavové bity v názvu (7.) res 7,(hl) inc hl djnz c_save ld hl,TMP83 ld a,255 ld (TMP83+11),a pop de call 0148h call basicpage call loadscr jp loop0 clr_ro set 2,e ret clr_sys set 1,e ret clr_arch set 0,e ret posdrv defb 0 ALLFILESL defw ALLFILES, ALLFILES2 name defs 60 ALLFILES defw 0 ALLFILES2 defw 0 ALLFILESR defw 0 ;Buffer pro LFN LFNNAME defs 270 ;Pomocný buffer pro LFN - při porovnávání LFNNAME2 defs 270 tmpname ds 2 BFT bufftmp ds 15 M_P3DOS equ $94 savehl defw 0 saveix defw 0 bankm defb 0 ; equ #5B5C ;sys tem vari able that holds the stardstar: defb "*.*",#FF dosret: defw 0 numLoop defw 0 FILES defb 0 dirNum defw 0 include "functions/file.asm" include "functions/delete.asm" include "functions/input.asm" include "functions/createdir.asm" include "functions/rename.asm" include "functions/texts.asm" include "functions/getdir.asm" ; 24 chars skipped (3*256) ; starts at character 32 - 4 dir_arrows - 3 color dots - 1 reserve = 24 FILEBUFF ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** ;***************************************************************************************** E1 org $a000 include "functions/copy.asm" org 49152 S2 tilemapFont_char24: INCLUDE "tilemap_font_8x6.i.asm" tilemapFont: ds 16*32 ConvertRomCharTo4bpp: push bc ld bc,$08FF .lineLoop: ld a,(hl) inc hl push hl call .convert8pixels pop hl djnz .lineLoop pop bc ret .convert8pixels: call .convert4pixels .convert4pixels: call .convert2pixels .convert2pixels: rlca rlca push af and 3 ld hl,.pixelTable add hl,a ldi pop af ret .pixelTable: DB $00, $03, $30, $33 VSE_NASTAV ld a,3 ld (OKNO),a nextreg MMU3_6000_NR_53,5*2+1 ld hl,TILE_GFX_ADR ld de,TILE_GFX_ADR+1 ld bc,16*32-1 ld (hl),0 ldir ld hl,$6000 ld de,$6001 ld bc,32*16 ld (hl),l ldir ld de,$6000 + 32*32 ; convert ROM font to 4bpp tiles by code ld hl,MEM_ROM_CHARS_3C00 + 32*8 ld b,128-' ' .RomCharsLoop call ConvertRomCharTo4bpp djnz .RomCharsLoop ld hl,specialchar ld de,$6000+32*16 ld bc,specialchar2-specialchar ldir nextreg TURBO_CONTROL_NR_07,3 ; 28Mhz mode nextreg SPRITE_CONTROL_NR_15,%000'100'00 ; layer priority: USL nextreg TRANSPARENCY_FALLBACK_COL_NR_4A,0 ; black transparency fallback color nextreg TILEMAP_TRANSPARENCY_I_NR_4C,$0F nextreg ULA_CONTROL_NR_68,$80 ; disable ULA layer nextreg DISPLAY_CONTROL_NR_69,0 ; layer2 off, bank 5, timex=0 nextreg TILEMAP_CONTROL_NR_6B,%1100'0011 ; 80x32x2, 4bpp, pal0, 512tile-mode, force tile-over-ULA nextreg TILEMAP_DEFAULT_ATTR_NR_6C,$00 ; no pal offset, no mirror/rot, 0 bit8 nextreg TILEMAP_BASE_ADR_NR_6E,high TILE_MAP_ADR nextreg TILEMAP_GFX_ADR_NR_6F,high TILE_GFX_ADR nextreg CLIP_WINDOW_CONTROL_NR_1C,%0000'1000 nextreg CLIP_TILEMAP_NR_1B,0 nextreg CLIP_TILEMAP_NR_1B,159 nextreg CLIP_TILEMAP_NR_1B,0 nextreg CLIP_TILEMAP_NR_1B,255 nextreg TILEMAP_XOFFSET_MSB_NR_2F,0 nextreg TILEMAP_XOFFSET_LSB_NR_30,0 nextreg TILEMAP_YOFFSET_NR_31,0 ; set tilemap palette nextreg PALETTE_CONTROL_NR_43,%0'011'0000 ; tilemap pal0 nextreg PALETTE_INDEX_NR_40,0 ld hl,tilemapPalette ld b,tilemapPalette_SZ .setPalLoop: ld a,(hl) inc hl nextreg PALETTE_VALUE_9BIT_NR_44,a djnz .setPalLoop ld hl,$4000 ld de,$4001 ld bc,80*32*2 ld (hl),0 ldir ld hl,nadpis ld de,#4000 ld bc,80 ret tilemapPalette: db %000'000'11,1 ; 0 modra(paper) 0 db %100'100'10,1 ; 1 light grey (25% ink) db %010'010'01,1 ; 2 dark grey (75% ink) db %101'101'11,0 ; 0 white-blueish (ink) db %110'001'00,1 ; 4 red db %111'110'00,1 ; 5 yellow db %000'100'00,0 ; 6 green ds 18 db %000'000'00,0 ; 0 modra (paper) 16 db %100'100'10,1 ; 1 light grey (25% ink) db %010'010'01,1 ; 2 dark grey (75% ink) db %101'101'11,0 ; 0 white-blueish (ink) db %110'001'00,1 ; 4 red db %111'110'00,1 ; 5 yellow db %000'110'00,0 ; 6 green ds 18 db %000'011'10,1 ; 0 modra (paper) 32 db %100'100'10,1 ; 1 light grey (25% ink) db %010'010'01,1 ; 2 dark grey (75% ink) db %101'101'11,0 ; 0 white-blueish (ink) db %110'001'00,1 ; 4 red db %111'110'00,1 ; 5 yellow db %000'100'00,0 ; 6 green ds 18 db %111'111'11,1 ; 0 modra (paper) 48 db %100'100'10,1 ; 1 light grey (25% ink) db %010'010'01,1 ; 2 dark grey (75% ink) db %000'000'000,0 ; 0 white-blueish (ink) db %110'001'00,1 ; 4 red db %111'110'00,1 ; 5 yellow db %000'100'00,0 ; 6 green ds 18 db %011'101'00,1 ; 0 zluta (paper) 64 db %100'100'10,1 ; 1 light grey (25% ink) db %010'010'01,1 ; 2 dark grey (75% ink) db %000'000'00,0 ; 0 white-blueish (ink) db %110'001'00,1 ; 4 red db %111'110'00,1 ; 5 yellow db %000'100'00,0 ; 6 green ds 18 db %100'100'10,0 ; 0 zluta (paper) 80 db %100'100'10,1 ; 1 light grey (25% ink) db %010'010'01,1 ; 2 dark grey (75% ink) db %000'000'00,0 ; 0 white-blueish (ink) db %110'001'00,1 ; 4 red db %111'110'00,1 ; 5 yellow db %000'100'00,0 ; 6 green ds 18 db %101'101'10,1 ; 0 zluta (paper) 80 db %100'100'10,1 ; 1 light grey (25% ink) db %010'010'01,1 ; 2 dark grey (75% ink) db %000'000'00,0 ; 0 white-blueish (ink) db %110'001'00,1 ; 4 red db %111'110'00,1 ; 5 yellow db %000'100'00,0 ; 6 green ds 18 tilemapPalette_SZ: EQU $ - tilemapPalette lftw defb 0 defb 1 include "functions/compare.asm" changedrive call savescr call NOBUFF83 ld hl,lftw call ROZHOD ld a,(hl) or a jr nz,chngright ld hl, 4 * 256 + 5 ld bc,30 * 256 + 17 ld a,16 call window ld hl,5*256+6 ld a,16 ld de,changedrivetxt call print ld hl,20*256+22 ld a,16 ld de,selecttxt call print ld hl,24*256+21 ld a,16 ld de,notxt call print ld a,(pocetdisku) ld b,a ld de,listdisc exx ld hl,discdetail exx ld hl,$4000 + 160*8 + 14 jr chngdrv0 chngright ld hl,44 * 256 + 5 ld bc,30 * 256 + 17 ld a,16 call window ld hl,45*256+6 ld a,16 ld de,changedrivetxt call print ld hl,60*256+22 ld a,16 ld de,selecttxt call print ld hl,64*256+21 ld a,16 ld de,notxt call print ld a,(pocetdisku) ld b,a ld de,listdisc exx ld hl,discdetail exx ld hl,$4000 + 160*8 + 16 + 78 chngdrv0 ld a,(de) ld (hl),a inc hl ld (hl),16 inc hl ld (hl),":" inc hl ld (hl),16 inc hl push hl exx ld a,(hl) inc hl exx cp 4 pop hl push hl push de push af call z,showramdisc pop af push af cp 255 call z,showimagedisc pop af cp 5 call z,showsdcard cp 6 call z,showsdcard pop de pop hl push de ld de,160-4 add hl,de pop de inc de djnz chngdrv0 ld a,64 call writecurdrv chng0 call INKEY cp 10 jr z,curchngdown cp 11 jr z,curchngup cp 1 jr z,cancel cp 13 jp z,enterdrv jp chng0 cancel call loadscr call zobraz_nadpis jp loop0 curchngup ld a,(posdrv) cp 0 jp z,chng0 ld a,16 call writecurdrv ld a,(posdrv) dec a ld (posdrv),a ld a,64 call writecurdrv jp chng0 curchngdown ld a,(posdrv) inc a ld hl,pocetdisku cp (hl) jr z,chng0 ld a,16 call writecurdrv ld a,(posdrv) inc a ld (posdrv),a ld a,64 call writecurdrv jp chng0 showramdisc ld de,ramdisc call showtyp xor a ret showimagedisc ld de,image call showtyp xor a ret showsdcard ld de,sdcard call showtyp xor a ret showtyp ld a,(de) or a ret z shwtyp0 ld (hl),a inc hl ld (hl),16 inc hl inc de jr showtyp down ld hl,ALLFILES call ROZHOD2 ld a,(hl) inc hl ld h,(hl) or h jp z,loop0 ld hl,POSKURZL call ROZHOD ld a,(hl) cp 26 jr z,down0 push af ld hl,STARTWINL call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a pop af ld e,a ld d,0 add hl,de push hl ld hl,ALLFILES call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a dec hl pop de or a sbc hl,de jp z,loop0 ld a,0 call writecur ld hl,POSKURZL call ROZHOD inc (hl) ld hl,ALLPOSL call ROZHOD2 push hl ld a,(hl) inc hl ld h,(hl) ld l,a pop de ex de,hl inc de ld (hl),e inc hl ld (hl),d ld hl,adrl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld (adrs+1),hl call getroot call showwin ld a,32 call writecur jp loop0 down0 push af ld hl,STARTWINL call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a pop af ld e,a ld d,0 add hl,de push hl ld hl,ALLFILES call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a dec hl pop de or a sbc hl,de jp z,loop0 ld hl,ALLPOSL call ROZHOD2 push hl ld a,(hl) inc hl ld h,(hl) ld l,a push hl ld hl,downall call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a pop de ex de,hl or a sbc hl,de add hl,de pop de jp z,loop0 ex de,hl inc de ld (hl),e inc hl ld (hl),d ld hl,STARTWINL call ROZHOD2 push hl ld a,(hl) inc hl ld h,(hl) ld l,a pop de ex de,hl inc de ld (hl),e inc hl ld (hl),d ld hl,adrl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld (adrs+1),hl call getroot call showwin ld a,32 call writecur jp loop0 up ld hl,ALLFILES call ROZHOD2 ld a,(hl) inc hl ld h,(hl) or h jp z,loop0 ld hl,POSKURZL call ROZHOD ld a,(hl) or a jr z,up0 ld a,0 call writecur ld hl,POSKURZL call ROZHOD dec (hl) ld hl,ALLPOSL call ROZHOD2 push hl ld a,(hl) inc hl ld h,(hl) ld l,a pop de ex de,hl dec de ld (hl),e inc hl ld (hl),d ld hl,adrl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld (adrs+1),hl call getroot call showwin ld a,32 call writecur jp loop0 up0 UP0 ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld de,3 add hl,de ld a,(hl) cp 255 jr z,upzero ld a,1 ld (kolik+1),a jr opcont upzero xor a ld (kolik+1),a opcont ld hl,STARTWINL call ROZHOD2 push hl ld a,(hl) inc hl ld h,(hl) ld l,a kolik ld de,0 or a ld (usavehl+1),hl sbc hl,de ;add hl,de pop de ld a,l or h jp z,loop0 usavehl ld hl,0 ;or a ;sbc hl,bc ex de,hl dec de ld (hl),e inc hl ld (hl),d ld hl,adrl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld (adrs+1),hl call getroot call showwin ld a,32 call writecur jp loop0 showwin ld hl,ALLFILES call ROZHOD2 ld a,(hl) inc hl ld h,(hl) or h ret z ld hl,STARTWINL call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld a,2 ld (ypos+1),a ;vynuluj Y pozici push hl ld hl,ALLFILES call ROZHOD2 ld a,(hl) inc hl ld b,(hl) ld c,a ld h,b ld l,c push hl ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld de,3 add hl,de ld a,(hl) cp 255 jr z,sw0 dec hl ld a,(hl) cp 255 jr z,ssw0 ld hl,1 dec bc jr sw0 ssw0 pop de pop hl dec hl push hl push de sw0 pop hl ld de,28 or a sbc hl,de jr c,SSS ld bc,27 SSS pop hl showloop push hl push bc inc hl call find83 call BUFF83 ld hl,(foundfile) bit 7,(hl) ;testuj jestli je soubor označený jr z,nonselect ld a,80 ld (inkcolor+1),a jr isselect nonselect ld a,0 ld (inkcolor+1),a isselect ld hl,(TMP83+11) ld (velikost+1),hl pop bc pop hl push hl push bc call FINDLFN SSSS ypos ld e,2 ld d,80 * 2 mul d,e adrs ld hl,$4000 + 2 add hl,de ex de,hl ld hl,LFNNAME ld bc,31 shw0 ld a,(hl) cp 255 jr z,shw01 ld (de),a inc de inc hl inkcolor ld a,0 ld (de),a inc de dec bc ld a,b or c jr nz,shw0 shw01 ld hl,TMP83 +7 bit 7,(hl) jr z,shw20 dir ld hl,dirext ld bc,5+2 shw1 ld a,(hl) ld (de),a inc de inc hl ld a,(inkcolor+1) ld (de),a inc de dec bc ld a,b or c jr nz,shw1 jr shw3 shw20 velikost ld hl,0 push de call NUM ld hl,NUMBUF ld b,5 vel1 ld a,(hl) cp "0" jr nz,vel2 ld (hl)," " inc hl djnz vel1 vel2 pop de ld hl,NUMBUF shw2 ld b,5 sh ld a,(hl) ld (de),a ld a,(inkcolor+1) inc de ld (de),a inc de inc hl djnz sh ld a,"k" ld (de),a inc de ld a,(inkcolor+1) ld (de),a inc de ld a,"B" ld (de),a inc de ld a,(inkcolor+1) ld (de),a shw3 pop bc pop hl inc hl ld a,(ypos+1) inc a ld (ypos+1),a dec bc ld a,b or c jp nz,showloop call NOBUFF83 ret leftcur ld hl,ALLFILES call ROZHOD2 ld a,(hl) inc hl ld h,(hl) or h jp z,loop0 ld hl,POSKURZL call ROZHOD ld (smcur+1),hl ld a,(hl) or a jr z,leftcur0 ld a,0 push hl call writecur pop hl xor a ld (hl),a ld a,32 call writecur jp loop0 leftcur0 LFT0 ld hl,0 push hl ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld de,3 add hl,de ld a,(hl) cp 255 pop hl jr z,leftcur1 inc hl leftcur1 ld (leftcur_porovnej + 1),hl ld hl,POSKURZL call ROZHOD ld a,(hl) ld l,a ld h,0 push hl ld hl,STARTWINL call ROZHOD2 ld (pocatekleft+1),hl ld a,(hl) inc hl ld h,(hl) ld l,a ex de,hl pop hl add hl,de inc hl ;aktualni pozice v HL ld (aktpos+1),hl leftcur_porovnej ld de,0 or a sbc hl,de add hl,de jp z,loop0 ;odskoc pokud jsi na prvni pozici ld de,28 or a sbc hl,de add hl,de jr c,mensi_nez_28 ld de,28 aktpos ld hl,0 or a sbc hl,de ex de,hl jr pocatekleft mensi_nez_28 ld de,(leftcur_porovnej + 1) pocatekleft ld hl,0 ld (hl),e inc hl ld (hl),d ;vykresli znova okno ld hl,adrl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld (adrs+1),hl call getroot call showwin ld a,32 call writecur jp loop0 RGHT rightcur ld hl,ALLFILES call ROZHOD2 ld a,(hl) inc hl ld h,(hl) or h jp z,loop0 ld hl,POSKURZL call ROZHOD ld (smcur+1),hl ld a,(hl) cp 26 jp z,rightcur0 ;zobraz další stránku ld hl,ALLFILES call ROZHOD2 ld a,(hl) inc hl ld d,(hl) ld e,a dec de push de ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld de,3 add hl,de ld a,(hl) cp 255 pop de jr z,aasw0 dec de aasw0 ld hl,26 or a sbc hl,de add hl,de jr c,posledniradek ld a,e ld (kamcur+1),a jr smcur posledniradek ld a,26 ld (kamcur+1),a smcur ld hl,0 ld a,0 call writecur krcur ld hl,(smcur+1) kamcur ld (hl),26 ld a,32 call writecur jp loop0 rightcur0 ld hl,STARTWINL call ROZHOD2 ld (rightsedi+1),hl ;ulož adresu okna, které se bude vykreslovat ld a,(hl) inc hl ld h,(hl) ld l,a ld (AKT+1),hl inc hl ld de,27 +27 add hl,de push hl ;HL ... číslo souboru na kterém stojí kurzor + 26 (stránka) ld hl,ALLFILES call ROZHOD2 ld a,(hl) inc hl ld d,(hl) ld e,a ld (MAXR+1),de dec de dec de pop hl ;DE ... počet všech souborů v aktuálním okně or a ex de,hl sbc hl,de add hl,de jr c,right12 ;když se nesmí odstránkovat celých 26 souborů MAXR ld hl,0 AKT ld hl,0 ld de,27 or a add hl,de add hl,de push hl ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld de,3 add hl,de ld a,(hl) cp 255 pop hl jr z,asw0 dec hl asw0 ;dec hl ld de,27 or a sbc hl,de jr rightsedi right12 ld hl,(MAXR+1) ld de,27 or a sbc hl,de rightsedi ld (0),hl ;vykresli znova okno ld hl,adrl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld (adrs+1),hl SED call getroot call showwin ld a,32 call writecur jp loop0 ;Označí soubor dle HL OZNA oznac_soubor_dle_pozice_v_hl call BUFF83 call find83 call BUFF83 ld hl,(foundfile) push hl ld de,ban1 ld a,0 call specific_search pop hl jr z,odeselect_file push hl ld de,ban2 ld a,0 call specific_search pop hl jr z,odeselect_file bit 7,(hl) jr z,oselect_file res 7,(hl) ld hl,numsel call ROZHOD2 push hl ld a,(hl) inc hl ld h,(hl) ld l,a pop de dec hl ex de,hl ld (hl),e inc hl ld (hl),d jr odeselect_file oselect_file set 7,(hl) ;označ soubor ld hl,numsel call ROZHOD2 push hl ld a,(hl) inc hl ld h,(hl) ld l,a pop de inc hl ex de,hl ld (hl),e inc hl ld (hl),d odeselect_file call NOBUFF83 ret numsel defw 0,0 seltxt defb "Selected: ",0 SES select ld hl,POSKURZL call ROZHOD ld a,(hl) ld l,a ld h,0 push hl ld hl,STARTWINL call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ex de,hl pop hl add hl,de inc hl ;v HL máme číslo souboru call BUFF83 call find83 call BUFF83 ld hl,(foundfile) push hl ld de,ban1 ld a,0 call specific_search pop hl jp z,down push hl ld de,ban2 ld a,0 call specific_search pop hl jp z,down bit 7,(hl) jr z,select_file res 7,(hl) ld hl,numsel call ROZHOD2 push hl ld a,(hl) inc hl ld h,(hl) ld l,a pop de dec hl ex de,hl ld (hl),e inc hl ld (hl),d jr deselect_file select_file set 7,(hl) ;označ soubor ld hl,numsel call ROZHOD2 push hl ld a,(hl) inc hl ld h,(hl) ld l,a pop de inc hl ex de,hl ld (hl),e inc hl ld (hl),d deselect_file selcont ld hl,adrl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld (adrs+1),hl call getroot call showwin ld a,32 call writecur jp down quittxt defb "You want realy quit from Calm Commander?",0 emul defb "Sorry, you use emulator... ;) Reset not works.",0 quit call savescr ld hl,10 * 256 + 10 ld bc,60 * 256 + 5 ld a,16 call window ld hl,11*256+11 ld a,16 ld de,quittxt call print ld hl,60*256+15 ld a,48 ld de,yestxt call print ld hl,60*256+14 ld a,16 ld de,notxt call print quit0 call INKEY cp 1 jp z,infoend cp 13 jp z,softreset jp quit0 softreset nextreg 2,1 ld hl,10 * 256 + 10 ld bc,60 * 256 + 5 ld a,16 call window ld hl,11*256+11 ld a,16 ld de,emul call print ld hl,11*256+15 ld a,16 ld de,pressanykeytxt call print call INKEY call loadscr jp loop0 CHNG_ATTR ld hl,POSKURZL call ROZHOD ld a,(hl) ld l,a ld h,0 push hl ld hl,STARTWINL call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ex de,hl pop hl add hl,de push hl inc hl call BUFF83 call find83 pop hl call FINDLFN call BUFF83 ld hl,(foundfile) ld de,ban1 ld a,0 call specific_search jp z,loop0 ld hl,(foundfile) ld de,ban2 ld a,0 call specific_search jp z,loop0 call savescr ld hl,POSKURZL call ROZHOD ld a,(hl) ld l,a ld h,0 push hl ld hl,STARTWINL call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ex de,hl pop hl add hl,de push hl inc hl call BUFF83 call find83 pop hl call FINDLFN ld hl,8 * 256 + 10 ld bc,60 * 256 + 10 ld a,16 call window ld hl,11*256+11 ld a,16 ld de,attr_nadpis call print ld hl,11*256+13 ld a,16 ld de,readonlytxt call print ld hl,11*256+14 ld a,16 ld de,systemfiletxt call print ld hl,11*256+15 ld a,16 ld de,archivedtxt call print xor a ld hl,LFNNAME+44 ld (hl),a ld hl,24*256+17 ld a,16 ld de,LFNNAME call print ld hl,11*256+17 ld a,16 ld de,namefile call print ld hl,55*256+20 ld a,48 ld de,savetxt call print ld hl,55*256+19 ld a,16 ld de,notxt call print ;vyhodnocení chng00 call showattr call INKEY cp 1 jr z,chng_end cp "r" jp z,switch_ro cp "s" jp z,switch_sys cp "a" jp z,switch_arch cp 13 jp z,chng_save jr chng00 chng_end call loadscr jp loop0 switch_sys ld ix,TMP83+7 bit 7,(ix+2) jr z,set_sys res 7,(ix+2) jp chng00 set_sys set 7,(ix+2) jp chng00 switch_arch ld ix,TMP83+7 bit 7,(ix+3) jp z,set_arch res 7,(ix+3) jp chng00 set_arch set 7,(ix+3) jp chng00 switch_ro ld ix,TMP83+7 bit 7,(ix+1) jr z,set_ro res 7,(ix+1) jp chng00 set_ro set 7,(ix+1) jp chng00 showattr ld ix,TMP83+7 bit 7,(ix+1) jr z,ro_null ld a,27 jr readonly ro_null ld a,25 readonly ld hl,$4000 + 160 * 13 + 50 ld (hl),a inc hl ld a,16 ld (hl),a bit 7,(ix+2) jr z,sys_null ld a,27 jr system sys_null ld a,25 system ld hl,$4000 + 160 * 14 + 50 ld (hl),a inc hl ld a,16 ld (hl),a bit 7,(ix+3) jr z,arch_null ld a,27 jr archive arch_null ld a,25 archive ld hl,$4000 + 160 * 15 + 50 ld (hl),a inc hl ld a,16 ld (hl),a ret showattr_info ld ix,TMP83+7 bit 7,(ix+1) jr z,ro_nulla ld a,27 jr readonlya ro_nulla ld a,25 readonlya ld hl,$4000 + 160 * 17 + 128 ld (hl),a inc hl ld a,16 ld (hl),a bit 7,(ix+2) jr z,sys_nulla ld a,27 jr systema sys_nulla ld a,25 systema ld hl,$4000 + 160 * 18 + 128 ld (hl),a inc hl ld a,16 ld (hl),a bit 7,(ix+3) jr z,arch_nulla ld a,27 jr archivea arch_nulla ld a,25 archivea ld hl,$4000 + 160 * 19 + 128 ld (hl),a inc hl ld a,16 ld (hl),a ret namefile defb "Name of file:",0 attr_nadpis defb "Edit file attribute",0 readonlytxt defb "[R]ead only",0 systemfiletxt defb "[S]ystem file",0 archivedtxt defb "[A]rchived",0 readonlytxt2 defb "Read only",0 systemfiletxt2 defb "System file",0 archivedtxt2 defb "Archived",0 info_file ld hl,POSKURZL call ROZHOD ld a,(hl) ld l,a ld h,0 push hl ld hl,STARTWINL call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ex de,hl pop hl add hl,de push hl inc hl call BUFF83 call find83 pop hl call FINDLFN call BUFF83 ld hl,(foundfile) ld de,ban1 ld a,0 call specific_search jp z,loop0 ld hl,(foundfile) ld de,ban2 ld a,0 call specific_search jp z,loop0 call savescr ld hl,POSKURZL call ROZHOD ld a,(hl) ld l,a ld h,0 push hl ld hl,STARTWINL call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ex de,hl pop hl add hl,de push hl inc hl call BUFF83 call find83 pop hl call FINDLFN ld hl,8 * 256 + 10 ld bc,60 * 256 + 10 ld a,16 call window ld hl,POSKURZL call ROZHOD ld a,(hl) ld l,a ld h,0 push hl ld hl,STARTWINL call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ex de,hl pop hl add hl,de push hl inc hl call BUFF83 call find83 pop hl call FINDLFN ld hl,8 * 256 + 10 ld bc,60 * 256 + 10 ld a,16 ld hl,11*256+11 ld a,16 ld de,fileinfonadpis call print xor a ld hl,LFNNAME+44 ld (hl),a ld hl,25*256+13 ld a,16 ld de,LFNNAME call print ld hl,11*256+13 ld a,16 ld de,namefile call print ld de,filedate ld hl,11*256+15 ld a,16 call print ld de,filetime ld hl,11*256+16 ld a,16 call print ld de,(LFNNAME+261+4) ld hl,17*256+15 call showdate ld hl,17*256+16 ld de,(LFNNAME+261+6) call showtime ld hl,51*256+15 ld a,16 ld de,sysatrtxt call print ld hl,51*256+17 ld a,16 ld de,readonlytxt2 call print ld hl,51*256+18 ld a,16 ld de,systemfiletxt2 call print ld hl,51*256+19 ld a,16 ld de,archivedtxt2 call print ld hl,11*256+18 ld a,16 ld de,sizetxt call print ld hl,16*256+18 ld (dec32pos+1),hl ld hl,(LFNNAME+261) ld de,(LFNNAME+261+2) ld b,10 ld a,16 ld (decink+1),a call DEC32 ld a,0 ld (decink+1),a ld hl,27*256+18 ld a,16 ld de,bytestxt call print ld hl,11*256+20 ld a,16 ld de,pressanykeytxt call print call showattr_info call INKEY call loadscr jp loop0 sizetxt defb "Size:",0 bytestxt defb "bytes",0 ;DE - datum ;HL - pozice showdate ld (shdt1+1),hl inc h inc h ld (shdt2+1),hl inc h ld (shdt3+1),hl inc h inc h ld (shdt4+1),hl inc h ld (shdt5+1),hl ld a,e and 31 push de ld l,a ld h,0 call NUM shdt1 ld hl,17*256+15 ld a,16 ld de,NUMBUF+3 call print shdt2 ld hl,19*256+15 ld a,16 ld de,tecka call print pop de ld a,e ld b,d srl b push bc rra rra rra rra rra and 15 ld l,a ld h,0 call NUM ;call smaznuly shdt3 ld hl,20*256+15 ld a,16 ld de,NUMBUF+3 call print shdt4 ld hl,22*256+15 ld a,16 ld de,tecka call print pop af ld l,a ld h,0 ld de,1980 add hl,de call NUM call smaznuly shdt5 ld hl,23*256+15 ld a,16 ld de,NUMBUF+1 call print ret ;DE - čas ve formátu MSDOS ;HL - pozice showtime ld (shtm1+1),hl inc h inc h ld (shtm2+1),hl inc h ld (shtm3+1),hl inc h inc h ld (shtm4+1),hl inc h ld (shtm5+1),hl ;zjisti vteriny ld a,e and 00011111b add a,a ld (vteriny+1),a ld a,d ld b,e srl a rr b srl a rr b srl a rr b srl b srl b push bc ld l,a ld h,0 call NUM shtm1 ld hl,17*256+16 ld a,16 ld de,NUMBUF+3 call print shtm2 ld hl,19*256+16 ld a,16 ld de,dvojtecka call print pop af ld l,a ld h,0 call NUM shtm3 ld hl,20*256+16 ld a,16 ld de,NUMBUF+3 call print shtm4 ld hl,19*256+16 ld a,16 ld de,dvojtecka call print vteriny ld l,0 ld h,0 call NUM shtm5 ld hl,20*256+16 ld a,16 ld de,NUMBUF+3 call print ret smaznuly ld hl,NUMBUF ld b,5 snuly ld a,(hl) cp "0" ret nz ld (hl)," " inc hl djnz snuly ret help call savescr ld hl,8 * 256 + 4 ld bc,60 * 256 + 18 ld a,16 call window ld hl,11*256+5 ld a,16 ld de,help1 call print ld hl,11*256+7 ld a,16 ld de,help2 call print ld hl,11*256+8 ld a,16 ld de,help3 call print ld hl,11*256+9 ld a,16 ld de,help4 call print ld hl,11*256+10 ld a,16 ld de,help5 call print ld hl,11*256+11 ld a,16 ld de,help6 call print ld hl,11*256+12 ld a,16 ld de,help7 call print ld hl,11*256+13 ld a,16 ld de,help8 call print ld hl,11*256+14 ld a,16 ld de,help9 call print ld hl,11*256+15 ld a,16 ld de,help10 call print ld hl,11*256+16 ld a,16 ld de,help11 call print ld hl,11*256+17 ld a,16 ld de,help12 call print ld hl,11*256+18 ld a,16 ld de,help13 call print ld hl,11*256+19 ld a,16 ld de,help14 call print ld hl,11*256+20 ld a,16 ld de,help15 call print ld hl,11*256+21 ld a,16 ld de,help16 call print ld hl,11*256+22 ld a,16 ld de,help17 call print help0 call INKEY cp 1 jp z,infoend jr help0 notimplemented defb "This feature is not yet implemented.",0 notnow call savescr ld hl,8 * 256 + 10 ld bc,60 * 256 + 3 ld a,16 call window ld hl,11*256+11 ld a,16 ld de,notimplemented call print ld hl,42*256+13 ld a,32 ld de,pressanykeytxt call print call INKEY call loadscr ld hl,nadpis ld de,#4000 ld bc,80 not0 ld a,(hl) ld (de),a inc de ld a,16 ld (de),a inc de inc hl dec bc ld a,c or b jr nz,not0 jp loop0 info call savescr ld hl,8 * 256 + 10 ld bc,60 * 256 + 10 ld a,16 call window ld hl,11*256+11 ld a,16 ld de,calmcommander call print ld hl,11*256+13 ld a,16 ld de,info1txt call print ld hl,11*256+14 ld a,16 ld de,info6txt call print ld a,(pocetstranek) ld e,a ld d,8 mul d,e ex de,hl call NUM ld hl,30*256+14 ld a,16 ld de,NUMBUF+1 call print ld hl,34*256+14 ld a,16 ld de,kB call print ld hl,11*256+15 ld a,16 ld de,rtc call print ld de,presenttxt ld a,(rtcpresent) or a jr nz,rtcje ld de,notpresenttxt rtcje ld hl,16*256+15 ld a,16 call print ld hl,11*256+17 ld a,16 ld de,info2txt call print ld hl,11*256+18 ld a,16 ld de,info3txt call print ld hl,11*256+19 ld a,16 ld de,info5txt call print ld hl,45*256+20 ld a,32 ld de,breaktxt call print info0 call INKEY cp 1 jp z,infoend jp info0 infoend call loadscr jp loop0 kresli call prekresli_prazdne_okna ld a,0 ld de,bottom ld hl,0*256+31 call print ld hl,2*256+31 ld a,32 ld de,left_txt call print ld hl,10*256+31 ld a,32 ld de,right_txt call print ld hl,19*256+31 ld a,32 ld de,view_txt call print ld hl,27*256+31 ld a,32 ld de,edit_txt call print ld hl,35*256+31 ld a,32 ld de,copy_txt call print ld hl,43*256+31 ld a,32 ld de,move_txt call print ld hl,51*256+31 ld a,32 ld de,mkdir_txt call print ld hl,60*256+31 ld a,32 ld de,delete_txt call print ld hl,70*256+31 ld a,32 ld de,menu_txt call print ret FINDLFN push hl ld hl,pathl call ROZHOD2 ld a,(hl) inc hl ld h,(hl) ld l,a ld de,2 add hl,de ld a,(hl) pop hl cp 255 jr nz,findlfn830 inc hl findlfn830 push hl ld hl,lfnpage call ROZHOD ld a,(hl) ld (lfnroot+1),a ld hl,LFNNAME ld de,LFNNAME+1 ld bc,maxlen ld a,32 ld (hl),a ldir pop hl or a ld de,30 sbc hl,de add hl,de jr c,prvni ld c,30 call deleno jr oddeleno prvni ld a,l ld l,0 oddeleno push af lfnroot ld a,24 add a,l nextreg $57,a pop bc ld de,maxlen ld a,b or a ld hl,$e000 jr z,prvnizaznam lll add hl,de djnz lll prvnizaznam ld (addrlfn),hl ld de,LFNNAME ld bc,maxlen popop ld a,(hl) cp 255 jr z,kon ld (de),a inc hl inc de dec bc ld a,b or c jr nz,popop kon ld hl,(addrlfn) ld de,261 add hl,de ld de,LFNNAME+261 ld bc,8 ldir ;prenes velikost souboru ld hl,LFNNAME ld b,40 F22222 ld a,(hl) cp 255 call z,setspace inc hl djnz F22222 lfnend ld hl,LFNNAME lfnat ld de,20672+2 ld hl,LFNNAME ret sysatrtxt defb "System attributes:",0 fileinfonadpis defb "File/directory informations:",0 filedate defb "Date:",0 filetime defb "Time:",0 tecka defb ". ",0 dvojtecka defb ":",0 DISC include "functions/menu.asm" include "functions/search.asm" include "functions/selected.asm" last: E2 SAVEBIN "cc1.bin",S1,E1-S1 SAVEBIN "cc2.bin",S2,E2-S2 SAVEBIN "cc.bin", S1, E2-S1 CSPECTMAP player.map savenex open "CalmCommander.nex",START,ORG_ADDRESS-2 savenex core 2,0,0 savenex auto savenex close
14.527096
139
0.541586
8ef57bb9796eb2de035cd097a9774dab0a4a3c4b
4,301
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_333.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_333.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_333.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r14 push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xdf06, %rsi lea addresses_WT_ht+0x1af66, %rdi nop nop nop cmp $59632, %rdx mov $50, %rcx rep movsb nop nop nop nop and %r14, %r14 pop %rsi pop %rdx pop %rdi pop %rcx pop %r14 ret .global s_faulty_load s_faulty_load: push %r13 push %r15 push %r9 push %rbp push %rdx push %rsi // Store lea addresses_A+0xf366, %r13 nop nop nop inc %r15 movw $0x5152, (%r13) nop nop nop and $30084, %rbp // Faulty Load lea addresses_A+0x3c66, %rsi nop dec %r13 movb (%rsi), %dl lea oracles, %r15 and $0xff, %rdx shlq $12, %rdx mov (%r15,%rdx,1), %rdx pop %rsi pop %rdx pop %rbp pop %r9 pop %r15 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 8, 'size': 2, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, '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 */
55.141026
2,999
0.661707